@emilgroup/document-sdk 1.46.1-beta.2 → 1.46.1-beta.20
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/documents-api.ts +4 -2
- package/api/product-documents-api.ts +41 -54
- package/base.ts +1 -0
- package/dist/api/documents-api.d.ts +4 -3
- package/dist/api/product-documents-api.d.ts +33 -42
- package/dist/api/product-documents-api.js +19 -24
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/create-qr-bill-document-response-class.d.ts +25 -0
- package/dist/models/create-qr-bill-document-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/layout-class.d.ts +0 -12
- package/models/create-qr-bill-document-response-class.ts +31 -0
- package/models/index.ts +1 -0
- package/models/layout-class.ts +0 -12
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -27,6 +27,7 @@ models/create-layout-response-class.ts
|
|
|
27
27
|
models/create-presigned-post-request-dto.ts
|
|
28
28
|
models/create-presigned-post-response-class.ts
|
|
29
29
|
models/create-qr-bill-document-request-dto.ts
|
|
30
|
+
models/create-qr-bill-document-response-class.ts
|
|
30
31
|
models/delete-layout-request-dto.ts
|
|
31
32
|
models/delete-product-document-request-dto.ts
|
|
32
33
|
models/delete-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@1.46.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.46.1-beta.20 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.46.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.46.1-beta.20
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { CreatePresignedPostResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { CreateQrBillDocumentResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { ExportDocumentRequestDto } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { ExportDocumentResponseClass } from '../models';
|
|
@@ -661,7 +663,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
661
663
|
* @param {*} [options] Override http request option.
|
|
662
664
|
* @throws {RequiredError}
|
|
663
665
|
*/
|
|
664
|
-
async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
666
|
+
async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>> {
|
|
665
667
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
|
|
666
668
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
667
669
|
},
|
|
@@ -811,7 +813,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
811
813
|
* @param {*} [options] Override http request option.
|
|
812
814
|
* @throws {RequiredError}
|
|
813
815
|
*/
|
|
814
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
816
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass> {
|
|
815
817
|
return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
816
818
|
},
|
|
817
819
|
/**
|
|
@@ -193,7 +193,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
193
193
|
/**
|
|
194
194
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
195
195
|
* @summary List product documents
|
|
196
|
-
* @param {string} productSlug
|
|
197
196
|
* @param {string} [authorization] Bearer Token
|
|
198
197
|
* @param {number} [pageSize] Page size
|
|
199
198
|
* @param {string} [pageToken] Page token
|
|
@@ -205,11 +204,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
assertParamExists('listProductDocuments0', 'productSlug', productSlug)
|
|
211
|
-
const localVarPath = `/documentservice/v1/product-documents`
|
|
212
|
-
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
207
|
+
listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
|
+
const localVarPath = `/documentservice/v1/product-documents`;
|
|
213
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
211
|
let baseOptions;
|
|
@@ -285,9 +281,9 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
285
281
|
* @param {*} [options] Override http request option.
|
|
286
282
|
* @throws {RequiredError}
|
|
287
283
|
*/
|
|
288
|
-
|
|
284
|
+
listProductDocumentsByProduct: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
289
285
|
// verify required parameter 'productSlug' is not null or undefined
|
|
290
|
-
assertParamExists('
|
|
286
|
+
assertParamExists('listProductDocumentsByProduct', 'productSlug', productSlug)
|
|
291
287
|
const localVarPath = `/documentservice/v1/product-documents/{productSlug}`
|
|
292
288
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
293
289
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -454,7 +450,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
454
450
|
/**
|
|
455
451
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
456
452
|
* @summary List product documents
|
|
457
|
-
* @param {string} productSlug
|
|
458
453
|
* @param {string} [authorization] Bearer Token
|
|
459
454
|
* @param {number} [pageSize] Page size
|
|
460
455
|
* @param {string} [pageToken] Page token
|
|
@@ -466,8 +461,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
466
461
|
* @param {*} [options] Override http request option.
|
|
467
462
|
* @throws {RequiredError}
|
|
468
463
|
*/
|
|
469
|
-
async
|
|
470
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
464
|
+
async listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
|
|
465
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
471
466
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
467
|
},
|
|
473
468
|
/**
|
|
@@ -485,8 +480,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
485
480
|
* @param {*} [options] Override http request option.
|
|
486
481
|
* @throws {RequiredError}
|
|
487
482
|
*/
|
|
488
|
-
async
|
|
489
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
483
|
+
async listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
|
|
484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
490
485
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
491
486
|
},
|
|
492
487
|
/**
|
|
@@ -552,7 +547,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
552
547
|
/**
|
|
553
548
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
554
549
|
* @summary List product documents
|
|
555
|
-
* @param {string} productSlug
|
|
556
550
|
* @param {string} [authorization] Bearer Token
|
|
557
551
|
* @param {number} [pageSize] Page size
|
|
558
552
|
* @param {string} [pageToken] Page token
|
|
@@ -564,8 +558,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
564
558
|
* @param {*} [options] Override http request option.
|
|
565
559
|
* @throws {RequiredError}
|
|
566
560
|
*/
|
|
567
|
-
|
|
568
|
-
return localVarFp.
|
|
561
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
562
|
+
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
569
563
|
},
|
|
570
564
|
/**
|
|
571
565
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -582,8 +576,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
582
576
|
* @param {*} [options] Override http request option.
|
|
583
577
|
* @throws {RequiredError}
|
|
584
578
|
*/
|
|
585
|
-
|
|
586
|
-
return localVarFp.
|
|
579
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
580
|
+
return localVarFp.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
587
581
|
},
|
|
588
582
|
/**
|
|
589
583
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
@@ -692,141 +686,134 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
692
686
|
}
|
|
693
687
|
|
|
694
688
|
/**
|
|
695
|
-
* Request parameters for
|
|
689
|
+
* Request parameters for listProductDocuments operation in ProductDocumentsApi.
|
|
696
690
|
* @export
|
|
697
|
-
* @interface
|
|
691
|
+
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
698
692
|
*/
|
|
699
|
-
export interface
|
|
700
|
-
/**
|
|
701
|
-
*
|
|
702
|
-
* @type {string}
|
|
703
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
704
|
-
*/
|
|
705
|
-
readonly productSlug: string
|
|
706
|
-
|
|
693
|
+
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
707
694
|
/**
|
|
708
695
|
* Bearer Token
|
|
709
696
|
* @type {string}
|
|
710
|
-
* @memberof
|
|
697
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
711
698
|
*/
|
|
712
699
|
readonly authorization?: string
|
|
713
700
|
|
|
714
701
|
/**
|
|
715
702
|
* Page size
|
|
716
703
|
* @type {number}
|
|
717
|
-
* @memberof
|
|
704
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
718
705
|
*/
|
|
719
706
|
readonly pageSize?: number
|
|
720
707
|
|
|
721
708
|
/**
|
|
722
709
|
* Page token
|
|
723
710
|
* @type {string}
|
|
724
|
-
* @memberof
|
|
711
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
725
712
|
*/
|
|
726
713
|
readonly pageToken?: string
|
|
727
714
|
|
|
728
715
|
/**
|
|
729
716
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
730
717
|
* @type {string}
|
|
731
|
-
* @memberof
|
|
718
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
732
719
|
*/
|
|
733
720
|
readonly filter?: string
|
|
734
721
|
|
|
735
722
|
/**
|
|
736
723
|
* Search query
|
|
737
724
|
* @type {string}
|
|
738
|
-
* @memberof
|
|
725
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
739
726
|
*/
|
|
740
727
|
readonly search?: string
|
|
741
728
|
|
|
742
729
|
/**
|
|
743
730
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
744
731
|
* @type {string}
|
|
745
|
-
* @memberof
|
|
732
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
746
733
|
*/
|
|
747
734
|
readonly order?: string
|
|
748
735
|
|
|
749
736
|
/**
|
|
750
737
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
751
738
|
* @type {string}
|
|
752
|
-
* @memberof
|
|
739
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
753
740
|
*/
|
|
754
741
|
readonly expand?: string
|
|
755
742
|
|
|
756
743
|
/**
|
|
757
744
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
758
745
|
* @type {string}
|
|
759
|
-
* @memberof
|
|
746
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
760
747
|
*/
|
|
761
748
|
readonly filters?: string
|
|
762
749
|
}
|
|
763
750
|
|
|
764
751
|
/**
|
|
765
|
-
* Request parameters for
|
|
752
|
+
* Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
|
|
766
753
|
* @export
|
|
767
|
-
* @interface
|
|
754
|
+
* @interface ProductDocumentsApiListProductDocumentsByProductRequest
|
|
768
755
|
*/
|
|
769
|
-
export interface
|
|
756
|
+
export interface ProductDocumentsApiListProductDocumentsByProductRequest {
|
|
770
757
|
/**
|
|
771
758
|
*
|
|
772
759
|
* @type {string}
|
|
773
|
-
* @memberof
|
|
760
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
774
761
|
*/
|
|
775
762
|
readonly productSlug: string
|
|
776
763
|
|
|
777
764
|
/**
|
|
778
765
|
* Bearer Token
|
|
779
766
|
* @type {string}
|
|
780
|
-
* @memberof
|
|
767
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
781
768
|
*/
|
|
782
769
|
readonly authorization?: string
|
|
783
770
|
|
|
784
771
|
/**
|
|
785
772
|
* Page size
|
|
786
773
|
* @type {number}
|
|
787
|
-
* @memberof
|
|
774
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
788
775
|
*/
|
|
789
776
|
readonly pageSize?: number
|
|
790
777
|
|
|
791
778
|
/**
|
|
792
779
|
* Page token
|
|
793
780
|
* @type {string}
|
|
794
|
-
* @memberof
|
|
781
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
795
782
|
*/
|
|
796
783
|
readonly pageToken?: string
|
|
797
784
|
|
|
798
785
|
/**
|
|
799
786
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
800
787
|
* @type {string}
|
|
801
|
-
* @memberof
|
|
788
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
802
789
|
*/
|
|
803
790
|
readonly filter?: string
|
|
804
791
|
|
|
805
792
|
/**
|
|
806
793
|
* Search query
|
|
807
794
|
* @type {string}
|
|
808
|
-
* @memberof
|
|
795
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
809
796
|
*/
|
|
810
797
|
readonly search?: string
|
|
811
798
|
|
|
812
799
|
/**
|
|
813
800
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
814
801
|
* @type {string}
|
|
815
|
-
* @memberof
|
|
802
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
816
803
|
*/
|
|
817
804
|
readonly order?: string
|
|
818
805
|
|
|
819
806
|
/**
|
|
820
807
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
821
808
|
* @type {string}
|
|
822
|
-
* @memberof
|
|
809
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
823
810
|
*/
|
|
824
811
|
readonly expand?: string
|
|
825
812
|
|
|
826
813
|
/**
|
|
827
814
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
828
815
|
* @type {string}
|
|
829
|
-
* @memberof
|
|
816
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
830
817
|
*/
|
|
831
818
|
readonly filters?: string
|
|
832
819
|
}
|
|
@@ -905,25 +892,25 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
905
892
|
/**
|
|
906
893
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
907
894
|
* @summary List product documents
|
|
908
|
-
* @param {
|
|
895
|
+
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
909
896
|
* @param {*} [options] Override http request option.
|
|
910
897
|
* @throws {RequiredError}
|
|
911
898
|
* @memberof ProductDocumentsApi
|
|
912
899
|
*/
|
|
913
|
-
public
|
|
914
|
-
return ProductDocumentsApiFp(this.configuration).
|
|
900
|
+
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
901
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
915
902
|
}
|
|
916
903
|
|
|
917
904
|
/**
|
|
918
905
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
919
906
|
* @summary List product documents
|
|
920
|
-
* @param {
|
|
907
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
921
908
|
* @param {*} [options] Override http request option.
|
|
922
909
|
* @throws {RequiredError}
|
|
923
910
|
* @memberof ProductDocumentsApi
|
|
924
911
|
*/
|
|
925
|
-
public
|
|
926
|
-
return ProductDocumentsApiFp(this.configuration).
|
|
912
|
+
public listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig) {
|
|
913
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
927
914
|
}
|
|
928
915
|
|
|
929
916
|
/**
|
package/base.ts
CHANGED
|
@@ -53,6 +53,7 @@ export enum Environment {
|
|
|
53
53
|
Staging = 'https://apiv2-staging.emil.de',
|
|
54
54
|
Development = 'https://apiv2-dev.emil.de',
|
|
55
55
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
56
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
let _retry_count = 0
|
|
@@ -17,6 +17,7 @@ import { CreateDocumentSyncResponseClass } from '../models';
|
|
|
17
17
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
18
18
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
19
19
|
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
20
|
+
import { CreateQrBillDocumentResponseClass } from '../models';
|
|
20
21
|
import { ExportDocumentRequestDto } from '../models';
|
|
21
22
|
import { ExportDocumentResponseClass } from '../models';
|
|
22
23
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
@@ -174,7 +175,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
174
175
|
* @param {*} [options] Override http request option.
|
|
175
176
|
* @throws {RequiredError}
|
|
176
177
|
*/
|
|
177
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
178
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>>;
|
|
178
179
|
/**
|
|
179
180
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
180
181
|
* @summary Delete the document
|
|
@@ -289,7 +290,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
289
290
|
* @param {*} [options] Override http request option.
|
|
290
291
|
* @throws {RequiredError}
|
|
291
292
|
*/
|
|
292
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
293
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass>;
|
|
293
294
|
/**
|
|
294
295
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
295
296
|
* @summary Delete the document
|
|
@@ -675,7 +676,7 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
675
676
|
* @throws {RequiredError}
|
|
676
677
|
* @memberof DocumentsApi
|
|
677
678
|
*/
|
|
678
|
-
createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
679
|
+
createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}>>;
|
|
679
680
|
/**
|
|
680
681
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
681
682
|
* @summary Delete the document
|
|
@@ -57,7 +57,6 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
57
57
|
/**
|
|
58
58
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
59
59
|
* @summary List product documents
|
|
60
|
-
* @param {string} productSlug
|
|
61
60
|
* @param {string} [authorization] Bearer Token
|
|
62
61
|
* @param {number} [pageSize] Page size
|
|
63
62
|
* @param {string} [pageToken] Page token
|
|
@@ -69,7 +68,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
69
68
|
* @param {*} [options] Override http request option.
|
|
70
69
|
* @throws {RequiredError}
|
|
71
70
|
*/
|
|
72
|
-
|
|
71
|
+
listProductDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
73
72
|
/**
|
|
74
73
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
75
74
|
* @summary List product documents
|
|
@@ -85,7 +84,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
85
84
|
* @param {*} [options] Override http request option.
|
|
86
85
|
* @throws {RequiredError}
|
|
87
86
|
*/
|
|
88
|
-
|
|
87
|
+
listProductDocumentsByProduct: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
88
|
/**
|
|
90
89
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
91
90
|
* @summary Create the product document
|
|
@@ -136,7 +135,6 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
136
135
|
/**
|
|
137
136
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
138
137
|
* @summary List product documents
|
|
139
|
-
* @param {string} productSlug
|
|
140
138
|
* @param {string} [authorization] Bearer Token
|
|
141
139
|
* @param {number} [pageSize] Page size
|
|
142
140
|
* @param {string} [pageToken] Page token
|
|
@@ -148,7 +146,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
148
146
|
* @param {*} [options] Override http request option.
|
|
149
147
|
* @throws {RequiredError}
|
|
150
148
|
*/
|
|
151
|
-
|
|
149
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
152
150
|
/**
|
|
153
151
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
154
152
|
* @summary List product documents
|
|
@@ -164,7 +162,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
164
162
|
* @param {*} [options] Override http request option.
|
|
165
163
|
* @throws {RequiredError}
|
|
166
164
|
*/
|
|
167
|
-
|
|
165
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
168
166
|
/**
|
|
169
167
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
170
168
|
* @summary Create the product document
|
|
@@ -215,7 +213,6 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
215
213
|
/**
|
|
216
214
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
217
215
|
* @summary List product documents
|
|
218
|
-
* @param {string} productSlug
|
|
219
216
|
* @param {string} [authorization] Bearer Token
|
|
220
217
|
* @param {number} [pageSize] Page size
|
|
221
218
|
* @param {string} [pageToken] Page token
|
|
@@ -227,7 +224,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
227
224
|
* @param {*} [options] Override http request option.
|
|
228
225
|
* @throws {RequiredError}
|
|
229
226
|
*/
|
|
230
|
-
|
|
227
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
231
228
|
/**
|
|
232
229
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
233
230
|
* @summary List product documents
|
|
@@ -243,7 +240,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
243
240
|
* @param {*} [options] Override http request option.
|
|
244
241
|
* @throws {RequiredError}
|
|
245
242
|
*/
|
|
246
|
-
|
|
243
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
247
244
|
/**
|
|
248
245
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
249
246
|
* @summary Create the product document
|
|
@@ -337,124 +334,118 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
337
334
|
readonly authorization?: string;
|
|
338
335
|
}
|
|
339
336
|
/**
|
|
340
|
-
* Request parameters for
|
|
337
|
+
* Request parameters for listProductDocuments operation in ProductDocumentsApi.
|
|
341
338
|
* @export
|
|
342
|
-
* @interface
|
|
339
|
+
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
343
340
|
*/
|
|
344
|
-
export interface
|
|
345
|
-
/**
|
|
346
|
-
*
|
|
347
|
-
* @type {string}
|
|
348
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
349
|
-
*/
|
|
350
|
-
readonly productSlug: string;
|
|
341
|
+
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
351
342
|
/**
|
|
352
343
|
* Bearer Token
|
|
353
344
|
* @type {string}
|
|
354
|
-
* @memberof
|
|
345
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
355
346
|
*/
|
|
356
347
|
readonly authorization?: string;
|
|
357
348
|
/**
|
|
358
349
|
* Page size
|
|
359
350
|
* @type {number}
|
|
360
|
-
* @memberof
|
|
351
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
361
352
|
*/
|
|
362
353
|
readonly pageSize?: number;
|
|
363
354
|
/**
|
|
364
355
|
* Page token
|
|
365
356
|
* @type {string}
|
|
366
|
-
* @memberof
|
|
357
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
367
358
|
*/
|
|
368
359
|
readonly pageToken?: string;
|
|
369
360
|
/**
|
|
370
361
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
371
362
|
* @type {string}
|
|
372
|
-
* @memberof
|
|
363
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
373
364
|
*/
|
|
374
365
|
readonly filter?: string;
|
|
375
366
|
/**
|
|
376
367
|
* Search query
|
|
377
368
|
* @type {string}
|
|
378
|
-
* @memberof
|
|
369
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
379
370
|
*/
|
|
380
371
|
readonly search?: string;
|
|
381
372
|
/**
|
|
382
373
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
383
374
|
* @type {string}
|
|
384
|
-
* @memberof
|
|
375
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
385
376
|
*/
|
|
386
377
|
readonly order?: string;
|
|
387
378
|
/**
|
|
388
379
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
389
380
|
* @type {string}
|
|
390
|
-
* @memberof
|
|
381
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
391
382
|
*/
|
|
392
383
|
readonly expand?: string;
|
|
393
384
|
/**
|
|
394
385
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
395
386
|
* @type {string}
|
|
396
|
-
* @memberof
|
|
387
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
397
388
|
*/
|
|
398
389
|
readonly filters?: string;
|
|
399
390
|
}
|
|
400
391
|
/**
|
|
401
|
-
* Request parameters for
|
|
392
|
+
* Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
|
|
402
393
|
* @export
|
|
403
|
-
* @interface
|
|
394
|
+
* @interface ProductDocumentsApiListProductDocumentsByProductRequest
|
|
404
395
|
*/
|
|
405
|
-
export interface
|
|
396
|
+
export interface ProductDocumentsApiListProductDocumentsByProductRequest {
|
|
406
397
|
/**
|
|
407
398
|
*
|
|
408
399
|
* @type {string}
|
|
409
|
-
* @memberof
|
|
400
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
410
401
|
*/
|
|
411
402
|
readonly productSlug: string;
|
|
412
403
|
/**
|
|
413
404
|
* Bearer Token
|
|
414
405
|
* @type {string}
|
|
415
|
-
* @memberof
|
|
406
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
416
407
|
*/
|
|
417
408
|
readonly authorization?: string;
|
|
418
409
|
/**
|
|
419
410
|
* Page size
|
|
420
411
|
* @type {number}
|
|
421
|
-
* @memberof
|
|
412
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
422
413
|
*/
|
|
423
414
|
readonly pageSize?: number;
|
|
424
415
|
/**
|
|
425
416
|
* Page token
|
|
426
417
|
* @type {string}
|
|
427
|
-
* @memberof
|
|
418
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
428
419
|
*/
|
|
429
420
|
readonly pageToken?: string;
|
|
430
421
|
/**
|
|
431
422
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
432
423
|
* @type {string}
|
|
433
|
-
* @memberof
|
|
424
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
434
425
|
*/
|
|
435
426
|
readonly filter?: string;
|
|
436
427
|
/**
|
|
437
428
|
* Search query
|
|
438
429
|
* @type {string}
|
|
439
|
-
* @memberof
|
|
430
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
440
431
|
*/
|
|
441
432
|
readonly search?: string;
|
|
442
433
|
/**
|
|
443
434
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
444
435
|
* @type {string}
|
|
445
|
-
* @memberof
|
|
436
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
446
437
|
*/
|
|
447
438
|
readonly order?: string;
|
|
448
439
|
/**
|
|
449
440
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
450
441
|
* @type {string}
|
|
451
|
-
* @memberof
|
|
442
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
452
443
|
*/
|
|
453
444
|
readonly expand?: string;
|
|
454
445
|
/**
|
|
455
446
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
456
447
|
* @type {string}
|
|
457
|
-
* @memberof
|
|
448
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
458
449
|
*/
|
|
459
450
|
readonly filters?: string;
|
|
460
451
|
}
|
|
@@ -520,21 +511,21 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
520
511
|
/**
|
|
521
512
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
522
513
|
* @summary List product documents
|
|
523
|
-
* @param {
|
|
514
|
+
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
524
515
|
* @param {*} [options] Override http request option.
|
|
525
516
|
* @throws {RequiredError}
|
|
526
517
|
* @memberof ProductDocumentsApi
|
|
527
518
|
*/
|
|
528
|
-
|
|
519
|
+
listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
529
520
|
/**
|
|
530
521
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
531
522
|
* @summary List product documents
|
|
532
|
-
* @param {
|
|
523
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
533
524
|
* @param {*} [options] Override http request option.
|
|
534
525
|
* @throws {RequiredError}
|
|
535
526
|
* @memberof ProductDocumentsApi
|
|
536
527
|
*/
|
|
537
|
-
|
|
528
|
+
listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
538
529
|
/**
|
|
539
530
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
540
531
|
* @summary Create the product document
|
|
@@ -255,7 +255,6 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
/**
|
|
256
256
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
257
257
|
* @summary List product documents
|
|
258
|
-
* @param {string} productSlug
|
|
259
258
|
* @param {string} [authorization] Bearer Token
|
|
260
259
|
* @param {number} [pageSize] Page size
|
|
261
260
|
* @param {string} [pageToken] Page token
|
|
@@ -267,17 +266,14 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
267
266
|
* @param {*} [options] Override http request option.
|
|
268
267
|
* @throws {RequiredError}
|
|
269
268
|
*/
|
|
270
|
-
|
|
269
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
271
270
|
if (options === void 0) { options = {}; }
|
|
272
271
|
return __awaiter(_this, void 0, void 0, function () {
|
|
273
272
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
274
273
|
return __generator(this, function (_a) {
|
|
275
274
|
switch (_a.label) {
|
|
276
275
|
case 0:
|
|
277
|
-
|
|
278
|
-
(0, common_1.assertParamExists)('listProductDocuments0', 'productSlug', productSlug);
|
|
279
|
-
localVarPath = "/documentservice/v1/product-documents"
|
|
280
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
276
|
+
localVarPath = "/documentservice/v1/product-documents";
|
|
281
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
282
278
|
if (configuration) {
|
|
283
279
|
baseOptions = configuration.baseOptions;
|
|
@@ -343,7 +339,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
343
339
|
* @param {*} [options] Override http request option.
|
|
344
340
|
* @throws {RequiredError}
|
|
345
341
|
*/
|
|
346
|
-
|
|
342
|
+
listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
347
343
|
if (options === void 0) { options = {}; }
|
|
348
344
|
return __awaiter(_this, void 0, void 0, function () {
|
|
349
345
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -351,7 +347,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
351
347
|
switch (_a.label) {
|
|
352
348
|
case 0:
|
|
353
349
|
// verify required parameter 'productSlug' is not null or undefined
|
|
354
|
-
(0, common_1.assertParamExists)('
|
|
350
|
+
(0, common_1.assertParamExists)('listProductDocumentsByProduct', 'productSlug', productSlug);
|
|
355
351
|
localVarPath = "/documentservice/v1/product-documents/{productSlug}"
|
|
356
352
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
357
353
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -537,7 +533,6 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
537
533
|
/**
|
|
538
534
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
539
535
|
* @summary List product documents
|
|
540
|
-
* @param {string} productSlug
|
|
541
536
|
* @param {string} [authorization] Bearer Token
|
|
542
537
|
* @param {number} [pageSize] Page size
|
|
543
538
|
* @param {string} [pageToken] Page token
|
|
@@ -549,12 +544,12 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
549
544
|
* @param {*} [options] Override http request option.
|
|
550
545
|
* @throws {RequiredError}
|
|
551
546
|
*/
|
|
552
|
-
|
|
547
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
553
548
|
return __awaiter(this, void 0, void 0, function () {
|
|
554
549
|
var localVarAxiosArgs;
|
|
555
550
|
return __generator(this, function (_a) {
|
|
556
551
|
switch (_a.label) {
|
|
557
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
552
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
558
553
|
case 1:
|
|
559
554
|
localVarAxiosArgs = _a.sent();
|
|
560
555
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -577,12 +572,12 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
577
572
|
* @param {*} [options] Override http request option.
|
|
578
573
|
* @throws {RequiredError}
|
|
579
574
|
*/
|
|
580
|
-
|
|
575
|
+
listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
581
576
|
return __awaiter(this, void 0, void 0, function () {
|
|
582
577
|
var localVarAxiosArgs;
|
|
583
578
|
return __generator(this, function (_a) {
|
|
584
579
|
switch (_a.label) {
|
|
585
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
580
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
586
581
|
case 1:
|
|
587
582
|
localVarAxiosArgs = _a.sent();
|
|
588
583
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -662,7 +657,6 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
662
657
|
/**
|
|
663
658
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
664
659
|
* @summary List product documents
|
|
665
|
-
* @param {string} productSlug
|
|
666
660
|
* @param {string} [authorization] Bearer Token
|
|
667
661
|
* @param {number} [pageSize] Page size
|
|
668
662
|
* @param {string} [pageToken] Page token
|
|
@@ -674,8 +668,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
674
668
|
* @param {*} [options] Override http request option.
|
|
675
669
|
* @throws {RequiredError}
|
|
676
670
|
*/
|
|
677
|
-
|
|
678
|
-
return localVarFp.
|
|
671
|
+
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
672
|
+
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
679
673
|
},
|
|
680
674
|
/**
|
|
681
675
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -692,8 +686,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
692
686
|
* @param {*} [options] Override http request option.
|
|
693
687
|
* @throws {RequiredError}
|
|
694
688
|
*/
|
|
695
|
-
|
|
696
|
-
return localVarFp.
|
|
689
|
+
listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
690
|
+
return localVarFp.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
697
691
|
},
|
|
698
692
|
/**
|
|
699
693
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
@@ -760,26 +754,27 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
760
754
|
/**
|
|
761
755
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
762
756
|
* @summary List product documents
|
|
763
|
-
* @param {
|
|
757
|
+
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
764
758
|
* @param {*} [options] Override http request option.
|
|
765
759
|
* @throws {RequiredError}
|
|
766
760
|
* @memberof ProductDocumentsApi
|
|
767
761
|
*/
|
|
768
|
-
ProductDocumentsApi.prototype.
|
|
762
|
+
ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
769
763
|
var _this = this;
|
|
770
|
-
|
|
764
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
765
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
771
766
|
};
|
|
772
767
|
/**
|
|
773
768
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
774
769
|
* @summary List product documents
|
|
775
|
-
* @param {
|
|
770
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
776
771
|
* @param {*} [options] Override http request option.
|
|
777
772
|
* @throws {RequiredError}
|
|
778
773
|
* @memberof ProductDocumentsApi
|
|
779
774
|
*/
|
|
780
|
-
ProductDocumentsApi.prototype.
|
|
775
|
+
ProductDocumentsApi.prototype.listProductDocumentsByProduct = function (requestParameters, options) {
|
|
781
776
|
var _this = this;
|
|
782
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).
|
|
777
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
783
778
|
};
|
|
784
779
|
/**
|
|
785
780
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
package/dist/base.d.ts
CHANGED
|
@@ -39,7 +39,8 @@ export declare enum Environment {
|
|
|
39
39
|
Test = "https://apiv2-test.emil.de",
|
|
40
40
|
Staging = "https://apiv2-staging.emil.de",
|
|
41
41
|
Development = "https://apiv2-dev.emil.de",
|
|
42
|
-
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
42
|
+
ProductionZurich = "https://eu-central-2.apiv2.emil.de",
|
|
43
|
+
StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
|
|
43
44
|
}
|
|
44
45
|
export declare function resetRetry(): void;
|
|
45
46
|
/**
|
package/dist/base.js
CHANGED
|
@@ -102,6 +102,7 @@ var Environment;
|
|
|
102
102
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
103
103
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
104
104
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
105
|
+
Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
|
|
105
106
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
106
107
|
var _retry_count = 0;
|
|
107
108
|
var _retry = null;
|
|
@@ -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 { DocumentClass } from './document-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateQrBillDocumentResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateQrBillDocumentResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The generated QR bill PDF document
|
|
21
|
+
* @type {DocumentClass}
|
|
22
|
+
* @memberof CreateQrBillDocumentResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'document': DocumentClass;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './create-layout-response-class';
|
|
|
8
8
|
export * from './create-presigned-post-request-dto';
|
|
9
9
|
export * from './create-presigned-post-response-class';
|
|
10
10
|
export * from './create-qr-bill-document-request-dto';
|
|
11
|
+
export * from './create-qr-bill-document-response-class';
|
|
11
12
|
export * from './delete-layout-request-dto';
|
|
12
13
|
export * from './delete-product-document-request-dto';
|
|
13
14
|
export * from './delete-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./create-layout-response-class"), exports);
|
|
|
24
24
|
__exportStar(require("./create-presigned-post-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./create-presigned-post-response-class"), exports);
|
|
26
26
|
__exportStar(require("./create-qr-bill-document-request-dto"), exports);
|
|
27
|
+
__exportStar(require("./create-qr-bill-document-response-class"), exports);
|
|
27
28
|
__exportStar(require("./delete-layout-request-dto"), exports);
|
|
28
29
|
__exportStar(require("./delete-product-document-request-dto"), exports);
|
|
29
30
|
__exportStar(require("./delete-request-dto"), exports);
|
|
@@ -58,18 +58,6 @@ export interface LayoutClass {
|
|
|
58
58
|
* @memberof LayoutClass
|
|
59
59
|
*/
|
|
60
60
|
'footerTemplate': HtmlTemplateClass;
|
|
61
|
-
/**
|
|
62
|
-
* Time at which the object was created.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof LayoutClass
|
|
65
|
-
*/
|
|
66
|
-
'createdAt': string;
|
|
67
|
-
/**
|
|
68
|
-
* Time at which the object was updated.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof LayoutClass
|
|
71
|
-
*/
|
|
72
|
-
'updatedAt': string;
|
|
73
61
|
/**
|
|
74
62
|
* Time at which the layout was deleted.
|
|
75
63
|
* @type {string}
|
|
@@ -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 { DocumentClass } from './document-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateQrBillDocumentResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateQrBillDocumentResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The generated QR bill PDF document
|
|
26
|
+
* @type {DocumentClass}
|
|
27
|
+
* @memberof CreateQrBillDocumentResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'document': DocumentClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './create-layout-response-class';
|
|
|
8
8
|
export * from './create-presigned-post-request-dto';
|
|
9
9
|
export * from './create-presigned-post-response-class';
|
|
10
10
|
export * from './create-qr-bill-document-request-dto';
|
|
11
|
+
export * from './create-qr-bill-document-response-class';
|
|
11
12
|
export * from './delete-layout-request-dto';
|
|
12
13
|
export * from './delete-product-document-request-dto';
|
|
13
14
|
export * from './delete-request-dto';
|
package/models/layout-class.ts
CHANGED
|
@@ -63,18 +63,6 @@ export interface LayoutClass {
|
|
|
63
63
|
* @memberof LayoutClass
|
|
64
64
|
*/
|
|
65
65
|
'footerTemplate': HtmlTemplateClass;
|
|
66
|
-
/**
|
|
67
|
-
* Time at which the object was created.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LayoutClass
|
|
70
|
-
*/
|
|
71
|
-
'createdAt': string;
|
|
72
|
-
/**
|
|
73
|
-
* Time at which the object was updated.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LayoutClass
|
|
76
|
-
*/
|
|
77
|
-
'updatedAt': string;
|
|
78
66
|
/**
|
|
79
67
|
* Time at which the layout was deleted.
|
|
80
68
|
* @type {string}
|