boldsign 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/apis.ts +1 -1
- package/api/documentApi.ts +6 -1
- package/api/groupContactsApi.ts +16 -0
- package/docs/DocumentApi.md +2 -1
- package/model/documentProperties.ts +2 -1
- package/model/editDocumentRequest.ts +2 -1
- package/model/embeddedDocumentRequest.ts +2 -1
- package/model/embeddedMergeTemplateFormRequest.ts +2 -1
- package/model/embeddedSendTemplateFormRequest.ts +2 -1
- package/model/mergeAndSendForSignForm.ts +2 -1
- package/model/sendForSign.ts +2 -1
- package/model/sendForSignFromTemplateForm.ts +2 -1
- package/model/templateProperties.ts +2 -1
- package/package.json +1 -1
package/api/apis.ts
CHANGED
|
@@ -24,7 +24,7 @@ export const queryParamsSerializer = (params) => {
|
|
|
24
24
|
return Qs.stringify(params, { arrayFormat: 'repeat' })
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export const USER_AGENT = "boldsign-node-sdk/3.3.
|
|
27
|
+
export const USER_AGENT = "boldsign-node-sdk/3.3.1";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Generates an object containing form data.
|
package/api/documentApi.ts
CHANGED
|
@@ -1774,9 +1774,10 @@ export class DocumentApi {
|
|
|
1774
1774
|
* @summary Download the document.
|
|
1775
1775
|
* @param documentId
|
|
1776
1776
|
* @param onBehalfOf
|
|
1777
|
+
* @param format
|
|
1777
1778
|
* @param options
|
|
1778
1779
|
*/
|
|
1779
|
-
public async downloadDocument (documentId: string, onBehalfOf?: string, options: optionsI = {headers: {}}) : Promise<Buffer> {
|
|
1780
|
+
public async downloadDocument (documentId: string, onBehalfOf?: string, format?: 'Combined' | 'Individually', options: optionsI = {headers: {}}) : Promise<Buffer> {
|
|
1780
1781
|
const localVarPath = this.basePath + '/v1/document/download';
|
|
1781
1782
|
let localVarQueryParameters: any = {};
|
|
1782
1783
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1803,6 +1804,10 @@ export class DocumentApi {
|
|
|
1803
1804
|
localVarQueryParameters['onBehalfOf'] = ObjectSerializer.serialize(onBehalfOf, "string");
|
|
1804
1805
|
}
|
|
1805
1806
|
|
|
1807
|
+
if (format !== undefined) {
|
|
1808
|
+
localVarQueryParameters['format'] = ObjectSerializer.serialize(format, "'Combined' | 'Individually'");
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1806
1811
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1807
1812
|
|
|
1808
1813
|
let localVarUseFormData = false;
|
package/api/groupContactsApi.ts
CHANGED
|
@@ -195,6 +195,14 @@ export class GroupContactsApi {
|
|
|
195
195
|
)) {
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
+
if (handleErrorCodeResponse(
|
|
199
|
+
reject,
|
|
200
|
+
error.response,
|
|
201
|
+
403,
|
|
202
|
+
"ErrorResult",
|
|
203
|
+
)) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
198
206
|
if (handleErrorCodeResponse(
|
|
199
207
|
reject,
|
|
200
208
|
error.response,
|
|
@@ -682,6 +690,14 @@ export class GroupContactsApi {
|
|
|
682
690
|
)) {
|
|
683
691
|
return;
|
|
684
692
|
}
|
|
693
|
+
if (handleErrorCodeResponse(
|
|
694
|
+
reject,
|
|
695
|
+
error.response,
|
|
696
|
+
403,
|
|
697
|
+
"ErrorResult",
|
|
698
|
+
)) {
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
685
701
|
if (handleErrorCodeResponse(
|
|
686
702
|
reject,
|
|
687
703
|
error.response,
|
package/docs/DocumentApi.md
CHANGED
|
@@ -474,7 +474,7 @@ Download the audit trail document.
|
|
|
474
474
|
## `downloadDocument()`
|
|
475
475
|
|
|
476
476
|
```typescript
|
|
477
|
-
downloadDocument(documentId: string, onBehalfOf: string): Buffer
|
|
477
|
+
downloadDocument(documentId: string, onBehalfOf: string, format: 'Combined' | 'Individually'): Buffer
|
|
478
478
|
```
|
|
479
479
|
|
|
480
480
|
Download the document.
|
|
@@ -486,6 +486,7 @@ Download the document.
|
|
|
486
486
|
| ------------- | ------------- | ------------- | ------------- |
|
|
487
487
|
| **documentId** | **string**| | |
|
|
488
488
|
| **onBehalfOf** | **string**| | [optional] |
|
|
489
|
+
| **format** | **'Combined' | 'Individually'**| | [optional] |
|
|
489
490
|
|
|
490
491
|
### Return type
|
|
491
492
|
|
|
@@ -360,7 +360,8 @@ export namespace DocumentProperties {
|
|
|
360
360
|
}
|
|
361
361
|
export enum DocumentDownloadOptionEnum {
|
|
362
362
|
Combined = <any> 'Combined',
|
|
363
|
-
Individually = <any> 'Individually'
|
|
363
|
+
Individually = <any> 'Individually',
|
|
364
|
+
UserPreference = <any> 'UserPreference'
|
|
364
365
|
}
|
|
365
366
|
export enum AllowedSignatureTypesEnum {
|
|
366
367
|
Text = <any> 'Text',
|
|
@@ -232,7 +232,8 @@ export namespace EditDocumentRequest {
|
|
|
232
232
|
}
|
|
233
233
|
export enum DocumentDownloadOptionEnum {
|
|
234
234
|
Combined = <any> 'Combined',
|
|
235
|
-
Individually = <any> 'Individually'
|
|
235
|
+
Individually = <any> 'Individually',
|
|
236
|
+
UserPreference = <any> 'UserPreference'
|
|
236
237
|
}
|
|
237
238
|
export enum AllowedSignatureTypesEnum {
|
|
238
239
|
Text = <any> 'Text',
|
|
@@ -360,7 +360,8 @@ export namespace EmbeddedDocumentRequest {
|
|
|
360
360
|
}
|
|
361
361
|
export enum DocumentDownloadOptionEnum {
|
|
362
362
|
Combined = <any> 'Combined',
|
|
363
|
-
Individually = <any> 'Individually'
|
|
363
|
+
Individually = <any> 'Individually',
|
|
364
|
+
UserPreference = <any> 'UserPreference'
|
|
364
365
|
}
|
|
365
366
|
export enum AllowedSignatureTypesEnum {
|
|
366
367
|
Text = <any> 'Text',
|
|
@@ -366,7 +366,8 @@ export namespace EmbeddedMergeTemplateFormRequest {
|
|
|
366
366
|
}
|
|
367
367
|
export enum DocumentDownloadOptionEnum {
|
|
368
368
|
Combined = <any> 'Combined',
|
|
369
|
-
Individually = <any> 'Individually'
|
|
369
|
+
Individually = <any> 'Individually',
|
|
370
|
+
UserPreference = <any> 'UserPreference'
|
|
370
371
|
}
|
|
371
372
|
export enum AllowedSignatureTypesEnum {
|
|
372
373
|
Text = <any> 'Text',
|
|
@@ -347,7 +347,8 @@ export namespace EmbeddedSendTemplateFormRequest {
|
|
|
347
347
|
}
|
|
348
348
|
export enum DocumentDownloadOptionEnum {
|
|
349
349
|
Combined = <any> 'Combined',
|
|
350
|
-
Individually = <any> 'Individually'
|
|
350
|
+
Individually = <any> 'Individually',
|
|
351
|
+
UserPreference = <any> 'UserPreference'
|
|
351
352
|
}
|
|
352
353
|
export enum AllowedSignatureTypesEnum {
|
|
353
354
|
Text = <any> 'Text',
|
|
@@ -279,7 +279,8 @@ export namespace MergeAndSendForSignForm {
|
|
|
279
279
|
}
|
|
280
280
|
export enum DocumentDownloadOptionEnum {
|
|
281
281
|
Combined = <any> 'Combined',
|
|
282
|
-
Individually = <any> 'Individually'
|
|
282
|
+
Individually = <any> 'Individually',
|
|
283
|
+
UserPreference = <any> 'UserPreference'
|
|
283
284
|
}
|
|
284
285
|
export enum AllowedSignatureTypesEnum {
|
|
285
286
|
Text = <any> 'Text',
|
package/model/sendForSign.ts
CHANGED
|
@@ -273,7 +273,8 @@ export namespace SendForSign {
|
|
|
273
273
|
}
|
|
274
274
|
export enum DocumentDownloadOptionEnum {
|
|
275
275
|
Combined = <any> 'Combined',
|
|
276
|
-
Individually = <any> 'Individually'
|
|
276
|
+
Individually = <any> 'Individually',
|
|
277
|
+
UserPreference = <any> 'UserPreference'
|
|
277
278
|
}
|
|
278
279
|
export enum AllowedSignatureTypesEnum {
|
|
279
280
|
Text = <any> 'Text',
|
|
@@ -260,7 +260,8 @@ export namespace SendForSignFromTemplateForm {
|
|
|
260
260
|
}
|
|
261
261
|
export enum DocumentDownloadOptionEnum {
|
|
262
262
|
Combined = <any> 'Combined',
|
|
263
|
-
Individually = <any> 'Individually'
|
|
263
|
+
Individually = <any> 'Individually',
|
|
264
|
+
UserPreference = <any> 'UserPreference'
|
|
264
265
|
}
|
|
265
266
|
export enum AllowedSignatureTypesEnum {
|
|
266
267
|
Text = <any> 'Text',
|
|
@@ -236,7 +236,8 @@ export class TemplateProperties {
|
|
|
236
236
|
export namespace TemplateProperties {
|
|
237
237
|
export enum DocumentDownloadOptionEnum {
|
|
238
238
|
Combined = <any> 'Combined',
|
|
239
|
-
Individually = <any> 'Individually'
|
|
239
|
+
Individually = <any> 'Individually',
|
|
240
|
+
UserPreference = <any> 'UserPreference'
|
|
240
241
|
}
|
|
241
242
|
export enum AllowedSignatureTypesEnum {
|
|
242
243
|
Text = <any> 'Text',
|