boldsign 3.2.0 → 3.3.0

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