@emilgroup/document-sdk 1.22.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 +10 -10
- package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
- 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 +10 -10
- package/models/create-presigned-post-request-dto.ts +4 -4
- 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 -165
- package/dist/models/document-class.js +0 -53
- 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 -175
- 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
|
/**
|
|
42
30
|
* DocumentsApi - axios parameter creator
|
|
43
31
|
* @export
|
|
@@ -186,14 +174,17 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
186
174
|
/**
|
|
187
175
|
* This will return a presigned URL to download the document.
|
|
188
176
|
* @summary Fetches a document download URL
|
|
189
|
-
* @param {string} code
|
|
177
|
+
* @param {string} code Document code
|
|
178
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
190
179
|
* @param {string} [authorization] Bearer Token
|
|
191
180
|
* @param {*} [options] Override http request option.
|
|
192
181
|
* @throws {RequiredError}
|
|
193
182
|
*/
|
|
194
|
-
getDocumentDownloadUrl: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
183
|
+
getDocumentDownloadUrl: async (code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
195
184
|
// verify required parameter 'code' is not null or undefined
|
|
196
185
|
assertParamExists('getDocumentDownloadUrl', 'code', code)
|
|
186
|
+
// verify required parameter 'contentDisposition' is not null or undefined
|
|
187
|
+
assertParamExists('getDocumentDownloadUrl', 'contentDisposition', contentDisposition)
|
|
197
188
|
const localVarPath = `/documentservice/v1/documents/{code}/download-url`
|
|
198
189
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
199
190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -213,6 +204,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
213
204
|
// http bearer authentication required
|
|
214
205
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
215
206
|
|
|
207
|
+
if (contentDisposition !== undefined) {
|
|
208
|
+
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
209
|
+
}
|
|
210
|
+
|
|
216
211
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
217
212
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
218
213
|
}
|
|
@@ -277,7 +272,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
277
272
|
};
|
|
278
273
|
},
|
|
279
274
|
/**
|
|
280
|
-
* Returns a list of documents you have previously created.
|
|
275
|
+
* 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.
|
|
281
276
|
* @summary List documents
|
|
282
277
|
* @param {string} [authorization] Bearer Token
|
|
283
278
|
* @param {number} [pageSize] Page size
|
|
@@ -421,7 +416,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
421
416
|
* @param {*} [options] Override http request option.
|
|
422
417
|
* @throws {RequiredError}
|
|
423
418
|
*/
|
|
424
|
-
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
419
|
+
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
425
420
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDocument(createDocumentRequestDto, authorization, options);
|
|
426
421
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
427
422
|
},
|
|
@@ -433,7 +428,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
433
428
|
* @param {*} [options] Override http request option.
|
|
434
429
|
* @throws {RequiredError}
|
|
435
430
|
*/
|
|
436
|
-
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
431
|
+
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
437
432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
|
|
438
433
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
439
434
|
},
|
|
@@ -445,20 +440,21 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
445
440
|
* @param {*} [options] Override http request option.
|
|
446
441
|
* @throws {RequiredError}
|
|
447
442
|
*/
|
|
448
|
-
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
443
|
+
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
449
444
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
|
|
450
445
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
451
446
|
},
|
|
452
447
|
/**
|
|
453
448
|
* This will return a presigned URL to download the document.
|
|
454
449
|
* @summary Fetches a document download URL
|
|
455
|
-
* @param {string} code
|
|
450
|
+
* @param {string} code Document code
|
|
451
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
456
452
|
* @param {string} [authorization] Bearer Token
|
|
457
453
|
* @param {*} [options] Override http request option.
|
|
458
454
|
* @throws {RequiredError}
|
|
459
455
|
*/
|
|
460
|
-
async getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
461
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, options);
|
|
456
|
+
async getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, contentDisposition, authorization, options);
|
|
462
458
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
463
459
|
},
|
|
464
460
|
/**
|
|
@@ -469,12 +465,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
469
465
|
* @param {*} [options] Override http request option.
|
|
470
466
|
* @throws {RequiredError}
|
|
471
467
|
*/
|
|
472
|
-
async getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
468
|
+
async getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
473
469
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options);
|
|
474
470
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
475
471
|
},
|
|
476
472
|
/**
|
|
477
|
-
* Returns a list of documents you have previously created.
|
|
473
|
+
* 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.
|
|
478
474
|
* @summary List documents
|
|
479
475
|
* @param {string} [authorization] Bearer Token
|
|
480
476
|
* @param {number} [pageSize] Page size
|
|
@@ -487,7 +483,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
487
483
|
* @param {*} [options] Override http request option.
|
|
488
484
|
* @throws {RequiredError}
|
|
489
485
|
*/
|
|
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<
|
|
486
|
+
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>> {
|
|
491
487
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
492
488
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
493
489
|
},
|
|
@@ -500,7 +496,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
500
496
|
* @param {*} [options] Override http request option.
|
|
501
497
|
* @throws {RequiredError}
|
|
502
498
|
*/
|
|
503
|
-
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
499
|
+
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
504
500
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocument(code, updateDocumentRequestDto, authorization, options);
|
|
505
501
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
506
502
|
},
|
|
@@ -522,7 +518,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
522
518
|
* @param {*} [options] Override http request option.
|
|
523
519
|
* @throws {RequiredError}
|
|
524
520
|
*/
|
|
525
|
-
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
521
|
+
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
526
522
|
return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
527
523
|
},
|
|
528
524
|
/**
|
|
@@ -533,7 +529,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
533
529
|
* @param {*} [options] Override http request option.
|
|
534
530
|
* @throws {RequiredError}
|
|
535
531
|
*/
|
|
536
|
-
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
532
|
+
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
537
533
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
538
534
|
},
|
|
539
535
|
/**
|
|
@@ -544,19 +540,20 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
544
540
|
* @param {*} [options] Override http request option.
|
|
545
541
|
* @throws {RequiredError}
|
|
546
542
|
*/
|
|
547
|
-
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
543
|
+
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
548
544
|
return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
|
|
549
545
|
},
|
|
550
546
|
/**
|
|
551
547
|
* This will return a presigned URL to download the document.
|
|
552
548
|
* @summary Fetches a document download URL
|
|
553
|
-
* @param {string} code
|
|
549
|
+
* @param {string} code Document code
|
|
550
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
554
551
|
* @param {string} [authorization] Bearer Token
|
|
555
552
|
* @param {*} [options] Override http request option.
|
|
556
553
|
* @throws {RequiredError}
|
|
557
554
|
*/
|
|
558
|
-
getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
559
|
-
return localVarFp.getDocumentDownloadUrl(code, authorization, options).then((request) => request(axios, basePath));
|
|
555
|
+
getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
|
|
556
|
+
return localVarFp.getDocumentDownloadUrl(code, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
560
557
|
},
|
|
561
558
|
/**
|
|
562
559
|
* This will return a presigned URL for a random S3 key
|
|
@@ -566,11 +563,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
566
563
|
* @param {*} [options] Override http request option.
|
|
567
564
|
* @throws {RequiredError}
|
|
568
565
|
*/
|
|
569
|
-
getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<
|
|
566
|
+
getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
570
567
|
return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then((request) => request(axios, basePath));
|
|
571
568
|
},
|
|
572
569
|
/**
|
|
573
|
-
* Returns a list of documents you have previously created.
|
|
570
|
+
* 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.
|
|
574
571
|
* @summary List documents
|
|
575
572
|
* @param {string} [authorization] Bearer Token
|
|
576
573
|
* @param {number} [pageSize] Page size
|
|
@@ -583,7 +580,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
583
580
|
* @param {*} [options] Override http request option.
|
|
584
581
|
* @throws {RequiredError}
|
|
585
582
|
*/
|
|
586
|
-
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
583
|
+
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
587
584
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
588
585
|
},
|
|
589
586
|
/**
|
|
@@ -595,7 +592,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
595
592
|
* @param {*} [options] Override http request option.
|
|
596
593
|
* @throws {RequiredError}
|
|
597
594
|
*/
|
|
598
|
-
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
595
|
+
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
599
596
|
return localVarFp.updateDocument(code, updateDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
600
597
|
},
|
|
601
598
|
};
|
|
@@ -671,12 +668,19 @@ export interface DocumentsApiDeleteDocumentRequest {
|
|
|
671
668
|
*/
|
|
672
669
|
export interface DocumentsApiGetDocumentDownloadUrlRequest {
|
|
673
670
|
/**
|
|
674
|
-
*
|
|
671
|
+
* Document code
|
|
675
672
|
* @type {string}
|
|
676
673
|
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
677
674
|
*/
|
|
678
675
|
readonly code: string
|
|
679
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Content disposition override. Default will be depending on the document type.
|
|
679
|
+
* @type {'attachment' | 'inline'}
|
|
680
|
+
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
681
|
+
*/
|
|
682
|
+
readonly contentDisposition: 'attachment' | 'inline'
|
|
683
|
+
|
|
680
684
|
/**
|
|
681
685
|
* Bearer Token
|
|
682
686
|
* @type {string}
|
|
@@ -849,7 +853,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
849
853
|
* @memberof DocumentsApi
|
|
850
854
|
*/
|
|
851
855
|
public getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
852
|
-
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
856
|
+
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
853
857
|
}
|
|
854
858
|
|
|
855
859
|
/**
|
|
@@ -865,7 +869,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
865
869
|
}
|
|
866
870
|
|
|
867
871
|
/**
|
|
868
|
-
* Returns a list of documents you have previously created.
|
|
872
|
+
* 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.
|
|
869
873
|
* @summary List documents
|
|
870
874
|
* @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
|
|
871
875
|
* @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
|
/**
|
|
40
28
|
* DocxTemplatesApi - axios parameter creator
|
|
@@ -178,7 +166,7 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
178
166
|
};
|
|
179
167
|
},
|
|
180
168
|
/**
|
|
181
|
-
* Returns a list of docx templates you have previously created.
|
|
169
|
+
* 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.
|
|
182
170
|
* @summary List docx templates
|
|
183
171
|
* @param {string} [authorization] Bearer Token
|
|
184
172
|
* @param {number} [pageSize] Page size
|
|
@@ -369,7 +357,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
369
357
|
* @param {*} [options] Override http request option.
|
|
370
358
|
* @throws {RequiredError}
|
|
371
359
|
*/
|
|
372
|
-
async deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
360
|
+
async deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
373
361
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocxTemplate(code, authorization, options);
|
|
374
362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
363
|
},
|
|
@@ -381,7 +369,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
381
369
|
* @param {*} [options] Override http request option.
|
|
382
370
|
* @throws {RequiredError}
|
|
383
371
|
*/
|
|
384
|
-
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
372
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
385
373
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
386
374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
387
375
|
},
|
|
@@ -393,12 +381,12 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
393
381
|
* @param {*} [options] Override http request option.
|
|
394
382
|
* @throws {RequiredError}
|
|
395
383
|
*/
|
|
396
|
-
async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
384
|
+
async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
397
385
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
|
|
398
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
399
387
|
},
|
|
400
388
|
/**
|
|
401
|
-
* Returns a list of docx templates you have previously created.
|
|
389
|
+
* 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.
|
|
402
390
|
* @summary List docx templates
|
|
403
391
|
* @param {string} [authorization] Bearer Token
|
|
404
392
|
* @param {number} [pageSize] Page size
|
|
@@ -411,7 +399,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
411
399
|
* @param {*} [options] Override http request option.
|
|
412
400
|
* @throws {RequiredError}
|
|
413
401
|
*/
|
|
414
|
-
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<
|
|
402
|
+
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>> {
|
|
415
403
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
416
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
405
|
},
|
|
@@ -424,7 +412,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
424
412
|
* @param {*} [options] Override http request option.
|
|
425
413
|
* @throws {RequiredError}
|
|
426
414
|
*/
|
|
427
|
-
async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
415
|
+
async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
428
416
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
|
|
429
417
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
430
418
|
},
|
|
@@ -436,7 +424,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
436
424
|
* @param {*} [options] Override http request option.
|
|
437
425
|
* @throws {RequiredError}
|
|
438
426
|
*/
|
|
439
|
-
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
427
|
+
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
440
428
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
|
|
441
429
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
442
430
|
},
|
|
@@ -458,7 +446,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
458
446
|
* @param {*} [options] Override http request option.
|
|
459
447
|
* @throws {RequiredError}
|
|
460
448
|
*/
|
|
461
|
-
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
449
|
+
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
462
450
|
return localVarFp.deleteDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
463
451
|
},
|
|
464
452
|
/**
|
|
@@ -469,7 +457,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
469
457
|
* @param {*} [options] Override http request option.
|
|
470
458
|
* @throws {RequiredError}
|
|
471
459
|
*/
|
|
472
|
-
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
460
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
473
461
|
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
474
462
|
},
|
|
475
463
|
/**
|
|
@@ -480,11 +468,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
480
468
|
* @param {*} [options] Override http request option.
|
|
481
469
|
* @throws {RequiredError}
|
|
482
470
|
*/
|
|
483
|
-
getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
471
|
+
getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
484
472
|
return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
485
473
|
},
|
|
486
474
|
/**
|
|
487
|
-
* Returns a list of docx templates you have previously created.
|
|
475
|
+
* 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.
|
|
488
476
|
* @summary List docx templates
|
|
489
477
|
* @param {string} [authorization] Bearer Token
|
|
490
478
|
* @param {number} [pageSize] Page size
|
|
@@ -497,7 +485,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
497
485
|
* @param {*} [options] Override http request option.
|
|
498
486
|
* @throws {RequiredError}
|
|
499
487
|
*/
|
|
500
|
-
listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
488
|
+
listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
501
489
|
return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
502
490
|
},
|
|
503
491
|
/**
|
|
@@ -509,7 +497,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
509
497
|
* @param {*} [options] Override http request option.
|
|
510
498
|
* @throws {RequiredError}
|
|
511
499
|
*/
|
|
512
|
-
updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
500
|
+
updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
513
501
|
return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
514
502
|
},
|
|
515
503
|
/**
|
|
@@ -520,7 +508,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
520
508
|
* @param {*} [options] Override http request option.
|
|
521
509
|
* @throws {RequiredError}
|
|
522
510
|
*/
|
|
523
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
511
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
524
512
|
return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
525
513
|
},
|
|
526
514
|
};
|
|
@@ -745,7 +733,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
745
733
|
}
|
|
746
734
|
|
|
747
735
|
/**
|
|
748
|
-
* Returns a list of docx templates you have previously created.
|
|
736
|
+
* 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.
|
|
749
737
|
* @summary List docx templates
|
|
750
738
|
* @param {DocxTemplatesApiListDocxTemplatesRequest} requestParameters Request parameters.
|
|
751
739
|
* @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
|
/**
|
|
38
28
|
* LayoutsApi - axios parameter creator
|
|
39
29
|
* @export
|
|
@@ -133,7 +123,7 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
133
123
|
};
|
|
134
124
|
},
|
|
135
125
|
/**
|
|
136
|
-
* Retrieves the details of the layout that was previously created.
|
|
126
|
+
* 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.
|
|
137
127
|
* @summary Retrieve the layout
|
|
138
128
|
* @param {string} id
|
|
139
129
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -185,7 +175,7 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
185
175
|
};
|
|
186
176
|
},
|
|
187
177
|
/**
|
|
188
|
-
* Returns a list of layouts you have previously created.
|
|
178
|
+
* 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.
|
|
189
179
|
* @summary List layouts
|
|
190
180
|
* @param {string} [authorization] Bearer Token
|
|
191
181
|
* @param {number} [pageSize] Page size
|
|
@@ -329,7 +319,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
329
319
|
* @param {*} [options] Override http request option.
|
|
330
320
|
* @throws {RequiredError}
|
|
331
321
|
*/
|
|
332
|
-
async createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
322
|
+
async createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
333
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLayout(createLayoutRequestDto, authorization, options);
|
|
334
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
325
|
},
|
|
@@ -341,12 +331,12 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
341
331
|
* @param {*} [options] Override http request option.
|
|
342
332
|
* @throws {RequiredError}
|
|
343
333
|
*/
|
|
344
|
-
async deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
334
|
+
async deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
345
335
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLayout(id, authorization, options);
|
|
346
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
347
337
|
},
|
|
348
338
|
/**
|
|
349
|
-
* Retrieves the details of the layout that was previously created.
|
|
339
|
+
* 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.
|
|
350
340
|
* @summary Retrieve the layout
|
|
351
341
|
* @param {string} id
|
|
352
342
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -354,12 +344,12 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
354
344
|
* @param {*} [options] Override http request option.
|
|
355
345
|
* @throws {RequiredError}
|
|
356
346
|
*/
|
|
357
|
-
async getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
347
|
+
async getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
358
348
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLayout(id, id2, authorization, options);
|
|
359
349
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
360
350
|
},
|
|
361
351
|
/**
|
|
362
|
-
* Returns a list of layouts you have previously created.
|
|
352
|
+
* 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.
|
|
363
353
|
* @summary List layouts
|
|
364
354
|
* @param {string} [authorization] Bearer Token
|
|
365
355
|
* @param {number} [pageSize] Page size
|
|
@@ -372,7 +362,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
372
362
|
* @param {*} [options] Override http request option.
|
|
373
363
|
* @throws {RequiredError}
|
|
374
364
|
*/
|
|
375
|
-
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<
|
|
365
|
+
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>> {
|
|
376
366
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
377
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
378
368
|
},
|
|
@@ -385,7 +375,7 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
|
|
|
385
375
|
* @param {*} [options] Override http request option.
|
|
386
376
|
* @throws {RequiredError}
|
|
387
377
|
*/
|
|
388
|
-
async updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
378
|
+
async updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
389
379
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLayout(id, updateLayoutRequestDto, authorization, options);
|
|
390
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
381
|
},
|
|
@@ -407,7 +397,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
407
397
|
* @param {*} [options] Override http request option.
|
|
408
398
|
* @throws {RequiredError}
|
|
409
399
|
*/
|
|
410
|
-
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
400
|
+
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
411
401
|
return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
412
402
|
},
|
|
413
403
|
/**
|
|
@@ -418,11 +408,11 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
418
408
|
* @param {*} [options] Override http request option.
|
|
419
409
|
* @throws {RequiredError}
|
|
420
410
|
*/
|
|
421
|
-
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<
|
|
411
|
+
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
422
412
|
return localVarFp.deleteLayout(id, authorization, options).then((request) => request(axios, basePath));
|
|
423
413
|
},
|
|
424
414
|
/**
|
|
425
|
-
* Retrieves the details of the layout that was previously created.
|
|
415
|
+
* 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.
|
|
426
416
|
* @summary Retrieve the layout
|
|
427
417
|
* @param {string} id
|
|
428
418
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
@@ -430,11 +420,11 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
430
420
|
* @param {*} [options] Override http request option.
|
|
431
421
|
* @throws {RequiredError}
|
|
432
422
|
*/
|
|
433
|
-
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<
|
|
423
|
+
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
434
424
|
return localVarFp.getLayout(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
435
425
|
},
|
|
436
426
|
/**
|
|
437
|
-
* Returns a list of layouts you have previously created.
|
|
427
|
+
* 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.
|
|
438
428
|
* @summary List layouts
|
|
439
429
|
* @param {string} [authorization] Bearer Token
|
|
440
430
|
* @param {number} [pageSize] Page size
|
|
@@ -447,7 +437,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
447
437
|
* @param {*} [options] Override http request option.
|
|
448
438
|
* @throws {RequiredError}
|
|
449
439
|
*/
|
|
450
|
-
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
440
|
+
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
451
441
|
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
452
442
|
},
|
|
453
443
|
/**
|
|
@@ -459,7 +449,7 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
|
|
|
459
449
|
* @param {*} [options] Override http request option.
|
|
460
450
|
* @throws {RequiredError}
|
|
461
451
|
*/
|
|
462
|
-
updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
452
|
+
updateLayout(id: number, updateLayoutRequestDto: UpdateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
463
453
|
return localVarFp.updateLayout(id, updateLayoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
464
454
|
},
|
|
465
455
|
};
|
|
@@ -658,7 +648,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
658
648
|
}
|
|
659
649
|
|
|
660
650
|
/**
|
|
661
|
-
* Retrieves the details of the layout that was previously created.
|
|
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.
|
|
662
652
|
* @summary Retrieve the layout
|
|
663
653
|
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
664
654
|
* @param {*} [options] Override http request option.
|
|
@@ -670,7 +660,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
670
660
|
}
|
|
671
661
|
|
|
672
662
|
/**
|
|
673
|
-
* Returns a list of layouts you have previously created.
|
|
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.
|
|
674
664
|
* @summary List layouts
|
|
675
665
|
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
676
666
|
* @param {*} [options] Override http request option.
|