@emilgroup/document-sdk-node 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +45 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/document-templates-api.ts +675 -0
- package/api/documents-api.ts +762 -0
- package/api/layouts-api.ts +661 -0
- package/api/searchable-document-owners-api.ts +232 -0
- package/api/searchable-documents-api.ts +180 -0
- package/api.ts +44 -0
- package/base.ts +255 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/document-templates-api.d.ts +372 -0
- package/dist/api/document-templates-api.js +628 -0
- package/dist/api/documents-api.d.ts +424 -0
- package/dist/api/documents-api.js +723 -0
- package/dist/api/layouts-api.d.ts +363 -0
- package/dist/api/layouts-api.js +622 -0
- package/dist/api/searchable-document-owners-api.d.ts +137 -0
- package/dist/api/searchable-document-owners-api.js +254 -0
- package/dist/api/searchable-documents-api.d.ts +101 -0
- package/dist/api/searchable-documents-api.js +233 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +76 -0
- package/dist/base.js +364 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/create-doc-template-request-dto.d.ts +43 -0
- package/dist/models/create-doc-template-request-dto.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +143 -0
- package/dist/models/create-document-request-dto.js +65 -0
- package/dist/models/create-html-template-dto.d.ts +24 -0
- package/dist/models/create-html-template-dto.js +15 -0
- package/dist/models/create-layout-request-dto.d.ts +49 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +103 -0
- package/dist/models/create-presigned-post-request-dto.js +51 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/doc-template-class.d.ts +80 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +150 -0
- package/dist/models/document-class.js +61 -0
- package/dist/models/download-document-request-dto.d.ts +30 -0
- package/dist/models/download-document-request-dto.js +15 -0
- package/dist/models/get-doc-template-request-dto.d.ts +30 -0
- package/dist/models/get-doc-template-request-dto.js +15 -0
- package/dist/models/get-doc-template-response-class.d.ts +25 -0
- package/dist/models/get-doc-template-response-class.js +15 -0
- package/dist/models/get-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-document-download-url-response-class.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +66 -0
- package/dist/models/html-template-class.js +21 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +44 -0
- package/dist/models/layout-class.d.ts +79 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +31 -0
- package/dist/models/list-doc-templates-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +31 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +24 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +30 -0
- package/dist/models/list-searchable-documents-request-dto.js +15 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +30 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +49 -0
- package/dist/models/update-doc-template-request-dto.js +15 -0
- package/dist/models/update-doc-template-response-class.d.ts +25 -0
- package/dist/models/update-doc-template-response-class.js +15 -0
- package/dist/models/update-document-request-dto.d.ts +48 -0
- package/dist/models/update-document-request-dto.js +15 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-doc-template-request-dto.ts +49 -0
- package/models/create-document-request-dto.ts +155 -0
- package/models/create-html-template-dto.ts +30 -0
- package/models/create-layout-request-dto.ts +55 -0
- package/models/create-presigned-post-request-dto.ts +113 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-layout-request-dto.ts +30 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/doc-template-class.ts +86 -0
- package/models/document-class.ts +161 -0
- package/models/download-document-request-dto.ts +36 -0
- package/models/get-doc-template-request-dto.ts +36 -0
- package/models/get-doc-template-response-class.ts +31 -0
- package/models/get-document-download-url-response-class.ts +30 -0
- package/models/get-layout-request-dto.ts +30 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/html-template-class.ts +75 -0
- package/models/index.ts +28 -0
- package/models/layout-class.ts +85 -0
- package/models/list-doc-templates-response-class.ts +37 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/list-layouts-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/list-searchable-document-owners-response-class.ts +30 -0
- package/models/list-searchable-documents-request-dto.ts +36 -0
- package/models/list-searchable-documents-response-class.ts +36 -0
- package/models/update-doc-template-request-dto.ts +55 -0
- package/models/update-doc-template-response-class.ts +31 -0
- package/models/update-document-request-dto.ts +54 -0
- package/models/update-layout-request-dto.ts +61 -0
- package/models/update-layout-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateLayoutRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetLayoutResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListLayoutsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UpdateLayoutRequestDto } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateLayoutResponseClass } from '../models';
|
|
33
|
+
// URLSearchParams not necessarily used
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { URL, URLSearchParams } from 'url';
|
|
36
|
+
const FormData = require('form-data');
|
|
37
|
+
/**
|
|
38
|
+
* LayoutsApi - axios parameter creator
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const LayoutsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
|
+
return {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
46
|
+
* @param {string} [authorization] Bearer Token
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
createLayout: async (createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
|
+
// verify required parameter 'createLayoutRequestDto' is not null or undefined
|
|
52
|
+
assertParamExists('createLayout', 'createLayoutRequestDto', createLayoutRequestDto)
|
|
53
|
+
const localVarPath = `/documentservice/v1/layouts`;
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLayoutRequestDto, localVarRequestOptions, configuration)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @param {number} id
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deleteLayout: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'id' is not null or undefined
|
|
98
|
+
assertParamExists('deleteLayout', 'id', id)
|
|
99
|
+
const localVarPath = `/documentservice/v1/layouts/{id}`
|
|
100
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @param {string} id
|
|
136
|
+
* @param {number} id2 Layout id
|
|
137
|
+
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
getLayout: async (id: string, id2: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
// verify required parameter 'id' is not null or undefined
|
|
143
|
+
assertParamExists('getLayout', 'id', id)
|
|
144
|
+
// verify required parameter 'id2' is not null or undefined
|
|
145
|
+
assertParamExists('getLayout', 'id2', id2)
|
|
146
|
+
const localVarPath = `/documentservice/v1/layouts/{id}`
|
|
147
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
let baseAccessToken;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
baseAccessToken = configuration.accessToken;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
158
|
+
const localVarHeaderParameter = {} as any;
|
|
159
|
+
const localVarQueryParameter = {} as any;
|
|
160
|
+
|
|
161
|
+
// authentication bearer required
|
|
162
|
+
// http bearer authentication required
|
|
163
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
|
+
|
|
165
|
+
if (id2 !== undefined) {
|
|
166
|
+
localVarQueryParameter['id'] = id2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
url: toPathString(localVarUrlObj),
|
|
181
|
+
options: localVarRequestOptions,
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @param {string} [authorization] Bearer Token
|
|
187
|
+
* @param {number} [pageSize] Page size
|
|
188
|
+
* @param {string} [pageToken] Page token
|
|
189
|
+
* @param {string} [filter] List filter
|
|
190
|
+
* @param {string} [search] Search query
|
|
191
|
+
* @param {string} [order] Ordering criteria
|
|
192
|
+
* @param {string} [expand] Extra fields to fetch
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
listLayouts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
+
const localVarPath = `/documentservice/v1/layouts`;
|
|
198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
200
|
+
let baseOptions;
|
|
201
|
+
let baseAccessToken;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
baseAccessToken = configuration.accessToken;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
208
|
+
const localVarHeaderParameter = {} as any;
|
|
209
|
+
const localVarQueryParameter = {} as any;
|
|
210
|
+
|
|
211
|
+
// authentication bearer required
|
|
212
|
+
// http bearer authentication required
|
|
213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
|
+
|
|
215
|
+
if (pageSize !== undefined) {
|
|
216
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (pageToken !== undefined) {
|
|
220
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (filter !== undefined) {
|
|
224
|
+
localVarQueryParameter['filter'] = filter;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (search !== undefined) {
|
|
228
|
+
localVarQueryParameter['search'] = search;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (order !== undefined) {
|
|
232
|
+
localVarQueryParameter['order'] = order;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (expand !== undefined) {
|
|
236
|
+
localVarQueryParameter['expand'] = expand;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
240
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
248
|
+
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @param {number} id
|
|
257
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
258
|
+
* @param {string} [authorization] Bearer Token
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
updateLayout: async (id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'id' is not null or undefined
|
|
264
|
+
assertParamExists('updateLayout', 'id', id)
|
|
265
|
+
// verify required parameter 'updateLayoutRequestDto' is not null or undefined
|
|
266
|
+
assertParamExists('updateLayout', 'updateLayoutRequestDto', updateLayoutRequestDto)
|
|
267
|
+
const localVarPath = `/documentservice/v1/layouts/{id}`
|
|
268
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
+
let baseOptions;
|
|
272
|
+
let baseAccessToken;
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
baseAccessToken = configuration.accessToken;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
279
|
+
const localVarHeaderParameter = {} as any;
|
|
280
|
+
const localVarQueryParameter = {} as any;
|
|
281
|
+
|
|
282
|
+
// authentication bearer required
|
|
283
|
+
// http bearer authentication required
|
|
284
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
285
|
+
|
|
286
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
293
|
+
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLayoutRequestDto, localVarRequestOptions, configuration)
|
|
298
|
+
|
|
299
|
+
return {
|
|
300
|
+
url: toPathString(localVarUrlObj),
|
|
301
|
+
options: localVarRequestOptions,
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* LayoutsApi - functional programming interface
|
|
309
|
+
* @export
|
|
310
|
+
*/
|
|
311
|
+
export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
312
|
+
const localVarAxiosParamCreator = LayoutsApiAxiosParamCreator(configuration)
|
|
313
|
+
return {
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
317
|
+
* @param {string} [authorization] Bearer Token
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
async createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLayout(createLayoutRequestDto, authorization, options);
|
|
323
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @param {number} id
|
|
328
|
+
* @param {string} [authorization] Bearer Token
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
async deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
333
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLayout(id, authorization, options);
|
|
334
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @param {string} id
|
|
339
|
+
* @param {number} id2 Layout id
|
|
340
|
+
* @param {string} [authorization] Bearer Token
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
async getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLayoutResponseClass>> {
|
|
345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLayout(id, id2, authorization, options);
|
|
346
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @param {string} [authorization] Bearer Token
|
|
351
|
+
* @param {number} [pageSize] Page size
|
|
352
|
+
* @param {string} [pageToken] Page token
|
|
353
|
+
* @param {string} [filter] List filter
|
|
354
|
+
* @param {string} [search] Search query
|
|
355
|
+
* @param {string} [order] Ordering criteria
|
|
356
|
+
* @param {string} [expand] Extra fields to fetch
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
async listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>> {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
362
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @param {number} id
|
|
367
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
async updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLayoutResponseClass>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLayout(id, updateLayoutRequestDto, authorization, options);
|
|
374
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
+
},
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* LayoutsApi - factory interface
|
|
381
|
+
* @export
|
|
382
|
+
*/
|
|
383
|
+
export const LayoutsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
384
|
+
const localVarFp = LayoutsApiFp(configuration)
|
|
385
|
+
return {
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
389
|
+
* @param {string} [authorization] Bearer Token
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
394
|
+
return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
395
|
+
},
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @param {number} id
|
|
399
|
+
* @param {string} [authorization] Bearer Token
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<object> {
|
|
404
|
+
return localVarFp.deleteLayout(id, authorization, options).then((request) => request(axios, basePath));
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @param {string} id
|
|
409
|
+
* @param {number} id2 Layout id
|
|
410
|
+
* @param {string} [authorization] Bearer Token
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetLayoutResponseClass> {
|
|
415
|
+
return localVarFp.getLayout(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @param {string} [authorization] Bearer Token
|
|
420
|
+
* @param {number} [pageSize] Page size
|
|
421
|
+
* @param {string} [pageToken] Page token
|
|
422
|
+
* @param {string} [filter] List filter
|
|
423
|
+
* @param {string} [search] Search query
|
|
424
|
+
* @param {string} [order] Ordering criteria
|
|
425
|
+
* @param {string} [expand] Extra fields to fetch
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListLayoutsResponseClass> {
|
|
430
|
+
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @param {number} id
|
|
435
|
+
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
436
|
+
* @param {string} [authorization] Bearer Token
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLayoutResponseClass> {
|
|
441
|
+
return localVarFp.updateLayout(id, updateLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Request parameters for createLayout operation in LayoutsApi.
|
|
448
|
+
* @export
|
|
449
|
+
* @interface LayoutsApiCreateLayoutRequest
|
|
450
|
+
*/
|
|
451
|
+
export interface LayoutsApiCreateLayoutRequest {
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @type {CreateLayoutRequestDto}
|
|
455
|
+
* @memberof LayoutsApiCreateLayout
|
|
456
|
+
*/
|
|
457
|
+
readonly createLayoutRequestDto: CreateLayoutRequestDto
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Bearer Token
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof LayoutsApiCreateLayout
|
|
463
|
+
*/
|
|
464
|
+
readonly authorization?: string
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Request parameters for deleteLayout operation in LayoutsApi.
|
|
469
|
+
* @export
|
|
470
|
+
* @interface LayoutsApiDeleteLayoutRequest
|
|
471
|
+
*/
|
|
472
|
+
export interface LayoutsApiDeleteLayoutRequest {
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {number}
|
|
476
|
+
* @memberof LayoutsApiDeleteLayout
|
|
477
|
+
*/
|
|
478
|
+
readonly id: number
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Bearer Token
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof LayoutsApiDeleteLayout
|
|
484
|
+
*/
|
|
485
|
+
readonly authorization?: string
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Request parameters for getLayout operation in LayoutsApi.
|
|
490
|
+
* @export
|
|
491
|
+
* @interface LayoutsApiGetLayoutRequest
|
|
492
|
+
*/
|
|
493
|
+
export interface LayoutsApiGetLayoutRequest {
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @type {string}
|
|
497
|
+
* @memberof LayoutsApiGetLayout
|
|
498
|
+
*/
|
|
499
|
+
readonly id: string
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Layout id
|
|
503
|
+
* @type {number}
|
|
504
|
+
* @memberof LayoutsApiGetLayout
|
|
505
|
+
*/
|
|
506
|
+
readonly id2: number
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Bearer Token
|
|
510
|
+
* @type {string}
|
|
511
|
+
* @memberof LayoutsApiGetLayout
|
|
512
|
+
*/
|
|
513
|
+
readonly authorization?: string
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Request parameters for listLayouts operation in LayoutsApi.
|
|
518
|
+
* @export
|
|
519
|
+
* @interface LayoutsApiListLayoutsRequest
|
|
520
|
+
*/
|
|
521
|
+
export interface LayoutsApiListLayoutsRequest {
|
|
522
|
+
/**
|
|
523
|
+
* Bearer Token
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof LayoutsApiListLayouts
|
|
526
|
+
*/
|
|
527
|
+
readonly authorization?: string
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Page size
|
|
531
|
+
* @type {number}
|
|
532
|
+
* @memberof LayoutsApiListLayouts
|
|
533
|
+
*/
|
|
534
|
+
readonly pageSize?: number
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Page token
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof LayoutsApiListLayouts
|
|
540
|
+
*/
|
|
541
|
+
readonly pageToken?: string
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* List filter
|
|
545
|
+
* @type {string}
|
|
546
|
+
* @memberof LayoutsApiListLayouts
|
|
547
|
+
*/
|
|
548
|
+
readonly filter?: string
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Search query
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @memberof LayoutsApiListLayouts
|
|
554
|
+
*/
|
|
555
|
+
readonly search?: string
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Ordering criteria
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof LayoutsApiListLayouts
|
|
561
|
+
*/
|
|
562
|
+
readonly order?: string
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Extra fields to fetch
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof LayoutsApiListLayouts
|
|
568
|
+
*/
|
|
569
|
+
readonly expand?: string
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Request parameters for updateLayout operation in LayoutsApi.
|
|
574
|
+
* @export
|
|
575
|
+
* @interface LayoutsApiUpdateLayoutRequest
|
|
576
|
+
*/
|
|
577
|
+
export interface LayoutsApiUpdateLayoutRequest {
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {number}
|
|
581
|
+
* @memberof LayoutsApiUpdateLayout
|
|
582
|
+
*/
|
|
583
|
+
readonly id: number
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {UpdateLayoutRequestDto}
|
|
588
|
+
* @memberof LayoutsApiUpdateLayout
|
|
589
|
+
*/
|
|
590
|
+
readonly updateLayoutRequestDto: UpdateLayoutRequestDto
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Bearer Token
|
|
594
|
+
* @type {string}
|
|
595
|
+
* @memberof LayoutsApiUpdateLayout
|
|
596
|
+
*/
|
|
597
|
+
readonly authorization?: string
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* LayoutsApi - object-oriented interface
|
|
602
|
+
* @export
|
|
603
|
+
* @class LayoutsApi
|
|
604
|
+
* @extends {BaseAPI}
|
|
605
|
+
*/
|
|
606
|
+
export class LayoutsApi extends BaseAPI {
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
* @memberof LayoutsApi
|
|
613
|
+
*/
|
|
614
|
+
public createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig) {
|
|
615
|
+
return LayoutsApiFp(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
* @memberof LayoutsApi
|
|
624
|
+
*/
|
|
625
|
+
public deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig) {
|
|
626
|
+
return LayoutsApiFp(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof LayoutsApi
|
|
635
|
+
*/
|
|
636
|
+
public getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig) {
|
|
637
|
+
return LayoutsApiFp(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
* @memberof LayoutsApi
|
|
646
|
+
*/
|
|
647
|
+
public listLayouts(requestParameters: LayoutsApiListLayoutsRequest = {}, options?: AxiosRequestConfig) {
|
|
648
|
+
return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @memberof LayoutsApi
|
|
657
|
+
*/
|
|
658
|
+
public updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig) {
|
|
659
|
+
return LayoutsApiFp(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
+
}
|
|
661
|
+
}
|