@verdocs/web-sdk 2.3.12 → 2.3.14

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 (342) hide show
  1. package/dist/cjs/{EnvelopeStore-efc35530.js → EnvelopeStore-f8c301e1.js} +1 -1
  2. package/dist/cjs/{Envelopes-0b9deb2c.js → Envelopes-99ca79fe.js} +6 -2
  3. package/dist/cjs/{Profiles-1a26e4eb.js → Profiles-54271244.js} +34 -0
  4. package/dist/cjs/{TemplateStore-17b9fdfe.js → TemplateStore-d9936a68.js} +1 -1
  5. package/dist/cjs/{Types-fb95ed6b.js → Types-ee5afdf8.js} +1 -2
  6. package/dist/cjs/{VerdocsEndpoint-8f298664.js → VerdocsEndpoint-2d85658d.js} +563 -197
  7. package/dist/cjs/{_commonjsHelpers-1fbbf0eb.js → _commonjsHelpers-0c557e26.js} +5 -0
  8. package/dist/cjs/interact.min-ba5cc513.js +13 -0
  9. package/dist/cjs/ipc-test.cjs.entry.js +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/{utils-0916d10f.js → utils-2ddfdf9e.js} +3 -3
  12. package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-auth.cjs.entry.js +34 -8
  14. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -12
  16. package/dist/cjs/{verdocs-contact-picker_3.cjs.entry.js → verdocs-contact-picker_2.cjs.entry.js} +6 -78
  17. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +5 -5
  18. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
  19. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +4 -5
  20. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -5
  21. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +4 -4
  22. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +4 -4
  23. package/dist/cjs/verdocs-field-date.cjs.entry.js +5 -5
  24. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +5 -4
  25. package/dist/cjs/verdocs-field-initial.cjs.entry.js +4 -4
  26. package/dist/cjs/verdocs-field-payment.cjs.entry.js +4 -4
  27. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +4 -4
  28. package/dist/cjs/verdocs-field-signature.cjs.entry.js +4 -4
  29. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +9 -10
  30. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +9 -9
  31. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +5 -5
  32. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -2
  34. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +4 -4
  35. package/dist/cjs/verdocs-preview_8.cjs.entry.js +8 -9
  36. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +220 -0
  37. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +37 -70
  39. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-sign.cjs.entry.js +9 -12
  41. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +5 -5
  42. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +47 -55
  43. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-view.cjs.entry.js +5 -5
  46. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  47. package/dist/collection/collection-manifest.json +1 -1
  48. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -20
  49. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +66 -0
  50. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +187 -0
  51. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +14 -0
  52. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +34 -6
  53. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +1 -2
  54. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -8
  55. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -4
  56. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +0 -1
  57. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +0 -1
  58. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +1 -0
  59. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +1 -2
  60. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
  61. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +0 -1
  62. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +2 -2
  63. package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +0 -10
  64. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +35 -43
  65. package/dist/collection/utils/Types.js +1 -2
  66. package/dist/components/Envelopes.js +6 -2
  67. package/dist/components/Organizations.js +32 -0
  68. package/dist/components/TemplateStore.js +1 -1
  69. package/dist/components/Types2.js +1 -2
  70. package/dist/components/VerdocsEndpoint.js +562 -197
  71. package/dist/components/_commonjsHelpers.js +5 -1
  72. package/dist/components/index.d.ts +1 -1
  73. package/dist/components/index.js +1 -1
  74. package/dist/components/index3.js +29 -40
  75. package/dist/components/interact.min.js +6 -5
  76. package/dist/components/verdocs-auth.js +46 -12
  77. package/dist/components/verdocs-build.js +16 -22
  78. package/dist/components/verdocs-contact-picker2.js +1 -1
  79. package/dist/components/verdocs-envelope-sidebar.js +0 -1
  80. package/dist/components/verdocs-field-date.js +1 -1
  81. package/dist/components/verdocs-field-dropdown.js +1 -0
  82. package/dist/components/verdocs-field-textarea.js +4 -5
  83. package/dist/components/verdocs-field-textbox.js +4 -4
  84. package/dist/components/verdocs-field-timestamp.js +1 -1
  85. package/dist/components/verdocs-ok-dialog2.js +1 -3
  86. package/dist/components/verdocs-search-activity.d.ts +11 -0
  87. package/dist/components/verdocs-search-activity.js +6 -0
  88. package/dist/components/verdocs-search-activity2.js +170 -0
  89. package/dist/components/verdocs-search.js +8 -2
  90. package/dist/components/verdocs-send2.js +5 -12
  91. package/dist/components/verdocs-settings-organization2.js +1 -22
  92. package/dist/components/verdocs-sign.js +4 -8
  93. package/dist/components/verdocs-template-create2.js +2 -2
  94. package/dist/components/verdocs-template-field-properties2.js +0 -10
  95. package/dist/components/verdocs-template-fields2.js +38 -46
  96. package/dist/components/verdocs-template-roles2.js +4 -4
  97. package/dist/docs.json +108 -139
  98. package/dist/esm/{EnvelopeStore-17c0bc52.js → EnvelopeStore-15cc99ef.js} +1 -1
  99. package/dist/esm/{Envelopes-627c5239.js → Envelopes-21ffb899.js} +6 -2
  100. package/dist/esm/{Profiles-d4df4d1c.js → Profiles-4cc942ef.js} +32 -1
  101. package/dist/esm/{TemplateStore-ad77a294.js → TemplateStore-018fc1db.js} +1 -1
  102. package/dist/esm/Types-de18e225.js +4 -0
  103. package/dist/esm/{VerdocsEndpoint-56fa3371.js → VerdocsEndpoint-b011af25.js} +562 -197
  104. package/dist/esm/{_commonjsHelpers-8a9f3b18.js → _commonjsHelpers-5ec8f9b7.js} +5 -1
  105. package/dist/esm/interact.min-cf83fa88.js +11 -0
  106. package/dist/esm/ipc-test.entry.js +2 -2
  107. package/dist/esm/loader.js +1 -1
  108. package/dist/esm/{utils-ca3121df.js → utils-d269cea3.js} +3 -3
  109. package/dist/esm/verdocs-activity-box.entry.js +2 -2
  110. package/dist/esm/verdocs-auth.entry.js +34 -8
  111. package/dist/esm/verdocs-build.entry.js +2 -2
  112. package/dist/esm/verdocs-button-panel_2.entry.js +3 -12
  113. package/dist/esm/{verdocs-contact-picker_3.entry.js → verdocs-contact-picker_2.entry.js} +7 -78
  114. package/dist/esm/verdocs-envelope-document-page.entry.js +5 -5
  115. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
  116. package/dist/esm/verdocs-envelope-sidebar.entry.js +4 -5
  117. package/dist/esm/verdocs-envelopes-list.entry.js +5 -5
  118. package/dist/esm/verdocs-field-attachment.entry.js +4 -4
  119. package/dist/esm/verdocs-field-checkbox.entry.js +4 -4
  120. package/dist/esm/verdocs-field-date.entry.js +5 -5
  121. package/dist/esm/verdocs-field-dropdown.entry.js +5 -4
  122. package/dist/esm/verdocs-field-initial.entry.js +4 -4
  123. package/dist/esm/verdocs-field-payment.entry.js +4 -4
  124. package/dist/esm/verdocs-field-radio-button.entry.js +4 -4
  125. package/dist/esm/verdocs-field-signature.entry.js +4 -4
  126. package/dist/esm/verdocs-field-textarea.entry.js +9 -10
  127. package/dist/esm/verdocs-field-textbox.entry.js +9 -9
  128. package/dist/esm/verdocs-field-timestamp.entry.js +5 -5
  129. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  130. package/dist/esm/verdocs-ok-dialog.entry.js +1 -2
  131. package/dist/esm/verdocs-pagination_2.entry.js +4 -4
  132. package/dist/esm/verdocs-preview_8.entry.js +8 -9
  133. package/dist/esm/verdocs-quick-functions_3.entry.js +214 -0
  134. package/dist/esm/verdocs-search.entry.js +1 -1
  135. package/dist/esm/verdocs-settings-api-keys_4.entry.js +35 -68
  136. package/dist/esm/verdocs-settings.entry.js +1 -1
  137. package/dist/esm/verdocs-sign.entry.js +9 -12
  138. package/dist/esm/verdocs-template-document-page_2.entry.js +5 -5
  139. package/dist/esm/verdocs-template-fields_4.entry.js +47 -55
  140. package/dist/esm/verdocs-template-star.entry.js +1 -1
  141. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  142. package/dist/esm/verdocs-view.entry.js +5 -5
  143. package/dist/esm/verdocs-web-sdk.js +1 -1
  144. package/dist/esm-es5/{EnvelopeStore-17c0bc52.js → EnvelopeStore-15cc99ef.js} +1 -1
  145. package/dist/esm-es5/Envelopes-21ffb899.js +1 -0
  146. package/dist/esm-es5/Profiles-4cc942ef.js +1 -0
  147. package/dist/esm-es5/{TemplateStore-ad77a294.js → TemplateStore-018fc1db.js} +1 -1
  148. package/dist/esm-es5/Types-de18e225.js +1 -0
  149. package/dist/esm-es5/VerdocsEndpoint-b011af25.js +1 -0
  150. package/dist/esm-es5/_commonjsHelpers-5ec8f9b7.js +1 -0
  151. package/dist/esm-es5/interact.min-cf83fa88.js +1 -0
  152. package/dist/esm-es5/ipc-test.entry.js +1 -1
  153. package/dist/esm-es5/loader.js +1 -1
  154. package/dist/esm-es5/{utils-ca3121df.js → utils-d269cea3.js} +2 -2
  155. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -0
  160. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -0
  180. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  186. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  190. package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +0 -4
  191. package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +33 -0
  192. package/dist/types/components/{controls/verdocs-portal/verdocs-portal.stories.d.ts → elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts} +6 -3
  193. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -0
  194. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +0 -1
  195. package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +0 -1
  196. package/dist/types/components.d.ts +34 -50
  197. package/dist/types/utils/Types.d.ts +1 -1
  198. package/dist/types/utils/utils.d.ts +2 -2
  199. package/dist/verdocs-web-sdk/p-01166179.system.entry.js +1 -0
  200. package/dist/verdocs-web-sdk/{p-d1ea580b.system.entry.js → p-013d1556.system.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/p-04580be0.entry.js +1 -0
  202. package/dist/verdocs-web-sdk/{p-17bf98f2.system.entry.js → p-04d7d759.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-da3faf4a.entry.js → p-0ad1fd33.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/p-0d28cf05.js +1 -0
  205. package/dist/verdocs-web-sdk/{p-a40b3946.entry.js → p-0df58c57.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-ba653c39.system.entry.js → p-0e5449d1.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/{p-dd2c2edc.entry.js → p-0f94d635.entry.js} +1 -1
  208. package/dist/verdocs-web-sdk/{p-0685d939.system.entry.js → p-10af7aec.system.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/{p-b467d981.system.entry.js → p-126ba5d2.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-d59b6988.entry.js → p-137cedc8.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/{p-05e6bc91.entry.js → p-1406ffd2.entry.js} +1 -1
  212. package/dist/verdocs-web-sdk/{p-8af68516.system.entry.js → p-14aefeb2.system.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/p-15cb963a.system.entry.js +1 -0
  214. package/dist/verdocs-web-sdk/p-17d0e5f4.entry.js +1 -0
  215. package/dist/verdocs-web-sdk/p-23be436b.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/{p-1e38b22f.system.entry.js → p-261d376e.system.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/p-2ccbcfeb.system.js +1 -0
  218. package/dist/verdocs-web-sdk/{p-1cb878c8.system.entry.js → p-2f04fb38.system.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/p-30b4bd45.js +1 -0
  220. package/dist/verdocs-web-sdk/p-3305a941.system.js +1 -0
  221. package/dist/verdocs-web-sdk/{p-fe67b620.system.entry.js → p-343672f5.system.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-ac98f6f1.system.entry.js → p-35769d0c.system.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-d39e4a26.system.entry.js → p-37187046.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-6331d113.entry.js → p-39cbfe15.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-46624bec.entry.js → p-3a702f79.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-c80237f9.entry.js → p-3abfff14.entry.js} +1 -1
  227. package/dist/verdocs-web-sdk/{p-f42c84f1.entry.js → p-3f9fbf94.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/p-409e992a.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/p-4a94ee00.system.entry.js +1 -0
  230. package/dist/verdocs-web-sdk/{p-2ccbf54d.entry.js → p-4f439363.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-b6231fd3.system.entry.js → p-50ac71f3.system.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/p-51756c1b.system.entry.js +1 -0
  233. package/dist/verdocs-web-sdk/p-5a91bf23.js +1 -0
  234. package/dist/verdocs-web-sdk/{p-9ceff040.system.entry.js → p-5c50a778.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-79168c6a.system.entry.js → p-5df0fa7a.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-b648ab63.system.entry.js → p-609c7fab.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/{p-870707e8.system.entry.js → p-62f090c7.system.entry.js} +1 -1
  238. package/dist/verdocs-web-sdk/p-6307e6ae.entry.js +1 -0
  239. package/dist/verdocs-web-sdk/p-66d66e2b.entry.js +1 -0
  240. package/dist/verdocs-web-sdk/{p-cf703fe4.entry.js → p-6bda7dce.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/p-76907130.entry.js +1 -0
  242. package/dist/verdocs-web-sdk/{p-37dfdc84.entry.js → p-77abc3ce.entry.js} +1 -1
  243. package/dist/verdocs-web-sdk/{p-035a3ce2.entry.js → p-7805f0e0.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-e1bc55f8.entry.js → p-79dc4f76.entry.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-f3dde708.js → p-7b63017c.js} +1 -1
  246. package/dist/verdocs-web-sdk/{p-9615b087.system.js → p-7e8d64fb.system.js} +1 -1
  247. package/dist/verdocs-web-sdk/p-7fd7152d.system.js +1 -0
  248. package/dist/verdocs-web-sdk/p-89aa696c.system.entry.js +1 -0
  249. package/dist/verdocs-web-sdk/{p-410c63e6.entry.js → p-8da1555a.entry.js} +1 -1
  250. package/dist/verdocs-web-sdk/p-961708ac.entry.js +1 -0
  251. package/dist/verdocs-web-sdk/p-983da2f6.js +1 -0
  252. package/dist/verdocs-web-sdk/p-9934f3ec.system.entry.js +1 -0
  253. package/dist/verdocs-web-sdk/{p-637187de.entry.js → p-9b07a2a7.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/{p-4d98f194.system.entry.js → p-a0b02d83.system.entry.js} +1 -1
  255. package/dist/verdocs-web-sdk/{p-3f3807b0.system.entry.js → p-a171983b.system.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/{p-94009f45.entry.js → p-a310f65b.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/{p-02a71e03.js → p-a35314fe.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-b7a815e9.system.entry.js → p-a52a832b.system.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/p-a5425a9b.entry.js +1 -0
  260. package/dist/verdocs-web-sdk/{p-9360b085.system.entry.js → p-aa51514f.system.entry.js} +1 -1
  261. package/dist/verdocs-web-sdk/{p-8b0a5309.entry.js → p-ace35be6.entry.js} +1 -1
  262. package/dist/verdocs-web-sdk/{p-4e47ed1c.entry.js → p-af3e9624.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-e760f894.entry.js → p-b17a20b8.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/p-b2d698f7.system.entry.js +1 -0
  265. package/dist/verdocs-web-sdk/{p-d99a05e4.system.entry.js → p-b73415c3.system.entry.js} +1 -1
  266. package/dist/verdocs-web-sdk/p-bb2c866b.system.entry.js +1 -0
  267. package/dist/verdocs-web-sdk/p-bbee73c8.system.js +1 -0
  268. package/dist/verdocs-web-sdk/{p-acc873cf.system.entry.js → p-bd0bc3dd.system.entry.js} +1 -1
  269. package/dist/verdocs-web-sdk/p-bfcf8ad2.entry.js +1 -0
  270. package/dist/verdocs-web-sdk/{p-840827b7.system.js → p-c694cf93.system.js} +1 -1
  271. package/dist/verdocs-web-sdk/p-cbbf849f.system.js +1 -0
  272. package/dist/verdocs-web-sdk/p-cbd0802f.entry.js +1 -0
  273. package/dist/verdocs-web-sdk/{p-eeca4c30.entry.js → p-cf765153.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-f6b7439f.system.entry.js → p-dd8845d4.system.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/p-de60d3a8.js +1 -0
  276. package/dist/verdocs-web-sdk/{p-6685ff29.system.entry.js → p-df6a373e.system.entry.js} +1 -1
  277. package/dist/verdocs-web-sdk/{p-59769c39.system.entry.js → p-e3a9d167.system.entry.js} +1 -1
  278. package/dist/verdocs-web-sdk/p-eab67c09.js +1 -0
  279. package/dist/verdocs-web-sdk/{p-82b5e475.system.js → p-eb595245.system.js} +1 -1
  280. package/dist/verdocs-web-sdk/{p-1f78be32.js → p-ebc4142c.js} +1 -1
  281. package/dist/verdocs-web-sdk/p-ecf04564.system.entry.js +1 -0
  282. package/dist/verdocs-web-sdk/p-ee195e5e.entry.js +1 -0
  283. package/dist/verdocs-web-sdk/{p-82d4afbf.entry.js → p-eef694e8.entry.js} +1 -1
  284. package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
  285. package/dist/verdocs-web-sdk/{p-ab98a02d.system.entry.js → p-f1257cd0.system.entry.js} +1 -1
  286. package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +1 -0
  287. package/dist/verdocs-web-sdk/{p-9d2995a9.entry.js → p-fde6b724.entry.js} +1 -1
  288. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  289. package/package.json +7 -8
  290. package/dist/cjs/interact.min-a61b43b3.js +0 -12
  291. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +0 -79
  292. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.css +0 -0
  293. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +0 -181
  294. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.stories.js +0 -20
  295. package/dist/components/verdocs-portal.d.ts +0 -11
  296. package/dist/components/verdocs-portal.js +0 -6
  297. package/dist/components/verdocs-portal2.js +0 -93
  298. package/dist/esm/Types-1628dc71.js +0 -5
  299. package/dist/esm/interact.min-6a7b19a1.js +0 -10
  300. package/dist/esm/verdocs-quick-functions_2.entry.js +0 -74
  301. package/dist/esm-es5/Envelopes-627c5239.js +0 -1
  302. package/dist/esm-es5/Profiles-d4df4d1c.js +0 -1
  303. package/dist/esm-es5/Types-1628dc71.js +0 -1
  304. package/dist/esm-es5/VerdocsEndpoint-56fa3371.js +0 -1
  305. package/dist/esm-es5/_commonjsHelpers-8a9f3b18.js +0 -1
  306. package/dist/esm-es5/interact.min-6a7b19a1.js +0 -1
  307. package/dist/esm-es5/verdocs-contact-picker_3.entry.js +0 -1
  308. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +0 -1
  309. package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +0 -37
  310. package/dist/verdocs-web-sdk/p-035f6b38.js +0 -1
  311. package/dist/verdocs-web-sdk/p-0abf0058.system.entry.js +0 -1
  312. package/dist/verdocs-web-sdk/p-17598002.system.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/p-1a7aa04b.entry.js +0 -1
  314. package/dist/verdocs-web-sdk/p-1ba9f457.system.js +0 -1
  315. package/dist/verdocs-web-sdk/p-1c08edf7.system.entry.js +0 -1
  316. package/dist/verdocs-web-sdk/p-22e0d2bc.entry.js +0 -1
  317. package/dist/verdocs-web-sdk/p-319c00bd.entry.js +0 -1
  318. package/dist/verdocs-web-sdk/p-3e607686.js +0 -1
  319. package/dist/verdocs-web-sdk/p-6dd69d82.system.entry.js +0 -1
  320. package/dist/verdocs-web-sdk/p-736fbb87.system.entry.js +0 -1
  321. package/dist/verdocs-web-sdk/p-746fce21.entry.js +0 -1
  322. package/dist/verdocs-web-sdk/p-76f8c30a.entry.js +0 -1
  323. package/dist/verdocs-web-sdk/p-7b30c523.system.entry.js +0 -1
  324. package/dist/verdocs-web-sdk/p-7d5dbd9a.js +0 -1
  325. package/dist/verdocs-web-sdk/p-839f6f0d.js +0 -1
  326. package/dist/verdocs-web-sdk/p-85df0da6.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/p-8aae8d16.system.js +0 -1
  328. package/dist/verdocs-web-sdk/p-915883e6.js +0 -1
  329. package/dist/verdocs-web-sdk/p-9a5c0882.system.entry.js +0 -1
  330. package/dist/verdocs-web-sdk/p-9bf2d124.system.js +0 -1
  331. package/dist/verdocs-web-sdk/p-9fc06f7b.entry.js +0 -1
  332. package/dist/verdocs-web-sdk/p-ae83f4a0.entry.js +0 -1
  333. package/dist/verdocs-web-sdk/p-b91de346.entry.js +0 -1
  334. package/dist/verdocs-web-sdk/p-cd20fb77.system.js +0 -1
  335. package/dist/verdocs-web-sdk/p-d0a09719.entry.js +0 -1
  336. package/dist/verdocs-web-sdk/p-d61fda4b.entry.js +0 -1
  337. package/dist/verdocs-web-sdk/p-d8cd6b59.system.js +0 -1
  338. package/dist/verdocs-web-sdk/p-dc2ad047.js +0 -1
  339. package/dist/verdocs-web-sdk/p-e28878eb.system.entry.js +0 -1
  340. package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +0 -1
  342. package/dist/verdocs-web-sdk/p-e4dc3264.system.entry.js +0 -1
@@ -147,6 +147,23 @@ var __generator = (undefined && undefined.__generator) || function (thisArg, bod
147
147
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
148
148
  }
149
149
  };
150
+ /**
151
+ * Get all templates accessible by the caller, with optional filters.
152
+ *
153
+ * ```typescript
154
+ * import {Templates} from '@verdocs/js-sdk/Templates';
155
+ *
156
+ * await Templates.getTemplates((VerdocsEndpoint.getDefault());
157
+ * await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_starred: true });
158
+ * await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_creator: true });
159
+ * await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_organization: true });
160
+ * ```
161
+ */
162
+ var getTemplates = function (endpoint, params) {
163
+ return endpoint.api //
164
+ .post('/templates', { params: params })
165
+ .then(function (r) { return r.data; });
166
+ };
150
167
  // export interface IListTemplatesParams {
151
168
  // name?: string;
152
169
  // sharing?: 'all' | 'personal' | 'shared' | 'public';
@@ -198,10 +215,10 @@ var ALLOWED_CREATE_FIELDS = [
198
215
  * ```typescript
199
216
  * import {Templates} from '@verdocs/js-sdk/Templates';
200
217
  *
201
- * const newTemplate = await Templates.createTemplatev2((VerdocsEndpoint.getDefault(), {...});
218
+ * const newTemplate = await Templates.createTemplate((VerdocsEndpoint.getDefault(), {...});
202
219
  * ```
203
220
  */
204
- var createTemplatev2 = function (endpoint, params, onUploadProgress) {
221
+ var createTemplate = function (endpoint, params, onUploadProgress) {
205
222
  var options = {
206
223
  timeout: 120000,
207
224
  onUploadProgress: function (event) {
@@ -211,19 +228,22 @@ var createTemplatev2 = function (endpoint, params, onUploadProgress) {
211
228
  },
212
229
  };
213
230
  if (params.documents && params.documents[0] instanceof File) {
214
- var formData_2 = new FormData();
231
+ if (params.documents.length > 10) {
232
+ throw new Error('createTemplate() has a maximum of 10 documents that can be attached.');
233
+ }
234
+ var formData_1 = new FormData();
215
235
  ALLOWED_CREATE_FIELDS.forEach(function (allowedKey) {
216
236
  if (params[allowedKey] !== undefined) {
217
- formData_2.append(allowedKey, params[allowedKey]);
237
+ formData_1.append(allowedKey, params[allowedKey]);
218
238
  }
219
239
  });
220
240
  params.documents.forEach(function (file) {
221
- formData_2.append('documents', file, file.name);
241
+ formData_1.append('documents', file, file.name);
222
242
  });
223
- return endpoint.api.post('/v2/templates', formData_2, options).then(function (r) { return r.data; });
243
+ return endpoint.api.post('/templates', formData_1, options).then(function (r) { return r.data; });
224
244
  }
225
245
  else {
226
- return endpoint.api.post('/v2/templates', params, options).then(function (r) { return r.data; });
246
+ return endpoint.api.post('/templates', params, options).then(function (r) { return r.data; });
227
247
  }
228
248
  };
229
249
  /**
@@ -360,6 +380,322 @@ var Roles;
360
380
  Roles["MEMBER"] = "member";
361
381
  })(Roles || (Roles = {}));
362
382
 
383
+ const denyList = new Set([
384
+ 'ENOTFOUND',
385
+ 'ENETUNREACH',
386
+
387
+ // SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328
388
+ 'UNABLE_TO_GET_ISSUER_CERT',
389
+ 'UNABLE_TO_GET_CRL',
390
+ 'UNABLE_TO_DECRYPT_CERT_SIGNATURE',
391
+ 'UNABLE_TO_DECRYPT_CRL_SIGNATURE',
392
+ 'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',
393
+ 'CERT_SIGNATURE_FAILURE',
394
+ 'CRL_SIGNATURE_FAILURE',
395
+ 'CERT_NOT_YET_VALID',
396
+ 'CERT_HAS_EXPIRED',
397
+ 'CRL_NOT_YET_VALID',
398
+ 'CRL_HAS_EXPIRED',
399
+ 'ERROR_IN_CERT_NOT_BEFORE_FIELD',
400
+ 'ERROR_IN_CERT_NOT_AFTER_FIELD',
401
+ 'ERROR_IN_CRL_LAST_UPDATE_FIELD',
402
+ 'ERROR_IN_CRL_NEXT_UPDATE_FIELD',
403
+ 'OUT_OF_MEM',
404
+ 'DEPTH_ZERO_SELF_SIGNED_CERT',
405
+ 'SELF_SIGNED_CERT_IN_CHAIN',
406
+ 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
407
+ 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
408
+ 'CERT_CHAIN_TOO_LONG',
409
+ 'CERT_REVOKED',
410
+ 'INVALID_CA',
411
+ 'PATH_LENGTH_EXCEEDED',
412
+ 'INVALID_PURPOSE',
413
+ 'CERT_UNTRUSTED',
414
+ 'CERT_REJECTED',
415
+ 'HOSTNAME_MISMATCH'
416
+ ]);
417
+
418
+ // TODO: Use `error?.code` when targeting Node.js 14
419
+ var isRetryAllowed = error => !denyList.has(error && error.code);
420
+
421
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
422
+
423
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
424
+
425
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
426
+
427
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
428
+
429
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
430
+ var namespace = 'axios-retry';
431
+ /**
432
+ * @param {Error} error
433
+ * @return {boolean}
434
+ */
435
+
436
+ function isNetworkError(error) {
437
+ return !error.response && Boolean(error.code) && // Prevents retrying cancelled requests
438
+ error.code !== 'ECONNABORTED' && // Prevents retrying timed out requests
439
+ isRetryAllowed(error); // Prevents retrying unsafe errors
440
+ }
441
+ var SAFE_HTTP_METHODS = ['get', 'head', 'options'];
442
+ var IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);
443
+ /**
444
+ * @param {Error} error
445
+ * @return {boolean}
446
+ */
447
+
448
+ function isRetryableError(error) {
449
+ return error.code !== 'ECONNABORTED' && (!error.response || error.response.status >= 500 && error.response.status <= 599);
450
+ }
451
+ /**
452
+ * @param {Error} error
453
+ * @return {boolean}
454
+ */
455
+
456
+ function isSafeRequestError(error) {
457
+ if (!error.config) {
458
+ // Cannot determine if the request can be retried
459
+ return false;
460
+ }
461
+
462
+ return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;
463
+ }
464
+ /**
465
+ * @param {Error} error
466
+ * @return {boolean}
467
+ */
468
+
469
+ function isIdempotentRequestError(error) {
470
+ if (!error.config) {
471
+ // Cannot determine if the request can be retried
472
+ return false;
473
+ }
474
+
475
+ return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;
476
+ }
477
+ /**
478
+ * @param {Error} error
479
+ * @return {boolean}
480
+ */
481
+
482
+ function isNetworkOrIdempotentRequestError(error) {
483
+ return isNetworkError(error) || isIdempotentRequestError(error);
484
+ }
485
+ /**
486
+ * @return {number} - delay in milliseconds, always 0
487
+ */
488
+
489
+ function noDelay() {
490
+ return 0;
491
+ }
492
+ /**
493
+ * @param {number} [retryNumber=0]
494
+ * @return {number} - delay in milliseconds
495
+ */
496
+
497
+
498
+ function exponentialDelay() {
499
+ var retryNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
500
+ var delay = Math.pow(2, retryNumber) * 100;
501
+ var randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay
502
+
503
+ return delay + randomSum;
504
+ }
505
+ /**
506
+ * Initializes and returns the retry state for the given request/config
507
+ * @param {AxiosRequestConfig} config
508
+ * @return {Object}
509
+ */
510
+
511
+ function getCurrentState(config) {
512
+ var currentState = config[namespace] || {};
513
+ currentState.retryCount = currentState.retryCount || 0;
514
+ config[namespace] = currentState;
515
+ return currentState;
516
+ }
517
+ /**
518
+ * Returns the axios-retry options for the current request
519
+ * @param {AxiosRequestConfig} config
520
+ * @param {AxiosRetryConfig} defaultOptions
521
+ * @return {AxiosRetryConfig}
522
+ */
523
+
524
+
525
+ function getRequestOptions(config, defaultOptions) {
526
+ return _objectSpread(_objectSpread({}, defaultOptions), config[namespace]);
527
+ }
528
+ /**
529
+ * @param {Axios} axios
530
+ * @param {AxiosRequestConfig} config
531
+ */
532
+
533
+
534
+ function fixConfig(axios, config) {
535
+ if (axios.defaults.agent === config.agent) {
536
+ delete config.agent;
537
+ }
538
+
539
+ if (axios.defaults.httpAgent === config.httpAgent) {
540
+ delete config.httpAgent;
541
+ }
542
+
543
+ if (axios.defaults.httpsAgent === config.httpsAgent) {
544
+ delete config.httpsAgent;
545
+ }
546
+ }
547
+ /**
548
+ * Checks retryCondition if request can be retried. Handles it's retruning value or Promise.
549
+ * @param {number} retries
550
+ * @param {Function} retryCondition
551
+ * @param {Object} currentState
552
+ * @param {Error} error
553
+ * @return {boolean}
554
+ */
555
+
556
+
557
+ function shouldRetry(_x, _x2, _x3, _x4) {
558
+ return _shouldRetry.apply(this, arguments);
559
+ }
560
+ /**
561
+ * Adds response interceptors to an axios instance to retry requests failed due to network issues
562
+ *
563
+ * @example
564
+ *
565
+ * import axios from 'axios';
566
+ *
567
+ * axiosRetry(axios, { retries: 3 });
568
+ *
569
+ * axios.get('http://example.com/test') // The first request fails and the second returns 'ok'
570
+ * .then(result => {
571
+ * result.data; // 'ok'
572
+ * });
573
+ *
574
+ * // Exponential back-off retry delay between requests
575
+ * axiosRetry(axios, { retryDelay : axiosRetry.exponentialDelay});
576
+ *
577
+ * // Custom retry delay
578
+ * axiosRetry(axios, { retryDelay : (retryCount) => {
579
+ * return retryCount * 1000;
580
+ * }});
581
+ *
582
+ * // Also works with custom axios instances
583
+ * const client = axios.create({ baseURL: 'http://example.com' });
584
+ * axiosRetry(client, { retries: 3 });
585
+ *
586
+ * client.get('/test') // The first request fails and the second returns 'ok'
587
+ * .then(result => {
588
+ * result.data; // 'ok'
589
+ * });
590
+ *
591
+ * // Allows request-specific configuration
592
+ * client
593
+ * .get('/test', {
594
+ * 'axios-retry': {
595
+ * retries: 0
596
+ * }
597
+ * })
598
+ * .catch(error => { // The first request fails
599
+ * error !== undefined
600
+ * });
601
+ *
602
+ * @param {Axios} axios An axios instance (the axios object or one created from axios.create)
603
+ * @param {Object} [defaultOptions]
604
+ * @param {number} [defaultOptions.retries=3] Number of retries
605
+ * @param {boolean} [defaultOptions.shouldResetTimeout=false]
606
+ * Defines if the timeout should be reset between retries
607
+ * @param {Function} [defaultOptions.retryCondition=isNetworkOrIdempotentRequestError]
608
+ * A function to determine if the error can be retried
609
+ * @param {Function} [defaultOptions.retryDelay=noDelay]
610
+ * A function to determine the delay between retry requests
611
+ * @param {Function} [defaultOptions.onRetry=()=>{}]
612
+ * A function to get notified when a retry occurs
613
+ */
614
+
615
+
616
+ function _shouldRetry() {
617
+ _shouldRetry = _asyncToGenerator(function* (retries, retryCondition, currentState, error) {
618
+ var shouldRetryOrPromise = currentState.retryCount < retries && retryCondition(error); // This could be a promise
619
+
620
+ if (typeof shouldRetryOrPromise === 'object') {
621
+ try {
622
+ var shouldRetryPromiseResult = yield shouldRetryOrPromise; // keep return true unless shouldRetryPromiseResult return false for compatibility
623
+
624
+ return shouldRetryPromiseResult !== false;
625
+ } catch (_err) {
626
+ return false;
627
+ }
628
+ }
629
+
630
+ return shouldRetryOrPromise;
631
+ });
632
+ return _shouldRetry.apply(this, arguments);
633
+ }
634
+
635
+ function axiosRetry(axios, defaultOptions) {
636
+ axios.interceptors.request.use(config => {
637
+ var currentState = getCurrentState(config);
638
+ currentState.lastRequestTime = Date.now();
639
+ return config;
640
+ });
641
+ axios.interceptors.response.use(null, /*#__PURE__*/function () {
642
+ var _ref = _asyncToGenerator(function* (error) {
643
+ var {
644
+ config
645
+ } = error; // If we have no information to retry the request
646
+
647
+ if (!config) {
648
+ return Promise.reject(error);
649
+ }
650
+
651
+ var {
652
+ retries = 3,
653
+ retryCondition = isNetworkOrIdempotentRequestError,
654
+ retryDelay = noDelay,
655
+ shouldResetTimeout = false,
656
+ onRetry = () => {}
657
+ } = getRequestOptions(config, defaultOptions);
658
+ var currentState = getCurrentState(config);
659
+
660
+ if (yield shouldRetry(retries, retryCondition, currentState, error)) {
661
+ currentState.retryCount += 1;
662
+ var delay = retryDelay(currentState.retryCount, error); // Axios fails merging this configuration to the default configuration because it has an issue
663
+ // with circular structures: https://github.com/mzabriskie/axios/issues/370
664
+
665
+ fixConfig(axios, config);
666
+
667
+ if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {
668
+ var lastRequestDuration = Date.now() - currentState.lastRequestTime;
669
+ var timeout = config.timeout - lastRequestDuration - delay;
670
+
671
+ if (timeout <= 0) {
672
+ return Promise.reject(error);
673
+ }
674
+
675
+ config.timeout = timeout;
676
+ }
677
+
678
+ config.transformRequest = [data => data];
679
+ onRetry(currentState.retryCount, error, config);
680
+ return new Promise(resolve => setTimeout(() => resolve(axios(config)), delay));
681
+ }
682
+
683
+ return Promise.reject(error);
684
+ });
685
+
686
+ return function (_x5) {
687
+ return _ref.apply(this, arguments);
688
+ };
689
+ }());
690
+ } // Compatibility with CommonJS
691
+
692
+ axiosRetry.isNetworkError = isNetworkError;
693
+ axiosRetry.isSafeRequestError = isSafeRequestError;
694
+ axiosRetry.isIdempotentRequestError = isIdempotentRequestError;
695
+ axiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;
696
+ axiosRetry.exponentialDelay = exponentialDelay;
697
+ axiosRetry.isRetryableError = isRetryableError;
698
+
363
699
  function bind(fn, thisArg) {
364
700
  return function wrap() {
365
701
  return fn.apply(thisArg, arguments);
@@ -1032,7 +1368,7 @@ const isAsyncFn = kindOfTest('AsyncFunction');
1032
1368
  const isThenable = (thing) =>
1033
1369
  thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
1034
1370
 
1035
- const utils$1 = {
1371
+ const utils = {
1036
1372
  isArray,
1037
1373
  isArrayBuffer,
1038
1374
  isBuffer,
@@ -1114,7 +1450,7 @@ function AxiosError(message, code, config, request, response) {
1114
1450
  response && (this.response = response);
1115
1451
  }
1116
1452
 
1117
- utils$1.inherits(AxiosError, Error, {
1453
+ utils.inherits(AxiosError, Error, {
1118
1454
  toJSON: function toJSON() {
1119
1455
  return {
1120
1456
  // Standard
@@ -1129,7 +1465,7 @@ utils$1.inherits(AxiosError, Error, {
1129
1465
  columnNumber: this.columnNumber,
1130
1466
  stack: this.stack,
1131
1467
  // Axios
1132
- config: utils$1.toJSONObject(this.config),
1468
+ config: utils.toJSONObject(this.config),
1133
1469
  code: this.code,
1134
1470
  status: this.response && this.response.status ? this.response.status : null
1135
1471
  };
@@ -1164,7 +1500,7 @@ Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
1164
1500
  AxiosError.from = (error, code, config, request, response, customProps) => {
1165
1501
  const axiosError = Object.create(prototype$1);
1166
1502
 
1167
- utils$1.toFlatObject(error, axiosError, function filter(obj) {
1503
+ utils.toFlatObject(error, axiosError, function filter(obj) {
1168
1504
  return obj !== Error.prototype;
1169
1505
  }, prop => {
1170
1506
  return prop !== 'isAxiosError';
@@ -1192,7 +1528,7 @@ const httpAdapter = null;
1192
1528
  * @returns {boolean}
1193
1529
  */
1194
1530
  function isVisitable(thing) {
1195
- return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
1531
+ return utils.isPlainObject(thing) || utils.isArray(thing);
1196
1532
  }
1197
1533
 
1198
1534
  /**
@@ -1203,7 +1539,7 @@ function isVisitable(thing) {
1203
1539
  * @returns {string} the key without the brackets.
1204
1540
  */
1205
1541
  function removeBrackets(key) {
1206
- return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
1542
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
1207
1543
  }
1208
1544
 
1209
1545
  /**
@@ -1232,10 +1568,10 @@ function renderKey(path, key, dots) {
1232
1568
  * @returns {boolean}
1233
1569
  */
1234
1570
  function isFlatArray(arr) {
1235
- return utils$1.isArray(arr) && !arr.some(isVisitable);
1571
+ return utils.isArray(arr) && !arr.some(isVisitable);
1236
1572
  }
1237
1573
 
1238
- const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
1574
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
1239
1575
  return /^is[A-Z]/.test(prop);
1240
1576
  });
1241
1577
 
@@ -1263,7 +1599,7 @@ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop)
1263
1599
  * @returns
1264
1600
  */
1265
1601
  function toFormData(obj, formData, options) {
1266
- if (!utils$1.isObject(obj)) {
1602
+ if (!utils.isObject(obj)) {
1267
1603
  throw new TypeError('target must be an object');
1268
1604
  }
1269
1605
 
@@ -1271,13 +1607,13 @@ function toFormData(obj, formData, options) {
1271
1607
  formData = formData || new (FormData)();
1272
1608
 
1273
1609
  // eslint-disable-next-line no-param-reassign
1274
- options = utils$1.toFlatObject(options, {
1610
+ options = utils.toFlatObject(options, {
1275
1611
  metaTokens: true,
1276
1612
  dots: false,
1277
1613
  indexes: false
1278
1614
  }, false, function defined(option, source) {
1279
1615
  // eslint-disable-next-line no-eq-null,eqeqeq
1280
- return !utils$1.isUndefined(source[option]);
1616
+ return !utils.isUndefined(source[option]);
1281
1617
  });
1282
1618
 
1283
1619
  const metaTokens = options.metaTokens;
@@ -1286,24 +1622,24 @@ function toFormData(obj, formData, options) {
1286
1622
  const dots = options.dots;
1287
1623
  const indexes = options.indexes;
1288
1624
  const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1289
- const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1625
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
1290
1626
 
1291
- if (!utils$1.isFunction(visitor)) {
1627
+ if (!utils.isFunction(visitor)) {
1292
1628
  throw new TypeError('visitor must be a function');
1293
1629
  }
1294
1630
 
1295
1631
  function convertValue(value) {
1296
1632
  if (value === null) return '';
1297
1633
 
1298
- if (utils$1.isDate(value)) {
1634
+ if (utils.isDate(value)) {
1299
1635
  return value.toISOString();
1300
1636
  }
1301
1637
 
1302
- if (!useBlob && utils$1.isBlob(value)) {
1638
+ if (!useBlob && utils.isBlob(value)) {
1303
1639
  throw new AxiosError('Blob is not supported. Use a Buffer instead.');
1304
1640
  }
1305
1641
 
1306
- if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
1642
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
1307
1643
  return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
1308
1644
  }
1309
1645
 
@@ -1324,20 +1660,20 @@ function toFormData(obj, formData, options) {
1324
1660
  let arr = value;
1325
1661
 
1326
1662
  if (value && !path && typeof value === 'object') {
1327
- if (utils$1.endsWith(key, '{}')) {
1663
+ if (utils.endsWith(key, '{}')) {
1328
1664
  // eslint-disable-next-line no-param-reassign
1329
1665
  key = metaTokens ? key : key.slice(0, -2);
1330
1666
  // eslint-disable-next-line no-param-reassign
1331
1667
  value = JSON.stringify(value);
1332
1668
  } else if (
1333
- (utils$1.isArray(value) && isFlatArray(value)) ||
1334
- ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
1669
+ (utils.isArray(value) && isFlatArray(value)) ||
1670
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
1335
1671
  )) {
1336
1672
  // eslint-disable-next-line no-param-reassign
1337
1673
  key = removeBrackets(key);
1338
1674
 
1339
1675
  arr.forEach(function each(el, index) {
1340
- !(utils$1.isUndefined(el) || el === null) && formData.append(
1676
+ !(utils.isUndefined(el) || el === null) && formData.append(
1341
1677
  // eslint-disable-next-line no-nested-ternary
1342
1678
  indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1343
1679
  convertValue(el)
@@ -1365,7 +1701,7 @@ function toFormData(obj, formData, options) {
1365
1701
  });
1366
1702
 
1367
1703
  function build(value, path) {
1368
- if (utils$1.isUndefined(value)) return;
1704
+ if (utils.isUndefined(value)) return;
1369
1705
 
1370
1706
  if (stack.indexOf(value) !== -1) {
1371
1707
  throw Error('Circular reference detected in ' + path.join('.'));
@@ -1373,9 +1709,9 @@ function toFormData(obj, formData, options) {
1373
1709
 
1374
1710
  stack.push(value);
1375
1711
 
1376
- utils$1.forEach(value, function each(el, key) {
1377
- const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
1378
- formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers
1712
+ utils.forEach(value, function each(el, key) {
1713
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
1714
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
1379
1715
  );
1380
1716
 
1381
1717
  if (result === true) {
@@ -1386,7 +1722,7 @@ function toFormData(obj, formData, options) {
1386
1722
  stack.pop();
1387
1723
  }
1388
1724
 
1389
- if (!utils$1.isObject(obj)) {
1725
+ if (!utils.isObject(obj)) {
1390
1726
  throw new TypeError('data must be an object');
1391
1727
  }
1392
1728
 
@@ -1490,7 +1826,7 @@ function buildURL(url, params, options) {
1490
1826
  if (serializeFn) {
1491
1827
  serializedParams = serializeFn(params, options);
1492
1828
  } else {
1493
- serializedParams = utils$1.isURLSearchParams(params) ?
1829
+ serializedParams = utils.isURLSearchParams(params) ?
1494
1830
  params.toString() :
1495
1831
  new AxiosURLSearchParams(params, options).toString(_encode);
1496
1832
  }
@@ -1565,7 +1901,7 @@ class InterceptorManager {
1565
1901
  * @returns {void}
1566
1902
  */
1567
1903
  forEach(fn) {
1568
- utils$1.forEach(this.handlers, function forEachHandler(h) {
1904
+ utils.forEach(this.handlers, function forEachHandler(h) {
1569
1905
  if (h !== null) {
1570
1906
  fn(h);
1571
1907
  }
@@ -1585,18 +1921,6 @@ const FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
1585
1921
 
1586
1922
  const Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
1587
1923
 
1588
- const platform$1 = {
1589
- isBrowser: true,
1590
- classes: {
1591
- URLSearchParams: URLSearchParams$1,
1592
- FormData: FormData$1,
1593
- Blob: Blob$1
1594
- },
1595
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1596
- };
1597
-
1598
- const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1599
-
1600
1924
  /**
1601
1925
  * Determine if we're running in a standard browser environment
1602
1926
  *
@@ -1614,10 +1938,18 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
1614
1938
  *
1615
1939
  * @returns {boolean}
1616
1940
  */
1617
- const hasStandardBrowserEnv = (
1618
- (product) => {
1619
- return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
1620
- })(typeof navigator !== 'undefined' && navigator.product);
1941
+ const isStandardBrowserEnv = (() => {
1942
+ let product;
1943
+ if (typeof navigator !== 'undefined' && (
1944
+ (product = navigator.product) === 'ReactNative' ||
1945
+ product === 'NativeScript' ||
1946
+ product === 'NS')
1947
+ ) {
1948
+ return false;
1949
+ }
1950
+
1951
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
1952
+ })();
1621
1953
 
1622
1954
  /**
1623
1955
  * Determine if we're running in a standard browser webWorker environment
@@ -1628,7 +1960,7 @@ const hasStandardBrowserEnv = (
1628
1960
  * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1629
1961
  * This leads to a problem when axios post `FormData` in webWorker
1630
1962
  */
1631
- const hasStandardBrowserWebWorkerEnv = (() => {
1963
+ const isStandardBrowserWebWorkerEnv = (() => {
1632
1964
  return (
1633
1965
  typeof WorkerGlobalScope !== 'undefined' &&
1634
1966
  // eslint-disable-next-line no-undef
@@ -1637,25 +1969,22 @@ const hasStandardBrowserWebWorkerEnv = (() => {
1637
1969
  );
1638
1970
  })();
1639
1971
 
1640
- const utils = /*#__PURE__*/Object.freeze({
1641
- __proto__: null,
1642
- hasBrowserEnv: hasBrowserEnv,
1643
- hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1644
- hasStandardBrowserEnv: hasStandardBrowserEnv
1645
- });
1646
1972
 
1647
1973
  const platform = {
1648
- ...utils,
1649
- ...platform$1
1974
+ isBrowser: true,
1975
+ classes: {
1976
+ URLSearchParams: URLSearchParams$1,
1977
+ FormData: FormData$1,
1978
+ Blob: Blob$1
1979
+ },
1980
+ isStandardBrowserEnv,
1981
+ isStandardBrowserWebWorkerEnv,
1982
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1650
1983
  };
1651
1984
 
1652
1985
  function toURLEncodedForm(data, options) {
1653
1986
  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
1654
1987
  visitor: function(value, key, path, helpers) {
1655
- if (platform.isNode && utils$1.isBuffer(value)) {
1656
- this.append(key, value.toString('base64'));
1657
- return false;
1658
- }
1659
1988
 
1660
1989
  return helpers.defaultVisitor.apply(this, arguments);
1661
1990
  }
@@ -1674,7 +2003,7 @@ function parsePropPath(name) {
1674
2003
  // foo.x.y.z
1675
2004
  // foo-x-y-z
1676
2005
  // foo x y z
1677
- return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
2006
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1678
2007
  return match[0] === '[]' ? '' : match[1] || match[0];
1679
2008
  });
1680
2009
  }
@@ -1711,10 +2040,10 @@ function formDataToJSON(formData) {
1711
2040
  let name = path[index++];
1712
2041
  const isNumericKey = Number.isFinite(+name);
1713
2042
  const isLast = index >= path.length;
1714
- name = !name && utils$1.isArray(target) ? target.length : name;
2043
+ name = !name && utils.isArray(target) ? target.length : name;
1715
2044
 
1716
2045
  if (isLast) {
1717
- if (utils$1.hasOwnProp(target, name)) {
2046
+ if (utils.hasOwnProp(target, name)) {
1718
2047
  target[name] = [target[name], value];
1719
2048
  } else {
1720
2049
  target[name] = value;
@@ -1723,23 +2052,23 @@ function formDataToJSON(formData) {
1723
2052
  return !isNumericKey;
1724
2053
  }
1725
2054
 
1726
- if (!target[name] || !utils$1.isObject(target[name])) {
2055
+ if (!target[name] || !utils.isObject(target[name])) {
1727
2056
  target[name] = [];
1728
2057
  }
1729
2058
 
1730
2059
  const result = buildPath(path, value, target[name], index);
1731
2060
 
1732
- if (result && utils$1.isArray(target[name])) {
2061
+ if (result && utils.isArray(target[name])) {
1733
2062
  target[name] = arrayToObject(target[name]);
1734
2063
  }
1735
2064
 
1736
2065
  return !isNumericKey;
1737
2066
  }
1738
2067
 
1739
- if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
2068
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
1740
2069
  const obj = {};
1741
2070
 
1742
- utils$1.forEachEntry(formData, (name, value) => {
2071
+ utils.forEachEntry(formData, (name, value) => {
1743
2072
  buildPath(parsePropPath(name), value, obj, 0);
1744
2073
  });
1745
2074
 
@@ -1760,10 +2089,10 @@ function formDataToJSON(formData) {
1760
2089
  * @returns {string} A stringified version of the rawValue.
1761
2090
  */
1762
2091
  function stringifySafely(rawValue, parser, encoder) {
1763
- if (utils$1.isString(rawValue)) {
2092
+ if (utils.isString(rawValue)) {
1764
2093
  try {
1765
2094
  (parser || JSON.parse)(rawValue);
1766
- return utils$1.trim(rawValue);
2095
+ return utils.trim(rawValue);
1767
2096
  } catch (e) {
1768
2097
  if (e.name !== 'SyntaxError') {
1769
2098
  throw e;
@@ -1783,13 +2112,13 @@ const defaults = {
1783
2112
  transformRequest: [function transformRequest(data, headers) {
1784
2113
  const contentType = headers.getContentType() || '';
1785
2114
  const hasJSONContentType = contentType.indexOf('application/json') > -1;
1786
- const isObjectPayload = utils$1.isObject(data);
2115
+ const isObjectPayload = utils.isObject(data);
1787
2116
 
1788
- if (isObjectPayload && utils$1.isHTMLForm(data)) {
2117
+ if (isObjectPayload && utils.isHTMLForm(data)) {
1789
2118
  data = new FormData(data);
1790
2119
  }
1791
2120
 
1792
- const isFormData = utils$1.isFormData(data);
2121
+ const isFormData = utils.isFormData(data);
1793
2122
 
1794
2123
  if (isFormData) {
1795
2124
  if (!hasJSONContentType) {
@@ -1798,18 +2127,18 @@ const defaults = {
1798
2127
  return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1799
2128
  }
1800
2129
 
1801
- if (utils$1.isArrayBuffer(data) ||
1802
- utils$1.isBuffer(data) ||
1803
- utils$1.isStream(data) ||
1804
- utils$1.isFile(data) ||
1805
- utils$1.isBlob(data)
2130
+ if (utils.isArrayBuffer(data) ||
2131
+ utils.isBuffer(data) ||
2132
+ utils.isStream(data) ||
2133
+ utils.isFile(data) ||
2134
+ utils.isBlob(data)
1806
2135
  ) {
1807
2136
  return data;
1808
2137
  }
1809
- if (utils$1.isArrayBufferView(data)) {
2138
+ if (utils.isArrayBufferView(data)) {
1810
2139
  return data.buffer;
1811
2140
  }
1812
- if (utils$1.isURLSearchParams(data)) {
2141
+ if (utils.isURLSearchParams(data)) {
1813
2142
  headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1814
2143
  return data.toString();
1815
2144
  }
@@ -1821,7 +2150,7 @@ const defaults = {
1821
2150
  return toURLEncodedForm(data, this.formSerializer).toString();
1822
2151
  }
1823
2152
 
1824
- if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
2153
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1825
2154
  const _FormData = this.env && this.env.FormData;
1826
2155
 
1827
2156
  return toFormData(
@@ -1845,7 +2174,7 @@ const defaults = {
1845
2174
  const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1846
2175
  const JSONRequested = this.responseType === 'json';
1847
2176
 
1848
- if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
2177
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1849
2178
  const silentJSONParsing = transitional && transitional.silentJSONParsing;
1850
2179
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
1851
2180
 
@@ -1893,13 +2222,13 @@ const defaults = {
1893
2222
  }
1894
2223
  };
1895
2224
 
1896
- utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
2225
+ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
1897
2226
  defaults.headers[method] = {};
1898
2227
  });
1899
2228
 
1900
2229
  // RawAxiosHeaders whose duplicates are ignored by node
1901
2230
  // c.f. https://nodejs.org/api/http.html#http_message_headers
1902
- const ignoreDuplicateOf = utils$1.toObjectSet([
2231
+ const ignoreDuplicateOf = utils.toObjectSet([
1903
2232
  'age', 'authorization', 'content-length', 'content-type', 'etag',
1904
2233
  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1905
2234
  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
@@ -1960,7 +2289,7 @@ function normalizeValue(value) {
1960
2289
  return value;
1961
2290
  }
1962
2291
 
1963
- return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
2292
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
1964
2293
  }
1965
2294
 
1966
2295
  function parseTokens(str) {
@@ -1978,7 +2307,7 @@ function parseTokens(str) {
1978
2307
  const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1979
2308
 
1980
2309
  function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1981
- if (utils$1.isFunction(filter)) {
2310
+ if (utils.isFunction(filter)) {
1982
2311
  return filter.call(this, value, header);
1983
2312
  }
1984
2313
 
@@ -1986,13 +2315,13 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1986
2315
  value = header;
1987
2316
  }
1988
2317
 
1989
- if (!utils$1.isString(value)) return;
2318
+ if (!utils.isString(value)) return;
1990
2319
 
1991
- if (utils$1.isString(filter)) {
2320
+ if (utils.isString(filter)) {
1992
2321
  return value.indexOf(filter) !== -1;
1993
2322
  }
1994
2323
 
1995
- if (utils$1.isRegExp(filter)) {
2324
+ if (utils.isRegExp(filter)) {
1996
2325
  return filter.test(value);
1997
2326
  }
1998
2327
  }
@@ -2005,7 +2334,7 @@ function formatHeader(header) {
2005
2334
  }
2006
2335
 
2007
2336
  function buildAccessors(obj, header) {
2008
- const accessorName = utils$1.toCamelCase(' ' + header);
2337
+ const accessorName = utils.toCamelCase(' ' + header);
2009
2338
 
2010
2339
  ['get', 'set', 'has'].forEach(methodName => {
2011
2340
  Object.defineProperty(obj, methodName + accessorName, {
@@ -2032,7 +2361,7 @@ class AxiosHeaders {
2032
2361
  throw new Error('header name must be a non-empty string');
2033
2362
  }
2034
2363
 
2035
- const key = utils$1.findKey(self, lHeader);
2364
+ const key = utils.findKey(self, lHeader);
2036
2365
 
2037
2366
  if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
2038
2367
  self[key || _header] = normalizeValue(_value);
@@ -2040,11 +2369,11 @@ class AxiosHeaders {
2040
2369
  }
2041
2370
 
2042
2371
  const setHeaders = (headers, _rewrite) =>
2043
- utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
2372
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
2044
2373
 
2045
- if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
2374
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
2046
2375
  setHeaders(header, valueOrRewrite);
2047
- } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
2376
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
2048
2377
  setHeaders(parseHeaders(header), valueOrRewrite);
2049
2378
  } else {
2050
2379
  header != null && setHeader(valueOrRewrite, header, rewrite);
@@ -2057,7 +2386,7 @@ class AxiosHeaders {
2057
2386
  header = normalizeHeader(header);
2058
2387
 
2059
2388
  if (header) {
2060
- const key = utils$1.findKey(this, header);
2389
+ const key = utils.findKey(this, header);
2061
2390
 
2062
2391
  if (key) {
2063
2392
  const value = this[key];
@@ -2070,11 +2399,11 @@ class AxiosHeaders {
2070
2399
  return parseTokens(value);
2071
2400
  }
2072
2401
 
2073
- if (utils$1.isFunction(parser)) {
2402
+ if (utils.isFunction(parser)) {
2074
2403
  return parser.call(this, value, key);
2075
2404
  }
2076
2405
 
2077
- if (utils$1.isRegExp(parser)) {
2406
+ if (utils.isRegExp(parser)) {
2078
2407
  return parser.exec(value);
2079
2408
  }
2080
2409
 
@@ -2087,7 +2416,7 @@ class AxiosHeaders {
2087
2416
  header = normalizeHeader(header);
2088
2417
 
2089
2418
  if (header) {
2090
- const key = utils$1.findKey(this, header);
2419
+ const key = utils.findKey(this, header);
2091
2420
 
2092
2421
  return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
2093
2422
  }
@@ -2103,7 +2432,7 @@ class AxiosHeaders {
2103
2432
  _header = normalizeHeader(_header);
2104
2433
 
2105
2434
  if (_header) {
2106
- const key = utils$1.findKey(self, _header);
2435
+ const key = utils.findKey(self, _header);
2107
2436
 
2108
2437
  if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
2109
2438
  delete self[key];
@@ -2113,7 +2442,7 @@ class AxiosHeaders {
2113
2442
  }
2114
2443
  }
2115
2444
 
2116
- if (utils$1.isArray(header)) {
2445
+ if (utils.isArray(header)) {
2117
2446
  header.forEach(deleteHeader);
2118
2447
  } else {
2119
2448
  deleteHeader(header);
@@ -2142,8 +2471,8 @@ class AxiosHeaders {
2142
2471
  const self = this;
2143
2472
  const headers = {};
2144
2473
 
2145
- utils$1.forEach(this, (value, header) => {
2146
- const key = utils$1.findKey(headers, header);
2474
+ utils.forEach(this, (value, header) => {
2475
+ const key = utils.findKey(headers, header);
2147
2476
 
2148
2477
  if (key) {
2149
2478
  self[key] = normalizeValue(value);
@@ -2172,8 +2501,8 @@ class AxiosHeaders {
2172
2501
  toJSON(asStrings) {
2173
2502
  const obj = Object.create(null);
2174
2503
 
2175
- utils$1.forEach(this, (value, header) => {
2176
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
2504
+ utils.forEach(this, (value, header) => {
2505
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
2177
2506
  });
2178
2507
 
2179
2508
  return obj;
@@ -2220,7 +2549,7 @@ class AxiosHeaders {
2220
2549
  }
2221
2550
  }
2222
2551
 
2223
- utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2552
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2224
2553
 
2225
2554
  return this;
2226
2555
  }
@@ -2229,7 +2558,7 @@ class AxiosHeaders {
2229
2558
  AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2230
2559
 
2231
2560
  // reserved names hotfix
2232
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2561
+ utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2233
2562
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
2234
2563
  return {
2235
2564
  get: () => value,
@@ -2239,7 +2568,7 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2239
2568
  }
2240
2569
  });
2241
2570
 
2242
- utils$1.freezeMethods(AxiosHeaders);
2571
+ utils.freezeMethods(AxiosHeaders);
2243
2572
 
2244
2573
  /**
2245
2574
  * Transform the data for a request or a response
@@ -2255,7 +2584,7 @@ function transformData(fns, response) {
2255
2584
  const headers = AxiosHeaders.from(context.headers);
2256
2585
  let data = context.data;
2257
2586
 
2258
- utils$1.forEach(fns, function transform(fn) {
2587
+ utils.forEach(fns, function transform(fn) {
2259
2588
  data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
2260
2589
  });
2261
2590
 
@@ -2283,7 +2612,7 @@ function CanceledError(message, config, request) {
2283
2612
  this.name = 'CanceledError';
2284
2613
  }
2285
2614
 
2286
- utils$1.inherits(CanceledError, AxiosError, {
2615
+ utils.inherits(CanceledError, AxiosError, {
2287
2616
  __CANCEL__: true
2288
2617
  });
2289
2618
 
@@ -2311,44 +2640,53 @@ function settle(resolve, reject, response) {
2311
2640
  }
2312
2641
  }
2313
2642
 
2314
- const cookies = platform.hasStandardBrowserEnv ?
2315
-
2316
- // Standard browser envs support document.cookie
2317
- {
2318
- write(name, value, expires, path, domain, secure) {
2319
- const cookie = [name + '=' + encodeURIComponent(value)];
2643
+ const cookies = platform.isStandardBrowserEnv ?
2320
2644
 
2321
- utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
2645
+ // Standard browser envs support document.cookie
2646
+ (function standardBrowserEnv() {
2647
+ return {
2648
+ write: function write(name, value, expires, path, domain, secure) {
2649
+ const cookie = [];
2650
+ cookie.push(name + '=' + encodeURIComponent(value));
2322
2651
 
2323
- utils$1.isString(path) && cookie.push('path=' + path);
2652
+ if (utils.isNumber(expires)) {
2653
+ cookie.push('expires=' + new Date(expires).toGMTString());
2654
+ }
2324
2655
 
2325
- utils$1.isString(domain) && cookie.push('domain=' + domain);
2656
+ if (utils.isString(path)) {
2657
+ cookie.push('path=' + path);
2658
+ }
2326
2659
 
2327
- secure === true && cookie.push('secure');
2660
+ if (utils.isString(domain)) {
2661
+ cookie.push('domain=' + domain);
2662
+ }
2328
2663
 
2329
- document.cookie = cookie.join('; ');
2330
- },
2664
+ if (secure === true) {
2665
+ cookie.push('secure');
2666
+ }
2331
2667
 
2332
- read(name) {
2333
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2334
- return (match ? decodeURIComponent(match[3]) : null);
2335
- },
2668
+ document.cookie = cookie.join('; ');
2669
+ },
2336
2670
 
2337
- remove(name) {
2338
- this.write(name, '', Date.now() - 86400000);
2339
- }
2340
- }
2671
+ read: function read(name) {
2672
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2673
+ return (match ? decodeURIComponent(match[3]) : null);
2674
+ },
2341
2675
 
2342
- :
2676
+ remove: function remove(name) {
2677
+ this.write(name, '', Date.now() - 86400000);
2678
+ }
2679
+ };
2680
+ })() :
2343
2681
 
2344
- // Non-standard browser env (web workers, react-native) lack needed support.
2345
- {
2346
- write() {},
2347
- read() {
2348
- return null;
2349
- },
2350
- remove() {}
2351
- };
2682
+ // Non standard browser env (web workers, react-native) lack needed support.
2683
+ (function nonStandardBrowserEnv() {
2684
+ return {
2685
+ write: function write() {},
2686
+ read: function read() { return null; },
2687
+ remove: function remove() {}
2688
+ };
2689
+ })();
2352
2690
 
2353
2691
  /**
2354
2692
  * Determines whether the specified URL is absolute
@@ -2395,7 +2733,7 @@ function buildFullPath(baseURL, requestedURL) {
2395
2733
  return requestedURL;
2396
2734
  }
2397
2735
 
2398
- const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2736
+ const isURLSameOrigin = platform.isStandardBrowserEnv ?
2399
2737
 
2400
2738
  // Standard browser envs have full support of the APIs needed to test
2401
2739
  // whether the request URL is of the same origin as current location.
@@ -2405,7 +2743,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2405
2743
  let originURL;
2406
2744
 
2407
2745
  /**
2408
- * Parse a URL to discover its components
2746
+ * Parse a URL to discover it's components
2409
2747
  *
2410
2748
  * @param {String} url The URL to be parsed
2411
2749
  * @returns {Object}
@@ -2445,7 +2783,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2445
2783
  * @returns {boolean} True if URL shares the same origin, otherwise false
2446
2784
  */
2447
2785
  return function isURLSameOrigin(requestURL) {
2448
- const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2786
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2449
2787
  return (parsed.protocol === originURL.protocol &&
2450
2788
  parsed.host === originURL.host);
2451
2789
  };
@@ -2550,7 +2888,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2550
2888
  return new Promise(function dispatchXhrRequest(resolve, reject) {
2551
2889
  let requestData = config.data;
2552
2890
  const requestHeaders = AxiosHeaders.from(config.headers).normalize();
2553
- let {responseType, withXSRFToken} = config;
2891
+ const responseType = config.responseType;
2554
2892
  let onCanceled;
2555
2893
  function done() {
2556
2894
  if (config.cancelToken) {
@@ -2564,13 +2902,14 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2564
2902
 
2565
2903
  let contentType;
2566
2904
 
2567
- if (utils$1.isFormData(requestData)) {
2568
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2905
+ if (utils.isFormData(requestData)) {
2906
+ if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {
2569
2907
  requestHeaders.setContentType(false); // Let the browser set it
2570
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
2908
+ } else if(!requestHeaders.getContentType(/^\s*multipart\/form-data/)){
2909
+ requestHeaders.setContentType('multipart/form-data'); // mobile/desktop app frameworks
2910
+ } else if(utils.isString(contentType = requestHeaders.getContentType())){
2571
2911
  // fix semicolon duplication issue for ReactNative FormData implementation
2572
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
2573
- requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
2912
+ requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, '$1'));
2574
2913
  }
2575
2914
  }
2576
2915
 
@@ -2686,16 +3025,13 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2686
3025
  // Add xsrf header
2687
3026
  // This is only done if running in a standard browser environment.
2688
3027
  // Specifically not if we're in a web worker, or react-native.
2689
- if(platform.hasStandardBrowserEnv) {
2690
- withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
2691
-
2692
- if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {
2693
- // Add xsrf header
2694
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
3028
+ if (platform.isStandardBrowserEnv) {
3029
+ // Add xsrf header
3030
+ const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
3031
+ && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
2695
3032
 
2696
- if (xsrfValue) {
2697
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2698
- }
3033
+ if (xsrfValue) {
3034
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2699
3035
  }
2700
3036
  }
2701
3037
 
@@ -2704,13 +3040,13 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2704
3040
 
2705
3041
  // Add headers to the request
2706
3042
  if ('setRequestHeader' in request) {
2707
- utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
3043
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2708
3044
  request.setRequestHeader(key, val);
2709
3045
  });
2710
3046
  }
2711
3047
 
2712
3048
  // Add withCredentials to request if needed
2713
- if (!utils$1.isUndefined(config.withCredentials)) {
3049
+ if (!utils.isUndefined(config.withCredentials)) {
2714
3050
  request.withCredentials = !!config.withCredentials;
2715
3051
  }
2716
3052
 
@@ -2765,7 +3101,7 @@ const knownAdapters = {
2765
3101
  xhr: xhrAdapter
2766
3102
  };
2767
3103
 
2768
- utils$1.forEach(knownAdapters, (fn, value) => {
3104
+ utils.forEach(knownAdapters, (fn, value) => {
2769
3105
  if (fn) {
2770
3106
  try {
2771
3107
  Object.defineProperty(fn, 'name', {value});
@@ -2778,11 +3114,11 @@ utils$1.forEach(knownAdapters, (fn, value) => {
2778
3114
 
2779
3115
  const renderReason = (reason) => `- ${reason}`;
2780
3116
 
2781
- const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3117
+ const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
2782
3118
 
2783
3119
  const adapters = {
2784
3120
  getAdapter: (adapters) => {
2785
- adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3121
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
2786
3122
 
2787
3123
  const {length} = adapters;
2788
3124
  let nameOrAdapter;
@@ -2923,11 +3259,11 @@ function mergeConfig(config1, config2) {
2923
3259
  const config = {};
2924
3260
 
2925
3261
  function getMergedValue(target, source, caseless) {
2926
- if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
2927
- return utils$1.merge.call({caseless}, target, source);
2928
- } else if (utils$1.isPlainObject(source)) {
2929
- return utils$1.merge({}, source);
2930
- } else if (utils$1.isArray(source)) {
3262
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
3263
+ return utils.merge.call({caseless}, target, source);
3264
+ } else if (utils.isPlainObject(source)) {
3265
+ return utils.merge({}, source);
3266
+ } else if (utils.isArray(source)) {
2931
3267
  return source.slice();
2932
3268
  }
2933
3269
  return source;
@@ -2935,25 +3271,25 @@ function mergeConfig(config1, config2) {
2935
3271
 
2936
3272
  // eslint-disable-next-line consistent-return
2937
3273
  function mergeDeepProperties(a, b, caseless) {
2938
- if (!utils$1.isUndefined(b)) {
3274
+ if (!utils.isUndefined(b)) {
2939
3275
  return getMergedValue(a, b, caseless);
2940
- } else if (!utils$1.isUndefined(a)) {
3276
+ } else if (!utils.isUndefined(a)) {
2941
3277
  return getMergedValue(undefined, a, caseless);
2942
3278
  }
2943
3279
  }
2944
3280
 
2945
3281
  // eslint-disable-next-line consistent-return
2946
3282
  function valueFromConfig2(a, b) {
2947
- if (!utils$1.isUndefined(b)) {
3283
+ if (!utils.isUndefined(b)) {
2948
3284
  return getMergedValue(undefined, b);
2949
3285
  }
2950
3286
  }
2951
3287
 
2952
3288
  // eslint-disable-next-line consistent-return
2953
3289
  function defaultToConfig2(a, b) {
2954
- if (!utils$1.isUndefined(b)) {
3290
+ if (!utils.isUndefined(b)) {
2955
3291
  return getMergedValue(undefined, b);
2956
- } else if (!utils$1.isUndefined(a)) {
3292
+ } else if (!utils.isUndefined(a)) {
2957
3293
  return getMergedValue(undefined, a);
2958
3294
  }
2959
3295
  }
@@ -2978,7 +3314,6 @@ function mergeConfig(config1, config2) {
2978
3314
  timeout: defaultToConfig2,
2979
3315
  timeoutMessage: defaultToConfig2,
2980
3316
  withCredentials: defaultToConfig2,
2981
- withXSRFToken: defaultToConfig2,
2982
3317
  adapter: defaultToConfig2,
2983
3318
  responseType: defaultToConfig2,
2984
3319
  xsrfCookieName: defaultToConfig2,
@@ -2999,16 +3334,16 @@ function mergeConfig(config1, config2) {
2999
3334
  headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
3000
3335
  };
3001
3336
 
3002
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
3337
+ utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
3003
3338
  const merge = mergeMap[prop] || mergeDeepProperties;
3004
3339
  const configValue = merge(config1[prop], config2[prop], prop);
3005
- (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
3340
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
3006
3341
  });
3007
3342
 
3008
3343
  return config;
3009
3344
  }
3010
3345
 
3011
- const VERSION = "1.6.2";
3346
+ const VERSION = "1.5.1";
3012
3347
 
3013
3348
  const validators$1 = {};
3014
3349
 
@@ -3146,7 +3481,7 @@ class Axios {
3146
3481
  }
3147
3482
 
3148
3483
  if (paramsSerializer != null) {
3149
- if (utils$1.isFunction(paramsSerializer)) {
3484
+ if (utils.isFunction(paramsSerializer)) {
3150
3485
  config.paramsSerializer = {
3151
3486
  serialize: paramsSerializer
3152
3487
  };
@@ -3162,12 +3497,12 @@ class Axios {
3162
3497
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3163
3498
 
3164
3499
  // Flatten headers
3165
- let contextHeaders = headers && utils$1.merge(
3500
+ let contextHeaders = headers && utils.merge(
3166
3501
  headers.common,
3167
3502
  headers[config.method]
3168
3503
  );
3169
3504
 
3170
- headers && utils$1.forEach(
3505
+ headers && utils.forEach(
3171
3506
  ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3172
3507
  (method) => {
3173
3508
  delete headers[method];
@@ -3254,7 +3589,7 @@ class Axios {
3254
3589
  }
3255
3590
 
3256
3591
  // Provide aliases for supported request methods
3257
- utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3592
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3258
3593
  /*eslint func-names:0*/
3259
3594
  Axios.prototype[method] = function(url, config) {
3260
3595
  return this.request(mergeConfig(config || {}, {
@@ -3265,7 +3600,7 @@ utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoDa
3265
3600
  };
3266
3601
  });
3267
3602
 
3268
- utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3603
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3269
3604
  /*eslint func-names:0*/
3270
3605
 
3271
3606
  function generateHTTPMethod(isForm) {
@@ -3437,7 +3772,7 @@ function spread(callback) {
3437
3772
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3438
3773
  */
3439
3774
  function isAxiosError(payload) {
3440
- return utils$1.isObject(payload) && (payload.isAxiosError === true);
3775
+ return utils.isObject(payload) && (payload.isAxiosError === true);
3441
3776
  }
3442
3777
 
3443
3778
  const HttpStatusCode = {
@@ -3522,10 +3857,10 @@ function createInstance(defaultConfig) {
3522
3857
  const instance = bind(Axios.prototype.request, context);
3523
3858
 
3524
3859
  // Copy axios.prototype to instance
3525
- utils$1.extend(instance, Axios.prototype, context, {allOwnKeys: true});
3860
+ utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});
3526
3861
 
3527
3862
  // Copy context to instance
3528
- utils$1.extend(instance, context, null, {allOwnKeys: true});
3863
+ utils.extend(instance, context, null, {allOwnKeys: true});
3529
3864
 
3530
3865
  // Factory for creating new instances
3531
3866
  instance.create = function create(instanceConfig) {
@@ -3569,7 +3904,7 @@ axios.mergeConfig = mergeConfig;
3569
3904
 
3570
3905
  axios.AxiosHeaders = AxiosHeaders;
3571
3906
 
3572
- axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
3907
+ axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
3573
3908
 
3574
3909
  axios.getAdapter = adapters.getAdapter;
3575
3910
 
@@ -3655,7 +3990,7 @@ var requestLogger = function (r) {
3655
3990
  * .setSessionType('signing')
3656
3991
  * .logRequests(true)
3657
3992
  * .setClientID('1234)
3658
- * .setTimeout(30000);
3993
+ * .setTimeout(5000);
3659
3994
  * ```
3660
3995
  */
3661
3996
  var VerdocsEndpoint = /** @class */ (function () {
@@ -3670,9 +4005,8 @@ var VerdocsEndpoint = /** @class */ (function () {
3670
4005
  function VerdocsEndpoint(options) {
3671
4006
  this.environment = 'verdocs';
3672
4007
  this.sessionType = 'user';
3673
- this.baseURL = (window.location.origin === 'https://beta.verdocs.com'
3674
- ? 'https://stage-api.verdocs.com'
3675
- : 'https://api.verdocs.com');
4008
+ this.baseURL = 'https://api.verdocs.com';
4009
+ this.baseURLv2 = 'https://api-v2.verdocs.com';
3676
4010
  this.clientID = 'not-set';
3677
4011
  this.timeout = 60000;
3678
4012
  this.token = null;
@@ -3685,12 +4019,21 @@ var VerdocsEndpoint = /** @class */ (function () {
3685
4019
  * with Envelopes.
3686
4020
  */
3687
4021
  this.session = null;
3688
- this.baseURL = (options === null || options === void 0 ? void 0 : options.baseURL) || this.baseURL;
3689
- this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || this.timeout;
3690
- this.environment = (options === null || options === void 0 ? void 0 : options.environment) || this.environment;
3691
- this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || this.sessionType;
3692
- this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || this.clientID;
4022
+ this.baseURL = (options === null || options === void 0 ? void 0 : options.baseURL) || 'https://api.verdocs.com';
4023
+ this.baseURLv2 = (options === null || options === void 0 ? void 0 : options.baseURLv2) || 'https://api-v2.verdocs.com';
4024
+ this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || 60000;
4025
+ this.environment = (options === null || options === void 0 ? void 0 : options.environment) || 'verdocs';
4026
+ this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || 'user';
4027
+ this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || 'not-set';
3693
4028
  this.api = axios.create({ baseURL: this.baseURL, timeout: this.timeout });
4029
+ // We set the default retries to zero because we only actually want this feature on certain calls for now
4030
+ axiosRetry(this.api, {
4031
+ retries: 0,
4032
+ retryDelay: axiosRetry.exponentialDelay,
4033
+ onRetry: function (retryCount, error, requestConfig) {
4034
+ window.console.debug("[JS_SDK] Retrying request (".concat(retryCount, ")"), error.message, requestConfig.url);
4035
+ },
4036
+ });
3694
4037
  }
3695
4038
  VerdocsEndpoint.prototype.setDefault = function () {
3696
4039
  globalThis_1[ENDPOINT_KEY] = this;
@@ -3698,7 +4041,7 @@ var VerdocsEndpoint = /** @class */ (function () {
3698
4041
  VerdocsEndpoint.getDefault = function () {
3699
4042
  if (!globalThis_1[ENDPOINT_KEY]) {
3700
4043
  globalThis_1[ENDPOINT_KEY] = new VerdocsEndpoint();
3701
- window.console.debug('[JS_SDK] Created default endpoint', globalThis_1[ENDPOINT_KEY].baseURL);
4044
+ window.console.debug('[JS_SDK] Created default endpoint', globalThis_1[ENDPOINT_KEY]);
3702
4045
  }
3703
4046
  return globalThis_1[ENDPOINT_KEY];
3704
4047
  };
@@ -3720,6 +4063,13 @@ var VerdocsEndpoint = /** @class */ (function () {
3720
4063
  VerdocsEndpoint.prototype.getBaseURL = function () {
3721
4064
  return this.baseURL;
3722
4065
  };
4066
+ /**
4067
+ * Get the current base URL for the v2 APIs.
4068
+ * This should rarely be anything other than 'https://api-v2.verdocs.com'.
4069
+ */
4070
+ VerdocsEndpoint.prototype.getBaseURLv2 = function () {
4071
+ return this.baseURLv2;
4072
+ };
3723
4073
  /**
3724
4074
  * Get the current client ID, if set.
3725
4075
  */
@@ -3787,6 +4137,21 @@ var VerdocsEndpoint = /** @class */ (function () {
3787
4137
  this.api.defaults.baseURL = url;
3788
4138
  return this;
3789
4139
  };
4140
+ /**
4141
+ * Set the base URL for API calls. Should be called only upon direction from Verdocs Customer Solutions Engineering.
4142
+ *
4143
+ * ```typescript
4144
+ * import {VerdocsEndpoint} from '@verdocs/js-sdk/HTTP';
4145
+ *
4146
+ * const endpoint = new VerdocsEndpoint();
4147
+ * endpoint.setBaseURL('https://api.verdocs.com');
4148
+ * ```
4149
+ */
4150
+ VerdocsEndpoint.prototype.setBaseURLv2 = function (url) {
4151
+ this.baseURLv2 = url;
4152
+ // NOTE: We do not set this on the Axios instance because v1 is still the standard.
4153
+ return this;
4154
+ };
3790
4155
  /**
3791
4156
  * Set the Client ID for Verdocs API calls.
3792
4157
  *
@@ -3945,4 +4310,4 @@ var VerdocsEndpoint = /** @class */ (function () {
3945
4310
  return VerdocsEndpoint;
3946
4311
  }());
3947
4312
 
3948
- export { TemplateActions as T, VerdocsEndpoint as V, createTemplatev2 as a, TemplateSenderTypes as b, canPerformTemplateAction as c, deleteTemplate as d, getTemplate as g, listTemplates as l, updateTemplate as u };
4313
+ export { TemplateActions as T, VerdocsEndpoint as V, createTemplate as a, TemplateSenderTypes as b, canPerformTemplateAction as c, deleteTemplate as d, getTemplate as e, getTemplates as g, listTemplates as l, updateTemplate as u };