user пре 6 година
родитељ
комит
2b0059d09d
5 измењених фајлова са 5 додато и 3 уклоњено
  1. 1 1
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 1 0
      lib/upload-item-parameters.d.ts
  4. 1 1
      src/index.ts
  5. 1 0
      src/upload-item-parameters.ts

+ 1 - 1
lib/index.js

@@ -146,7 +146,7 @@ class BankClient {
             if (params.links) {
                 formData.links = JSON.stringify(params.links);
             }
-            for (const attr of ['title', 'text', 'type']) {
+            for (const attr of ['title', 'text', 'type', 'creator']) {
                 if (params[attr] != null) {
                     formData[attr] = params[attr];
                 }

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
lib/index.js.map


+ 1 - 0
lib/upload-item-parameters.d.ts

@@ -1,6 +1,7 @@
 import { UploadItemLink } from "./upload-item-link";
 export interface UploadItemParameters {
     type?: string;
+    creator?: string;
     title: string;
     text?: string;
     fileName?: string;

+ 1 - 1
src/index.ts

@@ -141,7 +141,7 @@ export class BankClient {
       if (params.links) {
         formData.links = JSON.stringify(params.links);
       }
-      for (const attr of ['title', 'text', 'type']) {
+      for (const attr of ['title', 'text', 'type', 'creator']) {
         if (params[attr] != null) {
           formData[attr] = params[attr];
         }

+ 1 - 0
src/upload-item-parameters.ts

@@ -2,6 +2,7 @@ import { UploadItemLink } from "./upload-item-link";
 
 export interface UploadItemParameters {
     type?: string;
+    creator?: string;
     title: string;
     text?: string;
     fileName?: string;