@emilgroup/document-sdk-node 1.21.0 → 1.22.1-beta.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 +0 -38
- package/README.md +2 -2
- package/api/default-api.ts +8 -4
- package/api/document-templates-api.ts +79 -75
- package/api/documents-api.ts +42 -38
- package/api/docx-templates-api.ts +16 -28
- package/api/layouts-api.ts +18 -28
- package/api/product-documents-api.ts +47 -238
- package/api/search-keywords-api.ts +2 -4
- package/api/searchable-document-owners-api.ts +2 -4
- package/api/searchable-documents-api.ts +20 -20
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/document-templates-api.d.ts +62 -67
- package/dist/api/document-templates-api.js +55 -42
- package/dist/api/documents-api.d.ts +39 -36
- package/dist/api/documents-api.js +21 -13
- package/dist/api/docx-templates-api.d.ts +22 -28
- package/dist/api/docx-templates-api.js +4 -4
- package/dist/api/layouts-api.d.ts +23 -28
- package/dist/api/layouts-api.js +8 -8
- package/dist/api/product-documents-api.d.ts +37 -150
- package/dist/api/product-documents-api.js +29 -155
- package/dist/api/search-keywords-api.d.ts +3 -4
- package/dist/api/searchable-document-owners-api.d.ts +3 -4
- package/dist/api/searchable-documents-api.d.ts +16 -17
- package/dist/api/searchable-documents-api.js +15 -13
- package/dist/models/create-doc-template-request-dto.d.ts +2 -2
- package/dist/models/create-document-request-dto.d.ts +11 -10
- package/dist/models/create-document-request-dto.js +2 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +5 -4
- package/dist/models/create-presigned-post-request-dto.js +2 -1
- package/dist/models/index.d.ts +0 -38
- package/dist/models/index.js +0 -38
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +1 -8
- package/dist/models/list-searchable-document-owners-request-dto.js +0 -7
- package/dist/models/list-searchable-documents-request-dto.d.ts +1 -8
- package/dist/models/list-searchable-documents-request-dto.js +0 -7
- package/dist/models/update-doc-template-request-dto.d.ts +2 -2
- package/dist/models/update-document-request-dto.d.ts +5 -5
- package/dist/models/upload-docx-template-request-dto.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +2 -2
- package/models/create-doc-template-request-dto.ts +2 -2
- package/models/create-document-request-dto.ts +12 -11
- package/models/create-presigned-post-request-dto.ts +6 -5
- package/models/index.ts +0 -38
- package/models/list-searchable-document-owners-request-dto.ts +1 -11
- package/models/list-searchable-documents-request-dto.ts +1 -11
- package/models/update-doc-template-request-dto.ts +2 -2
- package/models/update-document-request-dto.ts +5 -5
- package/models/upload-docx-template-request-dto.ts +1 -1
- package/models/upload-product-document-request-dto.ts +2 -2
- package/package.json +1 -1
- package/dist/models/create-doc-template-response-class.d.ts +0 -25
- package/dist/models/create-doc-template-response-class.js +0 -15
- package/dist/models/create-document-sync-response-class.d.ts +0 -25
- package/dist/models/create-document-sync-response-class.js +0 -15
- package/dist/models/create-layout-response-class.d.ts +0 -25
- package/dist/models/create-layout-response-class.js +0 -15
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/dist/models/delete-response-class.d.ts +0 -24
- package/dist/models/delete-response-class.js +0 -15
- package/dist/models/doc-template-class.d.ts +0 -92
- package/dist/models/doc-template-class.js +0 -15
- package/dist/models/document-class.d.ts +0 -158
- package/dist/models/document-class.js +0 -52
- package/dist/models/docx-template-class.d.ts +0 -90
- package/dist/models/docx-template-class.js +0 -15
- package/dist/models/download-document-request-dto.d.ts +0 -30
- package/dist/models/download-document-request-dto.js +0 -15
- package/dist/models/get-doc-template-request-dto.d.ts +0 -30
- package/dist/models/get-doc-template-request-dto.js +0 -15
- package/dist/models/get-doc-template-response-class.d.ts +0 -25
- package/dist/models/get-doc-template-response-class.js +0 -15
- package/dist/models/get-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-document-download-url-response-class.js +0 -15
- package/dist/models/get-docx-template-download-url-response-class.d.ts +0 -24
- package/dist/models/get-docx-template-download-url-response-class.js +0 -15
- package/dist/models/get-docx-template-response-class.d.ts +0 -25
- package/dist/models/get-docx-template-response-class.js +0 -15
- package/dist/models/get-layout-response-class.d.ts +0 -25
- package/dist/models/get-layout-response-class.js +0 -15
- package/dist/models/get-product-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-product-document-download-url-response-class.js +0 -15
- package/dist/models/get-product-document-response-class.d.ts +0 -25
- package/dist/models/get-product-document-response-class.js +0 -15
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
- package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +0 -55
- package/dist/models/grpc-create-doc-template-request-dto.js +0 -15
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +0 -61
- package/dist/models/grpc-update-doc-template-request-dto.js +0 -15
- package/dist/models/html-template-class.d.ts +0 -66
- package/dist/models/html-template-class.js +0 -21
- package/dist/models/layout-class.d.ts +0 -79
- package/dist/models/layout-class.js +0 -15
- package/dist/models/list-doc-template-request-dto.d.ts +0 -54
- package/dist/models/list-doc-template-request-dto.js +0 -15
- package/dist/models/list-doc-templates-response-class.d.ts +0 -31
- package/dist/models/list-doc-templates-response-class.js +0 -15
- package/dist/models/list-documents-response-class.d.ts +0 -31
- package/dist/models/list-documents-response-class.js +0 -15
- package/dist/models/list-docx-templates-response-class.d.ts +0 -31
- package/dist/models/list-docx-templates-response-class.js +0 -15
- package/dist/models/list-layouts-response-class.d.ts +0 -31
- package/dist/models/list-layouts-response-class.js +0 -15
- package/dist/models/list-product-documents-response-class.d.ts +0 -31
- package/dist/models/list-product-documents-response-class.js +0 -15
- package/dist/models/list-search-keywords-response-class.d.ts +0 -24
- package/dist/models/list-search-keywords-response-class.js +0 -15
- package/dist/models/list-searchable-document-owners-response-class.d.ts +0 -25
- package/dist/models/list-searchable-document-owners-response-class.js +0 -15
- package/dist/models/list-searchable-documents-response-class.d.ts +0 -31
- package/dist/models/list-searchable-documents-response-class.js +0 -15
- package/dist/models/product-document-class.d.ts +0 -117
- package/dist/models/product-document-class.js +0 -24
- package/dist/models/searchable-document-class.d.ts +0 -66
- package/dist/models/searchable-document-class.js +0 -15
- package/dist/models/searchable-document-owner-class.d.ts +0 -30
- package/dist/models/searchable-document-owner-class.js +0 -15
- package/dist/models/update-doc-template-response-class.d.ts +0 -25
- package/dist/models/update-doc-template-response-class.js +0 -15
- package/dist/models/update-document-response-class.d.ts +0 -25
- package/dist/models/update-document-response-class.js +0 -15
- package/dist/models/update-docx-template-response-class.d.ts +0 -25
- package/dist/models/update-docx-template-response-class.js +0 -15
- package/dist/models/update-layout-response-class.d.ts +0 -25
- package/dist/models/update-layout-response-class.js +0 -15
- package/models/create-doc-template-response-class.ts +0 -31
- package/models/create-document-sync-response-class.ts +0 -31
- package/models/create-layout-response-class.ts +0 -31
- package/models/create-presigned-post-response-class.ts +0 -36
- package/models/delete-response-class.ts +0 -30
- package/models/doc-template-class.ts +0 -98
- package/models/document-class.ts +0 -168
- package/models/docx-template-class.ts +0 -96
- package/models/download-document-request-dto.ts +0 -36
- package/models/get-doc-template-request-dto.ts +0 -36
- package/models/get-doc-template-response-class.ts +0 -31
- package/models/get-document-download-url-response-class.ts +0 -30
- package/models/get-docx-template-download-url-response-class.ts +0 -30
- package/models/get-docx-template-response-class.ts +0 -31
- package/models/get-layout-response-class.ts +0 -31
- package/models/get-product-document-download-url-response-class.ts +0 -30
- package/models/get-product-document-response-class.ts +0 -31
- package/models/get-signed-s3-key-url-response-class.ts +0 -30
- package/models/grpc-create-doc-template-request-dto.ts +0 -61
- package/models/grpc-update-doc-template-request-dto.ts +0 -67
- package/models/html-template-class.ts +0 -75
- package/models/layout-class.ts +0 -85
- package/models/list-doc-template-request-dto.ts +0 -60
- package/models/list-doc-templates-response-class.ts +0 -37
- package/models/list-documents-response-class.ts +0 -37
- package/models/list-docx-templates-response-class.ts +0 -37
- package/models/list-layouts-response-class.ts +0 -37
- package/models/list-product-documents-response-class.ts +0 -37
- package/models/list-search-keywords-response-class.ts +0 -30
- package/models/list-searchable-document-owners-response-class.ts +0 -31
- package/models/list-searchable-documents-response-class.ts +0 -37
- package/models/product-document-class.ts +0 -126
- package/models/searchable-document-class.ts +0 -72
- package/models/searchable-document-owner-class.ts +0 -36
- package/models/update-doc-template-response-class.ts +0 -31
- package/models/update-document-response-class.ts +0 -31
- package/models/update-docx-template-response-class.ts +0 -31
- package/models/update-layout-response-class.ts +0 -31
package/api/documents-api.ts
CHANGED
|
@@ -23,21 +23,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateDocumentRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { CreateDocumentSyncResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
26
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
29
27
|
// @ts-ignore
|
|
30
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { ListDocumentsResponseClass } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
28
|
import { UpdateDocumentRequestDto } from '../models';
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
import { UpdateDocumentResponseClass } from '../models';
|
|
41
29
|
// URLSearchParams not necessarily used
|
|
42
30
|
// @ts-ignore
|
|
43
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -190,14 +178,17 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
190
178
|
/**
|
|
191
179
|
* This will return a presigned URL to download the document.
|
|
192
180
|
* @summary Fetches a document download URL
|
|
193
|
-
* @param {string} code
|
|
181
|
+
* @param {string} code Document code
|
|
182
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
194
183
|
* @param {string} [authorization] Bearer Token
|
|
195
184
|
* @param {*} [options] Override http request option.
|
|
196
185
|
* @throws {RequiredError}
|
|
197
186
|
*/
|
|
198
|
-
getDocumentDownloadUrl: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
+
getDocumentDownloadUrl: async (code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
188
|
// verify required parameter 'code' is not null or undefined
|
|
200
189
|
assertParamExists('getDocumentDownloadUrl', 'code', code)
|
|
190
|
+
// verify required parameter 'contentDisposition' is not null or undefined
|
|
191
|
+
assertParamExists('getDocumentDownloadUrl', 'contentDisposition', contentDisposition)
|
|
201
192
|
const localVarPath = `/documentservice/v1/documents/{code}/download-url`
|
|
202
193
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
203
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -217,6 +208,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
217
208
|
// http bearer authentication required
|
|
218
209
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
219
210
|
|
|
211
|
+
if (contentDisposition !== undefined) {
|
|
212
|
+
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
213
|
+
}
|
|
214
|
+
|
|
220
215
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
221
216
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
222
217
|
}
|
|
@@ -281,7 +276,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
281
276
|
};
|
|
282
277
|
},
|
|
283
278
|
/**
|
|
284
|
-
* Returns a list of documents you have previously created.
|
|
279
|
+
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
285
280
|
* @summary List documents
|
|
286
281
|
* @param {string} [authorization] Bearer Token
|
|
287
282
|
* @param {number} [pageSize] Page size
|
|
@@ -425,7 +420,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
425
420
|
* @param {*} [options] Override http request option.
|
|
426
421
|
* @throws {RequiredError}
|
|
427
422
|
*/
|
|
428
|
-
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
423
|
+
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
429
424
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDocument(createDocumentRequestDto, authorization, options);
|
|
430
425
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
426
|
},
|
|
@@ -437,7 +432,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
437
432
|
* @param {*} [options] Override http request option.
|
|
438
433
|
* @throws {RequiredError}
|
|
439
434
|
*/
|
|
440
|
-
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
435
|
+
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
441
436
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
|
|
442
437
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
443
438
|
},
|
|
@@ -449,20 +444,21 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
449
444
|
* @param {*} [options] Override http request option.
|
|
450
445
|
* @throws {RequiredError}
|
|
451
446
|
*/
|
|
452
|
-
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
447
|
+
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
453
448
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
|
|
454
449
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
455
450
|
},
|
|
456
451
|
/**
|
|
457
452
|
* This will return a presigned URL to download the document.
|
|
458
453
|
* @summary Fetches a document download URL
|
|
459
|
-
* @param {string} code
|
|
454
|
+
* @param {string} code Document code
|
|
455
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
460
456
|
* @param {string} [authorization] Bearer Token
|
|
461
457
|
* @param {*} [options] Override http request option.
|
|
462
458
|
* @throws {RequiredError}
|
|
463
459
|
*/
|
|
464
|
-
async getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
465
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, options);
|
|
460
|
+
async getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, contentDisposition, authorization, options);
|
|
466
462
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
467
463
|
},
|
|
468
464
|
/**
|
|
@@ -473,12 +469,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
473
469
|
* @param {*} [options] Override http request option.
|
|
474
470
|
* @throws {RequiredError}
|
|
475
471
|
*/
|
|
476
|
-
async getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
472
|
+
async getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
477
473
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options);
|
|
478
474
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
479
475
|
},
|
|
480
476
|
/**
|
|
481
|
-
* Returns a list of documents you have previously created.
|
|
477
|
+
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
482
478
|
* @summary List documents
|
|
483
479
|
* @param {string} [authorization] Bearer Token
|
|
484
480
|
* @param {number} [pageSize] Page size
|
|
@@ -491,7 +487,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
491
487
|
* @param {*} [options] Override http request option.
|
|
492
488
|
* @throws {RequiredError}
|
|
493
489
|
*/
|
|
494
|
-
async listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
490
|
+
async listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
495
491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
496
492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
493
|
},
|
|
@@ -504,7 +500,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
504
500
|
* @param {*} [options] Override http request option.
|
|
505
501
|
* @throws {RequiredError}
|
|
506
502
|
*/
|
|
507
|
-
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
503
|
+
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
508
504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocument(code, updateDocumentRequestDto, authorization, options);
|
|
509
505
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
510
506
|
},
|
|
@@ -526,7 +522,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
526
522
|
* @param {*} [options] Override http request option.
|
|
527
523
|
* @throws {RequiredError}
|
|
528
524
|
*/
|
|
529
|
-
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
525
|
+
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
530
526
|
return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
531
527
|
},
|
|
532
528
|
/**
|
|
@@ -537,7 +533,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
537
533
|
* @param {*} [options] Override http request option.
|
|
538
534
|
* @throws {RequiredError}
|
|
539
535
|
*/
|
|
540
|
-
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
536
|
+
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
541
537
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
542
538
|
},
|
|
543
539
|
/**
|
|
@@ -548,19 +544,20 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
548
544
|
* @param {*} [options] Override http request option.
|
|
549
545
|
* @throws {RequiredError}
|
|
550
546
|
*/
|
|
551
|
-
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
547
|
+
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
552
548
|
return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
|
|
553
549
|
},
|
|
554
550
|
/**
|
|
555
551
|
* This will return a presigned URL to download the document.
|
|
556
552
|
* @summary Fetches a document download URL
|
|
557
|
-
* @param {string} code
|
|
553
|
+
* @param {string} code Document code
|
|
554
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
558
555
|
* @param {string} [authorization] Bearer Token
|
|
559
556
|
* @param {*} [options] Override http request option.
|
|
560
557
|
* @throws {RequiredError}
|
|
561
558
|
*/
|
|
562
|
-
getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
563
|
-
return localVarFp.getDocumentDownloadUrl(code, authorization, options).then((request) => request(axios, basePath));
|
|
559
|
+
getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
|
|
560
|
+
return localVarFp.getDocumentDownloadUrl(code, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
564
561
|
},
|
|
565
562
|
/**
|
|
566
563
|
* This will return a presigned URL for a random S3 key
|
|
@@ -570,11 +567,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
570
567
|
* @param {*} [options] Override http request option.
|
|
571
568
|
* @throws {RequiredError}
|
|
572
569
|
*/
|
|
573
|
-
getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<
|
|
570
|
+
getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
574
571
|
return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then((request) => request(axios, basePath));
|
|
575
572
|
},
|
|
576
573
|
/**
|
|
577
|
-
* Returns a list of documents you have previously created.
|
|
574
|
+
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
578
575
|
* @summary List documents
|
|
579
576
|
* @param {string} [authorization] Bearer Token
|
|
580
577
|
* @param {number} [pageSize] Page size
|
|
@@ -587,7 +584,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
587
584
|
* @param {*} [options] Override http request option.
|
|
588
585
|
* @throws {RequiredError}
|
|
589
586
|
*/
|
|
590
|
-
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
587
|
+
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
591
588
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
592
589
|
},
|
|
593
590
|
/**
|
|
@@ -599,7 +596,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
599
596
|
* @param {*} [options] Override http request option.
|
|
600
597
|
* @throws {RequiredError}
|
|
601
598
|
*/
|
|
602
|
-
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
599
|
+
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
603
600
|
return localVarFp.updateDocument(code, updateDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
604
601
|
},
|
|
605
602
|
};
|
|
@@ -675,12 +672,19 @@ export interface DocumentsApiDeleteDocumentRequest {
|
|
|
675
672
|
*/
|
|
676
673
|
export interface DocumentsApiGetDocumentDownloadUrlRequest {
|
|
677
674
|
/**
|
|
678
|
-
*
|
|
675
|
+
* Document code
|
|
679
676
|
* @type {string}
|
|
680
677
|
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
681
678
|
*/
|
|
682
679
|
readonly code: string
|
|
683
680
|
|
|
681
|
+
/**
|
|
682
|
+
* Content disposition override. Default will be depending on the document type.
|
|
683
|
+
* @type {'attachment' | 'inline'}
|
|
684
|
+
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
685
|
+
*/
|
|
686
|
+
readonly contentDisposition: 'attachment' | 'inline'
|
|
687
|
+
|
|
684
688
|
/**
|
|
685
689
|
* Bearer Token
|
|
686
690
|
* @type {string}
|
|
@@ -853,7 +857,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
853
857
|
* @memberof DocumentsApi
|
|
854
858
|
*/
|
|
855
859
|
public getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
856
|
-
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
857
861
|
}
|
|
858
862
|
|
|
859
863
|
/**
|
|
@@ -869,7 +873,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
869
873
|
}
|
|
870
874
|
|
|
871
875
|
/**
|
|
872
|
-
* Returns a list of documents you have previously created.
|
|
876
|
+
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
873
877
|
* @summary List documents
|
|
874
878
|
* @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
|
|
875
879
|
* @param {*} [options] Override http request option.
|
|
@@ -21,20 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { DeleteResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { GetDocxTemplateResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ListDocxTemplatesResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
24
|
import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
35
25
|
// @ts-ignore
|
|
36
|
-
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
26
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
39
27
|
// URLSearchParams not necessarily used
|
|
40
28
|
// @ts-ignore
|
|
@@ -182,7 +170,7 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
182
170
|
};
|
|
183
171
|
},
|
|
184
172
|
/**
|
|
185
|
-
* Returns a list of docx templates you have previously created.
|
|
173
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
186
174
|
* @summary List docx templates
|
|
187
175
|
* @param {string} [authorization] Bearer Token
|
|
188
176
|
* @param {number} [pageSize] Page size
|
|
@@ -373,7 +361,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
373
361
|
* @param {*} [options] Override http request option.
|
|
374
362
|
* @throws {RequiredError}
|
|
375
363
|
*/
|
|
376
|
-
async deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
364
|
+
async deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
377
365
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocxTemplate(code, authorization, options);
|
|
378
366
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
367
|
},
|
|
@@ -385,7 +373,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
385
373
|
* @param {*} [options] Override http request option.
|
|
386
374
|
* @throws {RequiredError}
|
|
387
375
|
*/
|
|
388
|
-
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
376
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
389
377
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
390
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
379
|
},
|
|
@@ -397,12 +385,12 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
397
385
|
* @param {*} [options] Override http request option.
|
|
398
386
|
* @throws {RequiredError}
|
|
399
387
|
*/
|
|
400
|
-
async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
388
|
+
async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
401
389
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
|
|
402
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
391
|
},
|
|
404
392
|
/**
|
|
405
|
-
* Returns a list of docx templates you have previously created.
|
|
393
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
406
394
|
* @summary List docx templates
|
|
407
395
|
* @param {string} [authorization] Bearer Token
|
|
408
396
|
* @param {number} [pageSize] Page size
|
|
@@ -415,7 +403,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
415
403
|
* @param {*} [options] Override http request option.
|
|
416
404
|
* @throws {RequiredError}
|
|
417
405
|
*/
|
|
418
|
-
async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
406
|
+
async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
419
407
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
420
408
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
421
409
|
},
|
|
@@ -428,7 +416,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
428
416
|
* @param {*} [options] Override http request option.
|
|
429
417
|
* @throws {RequiredError}
|
|
430
418
|
*/
|
|
431
|
-
async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
419
|
+
async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
432
420
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
|
|
433
421
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
434
422
|
},
|
|
@@ -440,7 +428,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
440
428
|
* @param {*} [options] Override http request option.
|
|
441
429
|
* @throws {RequiredError}
|
|
442
430
|
*/
|
|
443
|
-
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
431
|
+
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
444
432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
|
|
445
433
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
446
434
|
},
|
|
@@ -462,7 +450,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
462
450
|
* @param {*} [options] Override http request option.
|
|
463
451
|
* @throws {RequiredError}
|
|
464
452
|
*/
|
|
465
|
-
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
453
|
+
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
466
454
|
return localVarFp.deleteDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
467
455
|
},
|
|
468
456
|
/**
|
|
@@ -473,7 +461,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
473
461
|
* @param {*} [options] Override http request option.
|
|
474
462
|
* @throws {RequiredError}
|
|
475
463
|
*/
|
|
476
|
-
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
464
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
477
465
|
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
478
466
|
},
|
|
479
467
|
/**
|
|
@@ -484,11 +472,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
484
472
|
* @param {*} [options] Override http request option.
|
|
485
473
|
* @throws {RequiredError}
|
|
486
474
|
*/
|
|
487
|
-
getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
475
|
+
getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
488
476
|
return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
489
477
|
},
|
|
490
478
|
/**
|
|
491
|
-
* Returns a list of docx templates you have previously created.
|
|
479
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
492
480
|
* @summary List docx templates
|
|
493
481
|
* @param {string} [authorization] Bearer Token
|
|
494
482
|
* @param {number} [pageSize] Page size
|
|
@@ -501,7 +489,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
501
489
|
* @param {*} [options] Override http request option.
|
|
502
490
|
* @throws {RequiredError}
|
|
503
491
|
*/
|
|
504
|
-
listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
492
|
+
listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
505
493
|
return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
506
494
|
},
|
|
507
495
|
/**
|
|
@@ -513,7 +501,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
513
501
|
* @param {*} [options] Override http request option.
|
|
514
502
|
* @throws {RequiredError}
|
|
515
503
|
*/
|
|
516
|
-
updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
504
|
+
updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
517
505
|
return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
518
506
|
},
|
|
519
507
|
/**
|
|
@@ -524,7 +512,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
524
512
|
* @param {*} [options] Override http request option.
|
|
525
513
|
* @throws {RequiredError}
|
|
526
514
|
*/
|
|
527
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
515
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
528
516
|
return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
529
517
|
},
|
|
530
518
|
};
|
|
@@ -749,7 +737,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
749
737
|
}
|
|
750
738
|
|
|
751
739
|
/**
|
|
752
|
-
* Returns a list of docx templates you have previously created.
|
|
740
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
753
741
|
* @summary List docx templates
|
|
754
742
|
* @param {DocxTemplatesApiListDocxTemplatesRequest} requestParameters Request parameters.
|
|
755
743
|
* @param {*} [options] Override http request option.
|
package/api/layouts-api.ts
CHANGED
|
@@ -23,17 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateLayoutRequestDto } from '../models';
|
|
25
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
26
|
import { UpdateLayoutRequestDto } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { UpdateLayoutResponseClass } from '../models';
|
|
37
27
|
// URLSearchParams not necessarily used
|
|
38
28
|
// @ts-ignore
|
|
39
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -137,7 +127,7 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
137
127
|
};
|
|
138
128
|
},
|
|
139
129
|
/**
|
|
140
|
-
* Retrieves the details of the layout that was previously created.
|
|
130
|
+
* 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
131
|
* @summary Retrieve the layout
|
|
142
132
|
* @param {string} id
|
|
143
133
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -189,7 +179,7 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
189
179
|
};
|
|
190
180
|
},
|
|
191
181
|
/**
|
|
192
|
-
* Returns a list of layouts you have previously created.
|
|
182
|
+
* 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
183
|
* @summary List layouts
|
|
194
184
|
* @param {string} [authorization] Bearer Token
|
|
195
185
|
* @param {number} [pageSize] Page size
|
|
@@ -333,7 +323,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
333
323
|
* @param {*} [options] Override http request option.
|
|
334
324
|
* @throws {RequiredError}
|
|
335
325
|
*/
|
|
336
|
-
async createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
326
|
+
async createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
337
327
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLayout(createLayoutRequestDto, authorization, options);
|
|
338
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
339
329
|
},
|
|
@@ -345,12 +335,12 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
345
335
|
* @param {*} [options] Override http request option.
|
|
346
336
|
* @throws {RequiredError}
|
|
347
337
|
*/
|
|
348
|
-
async deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
338
|
+
async deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
349
339
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLayout(id, authorization, options);
|
|
350
340
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
351
341
|
},
|
|
352
342
|
/**
|
|
353
|
-
* Retrieves the details of the layout that was previously created.
|
|
343
|
+
* 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.
|
|
354
344
|
* @summary Retrieve the layout
|
|
355
345
|
* @param {string} id
|
|
356
346
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -358,12 +348,12 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
358
348
|
* @param {*} [options] Override http request option.
|
|
359
349
|
* @throws {RequiredError}
|
|
360
350
|
*/
|
|
361
|
-
async getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
351
|
+
async getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
362
352
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLayout(id, id2, authorization, options);
|
|
363
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
354
|
},
|
|
365
355
|
/**
|
|
366
|
-
* Returns a list of layouts you have previously created.
|
|
356
|
+
* 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.
|
|
367
357
|
* @summary List layouts
|
|
368
358
|
* @param {string} [authorization] Bearer Token
|
|
369
359
|
* @param {number} [pageSize] Page size
|
|
@@ -376,7 +366,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
376
366
|
* @param {*} [options] Override http request option.
|
|
377
367
|
* @throws {RequiredError}
|
|
378
368
|
*/
|
|
379
|
-
async listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
369
|
+
async listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
380
370
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
381
371
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
382
372
|
},
|
|
@@ -389,7 +379,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
389
379
|
* @param {*} [options] Override http request option.
|
|
390
380
|
* @throws {RequiredError}
|
|
391
381
|
*/
|
|
392
|
-
async updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
382
|
+
async updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
393
383
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLayout(id, updateLayoutRequestDto, authorization, options);
|
|
394
384
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
395
385
|
},
|
|
@@ -411,7 +401,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
411
401
|
* @param {*} [options] Override http request option.
|
|
412
402
|
* @throws {RequiredError}
|
|
413
403
|
*/
|
|
414
|
-
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
404
|
+
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
415
405
|
return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
416
406
|
},
|
|
417
407
|
/**
|
|
@@ -422,11 +412,11 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
422
412
|
* @param {*} [options] Override http request option.
|
|
423
413
|
* @throws {RequiredError}
|
|
424
414
|
*/
|
|
425
|
-
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<
|
|
415
|
+
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
426
416
|
return localVarFp.deleteLayout(id, authorization, options).then((request) => request(axios, basePath));
|
|
427
417
|
},
|
|
428
418
|
/**
|
|
429
|
-
* Retrieves the details of the layout that was previously created.
|
|
419
|
+
* 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.
|
|
430
420
|
* @summary Retrieve the layout
|
|
431
421
|
* @param {string} id
|
|
432
422
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -434,11 +424,11 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
434
424
|
* @param {*} [options] Override http request option.
|
|
435
425
|
* @throws {RequiredError}
|
|
436
426
|
*/
|
|
437
|
-
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<
|
|
427
|
+
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
438
428
|
return localVarFp.getLayout(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
439
429
|
},
|
|
440
430
|
/**
|
|
441
|
-
* Returns a list of layouts you have previously created.
|
|
431
|
+
* 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.
|
|
442
432
|
* @summary List layouts
|
|
443
433
|
* @param {string} [authorization] Bearer Token
|
|
444
434
|
* @param {number} [pageSize] Page size
|
|
@@ -451,7 +441,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
451
441
|
* @param {*} [options] Override http request option.
|
|
452
442
|
* @throws {RequiredError}
|
|
453
443
|
*/
|
|
454
|
-
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
444
|
+
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
455
445
|
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
456
446
|
},
|
|
457
447
|
/**
|
|
@@ -463,7 +453,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
463
453
|
* @param {*} [options] Override http request option.
|
|
464
454
|
* @throws {RequiredError}
|
|
465
455
|
*/
|
|
466
|
-
updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
456
|
+
updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
467
457
|
return localVarFp.updateLayout(id, updateLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
468
458
|
},
|
|
469
459
|
};
|
|
@@ -662,7 +652,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
662
652
|
}
|
|
663
653
|
|
|
664
654
|
/**
|
|
665
|
-
* Retrieves the details of the layout that was previously created.
|
|
655
|
+
* 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.
|
|
666
656
|
* @summary Retrieve the layout
|
|
667
657
|
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
668
658
|
* @param {*} [options] Override http request option.
|
|
@@ -674,7 +664,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
674
664
|
}
|
|
675
665
|
|
|
676
666
|
/**
|
|
677
|
-
* Returns a list of layouts you have previously created.
|
|
667
|
+
* 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.
|
|
678
668
|
* @summary List layouts
|
|
679
669
|
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
680
670
|
* @param {*} [options] Override http request option.
|