@emilgroup/document-sdk-node 1.10.0 → 1.11.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/README.md +2 -2
- package/api/product-documents-api.ts +8 -21
- package/models/create-doc-template-request-dto.ts +2 -2
- package/models/create-document-request-dto.ts +2 -2
- package/models/create-layout-request-dto.ts +1 -1
- package/models/create-presigned-post-request-dto.ts +2 -2
- package/models/delete-product-document-request-dto.ts +1 -1
- package/models/doc-template-class.ts +2 -2
- package/models/document-class.ts +8 -2
- package/models/layout-class.ts +1 -1
- package/models/product-document-class.ts +2 -2
- package/models/update-doc-template-request-dto.ts +2 -2
- package/models/update-layout-request-dto.ts +1 -1
- package/models/upload-product-document-request-dto.ts +1 -1
- package/package.json +2 -2
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -200
- package/dist/api/document-templates-api.d.ts +0 -385
- package/dist/api/document-templates-api.js +0 -640
- package/dist/api/documents-api.d.ts +0 -488
- package/dist/api/documents-api.js +0 -821
- package/dist/api/docx-templates-api.d.ts +0 -428
- package/dist/api/docx-templates-api.js +0 -726
- package/dist/api/layouts-api.d.ts +0 -385
- package/dist/api/layouts-api.js +0 -642
- package/dist/api/product-documents-api.d.ts +0 -410
- package/dist/api/product-documents-api.js +0 -656
- package/dist/api/search-keywords-api.d.ts +0 -96
- package/dist/api/search-keywords-api.js +0 -229
- package/dist/api/searchable-document-owners-api.d.ts +0 -141
- package/dist/api/searchable-document-owners-api.js +0 -258
- package/dist/api/searchable-documents-api.d.ts +0 -114
- package/dist/api/searchable-documents-api.js +0 -243
- package/dist/api.d.ts +0 -20
- package/dist/api.js +0 -38
- package/dist/base.d.ts +0 -78
- package/dist/base.js +0 -394
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -90
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/create-doc-template-request-dto.d.ts +0 -55
- package/dist/models/create-doc-template-request-dto.js +0 -15
- 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-request-dto.d.ts +0 -173
- package/dist/models/create-document-request-dto.js +0 -70
- 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-html-template-dto.d.ts +0 -24
- package/dist/models/create-html-template-dto.js +0 -15
- package/dist/models/create-layout-request-dto.d.ts +0 -49
- package/dist/models/create-layout-request-dto.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-request-dto.d.ts +0 -134
- package/dist/models/create-presigned-post-request-dto.js +0 -52
- 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-layout-request-dto.d.ts +0 -24
- package/dist/models/delete-layout-request-dto.js +0 -15
- package/dist/models/delete-product-document-request-dto.d.ts +0 -30
- package/dist/models/delete-product-document-request-dto.js +0 -15
- package/dist/models/delete-request-dto.d.ts +0 -24
- package/dist/models/delete-request-dto.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 -163
- package/dist/models/document-class.js +0 -62
- 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-layout-request-dto.d.ts +0 -24
- package/dist/models/get-layout-request-dto.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/index.d.ts +0 -56
- package/dist/models/index.js +0 -72
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- 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-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-request-dto.d.ts +0 -54
- package/dist/models/list-request-dto.js +0 -15
- package/dist/models/list-search-keywords-request-dto.d.ts +0 -24
- package/dist/models/list-search-keywords-request-dto.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-request-dto.d.ts +0 -31
- package/dist/models/list-searchable-document-owners-request-dto.js +0 -22
- 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-request-dto.d.ts +0 -43
- package/dist/models/list-searchable-documents-request-dto.js +0 -22
- 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 -134
- package/dist/models/product-document-class.js +0 -46
- 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/shared-update-docx-template-request-dto.d.ts +0 -36
- package/dist/models/shared-update-docx-template-request-dto.js +0 -15
- package/dist/models/update-doc-template-request-dto.d.ts +0 -61
- package/dist/models/update-doc-template-request-dto.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-request-dto.d.ts +0 -54
- package/dist/models/update-document-request-dto.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-html-template-dto.d.ts +0 -42
- package/dist/models/update-html-template-dto.js +0 -21
- package/dist/models/update-layout-request-dto.d.ts +0 -55
- package/dist/models/update-layout-request-dto.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/dist/models/upload-docx-template-request-dto.d.ts +0 -54
- package/dist/models/upload-docx-template-request-dto.js +0 -15
- package/dist/models/upload-product-document-request-dto.d.ts +0 -75
- package/dist/models/upload-product-document-request-dto.js +0 -24
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.11.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.11.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -190,7 +190,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
190
190
|
/**
|
|
191
191
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
192
192
|
* @summary List product documents
|
|
193
|
-
* @param {string} productSlug
|
|
194
193
|
* @param {string} [authorization] Bearer Token
|
|
195
194
|
* @param {number} [pageSize] Page size
|
|
196
195
|
* @param {string} [pageToken] Page token
|
|
@@ -201,11 +200,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
201
200
|
* @param {*} [options] Override http request option.
|
|
202
201
|
* @throws {RequiredError}
|
|
203
202
|
*/
|
|
204
|
-
listProductDocuments: async (
|
|
205
|
-
|
|
206
|
-
assertParamExists('listProductDocuments', 'productSlug', productSlug)
|
|
207
|
-
const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
|
|
208
|
-
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
203
|
+
listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
|
+
const localVarPath = `/documentservice/v1/documents/product`;
|
|
209
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
211
207
|
let baseOptions;
|
|
@@ -365,7 +361,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
365
361
|
/**
|
|
366
362
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
367
363
|
* @summary List product documents
|
|
368
|
-
* @param {string} productSlug
|
|
369
364
|
* @param {string} [authorization] Bearer Token
|
|
370
365
|
* @param {number} [pageSize] Page size
|
|
371
366
|
* @param {string} [pageToken] Page token
|
|
@@ -376,8 +371,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
376
371
|
* @param {*} [options] Override http request option.
|
|
377
372
|
* @throws {RequiredError}
|
|
378
373
|
*/
|
|
379
|
-
async listProductDocuments(
|
|
380
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(
|
|
374
|
+
async listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
381
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
382
377
|
},
|
|
383
378
|
/**
|
|
@@ -442,7 +437,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
442
437
|
/**
|
|
443
438
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
444
439
|
* @summary List product documents
|
|
445
|
-
* @param {string} productSlug
|
|
446
440
|
* @param {string} [authorization] Bearer Token
|
|
447
441
|
* @param {number} [pageSize] Page size
|
|
448
442
|
* @param {string} [pageToken] Page token
|
|
@@ -453,8 +447,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
453
447
|
* @param {*} [options] Override http request option.
|
|
454
448
|
* @throws {RequiredError}
|
|
455
449
|
*/
|
|
456
|
-
listProductDocuments(
|
|
457
|
-
return localVarFp.listProductDocuments(
|
|
450
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
451
|
+
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
458
452
|
},
|
|
459
453
|
/**
|
|
460
454
|
* Upload a product document.
|
|
@@ -561,13 +555,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
561
555
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
562
556
|
*/
|
|
563
557
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
564
|
-
/**
|
|
565
|
-
*
|
|
566
|
-
* @type {string}
|
|
567
|
-
* @memberof ProductDocumentsApiListProductDocuments
|
|
568
|
-
*/
|
|
569
|
-
readonly productSlug: string
|
|
570
|
-
|
|
571
558
|
/**
|
|
572
559
|
* Bearer Token
|
|
573
560
|
* @type {string}
|
|
@@ -697,8 +684,8 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
697
684
|
* @throws {RequiredError}
|
|
698
685
|
* @memberof ProductDocumentsApi
|
|
699
686
|
*/
|
|
700
|
-
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
|
|
701
|
-
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.
|
|
687
|
+
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
688
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
702
689
|
}
|
|
703
690
|
|
|
704
691
|
/**
|
|
@@ -28,7 +28,7 @@ export interface CreateDocTemplateRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'name': string;
|
|
30
30
|
/**
|
|
31
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateDocTemplateRequestDto
|
|
34
34
|
*/
|
|
@@ -46,7 +46,7 @@ export interface CreateDocTemplateRequestDto {
|
|
|
46
46
|
*/
|
|
47
47
|
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
48
|
/**
|
|
49
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
49
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreateDocumentRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
24
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CreateDocumentRequestDto
|
|
27
27
|
*/
|
|
@@ -99,7 +99,7 @@ export interface CreateDocumentRequestDto {
|
|
|
99
99
|
*/
|
|
100
100
|
'filename'?: string;
|
|
101
101
|
/**
|
|
102
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
102
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof CreateDocumentRequestDto
|
|
105
105
|
*/
|
|
@@ -28,7 +28,7 @@ export interface CreateLayoutRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'name': string;
|
|
30
30
|
/**
|
|
31
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateLayoutRequestDto
|
|
34
34
|
*/
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreatePresignedPostRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
24
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CreatePresignedPostRequestDto
|
|
27
27
|
*/
|
|
@@ -87,7 +87,7 @@ export interface CreatePresignedPostRequestDto {
|
|
|
87
87
|
*/
|
|
88
88
|
'filename': string;
|
|
89
89
|
/**
|
|
90
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
90
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof CreatePresignedPostRequestDto
|
|
93
93
|
*/
|
|
@@ -27,7 +27,7 @@ export interface DeleteProductDocumentRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'code': string;
|
|
29
29
|
/**
|
|
30
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
30
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof DeleteProductDocumentRequestDto
|
|
33
33
|
*/
|
|
@@ -41,7 +41,7 @@ export interface DocTemplateClass {
|
|
|
41
41
|
*/
|
|
42
42
|
'name': string;
|
|
43
43
|
/**
|
|
44
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
44
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof DocTemplateClass
|
|
47
47
|
*/
|
|
@@ -71,7 +71,7 @@ export interface DocTemplateClass {
|
|
|
71
71
|
*/
|
|
72
72
|
'layout'?: LayoutClass;
|
|
73
73
|
/**
|
|
74
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
74
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof DocTemplateClass
|
|
77
77
|
*/
|
package/models/document-class.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface DocumentClass {
|
|
|
33
33
|
*/
|
|
34
34
|
'code': string;
|
|
35
35
|
/**
|
|
36
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
36
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof DocumentClass
|
|
39
39
|
*/
|
|
@@ -105,7 +105,7 @@ export interface DocumentClass {
|
|
|
105
105
|
*/
|
|
106
106
|
'contentType': DocumentClassContentTypeEnum;
|
|
107
107
|
/**
|
|
108
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
108
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
109
109
|
* @type {string}
|
|
110
110
|
* @memberof DocumentClass
|
|
111
111
|
*/
|
|
@@ -116,6 +116,12 @@ export interface DocumentClass {
|
|
|
116
116
|
* @memberof DocumentClass
|
|
117
117
|
*/
|
|
118
118
|
'createdAt': string;
|
|
119
|
+
/**
|
|
120
|
+
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof DocumentClass
|
|
123
|
+
*/
|
|
124
|
+
'ern': string;
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
export const DocumentClassEntityTypeEnum = {
|
package/models/layout-class.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface LayoutClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'name': string;
|
|
42
42
|
/**
|
|
43
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
43
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof LayoutClass
|
|
46
46
|
*/
|
|
@@ -45,7 +45,7 @@ export interface ProductDocumentClass {
|
|
|
45
45
|
*/
|
|
46
46
|
'productVersionId': number;
|
|
47
47
|
/**
|
|
48
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
48
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof ProductDocumentClass
|
|
51
51
|
*/
|
|
@@ -81,7 +81,7 @@ export interface ProductDocumentClass {
|
|
|
81
81
|
*/
|
|
82
82
|
'entityType': ProductDocumentClassEntityTypeEnum;
|
|
83
83
|
/**
|
|
84
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
84
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof ProductDocumentClass
|
|
87
87
|
*/
|
|
@@ -28,7 +28,7 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'name': string;
|
|
30
30
|
/**
|
|
31
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateDocTemplateRequestDto
|
|
34
34
|
*/
|
|
@@ -46,7 +46,7 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
46
46
|
*/
|
|
47
47
|
'bodyTemplate': UpdateHtmlTemplateDto;
|
|
48
48
|
/**
|
|
49
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
49
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof UpdateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
@@ -28,7 +28,7 @@ export interface UpdateLayoutRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'name': string;
|
|
30
30
|
/**
|
|
31
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateLayoutRequestDto
|
|
34
34
|
*/
|
|
@@ -33,7 +33,7 @@ export interface UploadProductDocumentRequestDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'contentType': UploadProductDocumentRequestDtoContentTypeEnum;
|
|
35
35
|
/**
|
|
36
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
36
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof UploadProductDocumentRequestDto
|
|
39
39
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/document-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/document-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL DocumentService
|
|
3
|
-
* The EMIL DocumentService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { InlineResponse200 } from '../models';
|
|
16
|
-
/**
|
|
17
|
-
* DefaultApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {*} [options] Override http request option.
|
|
24
|
-
* @throws {RequiredError}
|
|
25
|
-
*/
|
|
26
|
-
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* DefaultApi - functional programming interface
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param {*} [options] Override http request option.
|
|
36
|
-
* @throws {RequiredError}
|
|
37
|
-
*/
|
|
38
|
-
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* DefaultApi - factory interface
|
|
42
|
-
* @export
|
|
43
|
-
*/
|
|
44
|
-
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @param {*} [options] Override http request option.
|
|
48
|
-
* @throws {RequiredError}
|
|
49
|
-
*/
|
|
50
|
-
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* DefaultApi - object-oriented interface
|
|
54
|
-
* @export
|
|
55
|
-
* @class DefaultApi
|
|
56
|
-
* @extends {BaseAPI}
|
|
57
|
-
*/
|
|
58
|
-
export declare class DefaultApi extends BaseAPI {
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
* @memberof DefaultApi
|
|
64
|
-
*/
|
|
65
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
-
}
|
package/dist/api/default-api.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL DocumentService
|
|
6
|
-
* The EMIL DocumentService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
// URLSearchParams not necessarily used
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
var url_1 = require("url");
|
|
91
|
-
var FormData = require('form-data');
|
|
92
|
-
/**
|
|
93
|
-
* DefaultApi - axios parameter creator
|
|
94
|
-
* @export
|
|
95
|
-
*/
|
|
96
|
-
var DefaultApiAxiosParamCreator = function (configuration) {
|
|
97
|
-
var _this = this;
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
check: function (options) {
|
|
105
|
-
if (options === void 0) { options = {}; }
|
|
106
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
-
return __generator(this, function (_a) {
|
|
109
|
-
localVarPath = "/documentservice/health";
|
|
110
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
-
if (configuration) {
|
|
112
|
-
baseOptions = configuration.baseOptions;
|
|
113
|
-
baseAccessToken = configuration.accessToken;
|
|
114
|
-
}
|
|
115
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
116
|
-
localVarHeaderParameter = {};
|
|
117
|
-
localVarQueryParameter = {};
|
|
118
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
119
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
121
|
-
return [2 /*return*/, {
|
|
122
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
-
options: localVarRequestOptions,
|
|
124
|
-
}];
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
131
|
-
/**
|
|
132
|
-
* DefaultApi - functional programming interface
|
|
133
|
-
* @export
|
|
134
|
-
*/
|
|
135
|
-
var DefaultApiFp = function (configuration) {
|
|
136
|
-
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
137
|
-
return {
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @param {*} [options] Override http request option.
|
|
141
|
-
* @throws {RequiredError}
|
|
142
|
-
*/
|
|
143
|
-
check: function (options) {
|
|
144
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
-
var localVarAxiosArgs;
|
|
146
|
-
return __generator(this, function (_a) {
|
|
147
|
-
switch (_a.label) {
|
|
148
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
|
|
149
|
-
case 1:
|
|
150
|
-
localVarAxiosArgs = _a.sent();
|
|
151
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
exports.DefaultApiFp = DefaultApiFp;
|
|
159
|
-
/**
|
|
160
|
-
* DefaultApi - factory interface
|
|
161
|
-
* @export
|
|
162
|
-
*/
|
|
163
|
-
var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
164
|
-
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
165
|
-
return {
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @param {*} [options] Override http request option.
|
|
169
|
-
* @throws {RequiredError}
|
|
170
|
-
*/
|
|
171
|
-
check: function (options) {
|
|
172
|
-
return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
|
|
173
|
-
},
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
exports.DefaultApiFactory = DefaultApiFactory;
|
|
177
|
-
/**
|
|
178
|
-
* DefaultApi - object-oriented interface
|
|
179
|
-
* @export
|
|
180
|
-
* @class DefaultApi
|
|
181
|
-
* @extends {BaseAPI}
|
|
182
|
-
*/
|
|
183
|
-
var DefaultApi = /** @class */ (function (_super) {
|
|
184
|
-
__extends(DefaultApi, _super);
|
|
185
|
-
function DefaultApi() {
|
|
186
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* @param {*} [options] Override http request option.
|
|
191
|
-
* @throws {RequiredError}
|
|
192
|
-
* @memberof DefaultApi
|
|
193
|
-
*/
|
|
194
|
-
DefaultApi.prototype.check = function (options) {
|
|
195
|
-
var _this = this;
|
|
196
|
-
return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
197
|
-
};
|
|
198
|
-
return DefaultApi;
|
|
199
|
-
}(base_1.BaseAPI));
|
|
200
|
-
exports.DefaultApi = DefaultApi;
|