@openfilz-sdk/typescript 1.2.26 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +44 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +43 -2
- package/api/esign-api.ts +719 -0
- package/api/esign-public-api.ts +622 -0
- package/api/esign-templates-api.ts +503 -0
- package/api.ts +3 -0
- package/dist/api/esign-api.d.ts +334 -0
- package/dist/api/esign-api.js +693 -0
- package/dist/api/esign-public-api.d.ts +282 -0
- package/dist/api/esign-public-api.js +595 -0
- package/dist/api/esign-templates-api.d.ts +234 -0
- package/dist/api/esign-templates-api.js +486 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/esm/api/esign-api.d.ts +334 -0
- package/dist/esm/api/esign-api.js +686 -0
- package/dist/esm/api/esign-public-api.d.ts +282 -0
- package/dist/esm/api/esign-public-api.js +588 -0
- package/dist/esm/api/esign-templates-api.d.ts +234 -0
- package/dist/esm/api/esign-templates-api.js +479 -0
- package/dist/esm/api.d.ts +3 -0
- package/dist/esm/api.js +3 -0
- package/dist/esm/models/apply-signature-request.d.ts +18 -0
- package/dist/esm/models/apply-signature-request.js +14 -0
- package/dist/esm/models/audit-log.d.ts +10 -0
- package/dist/esm/models/audit-log.js +10 -0
- package/dist/esm/models/create-signature-envelope-request.d.ts +24 -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/index.d.ts +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/esm/models/instantiate-template-request.d.ts +22 -0
- package/dist/esm/models/instantiate-template-request.js +14 -0
- package/dist/esm/models/public-signature-view.d.ts +57 -0
- package/dist/esm/models/public-signature-view.js +32 -0
- package/dist/esm/models/role-binding.d.ts +19 -0
- package/dist/esm/models/role-binding.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +10 -0
- package/dist/esm/models/search-by-audit-log-request.js +10 -0
- package/dist/esm/models/settings.d.ts +3 -0
- package/dist/esm/models/signature-envelope-dto.d.ts +40 -0
- package/dist/esm/models/signature-envelope-dto.js +21 -0
- package/dist/esm/models/signature-event-dto.d.ts +33 -0
- package/dist/esm/models/signature-event-dto.js +26 -0
- package/dist/esm/models/signature-field-dto.d.ts +44 -0
- package/dist/esm/models/signature-field-dto.js +27 -0
- package/dist/esm/models/signature-field-input.d.ts +39 -0
- package/dist/esm/models/signature-field-input.js +27 -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-field-value.d.ts +16 -0
- package/dist/esm/models/signature-field-value.js +14 -0
- package/dist/esm/models/signature-recipient-dto.d.ts +45 -0
- package/dist/esm/models/signature-recipient-dto.js +28 -0
- package/dist/esm/models/signature-recipient-input.d.ts +36 -0
- package/dist/esm/models/signature-recipient-input.js +22 -0
- package/dist/esm/models/signature-template-dto.d.ts +27 -0
- package/dist/esm/models/signature-template-dto.js +14 -0
- package/dist/esm/models/signature-template-field.d.ts +40 -0
- package/dist/esm/models/signature-template-field.js +27 -0
- package/dist/esm/models/signature-template-request.d.ts +23 -0
- package/dist/esm/models/signature-template-request.js +14 -0
- package/dist/esm/models/signature-template-role.d.ts +28 -0
- package/dist/esm/models/signature-template-role.js +22 -0
- package/dist/esm/models/verify-otp-request.d.ts +14 -0
- package/dist/esm/models/verify-otp-request.js +14 -0
- package/dist/models/apply-signature-request.d.ts +18 -0
- package/dist/models/apply-signature-request.js +15 -0
- package/dist/models/audit-log.d.ts +10 -0
- package/dist/models/audit-log.js +10 -0
- package/dist/models/create-signature-envelope-request.d.ts +24 -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/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/models/instantiate-template-request.d.ts +22 -0
- package/dist/models/instantiate-template-request.js +15 -0
- package/dist/models/public-signature-view.d.ts +57 -0
- package/dist/models/public-signature-view.js +35 -0
- package/dist/models/role-binding.d.ts +19 -0
- package/dist/models/role-binding.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +10 -0
- package/dist/models/search-by-audit-log-request.js +10 -0
- package/dist/models/settings.d.ts +3 -0
- package/dist/models/signature-envelope-dto.d.ts +40 -0
- package/dist/models/signature-envelope-dto.js +24 -0
- package/dist/models/signature-event-dto.d.ts +33 -0
- package/dist/models/signature-event-dto.js +29 -0
- package/dist/models/signature-field-dto.d.ts +44 -0
- package/dist/models/signature-field-dto.js +30 -0
- package/dist/models/signature-field-input.d.ts +39 -0
- package/dist/models/signature-field-input.js +30 -0
- package/dist/models/signature-field-placement.d.ts +18 -0
- package/dist/models/signature-field-placement.js +15 -0
- package/dist/models/signature-field-value.d.ts +16 -0
- package/dist/models/signature-field-value.js +15 -0
- package/dist/models/signature-recipient-dto.d.ts +45 -0
- package/dist/models/signature-recipient-dto.js +31 -0
- package/dist/models/signature-recipient-input.d.ts +36 -0
- package/dist/models/signature-recipient-input.js +25 -0
- package/dist/models/signature-template-dto.d.ts +27 -0
- package/dist/models/signature-template-dto.js +15 -0
- package/dist/models/signature-template-field.d.ts +40 -0
- package/dist/models/signature-template-field.js +30 -0
- package/dist/models/signature-template-request.d.ts +23 -0
- package/dist/models/signature-template-request.js +15 -0
- package/dist/models/signature-template-role.d.ts +28 -0
- package/dist/models/signature-template-role.js +25 -0
- package/dist/models/verify-otp-request.d.ts +14 -0
- package/dist/models/verify-otp-request.js +15 -0
- package/docs/ApplySignatureRequest.md +26 -0
- package/docs/CreateSignatureEnvelopeRequest.md +38 -0
- package/docs/DeclineSignatureRequest.md +20 -0
- package/docs/ESignApi.md +463 -0
- package/docs/ESignPublicApi.md +382 -0
- package/docs/ESignTemplatesApi.md +315 -0
- package/docs/InstantiateTemplateRequest.md +34 -0
- package/docs/PublicSignatureView.md +60 -0
- package/docs/RoleBinding.md +30 -0
- package/docs/Settings.md +6 -0
- package/docs/SignatureEnvelopeDTO.md +52 -0
- package/docs/SignatureEventDTO.md +30 -0
- package/docs/SignatureFieldDTO.md +46 -0
- package/docs/SignatureFieldInput.md +36 -0
- package/docs/SignatureFieldPlacement.md +28 -0
- package/docs/SignatureFieldValue.md +24 -0
- package/docs/SignatureRecipientDTO.md +44 -0
- package/docs/SignatureRecipientInput.md +38 -0
- package/docs/SignatureTemplateDTO.md +42 -0
- package/docs/SignatureTemplateField.md +38 -0
- package/docs/SignatureTemplateRequest.md +34 -0
- package/docs/SignatureTemplateRole.md +26 -0
- package/docs/VerifyOtpRequest.md +20 -0
- package/models/apply-signature-request.ts +26 -0
- package/models/audit-log.ts +10 -0
- package/models/create-signature-envelope-request.ts +32 -0
- package/models/decline-signature-request.ts +20 -0
- package/models/index.ts +19 -0
- package/models/instantiate-template-request.ts +30 -0
- package/models/public-signature-view.ts +70 -0
- package/models/role-binding.ts +25 -0
- package/models/search-by-audit-log-request.ts +10 -0
- package/models/settings.ts +3 -0
- package/models/signature-envelope-dto.ts +51 -0
- package/models/signature-event-dto.ts +42 -0
- package/models/signature-field-dto.ts +51 -0
- package/models/signature-field-input.ts +46 -0
- package/models/signature-field-placement.ts +24 -0
- package/models/signature-field-value.ts +22 -0
- package/models/signature-recipient-dto.ts +58 -0
- package/models/signature-recipient-input.ts +50 -0
- package/models/signature-template-dto.ts +37 -0
- package/models/signature-template-field.ts +47 -0
- package/models/signature-template-request.ts +33 -0
- package/models/signature-template-role.ts +38 -0
- package/models/verify-otp-request.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,588 @@
|
|
|
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
|
+
* ESignPublicApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const ESignPublicApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Decline to sign (voids the envelope)
|
|
37
|
+
* @param {string} token
|
|
38
|
+
* @param {DeclineSignatureRequest} [declineSignatureRequest]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
decline: (token_1, declineSignatureRequest_1, ...args_1) => __awaiter(this, [token_1, declineSignatureRequest_1, ...args_1], void 0, function* (token, declineSignatureRequest, options = {}) {
|
|
43
|
+
// verify required parameter 'token' is not null or undefined
|
|
44
|
+
assertParamExists('decline', 'token', token);
|
|
45
|
+
const localVarPath = `/api/v1/public/signatures/decline`;
|
|
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
|
+
if (token !== undefined) {
|
|
59
|
+
localVarQueryParameter['token'] = token;
|
|
60
|
+
}
|
|
61
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
63
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
66
|
+
localVarRequestOptions.data = serializeDataIfNeeded(declineSignatureRequest, localVarRequestOptions, configuration);
|
|
67
|
+
return {
|
|
68
|
+
url: toPathString(localVarUrlObj),
|
|
69
|
+
options: localVarRequestOptions,
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary Stream the source PDF for signing
|
|
75
|
+
* @param {string} token
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
document: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
|
|
80
|
+
// verify required parameter 'token' is not null or undefined
|
|
81
|
+
assertParamExists('document', 'token', token);
|
|
82
|
+
const localVarPath = `/api/v1/public/signatures/document`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication keycloak_auth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
95
|
+
if (token !== undefined) {
|
|
96
|
+
localVarQueryParameter['token'] = token;
|
|
97
|
+
}
|
|
98
|
+
localVarHeaderParameter['Accept'] = 'application/pdf';
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
+
return {
|
|
103
|
+
url: toPathString(localVarUrlObj),
|
|
104
|
+
options: localVarRequestOptions,
|
|
105
|
+
};
|
|
106
|
+
}),
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @summary Record that the recipient opened the document
|
|
110
|
+
* @param {string} token
|
|
111
|
+
* @param {string} [userAgent]
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
markViewed: (token_1, userAgent_1, ...args_1) => __awaiter(this, [token_1, userAgent_1, ...args_1], void 0, function* (token, userAgent, options = {}) {
|
|
116
|
+
// verify required parameter 'token' is not null or undefined
|
|
117
|
+
assertParamExists('markViewed', 'token', token);
|
|
118
|
+
const localVarPath = `/api/v1/public/signatures/viewed`;
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
// authentication keycloak_auth required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
131
|
+
if (token !== undefined) {
|
|
132
|
+
localVarQueryParameter['token'] = token;
|
|
133
|
+
}
|
|
134
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
135
|
+
if (userAgent != null) {
|
|
136
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
137
|
+
}
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
}),
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
|
|
149
|
+
* @param {string} token
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
requestOtp: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
|
|
154
|
+
// verify required parameter 'token' is not null or undefined
|
|
155
|
+
assertParamExists('requestOtp', 'token', token);
|
|
156
|
+
const localVarPath = `/api/v1/public/signatures/otp/request`;
|
|
157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
159
|
+
let baseOptions;
|
|
160
|
+
if (configuration) {
|
|
161
|
+
baseOptions = configuration.baseOptions;
|
|
162
|
+
}
|
|
163
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
164
|
+
const localVarHeaderParameter = {};
|
|
165
|
+
const localVarQueryParameter = {};
|
|
166
|
+
// authentication keycloak_auth required
|
|
167
|
+
// http bearer authentication required
|
|
168
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
169
|
+
if (token !== undefined) {
|
|
170
|
+
localVarQueryParameter['token'] = token;
|
|
171
|
+
}
|
|
172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
175
|
+
return {
|
|
176
|
+
url: toPathString(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions,
|
|
178
|
+
};
|
|
179
|
+
}),
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Submit the recipient\'s fields and sign
|
|
183
|
+
* @param {string} token
|
|
184
|
+
* @param {ApplySignatureRequest} applySignatureRequest
|
|
185
|
+
* @param {string} [userAgent]
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
sign: (token_1, applySignatureRequest_1, userAgent_1, ...args_1) => __awaiter(this, [token_1, applySignatureRequest_1, userAgent_1, ...args_1], void 0, function* (token, applySignatureRequest, userAgent, options = {}) {
|
|
190
|
+
// verify required parameter 'token' is not null or undefined
|
|
191
|
+
assertParamExists('sign', 'token', token);
|
|
192
|
+
// verify required parameter 'applySignatureRequest' is not null or undefined
|
|
193
|
+
assertParamExists('sign', 'applySignatureRequest', applySignatureRequest);
|
|
194
|
+
const localVarPath = `/api/v1/public/signatures/sign`;
|
|
195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
|
+
let baseOptions;
|
|
198
|
+
if (configuration) {
|
|
199
|
+
baseOptions = configuration.baseOptions;
|
|
200
|
+
}
|
|
201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
202
|
+
const localVarHeaderParameter = {};
|
|
203
|
+
const localVarQueryParameter = {};
|
|
204
|
+
// authentication keycloak_auth required
|
|
205
|
+
// http bearer authentication required
|
|
206
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
207
|
+
if (token !== undefined) {
|
|
208
|
+
localVarQueryParameter['token'] = token;
|
|
209
|
+
}
|
|
210
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
212
|
+
if (userAgent != null) {
|
|
213
|
+
localVarHeaderParameter['User-Agent'] = String(userAgent);
|
|
214
|
+
}
|
|
215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
218
|
+
localVarRequestOptions.data = serializeDataIfNeeded(applySignatureRequest, localVarRequestOptions, configuration);
|
|
219
|
+
return {
|
|
220
|
+
url: toPathString(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
}),
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @summary Verify the one-time access code
|
|
227
|
+
* @param {string} token
|
|
228
|
+
* @param {VerifyOtpRequest} verifyOtpRequest
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
verifyOtp: (token_1, verifyOtpRequest_1, ...args_1) => __awaiter(this, [token_1, verifyOtpRequest_1, ...args_1], void 0, function* (token, verifyOtpRequest, options = {}) {
|
|
233
|
+
// verify required parameter 'token' is not null or undefined
|
|
234
|
+
assertParamExists('verifyOtp', 'token', token);
|
|
235
|
+
// verify required parameter 'verifyOtpRequest' is not null or undefined
|
|
236
|
+
assertParamExists('verifyOtp', 'verifyOtpRequest', verifyOtpRequest);
|
|
237
|
+
const localVarPath = `/api/v1/public/signatures/otp/verify`;
|
|
238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
|
+
let baseOptions;
|
|
241
|
+
if (configuration) {
|
|
242
|
+
baseOptions = configuration.baseOptions;
|
|
243
|
+
}
|
|
244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
245
|
+
const localVarHeaderParameter = {};
|
|
246
|
+
const localVarQueryParameter = {};
|
|
247
|
+
// authentication keycloak_auth required
|
|
248
|
+
// http bearer authentication required
|
|
249
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
250
|
+
if (token !== undefined) {
|
|
251
|
+
localVarQueryParameter['token'] = token;
|
|
252
|
+
}
|
|
253
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
254
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
258
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyOtpRequest, localVarRequestOptions, configuration);
|
|
259
|
+
return {
|
|
260
|
+
url: toPathString(localVarUrlObj),
|
|
261
|
+
options: localVarRequestOptions,
|
|
262
|
+
};
|
|
263
|
+
}),
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Resolve a signing token to its envelope view
|
|
267
|
+
* @param {string} token
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
view: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) {
|
|
272
|
+
// verify required parameter 'token' is not null or undefined
|
|
273
|
+
assertParamExists('view', 'token', token);
|
|
274
|
+
const localVarPath = `/api/v1/public/signatures`;
|
|
275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
277
|
+
let baseOptions;
|
|
278
|
+
if (configuration) {
|
|
279
|
+
baseOptions = configuration.baseOptions;
|
|
280
|
+
}
|
|
281
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
282
|
+
const localVarHeaderParameter = {};
|
|
283
|
+
const localVarQueryParameter = {};
|
|
284
|
+
// authentication keycloak_auth required
|
|
285
|
+
// http bearer authentication required
|
|
286
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
287
|
+
if (token !== undefined) {
|
|
288
|
+
localVarQueryParameter['token'] = token;
|
|
289
|
+
}
|
|
290
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
|
+
return {
|
|
295
|
+
url: toPathString(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
}),
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* ESignPublicApi - functional programming interface
|
|
303
|
+
*/
|
|
304
|
+
export const ESignPublicApiFp = function (configuration) {
|
|
305
|
+
const localVarAxiosParamCreator = ESignPublicApiAxiosParamCreator(configuration);
|
|
306
|
+
return {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @summary Decline to sign (voids the envelope)
|
|
310
|
+
* @param {string} token
|
|
311
|
+
* @param {DeclineSignatureRequest} [declineSignatureRequest]
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
decline(token, declineSignatureRequest, options) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
var _a, _b, _c;
|
|
318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.decline(token, declineSignatureRequest, options);
|
|
319
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
320
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.decline']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
321
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Stream the source PDF for signing
|
|
327
|
+
* @param {string} token
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
document(token, options) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
var _a, _b, _c;
|
|
334
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.document(token, options);
|
|
335
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
336
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.document']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
337
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
338
|
+
});
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @summary Record that the recipient opened the document
|
|
343
|
+
* @param {string} token
|
|
344
|
+
* @param {string} [userAgent]
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
markViewed(token, userAgent, options) {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
var _a, _b, _c;
|
|
351
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markViewed(token, userAgent, options);
|
|
352
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
353
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.markViewed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
|
|
360
|
+
* @param {string} token
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
requestOtp(token, options) {
|
|
365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
+
var _a, _b, _c;
|
|
367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOtp(token, options);
|
|
368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
369
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.requestOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
371
|
+
});
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary Submit the recipient\'s fields and sign
|
|
376
|
+
* @param {string} token
|
|
377
|
+
* @param {ApplySignatureRequest} applySignatureRequest
|
|
378
|
+
* @param {string} [userAgent]
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
sign(token, applySignatureRequest, userAgent, options) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
var _a, _b, _c;
|
|
385
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sign(token, applySignatureRequest, userAgent, options);
|
|
386
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
387
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.sign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
388
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
389
|
+
});
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @summary Verify the one-time access code
|
|
394
|
+
* @param {string} token
|
|
395
|
+
* @param {VerifyOtpRequest} verifyOtpRequest
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
verifyOtp(token, verifyOtpRequest, options) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
var _a, _b, _c;
|
|
402
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOtp(token, verifyOtpRequest, options);
|
|
403
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
404
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.verifyOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
405
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary Resolve a signing token to its envelope view
|
|
411
|
+
* @param {string} token
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
view(token, options) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
var _a, _b, _c;
|
|
418
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.view(token, options);
|
|
419
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
420
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignPublicApi.view']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* ESignPublicApi - factory interface
|
|
428
|
+
*/
|
|
429
|
+
export const ESignPublicApiFactory = function (configuration, basePath, axios) {
|
|
430
|
+
const localVarFp = ESignPublicApiFp(configuration);
|
|
431
|
+
return {
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary Decline to sign (voids the envelope)
|
|
435
|
+
* @param {string} token
|
|
436
|
+
* @param {DeclineSignatureRequest} [declineSignatureRequest]
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
decline(token, declineSignatureRequest, options) {
|
|
441
|
+
return localVarFp.decline(token, declineSignatureRequest, options).then((request) => request(axios, basePath));
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @summary Stream the source PDF for signing
|
|
446
|
+
* @param {string} token
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
document(token, options) {
|
|
451
|
+
return localVarFp.document(token, options).then((request) => request(axios, basePath));
|
|
452
|
+
},
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @summary Record that the recipient opened the document
|
|
456
|
+
* @param {string} token
|
|
457
|
+
* @param {string} [userAgent]
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
markViewed(token, userAgent, options) {
|
|
462
|
+
return localVarFp.markViewed(token, userAgent, options).then((request) => request(axios, basePath));
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
|
|
467
|
+
* @param {string} token
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
requestOtp(token, options) {
|
|
472
|
+
return localVarFp.requestOtp(token, options).then((request) => request(axios, basePath));
|
|
473
|
+
},
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @summary Submit the recipient\'s fields and sign
|
|
477
|
+
* @param {string} token
|
|
478
|
+
* @param {ApplySignatureRequest} applySignatureRequest
|
|
479
|
+
* @param {string} [userAgent]
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
sign(token, applySignatureRequest, userAgent, options) {
|
|
484
|
+
return localVarFp.sign(token, applySignatureRequest, userAgent, options).then((request) => request(axios, basePath));
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @summary Verify the one-time access code
|
|
489
|
+
* @param {string} token
|
|
490
|
+
* @param {VerifyOtpRequest} verifyOtpRequest
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
verifyOtp(token, verifyOtpRequest, options) {
|
|
495
|
+
return localVarFp.verifyOtp(token, verifyOtpRequest, options).then((request) => request(axios, basePath));
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary Resolve a signing token to its envelope view
|
|
500
|
+
* @param {string} token
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
view(token, options) {
|
|
505
|
+
return localVarFp.view(token, options).then((request) => request(axios, basePath));
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* ESignPublicApi - object-oriented interface
|
|
511
|
+
*/
|
|
512
|
+
export class ESignPublicApi extends BaseAPI {
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @summary Decline to sign (voids the envelope)
|
|
516
|
+
* @param {string} token
|
|
517
|
+
* @param {DeclineSignatureRequest} [declineSignatureRequest]
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
decline(token, declineSignatureRequest, options) {
|
|
522
|
+
return ESignPublicApiFp(this.configuration).decline(token, declineSignatureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @summary Stream the source PDF for signing
|
|
527
|
+
* @param {string} token
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
document(token, options) {
|
|
532
|
+
return ESignPublicApiFp(this.configuration).document(token, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary Record that the recipient opened the document
|
|
537
|
+
* @param {string} token
|
|
538
|
+
* @param {string} [userAgent]
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
markViewed(token, userAgent, options) {
|
|
543
|
+
return ESignPublicApiFp(this.configuration).markViewed(token, userAgent, options).then((request) => request(this.axios, this.basePath));
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @summary Send a one-time access code to the recipient (EMAIL_OTP / SMS_OTP)
|
|
548
|
+
* @param {string} token
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
requestOtp(token, options) {
|
|
553
|
+
return ESignPublicApiFp(this.configuration).requestOtp(token, options).then((request) => request(this.axios, this.basePath));
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @summary Submit the recipient\'s fields and sign
|
|
558
|
+
* @param {string} token
|
|
559
|
+
* @param {ApplySignatureRequest} applySignatureRequest
|
|
560
|
+
* @param {string} [userAgent]
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
sign(token, applySignatureRequest, userAgent, options) {
|
|
565
|
+
return ESignPublicApiFp(this.configuration).sign(token, applySignatureRequest, userAgent, options).then((request) => request(this.axios, this.basePath));
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @summary Verify the one-time access code
|
|
570
|
+
* @param {string} token
|
|
571
|
+
* @param {VerifyOtpRequest} verifyOtpRequest
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
verifyOtp(token, verifyOtpRequest, options) {
|
|
576
|
+
return ESignPublicApiFp(this.configuration).verifyOtp(token, verifyOtpRequest, options).then((request) => request(this.axios, this.basePath));
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Resolve a signing token to its envelope view
|
|
581
|
+
* @param {string} token
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
view(token, options) {
|
|
586
|
+
return ESignPublicApiFp(this.configuration).view(token, options).then((request) => request(this.axios, this.basePath));
|
|
587
|
+
}
|
|
588
|
+
}
|