@emilgroup/public-api-sdk-node 1.33.0 → 1.34.1
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 +2 -0
- package/README.md +2 -2
- package/api/documents-api.ts +40 -40
- package/api/products-api.ts +39 -39
- package/base.ts +48 -5
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/documents-api.d.ts +40 -40
- package/dist/api/documents-api.js +21 -21
- package/dist/api/products-api.d.ts +39 -39
- package/dist/api/products-api.js +21 -21
- package/dist/base.d.ts +12 -2
- package/dist/base.js +44 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +54 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/get-public-psp-settings-response-class.d.ts +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/product-field-class.d.ts +24 -0
- package/models/complete-eis-payment-setup-request-dto.ts +60 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/get-public-psp-settings-response-class.ts +6 -0
- package/models/index.ts +2 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +7 -0
- package/models/product-field-class.ts +24 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -0
|
@@ -80,17 +80,17 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
80
80
|
* @summary List product documents
|
|
81
81
|
* @param {string} productCode
|
|
82
82
|
* @param {string} [authorization] Bearer Token
|
|
83
|
-
* @param {
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
83
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
84
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
85
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
86
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
87
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
88
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
89
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
|
-
listProductDocuments: (productCode: string, authorization?: string, pageSize?:
|
|
93
|
+
listProductDocuments: (productCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
94
94
|
/**
|
|
95
95
|
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
96
96
|
* @summary Upload documents using pre-signed URL
|
|
@@ -163,17 +163,17 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
163
163
|
* @summary List product documents
|
|
164
164
|
* @param {string} productCode
|
|
165
165
|
* @param {string} [authorization] Bearer Token
|
|
166
|
-
* @param {
|
|
167
|
-
* @param {
|
|
168
|
-
* @param {
|
|
169
|
-
* @param {
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {
|
|
172
|
-
* @param {
|
|
166
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
167
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
168
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
169
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
170
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
171
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
172
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
173
173
|
* @param {*} [options] Override http request option.
|
|
174
174
|
* @throws {RequiredError}
|
|
175
175
|
*/
|
|
176
|
-
listProductDocuments(productCode: string, authorization?: string, pageSize?:
|
|
176
|
+
listProductDocuments(productCode: 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>>;
|
|
177
177
|
/**
|
|
178
178
|
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
179
179
|
* @summary Upload documents using pre-signed URL
|
|
@@ -246,17 +246,17 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
246
246
|
* @summary List product documents
|
|
247
247
|
* @param {string} productCode
|
|
248
248
|
* @param {string} [authorization] Bearer Token
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {
|
|
249
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
250
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
251
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
252
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
253
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
254
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
255
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
256
256
|
* @param {*} [options] Override http request option.
|
|
257
257
|
* @throws {RequiredError}
|
|
258
258
|
*/
|
|
259
|
-
listProductDocuments(productCode: string, authorization?: string, pageSize?:
|
|
259
|
+
listProductDocuments(productCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
260
260
|
/**
|
|
261
261
|
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
262
262
|
* @summary Upload documents using pre-signed URL
|
|
@@ -424,46 +424,46 @@ export interface DocumentsApiListProductDocumentsRequest {
|
|
|
424
424
|
readonly authorization?: string;
|
|
425
425
|
/**
|
|
426
426
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
427
|
-
* @type {
|
|
427
|
+
* @type {number}
|
|
428
428
|
* @memberof DocumentsApiListProductDocuments
|
|
429
429
|
*/
|
|
430
|
-
readonly pageSize?:
|
|
430
|
+
readonly pageSize?: number;
|
|
431
431
|
/**
|
|
432
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1,
|
|
433
|
-
* @type {
|
|
432
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
433
|
+
* @type {string}
|
|
434
434
|
* @memberof DocumentsApiListProductDocuments
|
|
435
435
|
*/
|
|
436
|
-
readonly pageToken?:
|
|
436
|
+
readonly pageToken?: string;
|
|
437
437
|
/**
|
|
438
438
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
439
|
-
* @type {
|
|
439
|
+
* @type {string}
|
|
440
440
|
* @memberof DocumentsApiListProductDocuments
|
|
441
441
|
*/
|
|
442
|
-
readonly filter?:
|
|
442
|
+
readonly filter?: string;
|
|
443
443
|
/**
|
|
444
444
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
445
|
-
* @type {
|
|
445
|
+
* @type {string}
|
|
446
446
|
* @memberof DocumentsApiListProductDocuments
|
|
447
447
|
*/
|
|
448
|
-
readonly search?:
|
|
448
|
+
readonly search?: string;
|
|
449
449
|
/**
|
|
450
450
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
451
|
-
* @type {
|
|
451
|
+
* @type {string}
|
|
452
452
|
* @memberof DocumentsApiListProductDocuments
|
|
453
453
|
*/
|
|
454
|
-
readonly order?:
|
|
454
|
+
readonly order?: string;
|
|
455
455
|
/**
|
|
456
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
457
|
-
* @type {
|
|
456
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
457
|
+
* @type {string}
|
|
458
458
|
* @memberof DocumentsApiListProductDocuments
|
|
459
459
|
*/
|
|
460
|
-
readonly expand?:
|
|
460
|
+
readonly expand?: string;
|
|
461
461
|
/**
|
|
462
462
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
463
|
-
* @type {
|
|
463
|
+
* @type {string}
|
|
464
464
|
* @memberof DocumentsApiListProductDocuments
|
|
465
465
|
*/
|
|
466
|
-
readonly filters?:
|
|
466
|
+
readonly filters?: string;
|
|
467
467
|
}
|
|
468
468
|
/**
|
|
469
469
|
* Request parameters for preSignedPost operation in DocumentsApi.
|
|
@@ -372,13 +372,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
372
372
|
* @summary List product documents
|
|
373
373
|
* @param {string} productCode
|
|
374
374
|
* @param {string} [authorization] Bearer Token
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {
|
|
377
|
-
* @param {
|
|
378
|
-
* @param {
|
|
379
|
-
* @param {
|
|
380
|
-
* @param {
|
|
381
|
-
* @param {
|
|
375
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
376
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
377
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
378
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
379
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
380
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
381
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
382
382
|
* @param {*} [options] Override http request option.
|
|
383
383
|
* @throws {RequiredError}
|
|
384
384
|
*/
|
|
@@ -619,13 +619,13 @@ var DocumentsApiFp = function (configuration) {
|
|
|
619
619
|
* @summary List product documents
|
|
620
620
|
* @param {string} productCode
|
|
621
621
|
* @param {string} [authorization] Bearer Token
|
|
622
|
-
* @param {
|
|
623
|
-
* @param {
|
|
624
|
-
* @param {
|
|
625
|
-
* @param {
|
|
626
|
-
* @param {
|
|
627
|
-
* @param {
|
|
628
|
-
* @param {
|
|
622
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
623
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
624
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
625
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
626
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
627
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
628
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
629
629
|
* @param {*} [options] Override http request option.
|
|
630
630
|
* @throws {RequiredError}
|
|
631
631
|
*/
|
|
@@ -740,13 +740,13 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
740
740
|
* @summary List product documents
|
|
741
741
|
* @param {string} productCode
|
|
742
742
|
* @param {string} [authorization] Bearer Token
|
|
743
|
-
* @param {
|
|
744
|
-
* @param {
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {
|
|
747
|
-
* @param {
|
|
748
|
-
* @param {
|
|
749
|
-
* @param {
|
|
743
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
744
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
745
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
746
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
747
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
748
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
749
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
750
750
|
* @param {*} [options] Override http request option.
|
|
751
751
|
* @throws {RequiredError}
|
|
752
752
|
*/
|
|
@@ -99,17 +99,17 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
99
99
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
100
100
|
* @summary List products
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {
|
|
102
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
103
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
104
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
105
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
106
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
107
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
108
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
listProducts: (authorization?: string, pageSize?:
|
|
112
|
+
listProducts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
115
|
* ProductsApi - functional programming interface
|
|
@@ -187,17 +187,17 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
187
187
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
188
188
|
* @summary List products
|
|
189
189
|
* @param {string} [authorization] Bearer Token
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
192
|
-
* @param {
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {
|
|
195
|
-
* @param {
|
|
196
|
-
* @param {
|
|
190
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
191
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
192
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
193
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
194
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
195
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
196
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
198
198
|
* @throws {RequiredError}
|
|
199
199
|
*/
|
|
200
|
-
listProducts(authorization?: string, pageSize?:
|
|
200
|
+
listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>>;
|
|
201
201
|
};
|
|
202
202
|
/**
|
|
203
203
|
* ProductsApi - factory interface
|
|
@@ -275,17 +275,17 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
275
275
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
276
276
|
* @summary List products
|
|
277
277
|
* @param {string} [authorization] Bearer Token
|
|
278
|
-
* @param {
|
|
279
|
-
* @param {
|
|
280
|
-
* @param {
|
|
281
|
-
* @param {
|
|
282
|
-
* @param {
|
|
283
|
-
* @param {
|
|
284
|
-
* @param {
|
|
278
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
279
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
280
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
281
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
282
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
283
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
284
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
285
285
|
* @param {*} [options] Override http request option.
|
|
286
286
|
* @throws {RequiredError}
|
|
287
287
|
*/
|
|
288
|
-
listProducts(authorization?: string, pageSize?:
|
|
288
|
+
listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
289
289
|
};
|
|
290
290
|
/**
|
|
291
291
|
* Request parameters for calculateProductFields operation in ProductsApi.
|
|
@@ -458,46 +458,46 @@ export interface ProductsApiListProductsRequest {
|
|
|
458
458
|
readonly authorization?: string;
|
|
459
459
|
/**
|
|
460
460
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
461
|
-
* @type {
|
|
461
|
+
* @type {number}
|
|
462
462
|
* @memberof ProductsApiListProducts
|
|
463
463
|
*/
|
|
464
|
-
readonly pageSize?:
|
|
464
|
+
readonly pageSize?: number;
|
|
465
465
|
/**
|
|
466
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1,
|
|
467
|
-
* @type {
|
|
466
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
467
|
+
* @type {string}
|
|
468
468
|
* @memberof ProductsApiListProducts
|
|
469
469
|
*/
|
|
470
|
-
readonly pageToken?:
|
|
470
|
+
readonly pageToken?: string;
|
|
471
471
|
/**
|
|
472
472
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
473
|
-
* @type {
|
|
473
|
+
* @type {string}
|
|
474
474
|
* @memberof ProductsApiListProducts
|
|
475
475
|
*/
|
|
476
|
-
readonly filter?:
|
|
476
|
+
readonly filter?: string;
|
|
477
477
|
/**
|
|
478
478
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
479
|
-
* @type {
|
|
479
|
+
* @type {string}
|
|
480
480
|
* @memberof ProductsApiListProducts
|
|
481
481
|
*/
|
|
482
|
-
readonly search?:
|
|
482
|
+
readonly search?: string;
|
|
483
483
|
/**
|
|
484
484
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
485
|
-
* @type {
|
|
485
|
+
* @type {string}
|
|
486
486
|
* @memberof ProductsApiListProducts
|
|
487
487
|
*/
|
|
488
|
-
readonly order?:
|
|
488
|
+
readonly order?: string;
|
|
489
489
|
/**
|
|
490
490
|
* You can expand product versions and insured object types list in this endpoint.
|
|
491
|
-
* @type {
|
|
491
|
+
* @type {string}
|
|
492
492
|
* @memberof ProductsApiListProducts
|
|
493
493
|
*/
|
|
494
|
-
readonly expand?:
|
|
494
|
+
readonly expand?: string;
|
|
495
495
|
/**
|
|
496
496
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
497
|
-
* @type {
|
|
497
|
+
* @type {string}
|
|
498
498
|
* @memberof ProductsApiListProducts
|
|
499
499
|
*/
|
|
500
|
-
readonly filters?:
|
|
500
|
+
readonly filters?: string;
|
|
501
501
|
}
|
|
502
502
|
/**
|
|
503
503
|
* ProductsApi - object-oriented interface
|
package/dist/api/products-api.js
CHANGED
|
@@ -457,13 +457,13 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
457
457
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
458
458
|
* @summary List products
|
|
459
459
|
* @param {string} [authorization] Bearer Token
|
|
460
|
-
* @param {
|
|
461
|
-
* @param {
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
466
|
-
* @param {
|
|
460
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
461
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
462
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
463
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
464
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
465
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
466
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
467
467
|
* @param {*} [options] Override http request option.
|
|
468
468
|
* @throws {RequiredError}
|
|
469
469
|
*/
|
|
@@ -690,13 +690,13 @@ var ProductsApiFp = function (configuration) {
|
|
|
690
690
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
691
691
|
* @summary List products
|
|
692
692
|
* @param {string} [authorization] Bearer Token
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {
|
|
697
|
-
* @param {
|
|
698
|
-
* @param {
|
|
699
|
-
* @param {
|
|
693
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
694
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
695
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
696
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
697
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
698
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
699
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
700
700
|
* @param {*} [options] Override http request option.
|
|
701
701
|
* @throws {RequiredError}
|
|
702
702
|
*/
|
|
@@ -808,13 +808,13 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
808
808
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
809
809
|
* @summary List products
|
|
810
810
|
* @param {string} [authorization] Bearer Token
|
|
811
|
-
* @param {
|
|
812
|
-
* @param {
|
|
813
|
-
* @param {
|
|
814
|
-
* @param {
|
|
815
|
-
* @param {
|
|
816
|
-
* @param {
|
|
817
|
-
* @param {
|
|
811
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
812
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
813
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
814
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
815
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
816
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
817
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
818
818
|
* @param {*} [options] Override http request option.
|
|
819
819
|
* @throws {RequiredError}
|
|
820
820
|
*/
|
package/dist/base.d.ts
CHANGED
|
@@ -26,9 +26,18 @@ export interface LoginClass {
|
|
|
26
26
|
accessToken: string;
|
|
27
27
|
permissions: string;
|
|
28
28
|
}
|
|
29
|
+
export interface SwitchWorkspaceRequest {
|
|
30
|
+
username: string;
|
|
31
|
+
targetWorkspace: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SwitchWorkspaceResponseClass {
|
|
34
|
+
accessToken: string;
|
|
35
|
+
permissions: string;
|
|
36
|
+
}
|
|
29
37
|
export declare enum Environment {
|
|
30
38
|
Production = "https://apiv2.emil.de",
|
|
31
39
|
Test = "https://apiv2-test.emil.de",
|
|
40
|
+
Staging = "https://apiv2-staging.emil.de",
|
|
32
41
|
Development = "https://apiv2-dev.emil.de",
|
|
33
42
|
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
34
43
|
}
|
|
@@ -54,12 +63,13 @@ export declare class BaseAPI {
|
|
|
54
63
|
private username?;
|
|
55
64
|
private password?;
|
|
56
65
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
57
|
-
initialize(env?: Environment): Promise<void>;
|
|
66
|
+
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
58
67
|
private loadCredentials;
|
|
59
68
|
private readConfigFile;
|
|
60
69
|
private readEnvVariables;
|
|
61
70
|
selectEnvironment(env: Environment): void;
|
|
62
|
-
authorize(username: string, password: string): Promise<void>;
|
|
71
|
+
authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
|
|
72
|
+
switchWorkspace(targetWorkspace: string): Promise<void>;
|
|
63
73
|
refreshTokenInternal(): Promise<string>;
|
|
64
74
|
private extractRefreshToken;
|
|
65
75
|
getConfiguration(): Configuration;
|
package/dist/base.js
CHANGED
|
@@ -129,6 +129,7 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
132
133
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
133
134
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
134
135
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
@@ -161,7 +162,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
162
|
}
|
|
162
163
|
this.attachInterceptor(axios);
|
|
163
164
|
}
|
|
164
|
-
BaseAPI.prototype.initialize = function (env) {
|
|
165
|
+
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
165
166
|
if (env === void 0) { env = Environment.Production; }
|
|
166
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
167
168
|
return __generator(this, function (_a) {
|
|
@@ -172,7 +173,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
172
173
|
case 1:
|
|
173
174
|
_a.sent();
|
|
174
175
|
if (!this.username) return [3 /*break*/, 3];
|
|
175
|
-
return [4 /*yield*/, this.authorize(this.username, this.password)];
|
|
176
|
+
return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)];
|
|
176
177
|
case 2:
|
|
177
178
|
_a.sent();
|
|
178
179
|
this.password = null; // to avoid keeping password loaded in memory.
|
|
@@ -242,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
242
243
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
243
244
|
this.configuration.basePath = env;
|
|
244
245
|
};
|
|
245
|
-
BaseAPI.prototype.authorize = function (username, password) {
|
|
246
|
+
BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
|
|
246
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
247
248
|
var options, response, accessToken, refreshToken;
|
|
248
249
|
return __generator(this, function (_a) {
|
|
@@ -266,6 +267,45 @@ var BaseAPI = /** @class */ (function () {
|
|
|
266
267
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
267
268
|
refreshToken = this.extractRefreshToken(response);
|
|
268
269
|
this.configuration.refreshToken = refreshToken;
|
|
270
|
+
if (!targetWorkspace) return [3 /*break*/, 3];
|
|
271
|
+
return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
|
|
272
|
+
case 2:
|
|
273
|
+
_a.sent();
|
|
274
|
+
_a.label = 3;
|
|
275
|
+
case 3: return [2 /*return*/];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+
var options, response, accessToken, refreshToken;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
switch (_a.label) {
|
|
285
|
+
case 0:
|
|
286
|
+
options = {
|
|
287
|
+
method: 'POST',
|
|
288
|
+
url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
|
|
289
|
+
headers: {
|
|
290
|
+
'Content-Type': 'application/json',
|
|
291
|
+
'Authorization': "Bearer ".concat(this.configuration.accessToken),
|
|
292
|
+
'Cookie': this.configuration.refreshToken,
|
|
293
|
+
},
|
|
294
|
+
data: {
|
|
295
|
+
username: this.configuration.username,
|
|
296
|
+
targetWorkspace: targetWorkspace,
|
|
297
|
+
},
|
|
298
|
+
withCredentials: true,
|
|
299
|
+
};
|
|
300
|
+
return [4 /*yield*/, axios_1.default.request(options)];
|
|
301
|
+
case 1:
|
|
302
|
+
response = _a.sent();
|
|
303
|
+
accessToken = response.data.accessToken;
|
|
304
|
+
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
305
|
+
refreshToken = this.extractRefreshToken(response);
|
|
306
|
+
if (refreshToken) {
|
|
307
|
+
this.configuration.refreshToken = refreshToken;
|
|
308
|
+
}
|
|
269
309
|
return [2 /*return*/];
|
|
270
310
|
}
|
|
271
311
|
});
|
|
@@ -329,7 +369,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
329
369
|
case 2:
|
|
330
370
|
tokenString = _a.sent();
|
|
331
371
|
accessToken = "Bearer ".concat(tokenString);
|
|
332
|
-
originalConfig.headers['Authorization'] =
|
|
372
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
333
373
|
this.configuration.accessToken = accessToken;
|
|
334
374
|
return [2 /*return*/, axios.request(originalConfig)];
|
|
335
375
|
case 3:
|
package/dist/common.js
CHANGED
|
@@ -141,7 +141,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
141
141
|
_b.label = 4;
|
|
142
142
|
case 4:
|
|
143
143
|
accessToken = _a;
|
|
144
|
-
object["Authorization"] =
|
|
144
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
145
145
|
_b.label = 5;
|
|
146
146
|
case 5: return [2 /*return*/];
|
|
147
147
|
}
|
|
@@ -171,7 +171,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
171
171
|
_b.label = 4;
|
|
172
172
|
case 4:
|
|
173
173
|
localVarAccessTokenValue = _a;
|
|
174
|
-
object["Authorization"] =
|
|
174
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
175
175
|
_b.label = 5;
|
|
176
176
|
case 5: return [2 /*return*/];
|
|
177
177
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -87,4 +87,10 @@ export declare class Configuration {
|
|
|
87
87
|
* @return True if the given MIME is JSON, false otherwise.
|
|
88
88
|
*/
|
|
89
89
|
isJsonMime(mime: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Returns "Bearer" token.
|
|
92
|
+
* @param token - access token.
|
|
93
|
+
* @return Bearer token.
|
|
94
|
+
*/
|
|
95
|
+
getBearerToken(token?: string): string;
|
|
90
96
|
}
|