@openfilz-sdk/typescript 1.2.27 → 1.2.29
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,486 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ESignTemplatesApi = exports.ESignTemplatesApiFactory = exports.ESignTemplatesApiFp = exports.ESignTemplatesApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* ESignTemplatesApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const ESignTemplatesApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Delete a template
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
_delete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
45
|
+
// verify required parameter 'id' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('_delete', 'id', id);
|
|
47
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
48
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
return {
|
|
65
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
66
|
+
options: localVarRequestOptions,
|
|
67
|
+
};
|
|
68
|
+
}),
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @summary Create a template
|
|
72
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
create1: (signatureTemplateRequest_1, ...args_1) => __awaiter(this, [signatureTemplateRequest_1, ...args_1], void 0, function* (signatureTemplateRequest, options = {}) {
|
|
77
|
+
// verify required parameter 'signatureTemplateRequest' is not null or undefined
|
|
78
|
+
(0, common_1.assertParamExists)('create1', 'signatureTemplateRequest', signatureTemplateRequest);
|
|
79
|
+
const localVarPath = `/api/v1/signature-templates`;
|
|
80
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
82
|
+
let baseOptions;
|
|
83
|
+
if (configuration) {
|
|
84
|
+
baseOptions = configuration.baseOptions;
|
|
85
|
+
}
|
|
86
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
87
|
+
const localVarHeaderParameter = {};
|
|
88
|
+
const localVarQueryParameter = {};
|
|
89
|
+
// authentication keycloak_auth required
|
|
90
|
+
// http bearer authentication required
|
|
91
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
92
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
93
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
94
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
97
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(signatureTemplateRequest, localVarRequestOptions, configuration);
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Get a template
|
|
106
|
+
* @param {string} id
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
get: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
111
|
+
// verify required parameter 'id' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('get', 'id', id);
|
|
113
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
114
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication keycloak_auth required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
127
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
131
|
+
return {
|
|
132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
}),
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary Create (and send) an envelope from a template
|
|
139
|
+
* @param {string} id
|
|
140
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
instantiate: (id_1, instantiateTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, instantiateTemplateRequest_1, ...args_1], void 0, function* (id, instantiateTemplateRequest, options = {}) {
|
|
145
|
+
// verify required parameter 'id' is not null or undefined
|
|
146
|
+
(0, common_1.assertParamExists)('instantiate', 'id', id);
|
|
147
|
+
// verify required parameter 'instantiateTemplateRequest' is not null or undefined
|
|
148
|
+
(0, common_1.assertParamExists)('instantiate', 'instantiateTemplateRequest', instantiateTemplateRequest);
|
|
149
|
+
const localVarPath = `/api/v1/signature-templates/{id}/envelopes`
|
|
150
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
}
|
|
157
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
158
|
+
const localVarHeaderParameter = {};
|
|
159
|
+
const localVarQueryParameter = {};
|
|
160
|
+
// authentication keycloak_auth required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
163
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
164
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
165
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
168
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(instantiateTemplateRequest, localVarRequestOptions, configuration);
|
|
169
|
+
return {
|
|
170
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
}),
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary List my templates
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
list: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
181
|
+
const localVarPath = `/api/v1/signature-templates`;
|
|
182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
let baseOptions;
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
}
|
|
188
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
189
|
+
const localVarHeaderParameter = {};
|
|
190
|
+
const localVarQueryParameter = {};
|
|
191
|
+
// authentication keycloak_auth required
|
|
192
|
+
// http bearer authentication required
|
|
193
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
194
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Update a template
|
|
206
|
+
* @param {string} id
|
|
207
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
update: (id_1, signatureTemplateRequest_1, ...args_1) => __awaiter(this, [id_1, signatureTemplateRequest_1, ...args_1], void 0, function* (id, signatureTemplateRequest, options = {}) {
|
|
212
|
+
// verify required parameter 'id' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('update', 'id', id);
|
|
214
|
+
// verify required parameter 'signatureTemplateRequest' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('update', 'signatureTemplateRequest', signatureTemplateRequest);
|
|
216
|
+
const localVarPath = `/api/v1/signature-templates/{id}`
|
|
217
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
225
|
+
const localVarHeaderParameter = {};
|
|
226
|
+
const localVarQueryParameter = {};
|
|
227
|
+
// authentication keycloak_auth required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
230
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
231
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(signatureTemplateRequest, localVarRequestOptions, configuration);
|
|
236
|
+
return {
|
|
237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
};
|
|
240
|
+
}),
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
exports.ESignTemplatesApiAxiosParamCreator = ESignTemplatesApiAxiosParamCreator;
|
|
244
|
+
/**
|
|
245
|
+
* ESignTemplatesApi - functional programming interface
|
|
246
|
+
*/
|
|
247
|
+
const ESignTemplatesApiFp = function (configuration) {
|
|
248
|
+
const localVarAxiosParamCreator = (0, exports.ESignTemplatesApiAxiosParamCreator)(configuration);
|
|
249
|
+
return {
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @summary Delete a template
|
|
253
|
+
* @param {string} id
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
_delete(id, options) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
var _a, _b, _c;
|
|
260
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator._delete(id, options);
|
|
261
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
262
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi._delete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
263
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @summary Create a template
|
|
269
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
create1(signatureTemplateRequest, options) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c;
|
|
276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create1(signatureTemplateRequest, options);
|
|
277
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
278
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi.create1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
279
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @summary Get a template
|
|
285
|
+
* @param {string} id
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
get(id, options) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
var _a, _b, _c;
|
|
292
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.get(id, options);
|
|
293
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
294
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi.get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
295
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
296
|
+
});
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @summary Create (and send) an envelope from a template
|
|
301
|
+
* @param {string} id
|
|
302
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
var _a, _b, _c;
|
|
309
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.instantiate(id, instantiateTemplateRequest, options);
|
|
310
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
311
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi.instantiate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
312
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @summary List my templates
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
list(options) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
var _a, _b, _c;
|
|
324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.list(options);
|
|
325
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
326
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
327
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Update a template
|
|
333
|
+
* @param {string} id
|
|
334
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
update(id, signatureTemplateRequest, options) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
var _a, _b, _c;
|
|
341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.update(id, signatureTemplateRequest, options);
|
|
342
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
343
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignTemplatesApi.update']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
344
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
exports.ESignTemplatesApiFp = ESignTemplatesApiFp;
|
|
350
|
+
/**
|
|
351
|
+
* ESignTemplatesApi - factory interface
|
|
352
|
+
*/
|
|
353
|
+
const ESignTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
354
|
+
const localVarFp = (0, exports.ESignTemplatesApiFp)(configuration);
|
|
355
|
+
return {
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary Delete a template
|
|
359
|
+
* @param {string} id
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
_delete(id, options) {
|
|
364
|
+
return localVarFp._delete(id, options).then((request) => request(axios, basePath));
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @summary Create a template
|
|
369
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
create1(signatureTemplateRequest, options) {
|
|
374
|
+
return localVarFp.create1(signatureTemplateRequest, options).then((request) => request(axios, basePath));
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @summary Get a template
|
|
379
|
+
* @param {string} id
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
get(id, options) {
|
|
384
|
+
return localVarFp.get(id, options).then((request) => request(axios, basePath));
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @summary Create (and send) an envelope from a template
|
|
389
|
+
* @param {string} id
|
|
390
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
395
|
+
return localVarFp.instantiate(id, instantiateTemplateRequest, options).then((request) => request(axios, basePath));
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary List my templates
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
list(options) {
|
|
404
|
+
return localVarFp.list(options).then((request) => request(axios, basePath));
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @summary Update a template
|
|
409
|
+
* @param {string} id
|
|
410
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
update(id, signatureTemplateRequest, options) {
|
|
415
|
+
return localVarFp.update(id, signatureTemplateRequest, options).then((request) => request(axios, basePath));
|
|
416
|
+
},
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
exports.ESignTemplatesApiFactory = ESignTemplatesApiFactory;
|
|
420
|
+
/**
|
|
421
|
+
* ESignTemplatesApi - object-oriented interface
|
|
422
|
+
*/
|
|
423
|
+
class ESignTemplatesApi extends base_1.BaseAPI {
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Delete a template
|
|
427
|
+
* @param {string} id
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
_delete(id, options) {
|
|
432
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @summary Create a template
|
|
437
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
create1(signatureTemplateRequest, options) {
|
|
442
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration).create1(signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Get a template
|
|
447
|
+
* @param {string} id
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
get(id, options) {
|
|
452
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration).get(id, options).then((request) => request(this.axios, this.basePath));
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @summary Create (and send) an envelope from a template
|
|
457
|
+
* @param {string} id
|
|
458
|
+
* @param {InstantiateTemplateRequest} instantiateTemplateRequest
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
instantiate(id, instantiateTemplateRequest, options) {
|
|
463
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration).instantiate(id, instantiateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary List my templates
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
list(options) {
|
|
472
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration).list(options).then((request) => request(this.axios, this.basePath));
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @summary Update a template
|
|
477
|
+
* @param {string} id
|
|
478
|
+
* @param {SignatureTemplateRequest} signatureTemplateRequest
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
update(id, signatureTemplateRequest, options) {
|
|
483
|
+
return (0, exports.ESignTemplatesApiFp)(this.configuration).update(id, signatureTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
exports.ESignTemplatesApi = ESignTemplatesApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export * from './api/dashboard-api';
|
|
|
16
16
|
export * from './api/document-controller-api';
|
|
17
17
|
export * from './api/document-suggestion-controller-api';
|
|
18
18
|
export * from './api/document-version-controller-api';
|
|
19
|
+
export * from './api/esign-api';
|
|
20
|
+
export * from './api/esign-public-api';
|
|
21
|
+
export * from './api/esign-templates-api';
|
|
19
22
|
export * from './api/favorites-api';
|
|
20
23
|
export * from './api/file-controller-api';
|
|
21
24
|
export * from './api/folder-controller-api';
|
package/dist/api.js
CHANGED
|
@@ -34,6 +34,9 @@ __exportStar(require("./api/dashboard-api"), exports);
|
|
|
34
34
|
__exportStar(require("./api/document-controller-api"), exports);
|
|
35
35
|
__exportStar(require("./api/document-suggestion-controller-api"), exports);
|
|
36
36
|
__exportStar(require("./api/document-version-controller-api"), exports);
|
|
37
|
+
__exportStar(require("./api/esign-api"), exports);
|
|
38
|
+
__exportStar(require("./api/esign-public-api"), exports);
|
|
39
|
+
__exportStar(require("./api/esign-templates-api"), exports);
|
|
37
40
|
__exportStar(require("./api/favorites-api"), exports);
|
|
38
41
|
__exportStar(require("./api/file-controller-api"), exports);
|
|
39
42
|
__exportStar(require("./api/folder-controller-api"), exports);
|