boldsign 3.1.0 → 3.1.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/.openapi-generator/FILES +11 -0
- package/README.md +16 -0
- package/api/apis.ts +1 -1
- package/api/documentApi.ts +146 -1
- package/api/groupContactsApi.ts +779 -0
- package/api/index.ts +3 -1
- package/boldsign-3.1.1.tgz +0 -0
- package/dist/api/apis.d.ts +1 -1
- package/dist/api/apis.js +1 -1
- package/dist/api/documentApi.d.ts +2 -1
- package/dist/api/documentApi.js +90 -0
- package/dist/api/documentApi.js.map +1 -1
- package/dist/api/groupContactsApi.d.ts +28 -0
- package/dist/api/groupContactsApi.js +507 -0
- package/dist/api/groupContactsApi.js.map +1 -0
- package/dist/api/index.d.ts +3 -2
- package/dist/api/index.js +4 -2
- package/dist/api/index.js.map +1 -1
- package/dist/examples/contactGroupDelete.d.ts +1 -0
- package/dist/examples/contactGroupDelete.js +27 -0
- package/dist/examples/contactGroupDelete.js.map +1 -0
- package/dist/examples/contactGroupGet.d.ts +1 -0
- package/dist/examples/contactGroupGet.js +27 -0
- package/dist/examples/contactGroupGet.js.map +1 -0
- package/dist/examples/contactGroupList.d.ts +1 -0
- package/dist/examples/contactGroupList.js +29 -0
- package/dist/examples/contactGroupList.js.map +1 -0
- package/dist/examples/contactGroupUpdate.d.ts +1 -0
- package/dist/examples/contactGroupUpdate.js +34 -0
- package/dist/examples/contactGroupUpdate.js.map +1 -0
- package/dist/examples/contactGroupsCreate.d.ts +1 -0
- package/dist/examples/contactGroupsCreate.js +35 -0
- package/dist/examples/contactGroupsCreate.js.map +1 -0
- package/dist/examples/documentCreateEmbeddedEditUrl.d.ts +1 -0
- package/dist/examples/documentCreateEmbeddedEditUrl.js +32 -0
- package/dist/examples/documentCreateEmbeddedEditUrl.js.map +1 -0
- package/dist/model/createGroupContactResponse.d.ts +15 -0
- package/dist/model/createGroupContactResponse.js +23 -0
- package/dist/model/createGroupContactResponse.js.map +1 -0
- package/dist/model/creators.d.ts +15 -0
- package/dist/model/creators.js +23 -0
- package/dist/model/creators.js.map +1 -0
- package/dist/model/embeddedDocumentEditJsonRequest.d.ts +51 -0
- package/dist/model/embeddedDocumentEditJsonRequest.js +97 -0
- package/dist/model/embeddedDocumentEditJsonRequest.js.map +1 -0
- package/dist/model/embeddedDocumentEdited.d.ts +14 -0
- package/dist/model/embeddedDocumentEdited.js +18 -0
- package/dist/model/embeddedDocumentEdited.js.map +1 -0
- package/dist/model/getGroupContactDetails.d.ts +20 -0
- package/dist/model/getGroupContactDetails.js +38 -0
- package/dist/model/getGroupContactDetails.js.map +1 -0
- package/dist/model/groupContact.d.ts +18 -0
- package/dist/model/groupContact.js +33 -0
- package/dist/model/groupContact.js.map +1 -0
- package/dist/model/groupContactDetails.d.ts +17 -0
- package/dist/model/groupContactDetails.js +28 -0
- package/dist/model/groupContactDetails.js.map +1 -0
- package/dist/model/groupContactsList.d.ts +17 -0
- package/dist/model/groupContactsList.js +23 -0
- package/dist/model/groupContactsList.js.map +1 -0
- package/dist/model/groupUser.d.ts +15 -0
- package/dist/model/groupUser.js +23 -0
- package/dist/model/groupUser.js.map +1 -0
- package/dist/model/index.d.ts +11 -1
- package/dist/model/index.js +36 -4
- package/dist/model/index.js.map +1 -1
- package/dist/model/updateGroupContact.d.ts +17 -0
- package/dist/model/updateGroupContact.js +28 -0
- package/dist/model/updateGroupContact.js.map +1 -0
- package/docs/CreateGroupContactResponse.md +12 -0
- package/docs/Creators.md +12 -0
- package/docs/DocumentApi.md +34 -0
- package/docs/EmbeddedDocumentEditJsonRequest.md +19 -0
- package/docs/EmbeddedDocumentEdited.md +11 -0
- package/docs/GetGroupContactDetails.md +15 -0
- package/docs/GroupContact.md +14 -0
- package/docs/GroupContactDetails.md +13 -0
- package/docs/GroupContactsApi.md +177 -0
- package/docs/GroupContactsList.md +12 -0
- package/docs/GroupUser.md +12 -0
- package/docs/UpdateGroupContact.md +13 -0
- package/examples/contactGroupDelete.ts +14 -0
- package/examples/contactGroupGet.ts +14 -0
- package/examples/contactGroupList.ts +16 -0
- package/examples/contactGroupUpdate.ts +21 -0
- package/examples/contactGroupsCreate.ts +24 -0
- package/examples/documentCreateEmbeddedEditUrl.ts +19 -0
- package/model/createGroupContactResponse.ts +37 -0
- package/model/creators.ts +37 -0
- package/model/embeddedDocumentEditJsonRequest.ts +108 -0
- package/model/embeddedDocumentEdited.ts +31 -0
- package/model/getGroupContactDetails.ts +57 -0
- package/model/groupContact.ts +50 -0
- package/model/groupContactDetails.ts +44 -0
- package/model/groupContactsList.ts +39 -0
- package/model/groupUser.ts +37 -0
- package/model/index.ts +32 -0
- package/model/updateGroupContact.ts +44 -0
- package/package.json +1 -1
- package/boldsign-3.1.0.tgz +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ api/brandingApi.ts
|
|
|
7
7
|
api/contactsApi.ts
|
|
8
8
|
api/customFieldApi.ts
|
|
9
9
|
api/documentApi.ts
|
|
10
|
+
api/groupContactsApi.ts
|
|
10
11
|
api/identityVerificationApi.ts
|
|
11
12
|
api/index.ts
|
|
12
13
|
api/planApi.ts
|
|
@@ -41,10 +42,12 @@ model/contactPageDetails.ts
|
|
|
41
42
|
model/contactsDetails.ts
|
|
42
43
|
model/contactsList.ts
|
|
43
44
|
model/createContactResponse.ts
|
|
45
|
+
model/createGroupContactResponse.ts
|
|
44
46
|
model/createSenderIdentityRequest.ts
|
|
45
47
|
model/createTeamRequest.ts
|
|
46
48
|
model/createTemplateRequest.ts
|
|
47
49
|
model/createUser.ts
|
|
50
|
+
model/creators.ts
|
|
48
51
|
model/customDomainSettings.ts
|
|
49
52
|
model/customFieldCollection.ts
|
|
50
53
|
model/customFieldMessage.ts
|
|
@@ -76,6 +79,8 @@ model/editTemplateRequest.ts
|
|
|
76
79
|
model/editableDateFieldSettings.ts
|
|
77
80
|
model/embeddedCreateTemplateRequest.ts
|
|
78
81
|
model/embeddedCustomFieldCreated.ts
|
|
82
|
+
model/embeddedDocumentEditJsonRequest.ts
|
|
83
|
+
model/embeddedDocumentEdited.ts
|
|
79
84
|
model/embeddedDocumentRequest.ts
|
|
80
85
|
model/embeddedFileDetails.ts
|
|
81
86
|
model/embeddedFileLink.ts
|
|
@@ -97,8 +102,13 @@ model/formField.ts
|
|
|
97
102
|
model/formFieldPermission.ts
|
|
98
103
|
model/formGroup.ts
|
|
99
104
|
model/formulaFieldSettings.ts
|
|
105
|
+
model/getGroupContactDetails.ts
|
|
106
|
+
model/groupContact.ts
|
|
107
|
+
model/groupContactDetails.ts
|
|
108
|
+
model/groupContactsList.ts
|
|
100
109
|
model/groupSigner.ts
|
|
101
110
|
model/groupSignerSettings.ts
|
|
111
|
+
model/groupUser.ts
|
|
102
112
|
model/idDocument.ts
|
|
103
113
|
model/idReport.ts
|
|
104
114
|
model/idVerificationDetails.ts
|
|
@@ -159,6 +169,7 @@ model/templateTag.ts
|
|
|
159
169
|
model/templateTeamShare.ts
|
|
160
170
|
model/textTagDefinition.ts
|
|
161
171
|
model/textTagOffset.ts
|
|
172
|
+
model/updateGroupContact.ts
|
|
162
173
|
model/updateUser.ts
|
|
163
174
|
model/updateUserMetaData.ts
|
|
164
175
|
model/userPageDetails.ts
|
package/README.md
CHANGED
|
@@ -87,6 +87,7 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
87
87
|
| *DocumentApi* | [**behalfDocuments**](./docs/DocumentApi.md#behalfdocuments) | **GET** /v1/document/behalfList | Gets the behalf documents. |
|
|
88
88
|
| *DocumentApi* | [**changeAccessCode**](./docs/DocumentApi.md#changeaccesscode) | **PATCH** /v1/document/changeAccessCode | Changes the access code for the given document signer. |
|
|
89
89
|
| *DocumentApi* | [**changeRecipient**](./docs/DocumentApi.md#changerecipient) | **PATCH** /v1/document/changeRecipient | Change recipient details of a document. |
|
|
90
|
+
| *DocumentApi* | [**createEmbeddedEditUrl**](./docs/DocumentApi.md#createembeddedediturl) | **POST** /v1/document/createEmbeddedEditUrl | Generates an embedded edit URL that allows the document editing process to be integrated into your application. |
|
|
90
91
|
| *DocumentApi* | [**createEmbeddedRequestUrlDocument**](./docs/DocumentApi.md#createembeddedrequesturldocument) | **POST** /v1/document/createEmbeddedRequestUrl | Generates a send URL which embeds document sending process into your application. |
|
|
91
92
|
| *DocumentApi* | [**deleteDocument**](./docs/DocumentApi.md#deletedocument) | **DELETE** /v1/document/delete | Delete the document. |
|
|
92
93
|
| *DocumentApi* | [**deleteTag**](./docs/DocumentApi.md#deletetag) | **DELETE** /v1/document/deleteTags | Delete the Tags in Documents. |
|
|
@@ -105,6 +106,11 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
105
106
|
| *DocumentApi* | [**revokeDocument**](./docs/DocumentApi.md#revokedocument) | **POST** /v1/document/revoke | Revoke the document. |
|
|
106
107
|
| *DocumentApi* | [**sendDocument**](./docs/DocumentApi.md#senddocument) | **POST** /v1/document/send | Sends the document for sign. |
|
|
107
108
|
| *DocumentApi* | [**teamDocuments**](./docs/DocumentApi.md#teamdocuments) | **GET** /v1/document/teamlist | Get user Team documents. |
|
|
109
|
+
| *GroupContactsApi* | [**createGroupContact**](./docs/GroupContactsApi.md#creategroupcontact) | **POST** /v1/contactGroups/create | Create a new Group Contact. |
|
|
110
|
+
| *GroupContactsApi* | [**deleteGroupContact**](./docs/GroupContactsApi.md#deletegroupcontact) | **DELETE** /v1/contactGroups/delete | Deletes a Group Contact. |
|
|
111
|
+
| *GroupContactsApi* | [**getGroupContact**](./docs/GroupContactsApi.md#getgroupcontact) | **GET** /v1/contactGroups/get | Get Summary of the Group Contact. |
|
|
112
|
+
| *GroupContactsApi* | [**groupContactList**](./docs/GroupContactsApi.md#groupcontactlist) | **GET** /v1/contactGroups/list | List Group Contacts. |
|
|
113
|
+
| *GroupContactsApi* | [**updateGroupContact**](./docs/GroupContactsApi.md#updategroupcontact) | **PUT** /v1/contactGroups/update | Update the Group Contact. |
|
|
108
114
|
| *IdentityVerificationApi* | [**createEmbeddedVerificationUrl**](./docs/IdentityVerificationApi.md#createembeddedverificationurl) | **POST** /v1/identityVerification/createEmbeddedVerificationUrl | Generate a URL that embeds manual ID verification for the specified document signer into your application. |
|
|
109
115
|
| *IdentityVerificationApi* | [**image**](./docs/IdentityVerificationApi.md#image) | **POST** /v1/identityVerification/image | Retrieve the uploaded ID verification document or selfie image for the specified document signer using the file ID. |
|
|
110
116
|
| *IdentityVerificationApi* | [**report**](./docs/IdentityVerificationApi.md#report) | **POST** /v1/identityVerification/report | Retrieve the ID verification report for the specified document signer. |
|
|
@@ -172,10 +178,12 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
172
178
|
- [ContactsDetails](./docs/ContactsDetails.md)
|
|
173
179
|
- [ContactsList](./docs/ContactsList.md)
|
|
174
180
|
- [CreateContactResponse](./docs/CreateContactResponse.md)
|
|
181
|
+
- [CreateGroupContactResponse](./docs/CreateGroupContactResponse.md)
|
|
175
182
|
- [CreateSenderIdentityRequest](./docs/CreateSenderIdentityRequest.md)
|
|
176
183
|
- [CreateTeamRequest](./docs/CreateTeamRequest.md)
|
|
177
184
|
- [CreateTemplateRequest](./docs/CreateTemplateRequest.md)
|
|
178
185
|
- [CreateUser](./docs/CreateUser.md)
|
|
186
|
+
- [Creators](./docs/Creators.md)
|
|
179
187
|
- [CustomDomainSettings](./docs/CustomDomainSettings.md)
|
|
180
188
|
- [CustomFieldCollection](./docs/CustomFieldCollection.md)
|
|
181
189
|
- [CustomFieldMessage](./docs/CustomFieldMessage.md)
|
|
@@ -207,6 +215,8 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
207
215
|
- [EditableDateFieldSettings](./docs/EditableDateFieldSettings.md)
|
|
208
216
|
- [EmbeddedCreateTemplateRequest](./docs/EmbeddedCreateTemplateRequest.md)
|
|
209
217
|
- [EmbeddedCustomFieldCreated](./docs/EmbeddedCustomFieldCreated.md)
|
|
218
|
+
- [EmbeddedDocumentEditJsonRequest](./docs/EmbeddedDocumentEditJsonRequest.md)
|
|
219
|
+
- [EmbeddedDocumentEdited](./docs/EmbeddedDocumentEdited.md)
|
|
210
220
|
- [EmbeddedDocumentRequest](./docs/EmbeddedDocumentRequest.md)
|
|
211
221
|
- [EmbeddedFileDetails](./docs/EmbeddedFileDetails.md)
|
|
212
222
|
- [EmbeddedFileLink](./docs/EmbeddedFileLink.md)
|
|
@@ -228,8 +238,13 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
228
238
|
- [FormFieldPermission](./docs/FormFieldPermission.md)
|
|
229
239
|
- [FormGroup](./docs/FormGroup.md)
|
|
230
240
|
- [FormulaFieldSettings](./docs/FormulaFieldSettings.md)
|
|
241
|
+
- [GetGroupContactDetails](./docs/GetGroupContactDetails.md)
|
|
242
|
+
- [GroupContact](./docs/GroupContact.md)
|
|
243
|
+
- [GroupContactDetails](./docs/GroupContactDetails.md)
|
|
244
|
+
- [GroupContactsList](./docs/GroupContactsList.md)
|
|
231
245
|
- [GroupSigner](./docs/GroupSigner.md)
|
|
232
246
|
- [GroupSignerSettings](./docs/GroupSignerSettings.md)
|
|
247
|
+
- [GroupUser](./docs/GroupUser.md)
|
|
233
248
|
- [IdDocument](./docs/IdDocument.md)
|
|
234
249
|
- [IdReport](./docs/IdReport.md)
|
|
235
250
|
- [IdVerificationDetails](./docs/IdVerificationDetails.md)
|
|
@@ -288,6 +303,7 @@ All URIs are relative to *https://api.boldsign.com*
|
|
|
288
303
|
- [TemplateTeamShare](./docs/TemplateTeamShare.md)
|
|
289
304
|
- [TextTagDefinition](./docs/TextTagDefinition.md)
|
|
290
305
|
- [TextTagOffset](./docs/TextTagOffset.md)
|
|
306
|
+
- [UpdateGroupContact](./docs/UpdateGroupContact.md)
|
|
291
307
|
- [UpdateUser](./docs/UpdateUser.md)
|
|
292
308
|
- [UpdateUserMetaData](./docs/UpdateUserMetaData.md)
|
|
293
309
|
- [UserPageDetails](./docs/UserPageDetails.md)
|
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.1.
|
|
27
|
+
export const USER_AGENT = "boldsign-node-sdk/3.1.1";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Generates an object containing form data.
|
package/api/documentApi.ts
CHANGED
|
@@ -15,7 +15,7 @@ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
15
15
|
import {
|
|
16
16
|
ObjectSerializer, Authentication, VoidAuth, Interceptor,
|
|
17
17
|
HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, RequestFile,
|
|
18
|
-
AccessCodeDetail,AccessCodeDetails,BehalfDocumentRecords,ChangeRecipient,DocumentCreated,DocumentEdited,DocumentProperties,DocumentRecords,DocumentTags,EditDocumentRequest,EmbeddedDocumentRequest,EmbeddedSendCreated,EmbeddedSigningLink,ErrorResult,ExtendExpiry,PrefillFieldRequest,ReminderMessage,RemoveAuthentication,RevokeDocument,SendForSign,TeamDocumentRecords,
|
|
18
|
+
AccessCodeDetail,AccessCodeDetails,BehalfDocumentRecords,ChangeRecipient,DocumentCreated,DocumentEdited,DocumentProperties,DocumentRecords,DocumentTags,EditDocumentRequest,EmbeddedDocumentEditJsonRequest,EmbeddedDocumentEdited,EmbeddedDocumentRequest,EmbeddedSendCreated,EmbeddedSigningLink,ErrorResult,ExtendExpiry,PrefillFieldRequest,ReminderMessage,RemoveAuthentication,RevokeDocument,SendForSign,TeamDocumentRecords,
|
|
19
19
|
} from '../model';
|
|
20
20
|
|
|
21
21
|
import {
|
|
@@ -754,6 +754,151 @@ export class DocumentApi {
|
|
|
754
754
|
}
|
|
755
755
|
|
|
756
756
|
|
|
757
|
+
reject(error);
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @summary Generates an embedded edit URL that allows the document editing process to be integrated into your application.
|
|
765
|
+
* @param documentId The document id.
|
|
766
|
+
* @param embeddedDocumentEditJsonRequest The embedded edit document request body.
|
|
767
|
+
* @param options
|
|
768
|
+
*/
|
|
769
|
+
public async createEmbeddedEditUrl (documentId: string, embeddedDocumentEditJsonRequest?: EmbeddedDocumentEditJsonRequest, options: optionsI = {headers: {}}) : Promise<EmbeddedDocumentEdited> {
|
|
770
|
+
embeddedDocumentEditJsonRequest = deserializeIfNeeded(embeddedDocumentEditJsonRequest, "EmbeddedDocumentEditJsonRequest");
|
|
771
|
+
const localVarPath = this.basePath + '/v1/document/createEmbeddedEditUrl';
|
|
772
|
+
let localVarQueryParameters: any = {};
|
|
773
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
774
|
+
const produces = ['application/json'];
|
|
775
|
+
// give precedence to 'application/json'
|
|
776
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
777
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
778
|
+
} else {
|
|
779
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
780
|
+
}
|
|
781
|
+
let localVarFormParams: any = {};
|
|
782
|
+
let localVarBodyParams: any = undefined;
|
|
783
|
+
|
|
784
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
785
|
+
if (documentId === null || documentId === undefined) {
|
|
786
|
+
throw new Error('Required parameter documentId was null or undefined when calling createEmbeddedEditUrl.');
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
if (documentId !== undefined) {
|
|
790
|
+
localVarQueryParameters['documentId'] = ObjectSerializer.serialize(documentId, "string");
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
794
|
+
|
|
795
|
+
let localVarUseFormData = false;
|
|
796
|
+
|
|
797
|
+
const result = generateFormData(embeddedDocumentEditJsonRequest, EmbeddedDocumentEditJsonRequest);
|
|
798
|
+
localVarUseFormData = result.localVarUseFormData;
|
|
799
|
+
|
|
800
|
+
let data = {};
|
|
801
|
+
if (localVarUseFormData) {
|
|
802
|
+
const formData = toFormData(result.data);
|
|
803
|
+
data = formData;
|
|
804
|
+
localVarHeaderParams = {
|
|
805
|
+
...localVarHeaderParams,
|
|
806
|
+
...formData.getHeaders(),
|
|
807
|
+
};
|
|
808
|
+
} else {
|
|
809
|
+
data = ObjectSerializer.serialize(
|
|
810
|
+
embeddedDocumentEditJsonRequest,
|
|
811
|
+
"EmbeddedDocumentEditJsonRequest"
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
let localVarRequestOptions: AxiosRequestConfig = {
|
|
816
|
+
method: 'POST',
|
|
817
|
+
params: localVarQueryParameters,
|
|
818
|
+
headers: localVarHeaderParams,
|
|
819
|
+
url: localVarPath,
|
|
820
|
+
paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
|
|
821
|
+
maxContentLength: Infinity,
|
|
822
|
+
maxBodyLength: Infinity,
|
|
823
|
+
responseType: "json",
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
827
|
+
localVarRequestOptions.data = data;
|
|
828
|
+
}
|
|
829
|
+
let authenticationPromise = Promise.resolve();
|
|
830
|
+
|
|
831
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
832
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
833
|
+
}
|
|
834
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
835
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
836
|
+
}
|
|
837
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
838
|
+
|
|
839
|
+
let interceptorPromise = authenticationPromise;
|
|
840
|
+
for (const interceptor of this.interceptors) {
|
|
841
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
return interceptorPromise.then(() => {
|
|
845
|
+
return new Promise<EmbeddedDocumentEdited>((resolve, reject) => {
|
|
846
|
+
axios.request(localVarRequestOptions)
|
|
847
|
+
.then((response) => {
|
|
848
|
+
handleSuccessfulResponse<EmbeddedDocumentEdited>(
|
|
849
|
+
resolve,
|
|
850
|
+
reject,
|
|
851
|
+
response,
|
|
852
|
+
"EmbeddedDocumentEdited",
|
|
853
|
+
);
|
|
854
|
+
}, (error: AxiosError) => {
|
|
855
|
+
if (error.response == null) {
|
|
856
|
+
reject(error);
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
if (handleErrorCodeResponse(
|
|
861
|
+
reject,
|
|
862
|
+
error.response,
|
|
863
|
+
201,
|
|
864
|
+
"EmbeddedDocumentEdited",
|
|
865
|
+
)) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
if (handleErrorCodeResponse(
|
|
869
|
+
reject,
|
|
870
|
+
error.response,
|
|
871
|
+
400,
|
|
872
|
+
"ErrorResult",
|
|
873
|
+
)) {
|
|
874
|
+
return;
|
|
875
|
+
}
|
|
876
|
+
if (handleErrorCodeResponse(
|
|
877
|
+
reject,
|
|
878
|
+
error.response,
|
|
879
|
+
401,
|
|
880
|
+
"ErrorResult",
|
|
881
|
+
)) {
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
if (handleErrorCodeResponse(
|
|
885
|
+
reject,
|
|
886
|
+
error.response,
|
|
887
|
+
403,
|
|
888
|
+
"ErrorResult",
|
|
889
|
+
)) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
if (handleErrorCodeResponse(
|
|
893
|
+
reject,
|
|
894
|
+
error.response,
|
|
895
|
+
422,
|
|
896
|
+
"ErrorResult",
|
|
897
|
+
)) {
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
|
|
757
902
|
reject(error);
|
|
758
903
|
});
|
|
759
904
|
});
|