Skip to content

Commit 66125e5

Browse files
[Node SDK] Upgrades OpenAPI Generator from 7.12.0 to 7.26.0 (#576)
2 parents f7f2ad4 + a58d456 commit 66125e5

17 files changed

Lines changed: 84 additions & 84 deletions

‎sdks/node/api/apiAppApi.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class ApiAppApi {
277277
const localVarPath =
278278
this.basePath +
279279
"/api_app/{client_id}".replace(
280-
"{" + "client_id" + "}",
280+
"{client_id}",
281281
encodeURIComponent(String(clientId))
282282
);
283283
let localVarQueryParameters: any = {};
@@ -384,7 +384,7 @@ export class ApiAppApi {
384384
const localVarPath =
385385
this.basePath +
386386
"/api_app/{client_id}".replace(
387-
"{" + "client_id" + "}",
387+
"{client_id}",
388388
encodeURIComponent(String(clientId))
389389
);
390390
let localVarQueryParameters: any = {};
@@ -640,7 +640,7 @@ export class ApiAppApi {
640640
const localVarPath =
641641
this.basePath +
642642
"/api_app/{client_id}".replace(
643-
"{" + "client_id" + "}",
643+
"{client_id}",
644644
encodeURIComponent(String(clientId))
645645
);
646646
let localVarQueryParameters: any = {};

‎sdks/node/api/bulkSendJobApi.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class BulkSendJobApi {
132132
const localVarPath =
133133
this.basePath +
134134
"/bulk_send_job/{bulk_send_job_id}".replace(
135-
"{" + "bulk_send_job_id" + "}",
135+
"{bulk_send_job_id}",
136136
encodeURIComponent(String(bulkSendJobId))
137137
);
138138
let localVarQueryParameters: any = {};

‎sdks/node/api/embeddedApi.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class EmbeddedApi {
137137
const localVarPath =
138138
this.basePath +
139139
"/embedded/edit_url/{template_id}".replace(
140-
"{" + "template_id" + "}",
140+
"{template_id}",
141141
encodeURIComponent(String(templateId))
142142
);
143143
let localVarQueryParameters: any = {};
@@ -294,7 +294,7 @@ export class EmbeddedApi {
294294
const localVarPath =
295295
this.basePath +
296296
"/embedded/sign_url/{signature_id}".replace(
297-
"{" + "signature_id" + "}",
297+
"{signature_id}",
298298
encodeURIComponent(String(signatureId))
299299
);
300300
let localVarQueryParameters: any = {};

‎sdks/node/api/faxApi.ts‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ export class FaxApi {
131131
): Promise<returnTypeI> {
132132
const localVarPath =
133133
this.basePath +
134-
"/fax/{fax_id}".replace(
135-
"{" + "fax_id" + "}",
136-
encodeURIComponent(String(faxId))
137-
);
134+
"/fax/{fax_id}".replace("{fax_id}", encodeURIComponent(String(faxId)));
138135
let localVarQueryParameters: any = {};
139136
let localVarHeaderParams: any = (<any>Object).assign(
140137
{},
@@ -234,7 +231,7 @@ export class FaxApi {
234231
const localVarPath =
235232
this.basePath +
236233
"/fax/files/{fax_id}".replace(
237-
"{" + "fax_id" + "}",
234+
"{fax_id}",
238235
encodeURIComponent(String(faxId))
239236
);
240237
let localVarQueryParameters: any = {};
@@ -351,10 +348,7 @@ export class FaxApi {
351348
): Promise<returnTypeT<FaxGetResponse>> {
352349
const localVarPath =
353350
this.basePath +
354-
"/fax/{fax_id}".replace(
355-
"{" + "fax_id" + "}",
356-
encodeURIComponent(String(faxId))
357-
);
351+
"/fax/{fax_id}".replace("{fax_id}", encodeURIComponent(String(faxId)));
358352
let localVarQueryParameters: any = {};
359353
let localVarHeaderParams: any = (<any>Object).assign(
360354
{},

‎sdks/node/api/signatureRequestApi.ts‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class SignatureRequestApi {
441441
const localVarPath =
442442
this.basePath +
443443
"/signature_request/cancel/{signature_request_id}".replace(
444-
"{" + "signature_request_id" + "}",
444+
"{signature_request_id}",
445445
encodeURIComponent(String(signatureRequestId))
446446
);
447447
let localVarQueryParameters: any = {};
@@ -853,7 +853,7 @@ export class SignatureRequestApi {
853853
const localVarPath =
854854
this.basePath +
855855
"/signature_request/edit/{signature_request_id}".replace(
856-
"{" + "signature_request_id" + "}",
856+
"{signature_request_id}",
857857
encodeURIComponent(String(signatureRequestId))
858858
);
859859
let localVarQueryParameters: any = {};
@@ -1016,7 +1016,7 @@ export class SignatureRequestApi {
10161016
const localVarPath =
10171017
this.basePath +
10181018
"/signature_request/edit_embedded/{signature_request_id}".replace(
1019-
"{" + "signature_request_id" + "}",
1019+
"{signature_request_id}",
10201020
encodeURIComponent(String(signatureRequestId))
10211021
);
10221022
let localVarQueryParameters: any = {};
@@ -1179,7 +1179,7 @@ export class SignatureRequestApi {
11791179
const localVarPath =
11801180
this.basePath +
11811181
"/signature_request/edit_embedded_with_template/{signature_request_id}".replace(
1182-
"{" + "signature_request_id" + "}",
1182+
"{signature_request_id}",
11831183
encodeURIComponent(String(signatureRequestId))
11841184
);
11851185
let localVarQueryParameters: any = {};
@@ -1342,7 +1342,7 @@ export class SignatureRequestApi {
13421342
const localVarPath =
13431343
this.basePath +
13441344
"/signature_request/edit_with_template/{signature_request_id}".replace(
1345-
"{" + "signature_request_id" + "}",
1345+
"{signature_request_id}",
13461346
encodeURIComponent(String(signatureRequestId))
13471347
);
13481348
let localVarQueryParameters: any = {};
@@ -1501,7 +1501,7 @@ export class SignatureRequestApi {
15011501
const localVarPath =
15021502
this.basePath +
15031503
"/signature_request/files/{signature_request_id}".replace(
1504-
"{" + "signature_request_id" + "}",
1504+
"{signature_request_id}",
15051505
encodeURIComponent(String(signatureRequestId))
15061506
);
15071507
let localVarQueryParameters: any = {};
@@ -1631,7 +1631,7 @@ export class SignatureRequestApi {
16311631
const localVarPath =
16321632
this.basePath +
16331633
"/signature_request/files_as_data_uri/{signature_request_id}".replace(
1634-
"{" + "signature_request_id" + "}",
1634+
"{signature_request_id}",
16351635
encodeURIComponent(String(signatureRequestId))
16361636
);
16371637
let localVarQueryParameters: any = {};
@@ -1758,7 +1758,7 @@ export class SignatureRequestApi {
17581758
const localVarPath =
17591759
this.basePath +
17601760
"/signature_request/files_as_file_url/{signature_request_id}".replace(
1761-
"{" + "signature_request_id" + "}",
1761+
"{signature_request_id}",
17621762
encodeURIComponent(String(signatureRequestId))
17631763
);
17641764
let localVarQueryParameters: any = {};
@@ -1888,7 +1888,7 @@ export class SignatureRequestApi {
18881888
const localVarPath =
18891889
this.basePath +
18901890
"/signature_request/{signature_request_id}".replace(
1891-
"{" + "signature_request_id" + "}",
1891+
"{signature_request_id}",
18921892
encodeURIComponent(String(signatureRequestId))
18931893
);
18941894
let localVarQueryParameters: any = {};
@@ -2160,7 +2160,7 @@ export class SignatureRequestApi {
21602160
const localVarPath =
21612161
this.basePath +
21622162
"/signature_request/release_hold/{signature_request_id}".replace(
2163-
"{" + "signature_request_id" + "}",
2163+
"{signature_request_id}",
21642164
encodeURIComponent(String(signatureRequestId))
21652165
);
21662166
let localVarQueryParameters: any = {};
@@ -2291,7 +2291,7 @@ export class SignatureRequestApi {
22912291
const localVarPath =
22922292
this.basePath +
22932293
"/signature_request/remind/{signature_request_id}".replace(
2294-
"{" + "signature_request_id" + "}",
2294+
"{signature_request_id}",
22952295
encodeURIComponent(String(signatureRequestId))
22962296
);
22972297
let localVarQueryParameters: any = {};
@@ -2448,7 +2448,7 @@ export class SignatureRequestApi {
24482448
const localVarPath =
24492449
this.basePath +
24502450
"/signature_request/remove/{signature_request_id}".replace(
2451-
"{" + "signature_request_id" + "}",
2451+
"{signature_request_id}",
24522452
encodeURIComponent(String(signatureRequestId))
24532453
);
24542454
let localVarQueryParameters: any = {};
@@ -2855,7 +2855,7 @@ export class SignatureRequestApi {
28552855
const localVarPath =
28562856
this.basePath +
28572857
"/signature_request/update/{signature_request_id}".replace(
2858-
"{" + "signature_request_id" + "}",
2858+
"{signature_request_id}",
28592859
encodeURIComponent(String(signatureRequestId))
28602860
);
28612861
let localVarQueryParameters: any = {};

‎sdks/node/api/teamApi.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ export class TeamApi {
878878
const localVarPath =
879879
this.basePath +
880880
"/team/members/{team_id}".replace(
881-
"{" + "team_id" + "}",
881+
"{team_id}",
882882
encodeURIComponent(String(teamId))
883883
);
884884
let localVarQueryParameters: any = {};
@@ -1168,7 +1168,7 @@ export class TeamApi {
11681168
const localVarPath =
11691169
this.basePath +
11701170
"/team/sub_teams/{team_id}".replace(
1171-
"{" + "team_id" + "}",
1171+
"{team_id}",
11721172
encodeURIComponent(String(teamId))
11731173
);
11741174
let localVarQueryParameters: any = {};

‎sdks/node/api/templateApi.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class TemplateApi {
147147
const localVarPath =
148148
this.basePath +
149149
"/template/add_user/{template_id}".replace(
150-
"{" + "template_id" + "}",
150+
"{template_id}",
151151
encodeURIComponent(String(templateId))
152152
);
153153
let localVarQueryParameters: any = {};
@@ -599,7 +599,7 @@ export class TemplateApi {
599599
const localVarPath =
600600
this.basePath +
601601
"/template/delete/{template_id}".replace(
602-
"{" + "template_id" + "}",
602+
"{template_id}",
603603
encodeURIComponent(String(templateId))
604604
);
605605
let localVarQueryParameters: any = {};
@@ -708,7 +708,7 @@ export class TemplateApi {
708708
const localVarPath =
709709
this.basePath +
710710
"/template/files/{template_id}".replace(
711-
"{" + "template_id" + "}",
711+
"{template_id}",
712712
encodeURIComponent(String(templateId))
713713
);
714714
let localVarQueryParameters: any = {};
@@ -838,7 +838,7 @@ export class TemplateApi {
838838
const localVarPath =
839839
this.basePath +
840840
"/template/files_as_data_uri/{template_id}".replace(
841-
"{" + "template_id" + "}",
841+
"{template_id}",
842842
encodeURIComponent(String(templateId))
843843
);
844844
let localVarQueryParameters: any = {};
@@ -965,7 +965,7 @@ export class TemplateApi {
965965
const localVarPath =
966966
this.basePath +
967967
"/template/files_as_file_url/{template_id}".replace(
968-
"{" + "template_id" + "}",
968+
"{template_id}",
969969
encodeURIComponent(String(templateId))
970970
);
971971
let localVarQueryParameters: any = {};
@@ -1095,7 +1095,7 @@ export class TemplateApi {
10951095
const localVarPath =
10961096
this.basePath +
10971097
"/template/{template_id}".replace(
1098-
"{" + "template_id" + "}",
1098+
"{template_id}",
10991099
encodeURIComponent(String(templateId))
11001100
);
11011101
let localVarQueryParameters: any = {};
@@ -1373,7 +1373,7 @@ export class TemplateApi {
13731373
const localVarPath =
13741374
this.basePath +
13751375
"/template/remove_user/{template_id}".replace(
1376-
"{" + "template_id" + "}",
1376+
"{template_id}",
13771377
encodeURIComponent(String(templateId))
13781378
);
13791379
let localVarQueryParameters: any = {};
@@ -1536,7 +1536,7 @@ export class TemplateApi {
15361536
const localVarPath =
15371537
this.basePath +
15381538
"/template/update_files/{template_id}".replace(
1539-
"{" + "template_id" + "}",
1539+
"{template_id}",
15401540
encodeURIComponent(String(templateId))
15411541
);
15421542
let localVarQueryParameters: any = {};

‎sdks/node/api/unclaimedDraftApi.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export class UnclaimedDraftApi {
587587
const localVarPath =
588588
this.basePath +
589589
"/unclaimed_draft/edit_and_resend/{signature_request_id}".replace(
590-
"{" + "signature_request_id" + "}",
590+
"{signature_request_id}",
591591
encodeURIComponent(String(signatureRequestId))
592592
);
593593
let localVarQueryParameters: any = {};

‎sdks/node/dist/api.js‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22144,6 +22144,9 @@ var ObjectSerializer = class _ObjectSerializer {
2214422144
}
2214522145
return transformedData;
2214622146
} else if (type === "Date") {
22147+
if (!(data instanceof Date)) {
22148+
return data;
22149+
}
2214722150
return data.toISOString();
2214822151
} else {
2214922152
if (enumsMap[type]) {
@@ -22157,10 +22160,11 @@ var ObjectSerializer = class _ObjectSerializer {
2215722160
let instance = {};
2215822161
for (let index = 0; index < attributeTypes.length; index++) {
2215922162
let attributeType = attributeTypes[index];
22160-
let value = _ObjectSerializer.serialize(
22161-
data[attributeType.name],
22162-
attributeType.type
22163-
);
22163+
const rawValue = Object.prototype.hasOwnProperty.call(
22164+
data,
22165+
attributeType.name
22166+
) ? data[attributeType.name] : Object.prototype.hasOwnProperty.call(data, attributeType.baseName) ? data[attributeType.baseName] : void 0;
22167+
let value = _ObjectSerializer.serialize(rawValue, attributeType.type);
2216422168
if (value !== void 0) {
2216522169
instance[attributeType.baseName] = value;
2216622170
}
@@ -32369,10 +32373,7 @@ var FaxApi = class {
3236932373
* @param options
3237032374
*/
3237132375
async faxDelete(faxId, options = { headers: {} }) {
32372-
const localVarPath = this.basePath + "/fax/{fax_id}".replace(
32373-
"{fax_id}",
32374-
encodeURIComponent(String(faxId))
32375-
);
32376+
const localVarPath = this.basePath + "/fax/{fax_id}".replace("{fax_id}", encodeURIComponent(String(faxId)));
3237632377
let localVarQueryParameters = {};
3237732378
let localVarHeaderParams = Object.assign(
3237832379
{},
@@ -32546,10 +32547,7 @@ var FaxApi = class {
3254632547
* @param options
3254732548
*/
3254832549
async faxGet(faxId, options = { headers: {} }) {
32549-
const localVarPath = this.basePath + "/fax/{fax_id}".replace(
32550-
"{fax_id}",
32551-
encodeURIComponent(String(faxId))
32552-
);
32550+
const localVarPath = this.basePath + "/fax/{fax_id}".replace("{fax_id}", encodeURIComponent(String(faxId)));
3255332551
let localVarQueryParameters = {};
3255432552
let localVarHeaderParams = Object.assign(
3255532553
{},

‎sdks/node/docs/model/DocumentFieldDetectionRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
| `detectionMode`<sup>*_required_</sup> | [```DocumentFieldDetectionRequestDetectionMode```](DocumentFieldDetectionRequestDetectionMode.md) | | |
9+
| `detectionMode`<sup>*_required_</sup> | ```string``` | The field detection method to use. Set to `annotations` to detect PDF form annotations or `text_tags` to detect Dropbox Sign text tags. | |
1010
| `file` | ```RequestFile``` | The PDF file to analyze.<br><br>This endpoint requires either `file` or `file_url`, but not both. | |
1111
| `fileUrl` | ```string``` | The URL of the PDF file to analyze.<br><br>This endpoint requires either `file` or `file_url`, but not both. | |
1212
| `pageRange` | ```string``` | The zero-based page indexes to analyze. Accepts `all`, individual pages, inclusive ranges, or comma-separated combinations, such as `0-2,5,7-9`. Defaults to `all`. | |

0 commit comments

Comments
 (0)