boldsign 3.2.0-beta.4 → 3.2.0-beta.5

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