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