@emilgroup/customer-sdk-node 1.44.1-beta.0 → 1.46.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/claims-api.ts +40 -40
- package/api/customers-api.ts +40 -40
- package/api/documents-api.ts +40 -40
- package/api/invites-api.ts +4 -4
- package/api/invoices-api.ts +40 -40
- package/api/leads-api.ts +70 -70
- package/api/policies-api.ts +40 -40
- package/api/products-api.ts +40 -40
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/authentication-api.js +60 -23
- package/dist/api/claims-api.d.ts +40 -40
- package/dist/api/claims-api.js +67 -38
- package/dist/api/customers-api.d.ts +40 -40
- package/dist/api/customers-api.js +74 -41
- package/dist/api/default-api.js +18 -5
- package/dist/api/documents-api.d.ts +43 -43
- package/dist/api/documents-api.js +53 -32
- package/dist/api/invites-api.d.ts +4 -4
- package/dist/api/invites-api.js +43 -18
- package/dist/api/invoices-api.d.ts +40 -40
- package/dist/api/invoices-api.js +39 -26
- package/dist/api/leads-api.d.ts +56 -56
- package/dist/api/leads-api.js +84 -59
- package/dist/api/payments-api.js +25 -8
- package/dist/api/policies-api.d.ts +40 -40
- package/dist/api/policies-api.js +81 -44
- package/dist/api/products-api.d.ts +40 -40
- package/dist/api/products-api.js +46 -29
- package/dist/base.js +25 -15
- package/dist/common.d.ts +1 -1
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/policy-class.d.ts +48 -0
- package/models/policy-class.ts +48 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -0
package/api/policies-api.ts
CHANGED
|
@@ -152,18 +152,18 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
152
152
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
153
153
|
* @summary List policies
|
|
154
154
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
161
|
-
* @param {
|
|
155
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
|
+
* @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.
|
|
157
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
159
|
+
* @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.
|
|
160
|
+
* @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.
|
|
161
|
+
* @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.
|
|
162
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
listPolicies: async (customerCode: string, pageSize?:
|
|
166
|
+
listPolicies: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
167
|
// verify required parameter 'customerCode' is not null or undefined
|
|
168
168
|
assertParamExists('listPolicies', 'customerCode', customerCode)
|
|
169
169
|
const localVarPath = `/v1/customers/{customerCode}/policies`
|
|
@@ -459,18 +459,18 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
459
459
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
460
460
|
* @summary List policies
|
|
461
461
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
466
|
-
* @param {
|
|
467
|
-
* @param {
|
|
468
|
-
* @param {
|
|
462
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
463
|
+
* @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.
|
|
464
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
465
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
466
|
+
* @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.
|
|
467
|
+
* @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.
|
|
468
|
+
* @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.
|
|
469
469
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
470
470
|
* @param {*} [options] Override http request option.
|
|
471
471
|
* @throws {RequiredError}
|
|
472
472
|
*/
|
|
473
|
-
async listPolicies(customerCode: string, pageSize?:
|
|
473
|
+
async listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
|
|
474
474
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
475
475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
476
476
|
},
|
|
@@ -568,18 +568,18 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
568
568
|
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
569
569
|
* @summary List policies
|
|
570
570
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
571
|
-
* @param {
|
|
572
|
-
* @param {
|
|
573
|
-
* @param {
|
|
574
|
-
* @param {
|
|
575
|
-
* @param {
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {
|
|
571
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
572
|
+
* @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.
|
|
573
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
574
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
575
|
+
* @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.
|
|
576
|
+
* @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.
|
|
577
|
+
* @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.
|
|
578
578
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
579
579
|
* @param {*} [options] Override http request option.
|
|
580
580
|
* @throws {RequiredError}
|
|
581
581
|
*/
|
|
582
|
-
listPolicies(customerCode: string, pageSize?:
|
|
582
|
+
listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
583
583
|
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
584
584
|
},
|
|
585
585
|
/**
|
|
@@ -720,52 +720,52 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
723
|
-
* @type {
|
|
723
|
+
* @type {number}
|
|
724
724
|
* @memberof PoliciesApiListPolicies
|
|
725
725
|
*/
|
|
726
|
-
readonly pageSize?:
|
|
726
|
+
readonly pageSize?: number
|
|
727
727
|
|
|
728
728
|
/**
|
|
729
|
-
* 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,
|
|
730
|
-
* @type {
|
|
729
|
+
* 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.
|
|
730
|
+
* @type {string}
|
|
731
731
|
* @memberof PoliciesApiListPolicies
|
|
732
732
|
*/
|
|
733
|
-
readonly pageToken?:
|
|
733
|
+
readonly pageToken?: string
|
|
734
734
|
|
|
735
735
|
/**
|
|
736
736
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
737
|
-
* @type {
|
|
737
|
+
* @type {string}
|
|
738
738
|
* @memberof PoliciesApiListPolicies
|
|
739
739
|
*/
|
|
740
|
-
readonly filter?:
|
|
740
|
+
readonly filter?: string
|
|
741
741
|
|
|
742
742
|
/**
|
|
743
743
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
744
|
-
* @type {
|
|
744
|
+
* @type {string}
|
|
745
745
|
* @memberof PoliciesApiListPolicies
|
|
746
746
|
*/
|
|
747
|
-
readonly search?:
|
|
747
|
+
readonly search?: string
|
|
748
748
|
|
|
749
749
|
/**
|
|
750
750
|
* 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.
|
|
751
|
-
* @type {
|
|
751
|
+
* @type {string}
|
|
752
752
|
* @memberof PoliciesApiListPolicies
|
|
753
753
|
*/
|
|
754
|
-
readonly order?:
|
|
754
|
+
readonly order?: string
|
|
755
755
|
|
|
756
756
|
/**
|
|
757
|
-
* 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
|
|
758
|
-
* @type {
|
|
757
|
+
* 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.
|
|
758
|
+
* @type {string}
|
|
759
759
|
* @memberof PoliciesApiListPolicies
|
|
760
760
|
*/
|
|
761
|
-
readonly expand?:
|
|
761
|
+
readonly expand?: string
|
|
762
762
|
|
|
763
763
|
/**
|
|
764
764
|
* 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.
|
|
765
|
-
* @type {
|
|
765
|
+
* @type {string}
|
|
766
766
|
* @memberof PoliciesApiListPolicies
|
|
767
767
|
*/
|
|
768
|
-
readonly filters?:
|
|
768
|
+
readonly filters?: string
|
|
769
769
|
|
|
770
770
|
/**
|
|
771
771
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
package/api/products-api.ts
CHANGED
|
@@ -83,18 +83,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
83
83
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
84
84
|
* @summary List available products
|
|
85
85
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {
|
|
86
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
87
|
+
* @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.
|
|
88
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
89
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
90
|
+
* @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.
|
|
91
|
+
* @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.
|
|
92
|
+
* @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.
|
|
93
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
94
|
* @param {*} [options] Override http request option.
|
|
95
95
|
* @throws {RequiredError}
|
|
96
96
|
*/
|
|
97
|
-
listProducts: async (customerCode: string, pageSize?:
|
|
97
|
+
listProducts: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
98
|
// verify required parameter 'customerCode' is not null or undefined
|
|
99
99
|
assertParamExists('listProducts', 'customerCode', customerCode)
|
|
100
100
|
const localVarPath = `/v1/customers/{customerCode}/products`
|
|
@@ -182,18 +182,18 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
182
182
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
183
183
|
* @summary List available products
|
|
184
184
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {
|
|
188
|
-
* @param {
|
|
189
|
-
* @param {
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
185
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
|
+
* @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.
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
188
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
+
* @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.
|
|
190
|
+
* @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.
|
|
191
|
+
* @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.
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
async listProducts(customerCode: string, pageSize?:
|
|
196
|
+
async listProducts(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
197
197
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
198
198
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
199
|
},
|
|
@@ -223,18 +223,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
223
223
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
224
224
|
* @summary List available products
|
|
225
225
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
226
|
-
* @param {
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {
|
|
231
|
-
* @param {
|
|
232
|
-
* @param {
|
|
226
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
|
+
* @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.
|
|
228
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
229
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
230
|
+
* @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.
|
|
231
|
+
* @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.
|
|
232
|
+
* @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.
|
|
233
233
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
234
234
|
* @param {*} [options] Override http request option.
|
|
235
235
|
* @throws {RequiredError}
|
|
236
236
|
*/
|
|
237
|
-
listProducts(customerCode: string, pageSize?:
|
|
237
|
+
listProducts(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
238
238
|
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
239
239
|
},
|
|
240
240
|
};
|
|
@@ -283,52 +283,52 @@ export interface ProductsApiListProductsRequest {
|
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
285
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
286
|
-
* @type {
|
|
286
|
+
* @type {number}
|
|
287
287
|
* @memberof ProductsApiListProducts
|
|
288
288
|
*/
|
|
289
|
-
readonly pageSize?:
|
|
289
|
+
readonly pageSize?: number
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* 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,
|
|
293
|
-
* @type {
|
|
292
|
+
* 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.
|
|
293
|
+
* @type {string}
|
|
294
294
|
* @memberof ProductsApiListProducts
|
|
295
295
|
*/
|
|
296
|
-
readonly pageToken?:
|
|
296
|
+
readonly pageToken?: string
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
300
|
-
* @type {
|
|
300
|
+
* @type {string}
|
|
301
301
|
* @memberof ProductsApiListProducts
|
|
302
302
|
*/
|
|
303
|
-
readonly filter?:
|
|
303
|
+
readonly filter?: string
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
307
|
-
* @type {
|
|
307
|
+
* @type {string}
|
|
308
308
|
* @memberof ProductsApiListProducts
|
|
309
309
|
*/
|
|
310
|
-
readonly search?:
|
|
310
|
+
readonly search?: string
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* 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.
|
|
314
|
-
* @type {
|
|
314
|
+
* @type {string}
|
|
315
315
|
* @memberof ProductsApiListProducts
|
|
316
316
|
*/
|
|
317
|
-
readonly order?:
|
|
317
|
+
readonly order?: string
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* 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
|
|
321
|
-
* @type {
|
|
320
|
+
* 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.
|
|
321
|
+
* @type {string}
|
|
322
322
|
* @memberof ProductsApiListProducts
|
|
323
323
|
*/
|
|
324
|
-
readonly expand?:
|
|
324
|
+
readonly expand?: string
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
327
|
* 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.
|
|
328
|
-
* @type {
|
|
328
|
+
* @type {string}
|
|
329
329
|
* @memberof ProductsApiListProducts
|
|
330
330
|
*/
|
|
331
|
-
readonly filters?:
|
|
331
|
+
readonly filters?: string
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
package/base.ts
CHANGED
|
@@ -372,7 +372,7 @@ export class BaseAPI {
|
|
|
372
372
|
* @extends {Error}
|
|
373
373
|
*/
|
|
374
374
|
export class RequiredError extends Error {
|
|
375
|
-
name: "RequiredError" = "RequiredError";
|
|
375
|
+
override name: "RequiredError" = "RequiredError";
|
|
376
376
|
constructor(public field: string, msg?: string) {
|
|
377
377
|
super(msg);
|
|
378
378
|
}
|
package/common.ts
CHANGED
|
@@ -67,7 +67,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
67
67
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
68
|
? await configuration.accessToken()
|
|
69
69
|
: await configuration.accessToken;
|
|
70
|
-
object["Authorization"] =
|
|
70
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -80,7 +80,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
80
80
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
81
|
? await configuration.accessToken(name, scopes)
|
|
82
82
|
: await configuration.accessToken;
|
|
83
|
-
object["Authorization"] =
|
|
83
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
package/configuration.ts
CHANGED
|
@@ -115,4 +115,13 @@ export class Configuration {
|
|
|
115
115
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
116
116
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Returns "Bearer" token.
|
|
121
|
+
* @param token - access token.
|
|
122
|
+
* @return Bearer token.
|
|
123
|
+
*/
|
|
124
|
+
public getBearerToken(token?: string): string {
|
|
125
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
126
|
+
}
|
|
118
127
|
}
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g =
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
77
86
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
87
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
88
|
};
|
|
@@ -105,10 +114,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
105
114
|
* @param {*} [options] Override http request option.
|
|
106
115
|
* @throws {RequiredError}
|
|
107
116
|
*/
|
|
108
|
-
changePassword: function (
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
changePassword: function (customerCode_1, changePasswordRequestDto_1, authorization_1) {
|
|
118
|
+
var args_1 = [];
|
|
119
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
120
|
+
args_1[_i - 3] = arguments[_i];
|
|
121
|
+
}
|
|
122
|
+
return __awaiter(_this, __spreadArray([customerCode_1, changePasswordRequestDto_1, authorization_1], args_1, true), void 0, function (customerCode, changePasswordRequestDto, authorization, options) {
|
|
111
123
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
124
|
+
if (options === void 0) { options = {}; }
|
|
112
125
|
return __generator(this, function (_a) {
|
|
113
126
|
// verify required parameter 'customerCode' is not null or undefined
|
|
114
127
|
(0, common_1.assertParamExists)('changePassword', 'customerCode', customerCode);
|
|
@@ -146,10 +159,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
146
159
|
* @param {*} [options] Override http request option.
|
|
147
160
|
* @throws {RequiredError}
|
|
148
161
|
*/
|
|
149
|
-
forgotPassword: function (
|
|
150
|
-
|
|
151
|
-
|
|
162
|
+
forgotPassword: function (forgotPasswordRequestDto_1) {
|
|
163
|
+
var args_1 = [];
|
|
164
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
165
|
+
args_1[_i - 1] = arguments[_i];
|
|
166
|
+
}
|
|
167
|
+
return __awaiter(_this, __spreadArray([forgotPasswordRequestDto_1], args_1, true), void 0, function (forgotPasswordRequestDto, options) {
|
|
152
168
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
169
|
+
if (options === void 0) { options = {}; }
|
|
153
170
|
return __generator(this, function (_a) {
|
|
154
171
|
// verify required parameter 'forgotPasswordRequestDto' is not null or undefined
|
|
155
172
|
(0, common_1.assertParamExists)('forgotPassword', 'forgotPasswordRequestDto', forgotPasswordRequestDto);
|
|
@@ -181,10 +198,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
181
198
|
* @param {*} [options] Override http request option.
|
|
182
199
|
* @throws {RequiredError}
|
|
183
200
|
*/
|
|
184
|
-
initiateAuth: function (
|
|
185
|
-
|
|
186
|
-
|
|
201
|
+
initiateAuth: function (initiateAuthRequestDto_1) {
|
|
202
|
+
var args_1 = [];
|
|
203
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
204
|
+
args_1[_i - 1] = arguments[_i];
|
|
205
|
+
}
|
|
206
|
+
return __awaiter(_this, __spreadArray([initiateAuthRequestDto_1], args_1, true), void 0, function (initiateAuthRequestDto, options) {
|
|
187
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
208
|
+
if (options === void 0) { options = {}; }
|
|
188
209
|
return __generator(this, function (_a) {
|
|
189
210
|
// verify required parameter 'initiateAuthRequestDto' is not null or undefined
|
|
190
211
|
(0, common_1.assertParamExists)('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto);
|
|
@@ -217,10 +238,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
217
238
|
* @param {*} [options] Override http request option.
|
|
218
239
|
* @throws {RequiredError}
|
|
219
240
|
*/
|
|
220
|
-
refreshToken: function (
|
|
221
|
-
|
|
222
|
-
|
|
241
|
+
refreshToken: function (refreshTokenDto_1, cookie_1) {
|
|
242
|
+
var args_1 = [];
|
|
243
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
244
|
+
args_1[_i - 2] = arguments[_i];
|
|
245
|
+
}
|
|
246
|
+
return __awaiter(_this, __spreadArray([refreshTokenDto_1, cookie_1], args_1, true), void 0, function (refreshTokenDto, cookie, options) {
|
|
223
247
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
|
+
if (options === void 0) { options = {}; }
|
|
224
249
|
return __generator(this, function (_a) {
|
|
225
250
|
// verify required parameter 'refreshTokenDto' is not null or undefined
|
|
226
251
|
(0, common_1.assertParamExists)('refreshToken', 'refreshTokenDto', refreshTokenDto);
|
|
@@ -255,10 +280,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
255
280
|
* @param {*} [options] Override http request option.
|
|
256
281
|
* @throws {RequiredError}
|
|
257
282
|
*/
|
|
258
|
-
resetPassword: function (
|
|
259
|
-
|
|
260
|
-
|
|
283
|
+
resetPassword: function (resetPasswordByCustomerRequestDto_1) {
|
|
284
|
+
var args_1 = [];
|
|
285
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
286
|
+
args_1[_i - 1] = arguments[_i];
|
|
287
|
+
}
|
|
288
|
+
return __awaiter(_this, __spreadArray([resetPasswordByCustomerRequestDto_1], args_1, true), void 0, function (resetPasswordByCustomerRequestDto, options) {
|
|
261
289
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
290
|
+
if (options === void 0) { options = {}; }
|
|
262
291
|
return __generator(this, function (_a) {
|
|
263
292
|
// verify required parameter 'resetPasswordByCustomerRequestDto' is not null or undefined
|
|
264
293
|
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordByCustomerRequestDto', resetPasswordByCustomerRequestDto);
|
|
@@ -290,10 +319,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
290
319
|
* @param {*} [options] Override http request option.
|
|
291
320
|
* @throws {RequiredError}
|
|
292
321
|
*/
|
|
293
|
-
respondToAuthChallenge: function (
|
|
294
|
-
|
|
295
|
-
|
|
322
|
+
respondToAuthChallenge: function (respondToAuthChallengeRequestDto_1) {
|
|
323
|
+
var args_1 = [];
|
|
324
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
325
|
+
args_1[_i - 1] = arguments[_i];
|
|
326
|
+
}
|
|
327
|
+
return __awaiter(_this, __spreadArray([respondToAuthChallengeRequestDto_1], args_1, true), void 0, function (respondToAuthChallengeRequestDto, options) {
|
|
296
328
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
if (options === void 0) { options = {}; }
|
|
297
330
|
return __generator(this, function (_a) {
|
|
298
331
|
// verify required parameter 'respondToAuthChallengeRequestDto' is not null or undefined
|
|
299
332
|
(0, common_1.assertParamExists)('respondToAuthChallenge', 'respondToAuthChallengeRequestDto', respondToAuthChallengeRequestDto);
|
|
@@ -325,10 +358,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
325
358
|
* @param {*} [options] Override http request option.
|
|
326
359
|
* @throws {RequiredError}
|
|
327
360
|
*/
|
|
328
|
-
verifyResetPasswordToken: function (
|
|
329
|
-
|
|
330
|
-
|
|
361
|
+
verifyResetPasswordToken: function (resetToken_1) {
|
|
362
|
+
var args_1 = [];
|
|
363
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
364
|
+
args_1[_i - 1] = arguments[_i];
|
|
365
|
+
}
|
|
366
|
+
return __awaiter(_this, __spreadArray([resetToken_1], args_1, true), void 0, function (resetToken, options) {
|
|
331
367
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
368
|
+
if (options === void 0) { options = {}; }
|
|
332
369
|
return __generator(this, function (_a) {
|
|
333
370
|
// verify required parameter 'resetToken' is not null or undefined
|
|
334
371
|
(0, common_1.assertParamExists)('verifyResetPasswordToken', 'resetToken', resetToken);
|