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