@openfilz-sdk/typescript 1.2.27 → 1.2.28

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 (160) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +43 -2
  4. package/api/esign-api.ts +719 -0
  5. package/api/esign-public-api.ts +622 -0
  6. package/api/esign-templates-api.ts +503 -0
  7. package/api.ts +3 -0
  8. package/dist/api/esign-api.d.ts +334 -0
  9. package/dist/api/esign-api.js +693 -0
  10. package/dist/api/esign-public-api.d.ts +282 -0
  11. package/dist/api/esign-public-api.js +595 -0
  12. package/dist/api/esign-templates-api.d.ts +234 -0
  13. package/dist/api/esign-templates-api.js +486 -0
  14. package/dist/api.d.ts +3 -0
  15. package/dist/api.js +3 -0
  16. package/dist/esm/api/esign-api.d.ts +334 -0
  17. package/dist/esm/api/esign-api.js +686 -0
  18. package/dist/esm/api/esign-public-api.d.ts +282 -0
  19. package/dist/esm/api/esign-public-api.js +588 -0
  20. package/dist/esm/api/esign-templates-api.d.ts +234 -0
  21. package/dist/esm/api/esign-templates-api.js +479 -0
  22. package/dist/esm/api.d.ts +3 -0
  23. package/dist/esm/api.js +3 -0
  24. package/dist/esm/models/apply-signature-request.d.ts +18 -0
  25. package/dist/esm/models/apply-signature-request.js +14 -0
  26. package/dist/esm/models/audit-log.d.ts +10 -0
  27. package/dist/esm/models/audit-log.js +10 -0
  28. package/dist/esm/models/create-signature-envelope-request.d.ts +24 -0
  29. package/dist/esm/models/create-signature-envelope-request.js +14 -0
  30. package/dist/esm/models/decline-signature-request.d.ts +14 -0
  31. package/dist/esm/models/decline-signature-request.js +14 -0
  32. package/dist/esm/models/index.d.ts +19 -0
  33. package/dist/esm/models/index.js +19 -0
  34. package/dist/esm/models/instantiate-template-request.d.ts +22 -0
  35. package/dist/esm/models/instantiate-template-request.js +14 -0
  36. package/dist/esm/models/public-signature-view.d.ts +57 -0
  37. package/dist/esm/models/public-signature-view.js +32 -0
  38. package/dist/esm/models/role-binding.d.ts +19 -0
  39. package/dist/esm/models/role-binding.js +14 -0
  40. package/dist/esm/models/search-by-audit-log-request.d.ts +10 -0
  41. package/dist/esm/models/search-by-audit-log-request.js +10 -0
  42. package/dist/esm/models/settings.d.ts +3 -0
  43. package/dist/esm/models/signature-envelope-dto.d.ts +40 -0
  44. package/dist/esm/models/signature-envelope-dto.js +21 -0
  45. package/dist/esm/models/signature-event-dto.d.ts +33 -0
  46. package/dist/esm/models/signature-event-dto.js +26 -0
  47. package/dist/esm/models/signature-field-dto.d.ts +44 -0
  48. package/dist/esm/models/signature-field-dto.js +27 -0
  49. package/dist/esm/models/signature-field-input.d.ts +39 -0
  50. package/dist/esm/models/signature-field-input.js +27 -0
  51. package/dist/esm/models/signature-field-placement.d.ts +18 -0
  52. package/dist/esm/models/signature-field-placement.js +14 -0
  53. package/dist/esm/models/signature-field-value.d.ts +16 -0
  54. package/dist/esm/models/signature-field-value.js +14 -0
  55. package/dist/esm/models/signature-recipient-dto.d.ts +45 -0
  56. package/dist/esm/models/signature-recipient-dto.js +28 -0
  57. package/dist/esm/models/signature-recipient-input.d.ts +36 -0
  58. package/dist/esm/models/signature-recipient-input.js +22 -0
  59. package/dist/esm/models/signature-template-dto.d.ts +27 -0
  60. package/dist/esm/models/signature-template-dto.js +14 -0
  61. package/dist/esm/models/signature-template-field.d.ts +40 -0
  62. package/dist/esm/models/signature-template-field.js +27 -0
  63. package/dist/esm/models/signature-template-request.d.ts +23 -0
  64. package/dist/esm/models/signature-template-request.js +14 -0
  65. package/dist/esm/models/signature-template-role.d.ts +28 -0
  66. package/dist/esm/models/signature-template-role.js +22 -0
  67. package/dist/esm/models/verify-otp-request.d.ts +14 -0
  68. package/dist/esm/models/verify-otp-request.js +14 -0
  69. package/dist/models/apply-signature-request.d.ts +18 -0
  70. package/dist/models/apply-signature-request.js +15 -0
  71. package/dist/models/audit-log.d.ts +10 -0
  72. package/dist/models/audit-log.js +10 -0
  73. package/dist/models/create-signature-envelope-request.d.ts +24 -0
  74. package/dist/models/create-signature-envelope-request.js +15 -0
  75. package/dist/models/decline-signature-request.d.ts +14 -0
  76. package/dist/models/decline-signature-request.js +15 -0
  77. package/dist/models/index.d.ts +19 -0
  78. package/dist/models/index.js +19 -0
  79. package/dist/models/instantiate-template-request.d.ts +22 -0
  80. package/dist/models/instantiate-template-request.js +15 -0
  81. package/dist/models/public-signature-view.d.ts +57 -0
  82. package/dist/models/public-signature-view.js +35 -0
  83. package/dist/models/role-binding.d.ts +19 -0
  84. package/dist/models/role-binding.js +15 -0
  85. package/dist/models/search-by-audit-log-request.d.ts +10 -0
  86. package/dist/models/search-by-audit-log-request.js +10 -0
  87. package/dist/models/settings.d.ts +3 -0
  88. package/dist/models/signature-envelope-dto.d.ts +40 -0
  89. package/dist/models/signature-envelope-dto.js +24 -0
  90. package/dist/models/signature-event-dto.d.ts +33 -0
  91. package/dist/models/signature-event-dto.js +29 -0
  92. package/dist/models/signature-field-dto.d.ts +44 -0
  93. package/dist/models/signature-field-dto.js +30 -0
  94. package/dist/models/signature-field-input.d.ts +39 -0
  95. package/dist/models/signature-field-input.js +30 -0
  96. package/dist/models/signature-field-placement.d.ts +18 -0
  97. package/dist/models/signature-field-placement.js +15 -0
  98. package/dist/models/signature-field-value.d.ts +16 -0
  99. package/dist/models/signature-field-value.js +15 -0
  100. package/dist/models/signature-recipient-dto.d.ts +45 -0
  101. package/dist/models/signature-recipient-dto.js +31 -0
  102. package/dist/models/signature-recipient-input.d.ts +36 -0
  103. package/dist/models/signature-recipient-input.js +25 -0
  104. package/dist/models/signature-template-dto.d.ts +27 -0
  105. package/dist/models/signature-template-dto.js +15 -0
  106. package/dist/models/signature-template-field.d.ts +40 -0
  107. package/dist/models/signature-template-field.js +30 -0
  108. package/dist/models/signature-template-request.d.ts +23 -0
  109. package/dist/models/signature-template-request.js +15 -0
  110. package/dist/models/signature-template-role.d.ts +28 -0
  111. package/dist/models/signature-template-role.js +25 -0
  112. package/dist/models/verify-otp-request.d.ts +14 -0
  113. package/dist/models/verify-otp-request.js +15 -0
  114. package/docs/ApplySignatureRequest.md +26 -0
  115. package/docs/CreateSignatureEnvelopeRequest.md +38 -0
  116. package/docs/DeclineSignatureRequest.md +20 -0
  117. package/docs/ESignApi.md +463 -0
  118. package/docs/ESignPublicApi.md +382 -0
  119. package/docs/ESignTemplatesApi.md +315 -0
  120. package/docs/InstantiateTemplateRequest.md +34 -0
  121. package/docs/PublicSignatureView.md +60 -0
  122. package/docs/RoleBinding.md +30 -0
  123. package/docs/Settings.md +6 -0
  124. package/docs/SignatureEnvelopeDTO.md +52 -0
  125. package/docs/SignatureEventDTO.md +30 -0
  126. package/docs/SignatureFieldDTO.md +46 -0
  127. package/docs/SignatureFieldInput.md +36 -0
  128. package/docs/SignatureFieldPlacement.md +28 -0
  129. package/docs/SignatureFieldValue.md +24 -0
  130. package/docs/SignatureRecipientDTO.md +44 -0
  131. package/docs/SignatureRecipientInput.md +38 -0
  132. package/docs/SignatureTemplateDTO.md +42 -0
  133. package/docs/SignatureTemplateField.md +38 -0
  134. package/docs/SignatureTemplateRequest.md +34 -0
  135. package/docs/SignatureTemplateRole.md +26 -0
  136. package/docs/VerifyOtpRequest.md +20 -0
  137. package/models/apply-signature-request.ts +26 -0
  138. package/models/audit-log.ts +10 -0
  139. package/models/create-signature-envelope-request.ts +32 -0
  140. package/models/decline-signature-request.ts +20 -0
  141. package/models/index.ts +19 -0
  142. package/models/instantiate-template-request.ts +30 -0
  143. package/models/public-signature-view.ts +70 -0
  144. package/models/role-binding.ts +25 -0
  145. package/models/search-by-audit-log-request.ts +10 -0
  146. package/models/settings.ts +3 -0
  147. package/models/signature-envelope-dto.ts +51 -0
  148. package/models/signature-event-dto.ts +42 -0
  149. package/models/signature-field-dto.ts +51 -0
  150. package/models/signature-field-input.ts +46 -0
  151. package/models/signature-field-placement.ts +24 -0
  152. package/models/signature-field-value.ts +22 -0
  153. package/models/signature-recipient-dto.ts +58 -0
  154. package/models/signature-recipient-input.ts +50 -0
  155. package/models/signature-template-dto.ts +37 -0
  156. package/models/signature-template-field.ts +47 -0
  157. package/models/signature-template-request.ts +33 -0
  158. package/models/signature-template-role.ts +38 -0
  159. package/models/verify-otp-request.ts +20 -0
  160. package/package.json +1 -1
@@ -0,0 +1,479 @@
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
+ * ESignTemplatesApi - axios parameter creator
31
+ */
32
+ export const ESignTemplatesApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Delete a template
37
+ * @param {string} id
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ _delete: (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('_delete', 'id', id);
44
+ const localVarPath = `/api/v1/signature-templates/{id}`
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: 'DELETE' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: toPathString(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ /**
67
+ *
68
+ * @summary Create a template
69
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ create1: (signatureTemplateRequest_1, ...args_1) => __awaiter(this, [signatureTemplateRequest_1, ...args_1], void 0, function* (signatureTemplateRequest, options = {}) {
74
+ // verify required parameter 'signatureTemplateRequest' is not null or undefined
75
+ assertParamExists('create1', 'signatureTemplateRequest', signatureTemplateRequest);
76
+ const localVarPath = `/api/v1/signature-templates`;
77
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
78
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
79
+ let baseOptions;
80
+ if (configuration) {
81
+ baseOptions = configuration.baseOptions;
82
+ }
83
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
84
+ const localVarHeaderParameter = {};
85
+ const localVarQueryParameter = {};
86
+ // authentication keycloak_auth required
87
+ // http bearer authentication required
88
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
89
+ localVarHeaderParameter['Content-Type'] = 'application/json';
90
+ localVarHeaderParameter['Accept'] = 'application/json';
91
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
94
+ localVarRequestOptions.data = serializeDataIfNeeded(signatureTemplateRequest, localVarRequestOptions, configuration);
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ }),
100
+ /**
101
+ *
102
+ * @summary Get a template
103
+ * @param {string} id
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ get: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
108
+ // verify required parameter 'id' is not null or undefined
109
+ assertParamExists('get', 'id', id);
110
+ const localVarPath = `/api/v1/signature-templates/{id}`
111
+ .replace('{id}', encodeURIComponent(String(id)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication keycloak_auth required
122
+ // http bearer authentication required
123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
124
+ localVarHeaderParameter['Accept'] = 'application/json';
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ }),
133
+ /**
134
+ *
135
+ * @summary Create (and send) an envelope from a template
136
+ * @param {string} id
137
+ * @param {InstantiateTemplateRequest} instantiateTemplateRequest
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ instantiate: (id_1, instantiateTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, instantiateTemplateRequest_1, ...args_1], void 0, function* (id, instantiateTemplateRequest, options = {}) {
142
+ // verify required parameter 'id' is not null or undefined
143
+ assertParamExists('instantiate', 'id', id);
144
+ // verify required parameter 'instantiateTemplateRequest' is not null or undefined
145
+ assertParamExists('instantiate', 'instantiateTemplateRequest', instantiateTemplateRequest);
146
+ const localVarPath = `/api/v1/signature-templates/{id}/envelopes`
147
+ .replace('{id}', encodeURIComponent(String(id)));
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ }
154
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
155
+ const localVarHeaderParameter = {};
156
+ const localVarQueryParameter = {};
157
+ // authentication keycloak_auth required
158
+ // http bearer authentication required
159
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
160
+ localVarHeaderParameter['Content-Type'] = 'application/json';
161
+ localVarHeaderParameter['Accept'] = 'application/json';
162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
165
+ localVarRequestOptions.data = serializeDataIfNeeded(instantiateTemplateRequest, localVarRequestOptions, configuration);
166
+ return {
167
+ url: toPathString(localVarUrlObj),
168
+ options: localVarRequestOptions,
169
+ };
170
+ }),
171
+ /**
172
+ *
173
+ * @summary List my templates
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ list: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
178
+ const localVarPath = `/api/v1/signature-templates`;
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
186
+ const localVarHeaderParameter = {};
187
+ const localVarQueryParameter = {};
188
+ // authentication keycloak_auth required
189
+ // http bearer authentication required
190
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
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 Update a template
203
+ * @param {string} id
204
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ update: (id_1, signatureTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, signatureTemplateRequest_1, ...args_1], void 0, function* (id, signatureTemplateRequest, options = {}) {
209
+ // verify required parameter 'id' is not null or undefined
210
+ assertParamExists('update', 'id', id);
211
+ // verify required parameter 'signatureTemplateRequest' is not null or undefined
212
+ assertParamExists('update', 'signatureTemplateRequest', signatureTemplateRequest);
213
+ const localVarPath = `/api/v1/signature-templates/{id}`
214
+ .replace('{id}', encodeURIComponent(String(id)));
215
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
216
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
217
+ let baseOptions;
218
+ if (configuration) {
219
+ baseOptions = configuration.baseOptions;
220
+ }
221
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
222
+ const localVarHeaderParameter = {};
223
+ const localVarQueryParameter = {};
224
+ // authentication keycloak_auth required
225
+ // http bearer authentication required
226
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
227
+ localVarHeaderParameter['Content-Type'] = 'application/json';
228
+ localVarHeaderParameter['Accept'] = 'application/json';
229
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
230
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ localVarRequestOptions.data = serializeDataIfNeeded(signatureTemplateRequest, localVarRequestOptions, configuration);
233
+ return {
234
+ url: toPathString(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ };
237
+ }),
238
+ };
239
+ };
240
+ /**
241
+ * ESignTemplatesApi - functional programming interface
242
+ */
243
+ export const ESignTemplatesApiFp = function (configuration) {
244
+ const localVarAxiosParamCreator = ESignTemplatesApiAxiosParamCreator(configuration);
245
+ return {
246
+ /**
247
+ *
248
+ * @summary Delete a template
249
+ * @param {string} id
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ _delete(id, options) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ var _a, _b, _c;
256
+ const localVarAxiosArgs = yield localVarAxiosParamCreator._delete(id, options);
257
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
258
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi._delete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
259
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
260
+ });
261
+ },
262
+ /**
263
+ *
264
+ * @summary Create a template
265
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ create1(signatureTemplateRequest, options) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ var _a, _b, _c;
272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create1(signatureTemplateRequest, options);
273
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.create1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
275
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
276
+ });
277
+ },
278
+ /**
279
+ *
280
+ * @summary Get a template
281
+ * @param {string} id
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ get(id, options) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ var _a, _b, _c;
288
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get(id, options);
289
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
290
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
291
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
292
+ });
293
+ },
294
+ /**
295
+ *
296
+ * @summary Create (and send) an envelope from a template
297
+ * @param {string} id
298
+ * @param {InstantiateTemplateRequest} instantiateTemplateRequest
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ instantiate(id, instantiateTemplateRequest, options) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ var _a, _b, _c;
305
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.instantiate(id, instantiateTemplateRequest, options);
306
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
307
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.instantiate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
308
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
+ });
310
+ },
311
+ /**
312
+ *
313
+ * @summary List my templates
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ list(options) {
318
+ return __awaiter(this, void 0, void 0, function* () {
319
+ var _a, _b, _c;
320
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list(options);
321
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
322
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
324
+ });
325
+ },
326
+ /**
327
+ *
328
+ * @summary Update a template
329
+ * @param {string} id
330
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ update(id, signatureTemplateRequest, options) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ var _a, _b, _c;
337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.update(id, signatureTemplateRequest, options);
338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignTemplatesApi.update']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
341
+ });
342
+ },
343
+ };
344
+ };
345
+ /**
346
+ * ESignTemplatesApi - factory interface
347
+ */
348
+ export const ESignTemplatesApiFactory = function (configuration, basePath, axios) {
349
+ const localVarFp = ESignTemplatesApiFp(configuration);
350
+ return {
351
+ /**
352
+ *
353
+ * @summary Delete a template
354
+ * @param {string} id
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ _delete(id, options) {
359
+ return localVarFp._delete(id, options).then((request) => request(axios, basePath));
360
+ },
361
+ /**
362
+ *
363
+ * @summary Create a template
364
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ create1(signatureTemplateRequest, options) {
369
+ return localVarFp.create1(signatureTemplateRequest, options).then((request) => request(axios, basePath));
370
+ },
371
+ /**
372
+ *
373
+ * @summary Get a template
374
+ * @param {string} id
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ get(id, options) {
379
+ return localVarFp.get(id, options).then((request) => request(axios, basePath));
380
+ },
381
+ /**
382
+ *
383
+ * @summary Create (and send) an envelope from a template
384
+ * @param {string} id
385
+ * @param {InstantiateTemplateRequest} instantiateTemplateRequest
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ instantiate(id, instantiateTemplateRequest, options) {
390
+ return localVarFp.instantiate(id, instantiateTemplateRequest, options).then((request) => request(axios, basePath));
391
+ },
392
+ /**
393
+ *
394
+ * @summary List my templates
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ list(options) {
399
+ return localVarFp.list(options).then((request) => request(axios, basePath));
400
+ },
401
+ /**
402
+ *
403
+ * @summary Update a template
404
+ * @param {string} id
405
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ update(id, signatureTemplateRequest, options) {
410
+ return localVarFp.update(id, signatureTemplateRequest, options).then((request) => request(axios, basePath));
411
+ },
412
+ };
413
+ };
414
+ /**
415
+ * ESignTemplatesApi - object-oriented interface
416
+ */
417
+ export class ESignTemplatesApi extends BaseAPI {
418
+ /**
419
+ *
420
+ * @summary Delete a template
421
+ * @param {string} id
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ _delete(id, options) {
426
+ return ESignTemplatesApiFp(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
427
+ }
428
+ /**
429
+ *
430
+ * @summary Create a template
431
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ create1(signatureTemplateRequest, options) {
436
+ return ESignTemplatesApiFp(this.configuration).create1(signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
437
+ }
438
+ /**
439
+ *
440
+ * @summary Get a template
441
+ * @param {string} id
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ get(id, options) {
446
+ return ESignTemplatesApiFp(this.configuration).get(id, options).then((request) => request(this.axios, this.basePath));
447
+ }
448
+ /**
449
+ *
450
+ * @summary Create (and send) an envelope from a template
451
+ * @param {string} id
452
+ * @param {InstantiateTemplateRequest} instantiateTemplateRequest
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ instantiate(id, instantiateTemplateRequest, options) {
457
+ return ESignTemplatesApiFp(this.configuration).instantiate(id, instantiateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
458
+ }
459
+ /**
460
+ *
461
+ * @summary List my templates
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ list(options) {
466
+ return ESignTemplatesApiFp(this.configuration).list(options).then((request) => request(this.axios, this.basePath));
467
+ }
468
+ /**
469
+ *
470
+ * @summary Update a template
471
+ * @param {string} id
472
+ * @param {SignatureTemplateRequest} signatureTemplateRequest
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ update(id, signatureTemplateRequest, options) {
477
+ return ESignTemplatesApiFp(this.configuration).update(id, signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
478
+ }
479
+ }
package/dist/esm/api.d.ts CHANGED
@@ -16,6 +16,9 @@ export * from './api/dashboard-api';
16
16
  export * from './api/document-controller-api';
17
17
  export * from './api/document-suggestion-controller-api';
18
18
  export * from './api/document-version-controller-api';
19
+ export * from './api/esign-api';
20
+ export * from './api/esign-public-api';
21
+ export * from './api/esign-templates-api';
19
22
  export * from './api/favorites-api';
20
23
  export * from './api/file-controller-api';
21
24
  export * from './api/folder-controller-api';
package/dist/esm/api.js CHANGED
@@ -18,6 +18,9 @@ export * from './api/dashboard-api';
18
18
  export * from './api/document-controller-api';
19
19
  export * from './api/document-suggestion-controller-api';
20
20
  export * from './api/document-version-controller-api';
21
+ export * from './api/esign-api';
22
+ export * from './api/esign-public-api';
23
+ export * from './api/esign-templates-api';
21
24
  export * from './api/favorites-api';
22
25
  export * from './api/file-controller-api';
23
26
  export * from './api/folder-controller-api';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SignatureFieldValue } from './signature-field-value';
13
+ export interface ApplySignatureRequest {
14
+ 'signatureImage'?: string;
15
+ 'typedName'?: string;
16
+ 'fields'?: Array<SignatureFieldValue>;
17
+ 'legacy'?: boolean;
18
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -47,6 +47,16 @@ export declare const AuditLogActionEnum: {
47
47
  readonly PermanentDeleteFile: "PERMANENT_DELETE_FILE";
48
48
  readonly PermanentDeleteFolder: "PERMANENT_DELETE_FOLDER";
49
49
  readonly EmptyRecycleBin: "EMPTY_RECYCLE_BIN";
50
+ readonly SignatureEnvelopeCreated: "SIGNATURE_ENVELOPE_CREATED";
51
+ readonly SignatureEnvelopeSent: "SIGNATURE_ENVELOPE_SENT";
52
+ readonly SignatureDocumentSigned: "SIGNATURE_DOCUMENT_SIGNED";
53
+ readonly SignatureEnvelopeCompleted: "SIGNATURE_ENVELOPE_COMPLETED";
54
+ readonly SignatureEnvelopeDeclined: "SIGNATURE_ENVELOPE_DECLINED";
55
+ readonly SignatureEnvelopeCancelled: "SIGNATURE_ENVELOPE_CANCELLED";
56
+ readonly SignatureEnvelopeExpired: "SIGNATURE_ENVELOPE_EXPIRED";
57
+ readonly SignatureReminderSent: "SIGNATURE_REMINDER_SENT";
58
+ readonly SignatureTemplateCreated: "SIGNATURE_TEMPLATE_CREATED";
59
+ readonly SignatureTemplateDeleted: "SIGNATURE_TEMPLATE_DELETED";
50
60
  readonly ChainGenesis: "CHAIN_GENESIS";
51
61
  };
52
62
  export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLogActionEnum];
@@ -35,6 +35,16 @@ export const AuditLogActionEnum = {
35
35
  PermanentDeleteFile: 'PERMANENT_DELETE_FILE',
36
36
  PermanentDeleteFolder: 'PERMANENT_DELETE_FOLDER',
37
37
  EmptyRecycleBin: 'EMPTY_RECYCLE_BIN',
38
+ SignatureEnvelopeCreated: 'SIGNATURE_ENVELOPE_CREATED',
39
+ SignatureEnvelopeSent: 'SIGNATURE_ENVELOPE_SENT',
40
+ SignatureDocumentSigned: 'SIGNATURE_DOCUMENT_SIGNED',
41
+ SignatureEnvelopeCompleted: 'SIGNATURE_ENVELOPE_COMPLETED',
42
+ SignatureEnvelopeDeclined: 'SIGNATURE_ENVELOPE_DECLINED',
43
+ SignatureEnvelopeCancelled: 'SIGNATURE_ENVELOPE_CANCELLED',
44
+ SignatureEnvelopeExpired: 'SIGNATURE_ENVELOPE_EXPIRED',
45
+ SignatureReminderSent: 'SIGNATURE_REMINDER_SENT',
46
+ SignatureTemplateCreated: 'SIGNATURE_TEMPLATE_CREATED',
47
+ SignatureTemplateDeleted: 'SIGNATURE_TEMPLATE_DELETED',
38
48
  ChainGenesis: 'CHAIN_GENESIS',
39
49
  };
40
50
  export const AuditLogResourceTypeEnum = {
@@ -0,0 +1,24 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SignatureRecipientInput } from './signature-recipient-input';
13
+ export interface CreateSignatureEnvelopeRequest {
14
+ 'sourceDocId': string;
15
+ 'title': string;
16
+ 'message'?: string;
17
+ 'recipients': Array<SignatureRecipientInput>;
18
+ 'expiresInDays'?: number;
19
+ 'sequential'?: boolean;
20
+ 'reminderDays'?: number;
21
+ 'locale'?: string;
22
+ 'send'?: boolean;
23
+ 'templateId'?: string;
24
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface DeclineSignatureRequest {
13
+ 'reason'?: string;
14
+ }
@@ -0,0 +1,14 @@
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
+ export {};