@emilgroup/document-sdk-node 1.11.2 → 1.11.3-beta.1

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.
@@ -32,6 +32,7 @@ models/delete-request-dto.ts
32
32
  models/delete-response-class.ts
33
33
  models/doc-template-class.ts
34
34
  models/document-class.ts
35
+ models/docx-template-class.ts
35
36
  models/download-document-request-dto.ts
36
37
  models/get-doc-template-request-dto.ts
37
38
  models/get-doc-template-response-class.ts
@@ -52,6 +53,7 @@ models/layout-class.ts
52
53
  models/list-doc-template-request-dto.ts
53
54
  models/list-doc-templates-response-class.ts
54
55
  models/list-documents-response-class.ts
56
+ models/list-docx-templates-response-class.ts
55
57
  models/list-layouts-response-class.ts
56
58
  models/list-product-documents-response-class.ts
57
59
  models/list-request-dto.ts
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.11.1 --save
20
+ npm install @emilgroup/document-sdk-node@1.11.3 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.11.1
24
+ yarn add @emilgroup/document-sdk-node@1.11.3
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -25,6 +25,8 @@ import { DeleteResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { ListDocxTemplatesResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { SharedUpdateDocxTemplateRequestDto } from '../models';
29
31
  // @ts-ignore
30
32
  import { UploadDocxTemplateRequestDto } from '../models';
@@ -401,7 +403,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
401
403
  * @param {*} [options] Override http request option.
402
404
  * @throws {RequiredError}
403
405
  */
404
- async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
406
+ async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>> {
405
407
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
406
408
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
407
409
  },
@@ -486,7 +488,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
486
488
  * @param {*} [options] Override http request option.
487
489
  * @throws {RequiredError}
488
490
  */
489
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
491
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
490
492
  return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
491
493
  },
492
494
  /**
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { DeleteResponseClass } from '../models';
16
16
  import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
17
+ import { ListDocxTemplatesResponseClass } from '../models';
17
18
  import { SharedUpdateDocxTemplateRequestDto } from '../models';
18
19
  import { UploadDocxTemplateRequestDto } from '../models';
19
20
  /**
@@ -127,7 +128,7 @@ export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
127
128
  * @param {*} [options] Override http request option.
128
129
  * @throws {RequiredError}
129
130
  */
130
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
131
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>>;
131
132
  /**
132
133
  * Updates a docx template metadata.
133
134
  * @summary Update the docx template
@@ -193,7 +194,7 @@ export declare const DocxTemplatesApiFactory: (configuration?: Configuration, ba
193
194
  * @param {*} [options] Override http request option.
194
195
  * @throws {RequiredError}
195
196
  */
196
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object>;
197
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass>;
197
198
  /**
198
199
  * Updates a docx template metadata.
199
200
  * @summary Update the docx template
@@ -406,7 +407,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
406
407
  * @throws {RequiredError}
407
408
  * @memberof DocxTemplatesApi
408
409
  */
409
- listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
410
+ listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocxTemplatesResponseClass, any>>;
410
411
  /**
411
412
  * Updates a docx template metadata.
412
413
  * @summary Update the docx template
@@ -0,0 +1,101 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface DocxTemplateClass
16
+ */
17
+ export interface DocxTemplateClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof DocxTemplateClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof DocxTemplateClass
28
+ */
29
+ 'code': string;
30
+ /**
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
+ * @type {string}
33
+ * @memberof DocxTemplateClass
34
+ */
35
+ 'slug': string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof DocxTemplateClass
40
+ */
41
+ 'productVersionId': number;
42
+ /**
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
+ * @type {string}
45
+ * @memberof DocxTemplateClass
46
+ */
47
+ 'productSlug': string;
48
+ /**
49
+ * Description of the document. Usually a short summary about the context in which the document is being used.
50
+ * @type {string}
51
+ * @memberof DocxTemplateClass
52
+ */
53
+ 'description': string;
54
+ /**
55
+ * The unique key used by Amazon Simple Storage Service (S3).
56
+ * @type {string}
57
+ * @memberof DocxTemplateClass
58
+ */
59
+ 's3Key': string;
60
+ /**
61
+ * Document entity type.
62
+ * @type {string}
63
+ * @memberof DocxTemplateClass
64
+ */
65
+ 'entityType': DocxTemplateClassEntityTypeEnum;
66
+ /**
67
+ * Name of the file the end user will see when he downloads it.
68
+ * @type {string}
69
+ * @memberof DocxTemplateClass
70
+ */
71
+ 'filename': string;
72
+ /**
73
+ * Version number of the template, incremented each time a new version is uploaded.
74
+ * @type {number}
75
+ * @memberof DocxTemplateClass
76
+ */
77
+ 'versionNumber': number;
78
+ /**
79
+ * Time at which the object was created.
80
+ * @type {string}
81
+ * @memberof DocxTemplateClass
82
+ */
83
+ 'createdAt': string;
84
+ /**
85
+ * Time at which the object was updated.
86
+ * @type {string}
87
+ * @memberof DocxTemplateClass
88
+ */
89
+ 'updatedAt': string;
90
+ }
91
+ export declare const DocxTemplateClassEntityTypeEnum: {
92
+ readonly PolicyApplication: "policy_application";
93
+ readonly PolicyContract: "policy_contract";
94
+ readonly PolicyAddendum: "policy_addendum";
95
+ readonly InitialInvoice: "initial_invoice";
96
+ readonly CorrectionInvoice: "correction_invoice";
97
+ readonly RecurringInvoice: "recurring_invoice";
98
+ readonly SepaMandate: "sepa_mandate";
99
+ readonly Static: "static";
100
+ };
101
+ export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
@@ -0,0 +1,26 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DocxTemplateClassEntityTypeEnum = void 0;
17
+ exports.DocxTemplateClassEntityTypeEnum = {
18
+ PolicyApplication: 'policy_application',
19
+ PolicyContract: 'policy_contract',
20
+ PolicyAddendum: 'policy_addendum',
21
+ InitialInvoice: 'initial_invoice',
22
+ CorrectionInvoice: 'correction_invoice',
23
+ RecurringInvoice: 'recurring_invoice',
24
+ SepaMandate: 'sepa_mandate',
25
+ Static: 'static'
26
+ };
@@ -13,6 +13,7 @@ export * from './delete-request-dto';
13
13
  export * from './delete-response-class';
14
14
  export * from './doc-template-class';
15
15
  export * from './document-class';
16
+ export * from './docx-template-class';
16
17
  export * from './download-document-request-dto';
17
18
  export * from './get-doc-template-request-dto';
18
19
  export * from './get-doc-template-response-class';
@@ -32,6 +33,7 @@ export * from './layout-class';
32
33
  export * from './list-doc-template-request-dto';
33
34
  export * from './list-doc-templates-response-class';
34
35
  export * from './list-documents-response-class';
36
+ export * from './list-docx-templates-response-class';
35
37
  export * from './list-layouts-response-class';
36
38
  export * from './list-product-documents-response-class';
37
39
  export * from './list-request-dto';
@@ -29,6 +29,7 @@ __exportStar(require("./delete-request-dto"), exports);
29
29
  __exportStar(require("./delete-response-class"), exports);
30
30
  __exportStar(require("./doc-template-class"), exports);
31
31
  __exportStar(require("./document-class"), exports);
32
+ __exportStar(require("./docx-template-class"), exports);
32
33
  __exportStar(require("./download-document-request-dto"), exports);
33
34
  __exportStar(require("./get-doc-template-request-dto"), exports);
34
35
  __exportStar(require("./get-doc-template-response-class"), exports);
@@ -48,6 +49,7 @@ __exportStar(require("./layout-class"), exports);
48
49
  __exportStar(require("./list-doc-template-request-dto"), exports);
49
50
  __exportStar(require("./list-doc-templates-response-class"), exports);
50
51
  __exportStar(require("./list-documents-response-class"), exports);
52
+ __exportStar(require("./list-docx-templates-response-class"), exports);
51
53
  __exportStar(require("./list-layouts-response-class"), exports);
52
54
  __exportStar(require("./list-product-documents-response-class"), exports);
53
55
  __exportStar(require("./list-request-dto"), exports);
@@ -0,0 +1,25 @@
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 { DocxTemplateClass } from './docx-template-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListDocxTemplatesResponseClass
17
+ */
18
+ export interface ListDocxTemplatesResponseClass {
19
+ /**
20
+ * The list of docx templates.
21
+ * @type {Array<DocxTemplateClass>}
22
+ * @memberof ListDocxTemplatesResponseClass
23
+ */
24
+ 'items': Array<DocxTemplateClass>;
25
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DocxTemplateClass
21
+ */
22
+ export interface DocxTemplateClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof DocxTemplateClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof DocxTemplateClass
33
+ */
34
+ 'code': string;
35
+ /**
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
+ * @type {string}
38
+ * @memberof DocxTemplateClass
39
+ */
40
+ 'slug': string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof DocxTemplateClass
45
+ */
46
+ 'productVersionId': number;
47
+ /**
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
+ * @type {string}
50
+ * @memberof DocxTemplateClass
51
+ */
52
+ 'productSlug': string;
53
+ /**
54
+ * Description of the document. Usually a short summary about the context in which the document is being used.
55
+ * @type {string}
56
+ * @memberof DocxTemplateClass
57
+ */
58
+ 'description': string;
59
+ /**
60
+ * The unique key used by Amazon Simple Storage Service (S3).
61
+ * @type {string}
62
+ * @memberof DocxTemplateClass
63
+ */
64
+ 's3Key': string;
65
+ /**
66
+ * Document entity type.
67
+ * @type {string}
68
+ * @memberof DocxTemplateClass
69
+ */
70
+ 'entityType': DocxTemplateClassEntityTypeEnum;
71
+ /**
72
+ * Name of the file the end user will see when he downloads it.
73
+ * @type {string}
74
+ * @memberof DocxTemplateClass
75
+ */
76
+ 'filename': string;
77
+ /**
78
+ * Version number of the template, incremented each time a new version is uploaded.
79
+ * @type {number}
80
+ * @memberof DocxTemplateClass
81
+ */
82
+ 'versionNumber': number;
83
+ /**
84
+ * Time at which the object was created.
85
+ * @type {string}
86
+ * @memberof DocxTemplateClass
87
+ */
88
+ 'createdAt': string;
89
+ /**
90
+ * Time at which the object was updated.
91
+ * @type {string}
92
+ * @memberof DocxTemplateClass
93
+ */
94
+ 'updatedAt': string;
95
+ }
96
+
97
+ export const DocxTemplateClassEntityTypeEnum = {
98
+ PolicyApplication: 'policy_application',
99
+ PolicyContract: 'policy_contract',
100
+ PolicyAddendum: 'policy_addendum',
101
+ InitialInvoice: 'initial_invoice',
102
+ CorrectionInvoice: 'correction_invoice',
103
+ RecurringInvoice: 'recurring_invoice',
104
+ SepaMandate: 'sepa_mandate',
105
+ Static: 'static'
106
+ } as const;
107
+
108
+ export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
109
+
110
+
package/models/index.ts CHANGED
@@ -13,6 +13,7 @@ export * from './delete-request-dto';
13
13
  export * from './delete-response-class';
14
14
  export * from './doc-template-class';
15
15
  export * from './document-class';
16
+ export * from './docx-template-class';
16
17
  export * from './download-document-request-dto';
17
18
  export * from './get-doc-template-request-dto';
18
19
  export * from './get-doc-template-response-class';
@@ -32,6 +33,7 @@ export * from './layout-class';
32
33
  export * from './list-doc-template-request-dto';
33
34
  export * from './list-doc-templates-response-class';
34
35
  export * from './list-documents-response-class';
36
+ export * from './list-docx-templates-response-class';
35
37
  export * from './list-layouts-response-class';
36
38
  export * from './list-product-documents-response-class';
37
39
  export * from './list-request-dto';
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { DocxTemplateClass } from './docx-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListDocxTemplatesResponseClass
22
+ */
23
+ export interface ListDocxTemplatesResponseClass {
24
+ /**
25
+ * The list of docx templates.
26
+ * @type {Array<DocxTemplateClass>}
27
+ * @memberof ListDocxTemplatesResponseClass
28
+ */
29
+ 'items': Array<DocxTemplateClass>;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.11.2",
3
+ "version": "1.11.3-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [