@emilgroup/document-sdk-node 1.2.1 → 1.3.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 (41) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/documents-api.ts +8 -8
  4. package/api/product-documents-api.ts +599 -0
  5. package/api.ts +2 -0
  6. package/base.ts +1 -1
  7. package/dist/api/documents-api.d.ts +8 -8
  8. package/dist/api/documents-api.js +8 -8
  9. package/dist/api/product-documents-api.d.ts +345 -0
  10. package/dist/api/product-documents-api.js +558 -0
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.js +1 -1
  14. package/dist/models/create-document-request-dto.d.ts +1 -0
  15. package/dist/models/create-document-request-dto.js +2 -1
  16. package/dist/models/create-presigned-post-request-dto.d.ts +1 -0
  17. package/dist/models/create-presigned-post-request-dto.js +2 -1
  18. package/dist/models/delete-product-document-request-dto.d.ts +30 -0
  19. package/dist/models/delete-product-document-request-dto.js +15 -0
  20. package/dist/models/document-class.d.ts +1 -0
  21. package/dist/models/document-class.js +2 -1
  22. package/dist/models/get-product-document-response-class.d.ts +25 -0
  23. package/dist/models/get-product-document-response-class.js +15 -0
  24. package/dist/models/index.d.ts +5 -0
  25. package/dist/models/index.js +5 -0
  26. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  27. package/dist/models/list-product-documents-response-class.js +15 -0
  28. package/dist/models/product-document-class.d.ts +99 -0
  29. package/dist/models/product-document-class.js +36 -0
  30. package/dist/models/upload-product-document-request-dto.d.ts +63 -0
  31. package/dist/models/upload-product-document-request-dto.js +24 -0
  32. package/models/create-document-request-dto.ts +2 -1
  33. package/models/create-presigned-post-request-dto.ts +2 -1
  34. package/models/delete-product-document-request-dto.ts +36 -0
  35. package/models/document-class.ts +2 -1
  36. package/models/get-product-document-response-class.ts +31 -0
  37. package/models/index.ts +5 -0
  38. package/models/list-product-documents-response-class.ts +37 -0
  39. package/models/product-document-class.ts +108 -0
  40. package/models/upload-product-document-request-dto.ts +72 -0
  41. package/package.json +2 -2
@@ -6,6 +6,7 @@ api.ts
6
6
  api/document-templates-api.ts
7
7
  api/documents-api.ts
8
8
  api/layouts-api.ts
9
+ api/product-documents-api.ts
9
10
  api/search-keywords-api.ts
10
11
  api/searchable-document-owners-api.ts
11
12
  api/searchable-documents-api.ts
@@ -24,6 +25,7 @@ models/create-layout-response-class.ts
24
25
  models/create-presigned-post-request-dto.ts
25
26
  models/create-presigned-post-response-class.ts
26
27
  models/delete-layout-request-dto.ts
28
+ models/delete-product-document-request-dto.ts
27
29
  models/delete-request-dto.ts
28
30
  models/delete-response-class.ts
29
31
  models/doc-template-class.ts
@@ -34,6 +36,7 @@ models/get-doc-template-response-class.ts
34
36
  models/get-document-download-url-response-class.ts
35
37
  models/get-layout-request-dto.ts
36
38
  models/get-layout-response-class.ts
39
+ models/get-product-document-response-class.ts
37
40
  models/get-signed-s3-key-url-response-class.ts
38
41
  models/html-template-class.ts
39
42
  models/index.ts
@@ -42,12 +45,14 @@ models/list-doc-template-request-dto.ts
42
45
  models/list-doc-templates-response-class.ts
43
46
  models/list-documents-response-class.ts
44
47
  models/list-layouts-response-class.ts
48
+ models/list-product-documents-response-class.ts
45
49
  models/list-request-dto.ts
46
50
  models/list-search-keywords-request-dto.ts
47
51
  models/list-search-keywords-response-class.ts
48
52
  models/list-searchable-document-owners-response-class.ts
49
53
  models/list-searchable-documents-request-dto.ts
50
54
  models/list-searchable-documents-response-class.ts
55
+ models/product-document-class.ts
51
56
  models/searchable-document-class.ts
52
57
  models/searchable-document-owner-class.ts
53
58
  models/update-doc-template-request-dto.ts
@@ -57,5 +62,6 @@ models/update-document-response-class.ts
57
62
  models/update-html-template-dto.ts
58
63
  models/update-layout-request-dto.ts
59
64
  models/update-layout-response-class.ts
65
+ models/upload-product-document-request-dto.ts
60
66
  package.json
61
67
  tsconfig.json
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.2.1 --save
20
+ npm install @emilgroup/document-sdk-node@1.3.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.2.1
24
+ yarn add @emilgroup/document-sdk-node@1.3.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -49,7 +49,7 @@ const FormData = require('form-data');
49
49
  export const DocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
50
50
  return {
51
51
  /**
52
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
52
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
53
53
  * @summary Create the document
54
54
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
55
55
  * @param {string} [authorization] Bearer Token
@@ -96,7 +96,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
96
96
  };
97
97
  },
98
98
  /**
99
- * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
99
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
100
100
  * @summary Upload documents using pre-signed URL
101
101
  * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
102
102
  * @param {string} [authorization] Bearer Token
@@ -413,7 +413,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
413
413
  const localVarAxiosParamCreator = DocumentsApiAxiosParamCreator(configuration)
414
414
  return {
415
415
  /**
416
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
416
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
417
417
  * @summary Create the document
418
418
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
419
419
  * @param {string} [authorization] Bearer Token
@@ -425,7 +425,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
425
425
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
426
426
  },
427
427
  /**
428
- * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
428
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
429
429
  * @summary Upload documents using pre-signed URL
430
430
  * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
431
431
  * @param {string} [authorization] Bearer Token
@@ -513,7 +513,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
513
513
  const localVarFp = DocumentsApiFp(configuration)
514
514
  return {
515
515
  /**
516
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
516
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
517
517
  * @summary Create the document
518
518
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
519
519
  * @param {string} [authorization] Bearer Token
@@ -524,7 +524,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
524
524
  return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
525
525
  },
526
526
  /**
527
- * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
527
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
528
528
  * @summary Upload documents using pre-signed URL
529
529
  * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
530
530
  * @param {string} [authorization] Bearer Token
@@ -795,7 +795,7 @@ export interface DocumentsApiUpdateDocumentRequest {
795
795
  */
796
796
  export class DocumentsApi extends BaseAPI {
797
797
  /**
798
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
798
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
799
799
  * @summary Create the document
800
800
  * @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
801
801
  * @param {*} [options] Override http request option.
@@ -807,7 +807,7 @@ export class DocumentsApi extends BaseAPI {
807
807
  }
808
808
 
809
809
  /**
810
- * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
810
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
811
811
  * @summary Upload documents using pre-signed URL
812
812
  * @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
813
813
  * @param {*} [options] Override http request option.