boldsign 3.1.4 → 3.2.0-beta.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.
Files changed (1424) hide show
  1. package/.openapi-generator/FILES +222 -184
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +23 -23
  4. package/LICENSE +21 -21
  5. package/README.md +386 -345
  6. package/WebhookUtility.ts +145 -0
  7. package/api/apis.ts +208 -208
  8. package/api/brandingApi.ts +1233 -1233
  9. package/api/contactsApi.ts +772 -772
  10. package/api/customFieldApi.ts +817 -817
  11. package/api/documentApi.ts +3604 -3470
  12. package/api/groupContactsApi.ts +795 -779
  13. package/api/identityVerificationApi.ts +586 -586
  14. package/api/index.ts +38 -38
  15. package/api/planApi.ts +274 -274
  16. package/api/senderIdentitiesApi.ts +1017 -1017
  17. package/api/teamsApi.ts +661 -661
  18. package/api/templateApi.ts +2317 -2046
  19. package/api/userApi.ts +1094 -1094
  20. package/api.ts +3 -3
  21. package/auth/OAuthClient.ts +137 -0
  22. package/auth/OAuthToken.ts +17 -0
  23. package/auth/PKCEHelper.ts +36 -0
  24. package/docs/AccessCodeDetail.md +20 -19
  25. package/docs/AccessCodeDetails.md +13 -13
  26. package/docs/Added.md +13 -13
  27. package/docs/Address.md +16 -16
  28. package/docs/AttachmentInfo.md +14 -14
  29. package/docs/AuditTrail.md +25 -25
  30. package/docs/AuthenticationSettings.md +11 -11
  31. package/docs/Base64File.md +12 -12
  32. package/docs/BehalfDocument.md +29 -29
  33. package/docs/BehalfDocumentRecords.md +12 -12
  34. package/docs/BehalfOf.md +12 -12
  35. package/docs/BehalfOfWebhookModel.md +12 -0
  36. package/docs/BillingViewModel.md +11 -11
  37. package/docs/BrandCreated.md +11 -11
  38. package/docs/BrandCustomFieldDetails.md +16 -16
  39. package/docs/BrandingApi.md +268 -268
  40. package/docs/BrandingMessage.md +11 -11
  41. package/docs/BrandingRecords.md +11 -11
  42. package/docs/ChangeRecipient.md +18 -18
  43. package/docs/ChangeTeamRequest.md +12 -12
  44. package/docs/CheckboxValidationSettings.md +13 -0
  45. package/docs/CollaborationSettings.md +14 -14
  46. package/docs/ConditionalRule.md +13 -13
  47. package/docs/ContactCreated.md +12 -12
  48. package/docs/ContactDetails.md +15 -15
  49. package/docs/ContactPageDetails.md +13 -13
  50. package/docs/ContactsApi.md +176 -176
  51. package/docs/ContactsDetails.md +16 -16
  52. package/docs/ContactsList.md +12 -12
  53. package/docs/CreateContactResponse.md +11 -11
  54. package/docs/CreateGroupContactResponse.md +12 -12
  55. package/docs/CreateSenderIdentityRequest.md +17 -17
  56. package/docs/CreateTeamRequest.md +11 -11
  57. package/docs/CreateTemplateRequest.md +40 -39
  58. package/docs/CreateUser.md +14 -14
  59. package/docs/Creators.md +12 -12
  60. package/docs/CustomDomainSettings.md +12 -12
  61. package/docs/CustomFieldApi.md +174 -174
  62. package/docs/CustomFieldCollection.md +11 -11
  63. package/docs/CustomFieldMessage.md +12 -12
  64. package/docs/CustomFormField.md +46 -44
  65. package/docs/Date.md +13 -13
  66. package/docs/DeleteCustomFieldReply.md +11 -11
  67. package/docs/Document.md +28 -28
  68. package/docs/DocumentApi.md +926 -891
  69. package/docs/DocumentCC.md +11 -11
  70. package/docs/DocumentCcDetails.md +12 -12
  71. package/docs/DocumentCcWebhookModel.md +12 -0
  72. package/docs/DocumentCreated.md +11 -11
  73. package/docs/DocumentEdited.md +11 -11
  74. package/docs/DocumentEvent.md +37 -0
  75. package/docs/DocumentExpirySettings.md +16 -16
  76. package/docs/DocumentFiles.md +16 -16
  77. package/docs/DocumentFormFields.md +53 -53
  78. package/docs/DocumentGroupSignerWebhookModel.md +18 -0
  79. package/docs/DocumentInfo.md +14 -14
  80. package/docs/DocumentProperties.md +58 -54
  81. package/docs/DocumentReassign.md +13 -13
  82. package/docs/DocumentRecords.md +12 -12
  83. package/docs/DocumentSender.md +14 -0
  84. package/docs/DocumentSenderDetail.md +14 -14
  85. package/docs/DocumentSigner.md +35 -34
  86. package/docs/DocumentSignerDetails.md +42 -41
  87. package/docs/DocumentSignerWebhookModel.md +37 -0
  88. package/docs/DocumentTags.md +12 -12
  89. package/docs/DownloadImageRequest.md +16 -16
  90. package/docs/EditDocumentFile.md +14 -14
  91. package/docs/EditDocumentRequest.md +42 -41
  92. package/docs/EditDocumentSigner.md +36 -35
  93. package/docs/EditFormField.md +52 -52
  94. package/docs/EditSenderIdentityRequest.md +15 -15
  95. package/docs/EditTemplateRequest.md +35 -34
  96. package/docs/EditableDateFieldSettings.md +14 -14
  97. package/docs/EmbeddedCloneDocumentJsonRequest.md +22 -0
  98. package/docs/EmbeddedCloneTemplateJsonRequest.md +22 -0
  99. package/docs/EmbeddedClonedDocument.md +12 -0
  100. package/docs/EmbeddedClonedTemplate.md +12 -0
  101. package/docs/EmbeddedCreateTemplateRequest.md +51 -50
  102. package/docs/EmbeddedCustomFieldCreated.md +11 -11
  103. package/docs/EmbeddedDocumentEditJsonRequest.md +19 -19
  104. package/docs/EmbeddedDocumentEdited.md +11 -11
  105. package/docs/EmbeddedDocumentRequest.md +59 -58
  106. package/docs/EmbeddedFileDetails.md +16 -16
  107. package/docs/EmbeddedFileLink.md +11 -11
  108. package/docs/EmbeddedMergeTemplateFormRequest.md +60 -59
  109. package/docs/EmbeddedSendCreated.md +12 -12
  110. package/docs/EmbeddedSendTemplateFormRequest.md +57 -56
  111. package/docs/EmbeddedSigningLink.md +11 -11
  112. package/docs/EmbeddedTemplateCreated.md +12 -12
  113. package/docs/EmbeddedTemplateEditRequest.md +21 -21
  114. package/docs/EmbeddedTemplateEdited.md +11 -11
  115. package/docs/EmbeddedTemplatePreview.md +11 -11
  116. package/docs/EmbeddedTemplatePreviewJsonRequest.md +12 -12
  117. package/docs/Error.md +12 -12
  118. package/docs/ErrorResponse.md +12 -0
  119. package/docs/ErrorResult.md +11 -11
  120. package/docs/ExistingFormField.md +15 -15
  121. package/docs/ExtendExpiry.md +14 -14
  122. package/docs/FileInfo.md +14 -14
  123. package/docs/Font.md +18 -18
  124. package/docs/FormField.md +53 -53
  125. package/docs/FormFieldPermission.md +13 -13
  126. package/docs/FormFieldPermissionWebhookModel.md +13 -0
  127. package/docs/FormGroup.md +15 -15
  128. package/docs/FormulaFieldSettings.md +12 -12
  129. package/docs/GetGroupContactDetails.md +15 -15
  130. package/docs/GroupContact.md +14 -14
  131. package/docs/GroupContactDetails.md +13 -13
  132. package/docs/GroupContactsApi.md +177 -177
  133. package/docs/GroupContactsList.md +12 -12
  134. package/docs/GroupOption.md +12 -0
  135. package/docs/GroupSigner.md +17 -17
  136. package/docs/GroupSignerSettings.md +12 -12
  137. package/docs/GroupSignerSettingsWebhookModel.md +12 -0
  138. package/docs/GroupUser.md +12 -12
  139. package/docs/IWebhookData.md +56 -0
  140. package/docs/IdDocument.md +21 -21
  141. package/docs/IdReport.md +14 -14
  142. package/docs/IdVerificationDetails.md +20 -20
  143. package/docs/{IdVerification.md → IdVerificationSignerWebhookModel.md} +19 -19
  144. package/docs/IdentityVerificationApi.md +109 -109
  145. package/docs/IdentityVerificationEvent.md +17 -0
  146. package/docs/IdentityVerificationSettings.md +17 -17
  147. package/docs/ImageInfo.md +13 -13
  148. package/docs/KbaAuthenticationEvent.md +17 -0
  149. package/docs/{ProblemDetails.md → KbaDetails.md} +14 -15
  150. package/docs/KbaSettings.md +13 -0
  151. package/docs/KbaSignerWebhookModel.md +14 -0
  152. package/docs/MergeAndSendForSignForm.md +50 -49
  153. package/docs/ModificationDetails.md +12 -12
  154. package/docs/NotificationSettings.md +22 -22
  155. package/docs/PageDetails.md +16 -16
  156. package/docs/PhoneNumber.md +12 -12
  157. package/docs/PhoneNumberWebhookModel.md +12 -0
  158. package/docs/PlanApi.md +38 -38
  159. package/docs/PrefillField.md +12 -12
  160. package/docs/PrefillFieldRequest.md +12 -12
  161. package/docs/RecipientChangeLog.md +12 -12
  162. package/docs/RecipientNotificationSettings.md +22 -22
  163. package/docs/Rectangle.md +14 -14
  164. package/docs/ReminderMessage.md +13 -13
  165. package/docs/ReminderSettings.md +13 -13
  166. package/docs/RemoveAuthentication.md +14 -14
  167. package/docs/Removed.md +13 -13
  168. package/docs/RevokeDocument.md +12 -12
  169. package/docs/Role.md +36 -35
  170. package/docs/Roles.md +36 -36
  171. package/docs/SendForSign.md +49 -48
  172. package/docs/SendForSignFromTemplateForm.md +47 -46
  173. package/docs/SenderIdentitiesApi.md +243 -243
  174. package/docs/SenderIdentityCreated.md +11 -11
  175. package/docs/SenderIdentityCreator.md +14 -0
  176. package/docs/SenderIdentityEvent.md +23 -0
  177. package/docs/SenderIdentityList.md +12 -12
  178. package/docs/SenderIdentityViewModel.md +21 -21
  179. package/docs/SignatureFrameSettings.md +14 -14
  180. package/docs/SignerAuthenticationSettings.md +12 -12
  181. package/docs/SignerAuthenticationWebhookModel.md +12 -0
  182. package/docs/Size.md +12 -12
  183. package/docs/TeamCreated.md +11 -11
  184. package/docs/TeamDocumentRecords.md +12 -12
  185. package/docs/TeamListResponse.md +12 -12
  186. package/docs/TeamPageDetails.md +12 -12
  187. package/docs/TeamResponse.md +15 -15
  188. package/docs/TeamUpdateRequest.md +12 -12
  189. package/docs/TeamUsers.md +16 -16
  190. package/docs/Teams.md +14 -14
  191. package/docs/TeamsApi.md +141 -141
  192. package/docs/Template.md +29 -29
  193. package/docs/TemplateApi.md +588 -520
  194. package/docs/TemplateCC.md +12 -12
  195. package/docs/TemplateCcWebhookModel.md +13 -0
  196. package/docs/TemplateCreated.md +11 -11
  197. package/docs/TemplateEvent.md +36 -0
  198. package/docs/TemplateFiles.md +14 -14
  199. package/docs/TemplateFormFields.md +54 -53
  200. package/docs/TemplateGroupSigner.md +12 -12
  201. package/docs/TemplateGroupSignerWebhookModel.md +12 -0
  202. package/docs/TemplateProperties.md +43 -41
  203. package/docs/TemplateRecords.md +12 -12
  204. package/docs/TemplateRole.md +30 -30
  205. package/docs/TemplateSender.md +15 -0
  206. package/docs/TemplateSenderDetail.md +12 -12
  207. package/docs/TemplateSenderDetails.md +13 -13
  208. package/docs/TemplateShareErrorResponse.md +14 -0
  209. package/docs/TemplateShareRequest.md +11 -0
  210. package/docs/TemplateSharedTemplateDetail.md +12 -12
  211. package/docs/TemplateSharing.md +11 -11
  212. package/docs/TemplateSigner.md +29 -0
  213. package/docs/TemplateSignerDetails.md +29 -29
  214. package/docs/TemplateTag.md +14 -14
  215. package/docs/TemplateTeamShare.md +12 -12
  216. package/docs/TemplateTeamShareRequest.md +13 -0
  217. package/docs/TextTagDefinition.md +43 -42
  218. package/docs/TextTagOffset.md +12 -12
  219. package/docs/UpdateGroupContact.md +13 -13
  220. package/docs/UpdateUser.md +14 -14
  221. package/docs/UpdateUserMetaData.md +12 -12
  222. package/docs/UserApi.md +275 -275
  223. package/docs/UserPageDetails.md +12 -12
  224. package/docs/UserProperties.md +21 -21
  225. package/docs/UserRecords.md +12 -12
  226. package/docs/UsersDetails.md +21 -21
  227. package/docs/Validation.md +13 -13
  228. package/docs/VerificationDataRequest.md +15 -15
  229. package/docs/ViewBrandDetails.md +36 -36
  230. package/docs/ViewCustomFieldDetails.md +17 -17
  231. package/docs/WebhookActorDetails.md +12 -0
  232. package/docs/WebhookContext.md +13 -0
  233. package/docs/WebhookEvent.md +14 -0
  234. package/docs/WebhookEventMetadata.md +15 -0
  235. package/git_push.sh +57 -57
  236. package/model/accessCodeDetail.ts +99 -91
  237. package/model/accessCodeDetails.ts +44 -44
  238. package/model/added.ts +43 -43
  239. package/model/address.ts +61 -61
  240. package/model/attachmentInfo.ts +49 -49
  241. package/model/auditTrail.ts +207 -201
  242. package/model/authenticationSettings.ts +39 -39
  243. package/model/base64File.ts +37 -37
  244. package/model/behalfDocument.ts +154 -154
  245. package/model/behalfDocumentRecords.ts +39 -39
  246. package/model/behalfOf.ts +37 -37
  247. package/model/behalfOfWebhookModel.ts +37 -0
  248. package/model/billingViewModel.ts +31 -31
  249. package/model/brandCreated.ts +31 -31
  250. package/model/brandCustomFieldDetails.ts +62 -62
  251. package/model/brandingMessage.ts +31 -31
  252. package/model/brandingRecords.ts +32 -32
  253. package/model/changeRecipient.ts +74 -74
  254. package/model/changeTeamRequest.ts +37 -37
  255. package/model/checkboxValidationSettings.ts +51 -0
  256. package/model/collaborationSettings.ts +49 -49
  257. package/model/conditionalRule.ts +43 -43
  258. package/model/contactCreated.ts +37 -37
  259. package/model/contactDetails.ts +56 -56
  260. package/model/contactPageDetails.ts +43 -43
  261. package/model/contactsDetails.ts +62 -62
  262. package/model/contactsList.ts +39 -39
  263. package/model/createContactResponse.ts +32 -32
  264. package/model/createGroupContactResponse.ts +37 -37
  265. package/model/createSenderIdentityRequest.ts +93 -93
  266. package/model/createTeamRequest.ts +31 -31
  267. package/model/createTemplateRequest.ts +220 -214
  268. package/model/createUser.ts +56 -56
  269. package/model/creators.ts +37 -37
  270. package/model/customDomainSettings.ts +37 -37
  271. package/model/customFieldCollection.ts +32 -32
  272. package/model/customFieldMessage.ts +37 -37
  273. package/model/customFormField.ts +296 -282
  274. package/model/deleteCustomFieldReply.ts +31 -31
  275. package/model/document.ts +147 -147
  276. package/model/documentCC.ts +31 -31
  277. package/model/documentCcDetails.ts +37 -37
  278. package/model/documentCcWebhookModel.ts +37 -0
  279. package/model/documentCreated.ts +31 -31
  280. package/model/documentEdited.ts +37 -37
  281. package/model/documentEvent.ts +213 -0
  282. package/model/documentExpirySettings.ts +68 -68
  283. package/model/documentFiles.ts +61 -61
  284. package/model/documentFormFields.ts +316 -316
  285. package/model/documentGroupSignerWebhookModel.ts +83 -0
  286. package/model/documentInfo.ts +100 -100
  287. package/model/documentProperties.ts +371 -346
  288. package/model/documentReassign.ts +43 -43
  289. package/model/documentRecords.ts +39 -39
  290. package/model/documentSender.ts +49 -0
  291. package/model/documentSenderDetail.ts +49 -49
  292. package/model/documentSigner.ts +255 -247
  293. package/model/documentSignerDetails.ts +306 -298
  294. package/model/documentSignerWebhookModel.ts +202 -0
  295. package/model/documentTags.ts +37 -37
  296. package/model/downloadImageRequest.ts +61 -61
  297. package/model/editDocumentFile.ts +56 -56
  298. package/model/editDocumentRequest.ts +243 -236
  299. package/model/editDocumentSigner.ts +263 -255
  300. package/model/editFormField.ts +338 -338
  301. package/model/editSenderIdentityRequest.ts +81 -81
  302. package/model/editTemplateRequest.ts +189 -183
  303. package/model/editableDateFieldSettings.ts +49 -49
  304. package/model/embeddedCloneDocumentJsonRequest.ts +126 -0
  305. package/model/embeddedCloneTemplateJsonRequest.ts +126 -0
  306. package/model/embeddedClonedDocument.ts +37 -0
  307. package/model/embeddedClonedTemplate.ts +37 -0
  308. package/model/embeddedCreateTemplateRequest.ts +313 -307
  309. package/model/embeddedCustomFieldCreated.ts +31 -31
  310. package/model/embeddedDocumentEditJsonRequest.ts +108 -108
  311. package/model/embeddedDocumentEdited.ts +31 -31
  312. package/model/embeddedDocumentRequest.ts +371 -364
  313. package/model/embeddedFileDetails.ts +61 -61
  314. package/model/embeddedFileLink.ts +31 -31
  315. package/model/embeddedMergeTemplateFormRequest.ts +377 -370
  316. package/model/embeddedSendCreated.ts +37 -37
  317. package/model/embeddedSendTemplateFormRequest.ts +358 -351
  318. package/model/embeddedSigningLink.ts +31 -31
  319. package/model/embeddedTemplateCreated.ts +37 -37
  320. package/model/embeddedTemplateEditRequest.ts +120 -120
  321. package/model/embeddedTemplateEdited.ts +31 -31
  322. package/model/embeddedTemplatePreview.ts +31 -31
  323. package/model/embeddedTemplatePreviewJsonRequest.ts +37 -37
  324. package/model/errorResponse.ts +37 -0
  325. package/model/errorResult.ts +31 -31
  326. package/model/existingFormField.ts +55 -55
  327. package/model/extendExpiry.ts +49 -49
  328. package/model/fileInfo.ts +49 -49
  329. package/model/font.ts +88 -88
  330. package/model/formField.ts +340 -340
  331. package/model/formFieldPermission.ts +43 -43
  332. package/model/formFieldPermissionWebhookModel.ts +43 -0
  333. package/model/formGroup.ts +63 -63
  334. package/model/formulaFieldSettings.ts +37 -37
  335. package/model/getGroupContactDetails.ts +57 -57
  336. package/model/groupContact.ts +50 -50
  337. package/model/groupContactDetails.ts +44 -44
  338. package/model/groupContactsList.ts +39 -39
  339. package/model/groupOption.ts +37 -0
  340. package/model/groupSigner.ts +77 -77
  341. package/model/groupSignerSettings.ts +37 -37
  342. package/model/groupSignerSettingsWebhookModel.ts +37 -0
  343. package/model/groupUser.ts +37 -37
  344. package/model/iWebhookData.ts +335 -0
  345. package/model/idDocument.ts +93 -93
  346. package/model/idReport.ts +50 -50
  347. package/model/idVerificationDetails.ts +85 -85
  348. package/model/{idVerification.ts → idVerificationSignerWebhookModel.ts} +79 -79
  349. package/model/identityVerificationEvent.ts +80 -0
  350. package/model/identityVerificationSettings.ts +84 -84
  351. package/model/imageInfo.ts +43 -43
  352. package/model/index.ts +805 -666
  353. package/model/kbaAuthenticationEvent.ts +80 -0
  354. package/model/{problemDetails.ts → kbaDetails.ts} +49 -55
  355. package/model/kbaSettings.ts +57 -0
  356. package/model/kbaSignerWebhookModel.ts +49 -0
  357. package/model/mergeAndSendForSignForm.ts +290 -283
  358. package/model/modelDate.ts +43 -43
  359. package/model/modelError.ts +37 -37
  360. package/model/models.ts +244 -244
  361. package/model/modificationDetails.ts +37 -37
  362. package/model/notificationSettings.ts +97 -97
  363. package/model/pageDetails.ts +61 -61
  364. package/model/phoneNumber.ts +37 -37
  365. package/model/phoneNumberWebhookModel.ts +37 -0
  366. package/model/prefillField.ts +37 -37
  367. package/model/prefillFieldRequest.ts +38 -38
  368. package/model/recipientChangeLog.ts +39 -39
  369. package/model/recipientNotificationSettings.ts +97 -97
  370. package/model/rectangle.ts +49 -49
  371. package/model/reminderMessage.ts +44 -44
  372. package/model/reminderSettings.ts +43 -43
  373. package/model/removeAuthentication.ts +50 -50
  374. package/model/removed.ts +43 -43
  375. package/model/revokeDocument.ts +37 -37
  376. package/model/role.ts +262 -254
  377. package/model/roles.ts +259 -258
  378. package/model/sendForSign.ts +284 -277
  379. package/model/sendForSignFromTemplateForm.ts +271 -264
  380. package/model/senderIdentityCreated.ts +31 -31
  381. package/model/senderIdentityCreator.ts +49 -0
  382. package/model/senderIdentityEvent.ts +104 -0
  383. package/model/senderIdentityList.ts +39 -39
  384. package/model/senderIdentityViewModel.ts +92 -92
  385. package/model/signatureFrameSettings.ts +49 -49
  386. package/model/signerAuthenticationSettings.ts +37 -37
  387. package/model/signerAuthenticationWebhookModel.ts +37 -0
  388. package/model/size.ts +37 -37
  389. package/model/teamCreated.ts +31 -31
  390. package/model/teamDocumentRecords.ts +39 -39
  391. package/model/teamListResponse.ts +39 -39
  392. package/model/teamPageDetails.ts +37 -37
  393. package/model/teamResponse.ts +56 -56
  394. package/model/teamUpdateRequest.ts +37 -37
  395. package/model/teamUsers.ts +73 -73
  396. package/model/teams.ts +49 -49
  397. package/model/template.ts +159 -159
  398. package/model/templateCC.ts +37 -37
  399. package/model/templateCcWebhookModel.ts +43 -0
  400. package/model/templateCreated.ts +31 -31
  401. package/model/templateEvent.ts +198 -0
  402. package/model/templateFiles.ts +49 -49
  403. package/model/templateFormFields.ts +321 -315
  404. package/model/templateGroupSigner.ts +37 -37
  405. package/model/templateGroupSignerWebhookModel.ts +37 -0
  406. package/model/templateProperties.ts +247 -234
  407. package/model/templateRecords.ts +39 -39
  408. package/model/templateRole.ts +222 -221
  409. package/model/templateSender.ts +55 -0
  410. package/model/templateSenderDetail.ts +37 -37
  411. package/model/templateSenderDetails.ts +43 -43
  412. package/model/templateShareErrorResponse.ts +49 -0
  413. package/model/templateShareRequest.ts +32 -0
  414. package/model/templateSharedTemplateDetail.ts +43 -43
  415. package/model/templateSharing.ts +32 -32
  416. package/model/templateSigner.ts +151 -0
  417. package/model/templateSignerDetails.ts +174 -173
  418. package/model/templateTag.ts +49 -49
  419. package/model/templateTeamShare.ts +44 -44
  420. package/model/templateTeamShareRequest.ts +53 -0
  421. package/model/textTagDefinition.ts +268 -261
  422. package/model/textTagOffset.ts +37 -37
  423. package/model/updateGroupContact.ts +44 -44
  424. package/model/updateUser.ts +60 -60
  425. package/model/updateUserMetaData.ts +37 -37
  426. package/model/userPageDetails.ts +37 -37
  427. package/model/userProperties.ts +91 -91
  428. package/model/userRecords.ts +39 -39
  429. package/model/usersDetails.ts +91 -91
  430. package/model/validation.ts +52 -52
  431. package/model/verificationDataRequest.ts +55 -55
  432. package/model/viewBrandDetails.ts +190 -190
  433. package/model/viewCustomFieldDetails.ts +68 -68
  434. package/model/webhookActorDetails.ts +47 -0
  435. package/model/webhookContext.ts +82 -0
  436. package/model/webhookEvent.ts +53 -0
  437. package/model/webhookEventMetadata.ts +97 -0
  438. package/package.json +52 -52
  439. package/tsconfig.json +24 -24
  440. package/boldsign-3.1.4.tgz +0 -0
  441. package/dist/api/apis.d.ts +0 -29
  442. package/dist/api/apis.js +0 -149
  443. package/dist/api/apis.js.map +0 -1
  444. package/dist/api/brandingApi.d.ts +0 -29
  445. package/dist/api/brandingApi.js +0 -776
  446. package/dist/api/brandingApi.js.map +0 -1
  447. package/dist/api/contactsApi.d.ts +0 -28
  448. package/dist/api/contactsApi.js +0 -501
  449. package/dist/api/contactsApi.js.map +0 -1
  450. package/dist/api/customFieldApi.d.ts +0 -28
  451. package/dist/api/customFieldApi.js +0 -519
  452. package/dist/api/customFieldApi.js.map +0 -1
  453. package/dist/api/documentApi.d.ts +0 -48
  454. package/dist/api/documentApi.js +0 -2259
  455. package/dist/api/documentApi.js.map +0 -1
  456. package/dist/api/groupContactsApi.d.ts +0 -28
  457. package/dist/api/groupContactsApi.js +0 -507
  458. package/dist/api/groupContactsApi.js.map +0 -1
  459. package/dist/api/identityVerificationApi.d.ts +0 -26
  460. package/dist/api/identityVerificationApi.js +0 -369
  461. package/dist/api/identityVerificationApi.js.map +0 -1
  462. package/dist/api/index.d.ts +0 -14
  463. package/dist/api/index.js +0 -33
  464. package/dist/api/index.js.map +0 -1
  465. package/dist/api/planApi.d.ts +0 -24
  466. package/dist/api/planApi.js +0 -174
  467. package/dist/api/planApi.js.map +0 -1
  468. package/dist/api/senderIdentitiesApi.d.ts +0 -30
  469. package/dist/api/senderIdentitiesApi.js +0 -663
  470. package/dist/api/senderIdentitiesApi.js.map +0 -1
  471. package/dist/api/teamsApi.d.ts +0 -27
  472. package/dist/api/teamsApi.js +0 -426
  473. package/dist/api/teamsApi.js.map +0 -1
  474. package/dist/api/templateApi.d.ts +0 -38
  475. package/dist/api/templateApi.js +0 -1335
  476. package/dist/api/templateApi.js.map +0 -1
  477. package/dist/api/userApi.d.ts +0 -31
  478. package/dist/api/userApi.js +0 -723
  479. package/dist/api/userApi.js.map +0 -1
  480. package/dist/api.d.ts +0 -2
  481. package/dist/api.js +0 -19
  482. package/dist/api.js.map +0 -1
  483. package/dist/examples/DocumentProperties.d.ts +0 -1
  484. package/dist/examples/DocumentProperties.js +0 -28
  485. package/dist/examples/DocumentProperties.js.map +0 -1
  486. package/dist/examples/brandCreate.d.ts +0 -1
  487. package/dist/examples/brandCreate.js +0 -68
  488. package/dist/examples/brandCreate.js.map +0 -1
  489. package/dist/examples/brandDelete.d.ts +0 -1
  490. package/dist/examples/brandDelete.js +0 -28
  491. package/dist/examples/brandDelete.js.map +0 -1
  492. package/dist/examples/brandGet.d.ts +0 -1
  493. package/dist/examples/brandGet.js +0 -28
  494. package/dist/examples/brandGet.js.map +0 -1
  495. package/dist/examples/brandList.d.ts +0 -1
  496. package/dist/examples/brandList.js +0 -27
  497. package/dist/examples/brandList.js.map +0 -1
  498. package/dist/examples/brandResetDefault.d.ts +0 -1
  499. package/dist/examples/brandResetDefault.js +0 -28
  500. package/dist/examples/brandResetDefault.js.map +0 -1
  501. package/dist/examples/brandUpdate.d.ts +0 -1
  502. package/dist/examples/brandUpdate.js +0 -68
  503. package/dist/examples/brandUpdate.js.map +0 -1
  504. package/dist/examples/contactCreate.d.ts +0 -1
  505. package/dist/examples/contactCreate.js +0 -38
  506. package/dist/examples/contactCreate.js.map +0 -1
  507. package/dist/examples/contactDelete.d.ts +0 -1
  508. package/dist/examples/contactDelete.js +0 -28
  509. package/dist/examples/contactDelete.js.map +0 -1
  510. package/dist/examples/contactGet.d.ts +0 -1
  511. package/dist/examples/contactGet.js +0 -28
  512. package/dist/examples/contactGet.js.map +0 -1
  513. package/dist/examples/contactGroupDelete.d.ts +0 -1
  514. package/dist/examples/contactGroupDelete.js +0 -27
  515. package/dist/examples/contactGroupDelete.js.map +0 -1
  516. package/dist/examples/contactGroupGet.d.ts +0 -1
  517. package/dist/examples/contactGroupGet.js +0 -27
  518. package/dist/examples/contactGroupGet.js.map +0 -1
  519. package/dist/examples/contactGroupList.d.ts +0 -1
  520. package/dist/examples/contactGroupList.js +0 -29
  521. package/dist/examples/contactGroupList.js.map +0 -1
  522. package/dist/examples/contactGroupUpdate.d.ts +0 -1
  523. package/dist/examples/contactGroupUpdate.js +0 -34
  524. package/dist/examples/contactGroupUpdate.js.map +0 -1
  525. package/dist/examples/contactGroupsCreate.d.ts +0 -1
  526. package/dist/examples/contactGroupsCreate.js +0 -35
  527. package/dist/examples/contactGroupsCreate.js.map +0 -1
  528. package/dist/examples/contactList.d.ts +0 -1
  529. package/dist/examples/contactList.js +0 -29
  530. package/dist/examples/contactList.js.map +0 -1
  531. package/dist/examples/contactUpdate.d.ts +0 -1
  532. package/dist/examples/contactUpdate.js +0 -38
  533. package/dist/examples/contactUpdate.js.map +0 -1
  534. package/dist/examples/customFieldCreate.d.ts +0 -1
  535. package/dist/examples/customFieldCreate.js +0 -39
  536. package/dist/examples/customFieldCreate.js.map +0 -1
  537. package/dist/examples/customFieldDelete.d.ts +0 -1
  538. package/dist/examples/customFieldDelete.js +0 -28
  539. package/dist/examples/customFieldDelete.js.map +0 -1
  540. package/dist/examples/customFieldEdit.d.ts +0 -1
  541. package/dist/examples/customFieldEdit.js +0 -40
  542. package/dist/examples/customFieldEdit.js.map +0 -1
  543. package/dist/examples/customFieldEmbeddedCreateUrl.d.ts +0 -1
  544. package/dist/examples/customFieldEmbeddedCreateUrl.js +0 -31
  545. package/dist/examples/customFieldEmbeddedCreateUrl.js.map +0 -1
  546. package/dist/examples/customFieldList.d.ts +0 -1
  547. package/dist/examples/customFieldList.js +0 -28
  548. package/dist/examples/customFieldList.js.map +0 -1
  549. package/dist/examples/documentAddAuthentication.d.ts +0 -1
  550. package/dist/examples/documentAddAuthentication.js +0 -32
  551. package/dist/examples/documentAddAuthentication.js.map +0 -1
  552. package/dist/examples/documentAddTags.d.ts +0 -1
  553. package/dist/examples/documentAddTags.js +0 -31
  554. package/dist/examples/documentAddTags.js.map +0 -1
  555. package/dist/examples/documentCancelEditing.d.ts +0 -1
  556. package/dist/examples/documentCancelEditing.js +0 -27
  557. package/dist/examples/documentCancelEditing.js.map +0 -1
  558. package/dist/examples/documentChangeAccessCode.d.ts +0 -1
  559. package/dist/examples/documentChangeAccessCode.js +0 -32
  560. package/dist/examples/documentChangeAccessCode.js.map +0 -1
  561. package/dist/examples/documentChangeRecipients.d.ts +0 -1
  562. package/dist/examples/documentChangeRecipients.js +0 -34
  563. package/dist/examples/documentChangeRecipients.js.map +0 -1
  564. package/dist/examples/documentCreateEmbeddedEditUrl.d.ts +0 -1
  565. package/dist/examples/documentCreateEmbeddedEditUrl.js +0 -32
  566. package/dist/examples/documentCreateEmbeddedEditUrl.js.map +0 -1
  567. package/dist/examples/documentDelete.d.ts +0 -1
  568. package/dist/examples/documentDelete.js +0 -29
  569. package/dist/examples/documentDelete.js.map +0 -1
  570. package/dist/examples/documentDeleteTags.d.ts +0 -1
  571. package/dist/examples/documentDeleteTags.js +0 -31
  572. package/dist/examples/documentDeleteTags.js.map +0 -1
  573. package/dist/examples/documentDownload.d.ts +0 -1
  574. package/dist/examples/documentDownload.js +0 -29
  575. package/dist/examples/documentDownload.js.map +0 -1
  576. package/dist/examples/documentDownloadAttachment.d.ts +0 -1
  577. package/dist/examples/documentDownloadAttachment.js +0 -30
  578. package/dist/examples/documentDownloadAttachment.js.map +0 -1
  579. package/dist/examples/documentDownloadAuditTrial.d.ts +0 -1
  580. package/dist/examples/documentDownloadAuditTrial.js +0 -29
  581. package/dist/examples/documentDownloadAuditTrial.js.map +0 -1
  582. package/dist/examples/documentEdit.d.ts +0 -1
  583. package/dist/examples/documentEdit.js +0 -86
  584. package/dist/examples/documentEdit.js.map +0 -1
  585. package/dist/examples/documentEmbeddedRequestLink.d.ts +0 -1
  586. package/dist/examples/documentEmbeddedRequestLink.js +0 -96
  587. package/dist/examples/documentEmbeddedRequestLink.js.map +0 -1
  588. package/dist/examples/documentEmbeddedSignLink.d.ts +0 -1
  589. package/dist/examples/documentEmbeddedSignLink.js +0 -35
  590. package/dist/examples/documentEmbeddedSignLink.js.map +0 -1
  591. package/dist/examples/documentExtendExpiry.d.ts +0 -1
  592. package/dist/examples/documentExtendExpiry.js +0 -32
  593. package/dist/examples/documentExtendExpiry.js.map +0 -1
  594. package/dist/examples/documentList.d.ts +0 -1
  595. package/dist/examples/documentList.js +0 -29
  596. package/dist/examples/documentList.js.map +0 -1
  597. package/dist/examples/documentListBehalf.d.ts +0 -1
  598. package/dist/examples/documentListBehalf.js +0 -28
  599. package/dist/examples/documentListBehalf.js.map +0 -1
  600. package/dist/examples/documentListTeam.d.ts +0 -1
  601. package/dist/examples/documentListTeam.js +0 -28
  602. package/dist/examples/documentListTeam.js.map +0 -1
  603. package/dist/examples/documentPrefillFieldCheckBox.d.ts +0 -1
  604. package/dist/examples/documentPrefillFieldCheckBox.js +0 -34
  605. package/dist/examples/documentPrefillFieldCheckBox.js.map +0 -1
  606. package/dist/examples/documentPrefillFieldDropDown.d.ts +0 -1
  607. package/dist/examples/documentPrefillFieldDropDown.js +0 -34
  608. package/dist/examples/documentPrefillFieldDropDown.js.map +0 -1
  609. package/dist/examples/documentPrefillFieldEditableDate.d.ts +0 -1
  610. package/dist/examples/documentPrefillFieldEditableDate.js +0 -34
  611. package/dist/examples/documentPrefillFieldEditableDate.js.map +0 -1
  612. package/dist/examples/documentPrefillFieldImage.d.ts +0 -1
  613. package/dist/examples/documentPrefillFieldImage.js +0 -34
  614. package/dist/examples/documentPrefillFieldImage.js.map +0 -1
  615. package/dist/examples/documentPrefillFieldRadioButton.d.ts +0 -1
  616. package/dist/examples/documentPrefillFieldRadioButton.js +0 -34
  617. package/dist/examples/documentPrefillFieldRadioButton.js.map +0 -1
  618. package/dist/examples/documentPrefillFieldTextBox.d.ts +0 -1
  619. package/dist/examples/documentPrefillFieldTextBox.js +0 -34
  620. package/dist/examples/documentPrefillFieldTextBox.js.map +0 -1
  621. package/dist/examples/documentRemoveAuthentication.d.ts +0 -1
  622. package/dist/examples/documentRemoveAuthentication.js +0 -31
  623. package/dist/examples/documentRemoveAuthentication.js.map +0 -1
  624. package/dist/examples/documentRevoke.d.ts +0 -1
  625. package/dist/examples/documentRevoke.js +0 -31
  626. package/dist/examples/documentRevoke.js.map +0 -1
  627. package/dist/examples/documentSend.d.ts +0 -1
  628. package/dist/examples/documentSend.js +0 -90
  629. package/dist/examples/documentSend.js.map +0 -1
  630. package/dist/examples/documentSendOnBehalf.d.ts +0 -1
  631. package/dist/examples/documentSendOnBehalf.js +0 -101
  632. package/dist/examples/documentSendOnBehalf.js.map +0 -1
  633. package/dist/examples/documentSendReminder.d.ts +0 -1
  634. package/dist/examples/documentSendReminder.js +0 -32
  635. package/dist/examples/documentSendReminder.js.map +0 -1
  636. package/dist/examples/draftSend.d.ts +0 -1
  637. package/dist/examples/draftSend.js +0 -27
  638. package/dist/examples/draftSend.js.map +0 -1
  639. package/dist/examples/embeddedCreatePreviewUrl.d.ts +0 -1
  640. package/dist/examples/embeddedCreatePreviewUrl.js +0 -29
  641. package/dist/examples/embeddedCreatePreviewUrl.js.map +0 -1
  642. package/dist/examples/embeddedManualVerification.d.ts +0 -1
  643. package/dist/examples/embeddedManualVerification.js +0 -34
  644. package/dist/examples/embeddedManualVerification.js.map +0 -1
  645. package/dist/examples/identityVerificationImage.d.ts +0 -1
  646. package/dist/examples/identityVerificationImage.js +0 -34
  647. package/dist/examples/identityVerificationImage.js.map +0 -1
  648. package/dist/examples/identityVerificationReport.d.ts +0 -1
  649. package/dist/examples/identityVerificationReport.js +0 -33
  650. package/dist/examples/identityVerificationReport.js.map +0 -1
  651. package/dist/examples/listTemplate.d.ts +0 -1
  652. package/dist/examples/listTemplate.js +0 -29
  653. package/dist/examples/listTemplate.js.map +0 -1
  654. package/dist/examples/plan.d.ts +0 -1
  655. package/dist/examples/plan.js +0 -27
  656. package/dist/examples/plan.js.map +0 -1
  657. package/dist/examples/senderIdentityCreate.d.ts +0 -1
  658. package/dist/examples/senderIdentityCreate.js +0 -33
  659. package/dist/examples/senderIdentityCreate.js.map +0 -1
  660. package/dist/examples/senderIdentityDelete.d.ts +0 -1
  661. package/dist/examples/senderIdentityDelete.js +0 -28
  662. package/dist/examples/senderIdentityDelete.js.map +0 -1
  663. package/dist/examples/senderIdentityList.d.ts +0 -1
  664. package/dist/examples/senderIdentityList.js +0 -29
  665. package/dist/examples/senderIdentityList.js.map +0 -1
  666. package/dist/examples/senderIdentityProperties.d.ts +0 -1
  667. package/dist/examples/senderIdentityProperties.js +0 -27
  668. package/dist/examples/senderIdentityProperties.js.map +0 -1
  669. package/dist/examples/senderIdentityRerequest.d.ts +0 -1
  670. package/dist/examples/senderIdentityRerequest.js +0 -28
  671. package/dist/examples/senderIdentityRerequest.js.map +0 -1
  672. package/dist/examples/senderIdentityResendInvitation.d.ts +0 -1
  673. package/dist/examples/senderIdentityResendInvitation.js +0 -28
  674. package/dist/examples/senderIdentityResendInvitation.js.map +0 -1
  675. package/dist/examples/senderIdentityUpdate.d.ts +0 -1
  676. package/dist/examples/senderIdentityUpdate.js +0 -32
  677. package/dist/examples/senderIdentityUpdate.js.map +0 -1
  678. package/dist/examples/teamCreate.d.ts +0 -1
  679. package/dist/examples/teamCreate.js +0 -30
  680. package/dist/examples/teamCreate.js.map +0 -1
  681. package/dist/examples/teamGet.d.ts +0 -1
  682. package/dist/examples/teamGet.js +0 -28
  683. package/dist/examples/teamGet.js.map +0 -1
  684. package/dist/examples/teamList.d.ts +0 -1
  685. package/dist/examples/teamList.js +0 -29
  686. package/dist/examples/teamList.js.map +0 -1
  687. package/dist/examples/teamUpdate.d.ts +0 -1
  688. package/dist/examples/teamUpdate.js +0 -31
  689. package/dist/examples/teamUpdate.js.map +0 -1
  690. package/dist/examples/templateAddTag.d.ts +0 -1
  691. package/dist/examples/templateAddTag.js +0 -32
  692. package/dist/examples/templateAddTag.js.map +0 -1
  693. package/dist/examples/templateCreate.d.ts +0 -1
  694. package/dist/examples/templateCreate.js +0 -91
  695. package/dist/examples/templateCreate.js.map +0 -1
  696. package/dist/examples/templateDelete.d.ts +0 -1
  697. package/dist/examples/templateDelete.js +0 -28
  698. package/dist/examples/templateDelete.js.map +0 -1
  699. package/dist/examples/templateDeleteTag.d.ts +0 -1
  700. package/dist/examples/templateDeleteTag.js +0 -32
  701. package/dist/examples/templateDeleteTag.js.map +0 -1
  702. package/dist/examples/templateDetails.d.ts +0 -1
  703. package/dist/examples/templateDetails.js +0 -28
  704. package/dist/examples/templateDetails.js.map +0 -1
  705. package/dist/examples/templateDownload.d.ts +0 -1
  706. package/dist/examples/templateDownload.js +0 -28
  707. package/dist/examples/templateDownload.js.map +0 -1
  708. package/dist/examples/templateEdit.d.ts +0 -1
  709. package/dist/examples/templateEdit.js +0 -39
  710. package/dist/examples/templateEdit.js.map +0 -1
  711. package/dist/examples/templateEmbeddedCreate.d.ts +0 -1
  712. package/dist/examples/templateEmbeddedCreate.js +0 -76
  713. package/dist/examples/templateEmbeddedCreate.js.map +0 -1
  714. package/dist/examples/templateEmbeddedEdit.d.ts +0 -1
  715. package/dist/examples/templateEmbeddedEdit.js +0 -36
  716. package/dist/examples/templateEmbeddedEdit.js.map +0 -1
  717. package/dist/examples/templateEmbeddedRequestLink.d.ts +0 -1
  718. package/dist/examples/templateEmbeddedRequestLink.js +0 -78
  719. package/dist/examples/templateEmbeddedRequestLink.js.map +0 -1
  720. package/dist/examples/templateMergerEmbeddedRequestUrl.d.ts +0 -1
  721. package/dist/examples/templateMergerEmbeddedRequestUrl.js +0 -80
  722. package/dist/examples/templateMergerEmbeddedRequestUrl.js.map +0 -1
  723. package/dist/examples/templateSendDocument.d.ts +0 -1
  724. package/dist/examples/templateSendDocument.js +0 -102
  725. package/dist/examples/templateSendDocument.js.map +0 -1
  726. package/dist/examples/templateSendDocumentUsingMultipleTemplate.d.ts +0 -1
  727. package/dist/examples/templateSendDocumentUsingMultipleTemplate.js +0 -50
  728. package/dist/examples/templateSendDocumentUsingMultipleTemplate.js.map +0 -1
  729. package/dist/examples/userChangeTeam.d.ts +0 -1
  730. package/dist/examples/userChangeTeam.js +0 -30
  731. package/dist/examples/userChangeTeam.js.map +0 -1
  732. package/dist/examples/userCreate.d.ts +0 -1
  733. package/dist/examples/userCreate.js +0 -32
  734. package/dist/examples/userCreate.js.map +0 -1
  735. package/dist/examples/userGet.d.ts +0 -1
  736. package/dist/examples/userGet.js +0 -28
  737. package/dist/examples/userGet.js.map +0 -1
  738. package/dist/examples/userInvitationCancel.d.ts +0 -1
  739. package/dist/examples/userInvitationCancel.js +0 -28
  740. package/dist/examples/userInvitationCancel.js.map +0 -1
  741. package/dist/examples/userList.d.ts +0 -1
  742. package/dist/examples/userList.js +0 -29
  743. package/dist/examples/userList.js.map +0 -1
  744. package/dist/examples/userResendInvitation.d.ts +0 -1
  745. package/dist/examples/userResendInvitation.js +0 -28
  746. package/dist/examples/userResendInvitation.js.map +0 -1
  747. package/dist/examples/userUpdateRole.d.ts +0 -1
  748. package/dist/examples/userUpdateRole.js +0 -31
  749. package/dist/examples/userUpdateRole.js.map +0 -1
  750. package/dist/model/accessCodeDetail.d.ts +0 -34
  751. package/dist/model/accessCodeDetail.js +0 -68
  752. package/dist/model/accessCodeDetail.js.map +0 -1
  753. package/dist/model/accessCodeDetails.d.ts +0 -17
  754. package/dist/model/accessCodeDetails.js +0 -28
  755. package/dist/model/accessCodeDetails.js.map +0 -1
  756. package/dist/model/added.d.ts +0 -16
  757. package/dist/model/added.js +0 -28
  758. package/dist/model/added.js.map +0 -1
  759. package/dist/model/address.d.ts +0 -19
  760. package/dist/model/address.js +0 -43
  761. package/dist/model/address.js.map +0 -1
  762. package/dist/model/attachmentInfo.d.ts +0 -17
  763. package/dist/model/attachmentInfo.js +0 -33
  764. package/dist/model/attachmentInfo.js.map +0 -1
  765. package/dist/model/auditTrail.d.ts +0 -114
  766. package/dist/model/auditTrail.js +0 -173
  767. package/dist/model/auditTrail.js.map +0 -1
  768. package/dist/model/authenticationSettings.d.ts +0 -22
  769. package/dist/model/authenticationSettings.js +0 -27
  770. package/dist/model/authenticationSettings.js.map +0 -1
  771. package/dist/model/base64File.d.ts +0 -15
  772. package/dist/model/base64File.js +0 -23
  773. package/dist/model/base64File.js.map +0 -1
  774. package/dist/model/behalfDocument.d.ts +0 -47
  775. package/dist/model/behalfDocument.js +0 -120
  776. package/dist/model/behalfDocument.js.map +0 -1
  777. package/dist/model/behalfDocumentRecords.d.ts +0 -17
  778. package/dist/model/behalfDocumentRecords.js +0 -23
  779. package/dist/model/behalfDocumentRecords.js.map +0 -1
  780. package/dist/model/behalfOf.d.ts +0 -15
  781. package/dist/model/behalfOf.js +0 -23
  782. package/dist/model/behalfOf.js.map +0 -1
  783. package/dist/model/billingViewModel.d.ts +0 -14
  784. package/dist/model/billingViewModel.js +0 -18
  785. package/dist/model/billingViewModel.js.map +0 -1
  786. package/dist/model/brandCreated.d.ts +0 -14
  787. package/dist/model/brandCreated.js +0 -18
  788. package/dist/model/brandCreated.js.map +0 -1
  789. package/dist/model/brandCustomFieldDetails.d.ts +0 -20
  790. package/dist/model/brandCustomFieldDetails.js +0 -46
  791. package/dist/model/brandCustomFieldDetails.js.map +0 -1
  792. package/dist/model/brandingMessage.d.ts +0 -14
  793. package/dist/model/brandingMessage.js +0 -18
  794. package/dist/model/brandingMessage.js.map +0 -1
  795. package/dist/model/brandingRecords.d.ts +0 -15
  796. package/dist/model/brandingRecords.js +0 -18
  797. package/dist/model/brandingRecords.js.map +0 -1
  798. package/dist/model/changeRecipient.d.ts +0 -22
  799. package/dist/model/changeRecipient.js +0 -53
  800. package/dist/model/changeRecipient.js.map +0 -1
  801. package/dist/model/changeTeamRequest.d.ts +0 -15
  802. package/dist/model/changeTeamRequest.js +0 -23
  803. package/dist/model/changeTeamRequest.js.map +0 -1
  804. package/dist/model/collaborationSettings.d.ts +0 -17
  805. package/dist/model/collaborationSettings.js +0 -33
  806. package/dist/model/collaborationSettings.js.map +0 -1
  807. package/dist/model/conditionalRule.d.ts +0 -16
  808. package/dist/model/conditionalRule.js +0 -28
  809. package/dist/model/conditionalRule.js.map +0 -1
  810. package/dist/model/contactCreated.d.ts +0 -15
  811. package/dist/model/contactCreated.js +0 -23
  812. package/dist/model/contactCreated.js.map +0 -1
  813. package/dist/model/contactDetails.d.ts +0 -19
  814. package/dist/model/contactDetails.js +0 -38
  815. package/dist/model/contactDetails.js.map +0 -1
  816. package/dist/model/contactPageDetails.d.ts +0 -16
  817. package/dist/model/contactPageDetails.js +0 -28
  818. package/dist/model/contactPageDetails.js.map +0 -1
  819. package/dist/model/contactsDetails.d.ts +0 -20
  820. package/dist/model/contactsDetails.js +0 -43
  821. package/dist/model/contactsDetails.js.map +0 -1
  822. package/dist/model/contactsList.d.ts +0 -17
  823. package/dist/model/contactsList.js +0 -23
  824. package/dist/model/contactsList.js.map +0 -1
  825. package/dist/model/createContactResponse.d.ts +0 -15
  826. package/dist/model/createContactResponse.js +0 -18
  827. package/dist/model/createContactResponse.js.map +0 -1
  828. package/dist/model/createGroupContactResponse.d.ts +0 -15
  829. package/dist/model/createGroupContactResponse.js +0 -23
  830. package/dist/model/createGroupContactResponse.js.map +0 -1
  831. package/dist/model/createSenderIdentityRequest.d.ts +0 -48
  832. package/dist/model/createSenderIdentityRequest.js +0 -74
  833. package/dist/model/createSenderIdentityRequest.js.map +0 -1
  834. package/dist/model/createTeamRequest.d.ts +0 -14
  835. package/dist/model/createTeamRequest.js +0 -18
  836. package/dist/model/createTeamRequest.js.map +0 -1
  837. package/dist/model/createTemplateRequest.d.ts +0 -58
  838. package/dist/model/createTemplateRequest.js +0 -177
  839. package/dist/model/createTemplateRequest.js.map +0 -1
  840. package/dist/model/createUser.d.ts +0 -26
  841. package/dist/model/createUser.js +0 -41
  842. package/dist/model/createUser.js.map +0 -1
  843. package/dist/model/creators.d.ts +0 -15
  844. package/dist/model/creators.js +0 -23
  845. package/dist/model/creators.js.map +0 -1
  846. package/dist/model/customDomainSettings.d.ts +0 -15
  847. package/dist/model/customDomainSettings.js +0 -23
  848. package/dist/model/customDomainSettings.js.map +0 -1
  849. package/dist/model/customFieldCollection.d.ts +0 -15
  850. package/dist/model/customFieldCollection.js +0 -18
  851. package/dist/model/customFieldCollection.js.map +0 -1
  852. package/dist/model/customFieldMessage.d.ts +0 -15
  853. package/dist/model/customFieldMessage.js +0 -23
  854. package/dist/model/customFieldMessage.js.map +0 -1
  855. package/dist/model/customFormField.d.ts +0 -100
  856. package/dist/model/customFormField.js +0 -246
  857. package/dist/model/customFormField.js.map +0 -1
  858. package/dist/model/deleteCustomFieldReply.d.ts +0 -14
  859. package/dist/model/deleteCustomFieldReply.js +0 -18
  860. package/dist/model/deleteCustomFieldReply.js.map +0 -1
  861. package/dist/model/document.d.ts +0 -45
  862. package/dist/model/document.js +0 -115
  863. package/dist/model/document.js.map +0 -1
  864. package/dist/model/documentCC.d.ts +0 -14
  865. package/dist/model/documentCC.js +0 -18
  866. package/dist/model/documentCC.js.map +0 -1
  867. package/dist/model/documentCcDetails.d.ts +0 -15
  868. package/dist/model/documentCcDetails.js +0 -26
  869. package/dist/model/documentCcDetails.js.map +0 -1
  870. package/dist/model/documentCreated.d.ts +0 -14
  871. package/dist/model/documentCreated.js +0 -18
  872. package/dist/model/documentCreated.js.map +0 -1
  873. package/dist/model/documentEdited.d.ts +0 -20
  874. package/dist/model/documentEdited.js +0 -25
  875. package/dist/model/documentEdited.js.map +0 -1
  876. package/dist/model/documentExpirySettings.d.ts +0 -26
  877. package/dist/model/documentExpirySettings.js +0 -51
  878. package/dist/model/documentExpirySettings.js.map +0 -1
  879. package/dist/model/documentFiles.d.ts +0 -19
  880. package/dist/model/documentFiles.js +0 -43
  881. package/dist/model/documentFiles.js.map +0 -1
  882. package/dist/model/documentFormFields.d.ts +0 -89
  883. package/dist/model/documentFormFields.js +0 -260
  884. package/dist/model/documentFormFields.js.map +0 -1
  885. package/dist/model/documentInfo.d.ts +0 -65
  886. package/dist/model/documentInfo.js +0 -83
  887. package/dist/model/documentInfo.js.map +0 -1
  888. package/dist/model/documentProperties.d.ts +0 -116
  889. package/dist/model/documentProperties.js +0 -283
  890. package/dist/model/documentProperties.js.map +0 -1
  891. package/dist/model/documentReassign.d.ts +0 -16
  892. package/dist/model/documentReassign.js +0 -31
  893. package/dist/model/documentReassign.js.map +0 -1
  894. package/dist/model/documentRecords.d.ts +0 -17
  895. package/dist/model/documentRecords.js +0 -23
  896. package/dist/model/documentRecords.js.map +0 -1
  897. package/dist/model/documentSenderDetail.d.ts +0 -17
  898. package/dist/model/documentSenderDetail.js +0 -36
  899. package/dist/model/documentSenderDetail.js.map +0 -1
  900. package/dist/model/documentSigner.d.ts +0 -112
  901. package/dist/model/documentSigner.js +0 -209
  902. package/dist/model/documentSigner.js.map +0 -1
  903. package/dist/model/documentSignerDetails.d.ts +0 -128
  904. package/dist/model/documentSignerDetails.js +0 -261
  905. package/dist/model/documentSignerDetails.js.map +0 -1
  906. package/dist/model/documentTags.d.ts +0 -15
  907. package/dist/model/documentTags.js +0 -23
  908. package/dist/model/documentTags.js.map +0 -1
  909. package/dist/model/downloadImageRequest.d.ts +0 -19
  910. package/dist/model/downloadImageRequest.js +0 -43
  911. package/dist/model/downloadImageRequest.js.map +0 -1
  912. package/dist/model/editDocumentFile.d.ts +0 -25
  913. package/dist/model/editDocumentFile.js +0 -41
  914. package/dist/model/editDocumentFile.js.map +0 -1
  915. package/dist/model/editDocumentRequest.d.ts +0 -71
  916. package/dist/model/editDocumentRequest.js +0 -187
  917. package/dist/model/editDocumentRequest.js.map +0 -1
  918. package/dist/model/editDocumentSigner.d.ts +0 -118
  919. package/dist/model/editDocumentSigner.js +0 -220
  920. package/dist/model/editDocumentSigner.js.map +0 -1
  921. package/dist/model/editFormField.d.ts +0 -116
  922. package/dist/model/editFormField.js +0 -288
  923. package/dist/model/editFormField.js.map +0 -1
  924. package/dist/model/editSenderIdentityRequest.d.ts +0 -46
  925. package/dist/model/editSenderIdentityRequest.js +0 -64
  926. package/dist/model/editSenderIdentityRequest.js.map +0 -1
  927. package/dist/model/editTemplateRequest.d.ts +0 -51
  928. package/dist/model/editTemplateRequest.js +0 -141
  929. package/dist/model/editTemplateRequest.js.map +0 -1
  930. package/dist/model/editableDateFieldSettings.d.ts +0 -17
  931. package/dist/model/editableDateFieldSettings.js +0 -33
  932. package/dist/model/editableDateFieldSettings.js.map +0 -1
  933. package/dist/model/embeddedCreateTemplateRequest.d.ts +0 -96
  934. package/dist/model/embeddedCreateTemplateRequest.js +0 -269
  935. package/dist/model/embeddedCreateTemplateRequest.js.map +0 -1
  936. package/dist/model/embeddedCustomFieldCreated.d.ts +0 -14
  937. package/dist/model/embeddedCustomFieldCreated.js +0 -18
  938. package/dist/model/embeddedCustomFieldCreated.js.map +0 -1
  939. package/dist/model/embeddedDocumentEditJsonRequest.d.ts +0 -51
  940. package/dist/model/embeddedDocumentEditJsonRequest.js +0 -97
  941. package/dist/model/embeddedDocumentEditJsonRequest.js.map +0 -1
  942. package/dist/model/embeddedDocumentEdited.d.ts +0 -14
  943. package/dist/model/embeddedDocumentEdited.js +0 -18
  944. package/dist/model/embeddedDocumentEdited.js.map +0 -1
  945. package/dist/model/embeddedDocumentRequest.d.ts +0 -115
  946. package/dist/model/embeddedDocumentRequest.js +0 -322
  947. package/dist/model/embeddedDocumentRequest.js.map +0 -1
  948. package/dist/model/embeddedFileDetails.d.ts +0 -19
  949. package/dist/model/embeddedFileDetails.js +0 -43
  950. package/dist/model/embeddedFileDetails.js.map +0 -1
  951. package/dist/model/embeddedFileLink.d.ts +0 -14
  952. package/dist/model/embeddedFileLink.js +0 -18
  953. package/dist/model/embeddedFileLink.js.map +0 -1
  954. package/dist/model/embeddedMergeTemplateFormRequest.d.ts +0 -116
  955. package/dist/model/embeddedMergeTemplateFormRequest.js +0 -311
  956. package/dist/model/embeddedMergeTemplateFormRequest.js.map +0 -1
  957. package/dist/model/embeddedSendCreated.d.ts +0 -15
  958. package/dist/model/embeddedSendCreated.js +0 -23
  959. package/dist/model/embeddedSendCreated.js.map +0 -1
  960. package/dist/model/embeddedSendTemplateFormRequest.d.ts +0 -112
  961. package/dist/model/embeddedSendTemplateFormRequest.js +0 -296
  962. package/dist/model/embeddedSendTemplateFormRequest.js.map +0 -1
  963. package/dist/model/embeddedSigningLink.d.ts +0 -14
  964. package/dist/model/embeddedSigningLink.js +0 -18
  965. package/dist/model/embeddedSigningLink.js.map +0 -1
  966. package/dist/model/embeddedTemplateCreated.d.ts +0 -15
  967. package/dist/model/embeddedTemplateCreated.js +0 -23
  968. package/dist/model/embeddedTemplateCreated.js.map +0 -1
  969. package/dist/model/embeddedTemplateEditRequest.d.ts +0 -53
  970. package/dist/model/embeddedTemplateEditRequest.js +0 -109
  971. package/dist/model/embeddedTemplateEditRequest.js.map +0 -1
  972. package/dist/model/embeddedTemplateEdited.d.ts +0 -14
  973. package/dist/model/embeddedTemplateEdited.js +0 -18
  974. package/dist/model/embeddedTemplateEdited.js.map +0 -1
  975. package/dist/model/embeddedTemplatePreview.d.ts +0 -14
  976. package/dist/model/embeddedTemplatePreview.js +0 -18
  977. package/dist/model/embeddedTemplatePreview.js.map +0 -1
  978. package/dist/model/embeddedTemplatePreviewJsonRequest.d.ts +0 -15
  979. package/dist/model/embeddedTemplatePreviewJsonRequest.js +0 -23
  980. package/dist/model/embeddedTemplatePreviewJsonRequest.js.map +0 -1
  981. package/dist/model/errorResult.d.ts +0 -14
  982. package/dist/model/errorResult.js +0 -18
  983. package/dist/model/errorResult.js.map +0 -1
  984. package/dist/model/existingFormField.d.ts +0 -18
  985. package/dist/model/existingFormField.js +0 -38
  986. package/dist/model/existingFormField.js.map +0 -1
  987. package/dist/model/extendExpiry.d.ts +0 -17
  988. package/dist/model/extendExpiry.js +0 -33
  989. package/dist/model/extendExpiry.js.map +0 -1
  990. package/dist/model/fileInfo.d.ts +0 -17
  991. package/dist/model/fileInfo.js +0 -33
  992. package/dist/model/fileInfo.js.map +0 -1
  993. package/dist/model/font.d.ts +0 -36
  994. package/dist/model/font.js +0 -70
  995. package/dist/model/font.js.map +0 -1
  996. package/dist/model/formField.d.ts +0 -113
  997. package/dist/model/formField.js +0 -287
  998. package/dist/model/formField.js.map +0 -1
  999. package/dist/model/formFieldPermission.d.ts +0 -16
  1000. package/dist/model/formFieldPermission.js +0 -28
  1001. package/dist/model/formFieldPermission.js.map +0 -1
  1002. package/dist/model/formGroup.d.ts +0 -26
  1003. package/dist/model/formGroup.js +0 -47
  1004. package/dist/model/formGroup.js.map +0 -1
  1005. package/dist/model/formulaFieldSettings.d.ts +0 -15
  1006. package/dist/model/formulaFieldSettings.js +0 -26
  1007. package/dist/model/formulaFieldSettings.js.map +0 -1
  1008. package/dist/model/getGroupContactDetails.d.ts +0 -20
  1009. package/dist/model/getGroupContactDetails.js +0 -38
  1010. package/dist/model/getGroupContactDetails.js.map +0 -1
  1011. package/dist/model/groupContact.d.ts +0 -18
  1012. package/dist/model/groupContact.js +0 -33
  1013. package/dist/model/groupContact.js.map +0 -1
  1014. package/dist/model/groupContactDetails.d.ts +0 -17
  1015. package/dist/model/groupContactDetails.js +0 -28
  1016. package/dist/model/groupContactDetails.js.map +0 -1
  1017. package/dist/model/groupContactsList.d.ts +0 -17
  1018. package/dist/model/groupContactsList.js +0 -23
  1019. package/dist/model/groupContactsList.js.map +0 -1
  1020. package/dist/model/groupSigner.d.ts +0 -30
  1021. package/dist/model/groupSigner.js +0 -59
  1022. package/dist/model/groupSigner.js.map +0 -1
  1023. package/dist/model/groupSignerSettings.d.ts +0 -15
  1024. package/dist/model/groupSignerSettings.js +0 -23
  1025. package/dist/model/groupSignerSettings.js.map +0 -1
  1026. package/dist/model/groupUser.d.ts +0 -15
  1027. package/dist/model/groupUser.js +0 -23
  1028. package/dist/model/groupUser.js.map +0 -1
  1029. package/dist/model/idDocument.d.ts +0 -26
  1030. package/dist/model/idDocument.js +0 -68
  1031. package/dist/model/idDocument.js.map +0 -1
  1032. package/dist/model/idReport.d.ts +0 -18
  1033. package/dist/model/idReport.js +0 -33
  1034. package/dist/model/idReport.js.map +0 -1
  1035. package/dist/model/idVerification.d.ts +0 -22
  1036. package/dist/model/idVerification.js +0 -58
  1037. package/dist/model/idVerification.js.map +0 -1
  1038. package/dist/model/idVerificationDetails.d.ts +0 -23
  1039. package/dist/model/idVerificationDetails.js +0 -63
  1040. package/dist/model/idVerificationDetails.js.map +0 -1
  1041. package/dist/model/identityVerificationSettings.d.ts +0 -37
  1042. package/dist/model/identityVerificationSettings.js +0 -68
  1043. package/dist/model/identityVerificationSettings.js.map +0 -1
  1044. package/dist/model/imageInfo.d.ts +0 -16
  1045. package/dist/model/imageInfo.js +0 -28
  1046. package/dist/model/imageInfo.js.map +0 -1
  1047. package/dist/model/index.d.ts +0 -170
  1048. package/dist/model/index.js +0 -651
  1049. package/dist/model/index.js.map +0 -1
  1050. package/dist/model/mergeAndSendForSignForm.d.ts +0 -79
  1051. package/dist/model/mergeAndSendForSignForm.js +0 -232
  1052. package/dist/model/mergeAndSendForSignForm.js.map +0 -1
  1053. package/dist/model/modelDate.d.ts +0 -16
  1054. package/dist/model/modelDate.js +0 -28
  1055. package/dist/model/modelDate.js.map +0 -1
  1056. package/dist/model/modelError.d.ts +0 -15
  1057. package/dist/model/modelError.js +0 -23
  1058. package/dist/model/modelError.js.map +0 -1
  1059. package/dist/model/models.d.ts +0 -56
  1060. package/dist/model/models.js +0 -212
  1061. package/dist/model/models.js.map +0 -1
  1062. package/dist/model/modificationDetails.d.ts +0 -15
  1063. package/dist/model/modificationDetails.js +0 -23
  1064. package/dist/model/modificationDetails.js.map +0 -1
  1065. package/dist/model/notificationSettings.d.ts +0 -25
  1066. package/dist/model/notificationSettings.js +0 -87
  1067. package/dist/model/notificationSettings.js.map +0 -1
  1068. package/dist/model/pageDetails.d.ts +0 -19
  1069. package/dist/model/pageDetails.js +0 -43
  1070. package/dist/model/pageDetails.js.map +0 -1
  1071. package/dist/model/phoneNumber.d.ts +0 -15
  1072. package/dist/model/phoneNumber.js +0 -23
  1073. package/dist/model/phoneNumber.js.map +0 -1
  1074. package/dist/model/prefillField.d.ts +0 -15
  1075. package/dist/model/prefillField.js +0 -23
  1076. package/dist/model/prefillField.js.map +0 -1
  1077. package/dist/model/prefillFieldRequest.d.ts +0 -16
  1078. package/dist/model/prefillFieldRequest.js +0 -23
  1079. package/dist/model/prefillFieldRequest.js.map +0 -1
  1080. package/dist/model/problemDetails.d.ts +0 -18
  1081. package/dist/model/problemDetails.js +0 -38
  1082. package/dist/model/problemDetails.js.map +0 -1
  1083. package/dist/model/recipientChangeLog.d.ts +0 -17
  1084. package/dist/model/recipientChangeLog.js +0 -23
  1085. package/dist/model/recipientChangeLog.js.map +0 -1
  1086. package/dist/model/recipientNotificationSettings.d.ts +0 -25
  1087. package/dist/model/recipientNotificationSettings.js +0 -86
  1088. package/dist/model/recipientNotificationSettings.js.map +0 -1
  1089. package/dist/model/rectangle.d.ts +0 -17
  1090. package/dist/model/rectangle.js +0 -39
  1091. package/dist/model/rectangle.js.map +0 -1
  1092. package/dist/model/reminderMessage.d.ts +0 -17
  1093. package/dist/model/reminderMessage.js +0 -28
  1094. package/dist/model/reminderMessage.js.map +0 -1
  1095. package/dist/model/reminderSettings.d.ts +0 -16
  1096. package/dist/model/reminderSettings.js +0 -33
  1097. package/dist/model/reminderSettings.js.map +0 -1
  1098. package/dist/model/removeAuthentication.d.ts +0 -18
  1099. package/dist/model/removeAuthentication.js +0 -33
  1100. package/dist/model/removeAuthentication.js.map +0 -1
  1101. package/dist/model/removed.d.ts +0 -16
  1102. package/dist/model/removed.js +0 -28
  1103. package/dist/model/removed.js.map +0 -1
  1104. package/dist/model/revokeDocument.d.ts +0 -15
  1105. package/dist/model/revokeDocument.js +0 -23
  1106. package/dist/model/revokeDocument.js.map +0 -1
  1107. package/dist/model/role.d.ts +0 -114
  1108. package/dist/model/role.js +0 -214
  1109. package/dist/model/role.js.map +0 -1
  1110. package/dist/model/roles.d.ts +0 -113
  1111. package/dist/model/roles.js +0 -219
  1112. package/dist/model/roles.js.map +0 -1
  1113. package/dist/model/sendForSign.d.ts +0 -78
  1114. package/dist/model/sendForSign.js +0 -235
  1115. package/dist/model/sendForSign.js.map +0 -1
  1116. package/dist/model/sendForSignFromTemplateForm.d.ts +0 -75
  1117. package/dist/model/sendForSignFromTemplateForm.js +0 -217
  1118. package/dist/model/sendForSignFromTemplateForm.js.map +0 -1
  1119. package/dist/model/senderIdentityCreated.d.ts +0 -14
  1120. package/dist/model/senderIdentityCreated.js +0 -18
  1121. package/dist/model/senderIdentityCreated.js.map +0 -1
  1122. package/dist/model/senderIdentityList.d.ts +0 -17
  1123. package/dist/model/senderIdentityList.js +0 -23
  1124. package/dist/model/senderIdentityList.js.map +0 -1
  1125. package/dist/model/senderIdentityViewModel.d.ts +0 -27
  1126. package/dist/model/senderIdentityViewModel.js +0 -68
  1127. package/dist/model/senderIdentityViewModel.js.map +0 -1
  1128. package/dist/model/signatureFrameSettings.d.ts +0 -17
  1129. package/dist/model/signatureFrameSettings.js +0 -39
  1130. package/dist/model/signatureFrameSettings.js.map +0 -1
  1131. package/dist/model/signerAuthenticationSettings.d.ts +0 -15
  1132. package/dist/model/signerAuthenticationSettings.js +0 -23
  1133. package/dist/model/signerAuthenticationSettings.js.map +0 -1
  1134. package/dist/model/size.d.ts +0 -15
  1135. package/dist/model/size.js +0 -27
  1136. package/dist/model/size.js.map +0 -1
  1137. package/dist/model/teamCreated.d.ts +0 -14
  1138. package/dist/model/teamCreated.js +0 -18
  1139. package/dist/model/teamCreated.js.map +0 -1
  1140. package/dist/model/teamDocumentRecords.d.ts +0 -17
  1141. package/dist/model/teamDocumentRecords.js +0 -23
  1142. package/dist/model/teamDocumentRecords.js.map +0 -1
  1143. package/dist/model/teamListResponse.d.ts +0 -17
  1144. package/dist/model/teamListResponse.js +0 -23
  1145. package/dist/model/teamListResponse.js.map +0 -1
  1146. package/dist/model/teamPageDetails.d.ts +0 -15
  1147. package/dist/model/teamPageDetails.js +0 -23
  1148. package/dist/model/teamPageDetails.js.map +0 -1
  1149. package/dist/model/teamResponse.d.ts +0 -19
  1150. package/dist/model/teamResponse.js +0 -38
  1151. package/dist/model/teamResponse.js.map +0 -1
  1152. package/dist/model/teamUpdateRequest.d.ts +0 -15
  1153. package/dist/model/teamUpdateRequest.js +0 -23
  1154. package/dist/model/teamUpdateRequest.js.map +0 -1
  1155. package/dist/model/teamUsers.d.ts +0 -31
  1156. package/dist/model/teamUsers.js +0 -57
  1157. package/dist/model/teamUsers.js.map +0 -1
  1158. package/dist/model/teams.d.ts +0 -17
  1159. package/dist/model/teams.js +0 -33
  1160. package/dist/model/teams.js.map +0 -1
  1161. package/dist/model/template.d.ts +0 -52
  1162. package/dist/model/template.js +0 -129
  1163. package/dist/model/template.js.map +0 -1
  1164. package/dist/model/templateCC.d.ts +0 -15
  1165. package/dist/model/templateCC.js +0 -23
  1166. package/dist/model/templateCC.js.map +0 -1
  1167. package/dist/model/templateCreated.d.ts +0 -14
  1168. package/dist/model/templateCreated.js +0 -18
  1169. package/dist/model/templateCreated.js.map +0 -1
  1170. package/dist/model/templateFiles.d.ts +0 -17
  1171. package/dist/model/templateFiles.js +0 -33
  1172. package/dist/model/templateFiles.js.map +0 -1
  1173. package/dist/model/templateFormFields.d.ts +0 -88
  1174. package/dist/model/templateFormFields.js +0 -260
  1175. package/dist/model/templateFormFields.js.map +0 -1
  1176. package/dist/model/templateGroupSigner.d.ts +0 -15
  1177. package/dist/model/templateGroupSigner.js +0 -23
  1178. package/dist/model/templateGroupSigner.js.map +0 -1
  1179. package/dist/model/templateProperties.d.ts +0 -67
  1180. package/dist/model/templateProperties.js +0 -181
  1181. package/dist/model/templateProperties.js.map +0 -1
  1182. package/dist/model/templateRecords.d.ts +0 -17
  1183. package/dist/model/templateRecords.js +0 -23
  1184. package/dist/model/templateRecords.js.map +0 -1
  1185. package/dist/model/templateRole.d.ts +0 -106
  1186. package/dist/model/templateRole.js +0 -189
  1187. package/dist/model/templateRole.js.map +0 -1
  1188. package/dist/model/templateSenderDetail.d.ts +0 -15
  1189. package/dist/model/templateSenderDetail.js +0 -23
  1190. package/dist/model/templateSenderDetail.js.map +0 -1
  1191. package/dist/model/templateSenderDetails.d.ts +0 -16
  1192. package/dist/model/templateSenderDetails.js +0 -28
  1193. package/dist/model/templateSenderDetails.js.map +0 -1
  1194. package/dist/model/templateSharedTemplateDetail.d.ts +0 -21
  1195. package/dist/model/templateSharedTemplateDetail.js +0 -30
  1196. package/dist/model/templateSharedTemplateDetail.js.map +0 -1
  1197. package/dist/model/templateSharing.d.ts +0 -15
  1198. package/dist/model/templateSharing.js +0 -18
  1199. package/dist/model/templateSharing.js.map +0 -1
  1200. package/dist/model/templateSignerDetails.d.ts +0 -66
  1201. package/dist/model/templateSignerDetails.js +0 -149
  1202. package/dist/model/templateSignerDetails.js.map +0 -1
  1203. package/dist/model/templateTag.d.ts +0 -17
  1204. package/dist/model/templateTag.js +0 -33
  1205. package/dist/model/templateTag.js.map +0 -1
  1206. package/dist/model/templateTeamShare.d.ts +0 -22
  1207. package/dist/model/templateTeamShare.js +0 -31
  1208. package/dist/model/templateTeamShare.js.map +0 -1
  1209. package/dist/model/textTagDefinition.d.ts +0 -89
  1210. package/dist/model/textTagDefinition.js +0 -216
  1211. package/dist/model/textTagDefinition.js.map +0 -1
  1212. package/dist/model/textTagOffset.d.ts +0 -15
  1213. package/dist/model/textTagOffset.js +0 -23
  1214. package/dist/model/textTagOffset.js.map +0 -1
  1215. package/dist/model/updateGroupContact.d.ts +0 -17
  1216. package/dist/model/updateGroupContact.js +0 -28
  1217. package/dist/model/updateGroupContact.js.map +0 -1
  1218. package/dist/model/updateUser.d.ts +0 -28
  1219. package/dist/model/updateUser.js +0 -46
  1220. package/dist/model/updateUser.js.map +0 -1
  1221. package/dist/model/updateUserMetaData.d.ts +0 -17
  1222. package/dist/model/updateUserMetaData.js +0 -23
  1223. package/dist/model/updateUserMetaData.js.map +0 -1
  1224. package/dist/model/userPageDetails.d.ts +0 -15
  1225. package/dist/model/userPageDetails.js +0 -23
  1226. package/dist/model/userPageDetails.js.map +0 -1
  1227. package/dist/model/userProperties.d.ts +0 -26
  1228. package/dist/model/userProperties.js +0 -68
  1229. package/dist/model/userProperties.js.map +0 -1
  1230. package/dist/model/userRecords.d.ts +0 -17
  1231. package/dist/model/userRecords.js +0 -23
  1232. package/dist/model/userRecords.js.map +0 -1
  1233. package/dist/model/usersDetails.d.ts +0 -26
  1234. package/dist/model/usersDetails.js +0 -68
  1235. package/dist/model/usersDetails.js.map +0 -1
  1236. package/dist/model/validation.d.ts +0 -25
  1237. package/dist/model/validation.js +0 -38
  1238. package/dist/model/validation.js.map +0 -1
  1239. package/dist/model/verificationDataRequest.d.ts +0 -18
  1240. package/dist/model/verificationDataRequest.js +0 -38
  1241. package/dist/model/verificationDataRequest.js.map +0 -1
  1242. package/dist/model/viewBrandDetails.d.ts +0 -48
  1243. package/dist/model/viewBrandDetails.js +0 -150
  1244. package/dist/model/viewBrandDetails.js.map +0 -1
  1245. package/dist/model/viewCustomFieldDetails.d.ts +0 -21
  1246. package/dist/model/viewCustomFieldDetails.js +0 -48
  1247. package/dist/model/viewCustomFieldDetails.js.map +0 -1
  1248. package/dist/tests/config.d.ts +0 -5
  1249. package/dist/tests/config.js +0 -43
  1250. package/dist/tests/config.js.map +0 -1
  1251. package/dist/tests/integration/BrandingApiTest.spec.d.ts +0 -1
  1252. package/dist/tests/integration/BrandingApiTest.spec.js +0 -310
  1253. package/dist/tests/integration/BrandingApiTest.spec.js.map +0 -1
  1254. package/dist/tests/integration/ContactsApiTest.spec.d.ts +0 -1
  1255. package/dist/tests/integration/ContactsApiTest.spec.js +0 -249
  1256. package/dist/tests/integration/ContactsApiTest.spec.js.map +0 -1
  1257. package/dist/tests/integration/CustomFieldApiTest.spec.d.ts +0 -1
  1258. package/dist/tests/integration/CustomFieldApiTest.spec.js +0 -289
  1259. package/dist/tests/integration/CustomFieldApiTest.spec.js.map +0 -1
  1260. package/dist/tests/integration/DocumentApiTest.spec.d.ts +0 -1
  1261. package/dist/tests/integration/DocumentApiTest.spec.js +0 -1710
  1262. package/dist/tests/integration/DocumentApiTest.spec.js.map +0 -1
  1263. package/dist/tests/integration/IdentityVerificationApiTest.spec.d.ts +0 -1
  1264. package/dist/tests/integration/IdentityVerificationApiTest.spec.js +0 -160
  1265. package/dist/tests/integration/IdentityVerificationApiTest.spec.js.map +0 -1
  1266. package/dist/tests/integration/TemplateApiTest.spec.d.ts +0 -1
  1267. package/dist/tests/integration/TemplateApiTest.spec.js +0 -1518
  1268. package/dist/tests/integration/TemplateApiTest.spec.js.map +0 -1
  1269. package/dist/tests/integration/planApiTest.spec.d.ts +0 -1
  1270. package/dist/tests/integration/planApiTest.spec.js +0 -41
  1271. package/dist/tests/integration/planApiTest.spec.js.map +0 -1
  1272. package/dist/tests/integration/senderIdentity.spec.d.ts +0 -1
  1273. package/dist/tests/integration/senderIdentity.spec.js +0 -481
  1274. package/dist/tests/integration/senderIdentity.spec.js.map +0 -1
  1275. package/dist/tests/integration/teamsApiTest.spec.d.ts +0 -1
  1276. package/dist/tests/integration/teamsApiTest.spec.js +0 -230
  1277. package/dist/tests/integration/teamsApiTest.spec.js.map +0 -1
  1278. package/dist/tests/integration/usersApiTest.spec.d.ts +0 -1
  1279. package/dist/tests/integration/usersApiTest.spec.js +0 -290
  1280. package/dist/tests/integration/usersApiTest.spec.js.map +0 -1
  1281. package/dist/tests/performance/performanceApiTest.spec.d.ts +0 -1
  1282. package/dist/tests/performance/performanceApiTest.spec.js +0 -368
  1283. package/dist/tests/performance/performanceApiTest.spec.js.map +0 -1
  1284. package/dist/tests/unit/brandingApi.spec.d.ts +0 -1
  1285. package/dist/tests/unit/brandingApi.spec.js +0 -174
  1286. package/dist/tests/unit/brandingApi.spec.js.map +0 -1
  1287. package/dist/tests/unit/contactsApi.spec.d.ts +0 -1
  1288. package/dist/tests/unit/contactsApi.spec.js +0 -154
  1289. package/dist/tests/unit/contactsApi.spec.js.map +0 -1
  1290. package/dist/tests/unit/customFieldApi.spec.d.ts +0 -1
  1291. package/dist/tests/unit/customFieldApi.spec.js +0 -140
  1292. package/dist/tests/unit/customFieldApi.spec.js.map +0 -1
  1293. package/dist/tests/unit/documentApi.spec.d.ts +0 -1
  1294. package/dist/tests/unit/documentApi.spec.js +0 -476
  1295. package/dist/tests/unit/documentApi.spec.js.map +0 -1
  1296. package/dist/tests/unit/planApi.spec.d.ts +0 -1
  1297. package/dist/tests/unit/planApi.spec.js +0 -69
  1298. package/dist/tests/unit/planApi.spec.js.map +0 -1
  1299. package/dist/tests/unit/senderIdentitiesApi.spec.d.ts +0 -1
  1300. package/dist/tests/unit/senderIdentitiesApi.spec.js +0 -148
  1301. package/dist/tests/unit/senderIdentitiesApi.spec.js.map +0 -1
  1302. package/dist/tests/unit/teamApi.spec.d.ts +0 -1
  1303. package/dist/tests/unit/teamApi.spec.js +0 -116
  1304. package/dist/tests/unit/teamApi.spec.js.map +0 -1
  1305. package/dist/tests/unit/templateApi.spec.d.ts +0 -1
  1306. package/dist/tests/unit/templateApi.spec.js +0 -285
  1307. package/dist/tests/unit/templateApi.spec.js.map +0 -1
  1308. package/dist/tests/unit/userApi.spec.d.ts +0 -1
  1309. package/dist/tests/unit/userApi.spec.js +0 -163
  1310. package/dist/tests/unit/userApi.spec.js.map +0 -1
  1311. package/examples/DocumentProperties.ts +0 -15
  1312. package/examples/brandCreate.ts +0 -29
  1313. package/examples/brandDelete.ts +0 -15
  1314. package/examples/brandGet.ts +0 -15
  1315. package/examples/brandList.ts +0 -14
  1316. package/examples/brandResetDefault.ts +0 -15
  1317. package/examples/brandUpdate.ts +0 -21
  1318. package/examples/contactCreate.ts +0 -26
  1319. package/examples/contactDelete.ts +0 -15
  1320. package/examples/contactGet.ts +0 -15
  1321. package/examples/contactGroupDelete.ts +0 -14
  1322. package/examples/contactGroupGet.ts +0 -14
  1323. package/examples/contactGroupList.ts +0 -16
  1324. package/examples/contactGroupUpdate.ts +0 -21
  1325. package/examples/contactGroupsCreate.ts +0 -24
  1326. package/examples/contactList.ts +0 -16
  1327. package/examples/contactUpdate.ts +0 -26
  1328. package/examples/customFieldCreate.ts +0 -28
  1329. package/examples/customFieldDelete.ts +0 -15
  1330. package/examples/customFieldEdit.ts +0 -30
  1331. package/examples/customFieldEmbeddedCreateUrl.ts +0 -19
  1332. package/examples/customFieldList.ts +0 -15
  1333. package/examples/documentAddAuthentication.ts +0 -20
  1334. package/examples/documentAddTags.ts +0 -19
  1335. package/examples/documentCancelEditing.ts +0 -14
  1336. package/examples/documentChangeAccessCode.ts +0 -20
  1337. package/examples/documentChangeRecipients.ts +0 -22
  1338. package/examples/documentCreateEmbeddedEditUrl.ts +0 -19
  1339. package/examples/documentDelete.ts +0 -16
  1340. package/examples/documentDeleteTags.ts +0 -19
  1341. package/examples/documentDownload.ts +0 -16
  1342. package/examples/documentDownloadAttachment.ts +0 -17
  1343. package/examples/documentDownloadAuditTrial.ts +0 -16
  1344. package/examples/documentEdit.ts +0 -43
  1345. package/examples/documentEmbeddedRequestLink.ts +0 -49
  1346. package/examples/documentEmbeddedSignLink.ts +0 -23
  1347. package/examples/documentExtendExpiry.ts +0 -20
  1348. package/examples/documentList.ts +0 -19
  1349. package/examples/documentListBehalf.ts +0 -15
  1350. package/examples/documentListTeam.ts +0 -15
  1351. package/examples/documentPrefillFieldCheckBox.ts +0 -23
  1352. package/examples/documentPrefillFieldDropDown.ts +0 -23
  1353. package/examples/documentPrefillFieldEditableDate.ts +0 -23
  1354. package/examples/documentPrefillFieldImage.ts +0 -23
  1355. package/examples/documentPrefillFieldRadioButton.ts +0 -23
  1356. package/examples/documentPrefillFieldTextBox.ts +0 -23
  1357. package/examples/documentRemoveAuthentication.ts +0 -19
  1358. package/examples/documentRevoke.ts +0 -19
  1359. package/examples/documentSend.ts +0 -51
  1360. package/examples/documentSendOnBehalf.ts +0 -53
  1361. package/examples/documentSendReminder.ts +0 -20
  1362. package/examples/documents/agreement.pdf +0 -0
  1363. package/examples/documents/logo.jpg +0 -0
  1364. package/examples/draftSend.ts +0 -12
  1365. package/examples/embeddedCreatePreviewUrl.ts +0 -15
  1366. package/examples/embeddedManualVerification.ts +0 -22
  1367. package/examples/identityVerificationImage.ts +0 -23
  1368. package/examples/identityVerificationReport.ts +0 -21
  1369. package/examples/listTemplate.ts +0 -16
  1370. package/examples/plan.ts +0 -14
  1371. package/examples/senderIdentityCreate.ts +0 -21
  1372. package/examples/senderIdentityDelete.ts +0 -15
  1373. package/examples/senderIdentityList.ts +0 -16
  1374. package/examples/senderIdentityProperties.ts +0 -15
  1375. package/examples/senderIdentityRerequest.ts +0 -15
  1376. package/examples/senderIdentityResendInvitation.ts +0 -15
  1377. package/examples/senderIdentityUpdate.ts +0 -20
  1378. package/examples/teamCreate.ts +0 -18
  1379. package/examples/teamGet.ts +0 -15
  1380. package/examples/teamList.ts +0 -16
  1381. package/examples/teamUpdate.ts +0 -19
  1382. package/examples/templateAddTag.ts +0 -20
  1383. package/examples/templateCreate.ts +0 -47
  1384. package/examples/templateDelete.ts +0 -15
  1385. package/examples/templateDeleteTag.ts +0 -20
  1386. package/examples/templateDetails.ts +0 -15
  1387. package/examples/templateDownload.ts +0 -15
  1388. package/examples/templateEdit.ts +0 -28
  1389. package/examples/templateEmbeddedCreate.ts +0 -29
  1390. package/examples/templateEmbeddedEdit.ts +0 -24
  1391. package/examples/templateEmbeddedRequestLink.ts +0 -34
  1392. package/examples/templateMergerEmbeddedRequestUrl.ts +0 -37
  1393. package/examples/templateSendDocument.ts +0 -60
  1394. package/examples/templateSendDocumentUsingMultipleTemplate.ts +0 -40
  1395. package/examples/userChangeTeam.ts +0 -15
  1396. package/examples/userCreate.ts +0 -20
  1397. package/examples/userGet.ts +0 -15
  1398. package/examples/userInvitationCancel.ts +0 -15
  1399. package/examples/userList.ts +0 -16
  1400. package/examples/userResendInvitation.ts +0 -15
  1401. package/examples/userUpdateRole.ts +0 -19
  1402. package/tests/config.ts +0 -20
  1403. package/tests/documents/agreement.pdf +0 -0
  1404. package/tests/documents/logo.jpg +0 -0
  1405. package/tests/integration/BrandingApiTest.spec.ts +0 -254
  1406. package/tests/integration/ContactsApiTest.spec.ts +0 -222
  1407. package/tests/integration/CustomFieldApiTest.spec.ts +0 -231
  1408. package/tests/integration/DocumentApiTest.spec.ts +0 -1624
  1409. package/tests/integration/IdentityVerificationApiTest.spec.ts +0 -114
  1410. package/tests/integration/TemplateApiTest.spec.ts +0 -1420
  1411. package/tests/integration/planApiTest.spec.ts +0 -26
  1412. package/tests/integration/senderIdentity.spec.ts +0 -397
  1413. package/tests/integration/teamsApiTest.spec.ts +0 -226
  1414. package/tests/integration/usersApiTest.spec.ts +0 -251
  1415. package/tests/performance/performanceApiTest.spec.ts +0 -362
  1416. package/tests/unit/brandingApi.spec.ts +0 -163
  1417. package/tests/unit/contactsApi.spec.ts +0 -143
  1418. package/tests/unit/customFieldApi.spec.ts +0 -123
  1419. package/tests/unit/documentApi.spec.ts +0 -545
  1420. package/tests/unit/planApi.spec.ts +0 -34
  1421. package/tests/unit/senderIdentitiesApi.spec.ts +0 -148
  1422. package/tests/unit/teamApi.spec.ts +0 -94
  1423. package/tests/unit/templateApi.spec.ts +0 -307
  1424. package/tests/unit/userApi.spec.ts +0 -162
@@ -1,1233 +1,1233 @@
1
- /**
2
- * BoldSign API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
14
-
15
- import {
16
- ObjectSerializer, Authentication, VoidAuth, Interceptor,
17
- HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, RequestFile,
18
- BrandCreated,BrandingMessage,BrandingRecords,ErrorResult,ViewBrandDetails,
19
- } from '../model';
20
-
21
- import {
22
- HttpError,
23
- optionsI,
24
- returnTypeT,
25
- returnTypeI,
26
- generateFormData,
27
- toFormData,
28
- queryParamsSerializer,
29
- USER_AGENT,
30
- } from './';
31
-
32
- let defaultBasePath = 'https://api.boldsign.com';
33
-
34
- // ===============================================
35
- // This file is autogenerated - Please do not edit
36
- // ===============================================
37
-
38
-
39
- export class BrandingApi {
40
- protected _basePath = defaultBasePath;
41
- protected _defaultHeaders : any = { 'User-Agent': USER_AGENT };
42
- protected _useQuerystring : boolean = true;
43
-
44
- protected authentications = {
45
- 'default': <Authentication>new VoidAuth(),
46
- 'Bearer': new ApiKeyAuth('header', 'Authorization'),
47
- 'X-API-KEY': new ApiKeyAuth('header', 'X-API-KEY'),
48
- }
49
-
50
- protected interceptors: Interceptor[] = [];
51
-
52
- constructor(basePath?: string) {
53
- if (basePath) {
54
- this.basePath = basePath;
55
- }
56
- }
57
-
58
- set useQuerystring(value: boolean) {
59
- this._useQuerystring = value;
60
- }
61
-
62
- set basePath(basePath: string) {
63
- this._basePath = basePath;
64
- }
65
-
66
- set defaultHeaders(defaultHeaders: any) {
67
- this._defaultHeaders = { ...defaultHeaders, "User-Agent": USER_AGENT };
68
- }
69
-
70
- get defaultHeaders() {
71
- return this._defaultHeaders;
72
- }
73
-
74
- get basePath() {
75
- return this._basePath;
76
- }
77
-
78
- public setDefaultAuthentication(auth: Authentication) {
79
- this.authentications.default = auth;
80
- }
81
-
82
- public setApiKey(apikey: string) {
83
- this.authentications["X-API-KEY"].apiKey = apikey;
84
- }
85
-
86
- public setAccessToken(accessToken: string) {
87
- this.authentications["Bearer"].apiKey = 'bearer ' + accessToken;
88
- }
89
-
90
- public addInterceptor(interceptor: Interceptor) {
91
- this.interceptors.push(interceptor);
92
- }
93
-
94
- /**
95
- *
96
- * @summary List all the brands.
97
- * @param options
98
- */
99
- public async brandList (options: optionsI = {headers: {}}) : Promise<BrandingRecords> {
100
- const localVarPath = this.basePath + '/v1/brand/list';
101
- let localVarQueryParameters: any = {};
102
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
103
- const produces = ['application/json'];
104
- // give precedence to 'application/json'
105
- if (produces.indexOf('application/json') >= 0) {
106
- localVarHeaderParams['content-type'] = 'application/json';
107
- } else {
108
- localVarHeaderParams['content-type'] = produces.join(',');
109
- }
110
- let localVarFormParams: any = {};
111
- let localVarBodyParams: any = undefined;
112
-
113
- (<any>Object).assign(localVarHeaderParams, options.headers);
114
-
115
- let localVarUseFormData = false;
116
-
117
- let data = {};
118
- if (localVarUseFormData) {
119
- const formData = toFormData(localVarFormParams);
120
- data = formData;
121
- localVarHeaderParams = {
122
- ...localVarHeaderParams,
123
- ...formData.getHeaders(),
124
- };
125
- }
126
-
127
- let localVarRequestOptions: AxiosRequestConfig = {
128
- method: 'GET',
129
- params: localVarQueryParameters,
130
- headers: localVarHeaderParams,
131
- url: localVarPath,
132
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
133
- maxContentLength: Infinity,
134
- maxBodyLength: Infinity,
135
- responseType: "json",
136
- };
137
-
138
- if (localVarRequestOptions.method !== 'GET') {
139
- localVarRequestOptions.data = data;
140
- }
141
- let authenticationPromise = Promise.resolve();
142
-
143
- if (this.authentications["X-API-KEY"].apiKey) {
144
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
145
- }
146
- if (this.authentications["Bearer"].apiKey) {
147
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
148
- }
149
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
150
-
151
- let interceptorPromise = authenticationPromise;
152
- for (const interceptor of this.interceptors) {
153
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
154
- }
155
-
156
- return interceptorPromise.then(() => {
157
- return new Promise<BrandingRecords>((resolve, reject) => {
158
- axios.request(localVarRequestOptions)
159
- .then((response) => {
160
- handleSuccessfulResponse<BrandingRecords>(
161
- resolve,
162
- reject,
163
- response,
164
- "BrandingRecords",
165
- );
166
- }, (error: AxiosError) => {
167
- if (error.response == null) {
168
- reject(error);
169
- return;
170
- }
171
-
172
- if (handleErrorCodeResponse(
173
- reject,
174
- error.response,
175
- 200,
176
- "BrandingRecords",
177
- )) {
178
- return;
179
- }
180
- if (handleErrorCodeResponse(
181
- reject,
182
- error.response,
183
- 401,
184
- "ErrorResult",
185
- )) {
186
- return;
187
- }
188
- if (handleErrorCodeResponse(
189
- reject,
190
- error.response,
191
- 403,
192
- "ErrorResult",
193
- )) {
194
- return;
195
- }
196
-
197
-
198
- reject(error);
199
- });
200
- });
201
- });
202
- }
203
- /**
204
- *
205
- * @summary Create the brand.
206
- * @param brandName
207
- * @param brandLogo
208
- * @param backgroundColor
209
- * @param buttonColor
210
- * @param buttonTextColor
211
- * @param emailDisplayName
212
- * @param disclaimerDescription
213
- * @param disclaimerTitle
214
- * @param redirectUrl
215
- * @param isDefault
216
- * @param canHideTagLine
217
- * @param combineAuditTrail
218
- * @param combineAttachments
219
- * @param excludeAuditTrailFromEmail
220
- * @param emailSignedDocument
221
- * @param documentTimeZone
222
- * @param showBuiltInFormFields
223
- * @param allowCustomFieldCreation
224
- * @param showSharedCustomFields
225
- * @param hideDecline
226
- * @param hideSave
227
- * @param documentExpirySettingsExpiryDateType
228
- * @param documentExpirySettingsExpiryValue
229
- * @param documentExpirySettingsEnableDefaultExpiryAlert
230
- * @param documentExpirySettingsEnableAutoReminder
231
- * @param documentExpirySettingsReminderDays
232
- * @param documentExpirySettingsReminderCount
233
- * @param customDomainSettingsDomainName
234
- * @param customDomainSettingsFromName
235
- * @param signatureFrameSettingsEnableSignatureFrame
236
- * @param signatureFrameSettingsShowRecipientName
237
- * @param signatureFrameSettingsShowRecipientEmail
238
- * @param signatureFrameSettingsShowTimeStamp
239
- * @param options
240
- */
241
- public async createBrand (brandName: string, brandLogo: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, combineAttachments?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, signatureFrameSettingsEnableSignatureFrame?: boolean, signatureFrameSettingsShowRecipientName?: boolean, signatureFrameSettingsShowRecipientEmail?: boolean, signatureFrameSettingsShowTimeStamp?: boolean, options: optionsI = {headers: {}}) : Promise<BrandCreated> {
242
- const localVarPath = this.basePath + '/v1/brand/create';
243
- let localVarQueryParameters: any = {};
244
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
245
- 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'];
246
- // give precedence to 'application/json'
247
- if (produces.indexOf('application/json') >= 0) {
248
- localVarHeaderParams['content-type'] = 'application/json';
249
- } else {
250
- localVarHeaderParams['content-type'] = produces.join(',');
251
- }
252
- let localVarFormParams: any = {};
253
- let localVarBodyParams: any = undefined;
254
-
255
- // verify required parameter 'brandName' is not null or undefined
256
- if (brandName === null || brandName === undefined) {
257
- throw new Error('Required parameter brandName was null or undefined when calling createBrand.');
258
- }
259
-
260
- // verify required parameter 'brandLogo' is not null or undefined
261
- if (brandLogo === null || brandLogo === undefined) {
262
- throw new Error('Required parameter brandLogo was null or undefined when calling createBrand.');
263
- }
264
-
265
- (<any>Object).assign(localVarHeaderParams, options.headers);
266
-
267
- let localVarUseFormData = false;
268
-
269
- if (brandName !== undefined) {
270
- localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
271
- }
272
-
273
- if (brandLogo !== undefined) {
274
- localVarFormParams['BrandLogo'] = brandLogo;
275
- }
276
- localVarUseFormData = true;
277
-
278
- if (backgroundColor !== undefined) {
279
- localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
280
- }
281
-
282
- if (buttonColor !== undefined) {
283
- localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
284
- }
285
-
286
- if (buttonTextColor !== undefined) {
287
- localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
288
- }
289
-
290
- if (emailDisplayName !== undefined) {
291
- localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
292
- }
293
-
294
- if (disclaimerDescription !== undefined) {
295
- localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
296
- }
297
-
298
- if (disclaimerTitle !== undefined) {
299
- localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
300
- }
301
-
302
- if (redirectUrl !== undefined) {
303
- localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
304
- }
305
-
306
- if (isDefault !== undefined) {
307
- localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
308
- }
309
-
310
- if (canHideTagLine !== undefined) {
311
- localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
312
- }
313
-
314
- if (combineAuditTrail !== undefined) {
315
- localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
316
- }
317
-
318
- if (combineAttachments !== undefined) {
319
- localVarFormParams['CombineAttachments'] = ObjectSerializer.serialize(combineAttachments, "boolean");
320
- }
321
-
322
- if (excludeAuditTrailFromEmail !== undefined) {
323
- localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
324
- }
325
-
326
- if (emailSignedDocument !== undefined) {
327
- localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
328
- }
329
-
330
- if (documentTimeZone !== undefined) {
331
- localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
332
- }
333
-
334
- if (showBuiltInFormFields !== undefined) {
335
- localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
336
- }
337
-
338
- if (allowCustomFieldCreation !== undefined) {
339
- localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
340
- }
341
-
342
- if (showSharedCustomFields !== undefined) {
343
- localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
344
- }
345
-
346
- if (hideDecline !== undefined) {
347
- localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
348
- }
349
-
350
- if (hideSave !== undefined) {
351
- localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
352
- }
353
-
354
- if (documentExpirySettingsExpiryDateType !== undefined) {
355
- localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
356
- }
357
-
358
- if (documentExpirySettingsExpiryValue !== undefined) {
359
- localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
360
- }
361
-
362
- if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
363
- localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
364
- }
365
-
366
- if (documentExpirySettingsEnableAutoReminder !== undefined) {
367
- localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
368
- }
369
-
370
- if (documentExpirySettingsReminderDays !== undefined) {
371
- localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
372
- }
373
-
374
- if (documentExpirySettingsReminderCount !== undefined) {
375
- localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
376
- }
377
-
378
- if (customDomainSettingsDomainName !== undefined) {
379
- localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
380
- }
381
-
382
- if (customDomainSettingsFromName !== undefined) {
383
- localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
384
- }
385
-
386
- if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
387
- localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
388
- }
389
-
390
- if (signatureFrameSettingsShowRecipientName !== undefined) {
391
- localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
392
- }
393
-
394
- if (signatureFrameSettingsShowRecipientEmail !== undefined) {
395
- localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
396
- }
397
-
398
- if (signatureFrameSettingsShowTimeStamp !== undefined) {
399
- localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
400
- }
401
-
402
- let data = {};
403
- if (localVarUseFormData) {
404
- const formData = toFormData(localVarFormParams);
405
- data = formData;
406
- localVarHeaderParams = {
407
- ...localVarHeaderParams,
408
- ...formData.getHeaders(),
409
- };
410
- }
411
-
412
- let localVarRequestOptions: AxiosRequestConfig = {
413
- method: 'POST',
414
- params: localVarQueryParameters,
415
- headers: localVarHeaderParams,
416
- url: localVarPath,
417
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
418
- maxContentLength: Infinity,
419
- maxBodyLength: Infinity,
420
- responseType: "json",
421
- };
422
-
423
- if (localVarRequestOptions.method !== 'GET') {
424
- localVarRequestOptions.data = data;
425
- }
426
- let authenticationPromise = Promise.resolve();
427
-
428
- if (this.authentications["X-API-KEY"].apiKey) {
429
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
430
- }
431
- if (this.authentications["Bearer"].apiKey) {
432
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
433
- }
434
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
435
-
436
- let interceptorPromise = authenticationPromise;
437
- for (const interceptor of this.interceptors) {
438
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
439
- }
440
-
441
- return interceptorPromise.then(() => {
442
- return new Promise<BrandCreated>((resolve, reject) => {
443
- axios.request(localVarRequestOptions)
444
- .then((response) => {
445
- handleSuccessfulResponse<BrandCreated>(
446
- resolve,
447
- reject,
448
- response,
449
- "BrandCreated",
450
- );
451
- }, (error: AxiosError) => {
452
- if (error.response == null) {
453
- reject(error);
454
- return;
455
- }
456
-
457
- if (handleErrorCodeResponse(
458
- reject,
459
- error.response,
460
- 200,
461
- "BrandCreated",
462
- )) {
463
- return;
464
- }
465
- if (handleErrorCodeResponse(
466
- reject,
467
- error.response,
468
- 401,
469
- "ErrorResult",
470
- )) {
471
- return;
472
- }
473
- if (handleErrorCodeResponse(
474
- reject,
475
- error.response,
476
- 403,
477
- "ErrorResult",
478
- )) {
479
- return;
480
- }
481
- if (handleErrorCodeResponse(
482
- reject,
483
- error.response,
484
- 422,
485
- "ErrorResult",
486
- )) {
487
- return;
488
- }
489
-
490
-
491
- reject(error);
492
- });
493
- });
494
- });
495
- }
496
- /**
497
- *
498
- * @summary Delete the brand.
499
- * @param brandId brand Id.
500
- * @param options
501
- */
502
- public async deleteBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<BrandingMessage> {
503
- const localVarPath = this.basePath + '/v1/brand/delete';
504
- let localVarQueryParameters: any = {};
505
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
506
- 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'];
507
- // give precedence to 'application/json'
508
- if (produces.indexOf('application/json') >= 0) {
509
- localVarHeaderParams['content-type'] = 'application/json';
510
- } else {
511
- localVarHeaderParams['content-type'] = produces.join(',');
512
- }
513
- let localVarFormParams: any = {};
514
- let localVarBodyParams: any = undefined;
515
-
516
- // verify required parameter 'brandId' is not null or undefined
517
- if (brandId === null || brandId === undefined) {
518
- throw new Error('Required parameter brandId was null or undefined when calling deleteBrand.');
519
- }
520
-
521
- if (brandId !== undefined) {
522
- localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
523
- }
524
-
525
- (<any>Object).assign(localVarHeaderParams, options.headers);
526
-
527
- let localVarUseFormData = false;
528
-
529
- let data = {};
530
- if (localVarUseFormData) {
531
- const formData = toFormData(localVarFormParams);
532
- data = formData;
533
- localVarHeaderParams = {
534
- ...localVarHeaderParams,
535
- ...formData.getHeaders(),
536
- };
537
- }
538
-
539
- let localVarRequestOptions: AxiosRequestConfig = {
540
- method: 'DELETE',
541
- params: localVarQueryParameters,
542
- headers: localVarHeaderParams,
543
- url: localVarPath,
544
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
545
- maxContentLength: Infinity,
546
- maxBodyLength: Infinity,
547
- responseType: "json",
548
- };
549
-
550
- if (localVarRequestOptions.method !== 'GET') {
551
- localVarRequestOptions.data = data;
552
- }
553
- let authenticationPromise = Promise.resolve();
554
-
555
- if (this.authentications["X-API-KEY"].apiKey) {
556
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
557
- }
558
- if (this.authentications["Bearer"].apiKey) {
559
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
560
- }
561
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
562
-
563
- let interceptorPromise = authenticationPromise;
564
- for (const interceptor of this.interceptors) {
565
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
566
- }
567
-
568
- return interceptorPromise.then(() => {
569
- return new Promise<BrandingMessage>((resolve, reject) => {
570
- axios.request(localVarRequestOptions)
571
- .then((response) => {
572
- handleSuccessfulResponse<BrandingMessage>(
573
- resolve,
574
- reject,
575
- response,
576
- "BrandingMessage",
577
- );
578
- }, (error: AxiosError) => {
579
- if (error.response == null) {
580
- reject(error);
581
- return;
582
- }
583
-
584
- if (handleErrorCodeResponse(
585
- reject,
586
- error.response,
587
- 200,
588
- "BrandingMessage",
589
- )) {
590
- return;
591
- }
592
- if (handleErrorCodeResponse(
593
- reject,
594
- error.response,
595
- 401,
596
- "ErrorResult",
597
- )) {
598
- return;
599
- }
600
- if (handleErrorCodeResponse(
601
- reject,
602
- error.response,
603
- 403,
604
- "ErrorResult",
605
- )) {
606
- return;
607
- }
608
-
609
-
610
- reject(error);
611
- });
612
- });
613
- });
614
- }
615
- /**
616
- *
617
- * @summary Edit the brand.
618
- * @param brandId The brand id.
619
- * @param brandName
620
- * @param brandLogo
621
- * @param backgroundColor
622
- * @param buttonColor
623
- * @param buttonTextColor
624
- * @param emailDisplayName
625
- * @param disclaimerDescription
626
- * @param disclaimerTitle
627
- * @param redirectUrl
628
- * @param isDefault
629
- * @param canHideTagLine
630
- * @param combineAuditTrail
631
- * @param combineAttachments
632
- * @param excludeAuditTrailFromEmail
633
- * @param emailSignedDocument
634
- * @param documentTimeZone
635
- * @param showBuiltInFormFields
636
- * @param allowCustomFieldCreation
637
- * @param showSharedCustomFields
638
- * @param hideDecline
639
- * @param hideSave
640
- * @param documentExpirySettingsExpiryDateType
641
- * @param documentExpirySettingsExpiryValue
642
- * @param documentExpirySettingsEnableDefaultExpiryAlert
643
- * @param documentExpirySettingsEnableAutoReminder
644
- * @param documentExpirySettingsReminderDays
645
- * @param documentExpirySettingsReminderCount
646
- * @param customDomainSettingsDomainName
647
- * @param customDomainSettingsFromName
648
- * @param signatureFrameSettingsEnableSignatureFrame
649
- * @param signatureFrameSettingsShowRecipientName
650
- * @param signatureFrameSettingsShowRecipientEmail
651
- * @param signatureFrameSettingsShowTimeStamp
652
- * @param options
653
- */
654
- public async editBrand (brandId: string, brandName?: string, brandLogo?: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, combineAttachments?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, signatureFrameSettingsEnableSignatureFrame?: boolean, signatureFrameSettingsShowRecipientName?: boolean, signatureFrameSettingsShowRecipientEmail?: boolean, signatureFrameSettingsShowTimeStamp?: boolean, options: optionsI = {headers: {}}) : Promise<BrandCreated> {
655
- const localVarPath = this.basePath + '/v1/brand/edit';
656
- let localVarQueryParameters: any = {};
657
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
658
- 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'];
659
- // give precedence to 'application/json'
660
- if (produces.indexOf('application/json') >= 0) {
661
- localVarHeaderParams['content-type'] = 'application/json';
662
- } else {
663
- localVarHeaderParams['content-type'] = produces.join(',');
664
- }
665
- let localVarFormParams: any = {};
666
- let localVarBodyParams: any = undefined;
667
-
668
- // verify required parameter 'brandId' is not null or undefined
669
- if (brandId === null || brandId === undefined) {
670
- throw new Error('Required parameter brandId was null or undefined when calling editBrand.');
671
- }
672
-
673
- if (brandId !== undefined) {
674
- localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
675
- }
676
-
677
- (<any>Object).assign(localVarHeaderParams, options.headers);
678
-
679
- let localVarUseFormData = false;
680
-
681
- if (brandName !== undefined) {
682
- localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
683
- }
684
-
685
- if (brandLogo !== undefined) {
686
- localVarFormParams['BrandLogo'] = brandLogo;
687
- }
688
- localVarUseFormData = true;
689
-
690
- if (backgroundColor !== undefined) {
691
- localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
692
- }
693
-
694
- if (buttonColor !== undefined) {
695
- localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
696
- }
697
-
698
- if (buttonTextColor !== undefined) {
699
- localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
700
- }
701
-
702
- if (emailDisplayName !== undefined) {
703
- localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
704
- }
705
-
706
- if (disclaimerDescription !== undefined) {
707
- localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
708
- }
709
-
710
- if (disclaimerTitle !== undefined) {
711
- localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
712
- }
713
-
714
- if (redirectUrl !== undefined) {
715
- localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
716
- }
717
-
718
- if (isDefault !== undefined) {
719
- localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
720
- }
721
-
722
- if (canHideTagLine !== undefined) {
723
- localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
724
- }
725
-
726
- if (combineAuditTrail !== undefined) {
727
- localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
728
- }
729
-
730
- if (combineAttachments !== undefined) {
731
- localVarFormParams['CombineAttachments'] = ObjectSerializer.serialize(combineAttachments, "boolean");
732
- }
733
-
734
- if (excludeAuditTrailFromEmail !== undefined) {
735
- localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
736
- }
737
-
738
- if (emailSignedDocument !== undefined) {
739
- localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
740
- }
741
-
742
- if (documentTimeZone !== undefined) {
743
- localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
744
- }
745
-
746
- if (showBuiltInFormFields !== undefined) {
747
- localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
748
- }
749
-
750
- if (allowCustomFieldCreation !== undefined) {
751
- localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
752
- }
753
-
754
- if (showSharedCustomFields !== undefined) {
755
- localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
756
- }
757
-
758
- if (hideDecline !== undefined) {
759
- localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
760
- }
761
-
762
- if (hideSave !== undefined) {
763
- localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
764
- }
765
-
766
- if (documentExpirySettingsExpiryDateType !== undefined) {
767
- localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
768
- }
769
-
770
- if (documentExpirySettingsExpiryValue !== undefined) {
771
- localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
772
- }
773
-
774
- if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
775
- localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
776
- }
777
-
778
- if (documentExpirySettingsEnableAutoReminder !== undefined) {
779
- localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
780
- }
781
-
782
- if (documentExpirySettingsReminderDays !== undefined) {
783
- localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
784
- }
785
-
786
- if (documentExpirySettingsReminderCount !== undefined) {
787
- localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
788
- }
789
-
790
- if (customDomainSettingsDomainName !== undefined) {
791
- localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
792
- }
793
-
794
- if (customDomainSettingsFromName !== undefined) {
795
- localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
796
- }
797
-
798
- if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
799
- localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
800
- }
801
-
802
- if (signatureFrameSettingsShowRecipientName !== undefined) {
803
- localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
804
- }
805
-
806
- if (signatureFrameSettingsShowRecipientEmail !== undefined) {
807
- localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
808
- }
809
-
810
- if (signatureFrameSettingsShowTimeStamp !== undefined) {
811
- localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
812
- }
813
-
814
- let data = {};
815
- if (localVarUseFormData) {
816
- const formData = toFormData(localVarFormParams);
817
- data = formData;
818
- localVarHeaderParams = {
819
- ...localVarHeaderParams,
820
- ...formData.getHeaders(),
821
- };
822
- }
823
-
824
- let localVarRequestOptions: AxiosRequestConfig = {
825
- method: 'POST',
826
- params: localVarQueryParameters,
827
- headers: localVarHeaderParams,
828
- url: localVarPath,
829
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
830
- maxContentLength: Infinity,
831
- maxBodyLength: Infinity,
832
- responseType: "json",
833
- };
834
-
835
- if (localVarRequestOptions.method !== 'GET') {
836
- localVarRequestOptions.data = data;
837
- }
838
- let authenticationPromise = Promise.resolve();
839
-
840
- if (this.authentications["X-API-KEY"].apiKey) {
841
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
842
- }
843
- if (this.authentications["Bearer"].apiKey) {
844
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
845
- }
846
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
847
-
848
- let interceptorPromise = authenticationPromise;
849
- for (const interceptor of this.interceptors) {
850
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
851
- }
852
-
853
- return interceptorPromise.then(() => {
854
- return new Promise<BrandCreated>((resolve, reject) => {
855
- axios.request(localVarRequestOptions)
856
- .then((response) => {
857
- handleSuccessfulResponse<BrandCreated>(
858
- resolve,
859
- reject,
860
- response,
861
- "BrandCreated",
862
- );
863
- }, (error: AxiosError) => {
864
- if (error.response == null) {
865
- reject(error);
866
- return;
867
- }
868
-
869
- if (handleErrorCodeResponse(
870
- reject,
871
- error.response,
872
- 200,
873
- "BrandCreated",
874
- )) {
875
- return;
876
- }
877
- if (handleErrorCodeResponse(
878
- reject,
879
- error.response,
880
- 401,
881
- "ErrorResult",
882
- )) {
883
- return;
884
- }
885
- if (handleErrorCodeResponse(
886
- reject,
887
- error.response,
888
- 403,
889
- "ErrorResult",
890
- )) {
891
- return;
892
- }
893
- if (handleErrorCodeResponse(
894
- reject,
895
- error.response,
896
- 422,
897
- "ErrorResult",
898
- )) {
899
- return;
900
- }
901
-
902
-
903
- reject(error);
904
- });
905
- });
906
- });
907
- }
908
- /**
909
- *
910
- * @summary Get the specific brand details.
911
- * @param brandId The brand id.
912
- * @param options
913
- */
914
- public async getBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<ViewBrandDetails> {
915
- const localVarPath = this.basePath + '/v1/brand/get';
916
- let localVarQueryParameters: any = {};
917
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
918
- const produces = ['application/json'];
919
- // give precedence to 'application/json'
920
- if (produces.indexOf('application/json') >= 0) {
921
- localVarHeaderParams['content-type'] = 'application/json';
922
- } else {
923
- localVarHeaderParams['content-type'] = produces.join(',');
924
- }
925
- let localVarFormParams: any = {};
926
- let localVarBodyParams: any = undefined;
927
-
928
- // verify required parameter 'brandId' is not null or undefined
929
- if (brandId === null || brandId === undefined) {
930
- throw new Error('Required parameter brandId was null or undefined when calling getBrand.');
931
- }
932
-
933
- if (brandId !== undefined) {
934
- localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
935
- }
936
-
937
- (<any>Object).assign(localVarHeaderParams, options.headers);
938
-
939
- let localVarUseFormData = false;
940
-
941
- let data = {};
942
- if (localVarUseFormData) {
943
- const formData = toFormData(localVarFormParams);
944
- data = formData;
945
- localVarHeaderParams = {
946
- ...localVarHeaderParams,
947
- ...formData.getHeaders(),
948
- };
949
- }
950
-
951
- let localVarRequestOptions: AxiosRequestConfig = {
952
- method: 'GET',
953
- params: localVarQueryParameters,
954
- headers: localVarHeaderParams,
955
- url: localVarPath,
956
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
957
- maxContentLength: Infinity,
958
- maxBodyLength: Infinity,
959
- responseType: "json",
960
- };
961
-
962
- if (localVarRequestOptions.method !== 'GET') {
963
- localVarRequestOptions.data = data;
964
- }
965
- let authenticationPromise = Promise.resolve();
966
-
967
- if (this.authentications["X-API-KEY"].apiKey) {
968
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
969
- }
970
- if (this.authentications["Bearer"].apiKey) {
971
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
972
- }
973
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
974
-
975
- let interceptorPromise = authenticationPromise;
976
- for (const interceptor of this.interceptors) {
977
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
978
- }
979
-
980
- return interceptorPromise.then(() => {
981
- return new Promise<ViewBrandDetails>((resolve, reject) => {
982
- axios.request(localVarRequestOptions)
983
- .then((response) => {
984
- handleSuccessfulResponse<ViewBrandDetails>(
985
- resolve,
986
- reject,
987
- response,
988
- "ViewBrandDetails",
989
- );
990
- }, (error: AxiosError) => {
991
- if (error.response == null) {
992
- reject(error);
993
- return;
994
- }
995
-
996
- if (handleErrorCodeResponse(
997
- reject,
998
- error.response,
999
- 200,
1000
- "ViewBrandDetails",
1001
- )) {
1002
- return;
1003
- }
1004
- if (handleErrorCodeResponse(
1005
- reject,
1006
- error.response,
1007
- 401,
1008
- "ErrorResult",
1009
- )) {
1010
- return;
1011
- }
1012
- if (handleErrorCodeResponse(
1013
- reject,
1014
- error.response,
1015
- 403,
1016
- "ErrorResult",
1017
- )) {
1018
- return;
1019
- }
1020
- if (handleErrorCodeResponse(
1021
- reject,
1022
- error.response,
1023
- 422,
1024
- "ErrorResult",
1025
- )) {
1026
- return;
1027
- }
1028
-
1029
-
1030
- reject(error);
1031
- });
1032
- });
1033
- });
1034
- }
1035
- /**
1036
- *
1037
- * @summary Reset default brand.
1038
- * @param brandId brand Id.
1039
- * @param options
1040
- */
1041
- public async resetDefaultBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<BrandingMessage> {
1042
- const localVarPath = this.basePath + '/v1/brand/resetdefault';
1043
- let localVarQueryParameters: any = {};
1044
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1045
- 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'];
1046
- // give precedence to 'application/json'
1047
- if (produces.indexOf('application/json') >= 0) {
1048
- localVarHeaderParams['content-type'] = 'application/json';
1049
- } else {
1050
- localVarHeaderParams['content-type'] = produces.join(',');
1051
- }
1052
- let localVarFormParams: any = {};
1053
- let localVarBodyParams: any = undefined;
1054
-
1055
- // verify required parameter 'brandId' is not null or undefined
1056
- if (brandId === null || brandId === undefined) {
1057
- throw new Error('Required parameter brandId was null or undefined when calling resetDefaultBrand.');
1058
- }
1059
-
1060
- if (brandId !== undefined) {
1061
- localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
1062
- }
1063
-
1064
- (<any>Object).assign(localVarHeaderParams, options.headers);
1065
-
1066
- let localVarUseFormData = false;
1067
-
1068
- let data = {};
1069
- if (localVarUseFormData) {
1070
- const formData = toFormData(localVarFormParams);
1071
- data = formData;
1072
- localVarHeaderParams = {
1073
- ...localVarHeaderParams,
1074
- ...formData.getHeaders(),
1075
- };
1076
- }
1077
-
1078
- let localVarRequestOptions: AxiosRequestConfig = {
1079
- method: 'POST',
1080
- params: localVarQueryParameters,
1081
- headers: localVarHeaderParams,
1082
- url: localVarPath,
1083
- paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
1084
- maxContentLength: Infinity,
1085
- maxBodyLength: Infinity,
1086
- responseType: "json",
1087
- };
1088
-
1089
- if (localVarRequestOptions.method !== 'GET') {
1090
- localVarRequestOptions.data = data;
1091
- }
1092
- let authenticationPromise = Promise.resolve();
1093
-
1094
- if (this.authentications["X-API-KEY"].apiKey) {
1095
- authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
1096
- }
1097
- if (this.authentications["Bearer"].apiKey) {
1098
- authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
1099
- }
1100
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1101
-
1102
- let interceptorPromise = authenticationPromise;
1103
- for (const interceptor of this.interceptors) {
1104
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1105
- }
1106
-
1107
- return interceptorPromise.then(() => {
1108
- return new Promise<BrandingMessage>((resolve, reject) => {
1109
- axios.request(localVarRequestOptions)
1110
- .then((response) => {
1111
- handleSuccessfulResponse<BrandingMessage>(
1112
- resolve,
1113
- reject,
1114
- response,
1115
- "BrandingMessage",
1116
- );
1117
- }, (error: AxiosError) => {
1118
- if (error.response == null) {
1119
- reject(error);
1120
- return;
1121
- }
1122
-
1123
- if (handleErrorCodeResponse(
1124
- reject,
1125
- error.response,
1126
- 200,
1127
- "BrandingMessage",
1128
- )) {
1129
- return;
1130
- }
1131
- if (handleErrorCodeResponse(
1132
- reject,
1133
- error.response,
1134
- 401,
1135
- "ErrorResult",
1136
- )) {
1137
- return;
1138
- }
1139
- if (handleErrorCodeResponse(
1140
- reject,
1141
- error.response,
1142
- 403,
1143
- "ErrorResult",
1144
- )) {
1145
- return;
1146
- }
1147
-
1148
-
1149
- reject(error);
1150
- });
1151
- });
1152
- });
1153
- }
1154
- }
1155
-
1156
- function deserializeIfNeeded<T> (obj: T, classname: string): T {
1157
- if (obj !== null && obj !== undefined && obj.constructor.name !== classname) {
1158
- return ObjectSerializer.deserialize(obj, classname);
1159
- }
1160
-
1161
- return obj;
1162
- }
1163
-
1164
- type AxiosResolve<T> = (
1165
- value: (T | PromiseLike<T>),
1166
- ) => void
1167
-
1168
- type AxiosReject = (reason?: any) => void;
1169
-
1170
- function handleSuccessfulResponse<T>(
1171
- resolve: AxiosResolve<T>,
1172
- reject: AxiosReject,
1173
- response: AxiosResponse,
1174
- returnType?: string,
1175
- ) {
1176
- let body = response.data;
1177
-
1178
- if (
1179
- response.status &&
1180
- response.status >= 200 &&
1181
- response.status <= 299
1182
- ) {
1183
- if (returnType) {
1184
- body = ObjectSerializer.deserialize(body, returnType);
1185
- }
1186
-
1187
- resolve(body);
1188
- } else {
1189
- reject(new HttpError(response, body, response.status));
1190
- }
1191
- }
1192
-
1193
- function handleErrorCodeResponse(
1194
- reject: AxiosReject,
1195
- response: AxiosResponse,
1196
- code: number,
1197
- returnType: string
1198
- ): boolean {
1199
- if (response.status !== code) {
1200
- return false;
1201
- }
1202
-
1203
- let body = response.data;
1204
- if(code === 401) {
1205
- body = "Unauthorized request (401): Invalid authentication.";
1206
- }
1207
- reject(new HttpError(response, body, response.status));
1208
-
1209
- return true;
1210
- }
1211
-
1212
- function handleErrorRangeResponse(
1213
- reject: AxiosReject,
1214
- response: AxiosResponse,
1215
- code: string,
1216
- returnType: string
1217
- ): boolean {
1218
- let rangeCodeLeft = Number(code[0] + "00");
1219
- let rangeCodeRight = Number(code[0] + "99");
1220
-
1221
- if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
1222
- const body = ObjectSerializer.deserialize(
1223
- response.data,
1224
- returnType,
1225
- );
1226
-
1227
- reject(new HttpError(response, body, response.status));
1228
-
1229
- return true;
1230
- }
1231
-
1232
- return false;
1233
- }
1
+ /**
2
+ * BoldSign API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
14
+
15
+ import {
16
+ ObjectSerializer, Authentication, VoidAuth, Interceptor,
17
+ HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, RequestFile,
18
+ BrandCreated,BrandingMessage,BrandingRecords,ErrorResult,ViewBrandDetails,
19
+ } from '../model';
20
+
21
+ import {
22
+ HttpError,
23
+ optionsI,
24
+ returnTypeT,
25
+ returnTypeI,
26
+ generateFormData,
27
+ toFormData,
28
+ queryParamsSerializer,
29
+ USER_AGENT,
30
+ } from './';
31
+
32
+ let defaultBasePath = 'https://api.boldsign.com';
33
+
34
+ // ===============================================
35
+ // This file is autogenerated - Please do not edit
36
+ // ===============================================
37
+
38
+
39
+ export class BrandingApi {
40
+ protected _basePath = defaultBasePath;
41
+ protected _defaultHeaders : any = { 'User-Agent': USER_AGENT };
42
+ protected _useQuerystring : boolean = true;
43
+
44
+ protected authentications = {
45
+ 'default': <Authentication>new VoidAuth(),
46
+ 'Bearer': new ApiKeyAuth('header', 'Authorization'),
47
+ 'X-API-KEY': new ApiKeyAuth('header', 'X-API-KEY'),
48
+ }
49
+
50
+ protected interceptors: Interceptor[] = [];
51
+
52
+ constructor(basePath?: string) {
53
+ if (basePath) {
54
+ this.basePath = basePath;
55
+ }
56
+ }
57
+
58
+ set useQuerystring(value: boolean) {
59
+ this._useQuerystring = value;
60
+ }
61
+
62
+ set basePath(basePath: string) {
63
+ this._basePath = basePath;
64
+ }
65
+
66
+ set defaultHeaders(defaultHeaders: any) {
67
+ this._defaultHeaders = { ...defaultHeaders, "User-Agent": USER_AGENT };
68
+ }
69
+
70
+ get defaultHeaders() {
71
+ return this._defaultHeaders;
72
+ }
73
+
74
+ get basePath() {
75
+ return this._basePath;
76
+ }
77
+
78
+ public setDefaultAuthentication(auth: Authentication) {
79
+ this.authentications.default = auth;
80
+ }
81
+
82
+ public setApiKey(apikey: string) {
83
+ this.authentications["X-API-KEY"].apiKey = apikey;
84
+ }
85
+
86
+ public setAccessToken(accessToken: string) {
87
+ this.authentications["Bearer"].apiKey = 'bearer ' + accessToken;
88
+ }
89
+
90
+ public addInterceptor(interceptor: Interceptor) {
91
+ this.interceptors.push(interceptor);
92
+ }
93
+
94
+ /**
95
+ *
96
+ * @summary List all the brands.
97
+ * @param options
98
+ */
99
+ public async brandList (options: optionsI = {headers: {}}) : Promise<BrandingRecords> {
100
+ const localVarPath = this.basePath + '/v1/brand/list';
101
+ let localVarQueryParameters: any = {};
102
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
103
+ const produces = ['application/json'];
104
+ // give precedence to 'application/json'
105
+ if (produces.indexOf('application/json') >= 0) {
106
+ localVarHeaderParams['content-type'] = 'application/json';
107
+ } else {
108
+ localVarHeaderParams['content-type'] = produces.join(',');
109
+ }
110
+ let localVarFormParams: any = {};
111
+ let localVarBodyParams: any = undefined;
112
+
113
+ (<any>Object).assign(localVarHeaderParams, options.headers);
114
+
115
+ let localVarUseFormData = false;
116
+
117
+ let data = {};
118
+ if (localVarUseFormData) {
119
+ const formData = toFormData(localVarFormParams);
120
+ data = formData;
121
+ localVarHeaderParams = {
122
+ ...localVarHeaderParams,
123
+ ...formData.getHeaders(),
124
+ };
125
+ }
126
+
127
+ let localVarRequestOptions: AxiosRequestConfig = {
128
+ method: 'GET',
129
+ params: localVarQueryParameters,
130
+ headers: localVarHeaderParams,
131
+ url: localVarPath,
132
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
133
+ maxContentLength: Infinity,
134
+ maxBodyLength: Infinity,
135
+ responseType: "json",
136
+ };
137
+
138
+ if (localVarRequestOptions.method !== 'GET') {
139
+ localVarRequestOptions.data = data;
140
+ }
141
+ let authenticationPromise = Promise.resolve();
142
+
143
+ if (this.authentications["X-API-KEY"].apiKey) {
144
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
145
+ }
146
+ if (this.authentications["Bearer"].apiKey) {
147
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
148
+ }
149
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
150
+
151
+ let interceptorPromise = authenticationPromise;
152
+ for (const interceptor of this.interceptors) {
153
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
154
+ }
155
+
156
+ return interceptorPromise.then(() => {
157
+ return new Promise<BrandingRecords>((resolve, reject) => {
158
+ axios.request(localVarRequestOptions)
159
+ .then((response) => {
160
+ handleSuccessfulResponse<BrandingRecords>(
161
+ resolve,
162
+ reject,
163
+ response,
164
+ "BrandingRecords",
165
+ );
166
+ }, (error: AxiosError) => {
167
+ if (error.response == null) {
168
+ reject(error);
169
+ return;
170
+ }
171
+
172
+ if (handleErrorCodeResponse(
173
+ reject,
174
+ error.response,
175
+ 200,
176
+ "BrandingRecords",
177
+ )) {
178
+ return;
179
+ }
180
+ if (handleErrorCodeResponse(
181
+ reject,
182
+ error.response,
183
+ 401,
184
+ "ErrorResult",
185
+ )) {
186
+ return;
187
+ }
188
+ if (handleErrorCodeResponse(
189
+ reject,
190
+ error.response,
191
+ 403,
192
+ "ErrorResult",
193
+ )) {
194
+ return;
195
+ }
196
+
197
+
198
+ reject(error);
199
+ });
200
+ });
201
+ });
202
+ }
203
+ /**
204
+ *
205
+ * @summary Create the brand.
206
+ * @param brandName
207
+ * @param brandLogo
208
+ * @param backgroundColor
209
+ * @param buttonColor
210
+ * @param buttonTextColor
211
+ * @param emailDisplayName
212
+ * @param disclaimerDescription
213
+ * @param disclaimerTitle
214
+ * @param redirectUrl
215
+ * @param isDefault
216
+ * @param canHideTagLine
217
+ * @param combineAuditTrail
218
+ * @param combineAttachments
219
+ * @param excludeAuditTrailFromEmail
220
+ * @param emailSignedDocument
221
+ * @param documentTimeZone
222
+ * @param showBuiltInFormFields
223
+ * @param allowCustomFieldCreation
224
+ * @param showSharedCustomFields
225
+ * @param hideDecline This option prevents signers to decline the document during the signing process.
226
+ * @param hideSave This option prevents signers to save their changes during the signing process and continue signing later.
227
+ * @param documentExpirySettingsExpiryDateType This property represents the type for the expiry date
228
+ * @param documentExpirySettingsExpiryValue This property is used to set the expiry value based on the expiry type
229
+ * @param documentExpirySettingsEnableDefaultExpiryAlert This property will send the expiry alert email before the day of expiry for the pending signers.
230
+ * @param documentExpirySettingsEnableAutoReminder When auto reminder is enabled, you can select how often to remind in terms of days and select the maximum number of reminders.
231
+ * @param documentExpirySettingsReminderDays Remind in terms of days.
232
+ * @param documentExpirySettingsReminderCount Number of reminder count.
233
+ * @param customDomainSettingsDomainName
234
+ * @param customDomainSettingsFromName
235
+ * @param signatureFrameSettingsEnableSignatureFrame
236
+ * @param signatureFrameSettingsShowRecipientName
237
+ * @param signatureFrameSettingsShowRecipientEmail
238
+ * @param signatureFrameSettingsShowTimeStamp
239
+ * @param options
240
+ */
241
+ public async createBrand (brandName: string, brandLogo: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, combineAttachments?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, signatureFrameSettingsEnableSignatureFrame?: boolean, signatureFrameSettingsShowRecipientName?: boolean, signatureFrameSettingsShowRecipientEmail?: boolean, signatureFrameSettingsShowTimeStamp?: boolean, options: optionsI = {headers: {}}) : Promise<BrandCreated> {
242
+ const localVarPath = this.basePath + '/v1/brand/create';
243
+ let localVarQueryParameters: any = {};
244
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
245
+ 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'];
246
+ // give precedence to 'application/json'
247
+ if (produces.indexOf('application/json') >= 0) {
248
+ localVarHeaderParams['content-type'] = 'application/json';
249
+ } else {
250
+ localVarHeaderParams['content-type'] = produces.join(',');
251
+ }
252
+ let localVarFormParams: any = {};
253
+ let localVarBodyParams: any = undefined;
254
+
255
+ // verify required parameter 'brandName' is not null or undefined
256
+ if (brandName === null || brandName === undefined) {
257
+ throw new Error('Required parameter brandName was null or undefined when calling createBrand.');
258
+ }
259
+
260
+ // verify required parameter 'brandLogo' is not null or undefined
261
+ if (brandLogo === null || brandLogo === undefined) {
262
+ throw new Error('Required parameter brandLogo was null or undefined when calling createBrand.');
263
+ }
264
+
265
+ (<any>Object).assign(localVarHeaderParams, options.headers);
266
+
267
+ let localVarUseFormData = false;
268
+
269
+ if (brandName !== undefined) {
270
+ localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
271
+ }
272
+
273
+ if (brandLogo !== undefined) {
274
+ localVarFormParams['BrandLogo'] = brandLogo;
275
+ }
276
+ localVarUseFormData = true;
277
+
278
+ if (backgroundColor !== undefined) {
279
+ localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
280
+ }
281
+
282
+ if (buttonColor !== undefined) {
283
+ localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
284
+ }
285
+
286
+ if (buttonTextColor !== undefined) {
287
+ localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
288
+ }
289
+
290
+ if (emailDisplayName !== undefined) {
291
+ localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
292
+ }
293
+
294
+ if (disclaimerDescription !== undefined) {
295
+ localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
296
+ }
297
+
298
+ if (disclaimerTitle !== undefined) {
299
+ localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
300
+ }
301
+
302
+ if (redirectUrl !== undefined) {
303
+ localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
304
+ }
305
+
306
+ if (isDefault !== undefined) {
307
+ localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
308
+ }
309
+
310
+ if (canHideTagLine !== undefined) {
311
+ localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
312
+ }
313
+
314
+ if (combineAuditTrail !== undefined) {
315
+ localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
316
+ }
317
+
318
+ if (combineAttachments !== undefined) {
319
+ localVarFormParams['CombineAttachments'] = ObjectSerializer.serialize(combineAttachments, "boolean");
320
+ }
321
+
322
+ if (excludeAuditTrailFromEmail !== undefined) {
323
+ localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
324
+ }
325
+
326
+ if (emailSignedDocument !== undefined) {
327
+ localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
328
+ }
329
+
330
+ if (documentTimeZone !== undefined) {
331
+ localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
332
+ }
333
+
334
+ if (showBuiltInFormFields !== undefined) {
335
+ localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
336
+ }
337
+
338
+ if (allowCustomFieldCreation !== undefined) {
339
+ localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
340
+ }
341
+
342
+ if (showSharedCustomFields !== undefined) {
343
+ localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
344
+ }
345
+
346
+ if (hideDecline !== undefined) {
347
+ localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
348
+ }
349
+
350
+ if (hideSave !== undefined) {
351
+ localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
352
+ }
353
+
354
+ if (documentExpirySettingsExpiryDateType !== undefined) {
355
+ localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
356
+ }
357
+
358
+ if (documentExpirySettingsExpiryValue !== undefined) {
359
+ localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
360
+ }
361
+
362
+ if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
363
+ localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
364
+ }
365
+
366
+ if (documentExpirySettingsEnableAutoReminder !== undefined) {
367
+ localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
368
+ }
369
+
370
+ if (documentExpirySettingsReminderDays !== undefined) {
371
+ localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
372
+ }
373
+
374
+ if (documentExpirySettingsReminderCount !== undefined) {
375
+ localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
376
+ }
377
+
378
+ if (customDomainSettingsDomainName !== undefined) {
379
+ localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
380
+ }
381
+
382
+ if (customDomainSettingsFromName !== undefined) {
383
+ localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
384
+ }
385
+
386
+ if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
387
+ localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
388
+ }
389
+
390
+ if (signatureFrameSettingsShowRecipientName !== undefined) {
391
+ localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
392
+ }
393
+
394
+ if (signatureFrameSettingsShowRecipientEmail !== undefined) {
395
+ localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
396
+ }
397
+
398
+ if (signatureFrameSettingsShowTimeStamp !== undefined) {
399
+ localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
400
+ }
401
+
402
+ let data = {};
403
+ if (localVarUseFormData) {
404
+ const formData = toFormData(localVarFormParams);
405
+ data = formData;
406
+ localVarHeaderParams = {
407
+ ...localVarHeaderParams,
408
+ ...formData.getHeaders(),
409
+ };
410
+ }
411
+
412
+ let localVarRequestOptions: AxiosRequestConfig = {
413
+ method: 'POST',
414
+ params: localVarQueryParameters,
415
+ headers: localVarHeaderParams,
416
+ url: localVarPath,
417
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
418
+ maxContentLength: Infinity,
419
+ maxBodyLength: Infinity,
420
+ responseType: "json",
421
+ };
422
+
423
+ if (localVarRequestOptions.method !== 'GET') {
424
+ localVarRequestOptions.data = data;
425
+ }
426
+ let authenticationPromise = Promise.resolve();
427
+
428
+ if (this.authentications["X-API-KEY"].apiKey) {
429
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
430
+ }
431
+ if (this.authentications["Bearer"].apiKey) {
432
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
433
+ }
434
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
435
+
436
+ let interceptorPromise = authenticationPromise;
437
+ for (const interceptor of this.interceptors) {
438
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
439
+ }
440
+
441
+ return interceptorPromise.then(() => {
442
+ return new Promise<BrandCreated>((resolve, reject) => {
443
+ axios.request(localVarRequestOptions)
444
+ .then((response) => {
445
+ handleSuccessfulResponse<BrandCreated>(
446
+ resolve,
447
+ reject,
448
+ response,
449
+ "BrandCreated",
450
+ );
451
+ }, (error: AxiosError) => {
452
+ if (error.response == null) {
453
+ reject(error);
454
+ return;
455
+ }
456
+
457
+ if (handleErrorCodeResponse(
458
+ reject,
459
+ error.response,
460
+ 200,
461
+ "BrandCreated",
462
+ )) {
463
+ return;
464
+ }
465
+ if (handleErrorCodeResponse(
466
+ reject,
467
+ error.response,
468
+ 401,
469
+ "ErrorResult",
470
+ )) {
471
+ return;
472
+ }
473
+ if (handleErrorCodeResponse(
474
+ reject,
475
+ error.response,
476
+ 403,
477
+ "ErrorResult",
478
+ )) {
479
+ return;
480
+ }
481
+ if (handleErrorCodeResponse(
482
+ reject,
483
+ error.response,
484
+ 422,
485
+ "ErrorResult",
486
+ )) {
487
+ return;
488
+ }
489
+
490
+
491
+ reject(error);
492
+ });
493
+ });
494
+ });
495
+ }
496
+ /**
497
+ *
498
+ * @summary Delete the brand.
499
+ * @param brandId
500
+ * @param options
501
+ */
502
+ public async deleteBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<BrandingMessage> {
503
+ const localVarPath = this.basePath + '/v1/brand/delete';
504
+ let localVarQueryParameters: any = {};
505
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
506
+ 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'];
507
+ // give precedence to 'application/json'
508
+ if (produces.indexOf('application/json') >= 0) {
509
+ localVarHeaderParams['content-type'] = 'application/json';
510
+ } else {
511
+ localVarHeaderParams['content-type'] = produces.join(',');
512
+ }
513
+ let localVarFormParams: any = {};
514
+ let localVarBodyParams: any = undefined;
515
+
516
+ // verify required parameter 'brandId' is not null or undefined
517
+ if (brandId === null || brandId === undefined) {
518
+ throw new Error('Required parameter brandId was null or undefined when calling deleteBrand.');
519
+ }
520
+
521
+ if (brandId !== undefined) {
522
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
523
+ }
524
+
525
+ (<any>Object).assign(localVarHeaderParams, options.headers);
526
+
527
+ let localVarUseFormData = false;
528
+
529
+ let data = {};
530
+ if (localVarUseFormData) {
531
+ const formData = toFormData(localVarFormParams);
532
+ data = formData;
533
+ localVarHeaderParams = {
534
+ ...localVarHeaderParams,
535
+ ...formData.getHeaders(),
536
+ };
537
+ }
538
+
539
+ let localVarRequestOptions: AxiosRequestConfig = {
540
+ method: 'DELETE',
541
+ params: localVarQueryParameters,
542
+ headers: localVarHeaderParams,
543
+ url: localVarPath,
544
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
545
+ maxContentLength: Infinity,
546
+ maxBodyLength: Infinity,
547
+ responseType: "json",
548
+ };
549
+
550
+ if (localVarRequestOptions.method !== 'GET') {
551
+ localVarRequestOptions.data = data;
552
+ }
553
+ let authenticationPromise = Promise.resolve();
554
+
555
+ if (this.authentications["X-API-KEY"].apiKey) {
556
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
557
+ }
558
+ if (this.authentications["Bearer"].apiKey) {
559
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
560
+ }
561
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
562
+
563
+ let interceptorPromise = authenticationPromise;
564
+ for (const interceptor of this.interceptors) {
565
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
566
+ }
567
+
568
+ return interceptorPromise.then(() => {
569
+ return new Promise<BrandingMessage>((resolve, reject) => {
570
+ axios.request(localVarRequestOptions)
571
+ .then((response) => {
572
+ handleSuccessfulResponse<BrandingMessage>(
573
+ resolve,
574
+ reject,
575
+ response,
576
+ "BrandingMessage",
577
+ );
578
+ }, (error: AxiosError) => {
579
+ if (error.response == null) {
580
+ reject(error);
581
+ return;
582
+ }
583
+
584
+ if (handleErrorCodeResponse(
585
+ reject,
586
+ error.response,
587
+ 200,
588
+ "BrandingMessage",
589
+ )) {
590
+ return;
591
+ }
592
+ if (handleErrorCodeResponse(
593
+ reject,
594
+ error.response,
595
+ 401,
596
+ "ErrorResult",
597
+ )) {
598
+ return;
599
+ }
600
+ if (handleErrorCodeResponse(
601
+ reject,
602
+ error.response,
603
+ 403,
604
+ "ErrorResult",
605
+ )) {
606
+ return;
607
+ }
608
+
609
+
610
+ reject(error);
611
+ });
612
+ });
613
+ });
614
+ }
615
+ /**
616
+ *
617
+ * @summary Edit the brand.
618
+ * @param brandId
619
+ * @param brandName
620
+ * @param brandLogo
621
+ * @param backgroundColor
622
+ * @param buttonColor
623
+ * @param buttonTextColor
624
+ * @param emailDisplayName
625
+ * @param disclaimerDescription
626
+ * @param disclaimerTitle
627
+ * @param redirectUrl
628
+ * @param isDefault
629
+ * @param canHideTagLine
630
+ * @param combineAuditTrail
631
+ * @param combineAttachments
632
+ * @param excludeAuditTrailFromEmail
633
+ * @param emailSignedDocument
634
+ * @param documentTimeZone
635
+ * @param showBuiltInFormFields
636
+ * @param allowCustomFieldCreation
637
+ * @param showSharedCustomFields
638
+ * @param hideDecline This option prevents signers to decline the document during the signing process.
639
+ * @param hideSave This option prevents signers to save their changes during the signing process and continue signing later.
640
+ * @param documentExpirySettingsExpiryDateType This property represents the type for the expiry date
641
+ * @param documentExpirySettingsExpiryValue This property is used to set the expiry value based on the expiry type
642
+ * @param documentExpirySettingsEnableDefaultExpiryAlert This property will send the expiry alert email before the day of expiry for the pending signers.
643
+ * @param documentExpirySettingsEnableAutoReminder When auto reminder is enabled, you can select how often to remind in terms of days and select the maximum number of reminders.
644
+ * @param documentExpirySettingsReminderDays Remind in terms of days.
645
+ * @param documentExpirySettingsReminderCount Number of reminder count.
646
+ * @param customDomainSettingsDomainName
647
+ * @param customDomainSettingsFromName
648
+ * @param signatureFrameSettingsEnableSignatureFrame
649
+ * @param signatureFrameSettingsShowRecipientName
650
+ * @param signatureFrameSettingsShowRecipientEmail
651
+ * @param signatureFrameSettingsShowTimeStamp
652
+ * @param options
653
+ */
654
+ public async editBrand (brandId: string, brandName?: string, brandLogo?: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, combineAttachments?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, signatureFrameSettingsEnableSignatureFrame?: boolean, signatureFrameSettingsShowRecipientName?: boolean, signatureFrameSettingsShowRecipientEmail?: boolean, signatureFrameSettingsShowTimeStamp?: boolean, options: optionsI = {headers: {}}) : Promise<BrandCreated> {
655
+ const localVarPath = this.basePath + '/v1/brand/edit';
656
+ let localVarQueryParameters: any = {};
657
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
658
+ 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'];
659
+ // give precedence to 'application/json'
660
+ if (produces.indexOf('application/json') >= 0) {
661
+ localVarHeaderParams['content-type'] = 'application/json';
662
+ } else {
663
+ localVarHeaderParams['content-type'] = produces.join(',');
664
+ }
665
+ let localVarFormParams: any = {};
666
+ let localVarBodyParams: any = undefined;
667
+
668
+ // verify required parameter 'brandId' is not null or undefined
669
+ if (brandId === null || brandId === undefined) {
670
+ throw new Error('Required parameter brandId was null or undefined when calling editBrand.');
671
+ }
672
+
673
+ if (brandId !== undefined) {
674
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
675
+ }
676
+
677
+ (<any>Object).assign(localVarHeaderParams, options.headers);
678
+
679
+ let localVarUseFormData = false;
680
+
681
+ if (brandName !== undefined) {
682
+ localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
683
+ }
684
+
685
+ if (brandLogo !== undefined) {
686
+ localVarFormParams['BrandLogo'] = brandLogo;
687
+ }
688
+ localVarUseFormData = true;
689
+
690
+ if (backgroundColor !== undefined) {
691
+ localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
692
+ }
693
+
694
+ if (buttonColor !== undefined) {
695
+ localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
696
+ }
697
+
698
+ if (buttonTextColor !== undefined) {
699
+ localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
700
+ }
701
+
702
+ if (emailDisplayName !== undefined) {
703
+ localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
704
+ }
705
+
706
+ if (disclaimerDescription !== undefined) {
707
+ localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
708
+ }
709
+
710
+ if (disclaimerTitle !== undefined) {
711
+ localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
712
+ }
713
+
714
+ if (redirectUrl !== undefined) {
715
+ localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
716
+ }
717
+
718
+ if (isDefault !== undefined) {
719
+ localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
720
+ }
721
+
722
+ if (canHideTagLine !== undefined) {
723
+ localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
724
+ }
725
+
726
+ if (combineAuditTrail !== undefined) {
727
+ localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
728
+ }
729
+
730
+ if (combineAttachments !== undefined) {
731
+ localVarFormParams['CombineAttachments'] = ObjectSerializer.serialize(combineAttachments, "boolean");
732
+ }
733
+
734
+ if (excludeAuditTrailFromEmail !== undefined) {
735
+ localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
736
+ }
737
+
738
+ if (emailSignedDocument !== undefined) {
739
+ localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
740
+ }
741
+
742
+ if (documentTimeZone !== undefined) {
743
+ localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
744
+ }
745
+
746
+ if (showBuiltInFormFields !== undefined) {
747
+ localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
748
+ }
749
+
750
+ if (allowCustomFieldCreation !== undefined) {
751
+ localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
752
+ }
753
+
754
+ if (showSharedCustomFields !== undefined) {
755
+ localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
756
+ }
757
+
758
+ if (hideDecline !== undefined) {
759
+ localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
760
+ }
761
+
762
+ if (hideSave !== undefined) {
763
+ localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
764
+ }
765
+
766
+ if (documentExpirySettingsExpiryDateType !== undefined) {
767
+ localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
768
+ }
769
+
770
+ if (documentExpirySettingsExpiryValue !== undefined) {
771
+ localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
772
+ }
773
+
774
+ if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
775
+ localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
776
+ }
777
+
778
+ if (documentExpirySettingsEnableAutoReminder !== undefined) {
779
+ localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
780
+ }
781
+
782
+ if (documentExpirySettingsReminderDays !== undefined) {
783
+ localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
784
+ }
785
+
786
+ if (documentExpirySettingsReminderCount !== undefined) {
787
+ localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
788
+ }
789
+
790
+ if (customDomainSettingsDomainName !== undefined) {
791
+ localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
792
+ }
793
+
794
+ if (customDomainSettingsFromName !== undefined) {
795
+ localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
796
+ }
797
+
798
+ if (signatureFrameSettingsEnableSignatureFrame !== undefined) {
799
+ localVarFormParams['SignatureFrameSettings.EnableSignatureFrame'] = ObjectSerializer.serialize(signatureFrameSettingsEnableSignatureFrame, "boolean");
800
+ }
801
+
802
+ if (signatureFrameSettingsShowRecipientName !== undefined) {
803
+ localVarFormParams['SignatureFrameSettings.ShowRecipientName'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientName, "boolean");
804
+ }
805
+
806
+ if (signatureFrameSettingsShowRecipientEmail !== undefined) {
807
+ localVarFormParams['SignatureFrameSettings.ShowRecipientEmail'] = ObjectSerializer.serialize(signatureFrameSettingsShowRecipientEmail, "boolean");
808
+ }
809
+
810
+ if (signatureFrameSettingsShowTimeStamp !== undefined) {
811
+ localVarFormParams['SignatureFrameSettings.ShowTimeStamp'] = ObjectSerializer.serialize(signatureFrameSettingsShowTimeStamp, "boolean");
812
+ }
813
+
814
+ let data = {};
815
+ if (localVarUseFormData) {
816
+ const formData = toFormData(localVarFormParams);
817
+ data = formData;
818
+ localVarHeaderParams = {
819
+ ...localVarHeaderParams,
820
+ ...formData.getHeaders(),
821
+ };
822
+ }
823
+
824
+ let localVarRequestOptions: AxiosRequestConfig = {
825
+ method: 'POST',
826
+ params: localVarQueryParameters,
827
+ headers: localVarHeaderParams,
828
+ url: localVarPath,
829
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
830
+ maxContentLength: Infinity,
831
+ maxBodyLength: Infinity,
832
+ responseType: "json",
833
+ };
834
+
835
+ if (localVarRequestOptions.method !== 'GET') {
836
+ localVarRequestOptions.data = data;
837
+ }
838
+ let authenticationPromise = Promise.resolve();
839
+
840
+ if (this.authentications["X-API-KEY"].apiKey) {
841
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
842
+ }
843
+ if (this.authentications["Bearer"].apiKey) {
844
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
845
+ }
846
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
847
+
848
+ let interceptorPromise = authenticationPromise;
849
+ for (const interceptor of this.interceptors) {
850
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
851
+ }
852
+
853
+ return interceptorPromise.then(() => {
854
+ return new Promise<BrandCreated>((resolve, reject) => {
855
+ axios.request(localVarRequestOptions)
856
+ .then((response) => {
857
+ handleSuccessfulResponse<BrandCreated>(
858
+ resolve,
859
+ reject,
860
+ response,
861
+ "BrandCreated",
862
+ );
863
+ }, (error: AxiosError) => {
864
+ if (error.response == null) {
865
+ reject(error);
866
+ return;
867
+ }
868
+
869
+ if (handleErrorCodeResponse(
870
+ reject,
871
+ error.response,
872
+ 200,
873
+ "BrandCreated",
874
+ )) {
875
+ return;
876
+ }
877
+ if (handleErrorCodeResponse(
878
+ reject,
879
+ error.response,
880
+ 401,
881
+ "ErrorResult",
882
+ )) {
883
+ return;
884
+ }
885
+ if (handleErrorCodeResponse(
886
+ reject,
887
+ error.response,
888
+ 403,
889
+ "ErrorResult",
890
+ )) {
891
+ return;
892
+ }
893
+ if (handleErrorCodeResponse(
894
+ reject,
895
+ error.response,
896
+ 422,
897
+ "ErrorResult",
898
+ )) {
899
+ return;
900
+ }
901
+
902
+
903
+ reject(error);
904
+ });
905
+ });
906
+ });
907
+ }
908
+ /**
909
+ *
910
+ * @summary Get the specific brand details.
911
+ * @param brandId
912
+ * @param options
913
+ */
914
+ public async getBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<ViewBrandDetails> {
915
+ const localVarPath = this.basePath + '/v1/brand/get';
916
+ let localVarQueryParameters: any = {};
917
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
918
+ const produces = ['application/json'];
919
+ // give precedence to 'application/json'
920
+ if (produces.indexOf('application/json') >= 0) {
921
+ localVarHeaderParams['content-type'] = 'application/json';
922
+ } else {
923
+ localVarHeaderParams['content-type'] = produces.join(',');
924
+ }
925
+ let localVarFormParams: any = {};
926
+ let localVarBodyParams: any = undefined;
927
+
928
+ // verify required parameter 'brandId' is not null or undefined
929
+ if (brandId === null || brandId === undefined) {
930
+ throw new Error('Required parameter brandId was null or undefined when calling getBrand.');
931
+ }
932
+
933
+ if (brandId !== undefined) {
934
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
935
+ }
936
+
937
+ (<any>Object).assign(localVarHeaderParams, options.headers);
938
+
939
+ let localVarUseFormData = false;
940
+
941
+ let data = {};
942
+ if (localVarUseFormData) {
943
+ const formData = toFormData(localVarFormParams);
944
+ data = formData;
945
+ localVarHeaderParams = {
946
+ ...localVarHeaderParams,
947
+ ...formData.getHeaders(),
948
+ };
949
+ }
950
+
951
+ let localVarRequestOptions: AxiosRequestConfig = {
952
+ method: 'GET',
953
+ params: localVarQueryParameters,
954
+ headers: localVarHeaderParams,
955
+ url: localVarPath,
956
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
957
+ maxContentLength: Infinity,
958
+ maxBodyLength: Infinity,
959
+ responseType: "json",
960
+ };
961
+
962
+ if (localVarRequestOptions.method !== 'GET') {
963
+ localVarRequestOptions.data = data;
964
+ }
965
+ let authenticationPromise = Promise.resolve();
966
+
967
+ if (this.authentications["X-API-KEY"].apiKey) {
968
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
969
+ }
970
+ if (this.authentications["Bearer"].apiKey) {
971
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
972
+ }
973
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
974
+
975
+ let interceptorPromise = authenticationPromise;
976
+ for (const interceptor of this.interceptors) {
977
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
978
+ }
979
+
980
+ return interceptorPromise.then(() => {
981
+ return new Promise<ViewBrandDetails>((resolve, reject) => {
982
+ axios.request(localVarRequestOptions)
983
+ .then((response) => {
984
+ handleSuccessfulResponse<ViewBrandDetails>(
985
+ resolve,
986
+ reject,
987
+ response,
988
+ "ViewBrandDetails",
989
+ );
990
+ }, (error: AxiosError) => {
991
+ if (error.response == null) {
992
+ reject(error);
993
+ return;
994
+ }
995
+
996
+ if (handleErrorCodeResponse(
997
+ reject,
998
+ error.response,
999
+ 200,
1000
+ "ViewBrandDetails",
1001
+ )) {
1002
+ return;
1003
+ }
1004
+ if (handleErrorCodeResponse(
1005
+ reject,
1006
+ error.response,
1007
+ 401,
1008
+ "ErrorResult",
1009
+ )) {
1010
+ return;
1011
+ }
1012
+ if (handleErrorCodeResponse(
1013
+ reject,
1014
+ error.response,
1015
+ 403,
1016
+ "ErrorResult",
1017
+ )) {
1018
+ return;
1019
+ }
1020
+ if (handleErrorCodeResponse(
1021
+ reject,
1022
+ error.response,
1023
+ 422,
1024
+ "ErrorResult",
1025
+ )) {
1026
+ return;
1027
+ }
1028
+
1029
+
1030
+ reject(error);
1031
+ });
1032
+ });
1033
+ });
1034
+ }
1035
+ /**
1036
+ *
1037
+ * @summary Reset default brand.
1038
+ * @param brandId
1039
+ * @param options
1040
+ */
1041
+ public async resetDefaultBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<BrandingMessage> {
1042
+ const localVarPath = this.basePath + '/v1/brand/resetdefault';
1043
+ let localVarQueryParameters: any = {};
1044
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1045
+ 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'];
1046
+ // give precedence to 'application/json'
1047
+ if (produces.indexOf('application/json') >= 0) {
1048
+ localVarHeaderParams['content-type'] = 'application/json';
1049
+ } else {
1050
+ localVarHeaderParams['content-type'] = produces.join(',');
1051
+ }
1052
+ let localVarFormParams: any = {};
1053
+ let localVarBodyParams: any = undefined;
1054
+
1055
+ // verify required parameter 'brandId' is not null or undefined
1056
+ if (brandId === null || brandId === undefined) {
1057
+ throw new Error('Required parameter brandId was null or undefined when calling resetDefaultBrand.');
1058
+ }
1059
+
1060
+ if (brandId !== undefined) {
1061
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
1062
+ }
1063
+
1064
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1065
+
1066
+ let localVarUseFormData = false;
1067
+
1068
+ let data = {};
1069
+ if (localVarUseFormData) {
1070
+ const formData = toFormData(localVarFormParams);
1071
+ data = formData;
1072
+ localVarHeaderParams = {
1073
+ ...localVarHeaderParams,
1074
+ ...formData.getHeaders(),
1075
+ };
1076
+ }
1077
+
1078
+ let localVarRequestOptions: AxiosRequestConfig = {
1079
+ method: 'POST',
1080
+ params: localVarQueryParameters,
1081
+ headers: localVarHeaderParams,
1082
+ url: localVarPath,
1083
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
1084
+ maxContentLength: Infinity,
1085
+ maxBodyLength: Infinity,
1086
+ responseType: "json",
1087
+ };
1088
+
1089
+ if (localVarRequestOptions.method !== 'GET') {
1090
+ localVarRequestOptions.data = data;
1091
+ }
1092
+ let authenticationPromise = Promise.resolve();
1093
+
1094
+ if (this.authentications["X-API-KEY"].apiKey) {
1095
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
1096
+ }
1097
+ if (this.authentications["Bearer"].apiKey) {
1098
+ authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
1099
+ }
1100
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1101
+
1102
+ let interceptorPromise = authenticationPromise;
1103
+ for (const interceptor of this.interceptors) {
1104
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1105
+ }
1106
+
1107
+ return interceptorPromise.then(() => {
1108
+ return new Promise<BrandingMessage>((resolve, reject) => {
1109
+ axios.request(localVarRequestOptions)
1110
+ .then((response) => {
1111
+ handleSuccessfulResponse<BrandingMessage>(
1112
+ resolve,
1113
+ reject,
1114
+ response,
1115
+ "BrandingMessage",
1116
+ );
1117
+ }, (error: AxiosError) => {
1118
+ if (error.response == null) {
1119
+ reject(error);
1120
+ return;
1121
+ }
1122
+
1123
+ if (handleErrorCodeResponse(
1124
+ reject,
1125
+ error.response,
1126
+ 200,
1127
+ "BrandingMessage",
1128
+ )) {
1129
+ return;
1130
+ }
1131
+ if (handleErrorCodeResponse(
1132
+ reject,
1133
+ error.response,
1134
+ 401,
1135
+ "ErrorResult",
1136
+ )) {
1137
+ return;
1138
+ }
1139
+ if (handleErrorCodeResponse(
1140
+ reject,
1141
+ error.response,
1142
+ 403,
1143
+ "ErrorResult",
1144
+ )) {
1145
+ return;
1146
+ }
1147
+
1148
+
1149
+ reject(error);
1150
+ });
1151
+ });
1152
+ });
1153
+ }
1154
+ }
1155
+
1156
+ function deserializeIfNeeded<T> (obj: T, classname: string): T {
1157
+ if (obj !== null && obj !== undefined && obj.constructor.name !== classname) {
1158
+ return ObjectSerializer.deserialize(obj, classname);
1159
+ }
1160
+
1161
+ return obj;
1162
+ }
1163
+
1164
+ type AxiosResolve<T> = (
1165
+ value: (T | PromiseLike<T>),
1166
+ ) => void
1167
+
1168
+ type AxiosReject = (reason?: any) => void;
1169
+
1170
+ function handleSuccessfulResponse<T>(
1171
+ resolve: AxiosResolve<T>,
1172
+ reject: AxiosReject,
1173
+ response: AxiosResponse,
1174
+ returnType?: string,
1175
+ ) {
1176
+ let body = response.data;
1177
+
1178
+ if (
1179
+ response.status &&
1180
+ response.status >= 200 &&
1181
+ response.status <= 299
1182
+ ) {
1183
+ if (returnType) {
1184
+ body = ObjectSerializer.deserialize(body, returnType);
1185
+ }
1186
+
1187
+ resolve(body);
1188
+ } else {
1189
+ reject(new HttpError(response, body, response.status));
1190
+ }
1191
+ }
1192
+
1193
+ function handleErrorCodeResponse(
1194
+ reject: AxiosReject,
1195
+ response: AxiosResponse,
1196
+ code: number,
1197
+ returnType: string
1198
+ ): boolean {
1199
+ if (response.status !== code) {
1200
+ return false;
1201
+ }
1202
+
1203
+ let body = response.data;
1204
+ if(code === 401) {
1205
+ body = "Unauthorized request (401): Invalid authentication.";
1206
+ }
1207
+ reject(new HttpError(response, body, response.status));
1208
+
1209
+ return true;
1210
+ }
1211
+
1212
+ function handleErrorRangeResponse(
1213
+ reject: AxiosReject,
1214
+ response: AxiosResponse,
1215
+ code: string,
1216
+ returnType: string
1217
+ ): boolean {
1218
+ let rangeCodeLeft = Number(code[0] + "00");
1219
+ let rangeCodeRight = Number(code[0] + "99");
1220
+
1221
+ if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
1222
+ const body = ObjectSerializer.deserialize(
1223
+ response.data,
1224
+ returnType,
1225
+ );
1226
+
1227
+ reject(new HttpError(response, body, response.status));
1228
+
1229
+ return true;
1230
+ }
1231
+
1232
+ return false;
1233
+ }