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