@emilgroup/document-sdk 1.0.0 → 1.1.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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/product-documents-api.ts +599 -0
  4. package/api.ts +2 -0
  5. package/dist/api/product-documents-api.d.ts +345 -0
  6. package/dist/api/product-documents-api.js +558 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/create-document-request-dto.d.ts +1 -0
  10. package/dist/models/create-document-request-dto.js +2 -1
  11. package/dist/models/create-presigned-post-request-dto.d.ts +1 -0
  12. package/dist/models/create-presigned-post-request-dto.js +2 -1
  13. package/dist/models/delete-product-document-request-dto.d.ts +30 -0
  14. package/dist/models/delete-product-document-request-dto.js +15 -0
  15. package/dist/models/document-class.d.ts +1 -0
  16. package/dist/models/document-class.js +2 -1
  17. package/dist/models/get-product-document-response-class.d.ts +25 -0
  18. package/dist/models/get-product-document-response-class.js +15 -0
  19. package/dist/models/index.d.ts +5 -0
  20. package/dist/models/index.js +5 -0
  21. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  22. package/dist/models/list-product-documents-response-class.js +15 -0
  23. package/dist/models/product-document-class.d.ts +99 -0
  24. package/dist/models/product-document-class.js +36 -0
  25. package/dist/models/upload-product-document-request-dto.d.ts +63 -0
  26. package/dist/models/upload-product-document-request-dto.js +24 -0
  27. package/models/create-document-request-dto.ts +2 -1
  28. package/models/create-presigned-post-request-dto.ts +2 -1
  29. package/models/delete-product-document-request-dto.ts +36 -0
  30. package/models/document-class.ts +2 -1
  31. package/models/get-product-document-response-class.ts +31 -0
  32. package/models/index.ts +5 -0
  33. package/models/list-product-documents-response-class.ts +37 -0
  34. package/models/product-document-class.ts +108 -0
  35. package/models/upload-product-document-request-dto.ts +72 -0
  36. package/package.json +1 -1
@@ -0,0 +1,108 @@
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
+ *
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 ProductDocumentClass
21
+ */
22
+ export interface ProductDocumentClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ProductDocumentClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof ProductDocumentClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Unique identifier of the product that this object belongs to.
37
+ * @type {string}
38
+ * @memberof ProductDocumentClass
39
+ */
40
+ 'productCode': string;
41
+ /**
42
+ * Unique identifier referencing the product.
43
+ * @type {number}
44
+ * @memberof ProductDocumentClass
45
+ */
46
+ 'productVersionId': number;
47
+ /**
48
+ * Type of the product document.
49
+ * @type {string}
50
+ * @memberof ProductDocumentClass
51
+ */
52
+ 'type': 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 ProductDocumentClass
57
+ */
58
+ 'description': string;
59
+ /**
60
+ * The unique key used by Amazon Simple Storage Service (S3).
61
+ * @type {string}
62
+ * @memberof ProductDocumentClass
63
+ */
64
+ 's3Key': string;
65
+ /**
66
+ * Type of the document expressed with its file extension.
67
+ * @type {string}
68
+ * @memberof ProductDocumentClass
69
+ */
70
+ 'contentType': ProductDocumentClassContentTypeEnum;
71
+ /**
72
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
73
+ * @type {string}
74
+ * @memberof ProductDocumentClass
75
+ */
76
+ 'productSlug': string;
77
+ /**
78
+ * Time at which the object was created.
79
+ * @type {string}
80
+ * @memberof ProductDocumentClass
81
+ */
82
+ 'createdAt': string;
83
+ }
84
+
85
+ export const ProductDocumentClassContentTypeEnum = {
86
+ Pdf: 'pdf',
87
+ Jpg: 'jpg',
88
+ Png: 'png',
89
+ Gz: 'gz',
90
+ Csv: 'csv',
91
+ Doc: 'doc',
92
+ Docx: 'docx',
93
+ Html: 'html',
94
+ Json: 'json',
95
+ Xml: 'xml',
96
+ Txt: 'txt',
97
+ Zip: 'zip',
98
+ Tar: 'tar',
99
+ Rar: 'rar',
100
+ Mp4: 'MP4',
101
+ Mov: 'MOV',
102
+ Wmv: 'WMV',
103
+ Avi: 'AVI'
104
+ } as const;
105
+
106
+ export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
107
+
108
+
@@ -0,0 +1,72 @@
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
+ *
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 UploadProductDocumentRequestDto
21
+ */
22
+ export interface UploadProductDocumentRequestDto {
23
+ /**
24
+ * Slug of the product.
25
+ * @type {string}
26
+ * @memberof UploadProductDocumentRequestDto
27
+ */
28
+ 'productSlug'?: string;
29
+ /**
30
+ * Extension of the file.
31
+ * @type {string}
32
+ * @memberof UploadProductDocumentRequestDto
33
+ */
34
+ 'contentType': UploadProductDocumentRequestDtoContentTypeEnum;
35
+ /**
36
+ * Description of the document. Usually a short summary about the context in which the document is being used.
37
+ * @type {string}
38
+ * @memberof UploadProductDocumentRequestDto
39
+ */
40
+ 'description': string;
41
+ /**
42
+ * Name of the file the end user will see when he downloads it.
43
+ * @type {string}
44
+ * @memberof UploadProductDocumentRequestDto
45
+ */
46
+ 'filename': string;
47
+ /**
48
+ * Type of the product document.
49
+ * @type {string}
50
+ * @memberof UploadProductDocumentRequestDto
51
+ */
52
+ 'type': string;
53
+ /**
54
+ * Id of the product version, and is optional. If not provided, the document will be attached to the latest version of the product.
55
+ * @type {number}
56
+ * @memberof UploadProductDocumentRequestDto
57
+ */
58
+ 'productVersionId'?: number;
59
+ }
60
+
61
+ export const UploadProductDocumentRequestDtoContentTypeEnum = {
62
+ Pdf: 'pdf',
63
+ Jpg: 'jpg',
64
+ Png: 'png',
65
+ Csv: 'csv',
66
+ Doc: 'doc',
67
+ Docx: 'docx'
68
+ } as const;
69
+
70
+ export type UploadProductDocumentRequestDtoContentTypeEnum = typeof UploadProductDocumentRequestDtoContentTypeEnum[keyof typeof UploadProductDocumentRequestDtoContentTypeEnum];
71
+
72
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [