@openfilz-sdk/typescript-ee 1.4.4 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +20 -2
  4. package/api/digital-signature-api.ts +405 -0
  5. package/api/digital-signature-public-api.ts +463 -0
  6. package/api.ts +2 -0
  7. package/dist/api/digital-signature-api.d.ts +188 -0
  8. package/dist/api/digital-signature-api.js +395 -0
  9. package/dist/api/digital-signature-public-api.d.ts +213 -0
  10. package/dist/api/digital-signature-public-api.js +446 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/digital-signature-api.d.ts +188 -0
  14. package/dist/esm/api/digital-signature-api.js +388 -0
  15. package/dist/esm/api/digital-signature-public-api.d.ts +213 -0
  16. package/dist/esm/api/digital-signature-public-api.js +439 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/apply-signature-request.d.ts +15 -0
  20. package/dist/esm/models/apply-signature-request.js +14 -0
  21. package/dist/esm/models/create-signature-envelope-request.d.ts +19 -0
  22. package/dist/esm/models/create-signature-envelope-request.js +14 -0
  23. package/dist/esm/models/decline-signature-request.d.ts +14 -0
  24. package/dist/esm/models/decline-signature-request.js +14 -0
  25. package/dist/esm/models/enriched-audit-log.d.ts +7 -0
  26. package/dist/esm/models/enriched-audit-log.js +8 -1
  27. package/dist/esm/models/index.d.ts +8 -0
  28. package/dist/esm/models/index.js +8 -0
  29. package/dist/esm/models/notification-dto.d.ts +3 -0
  30. package/dist/esm/models/notification-dto.js +4 -1
  31. package/dist/esm/models/public-signature-view.d.ts +44 -0
  32. package/dist/esm/models/public-signature-view.js +27 -0
  33. package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
  34. package/dist/esm/models/search-by-audit-log-request.js +8 -1
  35. package/dist/esm/models/signature-envelope-dto.d.ts +34 -0
  36. package/dist/esm/models/signature-envelope-dto.js +21 -0
  37. package/dist/esm/models/signature-field-placement.d.ts +18 -0
  38. package/dist/esm/models/signature-field-placement.js +14 -0
  39. package/dist/esm/models/signature-recipient-dto.d.ts +29 -0
  40. package/dist/esm/models/signature-recipient-dto.js +19 -0
  41. package/dist/esm/models/signature-recipient-input.d.ts +18 -0
  42. package/dist/esm/models/signature-recipient-input.js +14 -0
  43. package/dist/models/apply-signature-request.d.ts +15 -0
  44. package/dist/models/apply-signature-request.js +15 -0
  45. package/dist/models/create-signature-envelope-request.d.ts +19 -0
  46. package/dist/models/create-signature-envelope-request.js +15 -0
  47. package/dist/models/decline-signature-request.d.ts +14 -0
  48. package/dist/models/decline-signature-request.js +15 -0
  49. package/dist/models/enriched-audit-log.d.ts +7 -0
  50. package/dist/models/enriched-audit-log.js +8 -1
  51. package/dist/models/index.d.ts +8 -0
  52. package/dist/models/index.js +8 -0
  53. package/dist/models/notification-dto.d.ts +3 -0
  54. package/dist/models/notification-dto.js +4 -1
  55. package/dist/models/public-signature-view.d.ts +44 -0
  56. package/dist/models/public-signature-view.js +30 -0
  57. package/dist/models/search-by-audit-log-request.d.ts +7 -0
  58. package/dist/models/search-by-audit-log-request.js +8 -1
  59. package/dist/models/signature-envelope-dto.d.ts +34 -0
  60. package/dist/models/signature-envelope-dto.js +24 -0
  61. package/dist/models/signature-field-placement.d.ts +18 -0
  62. package/dist/models/signature-field-placement.js +15 -0
  63. package/dist/models/signature-recipient-dto.d.ts +29 -0
  64. package/dist/models/signature-recipient-dto.js +22 -0
  65. package/dist/models/signature-recipient-input.d.ts +18 -0
  66. package/dist/models/signature-recipient-input.js +15 -0
  67. package/docs/ApplySignatureRequest.md +22 -0
  68. package/docs/CreateSignatureEnvelopeRequest.md +28 -0
  69. package/docs/DeclineSignatureRequest.md +20 -0
  70. package/docs/DigitalSignatureApi.md +249 -0
  71. package/docs/DigitalSignaturePublicApi.md +276 -0
  72. package/docs/PublicSignatureView.md +48 -0
  73. package/docs/SignatureEnvelopeDTO.md +40 -0
  74. package/docs/SignatureFieldPlacement.md +28 -0
  75. package/docs/SignatureRecipientDTO.md +36 -0
  76. package/docs/SignatureRecipientInput.md +26 -0
  77. package/models/apply-signature-request.ts +21 -0
  78. package/models/create-signature-envelope-request.ts +27 -0
  79. package/models/decline-signature-request.ts +20 -0
  80. package/models/enriched-audit-log.ts +8 -1
  81. package/models/index.ts +8 -0
  82. package/models/notification-dto.ts +4 -1
  83. package/models/public-signature-view.ts +54 -0
  84. package/models/search-by-audit-log-request.ts +8 -1
  85. package/models/signature-envelope-dto.ts +45 -0
  86. package/models/signature-field-placement.ts +24 -0
  87. package/models/signature-recipient-dto.ts +38 -0
  88. package/models/signature-recipient-input.ts +26 -0
  89. package/package.json +1 -1
@@ -0,0 +1,395 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DigitalSignatureApi = exports.DigitalSignatureApiFactory = exports.DigitalSignatureApiFp = exports.DigitalSignatureApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * DigitalSignatureApi - axios parameter creator
34
+ */
35
+ const DigitalSignatureApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ *
39
+ * @summary Cancel a non-terminal envelope
40
+ * @param {string} id
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ cancel: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
45
+ // verify required parameter 'id' is not null or undefined
46
+ (0, common_1.assertParamExists)('cancel', 'id', id);
47
+ const localVarPath = `/api/v1/signatures/{id}/cancel`
48
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication keycloak_auth required
59
+ // http bearer authentication required
60
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
+ localVarHeaderParameter['Accept'] = 'application/json';
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ *
72
+ * @summary Create and send a signature envelope
73
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ create: (createSignatureEnvelopeRequest_1, ...args_1) => __awaiter(this, [createSignatureEnvelopeRequest_1, ...args_1], void 0, function* (createSignatureEnvelopeRequest, options = {}) {
78
+ // verify required parameter 'createSignatureEnvelopeRequest' is not null or undefined
79
+ (0, common_1.assertParamExists)('create', 'createSignatureEnvelopeRequest', createSignatureEnvelopeRequest);
80
+ const localVarPath = `/api/v1/signatures`;
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ // authentication keycloak_auth required
91
+ // http bearer authentication required
92
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter['Content-Type'] = 'application/json';
94
+ localVarHeaderParameter['Accept'] = 'application/json';
95
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSignatureEnvelopeRequest, localVarRequestOptions, configuration);
99
+ return {
100
+ url: (0, common_1.toPathString)(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ *
106
+ * @summary Get a single envelope I sent
107
+ * @param {string} id
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ get1: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
112
+ // verify required parameter 'id' is not null or undefined
113
+ (0, common_1.assertParamExists)('get1', 'id', id);
114
+ const localVarPath = `/api/v1/signatures/{id}`
115
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication keycloak_auth required
126
+ // http bearer authentication required
127
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Accept'] = 'application/json';
129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ return {
133
+ url: (0, common_1.toPathString)(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ }),
137
+ /**
138
+ *
139
+ * @summary List envelopes I sent for signature
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ listSent: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
144
+ const localVarPath = `/api/v1/signatures`;
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
152
+ const localVarHeaderParameter = {};
153
+ const localVarQueryParameter = {};
154
+ // authentication keycloak_auth required
155
+ // http bearer authentication required
156
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
157
+ localVarHeaderParameter['Accept'] = 'application/json';
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ return {
162
+ url: (0, common_1.toPathString)(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ }),
166
+ /**
167
+ *
168
+ * @summary List documents waiting for my signature
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ listToSign: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
173
+ const localVarPath = `/api/v1/signatures/to-sign`;
174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
176
+ let baseOptions;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ }
180
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
181
+ const localVarHeaderParameter = {};
182
+ const localVarQueryParameter = {};
183
+ // authentication keycloak_auth required
184
+ // http bearer authentication required
185
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
186
+ localVarHeaderParameter['Accept'] = 'application/json';
187
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
190
+ return {
191
+ url: (0, common_1.toPathString)(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ };
194
+ }),
195
+ };
196
+ };
197
+ exports.DigitalSignatureApiAxiosParamCreator = DigitalSignatureApiAxiosParamCreator;
198
+ /**
199
+ * DigitalSignatureApi - functional programming interface
200
+ */
201
+ const DigitalSignatureApiFp = function (configuration) {
202
+ const localVarAxiosParamCreator = (0, exports.DigitalSignatureApiAxiosParamCreator)(configuration);
203
+ return {
204
+ /**
205
+ *
206
+ * @summary Cancel a non-terminal envelope
207
+ * @param {string} id
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ cancel(id, options) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ var _a, _b, _c;
214
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(id, options);
215
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
216
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DigitalSignatureApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
217
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
218
+ });
219
+ },
220
+ /**
221
+ *
222
+ * @summary Create and send a signature envelope
223
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ create(createSignatureEnvelopeRequest, options) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ var _a, _b, _c;
230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create(createSignatureEnvelopeRequest, options);
231
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
232
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DigitalSignatureApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
233
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
234
+ });
235
+ },
236
+ /**
237
+ *
238
+ * @summary Get a single envelope I sent
239
+ * @param {string} id
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ get1(id, options) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ var _a, _b, _c;
246
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(id, options);
247
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
248
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DigitalSignatureApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
249
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
250
+ });
251
+ },
252
+ /**
253
+ *
254
+ * @summary List envelopes I sent for signature
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ listSent(options) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ var _a, _b, _c;
261
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSent(options);
262
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
263
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DigitalSignatureApi.listSent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
264
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
265
+ });
266
+ },
267
+ /**
268
+ *
269
+ * @summary List documents waiting for my signature
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ listToSign(options) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ var _a, _b, _c;
276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listToSign(options);
277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
278
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DigitalSignatureApi.listToSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
279
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ });
281
+ },
282
+ };
283
+ };
284
+ exports.DigitalSignatureApiFp = DigitalSignatureApiFp;
285
+ /**
286
+ * DigitalSignatureApi - factory interface
287
+ */
288
+ const DigitalSignatureApiFactory = function (configuration, basePath, axios) {
289
+ const localVarFp = (0, exports.DigitalSignatureApiFp)(configuration);
290
+ return {
291
+ /**
292
+ *
293
+ * @summary Cancel a non-terminal envelope
294
+ * @param {string} id
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ cancel(id, options) {
299
+ return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
300
+ },
301
+ /**
302
+ *
303
+ * @summary Create and send a signature envelope
304
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ create(createSignatureEnvelopeRequest, options) {
309
+ return localVarFp.create(createSignatureEnvelopeRequest, options).then((request) => request(axios, basePath));
310
+ },
311
+ /**
312
+ *
313
+ * @summary Get a single envelope I sent
314
+ * @param {string} id
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ get1(id, options) {
319
+ return localVarFp.get1(id, options).then((request) => request(axios, basePath));
320
+ },
321
+ /**
322
+ *
323
+ * @summary List envelopes I sent for signature
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ listSent(options) {
328
+ return localVarFp.listSent(options).then((request) => request(axios, basePath));
329
+ },
330
+ /**
331
+ *
332
+ * @summary List documents waiting for my signature
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ listToSign(options) {
337
+ return localVarFp.listToSign(options).then((request) => request(axios, basePath));
338
+ },
339
+ };
340
+ };
341
+ exports.DigitalSignatureApiFactory = DigitalSignatureApiFactory;
342
+ /**
343
+ * DigitalSignatureApi - object-oriented interface
344
+ */
345
+ class DigitalSignatureApi extends base_1.BaseAPI {
346
+ /**
347
+ *
348
+ * @summary Cancel a non-terminal envelope
349
+ * @param {string} id
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ cancel(id, options) {
354
+ return (0, exports.DigitalSignatureApiFp)(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
355
+ }
356
+ /**
357
+ *
358
+ * @summary Create and send a signature envelope
359
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ create(createSignatureEnvelopeRequest, options) {
364
+ return (0, exports.DigitalSignatureApiFp)(this.configuration).create(createSignatureEnvelopeRequest, options).then((request) => request(this.axios, this.basePath));
365
+ }
366
+ /**
367
+ *
368
+ * @summary Get a single envelope I sent
369
+ * @param {string} id
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ get1(id, options) {
374
+ return (0, exports.DigitalSignatureApiFp)(this.configuration).get1(id, options).then((request) => request(this.axios, this.basePath));
375
+ }
376
+ /**
377
+ *
378
+ * @summary List envelopes I sent for signature
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ listSent(options) {
383
+ return (0, exports.DigitalSignatureApiFp)(this.configuration).listSent(options).then((request) => request(this.axios, this.basePath));
384
+ }
385
+ /**
386
+ *
387
+ * @summary List documents waiting for my signature
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ listToSign(options) {
392
+ return (0, exports.DigitalSignatureApiFp)(this.configuration).listToSign(options).then((request) => request(this.axios, this.basePath));
393
+ }
394
+ }
395
+ exports.DigitalSignatureApi = DigitalSignatureApi;
@@ -0,0 +1,213 @@
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 { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ApplySignatureRequest } from '../models';
16
+ import type { DeclineSignatureRequest } from '../models';
17
+ import type { PublicSignatureView } from '../models';
18
+ /**
19
+ * DigitalSignaturePublicApi - axios parameter creator
20
+ */
21
+ export declare const DigitalSignaturePublicApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary Decline to sign (voids the envelope)
25
+ * @param {string} token
26
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ decline1: (token: string, declineSignatureRequest?: DeclineSignatureRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Stream the source PDF for signing
34
+ * @param {string} token
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ document: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ *
41
+ * @summary Record that the recipient opened the document
42
+ * @param {string} token
43
+ * @param {string} [userAgent]
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ markViewed: (token: string, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @summary Apply the recipient\'s signature
51
+ * @param {string} token
52
+ * @param {ApplySignatureRequest} applySignatureRequest
53
+ * @param {string} [userAgent]
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ sign: (token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ *
60
+ * @summary Resolve a signing token to its envelope view
61
+ * @param {string} token
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ view: (token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
+ };
67
+ /**
68
+ * DigitalSignaturePublicApi - functional programming interface
69
+ */
70
+ export declare const DigitalSignaturePublicApiFp: (configuration?: Configuration) => {
71
+ /**
72
+ *
73
+ * @summary Decline to sign (voids the envelope)
74
+ * @param {string} token
75
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ decline1(token: string, declineSignatureRequest?: DeclineSignatureRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
80
+ /**
81
+ *
82
+ * @summary Stream the source PDF for signing
83
+ * @param {string} token
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ document(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
88
+ /**
89
+ *
90
+ * @summary Record that the recipient opened the document
91
+ * @param {string} token
92
+ * @param {string} [userAgent]
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
97
+ /**
98
+ *
99
+ * @summary Apply the recipient\'s signature
100
+ * @param {string} token
101
+ * @param {ApplySignatureRequest} applySignatureRequest
102
+ * @param {string} [userAgent]
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
107
+ /**
108
+ *
109
+ * @summary Resolve a signing token to its envelope view
110
+ * @param {string} token
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ view(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicSignatureView>>;
115
+ };
116
+ /**
117
+ * DigitalSignaturePublicApi - factory interface
118
+ */
119
+ export declare const DigitalSignaturePublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
120
+ /**
121
+ *
122
+ * @summary Decline to sign (voids the envelope)
123
+ * @param {string} token
124
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ decline1(token: string, declineSignatureRequest?: DeclineSignatureRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
129
+ /**
130
+ *
131
+ * @summary Stream the source PDF for signing
132
+ * @param {string} token
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ document(token: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
137
+ /**
138
+ *
139
+ * @summary Record that the recipient opened the document
140
+ * @param {string} token
141
+ * @param {string} [userAgent]
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
146
+ /**
147
+ *
148
+ * @summary Apply the recipient\'s signature
149
+ * @param {string} token
150
+ * @param {ApplySignatureRequest} applySignatureRequest
151
+ * @param {string} [userAgent]
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
156
+ /**
157
+ *
158
+ * @summary Resolve a signing token to its envelope view
159
+ * @param {string} token
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ view(token: string, options?: RawAxiosRequestConfig): AxiosPromise<PublicSignatureView>;
164
+ };
165
+ /**
166
+ * DigitalSignaturePublicApi - object-oriented interface
167
+ */
168
+ export declare class DigitalSignaturePublicApi extends BaseAPI {
169
+ /**
170
+ *
171
+ * @summary Decline to sign (voids the envelope)
172
+ * @param {string} token
173
+ * @param {DeclineSignatureRequest} [declineSignatureRequest]
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ decline1(token: string, declineSignatureRequest?: DeclineSignatureRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}>>;
178
+ /**
179
+ *
180
+ * @summary Stream the source PDF for signing
181
+ * @param {string} token
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ document(token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
186
+ /**
187
+ *
188
+ * @summary Record that the recipient opened the document
189
+ * @param {string} token
190
+ * @param {string} [userAgent]
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ markViewed(token: string, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}>>;
195
+ /**
196
+ *
197
+ * @summary Apply the recipient\'s signature
198
+ * @param {string} token
199
+ * @param {ApplySignatureRequest} applySignatureRequest
200
+ * @param {string} [userAgent]
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ sign(token: string, applySignatureRequest: ApplySignatureRequest, userAgent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}>>;
205
+ /**
206
+ *
207
+ * @summary Resolve a signing token to its envelope view
208
+ * @param {string} token
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ view(token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicSignatureView, any, {}>>;
213
+ }