@emilgroup/document-sdk-node 1.8.1 → 1.10.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/base.ts +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/product-document-class.d.ts +18 -0
- package/dist/models/upload-product-document-request-dto.d.ts +6 -0
- package/models/product-document-class.ts +18 -0
- package/models/upload-product-document-request-dto.ts +6 -0
- package/package.json +1 -1
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.10.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.10.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/base.ts
CHANGED
package/dist/base.d.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface LoginClass {
|
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
31
31
|
Test = "https://apiv2-test.emil.de",
|
|
32
|
-
Development = "https://apiv2-dev.emil.de"
|
|
32
|
+
Development = "https://apiv2-dev.emil.de",
|
|
33
|
+
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
33
34
|
}
|
|
34
35
|
export declare function resetRetry(): void;
|
|
35
36
|
/**
|
package/dist/base.js
CHANGED
|
@@ -130,6 +130,7 @@ var Environment;
|
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
132
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
133
|
+
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
133
134
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
134
135
|
var _retry_count = 0;
|
|
135
136
|
var _retry = null;
|
|
@@ -39,6 +39,12 @@ export interface ProductDocumentClass {
|
|
|
39
39
|
* @memberof ProductDocumentClass
|
|
40
40
|
*/
|
|
41
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 ProductDocumentClass
|
|
46
|
+
*/
|
|
47
|
+
'slug': string;
|
|
42
48
|
/**
|
|
43
49
|
* Type of the product document.
|
|
44
50
|
* @type {string}
|
|
@@ -75,12 +81,24 @@ export interface ProductDocumentClass {
|
|
|
75
81
|
* @memberof ProductDocumentClass
|
|
76
82
|
*/
|
|
77
83
|
'productSlug': string;
|
|
84
|
+
/**
|
|
85
|
+
* The current version number of the product document.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ProductDocumentClass
|
|
88
|
+
*/
|
|
89
|
+
'versionNumber': number;
|
|
78
90
|
/**
|
|
79
91
|
* Time at which the object was created.
|
|
80
92
|
* @type {string}
|
|
81
93
|
* @memberof ProductDocumentClass
|
|
82
94
|
*/
|
|
83
95
|
'createdAt': string;
|
|
96
|
+
/**
|
|
97
|
+
* Time at which the object was created.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ProductDocumentClass
|
|
100
|
+
*/
|
|
101
|
+
'updated': string;
|
|
84
102
|
}
|
|
85
103
|
export declare const ProductDocumentClassContentTypeEnum: {
|
|
86
104
|
readonly Pdf: "pdf";
|
|
@@ -27,6 +27,12 @@ export interface UploadProductDocumentRequestDto {
|
|
|
27
27
|
* @memberof UploadProductDocumentRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'contentType': UploadProductDocumentRequestDtoContentTypeEnum;
|
|
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 UploadProductDocumentRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
30
36
|
/**
|
|
31
37
|
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
32
38
|
* @type {string}
|
|
@@ -44,6 +44,12 @@ export interface ProductDocumentClass {
|
|
|
44
44
|
* @memberof ProductDocumentClass
|
|
45
45
|
*/
|
|
46
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 ProductDocumentClass
|
|
51
|
+
*/
|
|
52
|
+
'slug': string;
|
|
47
53
|
/**
|
|
48
54
|
* Type of the product document.
|
|
49
55
|
* @type {string}
|
|
@@ -80,12 +86,24 @@ export interface ProductDocumentClass {
|
|
|
80
86
|
* @memberof ProductDocumentClass
|
|
81
87
|
*/
|
|
82
88
|
'productSlug': string;
|
|
89
|
+
/**
|
|
90
|
+
* The current version number of the product document.
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ProductDocumentClass
|
|
93
|
+
*/
|
|
94
|
+
'versionNumber': number;
|
|
83
95
|
/**
|
|
84
96
|
* Time at which the object was created.
|
|
85
97
|
* @type {string}
|
|
86
98
|
* @memberof ProductDocumentClass
|
|
87
99
|
*/
|
|
88
100
|
'createdAt': string;
|
|
101
|
+
/**
|
|
102
|
+
* Time at which the object was created.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ProductDocumentClass
|
|
105
|
+
*/
|
|
106
|
+
'updated': string;
|
|
89
107
|
}
|
|
90
108
|
|
|
91
109
|
export const ProductDocumentClassContentTypeEnum = {
|
|
@@ -32,6 +32,12 @@ export interface UploadProductDocumentRequestDto {
|
|
|
32
32
|
* @memberof UploadProductDocumentRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'contentType': UploadProductDocumentRequestDtoContentTypeEnum;
|
|
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 UploadProductDocumentRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'slug': string;
|
|
35
41
|
/**
|
|
36
42
|
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
37
43
|
* @type {string}
|