@@ -280,7 +280,9 @@ export class WordsApi {
280
280
json: true,
281
281
};
282
282
283
- requestOptions.formData = formParams;
283
+ if (Object.keys(formParams).length > 0) {
284
+ requestOptions.formData = formParams;
285
+ }
284
286
const response = await invokeApiMethod(requestOptions, this.configuration);
285
287
const body = ObjectSerializer.deserialize(response.body, "DocumentResponse");
286
288
const result: model.WordsIncomingMessage< model.DocumentResponse > = {body, response};
@@ -348,7 +350,9 @@ export class WordsApi {
348
350
encoding: null,
349
351
};
350
352
351
- requestOptions.formData = formParams;
353
+ if (Object.keys(formParams).length > 0) {
354
+ requestOptions.formData = formParams;
355
+ }
352
356
const response = await invokeApiMethod(requestOptions, this.configuration);
353
357
const body = ObjectSerializer.deserialize(response.body, "Buffer");
354
358
const result: model.WordsIncomingMessage< Buffer > = {body, response};
@@ -538,7 +542,9 @@ export class WordsApi {
538
542
encoding: null,
539
543
};
540
544
541
- requestOptions.formData = formParams;
545
+ if (Object.keys(formParams).length > 0) {
546
+ requestOptions.formData = formParams;
547
+ }
542
548
const response = await invokeApiMethod(requestOptions, this.configuration);
543
549
const body = ObjectSerializer.deserialize(response.body, "Buffer");
544
550
const result: model.WordsIncomingMessage< Buffer > = {body, response};
@@ -2854,7 +2860,9 @@ export class WordsApi {
2854
2860
json: true,
2855
2861
};
2856
2862
2857
- requestOptions.formData = formParams;
2863
+ if (Object.keys(formParams).length > 0) {
2864
+ requestOptions.formData = formParams;
2865
+ }
2858
2866
const response = await invokeApiMethod(requestOptions, this.configuration);
2859
2867
const body = ObjectSerializer.deserialize(response.body, "DocumentResponse");
2860
2868
const result: model.WordsIncomingMessage< model.DocumentResponse > = {body, response};
@@ -2911,7 +2919,9 @@ export class WordsApi {
2911
2919
encoding: null,
2912
2920
};
2913
2921
2914
- requestOptions.formData = formParams;
2922
+ if (Object.keys(formParams).length > 0) {
2923
+ requestOptions.formData = formParams;
2924
+ }
2915
2925
const response = await invokeApiMethod(requestOptions, this.configuration);
2916
2926
const body = ObjectSerializer.deserialize(response.body, "Buffer");
2917
2927
const result: model.WordsIncomingMessage< Buffer > = {body, response};
@@ -3772,7 +3782,9 @@ export class WordsApi {
3772
3782
json: true,
3773
3783
};
3774
3784
3775
- requestOptions.formData = formParams;
3785
+ if (Object.keys(formParams).length > 0) {
3786
+ requestOptions.formData = formParams;
3787
+ }
3776
3788
const response = await invokeApiMethod(requestOptions, this.configuration);
3777
3789
const body = ObjectSerializer.deserialize(response.body, "FieldNamesResponse");
3778
3790
const result: model.WordsIncomingMessage< model.FieldNamesResponse > = {body, response};
@@ -6892,7 +6904,9 @@ export class WordsApi {
6892
6904
json: true,
6893
6905
};
6894
6906
6895
- requestOptions.formData = formParams;
6907
+ if (Object.keys(formParams).length > 0) {
6908
+ requestOptions.formData = formParams;
6909
+ }
6896
6910
const response = await invokeApiMethod(requestOptions, this.configuration);
6897
6911
const body = ObjectSerializer.deserialize(response.body, "DrawingObjectResponse");
6898
6912
const result: model.WordsIncomingMessage< model.DrawingObjectResponse > = {body, response};
@@ -6964,7 +6978,9 @@ export class WordsApi {
6964
6978
json: true,
6965
6979
};
6966
6980
6967
- requestOptions.formData = formParams;
6981
+ if (Object.keys(formParams).length > 0) {
6982
+ requestOptions.formData = formParams;
6983
+ }
6968
6984
const response = await invokeApiMethod(requestOptions, this.configuration);
6969
6985
const body = ObjectSerializer.deserialize(response.body, "DrawingObjectResponse");
6970
6986
const result: model.WordsIncomingMessage< model.DrawingObjectResponse > = {body, response};
@@ -8145,7 +8161,9 @@ export class WordsApi {
8145
8161
json: true,
8146
8162
};
8147
8163
8148
- requestOptions.formData = formParams;
8164
+ if (Object.keys(formParams).length > 0) {
8165
+ requestOptions.formData = formParams;
8166
+ }
8149
8167
const response = await invokeApiMethod(requestOptions, this.configuration);
8150
8168
const body = ObjectSerializer.deserialize(response.body, "DocumentResponse");
8151
8169
const result: model.WordsIncomingMessage< model.DocumentResponse > = {body, response};
@@ -9855,7 +9873,9 @@ export class WordsApi {
9855
9873
json: true,
9856
9874
};
9857
9875
9858
- requestOptions.formData = formParams;
9876
+ if (Object.keys(formParams).length > 0) {
9877
+ requestOptions.formData = formParams;
9878
+ }
9859
9879
const response = await invokeApiMethod(requestOptions, this.configuration);
9860
9880
const body = ObjectSerializer.deserialize(response.body, "DrawingObjectResponse");
9861
9881
const result: model.WordsIncomingMessage< model.DrawingObjectResponse > = {body, response};
@@ -9938,7 +9958,9 @@ export class WordsApi {
9938
9958
json: true,
9939
9959
};
9940
9960
9941
- requestOptions.formData = formParams;
9961
+ if (Object.keys(formParams).length > 0) {
9962
+ requestOptions.formData = formParams;
9963
+ }
9942
9964
const response = await invokeApiMethod(requestOptions, this.configuration);
9943
9965
const body = ObjectSerializer.deserialize(response.body, "DrawingObjectResponse");
9944
9966
const result: model.WordsIncomingMessage< model.DrawingObjectResponse > = {body, response};
@@ -11292,7 +11314,9 @@ export class WordsApi {
11292
11314
json: true,
11293
11315
};
11294
11316
11295
- requestOptions.formData = formParams;
11317
+ if (Object.keys(formParams).length > 0) {
11318
+ requestOptions.formData = formParams;
11319
+ }
11296
11320
const response = await invokeApiMethod(requestOptions, this.configuration);
11297
11321
const body = ObjectSerializer.deserialize(response.body, "FilesUploadResult");
11298
11322
const result: model.WordsIncomingMessage< model.FilesUploadResult > = {body, response};
0 commit comments