@openfilz-sdk/typescript-ee 1.8.0 → 1.8.2

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 (198) hide show
  1. package/.openapi-generator/FILES +45 -4
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +46 -13
  4. package/api/aisettings-api.ts +77 -0
  5. package/api/esign-api.ts +719 -0
  6. package/api/esign-enterprise-api.ts +286 -0
  7. package/api/{digital-signature-public-api.ts → esign-public-api.ts} +183 -24
  8. package/api/{digital-signature-api.ts → esign-templates-api.ts} +137 -113
  9. package/api.ts +4 -2
  10. package/dist/api/aisettings-api.d.ts +34 -0
  11. package/dist/api/aisettings-api.js +70 -0
  12. package/dist/api/esign-api.d.ts +334 -0
  13. package/dist/api/esign-api.js +693 -0
  14. package/dist/api/esign-enterprise-api.d.ts +138 -0
  15. package/dist/api/esign-enterprise-api.js +278 -0
  16. package/dist/{esm/api/digital-signature-public-api.d.ts → api/esign-public-api.d.ts} +81 -12
  17. package/dist/api/{digital-signature-public-api.js → esign-public-api.js} +178 -29
  18. package/dist/api/esign-templates-api.d.ts +234 -0
  19. package/dist/api/{digital-signature-api.js → esign-templates-api.js} +137 -115
  20. package/dist/api.d.ts +4 -2
  21. package/dist/api.js +4 -2
  22. package/dist/esm/api/aisettings-api.d.ts +34 -0
  23. package/dist/esm/api/aisettings-api.js +70 -0
  24. package/dist/esm/api/esign-api.d.ts +334 -0
  25. package/dist/esm/api/esign-api.js +686 -0
  26. package/dist/esm/api/esign-enterprise-api.d.ts +138 -0
  27. package/dist/esm/api/esign-enterprise-api.js +271 -0
  28. package/dist/{api/digital-signature-public-api.d.ts → esm/api/esign-public-api.d.ts} +81 -12
  29. package/dist/esm/api/{digital-signature-public-api.js → esign-public-api.js} +173 -24
  30. package/dist/esm/api/esign-templates-api.d.ts +234 -0
  31. package/dist/esm/api/{digital-signature-api.js → esign-templates-api.js} +132 -110
  32. package/dist/esm/api.d.ts +4 -2
  33. package/dist/esm/api.js +4 -2
  34. package/dist/esm/models/ai-models-response.d.ts +41 -0
  35. package/dist/esm/models/ai-models-response.js +23 -0
  36. package/dist/esm/models/apply-signature-request.d.ts +3 -0
  37. package/dist/esm/models/bulk-row-result.d.ts +17 -0
  38. package/dist/esm/models/bulk-row-result.js +14 -0
  39. package/dist/esm/models/bulk-row.d.ts +19 -0
  40. package/dist/esm/models/bulk-row.js +14 -0
  41. package/dist/esm/models/bulk-send-request.d.ts +19 -0
  42. package/dist/esm/models/bulk-send-request.js +14 -0
  43. package/dist/esm/models/bulk-send-response.d.ts +18 -0
  44. package/dist/esm/models/bulk-send-response.js +14 -0
  45. package/dist/esm/models/create-signature-envelope-request.d.ts +5 -0
  46. package/dist/esm/models/embed-url-response.d.ts +16 -0
  47. package/dist/esm/models/embed-url-response.js +14 -0
  48. package/dist/esm/models/enriched-audit-log.d.ts +3 -0
  49. package/dist/esm/models/enriched-audit-log.js +3 -0
  50. package/dist/esm/models/index.d.ts +18 -0
  51. package/dist/esm/models/index.js +18 -0
  52. package/dist/esm/models/instantiate-template-request.d.ts +22 -0
  53. package/dist/esm/models/instantiate-template-request.js +14 -0
  54. package/dist/esm/models/list-ai-models-request.d.ts +32 -0
  55. package/dist/esm/models/list-ai-models-request.js +19 -0
  56. package/dist/esm/models/public-signature-view.d.ts +13 -0
  57. package/dist/esm/models/public-signature-view.js +5 -0
  58. package/dist/esm/models/role-binding.d.ts +19 -0
  59. package/dist/esm/models/role-binding.js +14 -0
  60. package/dist/esm/models/search-by-audit-log-request.d.ts +3 -0
  61. package/dist/esm/models/search-by-audit-log-request.js +3 -0
  62. package/dist/esm/models/settings.d.ts +3 -0
  63. package/dist/esm/models/signature-envelope-dto.d.ts +6 -0
  64. package/dist/esm/models/signature-event-dto.d.ts +33 -0
  65. package/dist/esm/models/signature-event-dto.js +26 -0
  66. package/dist/esm/models/signature-field-dto.d.ts +44 -0
  67. package/dist/esm/models/signature-field-dto.js +27 -0
  68. package/dist/esm/models/signature-field-input.d.ts +39 -0
  69. package/dist/esm/models/signature-field-input.js +27 -0
  70. package/dist/esm/models/signature-field-value.d.ts +16 -0
  71. package/dist/esm/models/signature-field-value.js +14 -0
  72. package/dist/esm/models/signature-recipient-dto.d.ts +16 -0
  73. package/dist/esm/models/signature-recipient-dto.js +9 -0
  74. package/dist/esm/models/signature-recipient-input.d.ts +19 -1
  75. package/dist/esm/models/signature-recipient-input.js +9 -1
  76. package/dist/esm/models/signature-template-dto.d.ts +27 -0
  77. package/dist/esm/models/signature-template-dto.js +14 -0
  78. package/dist/esm/models/signature-template-field.d.ts +40 -0
  79. package/dist/esm/models/signature-template-field.js +27 -0
  80. package/dist/esm/models/signature-template-request.d.ts +23 -0
  81. package/dist/esm/models/signature-template-request.js +14 -0
  82. package/dist/esm/models/signature-template-role.d.ts +28 -0
  83. package/dist/esm/models/signature-template-role.js +22 -0
  84. package/dist/esm/models/verify-otp-request.d.ts +14 -0
  85. package/dist/esm/models/verify-otp-request.js +14 -0
  86. package/dist/models/ai-models-response.d.ts +41 -0
  87. package/dist/models/ai-models-response.js +26 -0
  88. package/dist/models/apply-signature-request.d.ts +3 -0
  89. package/dist/models/bulk-row-result.d.ts +17 -0
  90. package/dist/models/bulk-row-result.js +15 -0
  91. package/dist/models/bulk-row.d.ts +19 -0
  92. package/dist/models/bulk-row.js +15 -0
  93. package/dist/models/bulk-send-request.d.ts +19 -0
  94. package/dist/models/bulk-send-request.js +15 -0
  95. package/dist/models/bulk-send-response.d.ts +18 -0
  96. package/dist/models/bulk-send-response.js +15 -0
  97. package/dist/models/create-signature-envelope-request.d.ts +5 -0
  98. package/dist/models/embed-url-response.d.ts +16 -0
  99. package/dist/models/embed-url-response.js +15 -0
  100. package/dist/models/enriched-audit-log.d.ts +3 -0
  101. package/dist/models/enriched-audit-log.js +3 -0
  102. package/dist/models/index.d.ts +18 -0
  103. package/dist/models/index.js +18 -0
  104. package/dist/models/instantiate-template-request.d.ts +22 -0
  105. package/dist/models/instantiate-template-request.js +15 -0
  106. package/dist/models/list-ai-models-request.d.ts +32 -0
  107. package/dist/models/list-ai-models-request.js +22 -0
  108. package/dist/models/public-signature-view.d.ts +13 -0
  109. package/dist/models/public-signature-view.js +6 -1
  110. package/dist/models/role-binding.d.ts +19 -0
  111. package/dist/models/role-binding.js +15 -0
  112. package/dist/models/search-by-audit-log-request.d.ts +3 -0
  113. package/dist/models/search-by-audit-log-request.js +3 -0
  114. package/dist/models/settings.d.ts +3 -0
  115. package/dist/models/signature-envelope-dto.d.ts +6 -0
  116. package/dist/models/signature-event-dto.d.ts +33 -0
  117. package/dist/models/signature-event-dto.js +29 -0
  118. package/dist/models/signature-field-dto.d.ts +44 -0
  119. package/dist/models/signature-field-dto.js +30 -0
  120. package/dist/models/signature-field-input.d.ts +39 -0
  121. package/dist/models/signature-field-input.js +30 -0
  122. package/dist/models/signature-field-value.d.ts +16 -0
  123. package/dist/models/signature-field-value.js +15 -0
  124. package/dist/models/signature-recipient-dto.d.ts +16 -0
  125. package/dist/models/signature-recipient-dto.js +10 -1
  126. package/dist/models/signature-recipient-input.d.ts +19 -1
  127. package/dist/models/signature-recipient-input.js +10 -0
  128. package/dist/models/signature-template-dto.d.ts +27 -0
  129. package/dist/models/signature-template-dto.js +15 -0
  130. package/dist/models/signature-template-field.d.ts +40 -0
  131. package/dist/models/signature-template-field.js +30 -0
  132. package/dist/models/signature-template-request.d.ts +23 -0
  133. package/dist/models/signature-template-request.js +15 -0
  134. package/dist/models/signature-template-role.d.ts +28 -0
  135. package/dist/models/signature-template-role.js +25 -0
  136. package/dist/models/verify-otp-request.d.ts +14 -0
  137. package/dist/models/verify-otp-request.js +15 -0
  138. package/docs/AISettingsApi.md +53 -0
  139. package/docs/AiModelsResponse.md +26 -0
  140. package/docs/ApplySignatureRequest.md +4 -0
  141. package/docs/BulkRow.md +28 -0
  142. package/docs/BulkRowResult.md +26 -0
  143. package/docs/BulkSendRequest.md +28 -0
  144. package/docs/BulkSendResponse.md +26 -0
  145. package/docs/CreateSignatureEnvelopeRequest.md +10 -0
  146. package/docs/ESignApi.md +463 -0
  147. package/docs/ESignEnterpriseApi.md +164 -0
  148. package/docs/{DigitalSignaturePublicApi.md → ESignPublicApi.md} +118 -12
  149. package/docs/{DigitalSignatureApi.md → ESignTemplatesApi.md} +76 -61
  150. package/docs/EmbedUrlResponse.md +24 -0
  151. package/docs/InstantiateTemplateRequest.md +34 -0
  152. package/docs/ListAiModelsRequest.md +24 -0
  153. package/docs/PublicSignatureView.md +12 -0
  154. package/docs/RoleBinding.md +30 -0
  155. package/docs/Settings.md +6 -0
  156. package/docs/SignatureEnvelopeDTO.md +12 -0
  157. package/docs/SignatureEventDTO.md +30 -0
  158. package/docs/SignatureFieldDTO.md +46 -0
  159. package/docs/SignatureFieldInput.md +36 -0
  160. package/docs/SignatureFieldValue.md +24 -0
  161. package/docs/SignatureRecipientDTO.md +8 -0
  162. package/docs/SignatureRecipientInput.md +13 -1
  163. package/docs/SignatureTemplateDTO.md +42 -0
  164. package/docs/SignatureTemplateField.md +38 -0
  165. package/docs/SignatureTemplateRequest.md +34 -0
  166. package/docs/SignatureTemplateRole.md +26 -0
  167. package/docs/VerifyOtpRequest.md +20 -0
  168. package/models/ai-models-response.ts +51 -0
  169. package/models/apply-signature-request.ts +5 -0
  170. package/models/bulk-row-result.ts +23 -0
  171. package/models/bulk-row.ts +27 -0
  172. package/models/bulk-send-request.ts +27 -0
  173. package/models/bulk-send-response.ts +26 -0
  174. package/models/create-signature-envelope-request.ts +5 -0
  175. package/models/embed-url-response.ts +22 -0
  176. package/models/enriched-audit-log.ts +3 -0
  177. package/models/index.ts +18 -0
  178. package/models/instantiate-template-request.ts +30 -0
  179. package/models/list-ai-models-request.ts +41 -0
  180. package/models/public-signature-view.ts +16 -0
  181. package/models/role-binding.ts +25 -0
  182. package/models/search-by-audit-log-request.ts +3 -0
  183. package/models/settings.ts +3 -0
  184. package/models/signature-envelope-dto.ts +6 -0
  185. package/models/signature-event-dto.ts +42 -0
  186. package/models/signature-field-dto.ts +51 -0
  187. package/models/signature-field-input.ts +46 -0
  188. package/models/signature-field-value.ts +22 -0
  189. package/models/signature-recipient-dto.ts +20 -0
  190. package/models/signature-recipient-input.ts +25 -1
  191. package/models/signature-template-dto.ts +37 -0
  192. package/models/signature-template-field.ts +47 -0
  193. package/models/signature-template-request.ts +33 -0
  194. package/models/signature-template-role.ts +38 -0
  195. package/models/verify-otp-request.ts +20 -0
  196. package/package.json +1 -1
  197. package/dist/api/digital-signature-api.d.ts +0 -221
  198. package/dist/esm/api/digital-signature-api.d.ts +0 -221
@@ -0,0 +1,686 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * ESignApi - axios parameter creator
31
+ */
32
+ export const ESignApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Cancel a non-terminal envelope
37
+ * @param {string} id
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ cancel: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
42
+ // verify required parameter 'id' is not null or undefined
43
+ assertParamExists('cancel', 'id', id);
44
+ const localVarPath = `/api/v1/signatures/{id}/cancel`
45
+ .replace('{id}', encodeURIComponent(String(id)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ *
69
+ * @summary Create an envelope (sent immediately unless send=false)
70
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ create: (createSignatureEnvelopeRequest_1, ...args_1) => __awaiter(this, [createSignatureEnvelopeRequest_1, ...args_1], void 0, function* (createSignatureEnvelopeRequest, options = {}) {
75
+ // verify required parameter 'createSignatureEnvelopeRequest' is not null or undefined
76
+ assertParamExists('create', 'createSignatureEnvelopeRequest', createSignatureEnvelopeRequest);
77
+ const localVarPath = `/api/v1/signatures`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication keycloak_auth required
88
+ // http bearer authentication required
89
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
+ localVarHeaderParameter['Content-Type'] = 'application/json';
91
+ localVarHeaderParameter['Accept'] = 'application/json';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ localVarRequestOptions.data = serializeDataIfNeeded(createSignatureEnvelopeRequest, localVarRequestOptions, configuration);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ *
103
+ * @summary Audit trail of one of my envelopes
104
+ * @param {string} id
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ events: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
109
+ // verify required parameter 'id' is not null or undefined
110
+ assertParamExists('events', 'id', id);
111
+ const localVarPath = `/api/v1/signatures/{id}/events`
112
+ .replace('{id}', encodeURIComponent(String(id)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
120
+ const localVarHeaderParameter = {};
121
+ const localVarQueryParameter = {};
122
+ // authentication keycloak_auth required
123
+ // http bearer authentication required
124
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
125
+ localVarHeaderParameter['Accept'] = 'application/json';
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ }),
134
+ /**
135
+ *
136
+ * @summary Get one of my envelopes (recipients + fields)
137
+ * @param {string} id
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ get2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
142
+ // verify required parameter 'id' is not null or undefined
143
+ assertParamExists('get2', 'id', id);
144
+ const localVarPath = `/api/v1/signatures/{id}`
145
+ .replace('{id}', encodeURIComponent(String(id)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ }
152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
153
+ const localVarHeaderParameter = {};
154
+ const localVarQueryParameter = {};
155
+ // authentication keycloak_auth required
156
+ // http bearer authentication required
157
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
158
+ localVarHeaderParameter['Accept'] = 'application/json';
159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
161
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ }),
167
+ /**
168
+ *
169
+ * @summary List envelopes I sent for signature
170
+ * @param {ListSentStatusEnum} [status]
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ listSent: (status_1, ...args_1) => __awaiter(this, [status_1, ...args_1], void 0, function* (status, options = {}) {
175
+ const localVarPath = `/api/v1/signatures`;
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
183
+ const localVarHeaderParameter = {};
184
+ const localVarQueryParameter = {};
185
+ // authentication keycloak_auth required
186
+ // http bearer authentication required
187
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
188
+ if (status !== undefined) {
189
+ localVarQueryParameter['status'] = status;
190
+ }
191
+ localVarHeaderParameter['Accept'] = 'application/json';
192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
195
+ return {
196
+ url: toPathString(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ };
199
+ }),
200
+ /**
201
+ *
202
+ * @summary List envelopes waiting for my signature
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ listToSign: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
207
+ const localVarPath = `/api/v1/signatures/to-sign`;
208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
209
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
210
+ let baseOptions;
211
+ if (configuration) {
212
+ baseOptions = configuration.baseOptions;
213
+ }
214
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
215
+ const localVarHeaderParameter = {};
216
+ const localVarQueryParameter = {};
217
+ // authentication keycloak_auth required
218
+ // http bearer authentication required
219
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
220
+ localVarHeaderParameter['Accept'] = 'application/json';
221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
224
+ return {
225
+ url: toPathString(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ }),
229
+ /**
230
+ *
231
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
232
+ * @param {string} id
233
+ * @param {string} recipientId
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ resend: (id_1, recipientId_1, ...args_1) => __awaiter(this, [id_1, recipientId_1, ...args_1], void 0, function* (id, recipientId, options = {}) {
238
+ // verify required parameter 'id' is not null or undefined
239
+ assertParamExists('resend', 'id', id);
240
+ // verify required parameter 'recipientId' is not null or undefined
241
+ assertParamExists('resend', 'recipientId', recipientId);
242
+ const localVarPath = `/api/v1/signatures/{id}/recipients/{recipientId}/resend`
243
+ .replace('{id}', encodeURIComponent(String(id)))
244
+ .replace('{recipientId}', encodeURIComponent(String(recipientId)));
245
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
247
+ let baseOptions;
248
+ if (configuration) {
249
+ baseOptions = configuration.baseOptions;
250
+ }
251
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
252
+ const localVarHeaderParameter = {};
253
+ const localVarQueryParameter = {};
254
+ // authentication keycloak_auth required
255
+ // http bearer authentication required
256
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
257
+ localVarHeaderParameter['Accept'] = 'application/json';
258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
261
+ return {
262
+ url: toPathString(localVarUrlObj),
263
+ options: localVarRequestOptions,
264
+ };
265
+ }),
266
+ /**
267
+ *
268
+ * @summary Send a DRAFT envelope
269
+ * @param {string} id
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ send: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
274
+ // verify required parameter 'id' is not null or undefined
275
+ assertParamExists('send', 'id', id);
276
+ const localVarPath = `/api/v1/signatures/{id}/send`
277
+ .replace('{id}', encodeURIComponent(String(id)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ // authentication keycloak_auth required
288
+ // http bearer authentication required
289
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
290
+ localVarHeaderParameter['Accept'] = 'application/json';
291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
+ return {
295
+ url: toPathString(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ };
298
+ }),
299
+ /**
300
+ *
301
+ * @summary Download the sealed PDF of a completed envelope
302
+ * @param {string} id
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ signedDocument: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
307
+ // verify required parameter 'id' is not null or undefined
308
+ assertParamExists('signedDocument', 'id', id);
309
+ const localVarPath = `/api/v1/signatures/{id}/signed-document`
310
+ .replace('{id}', encodeURIComponent(String(id)));
311
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
312
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
313
+ let baseOptions;
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ }
317
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
318
+ const localVarHeaderParameter = {};
319
+ const localVarQueryParameter = {};
320
+ // authentication keycloak_auth required
321
+ // http bearer authentication required
322
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
323
+ localVarHeaderParameter['Accept'] = 'application/pdf';
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
+ return {
328
+ url: toPathString(localVarUrlObj),
329
+ options: localVarRequestOptions,
330
+ };
331
+ }),
332
+ };
333
+ };
334
+ /**
335
+ * ESignApi - functional programming interface
336
+ */
337
+ export const ESignApiFp = function (configuration) {
338
+ const localVarAxiosParamCreator = ESignApiAxiosParamCreator(configuration);
339
+ return {
340
+ /**
341
+ *
342
+ * @summary Cancel a non-terminal envelope
343
+ * @param {string} id
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ cancel(id, options) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ var _a, _b, _c;
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(id, options);
351
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
352
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
354
+ });
355
+ },
356
+ /**
357
+ *
358
+ * @summary Create an envelope (sent immediately unless send=false)
359
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ create(createSignatureEnvelopeRequest, options) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ var _a, _b, _c;
366
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create(createSignatureEnvelopeRequest, options);
367
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
368
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
369
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
370
+ });
371
+ },
372
+ /**
373
+ *
374
+ * @summary Audit trail of one of my envelopes
375
+ * @param {string} id
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ events(id, options) {
380
+ return __awaiter(this, void 0, void 0, function* () {
381
+ var _a, _b, _c;
382
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.events(id, options);
383
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
384
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.events']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
385
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
386
+ });
387
+ },
388
+ /**
389
+ *
390
+ * @summary Get one of my envelopes (recipients + fields)
391
+ * @param {string} id
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ get2(id, options) {
396
+ return __awaiter(this, void 0, void 0, function* () {
397
+ var _a, _b, _c;
398
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(id, options);
399
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
400
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
401
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
402
+ });
403
+ },
404
+ /**
405
+ *
406
+ * @summary List envelopes I sent for signature
407
+ * @param {ListSentStatusEnum} [status]
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ listSent(status, options) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ var _a, _b, _c;
414
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSent(status, options);
415
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
416
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.listSent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
417
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
418
+ });
419
+ },
420
+ /**
421
+ *
422
+ * @summary List envelopes waiting for my signature
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ listToSign(options) {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ var _a, _b, _c;
429
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listToSign(options);
430
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
431
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.listToSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
432
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
433
+ });
434
+ },
435
+ /**
436
+ *
437
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
438
+ * @param {string} id
439
+ * @param {string} recipientId
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ resend(id, recipientId, options) {
444
+ return __awaiter(this, void 0, void 0, function* () {
445
+ var _a, _b, _c;
446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resend(id, recipientId, options);
447
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
448
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.resend']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
449
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
450
+ });
451
+ },
452
+ /**
453
+ *
454
+ * @summary Send a DRAFT envelope
455
+ * @param {string} id
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ send(id, options) {
460
+ return __awaiter(this, void 0, void 0, function* () {
461
+ var _a, _b, _c;
462
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.send(id, options);
463
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
464
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.send']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
465
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
466
+ });
467
+ },
468
+ /**
469
+ *
470
+ * @summary Download the sealed PDF of a completed envelope
471
+ * @param {string} id
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ signedDocument(id, options) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ var _a, _b, _c;
478
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signedDocument(id, options);
479
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
480
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.signedDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
481
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
482
+ });
483
+ },
484
+ };
485
+ };
486
+ /**
487
+ * ESignApi - factory interface
488
+ */
489
+ export const ESignApiFactory = function (configuration, basePath, axios) {
490
+ const localVarFp = ESignApiFp(configuration);
491
+ return {
492
+ /**
493
+ *
494
+ * @summary Cancel a non-terminal envelope
495
+ * @param {string} id
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ cancel(id, options) {
500
+ return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
501
+ },
502
+ /**
503
+ *
504
+ * @summary Create an envelope (sent immediately unless send=false)
505
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ create(createSignatureEnvelopeRequest, options) {
510
+ return localVarFp.create(createSignatureEnvelopeRequest, options).then((request) => request(axios, basePath));
511
+ },
512
+ /**
513
+ *
514
+ * @summary Audit trail of one of my envelopes
515
+ * @param {string} id
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ events(id, options) {
520
+ return localVarFp.events(id, options).then((request) => request(axios, basePath));
521
+ },
522
+ /**
523
+ *
524
+ * @summary Get one of my envelopes (recipients + fields)
525
+ * @param {string} id
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ get2(id, options) {
530
+ return localVarFp.get2(id, options).then((request) => request(axios, basePath));
531
+ },
532
+ /**
533
+ *
534
+ * @summary List envelopes I sent for signature
535
+ * @param {ListSentStatusEnum} [status]
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ listSent(status, options) {
540
+ return localVarFp.listSent(status, options).then((request) => request(axios, basePath));
541
+ },
542
+ /**
543
+ *
544
+ * @summary List envelopes waiting for my signature
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ listToSign(options) {
549
+ return localVarFp.listToSign(options).then((request) => request(axios, basePath));
550
+ },
551
+ /**
552
+ *
553
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
554
+ * @param {string} id
555
+ * @param {string} recipientId
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ */
559
+ resend(id, recipientId, options) {
560
+ return localVarFp.resend(id, recipientId, options).then((request) => request(axios, basePath));
561
+ },
562
+ /**
563
+ *
564
+ * @summary Send a DRAFT envelope
565
+ * @param {string} id
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ send(id, options) {
570
+ return localVarFp.send(id, options).then((request) => request(axios, basePath));
571
+ },
572
+ /**
573
+ *
574
+ * @summary Download the sealed PDF of a completed envelope
575
+ * @param {string} id
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ */
579
+ signedDocument(id, options) {
580
+ return localVarFp.signedDocument(id, options).then((request) => request(axios, basePath));
581
+ },
582
+ };
583
+ };
584
+ /**
585
+ * ESignApi - object-oriented interface
586
+ */
587
+ export class ESignApi extends BaseAPI {
588
+ /**
589
+ *
590
+ * @summary Cancel a non-terminal envelope
591
+ * @param {string} id
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ cancel(id, options) {
596
+ return ESignApiFp(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
597
+ }
598
+ /**
599
+ *
600
+ * @summary Create an envelope (sent immediately unless send=false)
601
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ create(createSignatureEnvelopeRequest, options) {
606
+ return ESignApiFp(this.configuration).create(createSignatureEnvelopeRequest, options).then((request) => request(this.axios, this.basePath));
607
+ }
608
+ /**
609
+ *
610
+ * @summary Audit trail of one of my envelopes
611
+ * @param {string} id
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ events(id, options) {
616
+ return ESignApiFp(this.configuration).events(id, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+ /**
619
+ *
620
+ * @summary Get one of my envelopes (recipients + fields)
621
+ * @param {string} id
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ get2(id, options) {
626
+ return ESignApiFp(this.configuration).get2(id, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+ /**
629
+ *
630
+ * @summary List envelopes I sent for signature
631
+ * @param {ListSentStatusEnum} [status]
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ listSent(status, options) {
636
+ return ESignApiFp(this.configuration).listSent(status, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+ /**
639
+ *
640
+ * @summary List envelopes waiting for my signature
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ listToSign(options) {
645
+ return ESignApiFp(this.configuration).listToSign(options).then((request) => request(this.axios, this.basePath));
646
+ }
647
+ /**
648
+ *
649
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
650
+ * @param {string} id
651
+ * @param {string} recipientId
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ resend(id, recipientId, options) {
656
+ return ESignApiFp(this.configuration).resend(id, recipientId, options).then((request) => request(this.axios, this.basePath));
657
+ }
658
+ /**
659
+ *
660
+ * @summary Send a DRAFT envelope
661
+ * @param {string} id
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ send(id, options) {
666
+ return ESignApiFp(this.configuration).send(id, options).then((request) => request(this.axios, this.basePath));
667
+ }
668
+ /**
669
+ *
670
+ * @summary Download the sealed PDF of a completed envelope
671
+ * @param {string} id
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ signedDocument(id, options) {
676
+ return ESignApiFp(this.configuration).signedDocument(id, options).then((request) => request(this.axios, this.basePath));
677
+ }
678
+ }
679
+ export const ListSentStatusEnum = {
680
+ Draft: 'DRAFT',
681
+ Sent: 'SENT',
682
+ Completed: 'COMPLETED',
683
+ Declined: 'DECLINED',
684
+ Cancelled: 'CANCELLED',
685
+ Expired: 'EXPIRED',
686
+ };