boldsign 3.3.1 → 3.3.3
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 +0 -1
- package/api/apis.ts +1 -1
- package/api/brandingApi.ts +12 -2
- package/dist/WebhookUtility.d.ts +14 -0
- package/dist/WebhookUtility.js +119 -0
- package/dist/WebhookUtility.js.map +1 -0
- package/dist/api/apis.d.ts +29 -0
- package/dist/api/apis.js +149 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/brandingApi.d.ts +29 -0
- package/dist/api/brandingApi.js +782 -0
- package/dist/api/brandingApi.js.map +1 -0
- package/dist/api/contactsApi.d.ts +28 -0
- package/dist/api/contactsApi.js +501 -0
- package/dist/api/contactsApi.js.map +1 -0
- package/dist/api/customFieldApi.d.ts +28 -0
- package/dist/api/customFieldApi.js +519 -0
- package/dist/api/customFieldApi.js.map +1 -0
- package/dist/api/documentApi.d.ts +49 -0
- package/dist/api/documentApi.js +2346 -0
- package/dist/api/documentApi.js.map +1 -0
- package/dist/api/groupContactsApi.d.ts +28 -0
- package/dist/api/groupContactsApi.js +513 -0
- package/dist/api/groupContactsApi.js.map +1 -0
- package/dist/api/identityVerificationApi.d.ts +26 -0
- package/dist/api/identityVerificationApi.js +369 -0
- package/dist/api/identityVerificationApi.js.map +1 -0
- package/dist/api/index.d.ts +14 -0
- package/dist/api/index.js +33 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/planApi.d.ts +24 -0
- package/dist/api/planApi.js +174 -0
- package/dist/api/planApi.js.map +1 -0
- package/dist/api/senderIdentitiesApi.d.ts +30 -0
- package/dist/api/senderIdentitiesApi.js +663 -0
- package/dist/api/senderIdentitiesApi.js.map +1 -0
- package/dist/api/teamsApi.d.ts +27 -0
- package/dist/api/teamsApi.js +426 -0
- package/dist/api/teamsApi.js.map +1 -0
- package/dist/api/templateApi.d.ts +40 -0
- package/dist/api/templateApi.js +1509 -0
- package/dist/api/templateApi.js.map +1 -0
- package/dist/api/userApi.d.ts +31 -0
- package/dist/api/userApi.js +723 -0
- package/dist/api/userApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/api.js.map +1 -0
- package/dist/model/accessCodeDetail.d.ts +37 -0
- package/dist/model/accessCodeDetail.js +74 -0
- package/dist/model/accessCodeDetail.js.map +1 -0
- package/dist/model/accessCodeDetails.d.ts +17 -0
- package/dist/model/accessCodeDetails.js +28 -0
- package/dist/model/accessCodeDetails.js.map +1 -0
- package/dist/model/added.d.ts +16 -0
- package/dist/model/added.js +28 -0
- package/dist/model/added.js.map +1 -0
- package/dist/model/address.d.ts +19 -0
- package/dist/model/address.js +43 -0
- package/dist/model/address.js.map +1 -0
- package/dist/model/attachmentInfo.d.ts +17 -0
- package/dist/model/attachmentInfo.js +33 -0
- package/dist/model/attachmentInfo.js.map +1 -0
- package/dist/model/auditTrail.d.ts +120 -0
- package/dist/model/auditTrail.js +179 -0
- package/dist/model/auditTrail.js.map +1 -0
- package/dist/model/authenticationSettings.d.ts +22 -0
- package/dist/model/authenticationSettings.js +27 -0
- package/dist/model/authenticationSettings.js.map +1 -0
- package/dist/model/base64File.d.ts +15 -0
- package/dist/model/base64File.js +23 -0
- package/dist/model/base64File.js.map +1 -0
- package/dist/model/behalfDocument.d.ts +47 -0
- package/dist/model/behalfDocument.js +120 -0
- package/dist/model/behalfDocument.js.map +1 -0
- package/dist/model/behalfDocumentRecords.d.ts +17 -0
- package/dist/model/behalfDocumentRecords.js +23 -0
- package/dist/model/behalfDocumentRecords.js.map +1 -0
- package/dist/model/behalfOf.d.ts +15 -0
- package/dist/model/behalfOf.js +23 -0
- package/dist/model/behalfOf.js.map +1 -0
- package/dist/model/behalfOfWebhookModel.d.ts +15 -0
- package/dist/model/behalfOfWebhookModel.js +23 -0
- package/dist/model/behalfOfWebhookModel.js.map +1 -0
- package/dist/model/billingViewModel.d.ts +14 -0
- package/dist/model/billingViewModel.js +18 -0
- package/dist/model/billingViewModel.js.map +1 -0
- package/dist/model/brandCreated.d.ts +14 -0
- package/dist/model/brandCreated.js +18 -0
- package/dist/model/brandCreated.js.map +1 -0
- package/dist/model/brandCustomFieldDetails.d.ts +20 -0
- package/dist/model/brandCustomFieldDetails.js +46 -0
- package/dist/model/brandCustomFieldDetails.js.map +1 -0
- package/dist/model/brandingMessage.d.ts +14 -0
- package/dist/model/brandingMessage.js +18 -0
- package/dist/model/brandingMessage.js.map +1 -0
- package/dist/model/brandingRecords.d.ts +15 -0
- package/dist/model/brandingRecords.js +18 -0
- package/dist/model/brandingRecords.js.map +1 -0
- package/dist/model/changeRecipient.d.ts +22 -0
- package/dist/model/changeRecipient.js +53 -0
- package/dist/model/changeRecipient.js.map +1 -0
- package/dist/model/changeTeamRequest.d.ts +15 -0
- package/dist/model/changeTeamRequest.js +23 -0
- package/dist/model/changeTeamRequest.js.map +1 -0
- package/dist/model/checkboxValidationSettings.d.ts +24 -0
- package/dist/model/checkboxValidationSettings.js +37 -0
- package/dist/model/checkboxValidationSettings.js.map +1 -0
- package/dist/model/collaborationSettings.d.ts +17 -0
- package/dist/model/collaborationSettings.js +33 -0
- package/dist/model/collaborationSettings.js.map +1 -0
- package/dist/model/conditionalRule.d.ts +16 -0
- package/dist/model/conditionalRule.js +28 -0
- package/dist/model/conditionalRule.js.map +1 -0
- package/dist/model/contactCreated.d.ts +15 -0
- package/dist/model/contactCreated.js +23 -0
- package/dist/model/contactCreated.js.map +1 -0
- package/dist/model/contactDetails.d.ts +19 -0
- package/dist/model/contactDetails.js +38 -0
- package/dist/model/contactDetails.js.map +1 -0
- package/dist/model/contactPageDetails.d.ts +16 -0
- package/dist/model/contactPageDetails.js +28 -0
- package/dist/model/contactPageDetails.js.map +1 -0
- package/dist/model/contactsDetails.d.ts +20 -0
- package/dist/model/contactsDetails.js +43 -0
- package/dist/model/contactsDetails.js.map +1 -0
- package/dist/model/contactsList.d.ts +17 -0
- package/dist/model/contactsList.js +23 -0
- package/dist/model/contactsList.js.map +1 -0
- package/dist/model/createContactResponse.d.ts +15 -0
- package/dist/model/createContactResponse.js +18 -0
- package/dist/model/createContactResponse.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/createSenderIdentityRequest.d.ts +48 -0
- package/dist/model/createSenderIdentityRequest.js +74 -0
- package/dist/model/createSenderIdentityRequest.js.map +1 -0
- package/dist/model/createTeamRequest.d.ts +14 -0
- package/dist/model/createTeamRequest.js +18 -0
- package/dist/model/createTeamRequest.js.map +1 -0
- package/dist/model/createTemplateRequest.d.ts +59 -0
- package/dist/model/createTemplateRequest.js +182 -0
- package/dist/model/createTemplateRequest.js.map +1 -0
- package/dist/model/createUser.d.ts +26 -0
- package/dist/model/createUser.js +41 -0
- package/dist/model/createUser.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/customDomainSettings.d.ts +15 -0
- package/dist/model/customDomainSettings.js +23 -0
- package/dist/model/customDomainSettings.js.map +1 -0
- package/dist/model/customFieldCollection.d.ts +15 -0
- package/dist/model/customFieldCollection.js +18 -0
- package/dist/model/customFieldCollection.js.map +1 -0
- package/dist/model/customFieldMessage.d.ts +15 -0
- package/dist/model/customFieldMessage.js +23 -0
- package/dist/model/customFieldMessage.js.map +1 -0
- package/dist/model/customFormField.d.ts +104 -0
- package/dist/model/customFormField.js +256 -0
- package/dist/model/customFormField.js.map +1 -0
- package/dist/model/deleteCustomFieldReply.d.ts +14 -0
- package/dist/model/deleteCustomFieldReply.js +18 -0
- package/dist/model/deleteCustomFieldReply.js.map +1 -0
- package/dist/model/document.d.ts +45 -0
- package/dist/model/document.js +115 -0
- package/dist/model/document.js.map +1 -0
- package/dist/model/documentCC.d.ts +14 -0
- package/dist/model/documentCC.js +18 -0
- package/dist/model/documentCC.js.map +1 -0
- package/dist/model/documentCcDetails.d.ts +15 -0
- package/dist/model/documentCcDetails.js +26 -0
- package/dist/model/documentCcDetails.js.map +1 -0
- package/dist/model/documentCcWebhookModel.d.ts +15 -0
- package/dist/model/documentCcWebhookModel.js +23 -0
- package/dist/model/documentCcWebhookModel.js.map +1 -0
- package/dist/model/documentCreated.d.ts +14 -0
- package/dist/model/documentCreated.js +18 -0
- package/dist/model/documentCreated.js.map +1 -0
- package/dist/model/documentEdited.d.ts +20 -0
- package/dist/model/documentEdited.js +25 -0
- package/dist/model/documentEdited.js.map +1 -0
- package/dist/model/documentEvent.d.ts +68 -0
- package/dist/model/documentEvent.js +172 -0
- package/dist/model/documentEvent.js.map +1 -0
- package/dist/model/documentExpirySettings.d.ts +26 -0
- package/dist/model/documentExpirySettings.js +51 -0
- package/dist/model/documentExpirySettings.js.map +1 -0
- package/dist/model/documentFiles.d.ts +19 -0
- package/dist/model/documentFiles.js +43 -0
- package/dist/model/documentFiles.js.map +1 -0
- package/dist/model/documentFormFields.d.ts +89 -0
- package/dist/model/documentFormFields.js +260 -0
- package/dist/model/documentFormFields.js.map +1 -0
- package/dist/model/documentGroupSignerWebhookModel.d.ts +31 -0
- package/dist/model/documentGroupSignerWebhookModel.js +64 -0
- package/dist/model/documentGroupSignerWebhookModel.js.map +1 -0
- package/dist/model/documentInfo.d.ts +65 -0
- package/dist/model/documentInfo.js +83 -0
- package/dist/model/documentInfo.js.map +1 -0
- package/dist/model/documentProperties.d.ts +121 -0
- package/dist/model/documentProperties.js +304 -0
- package/dist/model/documentProperties.js.map +1 -0
- package/dist/model/documentReassign.d.ts +16 -0
- package/dist/model/documentReassign.js +31 -0
- package/dist/model/documentReassign.js.map +1 -0
- package/dist/model/documentRecords.d.ts +17 -0
- package/dist/model/documentRecords.js +23 -0
- package/dist/model/documentRecords.js.map +1 -0
- package/dist/model/documentSender.d.ts +17 -0
- package/dist/model/documentSender.js +33 -0
- package/dist/model/documentSender.js.map +1 -0
- package/dist/model/documentSenderDetail.d.ts +17 -0
- package/dist/model/documentSenderDetail.js +36 -0
- package/dist/model/documentSenderDetail.js.map +1 -0
- package/dist/model/documentSigner.d.ts +115 -0
- package/dist/model/documentSigner.js +215 -0
- package/dist/model/documentSigner.js.map +1 -0
- package/dist/model/documentSignerDetails.d.ts +131 -0
- package/dist/model/documentSignerDetails.js +267 -0
- package/dist/model/documentSignerDetails.js.map +1 -0
- package/dist/model/documentSignerWebhookModel.d.ts +55 -0
- package/dist/model/documentSignerWebhookModel.js +159 -0
- package/dist/model/documentSignerWebhookModel.js.map +1 -0
- package/dist/model/documentTags.d.ts +15 -0
- package/dist/model/documentTags.js +23 -0
- package/dist/model/documentTags.js.map +1 -0
- package/dist/model/downloadImageRequest.d.ts +19 -0
- package/dist/model/downloadImageRequest.js +43 -0
- package/dist/model/downloadImageRequest.js.map +1 -0
- package/dist/model/editDocumentFile.d.ts +25 -0
- package/dist/model/editDocumentFile.js +41 -0
- package/dist/model/editDocumentFile.js.map +1 -0
- package/dist/model/editDocumentJsonFile.d.ts +25 -0
- package/dist/model/editDocumentJsonFile.js +41 -0
- package/dist/model/editDocumentJsonFile.js.map +1 -0
- package/dist/model/editDocumentRequest.d.ts +73 -0
- package/dist/model/editDocumentRequest.js +193 -0
- package/dist/model/editDocumentRequest.js.map +1 -0
- package/dist/model/editDocumentSigner.d.ts +121 -0
- package/dist/model/editDocumentSigner.js +226 -0
- package/dist/model/editDocumentSigner.js.map +1 -0
- package/dist/model/editFormField.d.ts +116 -0
- package/dist/model/editFormField.js +288 -0
- package/dist/model/editFormField.js.map +1 -0
- package/dist/model/editSenderIdentityRequest.d.ts +46 -0
- package/dist/model/editSenderIdentityRequest.js +64 -0
- package/dist/model/editSenderIdentityRequest.js.map +1 -0
- package/dist/model/editTemplateRequest.d.ts +52 -0
- package/dist/model/editTemplateRequest.js +146 -0
- package/dist/model/editTemplateRequest.js.map +1 -0
- package/dist/model/editableDateFieldSettings.d.ts +17 -0
- package/dist/model/editableDateFieldSettings.js +33 -0
- package/dist/model/editableDateFieldSettings.js.map +1 -0
- package/dist/model/embeddedCloneDocumentJsonRequest.d.ts +54 -0
- package/dist/model/embeddedCloneDocumentJsonRequest.js +115 -0
- package/dist/model/embeddedCloneDocumentJsonRequest.js.map +1 -0
- package/dist/model/embeddedCloneTemplateJsonRequest.d.ts +54 -0
- package/dist/model/embeddedCloneTemplateJsonRequest.js +115 -0
- package/dist/model/embeddedCloneTemplateJsonRequest.js.map +1 -0
- package/dist/model/embeddedClonedDocument.d.ts +15 -0
- package/dist/model/embeddedClonedDocument.js +23 -0
- package/dist/model/embeddedClonedDocument.js.map +1 -0
- package/dist/model/embeddedClonedTemplate.d.ts +15 -0
- package/dist/model/embeddedClonedTemplate.js +23 -0
- package/dist/model/embeddedClonedTemplate.js.map +1 -0
- package/dist/model/embeddedCreateTemplateRequest.d.ts +97 -0
- package/dist/model/embeddedCreateTemplateRequest.js +274 -0
- package/dist/model/embeddedCreateTemplateRequest.js.map +1 -0
- package/dist/model/embeddedCustomFieldCreated.d.ts +14 -0
- package/dist/model/embeddedCustomFieldCreated.js +18 -0
- package/dist/model/embeddedCustomFieldCreated.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/embeddedDocumentRequest.d.ts +117 -0
- package/dist/model/embeddedDocumentRequest.js +328 -0
- package/dist/model/embeddedDocumentRequest.js.map +1 -0
- package/dist/model/embeddedFileDetails.d.ts +19 -0
- package/dist/model/embeddedFileDetails.js +43 -0
- package/dist/model/embeddedFileDetails.js.map +1 -0
- package/dist/model/embeddedFileLink.d.ts +14 -0
- package/dist/model/embeddedFileLink.js +18 -0
- package/dist/model/embeddedFileLink.js.map +1 -0
- package/dist/model/embeddedMergeTemplateFormRequest.d.ts +118 -0
- package/dist/model/embeddedMergeTemplateFormRequest.js +317 -0
- package/dist/model/embeddedMergeTemplateFormRequest.js.map +1 -0
- package/dist/model/embeddedSendCreated.d.ts +15 -0
- package/dist/model/embeddedSendCreated.js +23 -0
- package/dist/model/embeddedSendCreated.js.map +1 -0
- package/dist/model/embeddedSendTemplateFormRequest.d.ts +114 -0
- package/dist/model/embeddedSendTemplateFormRequest.js +302 -0
- package/dist/model/embeddedSendTemplateFormRequest.js.map +1 -0
- package/dist/model/embeddedSigningLink.d.ts +14 -0
- package/dist/model/embeddedSigningLink.js +18 -0
- package/dist/model/embeddedSigningLink.js.map +1 -0
- package/dist/model/embeddedTemplateCreated.d.ts +15 -0
- package/dist/model/embeddedTemplateCreated.js +23 -0
- package/dist/model/embeddedTemplateCreated.js.map +1 -0
- package/dist/model/embeddedTemplateEditRequest.d.ts +53 -0
- package/dist/model/embeddedTemplateEditRequest.js +109 -0
- package/dist/model/embeddedTemplateEditRequest.js.map +1 -0
- package/dist/model/embeddedTemplateEdited.d.ts +14 -0
- package/dist/model/embeddedTemplateEdited.js +18 -0
- package/dist/model/embeddedTemplateEdited.js.map +1 -0
- package/dist/model/embeddedTemplatePreview.d.ts +14 -0
- package/dist/model/embeddedTemplatePreview.js +18 -0
- package/dist/model/embeddedTemplatePreview.js.map +1 -0
- package/dist/model/embeddedTemplatePreviewJsonRequest.d.ts +15 -0
- package/dist/model/embeddedTemplatePreviewJsonRequest.js +23 -0
- package/dist/model/embeddedTemplatePreviewJsonRequest.js.map +1 -0
- package/dist/model/errorResponse.d.ts +15 -0
- package/dist/model/errorResponse.js +23 -0
- package/dist/model/errorResponse.js.map +1 -0
- package/dist/model/errorResult.d.ts +14 -0
- package/dist/model/errorResult.js +18 -0
- package/dist/model/errorResult.js.map +1 -0
- package/dist/model/existingFormField.d.ts +19 -0
- package/dist/model/existingFormField.js +43 -0
- package/dist/model/existingFormField.js.map +1 -0
- package/dist/model/extendExpiry.d.ts +17 -0
- package/dist/model/extendExpiry.js +33 -0
- package/dist/model/extendExpiry.js.map +1 -0
- package/dist/model/fileInfo.d.ts +17 -0
- package/dist/model/fileInfo.js +33 -0
- package/dist/model/fileInfo.js.map +1 -0
- package/dist/model/font.d.ts +36 -0
- package/dist/model/font.js +70 -0
- package/dist/model/font.js.map +1 -0
- package/dist/model/formField.d.ts +113 -0
- package/dist/model/formField.js +287 -0
- package/dist/model/formField.js.map +1 -0
- package/dist/model/formFieldPermission.d.ts +16 -0
- package/dist/model/formFieldPermission.js +28 -0
- package/dist/model/formFieldPermission.js.map +1 -0
- package/dist/model/formFieldPermissionWebhookModel.d.ts +16 -0
- package/dist/model/formFieldPermissionWebhookModel.js +28 -0
- package/dist/model/formFieldPermissionWebhookModel.js.map +1 -0
- package/dist/model/formGroup.d.ts +26 -0
- package/dist/model/formGroup.js +47 -0
- package/dist/model/formGroup.js.map +1 -0
- package/dist/model/formulaFieldSettings.d.ts +15 -0
- package/dist/model/formulaFieldSettings.js +26 -0
- package/dist/model/formulaFieldSettings.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/groupOption.d.ts +15 -0
- package/dist/model/groupOption.js +23 -0
- package/dist/model/groupOption.js.map +1 -0
- package/dist/model/groupSigner.d.ts +30 -0
- package/dist/model/groupSigner.js +59 -0
- package/dist/model/groupSigner.js.map +1 -0
- package/dist/model/groupSignerSettings.d.ts +15 -0
- package/dist/model/groupSignerSettings.js +23 -0
- package/dist/model/groupSignerSettings.js.map +1 -0
- package/dist/model/groupSignerSettingsWebhookModel.d.ts +15 -0
- package/dist/model/groupSignerSettingsWebhookModel.js +23 -0
- package/dist/model/groupSignerSettingsWebhookModel.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/iWebhookData.d.ts +90 -0
- package/dist/model/iWebhookData.js +270 -0
- package/dist/model/iWebhookData.js.map +1 -0
- package/dist/model/idDocument.d.ts +26 -0
- package/dist/model/idDocument.js +68 -0
- package/dist/model/idDocument.js.map +1 -0
- package/dist/model/idReport.d.ts +18 -0
- package/dist/model/idReport.js +33 -0
- package/dist/model/idReport.js.map +1 -0
- package/dist/model/idVerificationDetails.d.ts +23 -0
- package/dist/model/idVerificationDetails.js +63 -0
- package/dist/model/idVerificationDetails.js.map +1 -0
- package/dist/model/idVerificationSignerWebhookModel.d.ts +22 -0
- package/dist/model/idVerificationSignerWebhookModel.js +58 -0
- package/dist/model/idVerificationSignerWebhookModel.js.map +1 -0
- package/dist/model/identityVerificationEvent.d.ts +33 -0
- package/dist/model/identityVerificationEvent.js +60 -0
- package/dist/model/identityVerificationEvent.js.map +1 -0
- package/dist/model/identityVerificationSettings.d.ts +37 -0
- package/dist/model/identityVerificationSettings.js +68 -0
- package/dist/model/identityVerificationSettings.js.map +1 -0
- package/dist/model/imageInfo.d.ts +16 -0
- package/dist/model/imageInfo.js +28 -0
- package/dist/model/imageInfo.js.map +1 -0
- package/dist/model/index.d.ts +209 -0
- package/dist/model/index.js +795 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/kbaAuthenticationEvent.d.ts +33 -0
- package/dist/model/kbaAuthenticationEvent.js +60 -0
- package/dist/model/kbaAuthenticationEvent.js.map +1 -0
- package/dist/model/kbaDetails.d.ts +17 -0
- package/dist/model/kbaDetails.js +33 -0
- package/dist/model/kbaDetails.js.map +1 -0
- package/dist/model/kbaSettings.d.ts +30 -0
- package/dist/model/kbaSettings.js +44 -0
- package/dist/model/kbaSettings.js.map +1 -0
- package/dist/model/kbaSignerWebhookModel.d.ts +17 -0
- package/dist/model/kbaSignerWebhookModel.js +33 -0
- package/dist/model/kbaSignerWebhookModel.js.map +1 -0
- package/dist/model/mergeAndSendForSignForm.d.ts +81 -0
- package/dist/model/mergeAndSendForSignForm.js +238 -0
- package/dist/model/mergeAndSendForSignForm.js.map +1 -0
- package/dist/model/modelDate.d.ts +16 -0
- package/dist/model/modelDate.js +28 -0
- package/dist/model/modelDate.js.map +1 -0
- package/dist/model/modelError.d.ts +15 -0
- package/dist/model/modelError.js +23 -0
- package/dist/model/modelError.js.map +1 -0
- package/dist/model/models.d.ts +56 -0
- package/dist/model/models.js +212 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/modificationDetails.d.ts +15 -0
- package/dist/model/modificationDetails.js +23 -0
- package/dist/model/modificationDetails.js.map +1 -0
- package/dist/model/notificationSettings.d.ts +25 -0
- package/dist/model/notificationSettings.js +87 -0
- package/dist/model/notificationSettings.js.map +1 -0
- package/dist/model/pageDetails.d.ts +19 -0
- package/dist/model/pageDetails.js +43 -0
- package/dist/model/pageDetails.js.map +1 -0
- package/dist/model/phoneNumber.d.ts +15 -0
- package/dist/model/phoneNumber.js +23 -0
- package/dist/model/phoneNumber.js.map +1 -0
- package/dist/model/phoneNumberWebhookModel.d.ts +15 -0
- package/dist/model/phoneNumberWebhookModel.js +23 -0
- package/dist/model/phoneNumberWebhookModel.js.map +1 -0
- package/dist/model/prefillField.d.ts +15 -0
- package/dist/model/prefillField.js +23 -0
- package/dist/model/prefillField.js.map +1 -0
- package/dist/model/prefillFieldRequest.d.ts +16 -0
- package/dist/model/prefillFieldRequest.js +23 -0
- package/dist/model/prefillFieldRequest.js.map +1 -0
- package/dist/model/recipientChangeLog.d.ts +17 -0
- package/dist/model/recipientChangeLog.js +23 -0
- package/dist/model/recipientChangeLog.js.map +1 -0
- package/dist/model/recipientNotificationSettings.d.ts +25 -0
- package/dist/model/recipientNotificationSettings.js +86 -0
- package/dist/model/recipientNotificationSettings.js.map +1 -0
- package/dist/model/rectangle.d.ts +17 -0
- package/dist/model/rectangle.js +39 -0
- package/dist/model/rectangle.js.map +1 -0
- package/dist/model/reminderMessage.d.ts +17 -0
- package/dist/model/reminderMessage.js +28 -0
- package/dist/model/reminderMessage.js.map +1 -0
- package/dist/model/reminderSettings.d.ts +16 -0
- package/dist/model/reminderSettings.js +33 -0
- package/dist/model/reminderSettings.js.map +1 -0
- package/dist/model/removeAuthentication.d.ts +18 -0
- package/dist/model/removeAuthentication.js +33 -0
- package/dist/model/removeAuthentication.js.map +1 -0
- package/dist/model/removed.d.ts +16 -0
- package/dist/model/removed.js +28 -0
- package/dist/model/removed.js.map +1 -0
- package/dist/model/revokeDocument.d.ts +15 -0
- package/dist/model/revokeDocument.js +23 -0
- package/dist/model/revokeDocument.js.map +1 -0
- package/dist/model/role.d.ts +117 -0
- package/dist/model/role.js +220 -0
- package/dist/model/role.js.map +1 -0
- package/dist/model/roles.d.ts +114 -0
- package/dist/model/roles.js +220 -0
- package/dist/model/roles.js.map +1 -0
- package/dist/model/sendForSign.d.ts +80 -0
- package/dist/model/sendForSign.js +241 -0
- package/dist/model/sendForSign.js.map +1 -0
- package/dist/model/sendForSignFromTemplateForm.d.ts +77 -0
- package/dist/model/sendForSignFromTemplateForm.js +223 -0
- package/dist/model/sendForSignFromTemplateForm.js.map +1 -0
- package/dist/model/senderIdentityCreated.d.ts +14 -0
- package/dist/model/senderIdentityCreated.js +18 -0
- package/dist/model/senderIdentityCreated.js.map +1 -0
- package/dist/model/senderIdentityCreator.d.ts +17 -0
- package/dist/model/senderIdentityCreator.js +33 -0
- package/dist/model/senderIdentityCreator.js.map +1 -0
- package/dist/model/senderIdentityEvent.d.ts +29 -0
- package/dist/model/senderIdentityEvent.js +78 -0
- package/dist/model/senderIdentityEvent.js.map +1 -0
- package/dist/model/senderIdentityList.d.ts +17 -0
- package/dist/model/senderIdentityList.js +23 -0
- package/dist/model/senderIdentityList.js.map +1 -0
- package/dist/model/senderIdentityViewModel.d.ts +27 -0
- package/dist/model/senderIdentityViewModel.js +68 -0
- package/dist/model/senderIdentityViewModel.js.map +1 -0
- package/dist/model/signatureFrameSettings.d.ts +17 -0
- package/dist/model/signatureFrameSettings.js +39 -0
- package/dist/model/signatureFrameSettings.js.map +1 -0
- package/dist/model/signerAuthenticationSettings.d.ts +15 -0
- package/dist/model/signerAuthenticationSettings.js +23 -0
- package/dist/model/signerAuthenticationSettings.js.map +1 -0
- package/dist/model/signerAuthenticationWebhookModel.d.ts +15 -0
- package/dist/model/signerAuthenticationWebhookModel.js +23 -0
- package/dist/model/signerAuthenticationWebhookModel.js.map +1 -0
- package/dist/model/size.d.ts +15 -0
- package/dist/model/size.js +27 -0
- package/dist/model/size.js.map +1 -0
- package/dist/model/teamCreated.d.ts +14 -0
- package/dist/model/teamCreated.js +18 -0
- package/dist/model/teamCreated.js.map +1 -0
- package/dist/model/teamDocumentRecords.d.ts +17 -0
- package/dist/model/teamDocumentRecords.js +23 -0
- package/dist/model/teamDocumentRecords.js.map +1 -0
- package/dist/model/teamListResponse.d.ts +17 -0
- package/dist/model/teamListResponse.js +23 -0
- package/dist/model/teamListResponse.js.map +1 -0
- package/dist/model/teamPageDetails.d.ts +15 -0
- package/dist/model/teamPageDetails.js +23 -0
- package/dist/model/teamPageDetails.js.map +1 -0
- package/dist/model/teamResponse.d.ts +19 -0
- package/dist/model/teamResponse.js +38 -0
- package/dist/model/teamResponse.js.map +1 -0
- package/dist/model/teamUpdateRequest.d.ts +15 -0
- package/dist/model/teamUpdateRequest.js +23 -0
- package/dist/model/teamUpdateRequest.js.map +1 -0
- package/dist/model/teamUsers.d.ts +31 -0
- package/dist/model/teamUsers.js +57 -0
- package/dist/model/teamUsers.js.map +1 -0
- package/dist/model/teams.d.ts +17 -0
- package/dist/model/teams.js +33 -0
- package/dist/model/teams.js.map +1 -0
- package/dist/model/template.d.ts +52 -0
- package/dist/model/template.js +129 -0
- package/dist/model/template.js.map +1 -0
- package/dist/model/templateCC.d.ts +15 -0
- package/dist/model/templateCC.js +23 -0
- package/dist/model/templateCC.js.map +1 -0
- package/dist/model/templateCcWebhookModel.d.ts +16 -0
- package/dist/model/templateCcWebhookModel.js +28 -0
- package/dist/model/templateCcWebhookModel.js.map +1 -0
- package/dist/model/templateCreated.d.ts +14 -0
- package/dist/model/templateCreated.js +18 -0
- package/dist/model/templateCreated.js.map +1 -0
- package/dist/model/templateEvent.d.ts +56 -0
- package/dist/model/templateEvent.js +158 -0
- package/dist/model/templateEvent.js.map +1 -0
- package/dist/model/templateFiles.d.ts +17 -0
- package/dist/model/templateFiles.js +33 -0
- package/dist/model/templateFiles.js.map +1 -0
- package/dist/model/templateFormFields.d.ts +89 -0
- package/dist/model/templateFormFields.js +265 -0
- package/dist/model/templateFormFields.js.map +1 -0
- package/dist/model/templateGroupSigner.d.ts +15 -0
- package/dist/model/templateGroupSigner.js +23 -0
- package/dist/model/templateGroupSigner.js.map +1 -0
- package/dist/model/templateGroupSignerWebhookModel.d.ts +15 -0
- package/dist/model/templateGroupSignerWebhookModel.js +23 -0
- package/dist/model/templateGroupSignerWebhookModel.js.map +1 -0
- package/dist/model/templateProperties.d.ts +70 -0
- package/dist/model/templateProperties.js +192 -0
- package/dist/model/templateProperties.js.map +1 -0
- package/dist/model/templateRecords.d.ts +17 -0
- package/dist/model/templateRecords.js +23 -0
- package/dist/model/templateRecords.js.map +1 -0
- package/dist/model/templateRole.d.ts +107 -0
- package/dist/model/templateRole.js +190 -0
- package/dist/model/templateRole.js.map +1 -0
- package/dist/model/templateSender.d.ts +18 -0
- package/dist/model/templateSender.js +38 -0
- package/dist/model/templateSender.js.map +1 -0
- package/dist/model/templateSenderDetail.d.ts +15 -0
- package/dist/model/templateSenderDetail.js +23 -0
- package/dist/model/templateSenderDetail.js.map +1 -0
- package/dist/model/templateSenderDetails.d.ts +16 -0
- package/dist/model/templateSenderDetails.js +28 -0
- package/dist/model/templateSenderDetails.js.map +1 -0
- package/dist/model/templateShareErrorResponse.d.ts +17 -0
- package/dist/model/templateShareErrorResponse.js +33 -0
- package/dist/model/templateShareErrorResponse.js.map +1 -0
- package/dist/model/templateShareRequest.d.ts +15 -0
- package/dist/model/templateShareRequest.js +18 -0
- package/dist/model/templateShareRequest.js.map +1 -0
- package/dist/model/templateSharedTemplateDetail.d.ts +21 -0
- package/dist/model/templateSharedTemplateDetail.js +30 -0
- package/dist/model/templateSharedTemplateDetail.js.map +1 -0
- package/dist/model/templateSharing.d.ts +15 -0
- package/dist/model/templateSharing.js +18 -0
- package/dist/model/templateSharing.js.map +1 -0
- package/dist/model/templateSigner.d.ts +44 -0
- package/dist/model/templateSigner.js +119 -0
- package/dist/model/templateSigner.js.map +1 -0
- package/dist/model/templateSignerDetails.d.ts +67 -0
- package/dist/model/templateSignerDetails.js +150 -0
- package/dist/model/templateSignerDetails.js.map +1 -0
- package/dist/model/templateTag.d.ts +17 -0
- package/dist/model/templateTag.js +33 -0
- package/dist/model/templateTag.js.map +1 -0
- package/dist/model/templateTeamShare.d.ts +22 -0
- package/dist/model/templateTeamShare.js +31 -0
- package/dist/model/templateTeamShare.js.map +1 -0
- package/dist/model/templateTeamShareRequest.d.ts +26 -0
- package/dist/model/templateTeamShareRequest.js +40 -0
- package/dist/model/templateTeamShareRequest.js.map +1 -0
- package/dist/model/textTagDefinition.d.ts +91 -0
- package/dist/model/textTagDefinition.js +221 -0
- package/dist/model/textTagDefinition.js.map +1 -0
- package/dist/model/textTagOffset.d.ts +15 -0
- package/dist/model/textTagOffset.js +23 -0
- package/dist/model/textTagOffset.js.map +1 -0
- package/dist/model/updateGroupContact.d.ts +17 -0
- package/dist/model/updateGroupContact.js +28 -0
- package/dist/model/updateGroupContact.js.map +1 -0
- package/dist/model/updateUser.d.ts +28 -0
- package/dist/model/updateUser.js +46 -0
- package/dist/model/updateUser.js.map +1 -0
- package/dist/model/updateUserMetaData.d.ts +17 -0
- package/dist/model/updateUserMetaData.js +23 -0
- package/dist/model/updateUserMetaData.js.map +1 -0
- package/dist/model/userPageDetails.d.ts +15 -0
- package/dist/model/userPageDetails.js +23 -0
- package/dist/model/userPageDetails.js.map +1 -0
- package/dist/model/userProperties.d.ts +26 -0
- package/dist/model/userProperties.js +68 -0
- package/dist/model/userProperties.js.map +1 -0
- package/dist/model/userRecords.d.ts +17 -0
- package/dist/model/userRecords.js +23 -0
- package/dist/model/userRecords.js.map +1 -0
- package/dist/model/usersDetails.d.ts +26 -0
- package/dist/model/usersDetails.js +68 -0
- package/dist/model/usersDetails.js.map +1 -0
- package/dist/model/validation.d.ts +25 -0
- package/dist/model/validation.js +38 -0
- package/dist/model/validation.js.map +1 -0
- package/dist/model/verificationDataRequest.d.ts +18 -0
- package/dist/model/verificationDataRequest.js +38 -0
- package/dist/model/verificationDataRequest.js.map +1 -0
- package/dist/model/viewBrandDetails.d.ts +49 -0
- package/dist/model/viewBrandDetails.js +158 -0
- package/dist/model/viewBrandDetails.js.map +1 -0
- package/dist/model/viewCustomFieldDetails.d.ts +21 -0
- package/dist/model/viewCustomFieldDetails.js +48 -0
- package/dist/model/viewCustomFieldDetails.js.map +1 -0
- package/dist/model/webhookActorDetails.d.ts +25 -0
- package/dist/model/webhookActorDetails.js +34 -0
- package/dist/model/webhookActorDetails.js.map +1 -0
- package/dist/model/webhookContext.d.ts +55 -0
- package/dist/model/webhookContext.js +67 -0
- package/dist/model/webhookContext.js.map +1 -0
- package/dist/model/webhookEvent.d.ts +21 -0
- package/dist/model/webhookEvent.js +33 -0
- package/dist/model/webhookEvent.js.map +1 -0
- package/dist/model/webhookEventMetadata.d.ts +60 -0
- package/dist/model/webhookEventMetadata.js +82 -0
- package/dist/model/webhookEventMetadata.js.map +1 -0
- package/docs/BrandingApi.md +4 -2
- package/docs/ExistingFormField.md +1 -0
- package/docs/ViewBrandDetails.md +1 -0
- package/model/existingFormField.ts +9 -0
- package/model/viewBrandDetails.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.BrandingApi = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const model_1 = require("../model");
|
|
18
|
+
const _1 = require("./");
|
|
19
|
+
let defaultBasePath = 'https://api.boldsign.com';
|
|
20
|
+
class BrandingApi {
|
|
21
|
+
constructor(basePath) {
|
|
22
|
+
this._basePath = defaultBasePath;
|
|
23
|
+
this._defaultHeaders = { 'User-Agent': _1.USER_AGENT };
|
|
24
|
+
this._useQuerystring = true;
|
|
25
|
+
this.authentications = {
|
|
26
|
+
'default': new model_1.VoidAuth(),
|
|
27
|
+
'Bearer': new model_1.ApiKeyAuth('header', 'Authorization'),
|
|
28
|
+
'X-API-KEY': new model_1.ApiKeyAuth('header', 'X-API-KEY'),
|
|
29
|
+
};
|
|
30
|
+
this.interceptors = [];
|
|
31
|
+
if (basePath) {
|
|
32
|
+
this.basePath = basePath;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
set useQuerystring(value) {
|
|
36
|
+
this._useQuerystring = value;
|
|
37
|
+
}
|
|
38
|
+
set basePath(basePath) {
|
|
39
|
+
this._basePath = basePath;
|
|
40
|
+
}
|
|
41
|
+
set defaultHeaders(defaultHeaders) {
|
|
42
|
+
this._defaultHeaders = Object.assign(Object.assign({}, defaultHeaders), { "User-Agent": _1.USER_AGENT });
|
|
43
|
+
}
|
|
44
|
+
get defaultHeaders() {
|
|
45
|
+
return this._defaultHeaders;
|
|
46
|
+
}
|
|
47
|
+
get basePath() {
|
|
48
|
+
return this._basePath;
|
|
49
|
+
}
|
|
50
|
+
setDefaultAuthentication(auth) {
|
|
51
|
+
this.authentications.default = auth;
|
|
52
|
+
}
|
|
53
|
+
setApiKey(apikey) {
|
|
54
|
+
this.authentications["X-API-KEY"].apiKey = apikey;
|
|
55
|
+
}
|
|
56
|
+
setAccessToken(accessToken) {
|
|
57
|
+
this.authentications["Bearer"].apiKey = 'bearer ' + accessToken;
|
|
58
|
+
}
|
|
59
|
+
addInterceptor(interceptor) {
|
|
60
|
+
this.interceptors.push(interceptor);
|
|
61
|
+
}
|
|
62
|
+
brandList() {
|
|
63
|
+
return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
|
|
64
|
+
const localVarPath = this.basePath + '/v1/brand/list';
|
|
65
|
+
let localVarQueryParameters = {};
|
|
66
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
67
|
+
const produces = ['application/json'];
|
|
68
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
69
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
73
|
+
}
|
|
74
|
+
let localVarFormParams = {};
|
|
75
|
+
let localVarBodyParams = undefined;
|
|
76
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
77
|
+
let localVarUseFormData = false;
|
|
78
|
+
let data = {};
|
|
79
|
+
if (localVarUseFormData) {
|
|
80
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
81
|
+
data = formData;
|
|
82
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
83
|
+
}
|
|
84
|
+
let localVarRequestOptions = {
|
|
85
|
+
method: 'GET',
|
|
86
|
+
params: localVarQueryParameters,
|
|
87
|
+
headers: localVarHeaderParams,
|
|
88
|
+
url: localVarPath,
|
|
89
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
90
|
+
maxContentLength: Infinity,
|
|
91
|
+
maxBodyLength: Infinity,
|
|
92
|
+
responseType: "json",
|
|
93
|
+
};
|
|
94
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
95
|
+
localVarRequestOptions.data = data;
|
|
96
|
+
}
|
|
97
|
+
let authenticationPromise = Promise.resolve();
|
|
98
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
99
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
100
|
+
}
|
|
101
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
102
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
103
|
+
}
|
|
104
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
105
|
+
let interceptorPromise = authenticationPromise;
|
|
106
|
+
for (const interceptor of this.interceptors) {
|
|
107
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
108
|
+
}
|
|
109
|
+
return interceptorPromise.then(() => {
|
|
110
|
+
return new Promise((resolve, reject) => {
|
|
111
|
+
axios_1.default.request(localVarRequestOptions)
|
|
112
|
+
.then((response) => {
|
|
113
|
+
handleSuccessfulResponse(resolve, reject, response, "BrandingRecords");
|
|
114
|
+
}, (error) => {
|
|
115
|
+
if (error.response == null) {
|
|
116
|
+
reject(error);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "BrandingRecords")) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
reject(error);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
createBrand(brandName_1, brandLogo_1, backgroundColor_1, buttonColor_1, buttonTextColor_1, emailDisplayName_1, disclaimerDescription_1, disclaimerTitle_1, redirectUrl_1, isDefault_1, canHideTagLine_1, combineAuditTrail_1, combineAttachments_1, excludeAuditTrailFromEmail_1, emailSignedDocument_1, documentTimeZone_1, showBuiltInFormFields_1, allowCustomFieldCreation_1, showSharedCustomFields_1, hideDecline_1, hideSave_1, documentExpirySettingsExpiryDateType_1, documentExpirySettingsExpiryValue_1, documentExpirySettingsEnableDefaultExpiryAlert_1, documentExpirySettingsEnableAutoReminder_1, documentExpirySettingsReminderDays_1, documentExpirySettingsReminderCount_1, customDomainSettingsDomainName_1, customDomainSettingsFromName_1, signatureFrameSettingsEnableSignatureFrame_1, signatureFrameSettingsShowRecipientName_1, signatureFrameSettingsShowRecipientEmail_1, signatureFrameSettingsShowTimeStamp_1, hideReassign_1) {
|
|
135
|
+
return __awaiter(this, arguments, void 0, function* (brandName, brandLogo, backgroundColor, buttonColor, buttonTextColor, emailDisplayName, disclaimerDescription, disclaimerTitle, redirectUrl, isDefault, canHideTagLine, combineAuditTrail, combineAttachments, excludeAuditTrailFromEmail, emailSignedDocument, documentTimeZone, showBuiltInFormFields, allowCustomFieldCreation, showSharedCustomFields, hideDecline, hideSave, documentExpirySettingsExpiryDateType, documentExpirySettingsExpiryValue, documentExpirySettingsEnableDefaultExpiryAlert, documentExpirySettingsEnableAutoReminder, documentExpirySettingsReminderDays, documentExpirySettingsReminderCount, customDomainSettingsDomainName, customDomainSettingsFromName, signatureFrameSettingsEnableSignatureFrame, signatureFrameSettingsShowRecipientName, signatureFrameSettingsShowRecipientEmail, signatureFrameSettingsShowTimeStamp, hideReassign, options = { headers: {} }) {
|
|
136
|
+
const localVarPath = this.basePath + '/v1/brand/create';
|
|
137
|
+
let localVarQueryParameters = {};
|
|
138
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
139
|
+
const produces = ['application/json;odata.metadata=minimal;odata.streaming=true', 'application/json;odata.metadata=minimal;odata.streaming=false', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full;odata.streaming=true', 'application/json;odata.metadata=full;odata.streaming=false', 'application/json;odata.metadata=full', 'application/json;odata.metadata=none;odata.streaming=true', 'application/json;odata.metadata=none;odata.streaming=false', 'application/json;odata.metadata=none', 'application/json;odata.streaming=true', 'application/json;odata.streaming=false', 'application/json', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=full;IEEE754Compatible=false', 'application/json;odata.metadata=full;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=true', 'application/json;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.streaming=false;IEEE754Compatible=true', 'application/json;IEEE754Compatible=false', 'application/json;IEEE754Compatible=true', 'application/xml', 'text/plain', 'application/octet-stream', 'text/json'];
|
|
140
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
141
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
145
|
+
}
|
|
146
|
+
let localVarFormParams = {};
|
|
147
|
+
let localVarBodyParams = undefined;
|
|
148
|
+
if (brandName === null || brandName === undefined) {
|
|
149
|
+
throw new Error('Required parameter brandName was null or undefined when calling createBrand.');
|
|
150
|
+
}
|
|
151
|
+
if (brandLogo === null || brandLogo === undefined) {
|
|
152
|
+
throw new Error('Required parameter brandLogo was null or undefined when calling createBrand.');
|
|
153
|
+
}
|
|
154
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
155
|
+
let localVarUseFormData = false;
|
|
156
|
+
if (brandName !== undefined) {
|
|
157
|
+
localVarFormParams['BrandName'] = model_1.ObjectSerializer.serialize(brandName, "string");
|
|
158
|
+
}
|
|
159
|
+
if (brandLogo !== undefined) {
|
|
160
|
+
localVarFormParams['BrandLogo'] = brandLogo;
|
|
161
|
+
}
|
|
162
|
+
localVarUseFormData = true;
|
|
163
|
+
if (backgroundColor !== undefined) {
|
|
164
|
+
localVarFormParams['BackgroundColor'] = model_1.ObjectSerializer.serialize(backgroundColor, "string");
|
|
165
|
+
}
|
|
166
|
+
if (buttonColor !== undefined) {
|
|
167
|
+
localVarFormParams['ButtonColor'] = model_1.ObjectSerializer.serialize(buttonColor, "string");
|
|
168
|
+
}
|
|
169
|
+
if (buttonTextColor !== undefined) {
|
|
170
|
+
localVarFormParams['ButtonTextColor'] = model_1.ObjectSerializer.serialize(buttonTextColor, "string");
|
|
171
|
+
}
|
|
172
|
+
if (emailDisplayName !== undefined) {
|
|
173
|
+
localVarFormParams['EmailDisplayName'] = model_1.ObjectSerializer.serialize(emailDisplayName, "string");
|
|
174
|
+
}
|
|
175
|
+
if (disclaimerDescription !== undefined) {
|
|
176
|
+
localVarFormParams['DisclaimerDescription'] = model_1.ObjectSerializer.serialize(disclaimerDescription, "string");
|
|
177
|
+
}
|
|
178
|
+
if (disclaimerTitle !== undefined) {
|
|
179
|
+
localVarFormParams['DisclaimerTitle'] = model_1.ObjectSerializer.serialize(disclaimerTitle, "string");
|
|
180
|
+
}
|
|
181
|
+
if (redirectUrl !== undefined) {
|
|
182
|
+
localVarFormParams['RedirectUrl'] = model_1.ObjectSerializer.serialize(redirectUrl, "string");
|
|
183
|
+
}
|
|
184
|
+
if (isDefault !== undefined) {
|
|
185
|
+
localVarFormParams['IsDefault'] = model_1.ObjectSerializer.serialize(isDefault, "boolean");
|
|
186
|
+
}
|
|
187
|
+
if (canHideTagLine !== undefined) {
|
|
188
|
+
localVarFormParams['CanHideTagLine'] = model_1.ObjectSerializer.serialize(canHideTagLine, "boolean");
|
|
189
|
+
}
|
|
190
|
+
if (combineAuditTrail !== undefined) {
|
|
191
|
+
localVarFormParams['CombineAuditTrail'] = model_1.ObjectSerializer.serialize(combineAuditTrail, "boolean");
|
|
192
|
+
}
|
|
193
|
+
if (combineAttachments !== undefined) {
|
|
194
|
+
localVarFormParams['CombineAttachments'] = model_1.ObjectSerializer.serialize(combineAttachments, "boolean");
|
|
195
|
+
}
|
|
196
|
+
if (excludeAuditTrailFromEmail !== undefined) {
|
|
197
|
+
localVarFormParams['ExcludeAuditTrailFromEmail'] = model_1.ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
|
|
198
|
+
}
|
|
199
|
+
if (emailSignedDocument !== undefined) {
|
|
200
|
+
localVarFormParams['EmailSignedDocument'] = model_1.ObjectSerializer.serialize(emailSignedDocument, "string");
|
|
201
|
+
}
|
|
202
|
+
if (documentTimeZone !== undefined) {
|
|
203
|
+
localVarFormParams['DocumentTimeZone'] = model_1.ObjectSerializer.serialize(documentTimeZone, "string");
|
|
204
|
+
}
|
|
205
|
+
if (showBuiltInFormFields !== undefined) {
|
|
206
|
+
localVarFormParams['ShowBuiltInFormFields'] = model_1.ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
|
|
207
|
+
}
|
|
208
|
+
if (allowCustomFieldCreation !== undefined) {
|
|
209
|
+
localVarFormParams['AllowCustomFieldCreation'] = model_1.ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
|
|
210
|
+
}
|
|
211
|
+
if (showSharedCustomFields !== undefined) {
|
|
212
|
+
localVarFormParams['ShowSharedCustomFields'] = model_1.ObjectSerializer.serialize(showSharedCustomFields, "boolean");
|
|
213
|
+
}
|
|
214
|
+
if (hideDecline !== undefined) {
|
|
215
|
+
localVarFormParams['HideDecline'] = model_1.ObjectSerializer.serialize(hideDecline, "boolean");
|
|
216
|
+
}
|
|
217
|
+
if (hideSave !== undefined) {
|
|
218
|
+
localVarFormParams['HideSave'] = model_1.ObjectSerializer.serialize(hideSave, "boolean");
|
|
219
|
+
}
|
|
220
|
+
if (documentExpirySettingsExpiryDateType !== undefined) {
|
|
221
|
+
localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = model_1.ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
|
|
222
|
+
}
|
|
223
|
+
if (documentExpirySettingsExpiryValue !== undefined) {
|
|
224
|
+
localVarFormParams['DocumentExpirySettings.ExpiryValue'] = model_1.ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
|
|
225
|
+
}
|
|
226
|
+
if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
|
|
227
|
+
localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = model_1.ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
|
|
228
|
+
}
|
|
229
|
+
if (documentExpirySettingsEnableAutoReminder !== undefined) {
|
|
230
|
+
localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = model_1.ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
|
|
231
|
+
}
|
|
232
|
+
if (documentExpirySettingsReminderDays !== undefined) {
|
|
233
|
+
localVarFormParams['DocumentExpirySettings.ReminderDays'] = model_1.ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
|
|
234
|
+
}
|
|
235
|
+
if (documentExpirySettingsReminderCount !== undefined) {
|
|
236
|
+
localVarFormParams['DocumentExpirySettings.ReminderCount'] = model_1.ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
|
|
237
|
+
}
|
|
238
|
+
if (customDomainSettingsDomainName !== undefined) {
|
|
239
|
+
localVarFormParams['CustomDomainSettings.DomainName'] = model_1.ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
|
|
240
|
+
}
|
|
241
|
+
if (customDomainSettingsFromName !== undefined) {
|
|
242
|
+
localVarFormParams['CustomDomainSettings.FromName'] = model_1.ObjectSerializer.serialize(customDomainSettingsFromName, "string");
|
|
243
|
+
}
|
|
244
|
+
if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
|
|
245
|
+
localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
|
|
246
|
+
}
|
|
247
|
+
if (signatureFrameSettingsShowRecipientName !== undefined) {
|
|
248
|
+
localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
|
|
249
|
+
}
|
|
250
|
+
if (signatureFrameSettingsShowRecipientEmail !== undefined) {
|
|
251
|
+
localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
|
|
252
|
+
}
|
|
253
|
+
if (signatureFrameSettingsShowTimeStamp !== undefined) {
|
|
254
|
+
localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
|
|
255
|
+
}
|
|
256
|
+
if (hideReassign !== undefined) {
|
|
257
|
+
localVarFormParams['HideReassign'] = model_1.ObjectSerializer.serialize(hideReassign, "boolean");
|
|
258
|
+
}
|
|
259
|
+
let data = {};
|
|
260
|
+
if (localVarUseFormData) {
|
|
261
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
262
|
+
data = formData;
|
|
263
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
264
|
+
}
|
|
265
|
+
let localVarRequestOptions = {
|
|
266
|
+
method: 'POST',
|
|
267
|
+
params: localVarQueryParameters,
|
|
268
|
+
headers: localVarHeaderParams,
|
|
269
|
+
url: localVarPath,
|
|
270
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
271
|
+
maxContentLength: Infinity,
|
|
272
|
+
maxBodyLength: Infinity,
|
|
273
|
+
responseType: "json",
|
|
274
|
+
};
|
|
275
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
276
|
+
localVarRequestOptions.data = data;
|
|
277
|
+
}
|
|
278
|
+
let authenticationPromise = Promise.resolve();
|
|
279
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
280
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
281
|
+
}
|
|
282
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
283
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
284
|
+
}
|
|
285
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
286
|
+
let interceptorPromise = authenticationPromise;
|
|
287
|
+
for (const interceptor of this.interceptors) {
|
|
288
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
289
|
+
}
|
|
290
|
+
return interceptorPromise.then(() => {
|
|
291
|
+
return new Promise((resolve, reject) => {
|
|
292
|
+
axios_1.default.request(localVarRequestOptions)
|
|
293
|
+
.then((response) => {
|
|
294
|
+
handleSuccessfulResponse(resolve, reject, response, "BrandCreated");
|
|
295
|
+
}, (error) => {
|
|
296
|
+
if (error.response == null) {
|
|
297
|
+
reject(error);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "BrandCreated")) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
if (handleErrorCodeResponse(reject, error.response, 422, "ErrorResult")) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
reject(error);
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
deleteBrand(brandId_1) {
|
|
319
|
+
return __awaiter(this, arguments, void 0, function* (brandId, options = { headers: {} }) {
|
|
320
|
+
const localVarPath = this.basePath + '/v1/brand/delete';
|
|
321
|
+
let localVarQueryParameters = {};
|
|
322
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
323
|
+
const produces = ['application/json;odata.metadata=minimal;odata.streaming=true', 'application/json;odata.metadata=minimal;odata.streaming=false', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full;odata.streaming=true', 'application/json;odata.metadata=full;odata.streaming=false', 'application/json;odata.metadata=full', 'application/json;odata.metadata=none;odata.streaming=true', 'application/json;odata.metadata=none;odata.streaming=false', 'application/json;odata.metadata=none', 'application/json;odata.streaming=true', 'application/json;odata.streaming=false', 'application/json', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=full;IEEE754Compatible=false', 'application/json;odata.metadata=full;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=true', 'application/json;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.streaming=false;IEEE754Compatible=true', 'application/json;IEEE754Compatible=false', 'application/json;IEEE754Compatible=true', 'application/xml', 'text/plain', 'application/octet-stream', 'text/json'];
|
|
324
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
325
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
329
|
+
}
|
|
330
|
+
let localVarFormParams = {};
|
|
331
|
+
let localVarBodyParams = undefined;
|
|
332
|
+
if (brandId === null || brandId === undefined) {
|
|
333
|
+
throw new Error('Required parameter brandId was null or undefined when calling deleteBrand.');
|
|
334
|
+
}
|
|
335
|
+
if (brandId !== undefined) {
|
|
336
|
+
localVarQueryParameters['brandId'] = model_1.ObjectSerializer.serialize(brandId, "string");
|
|
337
|
+
}
|
|
338
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
339
|
+
let localVarUseFormData = false;
|
|
340
|
+
let data = {};
|
|
341
|
+
if (localVarUseFormData) {
|
|
342
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
343
|
+
data = formData;
|
|
344
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
345
|
+
}
|
|
346
|
+
let localVarRequestOptions = {
|
|
347
|
+
method: 'DELETE',
|
|
348
|
+
params: localVarQueryParameters,
|
|
349
|
+
headers: localVarHeaderParams,
|
|
350
|
+
url: localVarPath,
|
|
351
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
352
|
+
maxContentLength: Infinity,
|
|
353
|
+
maxBodyLength: Infinity,
|
|
354
|
+
responseType: "json",
|
|
355
|
+
};
|
|
356
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
357
|
+
localVarRequestOptions.data = data;
|
|
358
|
+
}
|
|
359
|
+
let authenticationPromise = Promise.resolve();
|
|
360
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
361
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
362
|
+
}
|
|
363
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
364
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
365
|
+
}
|
|
366
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
367
|
+
let interceptorPromise = authenticationPromise;
|
|
368
|
+
for (const interceptor of this.interceptors) {
|
|
369
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
370
|
+
}
|
|
371
|
+
return interceptorPromise.then(() => {
|
|
372
|
+
return new Promise((resolve, reject) => {
|
|
373
|
+
axios_1.default.request(localVarRequestOptions)
|
|
374
|
+
.then((response) => {
|
|
375
|
+
handleSuccessfulResponse(resolve, reject, response, "BrandingMessage");
|
|
376
|
+
}, (error) => {
|
|
377
|
+
if (error.response == null) {
|
|
378
|
+
reject(error);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "BrandingMessage")) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
reject(error);
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
editBrand(brandId_1, brandName_1, brandLogo_1, backgroundColor_1, buttonColor_1, buttonTextColor_1, emailDisplayName_1, disclaimerDescription_1, disclaimerTitle_1, redirectUrl_1, isDefault_1, canHideTagLine_1, combineAuditTrail_1, combineAttachments_1, excludeAuditTrailFromEmail_1, emailSignedDocument_1, documentTimeZone_1, showBuiltInFormFields_1, allowCustomFieldCreation_1, showSharedCustomFields_1, hideDecline_1, hideSave_1, documentExpirySettingsExpiryDateType_1, documentExpirySettingsExpiryValue_1, documentExpirySettingsEnableDefaultExpiryAlert_1, documentExpirySettingsEnableAutoReminder_1, documentExpirySettingsReminderDays_1, documentExpirySettingsReminderCount_1, customDomainSettingsDomainName_1, customDomainSettingsFromName_1, signatureFrameSettingsEnableSignatureFrame_1, signatureFrameSettingsShowRecipientName_1, signatureFrameSettingsShowRecipientEmail_1, signatureFrameSettingsShowTimeStamp_1, hideReassign_1) {
|
|
397
|
+
return __awaiter(this, arguments, void 0, function* (brandId, brandName, brandLogo, backgroundColor, buttonColor, buttonTextColor, emailDisplayName, disclaimerDescription, disclaimerTitle, redirectUrl, isDefault, canHideTagLine, combineAuditTrail, combineAttachments, excludeAuditTrailFromEmail, emailSignedDocument, documentTimeZone, showBuiltInFormFields, allowCustomFieldCreation, showSharedCustomFields, hideDecline, hideSave, documentExpirySettingsExpiryDateType, documentExpirySettingsExpiryValue, documentExpirySettingsEnableDefaultExpiryAlert, documentExpirySettingsEnableAutoReminder, documentExpirySettingsReminderDays, documentExpirySettingsReminderCount, customDomainSettingsDomainName, customDomainSettingsFromName, signatureFrameSettingsEnableSignatureFrame, signatureFrameSettingsShowRecipientName, signatureFrameSettingsShowRecipientEmail, signatureFrameSettingsShowTimeStamp, hideReassign, options = { headers: {} }) {
|
|
398
|
+
const localVarPath = this.basePath + '/v1/brand/edit';
|
|
399
|
+
let localVarQueryParameters = {};
|
|
400
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
401
|
+
const produces = ['application/json;odata.metadata=minimal;odata.streaming=true', 'application/json;odata.metadata=minimal;odata.streaming=false', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full;odata.streaming=true', 'application/json;odata.metadata=full;odata.streaming=false', 'application/json;odata.metadata=full', 'application/json;odata.metadata=none;odata.streaming=true', 'application/json;odata.metadata=none;odata.streaming=false', 'application/json;odata.metadata=none', 'application/json;odata.streaming=true', 'application/json;odata.streaming=false', 'application/json', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=full;IEEE754Compatible=false', 'application/json;odata.metadata=full;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=true', 'application/json;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.streaming=false;IEEE754Compatible=true', 'application/json;IEEE754Compatible=false', 'application/json;IEEE754Compatible=true', 'application/xml', 'text/plain', 'application/octet-stream', 'text/json'];
|
|
402
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
403
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
407
|
+
}
|
|
408
|
+
let localVarFormParams = {};
|
|
409
|
+
let localVarBodyParams = undefined;
|
|
410
|
+
if (brandId === null || brandId === undefined) {
|
|
411
|
+
throw new Error('Required parameter brandId was null or undefined when calling editBrand.');
|
|
412
|
+
}
|
|
413
|
+
if (brandId !== undefined) {
|
|
414
|
+
localVarQueryParameters['brandId'] = model_1.ObjectSerializer.serialize(brandId, "string");
|
|
415
|
+
}
|
|
416
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
417
|
+
let localVarUseFormData = false;
|
|
418
|
+
if (brandName !== undefined) {
|
|
419
|
+
localVarFormParams['BrandName'] = model_1.ObjectSerializer.serialize(brandName, "string");
|
|
420
|
+
}
|
|
421
|
+
if (brandLogo !== undefined) {
|
|
422
|
+
localVarFormParams['BrandLogo'] = brandLogo;
|
|
423
|
+
}
|
|
424
|
+
localVarUseFormData = true;
|
|
425
|
+
if (backgroundColor !== undefined) {
|
|
426
|
+
localVarFormParams['BackgroundColor'] = model_1.ObjectSerializer.serialize(backgroundColor, "string");
|
|
427
|
+
}
|
|
428
|
+
if (buttonColor !== undefined) {
|
|
429
|
+
localVarFormParams['ButtonColor'] = model_1.ObjectSerializer.serialize(buttonColor, "string");
|
|
430
|
+
}
|
|
431
|
+
if (buttonTextColor !== undefined) {
|
|
432
|
+
localVarFormParams['ButtonTextColor'] = model_1.ObjectSerializer.serialize(buttonTextColor, "string");
|
|
433
|
+
}
|
|
434
|
+
if (emailDisplayName !== undefined) {
|
|
435
|
+
localVarFormParams['EmailDisplayName'] = model_1.ObjectSerializer.serialize(emailDisplayName, "string");
|
|
436
|
+
}
|
|
437
|
+
if (disclaimerDescription !== undefined) {
|
|
438
|
+
localVarFormParams['DisclaimerDescription'] = model_1.ObjectSerializer.serialize(disclaimerDescription, "string");
|
|
439
|
+
}
|
|
440
|
+
if (disclaimerTitle !== undefined) {
|
|
441
|
+
localVarFormParams['DisclaimerTitle'] = model_1.ObjectSerializer.serialize(disclaimerTitle, "string");
|
|
442
|
+
}
|
|
443
|
+
if (redirectUrl !== undefined) {
|
|
444
|
+
localVarFormParams['RedirectUrl'] = model_1.ObjectSerializer.serialize(redirectUrl, "string");
|
|
445
|
+
}
|
|
446
|
+
if (isDefault !== undefined) {
|
|
447
|
+
localVarFormParams['IsDefault'] = model_1.ObjectSerializer.serialize(isDefault, "boolean");
|
|
448
|
+
}
|
|
449
|
+
if (canHideTagLine !== undefined) {
|
|
450
|
+
localVarFormParams['CanHideTagLine'] = model_1.ObjectSerializer.serialize(canHideTagLine, "boolean");
|
|
451
|
+
}
|
|
452
|
+
if (combineAuditTrail !== undefined) {
|
|
453
|
+
localVarFormParams['CombineAuditTrail'] = model_1.ObjectSerializer.serialize(combineAuditTrail, "boolean");
|
|
454
|
+
}
|
|
455
|
+
if (combineAttachments !== undefined) {
|
|
456
|
+
localVarFormParams['CombineAttachments'] = model_1.ObjectSerializer.serialize(combineAttachments, "boolean");
|
|
457
|
+
}
|
|
458
|
+
if (excludeAuditTrailFromEmail !== undefined) {
|
|
459
|
+
localVarFormParams['ExcludeAuditTrailFromEmail'] = model_1.ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
|
|
460
|
+
}
|
|
461
|
+
if (emailSignedDocument !== undefined) {
|
|
462
|
+
localVarFormParams['EmailSignedDocument'] = model_1.ObjectSerializer.serialize(emailSignedDocument, "string");
|
|
463
|
+
}
|
|
464
|
+
if (documentTimeZone !== undefined) {
|
|
465
|
+
localVarFormParams['DocumentTimeZone'] = model_1.ObjectSerializer.serialize(documentTimeZone, "string");
|
|
466
|
+
}
|
|
467
|
+
if (showBuiltInFormFields !== undefined) {
|
|
468
|
+
localVarFormParams['ShowBuiltInFormFields'] = model_1.ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
|
|
469
|
+
}
|
|
470
|
+
if (allowCustomFieldCreation !== undefined) {
|
|
471
|
+
localVarFormParams['AllowCustomFieldCreation'] = model_1.ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
|
|
472
|
+
}
|
|
473
|
+
if (showSharedCustomFields !== undefined) {
|
|
474
|
+
localVarFormParams['ShowSharedCustomFields'] = model_1.ObjectSerializer.serialize(showSharedCustomFields, "boolean");
|
|
475
|
+
}
|
|
476
|
+
if (hideDecline !== undefined) {
|
|
477
|
+
localVarFormParams['HideDecline'] = model_1.ObjectSerializer.serialize(hideDecline, "boolean");
|
|
478
|
+
}
|
|
479
|
+
if (hideSave !== undefined) {
|
|
480
|
+
localVarFormParams['HideSave'] = model_1.ObjectSerializer.serialize(hideSave, "boolean");
|
|
481
|
+
}
|
|
482
|
+
if (documentExpirySettingsExpiryDateType !== undefined) {
|
|
483
|
+
localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = model_1.ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
|
|
484
|
+
}
|
|
485
|
+
if (documentExpirySettingsExpiryValue !== undefined) {
|
|
486
|
+
localVarFormParams['DocumentExpirySettings.ExpiryValue'] = model_1.ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
|
|
487
|
+
}
|
|
488
|
+
if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
|
|
489
|
+
localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = model_1.ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
|
|
490
|
+
}
|
|
491
|
+
if (documentExpirySettingsEnableAutoReminder !== undefined) {
|
|
492
|
+
localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = model_1.ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
|
|
493
|
+
}
|
|
494
|
+
if (documentExpirySettingsReminderDays !== undefined) {
|
|
495
|
+
localVarFormParams['DocumentExpirySettings.ReminderDays'] = model_1.ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
|
|
496
|
+
}
|
|
497
|
+
if (documentExpirySettingsReminderCount !== undefined) {
|
|
498
|
+
localVarFormParams['DocumentExpirySettings.ReminderCount'] = model_1.ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
|
|
499
|
+
}
|
|
500
|
+
if (customDomainSettingsDomainName !== undefined) {
|
|
501
|
+
localVarFormParams['CustomDomainSettings.DomainName'] = model_1.ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
|
|
502
|
+
}
|
|
503
|
+
if (customDomainSettingsFromName !== undefined) {
|
|
504
|
+
localVarFormParams['CustomDomainSettings.FromName'] = model_1.ObjectSerializer.serialize(customDomainSettingsFromName, "string");
|
|
505
|
+
}
|
|
506
|
+
if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
|
|
507
|
+
localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
|
|
508
|
+
}
|
|
509
|
+
if (signatureFrameSettingsShowRecipientName !== undefined) {
|
|
510
|
+
localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
|
|
511
|
+
}
|
|
512
|
+
if (signatureFrameSettingsShowRecipientEmail !== undefined) {
|
|
513
|
+
localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
|
|
514
|
+
}
|
|
515
|
+
if (signatureFrameSettingsShowTimeStamp !== undefined) {
|
|
516
|
+
localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = model_1.ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
|
|
517
|
+
}
|
|
518
|
+
if (hideReassign !== undefined) {
|
|
519
|
+
localVarFormParams['HideReassign'] = model_1.ObjectSerializer.serialize(hideReassign, "boolean");
|
|
520
|
+
}
|
|
521
|
+
let data = {};
|
|
522
|
+
if (localVarUseFormData) {
|
|
523
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
524
|
+
data = formData;
|
|
525
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
526
|
+
}
|
|
527
|
+
let localVarRequestOptions = {
|
|
528
|
+
method: 'POST',
|
|
529
|
+
params: localVarQueryParameters,
|
|
530
|
+
headers: localVarHeaderParams,
|
|
531
|
+
url: localVarPath,
|
|
532
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
533
|
+
maxContentLength: Infinity,
|
|
534
|
+
maxBodyLength: Infinity,
|
|
535
|
+
responseType: "json",
|
|
536
|
+
};
|
|
537
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
538
|
+
localVarRequestOptions.data = data;
|
|
539
|
+
}
|
|
540
|
+
let authenticationPromise = Promise.resolve();
|
|
541
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
542
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
543
|
+
}
|
|
544
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
545
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
546
|
+
}
|
|
547
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
548
|
+
let interceptorPromise = authenticationPromise;
|
|
549
|
+
for (const interceptor of this.interceptors) {
|
|
550
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
551
|
+
}
|
|
552
|
+
return interceptorPromise.then(() => {
|
|
553
|
+
return new Promise((resolve, reject) => {
|
|
554
|
+
axios_1.default.request(localVarRequestOptions)
|
|
555
|
+
.then((response) => {
|
|
556
|
+
handleSuccessfulResponse(resolve, reject, response, "BrandCreated");
|
|
557
|
+
}, (error) => {
|
|
558
|
+
if (error.response == null) {
|
|
559
|
+
reject(error);
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "BrandCreated")) {
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
if (handleErrorCodeResponse(reject, error.response, 422, "ErrorResult")) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
reject(error);
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
getBrand(brandId_1) {
|
|
581
|
+
return __awaiter(this, arguments, void 0, function* (brandId, options = { headers: {} }) {
|
|
582
|
+
const localVarPath = this.basePath + '/v1/brand/get';
|
|
583
|
+
let localVarQueryParameters = {};
|
|
584
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
585
|
+
const produces = ['application/json'];
|
|
586
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
587
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
591
|
+
}
|
|
592
|
+
let localVarFormParams = {};
|
|
593
|
+
let localVarBodyParams = undefined;
|
|
594
|
+
if (brandId === null || brandId === undefined) {
|
|
595
|
+
throw new Error('Required parameter brandId was null or undefined when calling getBrand.');
|
|
596
|
+
}
|
|
597
|
+
if (brandId !== undefined) {
|
|
598
|
+
localVarQueryParameters['brandId'] = model_1.ObjectSerializer.serialize(brandId, "string");
|
|
599
|
+
}
|
|
600
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
601
|
+
let localVarUseFormData = false;
|
|
602
|
+
let data = {};
|
|
603
|
+
if (localVarUseFormData) {
|
|
604
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
605
|
+
data = formData;
|
|
606
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
607
|
+
}
|
|
608
|
+
let localVarRequestOptions = {
|
|
609
|
+
method: 'GET',
|
|
610
|
+
params: localVarQueryParameters,
|
|
611
|
+
headers: localVarHeaderParams,
|
|
612
|
+
url: localVarPath,
|
|
613
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
614
|
+
maxContentLength: Infinity,
|
|
615
|
+
maxBodyLength: Infinity,
|
|
616
|
+
responseType: "json",
|
|
617
|
+
};
|
|
618
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
619
|
+
localVarRequestOptions.data = data;
|
|
620
|
+
}
|
|
621
|
+
let authenticationPromise = Promise.resolve();
|
|
622
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
623
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
624
|
+
}
|
|
625
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
626
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
627
|
+
}
|
|
628
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
629
|
+
let interceptorPromise = authenticationPromise;
|
|
630
|
+
for (const interceptor of this.interceptors) {
|
|
631
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
632
|
+
}
|
|
633
|
+
return interceptorPromise.then(() => {
|
|
634
|
+
return new Promise((resolve, reject) => {
|
|
635
|
+
axios_1.default.request(localVarRequestOptions)
|
|
636
|
+
.then((response) => {
|
|
637
|
+
handleSuccessfulResponse(resolve, reject, response, "ViewBrandDetails");
|
|
638
|
+
}, (error) => {
|
|
639
|
+
if (error.response == null) {
|
|
640
|
+
reject(error);
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "ViewBrandDetails")) {
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
if (handleErrorCodeResponse(reject, error.response, 422, "ErrorResult")) {
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
reject(error);
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
});
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
resetDefaultBrand(brandId_1) {
|
|
662
|
+
return __awaiter(this, arguments, void 0, function* (brandId, options = { headers: {} }) {
|
|
663
|
+
const localVarPath = this.basePath + '/v1/brand/resetdefault';
|
|
664
|
+
let localVarQueryParameters = {};
|
|
665
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
666
|
+
const produces = ['application/json;odata.metadata=minimal;odata.streaming=true', 'application/json;odata.metadata=minimal;odata.streaming=false', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full;odata.streaming=true', 'application/json;odata.metadata=full;odata.streaming=false', 'application/json;odata.metadata=full', 'application/json;odata.metadata=none;odata.streaming=true', 'application/json;odata.metadata=none;odata.streaming=false', 'application/json;odata.metadata=none', 'application/json;odata.streaming=true', 'application/json;odata.streaming=false', 'application/json', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=minimal;IEEE754Compatible=false', 'application/json;odata.metadata=minimal;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=full;IEEE754Compatible=false', 'application/json;odata.metadata=full;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=true', 'application/json;odata.metadata=none;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=false', 'application/json;odata.metadata=none;IEEE754Compatible=true', 'application/json;odata.streaming=true;IEEE754Compatible=false', 'application/json;odata.streaming=true;IEEE754Compatible=true', 'application/json;odata.streaming=false;IEEE754Compatible=false', 'application/json;odata.streaming=false;IEEE754Compatible=true', 'application/json;IEEE754Compatible=false', 'application/json;IEEE754Compatible=true', 'application/xml', 'text/plain', 'application/octet-stream', 'text/json'];
|
|
667
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
668
|
+
localVarHeaderParams['content-type'] = 'application/json';
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
localVarHeaderParams['content-type'] = produces.join(',');
|
|
672
|
+
}
|
|
673
|
+
let localVarFormParams = {};
|
|
674
|
+
let localVarBodyParams = undefined;
|
|
675
|
+
if (brandId === null || brandId === undefined) {
|
|
676
|
+
throw new Error('Required parameter brandId was null or undefined when calling resetDefaultBrand.');
|
|
677
|
+
}
|
|
678
|
+
if (brandId !== undefined) {
|
|
679
|
+
localVarQueryParameters['brandId'] = model_1.ObjectSerializer.serialize(brandId, "string");
|
|
680
|
+
}
|
|
681
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
682
|
+
let localVarUseFormData = false;
|
|
683
|
+
let data = {};
|
|
684
|
+
if (localVarUseFormData) {
|
|
685
|
+
const formData = (0, _1.toFormData)(localVarFormParams);
|
|
686
|
+
data = formData;
|
|
687
|
+
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
|
|
688
|
+
}
|
|
689
|
+
let localVarRequestOptions = {
|
|
690
|
+
method: 'POST',
|
|
691
|
+
params: localVarQueryParameters,
|
|
692
|
+
headers: localVarHeaderParams,
|
|
693
|
+
url: localVarPath,
|
|
694
|
+
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
|
|
695
|
+
maxContentLength: Infinity,
|
|
696
|
+
maxBodyLength: Infinity,
|
|
697
|
+
responseType: "json",
|
|
698
|
+
};
|
|
699
|
+
if (localVarRequestOptions.method !== 'GET') {
|
|
700
|
+
localVarRequestOptions.data = data;
|
|
701
|
+
}
|
|
702
|
+
let authenticationPromise = Promise.resolve();
|
|
703
|
+
if (this.authentications["X-API-KEY"].apiKey) {
|
|
704
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
|
|
705
|
+
}
|
|
706
|
+
if (this.authentications["Bearer"].apiKey) {
|
|
707
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
|
|
708
|
+
}
|
|
709
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
710
|
+
let interceptorPromise = authenticationPromise;
|
|
711
|
+
for (const interceptor of this.interceptors) {
|
|
712
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
713
|
+
}
|
|
714
|
+
return interceptorPromise.then(() => {
|
|
715
|
+
return new Promise((resolve, reject) => {
|
|
716
|
+
axios_1.default.request(localVarRequestOptions)
|
|
717
|
+
.then((response) => {
|
|
718
|
+
handleSuccessfulResponse(resolve, reject, response, "BrandingMessage");
|
|
719
|
+
}, (error) => {
|
|
720
|
+
if (error.response == null) {
|
|
721
|
+
reject(error);
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
if (handleErrorCodeResponse(reject, error.response, 200, "BrandingMessage")) {
|
|
725
|
+
return;
|
|
726
|
+
}
|
|
727
|
+
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
reject(error);
|
|
734
|
+
});
|
|
735
|
+
});
|
|
736
|
+
});
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
exports.BrandingApi = BrandingApi;
|
|
741
|
+
function deserializeIfNeeded(obj, classname) {
|
|
742
|
+
if (obj !== null && obj !== undefined && obj.constructor.name !== classname) {
|
|
743
|
+
return model_1.ObjectSerializer.deserialize(obj, classname);
|
|
744
|
+
}
|
|
745
|
+
return obj;
|
|
746
|
+
}
|
|
747
|
+
function handleSuccessfulResponse(resolve, reject, response, returnType) {
|
|
748
|
+
let body = response.data;
|
|
749
|
+
if (response.status &&
|
|
750
|
+
response.status >= 200 &&
|
|
751
|
+
response.status <= 299) {
|
|
752
|
+
if (returnType) {
|
|
753
|
+
body = model_1.ObjectSerializer.deserialize(body, returnType);
|
|
754
|
+
}
|
|
755
|
+
resolve(body);
|
|
756
|
+
}
|
|
757
|
+
else {
|
|
758
|
+
reject(new _1.HttpError(response, body, response.status));
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
function handleErrorCodeResponse(reject, response, code, returnType) {
|
|
762
|
+
if (response.status !== code) {
|
|
763
|
+
return false;
|
|
764
|
+
}
|
|
765
|
+
let body = response.data;
|
|
766
|
+
if (code === 401) {
|
|
767
|
+
body = "Unauthorized request (401): Invalid authentication.";
|
|
768
|
+
}
|
|
769
|
+
reject(new _1.HttpError(response, body, response.status));
|
|
770
|
+
return true;
|
|
771
|
+
}
|
|
772
|
+
function handleErrorRangeResponse(reject, response, code, returnType) {
|
|
773
|
+
let rangeCodeLeft = Number(code[0] + "00");
|
|
774
|
+
let rangeCodeRight = Number(code[0] + "99");
|
|
775
|
+
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
|
|
776
|
+
const body = model_1.ObjectSerializer.deserialize(response.data, returnType);
|
|
777
|
+
reject(new _1.HttpError(response, body, response.status));
|
|
778
|
+
return true;
|
|
779
|
+
}
|
|
780
|
+
return false;
|
|
781
|
+
}
|
|
782
|
+
//# sourceMappingURL=brandingApi.js.map
|