boldsign 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (862) hide show
  1. package/.openapi-generator/FILES +137 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/LICENSE +21 -0
  5. package/README.md +61 -0
  6. package/api/apis.ts +162 -0
  7. package/api/brandingApi.ts +1142 -0
  8. package/api/contactsApi.ts +764 -0
  9. package/api/customFieldApi.ts +785 -0
  10. package/api/documentApi.ts +2887 -0
  11. package/api/index.ts +34 -0
  12. package/api/planApi.ts +270 -0
  13. package/api/senderIdentitiesApi.ts +873 -0
  14. package/api/teamsApi.ts +654 -0
  15. package/api/templateApi.ts +1686 -0
  16. package/api/userApi.ts +848 -0
  17. package/api.ts +3 -0
  18. package/dist/api/apis.d.ts +29 -0
  19. package/dist/api/apis.js +112 -0
  20. package/dist/api/apis.js.map +1 -0
  21. package/dist/api/brandingApi.d.ts +28 -0
  22. package/dist/api/brandingApi.js +728 -0
  23. package/dist/api/brandingApi.js.map +1 -0
  24. package/dist/api/contactsApi.d.ts +27 -0
  25. package/dist/api/contactsApi.js +495 -0
  26. package/dist/api/contactsApi.js.map +1 -0
  27. package/dist/api/customFieldApi.d.ts +27 -0
  28. package/dist/api/customFieldApi.js +504 -0
  29. package/dist/api/customFieldApi.js.map +1 -0
  30. package/dist/api/documentApi.d.ts +43 -0
  31. package/dist/api/documentApi.js +1902 -0
  32. package/dist/api/documentApi.js.map +1 -0
  33. package/dist/api/index.d.ts +12 -0
  34. package/dist/api/index.js +29 -0
  35. package/dist/api/index.js.map +1 -0
  36. package/dist/api/planApi.d.ts +23 -0
  37. package/dist/api/planApi.js +168 -0
  38. package/dist/api/planApi.js.map +1 -0
  39. package/dist/api/senderIdentitiesApi.d.ts +28 -0
  40. package/dist/api/senderIdentitiesApi.js +573 -0
  41. package/dist/api/senderIdentitiesApi.js.map +1 -0
  42. package/dist/api/teamsApi.d.ts +26 -0
  43. package/dist/api/teamsApi.js +420 -0
  44. package/dist/api/teamsApi.js.map +1 -0
  45. package/dist/api/templateApi.d.ts +35 -0
  46. package/dist/api/templateApi.js +1120 -0
  47. package/dist/api/templateApi.js.map +1 -0
  48. package/dist/api/userApi.d.ts +28 -0
  49. package/dist/api/userApi.js +558 -0
  50. package/dist/api/userApi.js.map +1 -0
  51. package/dist/api.d.ts +2 -0
  52. package/dist/api.js +19 -0
  53. package/dist/api.js.map +1 -0
  54. package/dist/examples/DocumentProperties.d.ts +1 -0
  55. package/dist/examples/DocumentProperties.js +28 -0
  56. package/dist/examples/DocumentProperties.js.map +1 -0
  57. package/dist/examples/brandCreate.d.ts +1 -0
  58. package/dist/examples/brandCreate.js +68 -0
  59. package/dist/examples/brandCreate.js.map +1 -0
  60. package/dist/examples/brandDelete.d.ts +1 -0
  61. package/dist/examples/brandDelete.js +28 -0
  62. package/dist/examples/brandDelete.js.map +1 -0
  63. package/dist/examples/brandGet.d.ts +1 -0
  64. package/dist/examples/brandGet.js +28 -0
  65. package/dist/examples/brandGet.js.map +1 -0
  66. package/dist/examples/brandList.d.ts +1 -0
  67. package/dist/examples/brandList.js +27 -0
  68. package/dist/examples/brandList.js.map +1 -0
  69. package/dist/examples/brandResetDefault.d.ts +1 -0
  70. package/dist/examples/brandResetDefault.js +28 -0
  71. package/dist/examples/brandResetDefault.js.map +1 -0
  72. package/dist/examples/brandUpdate.d.ts +1 -0
  73. package/dist/examples/brandUpdate.js +68 -0
  74. package/dist/examples/brandUpdate.js.map +1 -0
  75. package/dist/examples/contactCreate.d.ts +1 -0
  76. package/dist/examples/contactCreate.js +38 -0
  77. package/dist/examples/contactCreate.js.map +1 -0
  78. package/dist/examples/contactDelete.d.ts +1 -0
  79. package/dist/examples/contactDelete.js +28 -0
  80. package/dist/examples/contactDelete.js.map +1 -0
  81. package/dist/examples/contactGet.d.ts +1 -0
  82. package/dist/examples/contactGet.js +28 -0
  83. package/dist/examples/contactGet.js.map +1 -0
  84. package/dist/examples/contactList.d.ts +1 -0
  85. package/dist/examples/contactList.js +29 -0
  86. package/dist/examples/contactList.js.map +1 -0
  87. package/dist/examples/contactUpdate.d.ts +1 -0
  88. package/dist/examples/contactUpdate.js +38 -0
  89. package/dist/examples/contactUpdate.js.map +1 -0
  90. package/dist/examples/customFieldCreate.d.ts +1 -0
  91. package/dist/examples/customFieldCreate.js +39 -0
  92. package/dist/examples/customFieldCreate.js.map +1 -0
  93. package/dist/examples/customFieldDelete.d.ts +1 -0
  94. package/dist/examples/customFieldDelete.js +28 -0
  95. package/dist/examples/customFieldDelete.js.map +1 -0
  96. package/dist/examples/customFieldEdit.d.ts +1 -0
  97. package/dist/examples/customFieldEdit.js +40 -0
  98. package/dist/examples/customFieldEdit.js.map +1 -0
  99. package/dist/examples/customFieldEmbeddedCreateUrl.d.ts +1 -0
  100. package/dist/examples/customFieldEmbeddedCreateUrl.js +31 -0
  101. package/dist/examples/customFieldEmbeddedCreateUrl.js.map +1 -0
  102. package/dist/examples/customFieldList.d.ts +1 -0
  103. package/dist/examples/customFieldList.js +28 -0
  104. package/dist/examples/customFieldList.js.map +1 -0
  105. package/dist/examples/documentAddAuthentication.d.ts +1 -0
  106. package/dist/examples/documentAddAuthentication.js +32 -0
  107. package/dist/examples/documentAddAuthentication.js.map +1 -0
  108. package/dist/examples/documentAddTags.d.ts +1 -0
  109. package/dist/examples/documentAddTags.js +31 -0
  110. package/dist/examples/documentAddTags.js.map +1 -0
  111. package/dist/examples/documentChangeAccessCode.d.ts +1 -0
  112. package/dist/examples/documentChangeAccessCode.js +32 -0
  113. package/dist/examples/documentChangeAccessCode.js.map +1 -0
  114. package/dist/examples/documentChangeRecipients.d.ts +1 -0
  115. package/dist/examples/documentChangeRecipients.js +34 -0
  116. package/dist/examples/documentChangeRecipients.js.map +1 -0
  117. package/dist/examples/documentDelete.d.ts +1 -0
  118. package/dist/examples/documentDelete.js +29 -0
  119. package/dist/examples/documentDelete.js.map +1 -0
  120. package/dist/examples/documentDeleteTags.d.ts +1 -0
  121. package/dist/examples/documentDeleteTags.js +31 -0
  122. package/dist/examples/documentDeleteTags.js.map +1 -0
  123. package/dist/examples/documentDownload.d.ts +1 -0
  124. package/dist/examples/documentDownload.js +29 -0
  125. package/dist/examples/documentDownload.js.map +1 -0
  126. package/dist/examples/documentDownloadAttachment.d.ts +1 -0
  127. package/dist/examples/documentDownloadAttachment.js +30 -0
  128. package/dist/examples/documentDownloadAttachment.js.map +1 -0
  129. package/dist/examples/documentDownloadAuditTrial.d.ts +1 -0
  130. package/dist/examples/documentDownloadAuditTrial.js +29 -0
  131. package/dist/examples/documentDownloadAuditTrial.js.map +1 -0
  132. package/dist/examples/documentEmbeddedRequestLink.d.ts +1 -0
  133. package/dist/examples/documentEmbeddedRequestLink.js +96 -0
  134. package/dist/examples/documentEmbeddedRequestLink.js.map +1 -0
  135. package/dist/examples/documentEmbeddedSignLink.d.ts +1 -0
  136. package/dist/examples/documentEmbeddedSignLink.js +35 -0
  137. package/dist/examples/documentEmbeddedSignLink.js.map +1 -0
  138. package/dist/examples/documentExtendExpiry.d.ts +1 -0
  139. package/dist/examples/documentExtendExpiry.js +32 -0
  140. package/dist/examples/documentExtendExpiry.js.map +1 -0
  141. package/dist/examples/documentList.d.ts +1 -0
  142. package/dist/examples/documentList.js +28 -0
  143. package/dist/examples/documentList.js.map +1 -0
  144. package/dist/examples/documentListBehalf.d.ts +1 -0
  145. package/dist/examples/documentListBehalf.js +28 -0
  146. package/dist/examples/documentListBehalf.js.map +1 -0
  147. package/dist/examples/documentListTeam.d.ts +1 -0
  148. package/dist/examples/documentListTeam.js +28 -0
  149. package/dist/examples/documentListTeam.js.map +1 -0
  150. package/dist/examples/documentPrefillFieldCheckBox.d.ts +1 -0
  151. package/dist/examples/documentPrefillFieldCheckBox.js +34 -0
  152. package/dist/examples/documentPrefillFieldCheckBox.js.map +1 -0
  153. package/dist/examples/documentPrefillFieldDropDown.d.ts +1 -0
  154. package/dist/examples/documentPrefillFieldDropDown.js +34 -0
  155. package/dist/examples/documentPrefillFieldDropDown.js.map +1 -0
  156. package/dist/examples/documentPrefillFieldEditableDate.d.ts +1 -0
  157. package/dist/examples/documentPrefillFieldEditableDate.js +34 -0
  158. package/dist/examples/documentPrefillFieldEditableDate.js.map +1 -0
  159. package/dist/examples/documentPrefillFieldImage.d.ts +1 -0
  160. package/dist/examples/documentPrefillFieldImage.js +34 -0
  161. package/dist/examples/documentPrefillFieldImage.js.map +1 -0
  162. package/dist/examples/documentPrefillFieldRadioButton.d.ts +1 -0
  163. package/dist/examples/documentPrefillFieldRadioButton.js +34 -0
  164. package/dist/examples/documentPrefillFieldRadioButton.js.map +1 -0
  165. package/dist/examples/documentPrefillFieldTextBox.d.ts +1 -0
  166. package/dist/examples/documentPrefillFieldTextBox.js +34 -0
  167. package/dist/examples/documentPrefillFieldTextBox.js.map +1 -0
  168. package/dist/examples/documentRemoveAuthentication.d.ts +1 -0
  169. package/dist/examples/documentRemoveAuthentication.js +31 -0
  170. package/dist/examples/documentRemoveAuthentication.js.map +1 -0
  171. package/dist/examples/documentRevoke.d.ts +1 -0
  172. package/dist/examples/documentRevoke.js +31 -0
  173. package/dist/examples/documentRevoke.js.map +1 -0
  174. package/dist/examples/documentSend.d.ts +1 -0
  175. package/dist/examples/documentSend.js +86 -0
  176. package/dist/examples/documentSend.js.map +1 -0
  177. package/dist/examples/documentSendOnBehalf.d.ts +1 -0
  178. package/dist/examples/documentSendOnBehalf.js +101 -0
  179. package/dist/examples/documentSendOnBehalf.js.map +1 -0
  180. package/dist/examples/documentSendReminder.d.ts +1 -0
  181. package/dist/examples/documentSendReminder.js +32 -0
  182. package/dist/examples/documentSendReminder.js.map +1 -0
  183. package/dist/examples/listTemplate.d.ts +1 -0
  184. package/dist/examples/listTemplate.js +29 -0
  185. package/dist/examples/listTemplate.js.map +1 -0
  186. package/dist/examples/plan.d.ts +1 -0
  187. package/dist/examples/plan.js +27 -0
  188. package/dist/examples/plan.js.map +1 -0
  189. package/dist/examples/senderIdentityCreate.d.ts +1 -0
  190. package/dist/examples/senderIdentityCreate.js +33 -0
  191. package/dist/examples/senderIdentityCreate.js.map +1 -0
  192. package/dist/examples/senderIdentityDelete.d.ts +1 -0
  193. package/dist/examples/senderIdentityDelete.js +28 -0
  194. package/dist/examples/senderIdentityDelete.js.map +1 -0
  195. package/dist/examples/senderIdentityList.d.ts +1 -0
  196. package/dist/examples/senderIdentityList.js +29 -0
  197. package/dist/examples/senderIdentityList.js.map +1 -0
  198. package/dist/examples/senderIdentityRerequest.d.ts +1 -0
  199. package/dist/examples/senderIdentityRerequest.js +28 -0
  200. package/dist/examples/senderIdentityRerequest.js.map +1 -0
  201. package/dist/examples/senderIdentityResendInvitation.d.ts +1 -0
  202. package/dist/examples/senderIdentityResendInvitation.js +28 -0
  203. package/dist/examples/senderIdentityResendInvitation.js.map +1 -0
  204. package/dist/examples/senderIdentityUpdate.d.ts +1 -0
  205. package/dist/examples/senderIdentityUpdate.js +32 -0
  206. package/dist/examples/senderIdentityUpdate.js.map +1 -0
  207. package/dist/examples/teamCreate.d.ts +1 -0
  208. package/dist/examples/teamCreate.js +30 -0
  209. package/dist/examples/teamCreate.js.map +1 -0
  210. package/dist/examples/teamGet.d.ts +1 -0
  211. package/dist/examples/teamGet.js +28 -0
  212. package/dist/examples/teamGet.js.map +1 -0
  213. package/dist/examples/teamList.d.ts +1 -0
  214. package/dist/examples/teamList.js +29 -0
  215. package/dist/examples/teamList.js.map +1 -0
  216. package/dist/examples/teamUpdate.d.ts +1 -0
  217. package/dist/examples/teamUpdate.js +31 -0
  218. package/dist/examples/teamUpdate.js.map +1 -0
  219. package/dist/examples/templateAddTag.d.ts +1 -0
  220. package/dist/examples/templateAddTag.js +32 -0
  221. package/dist/examples/templateAddTag.js.map +1 -0
  222. package/dist/examples/templateCreate.d.ts +1 -0
  223. package/dist/examples/templateCreate.js +76 -0
  224. package/dist/examples/templateCreate.js.map +1 -0
  225. package/dist/examples/templateDelete.d.ts +1 -0
  226. package/dist/examples/templateDelete.js +28 -0
  227. package/dist/examples/templateDelete.js.map +1 -0
  228. package/dist/examples/templateDeleteTag.d.ts +1 -0
  229. package/dist/examples/templateDeleteTag.js +32 -0
  230. package/dist/examples/templateDeleteTag.js.map +1 -0
  231. package/dist/examples/templateDetails.d.ts +1 -0
  232. package/dist/examples/templateDetails.js +28 -0
  233. package/dist/examples/templateDetails.js.map +1 -0
  234. package/dist/examples/templateDownload.d.ts +1 -0
  235. package/dist/examples/templateDownload.js +28 -0
  236. package/dist/examples/templateDownload.js.map +1 -0
  237. package/dist/examples/templateEdit.d.ts +1 -0
  238. package/dist/examples/templateEdit.js +34 -0
  239. package/dist/examples/templateEdit.js.map +1 -0
  240. package/dist/examples/templateEmbeddedCreate.d.ts +1 -0
  241. package/dist/examples/templateEmbeddedCreate.js +76 -0
  242. package/dist/examples/templateEmbeddedCreate.js.map +1 -0
  243. package/dist/examples/templateEmbeddedEdit.d.ts +1 -0
  244. package/dist/examples/templateEmbeddedEdit.js +36 -0
  245. package/dist/examples/templateEmbeddedEdit.js.map +1 -0
  246. package/dist/examples/templateEmbeddedRequestLink.d.ts +1 -0
  247. package/dist/examples/templateEmbeddedRequestLink.js +78 -0
  248. package/dist/examples/templateEmbeddedRequestLink.js.map +1 -0
  249. package/dist/examples/templateSendDocument.d.ts +1 -0
  250. package/dist/examples/templateSendDocument.js +102 -0
  251. package/dist/examples/templateSendDocument.js.map +1 -0
  252. package/dist/examples/templateSendDocumentUsingMultipleTemplate.d.ts +1 -0
  253. package/dist/examples/templateSendDocumentUsingMultipleTemplate.js +50 -0
  254. package/dist/examples/templateSendDocumentUsingMultipleTemplate.js.map +1 -0
  255. package/dist/examples/userCreate.d.ts +1 -0
  256. package/dist/examples/userCreate.js +32 -0
  257. package/dist/examples/userCreate.js.map +1 -0
  258. package/dist/examples/userGet.d.ts +1 -0
  259. package/dist/examples/userGet.js +28 -0
  260. package/dist/examples/userGet.js.map +1 -0
  261. package/dist/examples/userInvitationCancel.d.ts +1 -0
  262. package/dist/examples/userInvitationCancel.js +28 -0
  263. package/dist/examples/userInvitationCancel.js.map +1 -0
  264. package/dist/examples/userList.d.ts +1 -0
  265. package/dist/examples/userList.js +29 -0
  266. package/dist/examples/userList.js.map +1 -0
  267. package/dist/examples/userResendInvitation.d.ts +1 -0
  268. package/dist/examples/userResendInvitation.js +28 -0
  269. package/dist/examples/userResendInvitation.js.map +1 -0
  270. package/dist/examples/userUpdateRole.d.ts +1 -0
  271. package/dist/examples/userUpdateRole.js +31 -0
  272. package/dist/examples/userUpdateRole.js.map +1 -0
  273. package/dist/model/accessCodeDetail.d.ts +32 -0
  274. package/dist/model/accessCodeDetail.js +63 -0
  275. package/dist/model/accessCodeDetail.js.map +1 -0
  276. package/dist/model/accessCodeDetails.d.ts +17 -0
  277. package/dist/model/accessCodeDetails.js +28 -0
  278. package/dist/model/accessCodeDetails.js.map +1 -0
  279. package/dist/model/attachmentInfo.d.ts +17 -0
  280. package/dist/model/attachmentInfo.js +33 -0
  281. package/dist/model/attachmentInfo.js.map +1 -0
  282. package/dist/model/auditTrail.d.ts +98 -0
  283. package/dist/model/auditTrail.js +131 -0
  284. package/dist/model/auditTrail.js.map +1 -0
  285. package/dist/model/behalfDocument.d.ts +43 -0
  286. package/dist/model/behalfDocument.js +104 -0
  287. package/dist/model/behalfDocument.js.map +1 -0
  288. package/dist/model/behalfDocumentRecords.d.ts +17 -0
  289. package/dist/model/behalfDocumentRecords.js +23 -0
  290. package/dist/model/behalfDocumentRecords.js.map +1 -0
  291. package/dist/model/behalfOf.d.ts +15 -0
  292. package/dist/model/behalfOf.js +23 -0
  293. package/dist/model/behalfOf.js.map +1 -0
  294. package/dist/model/billingViewModel.d.ts +14 -0
  295. package/dist/model/billingViewModel.js +18 -0
  296. package/dist/model/billingViewModel.js.map +1 -0
  297. package/dist/model/brandCreated.d.ts +14 -0
  298. package/dist/model/brandCreated.js +18 -0
  299. package/dist/model/brandCreated.js.map +1 -0
  300. package/dist/model/brandCustomFieldDetails.d.ts +20 -0
  301. package/dist/model/brandCustomFieldDetails.js +46 -0
  302. package/dist/model/brandCustomFieldDetails.js.map +1 -0
  303. package/dist/model/brandingMessage.d.ts +14 -0
  304. package/dist/model/brandingMessage.js +18 -0
  305. package/dist/model/brandingMessage.js.map +1 -0
  306. package/dist/model/brandingRecords.d.ts +15 -0
  307. package/dist/model/brandingRecords.js +18 -0
  308. package/dist/model/brandingRecords.js.map +1 -0
  309. package/dist/model/changeRecipient.d.ts +22 -0
  310. package/dist/model/changeRecipient.js +53 -0
  311. package/dist/model/changeRecipient.js.map +1 -0
  312. package/dist/model/conditionalRule.d.ts +16 -0
  313. package/dist/model/conditionalRule.js +28 -0
  314. package/dist/model/conditionalRule.js.map +1 -0
  315. package/dist/model/contactCreated.d.ts +15 -0
  316. package/dist/model/contactCreated.js +23 -0
  317. package/dist/model/contactCreated.js.map +1 -0
  318. package/dist/model/contactDetails.d.ts +19 -0
  319. package/dist/model/contactDetails.js +38 -0
  320. package/dist/model/contactDetails.js.map +1 -0
  321. package/dist/model/contactPageDetails.d.ts +16 -0
  322. package/dist/model/contactPageDetails.js +28 -0
  323. package/dist/model/contactPageDetails.js.map +1 -0
  324. package/dist/model/contactsDetails.d.ts +20 -0
  325. package/dist/model/contactsDetails.js +43 -0
  326. package/dist/model/contactsDetails.js.map +1 -0
  327. package/dist/model/contactsList.d.ts +17 -0
  328. package/dist/model/contactsList.js +23 -0
  329. package/dist/model/contactsList.js.map +1 -0
  330. package/dist/model/createContactResponse.d.ts +15 -0
  331. package/dist/model/createContactResponse.js +18 -0
  332. package/dist/model/createContactResponse.js.map +1 -0
  333. package/dist/model/createSenderIdentityRequest.d.ts +19 -0
  334. package/dist/model/createSenderIdentityRequest.js +38 -0
  335. package/dist/model/createSenderIdentityRequest.js.map +1 -0
  336. package/dist/model/createTeamRequest.d.ts +14 -0
  337. package/dist/model/createTeamRequest.js +18 -0
  338. package/dist/model/createTeamRequest.js.map +1 -0
  339. package/dist/model/createTemplateRequest.d.ts +43 -0
  340. package/dist/model/createTemplateRequest.js +144 -0
  341. package/dist/model/createTemplateRequest.js.map +1 -0
  342. package/dist/model/createUser.d.ts +26 -0
  343. package/dist/model/createUser.js +41 -0
  344. package/dist/model/createUser.js.map +1 -0
  345. package/dist/model/customDomainSettings.d.ts +15 -0
  346. package/dist/model/customDomainSettings.js +23 -0
  347. package/dist/model/customDomainSettings.js.map +1 -0
  348. package/dist/model/customFieldCollection.d.ts +15 -0
  349. package/dist/model/customFieldCollection.js +18 -0
  350. package/dist/model/customFieldCollection.js.map +1 -0
  351. package/dist/model/customFieldMessage.d.ts +15 -0
  352. package/dist/model/customFieldMessage.js +23 -0
  353. package/dist/model/customFieldMessage.js.map +1 -0
  354. package/dist/model/customFormField.d.ts +89 -0
  355. package/dist/model/customFormField.js +225 -0
  356. package/dist/model/customFormField.js.map +1 -0
  357. package/dist/model/deleteCustomFieldReply.d.ts +14 -0
  358. package/dist/model/deleteCustomFieldReply.js +18 -0
  359. package/dist/model/deleteCustomFieldReply.js.map +1 -0
  360. package/dist/model/document.d.ts +41 -0
  361. package/dist/model/document.js +99 -0
  362. package/dist/model/document.js.map +1 -0
  363. package/dist/model/documentCC.d.ts +14 -0
  364. package/dist/model/documentCC.js +18 -0
  365. package/dist/model/documentCC.js.map +1 -0
  366. package/dist/model/documentCcDetails.d.ts +15 -0
  367. package/dist/model/documentCcDetails.js +26 -0
  368. package/dist/model/documentCcDetails.js.map +1 -0
  369. package/dist/model/documentCreated.d.ts +14 -0
  370. package/dist/model/documentCreated.js +18 -0
  371. package/dist/model/documentCreated.js.map +1 -0
  372. package/dist/model/documentExpirySettings.d.ts +26 -0
  373. package/dist/model/documentExpirySettings.js +51 -0
  374. package/dist/model/documentExpirySettings.js.map +1 -0
  375. package/dist/model/documentFiles.d.ts +16 -0
  376. package/dist/model/documentFiles.js +28 -0
  377. package/dist/model/documentFiles.js.map +1 -0
  378. package/dist/model/documentFormFields.d.ts +74 -0
  379. package/dist/model/documentFormFields.js +214 -0
  380. package/dist/model/documentFormFields.js.map +1 -0
  381. package/dist/model/documentInfo.d.ts +55 -0
  382. package/dist/model/documentInfo.js +73 -0
  383. package/dist/model/documentInfo.js.map +1 -0
  384. package/dist/model/documentProperties.d.ts +103 -0
  385. package/dist/model/documentProperties.js +250 -0
  386. package/dist/model/documentProperties.js.map +1 -0
  387. package/dist/model/documentReassign.d.ts +16 -0
  388. package/dist/model/documentReassign.js +31 -0
  389. package/dist/model/documentReassign.js.map +1 -0
  390. package/dist/model/documentRecords.d.ts +17 -0
  391. package/dist/model/documentRecords.js +23 -0
  392. package/dist/model/documentRecords.js.map +1 -0
  393. package/dist/model/documentSenderDetail.d.ts +17 -0
  394. package/dist/model/documentSenderDetail.js +36 -0
  395. package/dist/model/documentSenderDetail.js.map +1 -0
  396. package/dist/model/documentSigner.d.ts +89 -0
  397. package/dist/model/documentSigner.js +163 -0
  398. package/dist/model/documentSigner.js.map +1 -0
  399. package/dist/model/documentSignerDetails.d.ts +99 -0
  400. package/dist/model/documentSignerDetails.js +203 -0
  401. package/dist/model/documentSignerDetails.js.map +1 -0
  402. package/dist/model/documentTags.d.ts +15 -0
  403. package/dist/model/documentTags.js +23 -0
  404. package/dist/model/documentTags.js.map +1 -0
  405. package/dist/model/editSenderIdentityRequest.d.ts +17 -0
  406. package/dist/model/editSenderIdentityRequest.js +28 -0
  407. package/dist/model/editSenderIdentityRequest.js.map +1 -0
  408. package/dist/model/editTemplateRequest.d.ts +35 -0
  409. package/dist/model/editTemplateRequest.js +103 -0
  410. package/dist/model/editTemplateRequest.js.map +1 -0
  411. package/dist/model/editableDateFieldSettings.d.ts +16 -0
  412. package/dist/model/editableDateFieldSettings.js +28 -0
  413. package/dist/model/editableDateFieldSettings.js.map +1 -0
  414. package/dist/model/embeddedCreateTemplateRequest.d.ts +78 -0
  415. package/dist/model/embeddedCreateTemplateRequest.js +233 -0
  416. package/dist/model/embeddedCreateTemplateRequest.js.map +1 -0
  417. package/dist/model/embeddedCustomFieldCreated.d.ts +14 -0
  418. package/dist/model/embeddedCustomFieldCreated.js +18 -0
  419. package/dist/model/embeddedCustomFieldCreated.js.map +1 -0
  420. package/dist/model/embeddedDocumentRequest.d.ts +96 -0
  421. package/dist/model/embeddedDocumentRequest.js +275 -0
  422. package/dist/model/embeddedDocumentRequest.js.map +1 -0
  423. package/dist/model/embeddedSendCreated.d.ts +15 -0
  424. package/dist/model/embeddedSendCreated.js +23 -0
  425. package/dist/model/embeddedSendCreated.js.map +1 -0
  426. package/dist/model/embeddedSendTemplateFormRequest.d.ts +94 -0
  427. package/dist/model/embeddedSendTemplateFormRequest.js +254 -0
  428. package/dist/model/embeddedSendTemplateFormRequest.js.map +1 -0
  429. package/dist/model/embeddedSigningLink.d.ts +14 -0
  430. package/dist/model/embeddedSigningLink.js +18 -0
  431. package/dist/model/embeddedSigningLink.js.map +1 -0
  432. package/dist/model/embeddedTemplateCreated.d.ts +15 -0
  433. package/dist/model/embeddedTemplateCreated.js +23 -0
  434. package/dist/model/embeddedTemplateCreated.js.map +1 -0
  435. package/dist/model/embeddedTemplateEditRequest.d.ts +48 -0
  436. package/dist/model/embeddedTemplateEditRequest.js +104 -0
  437. package/dist/model/embeddedTemplateEditRequest.js.map +1 -0
  438. package/dist/model/embeddedTemplateEdited.d.ts +14 -0
  439. package/dist/model/embeddedTemplateEdited.js +18 -0
  440. package/dist/model/embeddedTemplateEdited.js.map +1 -0
  441. package/dist/model/errorResult.d.ts +14 -0
  442. package/dist/model/errorResult.js +18 -0
  443. package/dist/model/errorResult.js.map +1 -0
  444. package/dist/model/existingFormField.d.ts +18 -0
  445. package/dist/model/existingFormField.js +38 -0
  446. package/dist/model/existingFormField.js.map +1 -0
  447. package/dist/model/extendExpiry.d.ts +17 -0
  448. package/dist/model/extendExpiry.js +33 -0
  449. package/dist/model/extendExpiry.js.map +1 -0
  450. package/dist/model/fileInfo.d.ts +17 -0
  451. package/dist/model/fileInfo.js +33 -0
  452. package/dist/model/fileInfo.js.map +1 -0
  453. package/dist/model/font.d.ts +32 -0
  454. package/dist/model/font.js +54 -0
  455. package/dist/model/font.js.map +1 -0
  456. package/dist/model/formField.d.ts +97 -0
  457. package/dist/model/formField.js +244 -0
  458. package/dist/model/formField.js.map +1 -0
  459. package/dist/model/formGroup.d.ts +26 -0
  460. package/dist/model/formGroup.js +47 -0
  461. package/dist/model/formGroup.js.map +1 -0
  462. package/dist/model/formulaFieldSettings.d.ts +15 -0
  463. package/dist/model/formulaFieldSettings.js +26 -0
  464. package/dist/model/formulaFieldSettings.js.map +1 -0
  465. package/dist/model/idVerification.d.ts +21 -0
  466. package/dist/model/idVerification.js +53 -0
  467. package/dist/model/idVerification.js.map +1 -0
  468. package/dist/model/identityVerificationSettings.d.ts +31 -0
  469. package/dist/model/identityVerificationSettings.js +57 -0
  470. package/dist/model/identityVerificationSettings.js.map +1 -0
  471. package/dist/model/imageInfo.d.ts +16 -0
  472. package/dist/model/imageInfo.js +28 -0
  473. package/dist/model/imageInfo.js.map +1 -0
  474. package/dist/model/index.d.ts +125 -0
  475. package/dist/model/index.js +460 -0
  476. package/dist/model/index.js.map +1 -0
  477. package/dist/model/mergeAndSendForSignForm.d.ts +63 -0
  478. package/dist/model/mergeAndSendForSignForm.js +185 -0
  479. package/dist/model/mergeAndSendForSignForm.js.map +1 -0
  480. package/dist/model/models.d.ts +56 -0
  481. package/dist/model/models.js +212 -0
  482. package/dist/model/models.js.map +1 -0
  483. package/dist/model/notificationSettings.d.ts +24 -0
  484. package/dist/model/notificationSettings.js +81 -0
  485. package/dist/model/notificationSettings.js.map +1 -0
  486. package/dist/model/pageDetails.d.ts +19 -0
  487. package/dist/model/pageDetails.js +43 -0
  488. package/dist/model/pageDetails.js.map +1 -0
  489. package/dist/model/phoneNumber.d.ts +15 -0
  490. package/dist/model/phoneNumber.js +23 -0
  491. package/dist/model/phoneNumber.js.map +1 -0
  492. package/dist/model/prefillField.d.ts +15 -0
  493. package/dist/model/prefillField.js +23 -0
  494. package/dist/model/prefillField.js.map +1 -0
  495. package/dist/model/prefillFieldRequest.d.ts +16 -0
  496. package/dist/model/prefillFieldRequest.js +23 -0
  497. package/dist/model/prefillFieldRequest.js.map +1 -0
  498. package/dist/model/problemDetails.d.ts +18 -0
  499. package/dist/model/problemDetails.js +38 -0
  500. package/dist/model/problemDetails.js.map +1 -0
  501. package/dist/model/recipientNotificationSettings.d.ts +24 -0
  502. package/dist/model/recipientNotificationSettings.js +81 -0
  503. package/dist/model/recipientNotificationSettings.js.map +1 -0
  504. package/dist/model/rectangle.d.ts +17 -0
  505. package/dist/model/rectangle.js +39 -0
  506. package/dist/model/rectangle.js.map +1 -0
  507. package/dist/model/reminderMessage.d.ts +17 -0
  508. package/dist/model/reminderMessage.js +28 -0
  509. package/dist/model/reminderMessage.js.map +1 -0
  510. package/dist/model/reminderSettings.d.ts +16 -0
  511. package/dist/model/reminderSettings.js +33 -0
  512. package/dist/model/reminderSettings.js.map +1 -0
  513. package/dist/model/removeAuthentication.d.ts +18 -0
  514. package/dist/model/removeAuthentication.js +33 -0
  515. package/dist/model/removeAuthentication.js.map +1 -0
  516. package/dist/model/revokeDocument.d.ts +15 -0
  517. package/dist/model/revokeDocument.js +23 -0
  518. package/dist/model/revokeDocument.js.map +1 -0
  519. package/dist/model/role.d.ts +92 -0
  520. package/dist/model/role.js +173 -0
  521. package/dist/model/role.js.map +1 -0
  522. package/dist/model/roles.d.ts +93 -0
  523. package/dist/model/roles.js +183 -0
  524. package/dist/model/roles.js.map +1 -0
  525. package/dist/model/sendForSign.d.ts +64 -0
  526. package/dist/model/sendForSign.js +193 -0
  527. package/dist/model/sendForSign.js.map +1 -0
  528. package/dist/model/sendForSignFromTemplateForm.d.ts +62 -0
  529. package/dist/model/sendForSignFromTemplateForm.js +180 -0
  530. package/dist/model/sendForSignFromTemplateForm.js.map +1 -0
  531. package/dist/model/senderIdentityList.d.ts +17 -0
  532. package/dist/model/senderIdentityList.js +23 -0
  533. package/dist/model/senderIdentityList.js.map +1 -0
  534. package/dist/model/senderIdentityViewModel.d.ts +22 -0
  535. package/dist/model/senderIdentityViewModel.js +53 -0
  536. package/dist/model/senderIdentityViewModel.js.map +1 -0
  537. package/dist/model/size.d.ts +15 -0
  538. package/dist/model/size.js +27 -0
  539. package/dist/model/size.js.map +1 -0
  540. package/dist/model/teamCreated.d.ts +14 -0
  541. package/dist/model/teamCreated.js +18 -0
  542. package/dist/model/teamCreated.js.map +1 -0
  543. package/dist/model/teamDocumentRecords.d.ts +17 -0
  544. package/dist/model/teamDocumentRecords.js +23 -0
  545. package/dist/model/teamDocumentRecords.js.map +1 -0
  546. package/dist/model/teamListResponse.d.ts +17 -0
  547. package/dist/model/teamListResponse.js +23 -0
  548. package/dist/model/teamListResponse.js.map +1 -0
  549. package/dist/model/teamPageDetails.d.ts +15 -0
  550. package/dist/model/teamPageDetails.js +23 -0
  551. package/dist/model/teamPageDetails.js.map +1 -0
  552. package/dist/model/teamResponse.d.ts +19 -0
  553. package/dist/model/teamResponse.js +38 -0
  554. package/dist/model/teamResponse.js.map +1 -0
  555. package/dist/model/teamUpdateRequest.d.ts +15 -0
  556. package/dist/model/teamUpdateRequest.js +23 -0
  557. package/dist/model/teamUpdateRequest.js.map +1 -0
  558. package/dist/model/teamUsers.d.ts +31 -0
  559. package/dist/model/teamUsers.js +57 -0
  560. package/dist/model/teamUsers.js.map +1 -0
  561. package/dist/model/teams.d.ts +17 -0
  562. package/dist/model/teams.js +33 -0
  563. package/dist/model/teams.js.map +1 -0
  564. package/dist/model/template.d.ts +51 -0
  565. package/dist/model/template.js +128 -0
  566. package/dist/model/template.js.map +1 -0
  567. package/dist/model/templateCC.d.ts +15 -0
  568. package/dist/model/templateCC.js +23 -0
  569. package/dist/model/templateCC.js.map +1 -0
  570. package/dist/model/templateCreated.d.ts +14 -0
  571. package/dist/model/templateCreated.js +18 -0
  572. package/dist/model/templateCreated.js.map +1 -0
  573. package/dist/model/templateFormFields.d.ts +74 -0
  574. package/dist/model/templateFormFields.js +219 -0
  575. package/dist/model/templateFormFields.js.map +1 -0
  576. package/dist/model/templateProperties.d.ts +55 -0
  577. package/dist/model/templateProperties.js +155 -0
  578. package/dist/model/templateProperties.js.map +1 -0
  579. package/dist/model/templateRecords.d.ts +17 -0
  580. package/dist/model/templateRecords.js +23 -0
  581. package/dist/model/templateRecords.js.map +1 -0
  582. package/dist/model/templateRole.d.ts +86 -0
  583. package/dist/model/templateRole.js +153 -0
  584. package/dist/model/templateRole.js.map +1 -0
  585. package/dist/model/templateSenderDetail.d.ts +15 -0
  586. package/dist/model/templateSenderDetail.js +23 -0
  587. package/dist/model/templateSenderDetail.js.map +1 -0
  588. package/dist/model/templateSenderDetails.d.ts +16 -0
  589. package/dist/model/templateSenderDetails.js +28 -0
  590. package/dist/model/templateSenderDetails.js.map +1 -0
  591. package/dist/model/templateSharedTemplateDetail.d.ts +21 -0
  592. package/dist/model/templateSharedTemplateDetail.js +30 -0
  593. package/dist/model/templateSharedTemplateDetail.js.map +1 -0
  594. package/dist/model/templateSignerDetails.d.ts +62 -0
  595. package/dist/model/templateSignerDetails.js +138 -0
  596. package/dist/model/templateSignerDetails.js.map +1 -0
  597. package/dist/model/templateTag.d.ts +17 -0
  598. package/dist/model/templateTag.js +33 -0
  599. package/dist/model/templateTag.js.map +1 -0
  600. package/dist/model/textTagDefinition.d.ts +63 -0
  601. package/dist/model/textTagDefinition.js +153 -0
  602. package/dist/model/textTagDefinition.js.map +1 -0
  603. package/dist/model/textTagOffset.d.ts +15 -0
  604. package/dist/model/textTagOffset.js +23 -0
  605. package/dist/model/textTagOffset.js.map +1 -0
  606. package/dist/model/updateUser.d.ts +28 -0
  607. package/dist/model/updateUser.js +46 -0
  608. package/dist/model/updateUser.js.map +1 -0
  609. package/dist/model/userPageDetails.d.ts +15 -0
  610. package/dist/model/userPageDetails.js +23 -0
  611. package/dist/model/userPageDetails.js.map +1 -0
  612. package/dist/model/userProperties.d.ts +26 -0
  613. package/dist/model/userProperties.js +68 -0
  614. package/dist/model/userProperties.js.map +1 -0
  615. package/dist/model/userRecords.d.ts +17 -0
  616. package/dist/model/userRecords.js +23 -0
  617. package/dist/model/userRecords.js.map +1 -0
  618. package/dist/model/usersDetails.d.ts +26 -0
  619. package/dist/model/usersDetails.js +68 -0
  620. package/dist/model/usersDetails.js.map +1 -0
  621. package/dist/model/validation.d.ts +23 -0
  622. package/dist/model/validation.js +32 -0
  623. package/dist/model/validation.js.map +1 -0
  624. package/dist/model/viewBrandDetails.d.ts +45 -0
  625. package/dist/model/viewBrandDetails.js +140 -0
  626. package/dist/model/viewBrandDetails.js.map +1 -0
  627. package/dist/model/viewCustomFieldDetails.d.ts +21 -0
  628. package/dist/model/viewCustomFieldDetails.js +48 -0
  629. package/dist/model/viewCustomFieldDetails.js.map +1 -0
  630. package/dist/tests/integration/BrandingApiTest.spec.d.ts +1 -0
  631. package/dist/tests/integration/BrandingApiTest.spec.js +195 -0
  632. package/dist/tests/integration/BrandingApiTest.spec.js.map +1 -0
  633. package/dist/tests/integration/ContactsApiTest.spec.d.ts +1 -0
  634. package/dist/tests/integration/ContactsApiTest.spec.js +224 -0
  635. package/dist/tests/integration/ContactsApiTest.spec.js.map +1 -0
  636. package/dist/tests/integration/CustomFieldApiTest.spec.d.ts +1 -0
  637. package/dist/tests/integration/CustomFieldApiTest.spec.js +263 -0
  638. package/dist/tests/integration/CustomFieldApiTest.spec.js.map +1 -0
  639. package/dist/tests/integration/DocumentApiTest.spec.d.ts +1 -0
  640. package/dist/tests/integration/DocumentApiTest.spec.js +1239 -0
  641. package/dist/tests/integration/DocumentApiTest.spec.js.map +1 -0
  642. package/dist/tests/integration/TemplateApiTest.spec.d.ts +1 -0
  643. package/dist/tests/integration/TemplateApiTest.spec.js +788 -0
  644. package/dist/tests/integration/TemplateApiTest.spec.js.map +1 -0
  645. package/dist/tests/integration/planApiTest.spec.d.ts +1 -0
  646. package/dist/tests/integration/planApiTest.spec.js +39 -0
  647. package/dist/tests/integration/planApiTest.spec.js.map +1 -0
  648. package/dist/tests/integration/senderIdentity.spec.d.ts +1 -0
  649. package/dist/tests/integration/senderIdentity.spec.js +225 -0
  650. package/dist/tests/integration/senderIdentity.spec.js.map +1 -0
  651. package/dist/tests/integration/teamsApiTest.spec.d.ts +1 -0
  652. package/dist/tests/integration/teamsApiTest.spec.js +174 -0
  653. package/dist/tests/integration/teamsApiTest.spec.js.map +1 -0
  654. package/dist/tests/integration/usersApiTest.spec.d.ts +1 -0
  655. package/dist/tests/integration/usersApiTest.spec.js +230 -0
  656. package/dist/tests/integration/usersApiTest.spec.js.map +1 -0
  657. package/examples/DocumentProperties.ts +15 -0
  658. package/examples/brandCreate.ts +29 -0
  659. package/examples/brandDelete.ts +15 -0
  660. package/examples/brandGet.ts +15 -0
  661. package/examples/brandList.ts +14 -0
  662. package/examples/brandResetDefault.ts +15 -0
  663. package/examples/brandUpdate.ts +21 -0
  664. package/examples/contactCreate.ts +26 -0
  665. package/examples/contactDelete.ts +15 -0
  666. package/examples/contactGet.ts +15 -0
  667. package/examples/contactList.ts +16 -0
  668. package/examples/contactUpdate.ts +26 -0
  669. package/examples/customFieldCreate.ts +28 -0
  670. package/examples/customFieldDelete.ts +15 -0
  671. package/examples/customFieldEdit.ts +30 -0
  672. package/examples/customFieldEmbeddedCreateUrl.ts +19 -0
  673. package/examples/customFieldList.ts +15 -0
  674. package/examples/documentAddAuthentication.ts +20 -0
  675. package/examples/documentAddTags.ts +19 -0
  676. package/examples/documentChangeAccessCode.ts +20 -0
  677. package/examples/documentChangeRecipients.ts +22 -0
  678. package/examples/documentDelete.ts +16 -0
  679. package/examples/documentDeleteTags.ts +19 -0
  680. package/examples/documentDownload.ts +16 -0
  681. package/examples/documentDownloadAttachment.ts +17 -0
  682. package/examples/documentDownloadAuditTrial.ts +16 -0
  683. package/examples/documentEmbeddedRequestLink.ts +49 -0
  684. package/examples/documentEmbeddedSignLink.ts +23 -0
  685. package/examples/documentExtendExpiry.ts +20 -0
  686. package/examples/documentList.ts +15 -0
  687. package/examples/documentListBehalf.ts +15 -0
  688. package/examples/documentListTeam.ts +15 -0
  689. package/examples/documentPrefillFieldCheckBox.ts +23 -0
  690. package/examples/documentPrefillFieldDropDown.ts +23 -0
  691. package/examples/documentPrefillFieldEditableDate.ts +23 -0
  692. package/examples/documentPrefillFieldImage.ts +23 -0
  693. package/examples/documentPrefillFieldRadioButton.ts +23 -0
  694. package/examples/documentPrefillFieldTextBox.ts +23 -0
  695. package/examples/documentRemoveAuthentication.ts +19 -0
  696. package/examples/documentRevoke.ts +19 -0
  697. package/examples/documentSend.ts +47 -0
  698. package/examples/documentSendOnBehalf.ts +53 -0
  699. package/examples/documentSendReminder.ts +20 -0
  700. package/examples/documents/agreement.pdf +0 -0
  701. package/examples/documents/logo.jpg +0 -0
  702. package/examples/listTemplate.ts +16 -0
  703. package/examples/plan.ts +14 -0
  704. package/examples/senderIdentityCreate.ts +21 -0
  705. package/examples/senderIdentityDelete.ts +15 -0
  706. package/examples/senderIdentityList.ts +16 -0
  707. package/examples/senderIdentityRerequest.ts +15 -0
  708. package/examples/senderIdentityResendInvitation.ts +15 -0
  709. package/examples/senderIdentityUpdate.ts +20 -0
  710. package/examples/teamCreate.ts +18 -0
  711. package/examples/teamGet.ts +15 -0
  712. package/examples/teamList.ts +16 -0
  713. package/examples/teamUpdate.ts +19 -0
  714. package/examples/templateAddTag.ts +20 -0
  715. package/examples/templateCreate.ts +29 -0
  716. package/examples/templateDelete.ts +15 -0
  717. package/examples/templateDeleteTag.ts +20 -0
  718. package/examples/templateDetails.ts +15 -0
  719. package/examples/templateDownload.ts +15 -0
  720. package/examples/templateEdit.ts +22 -0
  721. package/examples/templateEmbeddedCreate.ts +29 -0
  722. package/examples/templateEmbeddedEdit.ts +24 -0
  723. package/examples/templateEmbeddedRequestLink.ts +34 -0
  724. package/examples/templateSendDocument.ts +60 -0
  725. package/examples/templateSendDocumentUsingMultipleTemplate.ts +40 -0
  726. package/examples/userCreate.ts +20 -0
  727. package/examples/userGet.ts +15 -0
  728. package/examples/userInvitationCancel.ts +15 -0
  729. package/examples/userList.ts +16 -0
  730. package/examples/userResendInvitation.ts +15 -0
  731. package/examples/userUpdateRole.ts +19 -0
  732. package/git_push.sh +57 -0
  733. package/model/accessCodeDetail.ts +84 -0
  734. package/model/accessCodeDetails.ts +44 -0
  735. package/model/attachmentInfo.ts +49 -0
  736. package/model/auditTrail.ts +150 -0
  737. package/model/behalfDocument.ts +135 -0
  738. package/model/behalfDocumentRecords.ts +39 -0
  739. package/model/behalfOf.ts +37 -0
  740. package/model/billingViewModel.ts +31 -0
  741. package/model/brandCreated.ts +31 -0
  742. package/model/brandCustomFieldDetails.ts +62 -0
  743. package/model/brandingMessage.ts +31 -0
  744. package/model/brandingRecords.ts +32 -0
  745. package/model/changeRecipient.ts +74 -0
  746. package/model/conditionalRule.ts +43 -0
  747. package/model/contactCreated.ts +37 -0
  748. package/model/contactDetails.ts +56 -0
  749. package/model/contactPageDetails.ts +43 -0
  750. package/model/contactsDetails.ts +62 -0
  751. package/model/contactsList.ts +39 -0
  752. package/model/createContactResponse.ts +32 -0
  753. package/model/createSenderIdentityRequest.ts +56 -0
  754. package/model/createTeamRequest.ts +31 -0
  755. package/model/createTemplateRequest.ts +174 -0
  756. package/model/createUser.ts +56 -0
  757. package/model/customDomainSettings.ts +37 -0
  758. package/model/customFieldCollection.ts +32 -0
  759. package/model/customFieldMessage.ts +37 -0
  760. package/model/customFormField.ts +261 -0
  761. package/model/deleteCustomFieldReply.ts +31 -0
  762. package/model/document.ts +128 -0
  763. package/model/documentCC.ts +31 -0
  764. package/model/documentCcDetails.ts +37 -0
  765. package/model/documentCreated.ts +31 -0
  766. package/model/documentExpirySettings.ts +68 -0
  767. package/model/documentFiles.ts +43 -0
  768. package/model/documentFormFields.ts +266 -0
  769. package/model/documentInfo.ts +90 -0
  770. package/model/documentProperties.ts +308 -0
  771. package/model/documentReassign.ts +43 -0
  772. package/model/documentRecords.ts +39 -0
  773. package/model/documentSenderDetail.ts +49 -0
  774. package/model/documentSigner.ts +194 -0
  775. package/model/documentSignerDetails.ts +234 -0
  776. package/model/documentTags.ts +37 -0
  777. package/model/editSenderIdentityRequest.ts +44 -0
  778. package/model/editTemplateRequest.ts +137 -0
  779. package/model/editableDateFieldSettings.ts +43 -0
  780. package/model/embeddedCreateTemplateRequest.ts +264 -0
  781. package/model/embeddedCustomFieldCreated.ts +31 -0
  782. package/model/embeddedDocumentRequest.ts +310 -0
  783. package/model/embeddedSendCreated.ts +37 -0
  784. package/model/embeddedSendTemplateFormRequest.ts +303 -0
  785. package/model/embeddedSigningLink.ts +31 -0
  786. package/model/embeddedTemplateCreated.ts +37 -0
  787. package/model/embeddedTemplateEditRequest.ts +115 -0
  788. package/model/embeddedTemplateEdited.ts +31 -0
  789. package/model/errorResult.ts +31 -0
  790. package/model/existingFormField.ts +55 -0
  791. package/model/extendExpiry.ts +49 -0
  792. package/model/fileInfo.ts +49 -0
  793. package/model/font.ts +69 -0
  794. package/model/formField.ts +294 -0
  795. package/model/formGroup.ts +63 -0
  796. package/model/formulaFieldSettings.ts +37 -0
  797. package/model/idVerification.ts +73 -0
  798. package/model/identityVerificationSettings.ts +73 -0
  799. package/model/imageInfo.ts +43 -0
  800. package/model/index.ts +476 -0
  801. package/model/mergeAndSendForSignForm.ts +227 -0
  802. package/model/models.ts +244 -0
  803. package/model/notificationSettings.ts +91 -0
  804. package/model/pageDetails.ts +61 -0
  805. package/model/phoneNumber.ts +37 -0
  806. package/model/prefillField.ts +37 -0
  807. package/model/prefillFieldRequest.ts +38 -0
  808. package/model/problemDetails.ts +55 -0
  809. package/model/recipientNotificationSettings.ts +91 -0
  810. package/model/rectangle.ts +49 -0
  811. package/model/reminderMessage.ts +44 -0
  812. package/model/reminderSettings.ts +43 -0
  813. package/model/removeAuthentication.ts +50 -0
  814. package/model/revokeDocument.ts +37 -0
  815. package/model/role.ts +207 -0
  816. package/model/roles.ts +218 -0
  817. package/model/sendForSign.ts +228 -0
  818. package/model/sendForSignFromTemplateForm.ts +221 -0
  819. package/model/senderIdentityList.ts +39 -0
  820. package/model/senderIdentityViewModel.ts +74 -0
  821. package/model/size.ts +37 -0
  822. package/model/teamCreated.ts +31 -0
  823. package/model/teamDocumentRecords.ts +39 -0
  824. package/model/teamListResponse.ts +39 -0
  825. package/model/teamPageDetails.ts +37 -0
  826. package/model/teamResponse.ts +56 -0
  827. package/model/teamUpdateRequest.ts +37 -0
  828. package/model/teamUsers.ts +73 -0
  829. package/model/teams.ts +49 -0
  830. package/model/template.ts +158 -0
  831. package/model/templateCC.ts +37 -0
  832. package/model/templateCreated.ts +31 -0
  833. package/model/templateFormFields.ts +271 -0
  834. package/model/templateProperties.ts +202 -0
  835. package/model/templateRecords.ts +39 -0
  836. package/model/templateRole.ts +181 -0
  837. package/model/templateSenderDetail.ts +37 -0
  838. package/model/templateSenderDetails.ts +43 -0
  839. package/model/templateSharedTemplateDetail.ts +43 -0
  840. package/model/templateSignerDetails.ts +159 -0
  841. package/model/templateTag.ts +49 -0
  842. package/model/textTagDefinition.ts +195 -0
  843. package/model/textTagOffset.ts +37 -0
  844. package/model/updateUser.ts +60 -0
  845. package/model/userPageDetails.ts +37 -0
  846. package/model/userProperties.ts +91 -0
  847. package/model/userRecords.ts +39 -0
  848. package/model/usersDetails.ts +91 -0
  849. package/model/validation.ts +45 -0
  850. package/model/viewBrandDetails.ts +177 -0
  851. package/model/viewCustomFieldDetails.ts +68 -0
  852. package/package.json +48 -0
  853. package/tests/integration/BrandingApiTest.spec.ts +141 -0
  854. package/tests/integration/ContactsApiTest.spec.ts +202 -0
  855. package/tests/integration/CustomFieldApiTest.spec.ts +209 -0
  856. package/tests/integration/DocumentApiTest.spec.ts +1166 -0
  857. package/tests/integration/TemplateApiTest.spec.ts +720 -0
  858. package/tests/integration/planApiTest.spec.ts +27 -0
  859. package/tests/integration/senderIdentity.spec.ts +193 -0
  860. package/tests/integration/teamsApiTest.spec.ts +167 -0
  861. package/tests/integration/usersApiTest.spec.ts +198 -0
  862. package/tsconfig.json +24 -0
@@ -0,0 +1,1142 @@
1
+ /**
2
+ * BoldSign API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
14
+
15
+ import {
16
+ ObjectSerializer, Authentication, VoidAuth, Interceptor,
17
+ HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, RequestFile,
18
+ BrandCreated,BrandingMessage,BrandingRecords,ErrorResult,ProblemDetails,ViewBrandDetails,
19
+ } from '../model';
20
+
21
+ import {
22
+ HttpError,
23
+ optionsI,
24
+ returnTypeT,
25
+ returnTypeI,
26
+ generateFormData,
27
+ toFormData,
28
+ queryParamsSerializer,
29
+ USER_AGENT,
30
+ } from './';
31
+
32
+ let defaultBasePath = 'https://api.boldsign.com';
33
+
34
+ // ===============================================
35
+ // This file is autogenerated - Please do not edit
36
+ // ===============================================
37
+
38
+
39
+ export class BrandingApi {
40
+ protected _basePath = defaultBasePath;
41
+ protected _defaultHeaders : any = { 'User-Agent': USER_AGENT };
42
+ protected _useQuerystring : boolean = false;
43
+
44
+ protected authentications = {
45
+ 'default': <Authentication>new VoidAuth(),
46
+ 'Bearer': new ApiKeyAuth('header', 'Authorization'),
47
+ 'X-API-KEY': new ApiKeyAuth('header', 'X-API-KEY'),
48
+ }
49
+
50
+ protected interceptors: Interceptor[] = [];
51
+
52
+ constructor(basePath?: string) {
53
+ if (basePath) {
54
+ this.basePath = basePath;
55
+ }
56
+ }
57
+
58
+ set useQuerystring(value: boolean) {
59
+ this._useQuerystring = value;
60
+ }
61
+
62
+ set basePath(basePath: string) {
63
+ this._basePath = basePath;
64
+ }
65
+
66
+ set defaultHeaders(defaultHeaders: any) {
67
+ this._defaultHeaders = { ...defaultHeaders, "User-Agent": USER_AGENT };
68
+ }
69
+
70
+ get defaultHeaders() {
71
+ return this._defaultHeaders;
72
+ }
73
+
74
+ get basePath() {
75
+ return this._basePath;
76
+ }
77
+
78
+ public setDefaultAuthentication(auth: Authentication) {
79
+ this.authentications.default = auth;
80
+ }
81
+
82
+ public setApiKey(apikey: string) {
83
+ this.authentications["X-API-KEY"].apiKey = apikey;
84
+ }
85
+
86
+ public addInterceptor(interceptor: Interceptor) {
87
+ this.interceptors.push(interceptor);
88
+ }
89
+
90
+ /**
91
+ *
92
+ * @summary List all the brands.
93
+ * @param options
94
+ */
95
+ public async brandList (options: optionsI = {headers: {}}) : Promise<returnTypeT<BrandingRecords>> {
96
+ const localVarPath = this.basePath + '/v1/brand/list';
97
+ let localVarQueryParameters: any = {};
98
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
99
+ const produces = ['application/json'];
100
+ // give precedence to 'application/json'
101
+ if (produces.indexOf('application/json') >= 0) {
102
+ localVarHeaderParams['content-type'] = 'application/json';
103
+ } else {
104
+ localVarHeaderParams['content-type'] = produces.join(',');
105
+ }
106
+ let localVarFormParams: any = {};
107
+ let localVarBodyParams: any = undefined;
108
+
109
+ (<any>Object).assign(localVarHeaderParams, options.headers);
110
+
111
+ let localVarUseFormData = false;
112
+
113
+ let data = {};
114
+ if (localVarUseFormData) {
115
+ const formData = toFormData(localVarFormParams);
116
+ data = formData;
117
+ localVarHeaderParams = {
118
+ ...localVarHeaderParams,
119
+ ...formData.getHeaders(),
120
+ };
121
+ }
122
+
123
+ let localVarRequestOptions: AxiosRequestConfig = {
124
+ method: 'GET',
125
+ params: localVarQueryParameters,
126
+ headers: localVarHeaderParams,
127
+ url: localVarPath,
128
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
129
+ maxContentLength: Infinity,
130
+ maxBodyLength: Infinity,
131
+ responseType: "json",
132
+ };
133
+
134
+ if (localVarRequestOptions.method !== 'GET') {
135
+ localVarRequestOptions.data = data;
136
+ }
137
+ let authenticationPromise = Promise.resolve();
138
+ if (this.authentications["X-API-KEY"].apiKey) {
139
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
140
+ }
141
+ if (this.authentications["X-API-KEY"].apiKey) {
142
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
143
+ }
144
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
145
+
146
+ let interceptorPromise = authenticationPromise;
147
+ for (const interceptor of this.interceptors) {
148
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
149
+ }
150
+
151
+ return interceptorPromise.then(() => {
152
+ return new Promise<returnTypeT<BrandingRecords>>((resolve, reject) => {
153
+ axios.request(localVarRequestOptions)
154
+ .then((response) => {
155
+ handleSuccessfulResponse<BrandingRecords>(
156
+ resolve,
157
+ reject,
158
+ response,
159
+ "BrandingRecords",
160
+ );
161
+ }, (error: AxiosError) => {
162
+ if (error.response == null) {
163
+ reject(error);
164
+ return;
165
+ }
166
+
167
+ if (handleErrorCodeResponse(
168
+ reject,
169
+ error.response,
170
+ 200,
171
+ "BrandingRecords",
172
+ )) {
173
+ return;
174
+ }
175
+ if (handleErrorCodeResponse(
176
+ reject,
177
+ error.response,
178
+ 401,
179
+ "ProblemDetails",
180
+ )) {
181
+ return;
182
+ }
183
+
184
+
185
+ reject(error);
186
+ });
187
+ });
188
+ });
189
+ }
190
+ /**
191
+ *
192
+ * @summary Create the brand.
193
+ * @param brandName
194
+ * @param brandLogo
195
+ * @param backgroundColor
196
+ * @param buttonColor
197
+ * @param buttonTextColor
198
+ * @param emailDisplayName
199
+ * @param disclaimerDescription
200
+ * @param disclaimerTitle
201
+ * @param redirectUrl
202
+ * @param isDefault
203
+ * @param canHideTagLine
204
+ * @param combineAuditTrail
205
+ * @param excludeAuditTrailFromEmail
206
+ * @param emailSignedDocument
207
+ * @param documentTimeZone
208
+ * @param showBuiltInFormFields
209
+ * @param allowCustomFieldCreation
210
+ * @param showSharedCustomFields
211
+ * @param hideDecline
212
+ * @param hideSave
213
+ * @param documentExpirySettingsExpiryDateType
214
+ * @param documentExpirySettingsExpiryValue
215
+ * @param documentExpirySettingsEnableDefaultExpiryAlert
216
+ * @param documentExpirySettingsEnableAutoReminder
217
+ * @param documentExpirySettingsReminderDays
218
+ * @param documentExpirySettingsReminderCount
219
+ * @param customDomainSettingsDomainName
220
+ * @param customDomainSettingsFromName
221
+ * @param options
222
+ */
223
+ public async createBrand (brandName: string, brandLogo: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, options: optionsI = {headers: {}}) : Promise<returnTypeT<BrandCreated>> {
224
+ const localVarPath = this.basePath + '/v1/brand/create';
225
+ let localVarQueryParameters: any = {};
226
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
227
+ 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/xml', 'application/prs.odatatestxx-odata', 'text/plain', 'text/json'];
228
+ // give precedence to 'application/json'
229
+ if (produces.indexOf('application/json') >= 0) {
230
+ localVarHeaderParams['content-type'] = 'application/json';
231
+ } else {
232
+ localVarHeaderParams['content-type'] = produces.join(',');
233
+ }
234
+ let localVarFormParams: any = {};
235
+ let localVarBodyParams: any = undefined;
236
+
237
+ // verify required parameter 'brandName' is not null or undefined
238
+ if (brandName === null || brandName === undefined) {
239
+ throw new Error('Required parameter brandName was null or undefined when calling createBrand.');
240
+ }
241
+
242
+ // verify required parameter 'brandLogo' is not null or undefined
243
+ if (brandLogo === null || brandLogo === undefined) {
244
+ throw new Error('Required parameter brandLogo was null or undefined when calling createBrand.');
245
+ }
246
+
247
+ (<any>Object).assign(localVarHeaderParams, options.headers);
248
+
249
+ let localVarUseFormData = false;
250
+
251
+ if (brandName !== undefined) {
252
+ localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
253
+ }
254
+
255
+ if (brandLogo !== undefined) {
256
+ localVarFormParams['BrandLogo'] = brandLogo;
257
+ }
258
+ localVarUseFormData = true;
259
+
260
+ if (backgroundColor !== undefined) {
261
+ localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
262
+ }
263
+
264
+ if (buttonColor !== undefined) {
265
+ localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
266
+ }
267
+
268
+ if (buttonTextColor !== undefined) {
269
+ localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
270
+ }
271
+
272
+ if (emailDisplayName !== undefined) {
273
+ localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
274
+ }
275
+
276
+ if (disclaimerDescription !== undefined) {
277
+ localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
278
+ }
279
+
280
+ if (disclaimerTitle !== undefined) {
281
+ localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
282
+ }
283
+
284
+ if (redirectUrl !== undefined) {
285
+ localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
286
+ }
287
+
288
+ if (isDefault !== undefined) {
289
+ localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
290
+ }
291
+
292
+ if (canHideTagLine !== undefined) {
293
+ localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
294
+ }
295
+
296
+ if (combineAuditTrail !== undefined) {
297
+ localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
298
+ }
299
+
300
+ if (excludeAuditTrailFromEmail !== undefined) {
301
+ localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
302
+ }
303
+
304
+ if (emailSignedDocument !== undefined) {
305
+ localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
306
+ }
307
+
308
+ if (documentTimeZone !== undefined) {
309
+ localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
310
+ }
311
+
312
+ if (showBuiltInFormFields !== undefined) {
313
+ localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
314
+ }
315
+
316
+ if (allowCustomFieldCreation !== undefined) {
317
+ localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
318
+ }
319
+
320
+ if (showSharedCustomFields !== undefined) {
321
+ localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
322
+ }
323
+
324
+ if (hideDecline !== undefined) {
325
+ localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
326
+ }
327
+
328
+ if (hideSave !== undefined) {
329
+ localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
330
+ }
331
+
332
+ if (documentExpirySettingsExpiryDateType !== undefined) {
333
+ localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
334
+ }
335
+
336
+ if (documentExpirySettingsExpiryValue !== undefined) {
337
+ localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
338
+ }
339
+
340
+ if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
341
+ localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
342
+ }
343
+
344
+ if (documentExpirySettingsEnableAutoReminder !== undefined) {
345
+ localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
346
+ }
347
+
348
+ if (documentExpirySettingsReminderDays !== undefined) {
349
+ localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
350
+ }
351
+
352
+ if (documentExpirySettingsReminderCount !== undefined) {
353
+ localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
354
+ }
355
+
356
+ if (customDomainSettingsDomainName !== undefined) {
357
+ localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
358
+ }
359
+
360
+ if (customDomainSettingsFromName !== undefined) {
361
+ localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
362
+ }
363
+
364
+ let data = {};
365
+ if (localVarUseFormData) {
366
+ const formData = toFormData(localVarFormParams);
367
+ data = formData;
368
+ localVarHeaderParams = {
369
+ ...localVarHeaderParams,
370
+ ...formData.getHeaders(),
371
+ };
372
+ }
373
+
374
+ let localVarRequestOptions: AxiosRequestConfig = {
375
+ method: 'POST',
376
+ params: localVarQueryParameters,
377
+ headers: localVarHeaderParams,
378
+ url: localVarPath,
379
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
380
+ maxContentLength: Infinity,
381
+ maxBodyLength: Infinity,
382
+ responseType: "json",
383
+ };
384
+
385
+ if (localVarRequestOptions.method !== 'GET') {
386
+ localVarRequestOptions.data = data;
387
+ }
388
+ let authenticationPromise = Promise.resolve();
389
+ if (this.authentications["X-API-KEY"].apiKey) {
390
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
391
+ }
392
+ if (this.authentications["X-API-KEY"].apiKey) {
393
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
394
+ }
395
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
396
+
397
+ let interceptorPromise = authenticationPromise;
398
+ for (const interceptor of this.interceptors) {
399
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
400
+ }
401
+
402
+ return interceptorPromise.then(() => {
403
+ return new Promise<returnTypeT<BrandCreated>>((resolve, reject) => {
404
+ axios.request(localVarRequestOptions)
405
+ .then((response) => {
406
+ handleSuccessfulResponse<BrandCreated>(
407
+ resolve,
408
+ reject,
409
+ response,
410
+ "BrandCreated",
411
+ );
412
+ }, (error: AxiosError) => {
413
+ if (error.response == null) {
414
+ reject(error);
415
+ return;
416
+ }
417
+
418
+ if (handleErrorCodeResponse(
419
+ reject,
420
+ error.response,
421
+ 200,
422
+ "BrandCreated",
423
+ )) {
424
+ return;
425
+ }
426
+ if (handleErrorCodeResponse(
427
+ reject,
428
+ error.response,
429
+ 401,
430
+ "ErrorResult",
431
+ )) {
432
+ return;
433
+ }
434
+ if (handleErrorCodeResponse(
435
+ reject,
436
+ error.response,
437
+ 403,
438
+ "ErrorResult",
439
+ )) {
440
+ return;
441
+ }
442
+
443
+
444
+ reject(error);
445
+ });
446
+ });
447
+ });
448
+ }
449
+ /**
450
+ *
451
+ * @summary Delete the brand.
452
+ * @param brandId brand Id.
453
+ * @param options
454
+ */
455
+ public async deleteBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<returnTypeT<BrandingMessage>> {
456
+ const localVarPath = this.basePath + '/v1/brand/delete';
457
+ let localVarQueryParameters: any = {};
458
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
459
+ 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/xml', 'application/prs.odatatestxx-odata', 'text/plain', 'text/json'];
460
+ // give precedence to 'application/json'
461
+ if (produces.indexOf('application/json') >= 0) {
462
+ localVarHeaderParams['content-type'] = 'application/json';
463
+ } else {
464
+ localVarHeaderParams['content-type'] = produces.join(',');
465
+ }
466
+ let localVarFormParams: any = {};
467
+ let localVarBodyParams: any = undefined;
468
+
469
+ // verify required parameter 'brandId' is not null or undefined
470
+ if (brandId === null || brandId === undefined) {
471
+ throw new Error('Required parameter brandId was null or undefined when calling deleteBrand.');
472
+ }
473
+
474
+ if (brandId !== undefined) {
475
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
476
+ }
477
+
478
+ (<any>Object).assign(localVarHeaderParams, options.headers);
479
+
480
+ let localVarUseFormData = false;
481
+
482
+ let data = {};
483
+ if (localVarUseFormData) {
484
+ const formData = toFormData(localVarFormParams);
485
+ data = formData;
486
+ localVarHeaderParams = {
487
+ ...localVarHeaderParams,
488
+ ...formData.getHeaders(),
489
+ };
490
+ }
491
+
492
+ let localVarRequestOptions: AxiosRequestConfig = {
493
+ method: 'DELETE',
494
+ params: localVarQueryParameters,
495
+ headers: localVarHeaderParams,
496
+ url: localVarPath,
497
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
498
+ maxContentLength: Infinity,
499
+ maxBodyLength: Infinity,
500
+ responseType: "json",
501
+ };
502
+
503
+ if (localVarRequestOptions.method !== 'GET') {
504
+ localVarRequestOptions.data = data;
505
+ }
506
+ let authenticationPromise = Promise.resolve();
507
+ if (this.authentications["X-API-KEY"].apiKey) {
508
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
509
+ }
510
+ if (this.authentications["X-API-KEY"].apiKey) {
511
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
512
+ }
513
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
514
+
515
+ let interceptorPromise = authenticationPromise;
516
+ for (const interceptor of this.interceptors) {
517
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
518
+ }
519
+
520
+ return interceptorPromise.then(() => {
521
+ return new Promise<returnTypeT<BrandingMessage>>((resolve, reject) => {
522
+ axios.request(localVarRequestOptions)
523
+ .then((response) => {
524
+ handleSuccessfulResponse<BrandingMessage>(
525
+ resolve,
526
+ reject,
527
+ response,
528
+ "BrandingMessage",
529
+ );
530
+ }, (error: AxiosError) => {
531
+ if (error.response == null) {
532
+ reject(error);
533
+ return;
534
+ }
535
+
536
+ if (handleErrorCodeResponse(
537
+ reject,
538
+ error.response,
539
+ 200,
540
+ "BrandingMessage",
541
+ )) {
542
+ return;
543
+ }
544
+ if (handleErrorCodeResponse(
545
+ reject,
546
+ error.response,
547
+ 401,
548
+ "ErrorResult",
549
+ )) {
550
+ return;
551
+ }
552
+ if (handleErrorCodeResponse(
553
+ reject,
554
+ error.response,
555
+ 403,
556
+ "ErrorResult",
557
+ )) {
558
+ return;
559
+ }
560
+
561
+
562
+ reject(error);
563
+ });
564
+ });
565
+ });
566
+ }
567
+ /**
568
+ *
569
+ * @summary Edit the brand.
570
+ * @param brandId The brand id.
571
+ * @param brandName
572
+ * @param brandLogo
573
+ * @param backgroundColor
574
+ * @param buttonColor
575
+ * @param buttonTextColor
576
+ * @param emailDisplayName
577
+ * @param disclaimerDescription
578
+ * @param disclaimerTitle
579
+ * @param redirectUrl
580
+ * @param isDefault
581
+ * @param canHideTagLine
582
+ * @param combineAuditTrail
583
+ * @param excludeAuditTrailFromEmail
584
+ * @param emailSignedDocument
585
+ * @param documentTimeZone
586
+ * @param showBuiltInFormFields
587
+ * @param allowCustomFieldCreation
588
+ * @param showSharedCustomFields
589
+ * @param hideDecline
590
+ * @param hideSave
591
+ * @param documentExpirySettingsExpiryDateType
592
+ * @param documentExpirySettingsExpiryValue
593
+ * @param documentExpirySettingsEnableDefaultExpiryAlert
594
+ * @param documentExpirySettingsEnableAutoReminder
595
+ * @param documentExpirySettingsReminderDays
596
+ * @param documentExpirySettingsReminderCount
597
+ * @param customDomainSettingsDomainName
598
+ * @param customDomainSettingsFromName
599
+ * @param options
600
+ */
601
+ public async editBrand (brandId: string, brandName?: string, brandLogo?: RequestFile, backgroundColor?: string, buttonColor?: string, buttonTextColor?: string, emailDisplayName?: string, disclaimerDescription?: string, disclaimerTitle?: string, redirectUrl?: string, isDefault?: boolean, canHideTagLine?: boolean, combineAuditTrail?: boolean, excludeAuditTrailFromEmail?: boolean, emailSignedDocument?: string, documentTimeZone?: string, showBuiltInFormFields?: boolean, allowCustomFieldCreation?: boolean, showSharedCustomFields?: boolean, hideDecline?: boolean, hideSave?: boolean, documentExpirySettingsExpiryDateType?: string, documentExpirySettingsExpiryValue?: number, documentExpirySettingsEnableDefaultExpiryAlert?: boolean, documentExpirySettingsEnableAutoReminder?: boolean, documentExpirySettingsReminderDays?: number, documentExpirySettingsReminderCount?: number, customDomainSettingsDomainName?: string, customDomainSettingsFromName?: string, options: optionsI = {headers: {}}) : Promise<returnTypeT<BrandCreated>> {
602
+ const localVarPath = this.basePath + '/v1/brand/edit';
603
+ let localVarQueryParameters: any = {};
604
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
605
+ 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/xml', 'application/prs.odatatestxx-odata', 'text/plain', 'text/json'];
606
+ // give precedence to 'application/json'
607
+ if (produces.indexOf('application/json') >= 0) {
608
+ localVarHeaderParams['content-type'] = 'application/json';
609
+ } else {
610
+ localVarHeaderParams['content-type'] = produces.join(',');
611
+ }
612
+ let localVarFormParams: any = {};
613
+ let localVarBodyParams: any = undefined;
614
+
615
+ // verify required parameter 'brandId' is not null or undefined
616
+ if (brandId === null || brandId === undefined) {
617
+ throw new Error('Required parameter brandId was null or undefined when calling editBrand.');
618
+ }
619
+
620
+ if (brandId !== undefined) {
621
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
622
+ }
623
+
624
+ (<any>Object).assign(localVarHeaderParams, options.headers);
625
+
626
+ let localVarUseFormData = false;
627
+
628
+ if (brandName !== undefined) {
629
+ localVarFormParams['BrandName'] = ObjectSerializer.serialize(brandName, "string");
630
+ }
631
+
632
+ if (brandLogo !== undefined) {
633
+ localVarFormParams['BrandLogo'] = brandLogo;
634
+ }
635
+ localVarUseFormData = true;
636
+
637
+ if (backgroundColor !== undefined) {
638
+ localVarFormParams['BackgroundColor'] = ObjectSerializer.serialize(backgroundColor, "string");
639
+ }
640
+
641
+ if (buttonColor !== undefined) {
642
+ localVarFormParams['ButtonColor'] = ObjectSerializer.serialize(buttonColor, "string");
643
+ }
644
+
645
+ if (buttonTextColor !== undefined) {
646
+ localVarFormParams['ButtonTextColor'] = ObjectSerializer.serialize(buttonTextColor, "string");
647
+ }
648
+
649
+ if (emailDisplayName !== undefined) {
650
+ localVarFormParams['EmailDisplayName'] = ObjectSerializer.serialize(emailDisplayName, "string");
651
+ }
652
+
653
+ if (disclaimerDescription !== undefined) {
654
+ localVarFormParams['DisclaimerDescription'] = ObjectSerializer.serialize(disclaimerDescription, "string");
655
+ }
656
+
657
+ if (disclaimerTitle !== undefined) {
658
+ localVarFormParams['DisclaimerTitle'] = ObjectSerializer.serialize(disclaimerTitle, "string");
659
+ }
660
+
661
+ if (redirectUrl !== undefined) {
662
+ localVarFormParams['RedirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
663
+ }
664
+
665
+ if (isDefault !== undefined) {
666
+ localVarFormParams['IsDefault'] = ObjectSerializer.serialize(isDefault, "boolean");
667
+ }
668
+
669
+ if (canHideTagLine !== undefined) {
670
+ localVarFormParams['CanHideTagLine'] = ObjectSerializer.serialize(canHideTagLine, "boolean");
671
+ }
672
+
673
+ if (combineAuditTrail !== undefined) {
674
+ localVarFormParams['CombineAuditTrail'] = ObjectSerializer.serialize(combineAuditTrail, "boolean");
675
+ }
676
+
677
+ if (excludeAuditTrailFromEmail !== undefined) {
678
+ localVarFormParams['ExcludeAuditTrailFromEmail'] = ObjectSerializer.serialize(excludeAuditTrailFromEmail, "boolean");
679
+ }
680
+
681
+ if (emailSignedDocument !== undefined) {
682
+ localVarFormParams['EmailSignedDocument'] = ObjectSerializer.serialize(emailSignedDocument, "string");
683
+ }
684
+
685
+ if (documentTimeZone !== undefined) {
686
+ localVarFormParams['DocumentTimeZone'] = ObjectSerializer.serialize(documentTimeZone, "string");
687
+ }
688
+
689
+ if (showBuiltInFormFields !== undefined) {
690
+ localVarFormParams['ShowBuiltInFormFields'] = ObjectSerializer.serialize(showBuiltInFormFields, "boolean");
691
+ }
692
+
693
+ if (allowCustomFieldCreation !== undefined) {
694
+ localVarFormParams['AllowCustomFieldCreation'] = ObjectSerializer.serialize(allowCustomFieldCreation, "boolean");
695
+ }
696
+
697
+ if (showSharedCustomFields !== undefined) {
698
+ localVarFormParams['ShowSharedCustomFields'] = ObjectSerializer.serialize(showSharedCustomFields, "boolean");
699
+ }
700
+
701
+ if (hideDecline !== undefined) {
702
+ localVarFormParams['HideDecline'] = ObjectSerializer.serialize(hideDecline, "boolean");
703
+ }
704
+
705
+ if (hideSave !== undefined) {
706
+ localVarFormParams['HideSave'] = ObjectSerializer.serialize(hideSave, "boolean");
707
+ }
708
+
709
+ if (documentExpirySettingsExpiryDateType !== undefined) {
710
+ localVarFormParams['DocumentExpirySettings.ExpiryDateType'] = ObjectSerializer.serialize(documentExpirySettingsExpiryDateType, "string");
711
+ }
712
+
713
+ if (documentExpirySettingsExpiryValue !== undefined) {
714
+ localVarFormParams['DocumentExpirySettings.ExpiryValue'] = ObjectSerializer.serialize(documentExpirySettingsExpiryValue, "number");
715
+ }
716
+
717
+ if (documentExpirySettingsEnableDefaultExpiryAlert !== undefined) {
718
+ localVarFormParams['DocumentExpirySettings.EnableDefaultExpiryAlert'] = ObjectSerializer.serialize(documentExpirySettingsEnableDefaultExpiryAlert, "boolean");
719
+ }
720
+
721
+ if (documentExpirySettingsEnableAutoReminder !== undefined) {
722
+ localVarFormParams['DocumentExpirySettings.EnableAutoReminder'] = ObjectSerializer.serialize(documentExpirySettingsEnableAutoReminder, "boolean");
723
+ }
724
+
725
+ if (documentExpirySettingsReminderDays !== undefined) {
726
+ localVarFormParams['DocumentExpirySettings.ReminderDays'] = ObjectSerializer.serialize(documentExpirySettingsReminderDays, "number");
727
+ }
728
+
729
+ if (documentExpirySettingsReminderCount !== undefined) {
730
+ localVarFormParams['DocumentExpirySettings.ReminderCount'] = ObjectSerializer.serialize(documentExpirySettingsReminderCount, "number");
731
+ }
732
+
733
+ if (customDomainSettingsDomainName !== undefined) {
734
+ localVarFormParams['CustomDomainSettings.DomainName'] = ObjectSerializer.serialize(customDomainSettingsDomainName, "string");
735
+ }
736
+
737
+ if (customDomainSettingsFromName !== undefined) {
738
+ localVarFormParams['CustomDomainSettings.FromName'] = ObjectSerializer.serialize(customDomainSettingsFromName, "string");
739
+ }
740
+
741
+ let data = {};
742
+ if (localVarUseFormData) {
743
+ const formData = toFormData(localVarFormParams);
744
+ data = formData;
745
+ localVarHeaderParams = {
746
+ ...localVarHeaderParams,
747
+ ...formData.getHeaders(),
748
+ };
749
+ }
750
+
751
+ let localVarRequestOptions: AxiosRequestConfig = {
752
+ method: 'POST',
753
+ params: localVarQueryParameters,
754
+ headers: localVarHeaderParams,
755
+ url: localVarPath,
756
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
757
+ maxContentLength: Infinity,
758
+ maxBodyLength: Infinity,
759
+ responseType: "json",
760
+ };
761
+
762
+ if (localVarRequestOptions.method !== 'GET') {
763
+ localVarRequestOptions.data = data;
764
+ }
765
+ let authenticationPromise = Promise.resolve();
766
+ if (this.authentications["X-API-KEY"].apiKey) {
767
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
768
+ }
769
+ if (this.authentications["X-API-KEY"].apiKey) {
770
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
771
+ }
772
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
773
+
774
+ let interceptorPromise = authenticationPromise;
775
+ for (const interceptor of this.interceptors) {
776
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
777
+ }
778
+
779
+ return interceptorPromise.then(() => {
780
+ return new Promise<returnTypeT<BrandCreated>>((resolve, reject) => {
781
+ axios.request(localVarRequestOptions)
782
+ .then((response) => {
783
+ handleSuccessfulResponse<BrandCreated>(
784
+ resolve,
785
+ reject,
786
+ response,
787
+ "BrandCreated",
788
+ );
789
+ }, (error: AxiosError) => {
790
+ if (error.response == null) {
791
+ reject(error);
792
+ return;
793
+ }
794
+
795
+ if (handleErrorCodeResponse(
796
+ reject,
797
+ error.response,
798
+ 200,
799
+ "BrandCreated",
800
+ )) {
801
+ return;
802
+ }
803
+ if (handleErrorCodeResponse(
804
+ reject,
805
+ error.response,
806
+ 401,
807
+ "ErrorResult",
808
+ )) {
809
+ return;
810
+ }
811
+ if (handleErrorCodeResponse(
812
+ reject,
813
+ error.response,
814
+ 403,
815
+ "ErrorResult",
816
+ )) {
817
+ return;
818
+ }
819
+
820
+
821
+ reject(error);
822
+ });
823
+ });
824
+ });
825
+ }
826
+ /**
827
+ *
828
+ * @summary Get the specific brand details.
829
+ * @param brandId The brand id.
830
+ * @param options
831
+ */
832
+ public async getBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<returnTypeT<ViewBrandDetails>> {
833
+ const localVarPath = this.basePath + '/v1/brand/get';
834
+ let localVarQueryParameters: any = {};
835
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
836
+ const produces = ['application/json'];
837
+ // give precedence to 'application/json'
838
+ if (produces.indexOf('application/json') >= 0) {
839
+ localVarHeaderParams['content-type'] = 'application/json';
840
+ } else {
841
+ localVarHeaderParams['content-type'] = produces.join(',');
842
+ }
843
+ let localVarFormParams: any = {};
844
+ let localVarBodyParams: any = undefined;
845
+
846
+ // verify required parameter 'brandId' is not null or undefined
847
+ if (brandId === null || brandId === undefined) {
848
+ throw new Error('Required parameter brandId was null or undefined when calling getBrand.');
849
+ }
850
+
851
+ if (brandId !== undefined) {
852
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
853
+ }
854
+
855
+ (<any>Object).assign(localVarHeaderParams, options.headers);
856
+
857
+ let localVarUseFormData = false;
858
+
859
+ let data = {};
860
+ if (localVarUseFormData) {
861
+ const formData = toFormData(localVarFormParams);
862
+ data = formData;
863
+ localVarHeaderParams = {
864
+ ...localVarHeaderParams,
865
+ ...formData.getHeaders(),
866
+ };
867
+ }
868
+
869
+ let localVarRequestOptions: AxiosRequestConfig = {
870
+ method: 'GET',
871
+ params: localVarQueryParameters,
872
+ headers: localVarHeaderParams,
873
+ url: localVarPath,
874
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
875
+ maxContentLength: Infinity,
876
+ maxBodyLength: Infinity,
877
+ responseType: "json",
878
+ };
879
+
880
+ if (localVarRequestOptions.method !== 'GET') {
881
+ localVarRequestOptions.data = data;
882
+ }
883
+ let authenticationPromise = Promise.resolve();
884
+ if (this.authentications["X-API-KEY"].apiKey) {
885
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
886
+ }
887
+ if (this.authentications["X-API-KEY"].apiKey) {
888
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
889
+ }
890
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
891
+
892
+ let interceptorPromise = authenticationPromise;
893
+ for (const interceptor of this.interceptors) {
894
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
895
+ }
896
+
897
+ return interceptorPromise.then(() => {
898
+ return new Promise<returnTypeT<ViewBrandDetails>>((resolve, reject) => {
899
+ axios.request(localVarRequestOptions)
900
+ .then((response) => {
901
+ handleSuccessfulResponse<ViewBrandDetails>(
902
+ resolve,
903
+ reject,
904
+ response,
905
+ "ViewBrandDetails",
906
+ );
907
+ }, (error: AxiosError) => {
908
+ if (error.response == null) {
909
+ reject(error);
910
+ return;
911
+ }
912
+
913
+ if (handleErrorCodeResponse(
914
+ reject,
915
+ error.response,
916
+ 200,
917
+ "ViewBrandDetails",
918
+ )) {
919
+ return;
920
+ }
921
+ if (handleErrorCodeResponse(
922
+ reject,
923
+ error.response,
924
+ 401,
925
+ "ErrorResult",
926
+ )) {
927
+ return;
928
+ }
929
+ if (handleErrorCodeResponse(
930
+ reject,
931
+ error.response,
932
+ 403,
933
+ "ErrorResult",
934
+ )) {
935
+ return;
936
+ }
937
+
938
+
939
+ reject(error);
940
+ });
941
+ });
942
+ });
943
+ }
944
+ /**
945
+ *
946
+ * @summary Reset default brand.
947
+ * @param brandId brand Id.
948
+ * @param options
949
+ */
950
+ public async resetDefaultBrand (brandId: string, options: optionsI = {headers: {}}) : Promise<returnTypeT<BrandingMessage>> {
951
+ const localVarPath = this.basePath + '/v1/brand/resetdefault';
952
+ let localVarQueryParameters: any = {};
953
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
954
+ 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/xml', 'application/prs.odatatestxx-odata', 'text/plain', 'text/json'];
955
+ // give precedence to 'application/json'
956
+ if (produces.indexOf('application/json') >= 0) {
957
+ localVarHeaderParams['content-type'] = 'application/json';
958
+ } else {
959
+ localVarHeaderParams['content-type'] = produces.join(',');
960
+ }
961
+ let localVarFormParams: any = {};
962
+ let localVarBodyParams: any = undefined;
963
+
964
+ // verify required parameter 'brandId' is not null or undefined
965
+ if (brandId === null || brandId === undefined) {
966
+ throw new Error('Required parameter brandId was null or undefined when calling resetDefaultBrand.');
967
+ }
968
+
969
+ if (brandId !== undefined) {
970
+ localVarQueryParameters['brandId'] = ObjectSerializer.serialize(brandId, "string");
971
+ }
972
+
973
+ (<any>Object).assign(localVarHeaderParams, options.headers);
974
+
975
+ let localVarUseFormData = false;
976
+
977
+ let data = {};
978
+ if (localVarUseFormData) {
979
+ const formData = toFormData(localVarFormParams);
980
+ data = formData;
981
+ localVarHeaderParams = {
982
+ ...localVarHeaderParams,
983
+ ...formData.getHeaders(),
984
+ };
985
+ }
986
+
987
+ let localVarRequestOptions: AxiosRequestConfig = {
988
+ method: 'POST',
989
+ params: localVarQueryParameters,
990
+ headers: localVarHeaderParams,
991
+ url: localVarPath,
992
+ paramsSerializer: this._useQuerystring ? queryParamsSerializer : undefined,
993
+ maxContentLength: Infinity,
994
+ maxBodyLength: Infinity,
995
+ responseType: "json",
996
+ };
997
+
998
+ if (localVarRequestOptions.method !== 'GET') {
999
+ localVarRequestOptions.data = data;
1000
+ }
1001
+ let authenticationPromise = Promise.resolve();
1002
+ if (this.authentications["X-API-KEY"].apiKey) {
1003
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
1004
+ }
1005
+ if (this.authentications["X-API-KEY"].apiKey) {
1006
+ authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
1007
+ }
1008
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1009
+
1010
+ let interceptorPromise = authenticationPromise;
1011
+ for (const interceptor of this.interceptors) {
1012
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1013
+ }
1014
+
1015
+ return interceptorPromise.then(() => {
1016
+ return new Promise<returnTypeT<BrandingMessage>>((resolve, reject) => {
1017
+ axios.request(localVarRequestOptions)
1018
+ .then((response) => {
1019
+ handleSuccessfulResponse<BrandingMessage>(
1020
+ resolve,
1021
+ reject,
1022
+ response,
1023
+ "BrandingMessage",
1024
+ );
1025
+ }, (error: AxiosError) => {
1026
+ if (error.response == null) {
1027
+ reject(error);
1028
+ return;
1029
+ }
1030
+
1031
+ if (handleErrorCodeResponse(
1032
+ reject,
1033
+ error.response,
1034
+ 200,
1035
+ "BrandingMessage",
1036
+ )) {
1037
+ return;
1038
+ }
1039
+ if (handleErrorCodeResponse(
1040
+ reject,
1041
+ error.response,
1042
+ 401,
1043
+ "ErrorResult",
1044
+ )) {
1045
+ return;
1046
+ }
1047
+ if (handleErrorCodeResponse(
1048
+ reject,
1049
+ error.response,
1050
+ 403,
1051
+ "ErrorResult",
1052
+ )) {
1053
+ return;
1054
+ }
1055
+
1056
+
1057
+ reject(error);
1058
+ });
1059
+ });
1060
+ });
1061
+ }
1062
+ }
1063
+
1064
+ function deserializeIfNeeded<T> (obj: T, classname: string): T {
1065
+ if (obj !== null && obj !== undefined && obj.constructor.name !== classname) {
1066
+ return ObjectSerializer.deserialize(obj, classname);
1067
+ }
1068
+
1069
+ return obj;
1070
+ }
1071
+
1072
+ type AxiosResolve<T> = (
1073
+ value: (returnTypeT<T> | PromiseLike<returnTypeT<T>>),
1074
+ ) => void
1075
+
1076
+ type AxiosReject = (reason?: any) => void;
1077
+
1078
+ function handleSuccessfulResponse<T>(
1079
+ resolve: AxiosResolve<T>,
1080
+ reject: AxiosReject,
1081
+ response: AxiosResponse,
1082
+ returnType?: string,
1083
+ ) {
1084
+ let body = response.data;
1085
+
1086
+ if (
1087
+ response.status &&
1088
+ response.status >= 200 &&
1089
+ response.status <= 299
1090
+ ) {
1091
+ if (returnType) {
1092
+ body = ObjectSerializer.deserialize(body, returnType);
1093
+ }
1094
+
1095
+ resolve({ response: response, body: body });
1096
+ } else {
1097
+ reject(new HttpError(response, body, response.status));
1098
+ }
1099
+ }
1100
+
1101
+ function handleErrorCodeResponse(
1102
+ reject: AxiosReject,
1103
+ response: AxiosResponse,
1104
+ code: number,
1105
+ returnType: string
1106
+ ): boolean {
1107
+ if (response.status !== code) {
1108
+ return false;
1109
+ }
1110
+
1111
+ const body = ObjectSerializer.deserialize(
1112
+ response.data,
1113
+ returnType,
1114
+ );
1115
+
1116
+ reject(new HttpError(response, body, response.status));
1117
+
1118
+ return true;
1119
+ }
1120
+
1121
+ function handleErrorRangeResponse(
1122
+ reject: AxiosReject,
1123
+ response: AxiosResponse,
1124
+ code: string,
1125
+ returnType: string
1126
+ ): boolean {
1127
+ let rangeCodeLeft = Number(code[0] + "00");
1128
+ let rangeCodeRight = Number(code[0] + "99");
1129
+
1130
+ if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
1131
+ const body = ObjectSerializer.deserialize(
1132
+ response.data,
1133
+ returnType,
1134
+ );
1135
+
1136
+ reject(new HttpError(response, body, response.status));
1137
+
1138
+ return true;
1139
+ }
1140
+
1141
+ return false;
1142
+ }