@openfilz-sdk/typescript-ee 1.4.4 → 1.5.1

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