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