@emilgroup/document-sdk-node 1.44.1-beta.2 → 1.44.1-beta.21

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.
@@ -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-node@1.44.1-beta.2 --save
20
+ npm install @emilgroup/document-sdk-node@1.44.1-beta.21 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.44.1-beta.2
24
+ yarn add @emilgroup/document-sdk-node@1.44.1-beta.21
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -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';
@@ -665,7 +667,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
665
667
  * @param {*} [options] Override http request option.
666
668
  * @throws {RequiredError}
667
669
  */
668
- async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
670
+ async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>> {
669
671
  const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
670
672
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
671
673
  },
@@ -815,7 +817,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
815
817
  * @param {*} [options] Override http request option.
816
818
  * @throws {RequiredError}
817
819
  */
818
- createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
820
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass> {
819
821
  return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
820
822
  },
821
823
  /**
@@ -197,7 +197,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
197
197
  /**
198
198
  * 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\"
199
199
  * @summary List product documents
200
- * @param {string} productSlug
201
200
  * @param {string} [authorization] Bearer Token
202
201
  * @param {number} [pageSize] Page size
203
202
  * @param {string} [pageToken] Page token
@@ -209,11 +208,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
209
208
  * @param {*} [options] Override http request option.
210
209
  * @throws {RequiredError}
211
210
  */
212
- listProductDocuments0: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
213
- // verify required parameter 'productSlug' is not null or undefined
214
- assertParamExists('listProductDocuments0', 'productSlug', productSlug)
215
- const localVarPath = `/documentservice/v1/product-documents`
216
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
211
+ listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
212
+ const localVarPath = `/documentservice/v1/product-documents`;
217
213
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
214
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
219
215
  let baseOptions;
@@ -289,9 +285,9 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
289
285
  * @param {*} [options] Override http request option.
290
286
  * @throws {RequiredError}
291
287
  */
292
- listProductDocuments1: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
288
+ listProductDocumentsByProduct: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
293
289
  // verify required parameter 'productSlug' is not null or undefined
294
- assertParamExists('listProductDocuments1', 'productSlug', productSlug)
290
+ assertParamExists('listProductDocumentsByProduct', 'productSlug', productSlug)
295
291
  const localVarPath = `/documentservice/v1/product-documents/{productSlug}`
296
292
  .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
297
293
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -458,7 +454,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
458
454
  /**
459
455
  * 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\"
460
456
  * @summary List product documents
461
- * @param {string} productSlug
462
457
  * @param {string} [authorization] Bearer Token
463
458
  * @param {number} [pageSize] Page size
464
459
  * @param {string} [pageToken] Page token
@@ -470,8 +465,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
470
465
  * @param {*} [options] Override http request option.
471
466
  * @throws {RequiredError}
472
467
  */
473
- async listProductDocuments0(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>> {
474
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
468
+ 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>> {
469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
475
470
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
471
  },
477
472
  /**
@@ -489,8 +484,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
489
484
  * @param {*} [options] Override http request option.
490
485
  * @throws {RequiredError}
491
486
  */
492
- async listProductDocuments1(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>> {
493
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
487
+ 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>> {
488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
494
489
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
495
490
  },
496
491
  /**
@@ -556,7 +551,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
556
551
  /**
557
552
  * 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\"
558
553
  * @summary List product documents
559
- * @param {string} productSlug
560
554
  * @param {string} [authorization] Bearer Token
561
555
  * @param {number} [pageSize] Page size
562
556
  * @param {string} [pageToken] Page token
@@ -568,8 +562,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
568
562
  * @param {*} [options] Override http request option.
569
563
  * @throws {RequiredError}
570
564
  */
571
- listProductDocuments0(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
572
- return localVarFp.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
565
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
566
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
573
567
  },
574
568
  /**
575
569
  * 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\"
@@ -586,8 +580,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
586
580
  * @param {*} [options] Override http request option.
587
581
  * @throws {RequiredError}
588
582
  */
589
- listProductDocuments1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
590
- return localVarFp.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
583
+ listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
584
+ return localVarFp.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
591
585
  },
592
586
  /**
593
587
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
@@ -696,141 +690,134 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
696
690
  }
697
691
 
698
692
  /**
699
- * Request parameters for listProductDocuments0 operation in ProductDocumentsApi.
693
+ * Request parameters for listProductDocuments operation in ProductDocumentsApi.
700
694
  * @export
701
- * @interface ProductDocumentsApiListProductDocuments0Request
695
+ * @interface ProductDocumentsApiListProductDocumentsRequest
702
696
  */
703
- export interface ProductDocumentsApiListProductDocuments0Request {
704
- /**
705
- *
706
- * @type {string}
707
- * @memberof ProductDocumentsApiListProductDocuments0
708
- */
709
- readonly productSlug: string
710
-
697
+ export interface ProductDocumentsApiListProductDocumentsRequest {
711
698
  /**
712
699
  * Bearer Token
713
700
  * @type {string}
714
- * @memberof ProductDocumentsApiListProductDocuments0
701
+ * @memberof ProductDocumentsApiListProductDocuments
715
702
  */
716
703
  readonly authorization?: string
717
704
 
718
705
  /**
719
706
  * Page size
720
707
  * @type {number}
721
- * @memberof ProductDocumentsApiListProductDocuments0
708
+ * @memberof ProductDocumentsApiListProductDocuments
722
709
  */
723
710
  readonly pageSize?: number
724
711
 
725
712
  /**
726
713
  * Page token
727
714
  * @type {string}
728
- * @memberof ProductDocumentsApiListProductDocuments0
715
+ * @memberof ProductDocumentsApiListProductDocuments
729
716
  */
730
717
  readonly pageToken?: string
731
718
 
732
719
  /**
733
720
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
734
721
  * @type {string}
735
- * @memberof ProductDocumentsApiListProductDocuments0
722
+ * @memberof ProductDocumentsApiListProductDocuments
736
723
  */
737
724
  readonly filter?: string
738
725
 
739
726
  /**
740
727
  * Search query
741
728
  * @type {string}
742
- * @memberof ProductDocumentsApiListProductDocuments0
729
+ * @memberof ProductDocumentsApiListProductDocuments
743
730
  */
744
731
  readonly search?: string
745
732
 
746
733
  /**
747
734
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
748
735
  * @type {string}
749
- * @memberof ProductDocumentsApiListProductDocuments0
736
+ * @memberof ProductDocumentsApiListProductDocuments
750
737
  */
751
738
  readonly order?: string
752
739
 
753
740
  /**
754
741
  * 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.&lt;br/&gt; &lt;br/&gt;
755
742
  * @type {string}
756
- * @memberof ProductDocumentsApiListProductDocuments0
743
+ * @memberof ProductDocumentsApiListProductDocuments
757
744
  */
758
745
  readonly expand?: string
759
746
 
760
747
  /**
761
748
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
762
749
  * @type {string}
763
- * @memberof ProductDocumentsApiListProductDocuments0
750
+ * @memberof ProductDocumentsApiListProductDocuments
764
751
  */
765
752
  readonly filters?: string
766
753
  }
767
754
 
768
755
  /**
769
- * Request parameters for listProductDocuments1 operation in ProductDocumentsApi.
756
+ * Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
770
757
  * @export
771
- * @interface ProductDocumentsApiListProductDocuments1Request
758
+ * @interface ProductDocumentsApiListProductDocumentsByProductRequest
772
759
  */
773
- export interface ProductDocumentsApiListProductDocuments1Request {
760
+ export interface ProductDocumentsApiListProductDocumentsByProductRequest {
774
761
  /**
775
762
  *
776
763
  * @type {string}
777
- * @memberof ProductDocumentsApiListProductDocuments1
764
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
778
765
  */
779
766
  readonly productSlug: string
780
767
 
781
768
  /**
782
769
  * Bearer Token
783
770
  * @type {string}
784
- * @memberof ProductDocumentsApiListProductDocuments1
771
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
785
772
  */
786
773
  readonly authorization?: string
787
774
 
788
775
  /**
789
776
  * Page size
790
777
  * @type {number}
791
- * @memberof ProductDocumentsApiListProductDocuments1
778
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
792
779
  */
793
780
  readonly pageSize?: number
794
781
 
795
782
  /**
796
783
  * Page token
797
784
  * @type {string}
798
- * @memberof ProductDocumentsApiListProductDocuments1
785
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
799
786
  */
800
787
  readonly pageToken?: string
801
788
 
802
789
  /**
803
790
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
804
791
  * @type {string}
805
- * @memberof ProductDocumentsApiListProductDocuments1
792
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
806
793
  */
807
794
  readonly filter?: string
808
795
 
809
796
  /**
810
797
  * Search query
811
798
  * @type {string}
812
- * @memberof ProductDocumentsApiListProductDocuments1
799
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
813
800
  */
814
801
  readonly search?: string
815
802
 
816
803
  /**
817
804
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
818
805
  * @type {string}
819
- * @memberof ProductDocumentsApiListProductDocuments1
806
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
820
807
  */
821
808
  readonly order?: string
822
809
 
823
810
  /**
824
811
  * 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.&lt;br/&gt; &lt;br/&gt;
825
812
  * @type {string}
826
- * @memberof ProductDocumentsApiListProductDocuments1
813
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
827
814
  */
828
815
  readonly expand?: string
829
816
 
830
817
  /**
831
818
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
832
819
  * @type {string}
833
- * @memberof ProductDocumentsApiListProductDocuments1
820
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
834
821
  */
835
822
  readonly filters?: string
836
823
  }
@@ -909,25 +896,25 @@ export class ProductDocumentsApi extends BaseAPI {
909
896
  /**
910
897
  * 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\"
911
898
  * @summary List product documents
912
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
899
+ * @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
913
900
  * @param {*} [options] Override http request option.
914
901
  * @throws {RequiredError}
915
902
  * @memberof ProductDocumentsApi
916
903
  */
917
- public listProductDocuments0(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig) {
918
- return ProductDocumentsApiFp(this.configuration).listProductDocuments0(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));
904
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
905
+ 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));
919
906
  }
920
907
 
921
908
  /**
922
909
  * 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\"
923
910
  * @summary List product documents
924
- * @param {ProductDocumentsApiListProductDocuments1Request} requestParameters Request parameters.
911
+ * @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
925
912
  * @param {*} [options] Override http request option.
926
913
  * @throws {RequiredError}
927
914
  * @memberof ProductDocumentsApi
928
915
  */
929
- public listProductDocuments1(requestParameters: ProductDocumentsApiListProductDocuments1Request, options?: AxiosRequestConfig) {
930
- return ProductDocumentsApiFp(this.configuration).listProductDocuments1(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));
916
+ public listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig) {
917
+ 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));
931
918
  }
932
919
 
933
920
  /**
package/base.ts CHANGED
@@ -60,6 +60,7 @@ export enum Environment {
60
60
  Staging = 'https://apiv2-staging.emil.de',
61
61
  Development = 'https://apiv2-dev.emil.de',
62
62
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
63
+ StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
63
64
  }
64
65
 
65
66
  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<object>>;
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<object>;
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<object, any, {}>>;
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
- listProductDocuments0: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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
- listProductDocuments1: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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
- listProductDocuments0(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>>;
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
- listProductDocuments1(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>>;
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
- listProductDocuments0(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
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
- listProductDocuments1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
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 listProductDocuments0 operation in ProductDocumentsApi.
337
+ * Request parameters for listProductDocuments operation in ProductDocumentsApi.
341
338
  * @export
342
- * @interface ProductDocumentsApiListProductDocuments0Request
339
+ * @interface ProductDocumentsApiListProductDocumentsRequest
343
340
  */
344
- export interface ProductDocumentsApiListProductDocuments0Request {
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 ProductDocumentsApiListProductDocuments0
345
+ * @memberof ProductDocumentsApiListProductDocuments
355
346
  */
356
347
  readonly authorization?: string;
357
348
  /**
358
349
  * Page size
359
350
  * @type {number}
360
- * @memberof ProductDocumentsApiListProductDocuments0
351
+ * @memberof ProductDocumentsApiListProductDocuments
361
352
  */
362
353
  readonly pageSize?: number;
363
354
  /**
364
355
  * Page token
365
356
  * @type {string}
366
- * @memberof ProductDocumentsApiListProductDocuments0
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
371
362
  * @type {string}
372
- * @memberof ProductDocumentsApiListProductDocuments0
363
+ * @memberof ProductDocumentsApiListProductDocuments
373
364
  */
374
365
  readonly filter?: string;
375
366
  /**
376
367
  * Search query
377
368
  * @type {string}
378
- * @memberof ProductDocumentsApiListProductDocuments0
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
383
374
  * @type {string}
384
- * @memberof ProductDocumentsApiListProductDocuments0
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.&lt;br/&gt; &lt;br/&gt;
389
380
  * @type {string}
390
- * @memberof ProductDocumentsApiListProductDocuments0
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
395
386
  * @type {string}
396
- * @memberof ProductDocumentsApiListProductDocuments0
387
+ * @memberof ProductDocumentsApiListProductDocuments
397
388
  */
398
389
  readonly filters?: string;
399
390
  }
400
391
  /**
401
- * Request parameters for listProductDocuments1 operation in ProductDocumentsApi.
392
+ * Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
402
393
  * @export
403
- * @interface ProductDocumentsApiListProductDocuments1Request
394
+ * @interface ProductDocumentsApiListProductDocumentsByProductRequest
404
395
  */
405
- export interface ProductDocumentsApiListProductDocuments1Request {
396
+ export interface ProductDocumentsApiListProductDocumentsByProductRequest {
406
397
  /**
407
398
  *
408
399
  * @type {string}
409
- * @memberof ProductDocumentsApiListProductDocuments1
400
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
410
401
  */
411
402
  readonly productSlug: string;
412
403
  /**
413
404
  * Bearer Token
414
405
  * @type {string}
415
- * @memberof ProductDocumentsApiListProductDocuments1
406
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
416
407
  */
417
408
  readonly authorization?: string;
418
409
  /**
419
410
  * Page size
420
411
  * @type {number}
421
- * @memberof ProductDocumentsApiListProductDocuments1
412
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
422
413
  */
423
414
  readonly pageSize?: number;
424
415
  /**
425
416
  * Page token
426
417
  * @type {string}
427
- * @memberof ProductDocumentsApiListProductDocuments1
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
432
423
  * @type {string}
433
- * @memberof ProductDocumentsApiListProductDocuments1
424
+ * @memberof ProductDocumentsApiListProductDocumentsByProduct
434
425
  */
435
426
  readonly filter?: string;
436
427
  /**
437
428
  * Search query
438
429
  * @type {string}
439
- * @memberof ProductDocumentsApiListProductDocuments1
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
444
435
  * @type {string}
445
- * @memberof ProductDocumentsApiListProductDocuments1
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.&lt;br/&gt; &lt;br/&gt;
450
441
  * @type {string}
451
- * @memberof ProductDocumentsApiListProductDocuments1
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt, slug&lt;/i&gt;
456
447
  * @type {string}
457
- * @memberof ProductDocumentsApiListProductDocuments1
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 {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
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
- listProductDocuments0(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
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 {ProductDocumentsApiListProductDocuments1Request} requestParameters Request parameters.
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
- listProductDocuments1(requestParameters: ProductDocumentsApiListProductDocuments1Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
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
@@ -259,7 +259,6 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
259
259
  /**
260
260
  * 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\"
261
261
  * @summary List product documents
262
- * @param {string} productSlug
263
262
  * @param {string} [authorization] Bearer Token
264
263
  * @param {number} [pageSize] Page size
265
264
  * @param {string} [pageToken] Page token
@@ -271,17 +270,14 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
271
270
  * @param {*} [options] Override http request option.
272
271
  * @throws {RequiredError}
273
272
  */
274
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
273
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
275
274
  if (options === void 0) { options = {}; }
276
275
  return __awaiter(_this, void 0, void 0, function () {
277
276
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
278
277
  return __generator(this, function (_a) {
279
278
  switch (_a.label) {
280
279
  case 0:
281
- // verify required parameter 'productSlug' is not null or undefined
282
- (0, common_1.assertParamExists)('listProductDocuments0', 'productSlug', productSlug);
283
- localVarPath = "/documentservice/v1/product-documents"
284
- .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
280
+ localVarPath = "/documentservice/v1/product-documents";
285
281
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
286
282
  if (configuration) {
287
283
  baseOptions = configuration.baseOptions;
@@ -347,7 +343,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
347
343
  * @param {*} [options] Override http request option.
348
344
  * @throws {RequiredError}
349
345
  */
350
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
346
+ listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
351
347
  if (options === void 0) { options = {}; }
352
348
  return __awaiter(_this, void 0, void 0, function () {
353
349
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -355,7 +351,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
355
351
  switch (_a.label) {
356
352
  case 0:
357
353
  // verify required parameter 'productSlug' is not null or undefined
358
- (0, common_1.assertParamExists)('listProductDocuments1', 'productSlug', productSlug);
354
+ (0, common_1.assertParamExists)('listProductDocumentsByProduct', 'productSlug', productSlug);
359
355
  localVarPath = "/documentservice/v1/product-documents/{productSlug}"
360
356
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
361
357
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -541,7 +537,6 @@ var ProductDocumentsApiFp = function (configuration) {
541
537
  /**
542
538
  * 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\"
543
539
  * @summary List product documents
544
- * @param {string} productSlug
545
540
  * @param {string} [authorization] Bearer Token
546
541
  * @param {number} [pageSize] Page size
547
542
  * @param {string} [pageToken] Page token
@@ -553,12 +548,12 @@ var ProductDocumentsApiFp = function (configuration) {
553
548
  * @param {*} [options] Override http request option.
554
549
  * @throws {RequiredError}
555
550
  */
556
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
552
  return __awaiter(this, void 0, void 0, function () {
558
553
  var localVarAxiosArgs;
559
554
  return __generator(this, function (_a) {
560
555
  switch (_a.label) {
561
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
556
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
562
557
  case 1:
563
558
  localVarAxiosArgs = _a.sent();
564
559
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -581,12 +576,12 @@ var ProductDocumentsApiFp = function (configuration) {
581
576
  * @param {*} [options] Override http request option.
582
577
  * @throws {RequiredError}
583
578
  */
584
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
579
+ listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
585
580
  return __awaiter(this, void 0, void 0, function () {
586
581
  var localVarAxiosArgs;
587
582
  return __generator(this, function (_a) {
588
583
  switch (_a.label) {
589
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
584
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
590
585
  case 1:
591
586
  localVarAxiosArgs = _a.sent();
592
587
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -666,7 +661,6 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
666
661
  /**
667
662
  * 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\"
668
663
  * @summary List product documents
669
- * @param {string} productSlug
670
664
  * @param {string} [authorization] Bearer Token
671
665
  * @param {number} [pageSize] Page size
672
666
  * @param {string} [pageToken] Page token
@@ -678,8 +672,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
678
672
  * @param {*} [options] Override http request option.
679
673
  * @throws {RequiredError}
680
674
  */
681
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
682
- return localVarFp.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
675
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
676
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
683
677
  },
684
678
  /**
685
679
  * 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\"
@@ -696,8 +690,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
696
690
  * @param {*} [options] Override http request option.
697
691
  * @throws {RequiredError}
698
692
  */
699
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
700
- return localVarFp.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
693
+ listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
694
+ return localVarFp.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
701
695
  },
702
696
  /**
703
697
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
@@ -764,26 +758,27 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
764
758
  /**
765
759
  * 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\"
766
760
  * @summary List product documents
767
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
761
+ * @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
768
762
  * @param {*} [options] Override http request option.
769
763
  * @throws {RequiredError}
770
764
  * @memberof ProductDocumentsApi
771
765
  */
772
- ProductDocumentsApi.prototype.listProductDocuments0 = function (requestParameters, options) {
766
+ ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
773
767
  var _this = this;
774
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments0(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); });
768
+ if (requestParameters === void 0) { requestParameters = {}; }
769
+ 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); });
775
770
  };
776
771
  /**
777
772
  * 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\"
778
773
  * @summary List product documents
779
- * @param {ProductDocumentsApiListProductDocuments1Request} requestParameters Request parameters.
774
+ * @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
780
775
  * @param {*} [options] Override http request option.
781
776
  * @throws {RequiredError}
782
777
  * @memberof ProductDocumentsApi
783
778
  */
784
- ProductDocumentsApi.prototype.listProductDocuments1 = function (requestParameters, options) {
779
+ ProductDocumentsApi.prototype.listProductDocumentsByProduct = function (requestParameters, options) {
785
780
  var _this = this;
786
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments1(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); });
781
+ 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); });
787
782
  };
788
783
  /**
789
784
  * 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
@@ -132,6 +132,7 @@ var Environment;
132
132
  Environment["Staging"] = "https://apiv2-staging.emil.de";
133
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
134
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
135
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
135
136
  })(Environment = exports.Environment || (exports.Environment = {}));
136
137
  var _retry_count = 0;
137
138
  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 });
@@ -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';
@@ -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';
@@ -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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.44.1-beta.2",
3
+ "version": "1.44.1-beta.21",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [