@emilgroup/customer-sdk-node 1.46.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 +40 -40
- 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 +40 -40
- package/dist/api/leads-api.js +60 -35
- 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/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/customer-sdk-node@1.46.0 --save
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.46.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.46.0
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.46.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/claims-api.ts
CHANGED
|
@@ -151,17 +151,17 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
151
151
|
* @summary List claims
|
|
152
152
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
153
153
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
-
* @param {
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
154
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
155
|
+
* @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.
|
|
156
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
157
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
158
|
+
* @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.
|
|
159
|
+
* @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.
|
|
160
|
+
* @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.
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?:
|
|
164
|
+
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
165
|
// verify required parameter 'customerCode' is not null or undefined
|
|
166
166
|
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
167
167
|
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
@@ -377,17 +377,17 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
377
377
|
* @summary List claims
|
|
378
378
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
379
379
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
380
|
-
* @param {
|
|
381
|
-
* @param {
|
|
382
|
-
* @param {
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {
|
|
385
|
-
* @param {
|
|
386
|
-
* @param {
|
|
380
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
381
|
+
* @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.
|
|
382
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
384
|
+
* @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.
|
|
385
|
+
* @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.
|
|
386
|
+
* @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.
|
|
387
387
|
* @param {*} [options] Override http request option.
|
|
388
388
|
* @throws {RequiredError}
|
|
389
389
|
*/
|
|
390
|
-
async listCustomerClaims(customerCode: string, authorization?: string, pageSize?:
|
|
390
|
+
async listCustomerClaims(customerCode: 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<ListCustomerClaimsResponseClass>> {
|
|
391
391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
392
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
393
|
},
|
|
@@ -458,17 +458,17 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
458
458
|
* @summary List claims
|
|
459
459
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
460
460
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
|
-
* @param {
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
466
|
-
* @param {
|
|
467
|
-
* @param {
|
|
461
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
462
|
+
* @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.
|
|
463
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
464
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
465
|
+
* @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.
|
|
466
|
+
* @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.
|
|
467
|
+
* @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.
|
|
468
468
|
* @param {*} [options] Override http request option.
|
|
469
469
|
* @throws {RequiredError}
|
|
470
470
|
*/
|
|
471
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?:
|
|
471
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
|
|
472
472
|
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
473
473
|
},
|
|
474
474
|
/**
|
|
@@ -578,52 +578,52 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
578
578
|
|
|
579
579
|
/**
|
|
580
580
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
581
|
-
* @type {
|
|
581
|
+
* @type {number}
|
|
582
582
|
* @memberof ClaimsApiListCustomerClaims
|
|
583
583
|
*/
|
|
584
|
-
readonly pageSize?:
|
|
584
|
+
readonly pageSize?: number
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
|
-
* 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,
|
|
588
|
-
* @type {
|
|
587
|
+
* 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.
|
|
588
|
+
* @type {string}
|
|
589
589
|
* @memberof ClaimsApiListCustomerClaims
|
|
590
590
|
*/
|
|
591
|
-
readonly pageToken?:
|
|
591
|
+
readonly pageToken?: string
|
|
592
592
|
|
|
593
593
|
/**
|
|
594
594
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
595
|
-
* @type {
|
|
595
|
+
* @type {string}
|
|
596
596
|
* @memberof ClaimsApiListCustomerClaims
|
|
597
597
|
*/
|
|
598
|
-
readonly filter?:
|
|
598
|
+
readonly filter?: string
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
601
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
602
|
-
* @type {
|
|
602
|
+
* @type {string}
|
|
603
603
|
* @memberof ClaimsApiListCustomerClaims
|
|
604
604
|
*/
|
|
605
|
-
readonly search?:
|
|
605
|
+
readonly search?: string
|
|
606
606
|
|
|
607
607
|
/**
|
|
608
608
|
* 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.
|
|
609
|
-
* @type {
|
|
609
|
+
* @type {string}
|
|
610
610
|
* @memberof ClaimsApiListCustomerClaims
|
|
611
611
|
*/
|
|
612
|
-
readonly order?:
|
|
612
|
+
readonly order?: string
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
|
-
* 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
|
|
616
|
-
* @type {
|
|
615
|
+
* 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.
|
|
616
|
+
* @type {string}
|
|
617
617
|
* @memberof ClaimsApiListCustomerClaims
|
|
618
618
|
*/
|
|
619
|
-
readonly expand?:
|
|
619
|
+
readonly expand?: string
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
622
|
* 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.
|
|
623
|
-
* @type {
|
|
623
|
+
* @type {string}
|
|
624
624
|
* @memberof ClaimsApiListCustomerClaims
|
|
625
625
|
*/
|
|
626
|
-
readonly filters?:
|
|
626
|
+
readonly filters?: string
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
/**
|
package/api/customers-api.ts
CHANGED
|
@@ -133,18 +133,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
133
133
|
/**
|
|
134
134
|
* Get customer list.
|
|
135
135
|
* @summary Get customers list
|
|
136
|
-
* @param {
|
|
137
|
-
* @param {
|
|
138
|
-
* @param {
|
|
139
|
-
* @param {
|
|
140
|
-
* @param {
|
|
141
|
-
* @param {
|
|
142
|
-
* @param {
|
|
136
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
137
|
+
* @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.
|
|
138
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
139
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
140
|
+
* @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.
|
|
141
|
+
* @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.
|
|
142
|
+
* @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.
|
|
143
143
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
|
-
listCustomers: async (pageSize?:
|
|
147
|
+
listCustomers: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
148
|
const localVarPath = `/v1/customers`;
|
|
149
149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
150
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -376,18 +376,18 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
376
376
|
/**
|
|
377
377
|
* Get customer list.
|
|
378
378
|
* @summary Get customers list
|
|
379
|
-
* @param {
|
|
380
|
-
* @param {
|
|
381
|
-
* @param {
|
|
382
|
-
* @param {
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {
|
|
385
|
-
* @param {
|
|
379
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
380
|
+
* @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.
|
|
381
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
382
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
383
|
+
* @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.
|
|
384
|
+
* @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.
|
|
385
|
+
* @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.
|
|
386
386
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
387
|
* @param {*} [options] Override http request option.
|
|
388
388
|
* @throws {RequiredError}
|
|
389
389
|
*/
|
|
390
|
-
async listCustomers(pageSize?:
|
|
390
|
+
async listCustomers(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
391
391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
392
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
393
|
},
|
|
@@ -464,18 +464,18 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
464
464
|
/**
|
|
465
465
|
* Get customer list.
|
|
466
466
|
* @summary Get customers list
|
|
467
|
-
* @param {
|
|
468
|
-
* @param {
|
|
469
|
-
* @param {
|
|
470
|
-
* @param {
|
|
471
|
-
* @param {
|
|
472
|
-
* @param {
|
|
473
|
-
* @param {
|
|
467
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
468
|
+
* @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.
|
|
469
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
470
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
471
|
+
* @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.
|
|
472
|
+
* @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.
|
|
473
|
+
* @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.
|
|
474
474
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
475
|
* @param {*} [options] Override http request option.
|
|
476
476
|
* @throws {RequiredError}
|
|
477
477
|
*/
|
|
478
|
-
listCustomers(pageSize?:
|
|
478
|
+
listCustomers(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
479
479
|
return localVarFp.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
480
480
|
},
|
|
481
481
|
/**
|
|
@@ -566,52 +566,52 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
566
566
|
export interface CustomersApiListCustomersRequest {
|
|
567
567
|
/**
|
|
568
568
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
569
|
-
* @type {
|
|
569
|
+
* @type {number}
|
|
570
570
|
* @memberof CustomersApiListCustomers
|
|
571
571
|
*/
|
|
572
|
-
readonly pageSize?:
|
|
572
|
+
readonly pageSize?: number
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
|
-
* 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,
|
|
576
|
-
* @type {
|
|
575
|
+
* 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.
|
|
576
|
+
* @type {string}
|
|
577
577
|
* @memberof CustomersApiListCustomers
|
|
578
578
|
*/
|
|
579
|
-
readonly pageToken?:
|
|
579
|
+
readonly pageToken?: string
|
|
580
580
|
|
|
581
581
|
/**
|
|
582
582
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
583
|
-
* @type {
|
|
583
|
+
* @type {string}
|
|
584
584
|
* @memberof CustomersApiListCustomers
|
|
585
585
|
*/
|
|
586
|
-
readonly filter?:
|
|
586
|
+
readonly filter?: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
590
|
-
* @type {
|
|
590
|
+
* @type {string}
|
|
591
591
|
* @memberof CustomersApiListCustomers
|
|
592
592
|
*/
|
|
593
|
-
readonly search?:
|
|
593
|
+
readonly search?: string
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* 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.
|
|
597
|
-
* @type {
|
|
597
|
+
* @type {string}
|
|
598
598
|
* @memberof CustomersApiListCustomers
|
|
599
599
|
*/
|
|
600
|
-
readonly order?:
|
|
600
|
+
readonly order?: string
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
|
-
* 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
|
|
604
|
-
* @type {
|
|
603
|
+
* 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.
|
|
604
|
+
* @type {string}
|
|
605
605
|
* @memberof CustomersApiListCustomers
|
|
606
606
|
*/
|
|
607
|
-
readonly expand?:
|
|
607
|
+
readonly expand?: string
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
610
|
* 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.
|
|
611
|
-
* @type {
|
|
611
|
+
* @type {string}
|
|
612
612
|
* @memberof CustomersApiListCustomers
|
|
613
613
|
*/
|
|
614
|
-
readonly filters?:
|
|
614
|
+
readonly filters?: string
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
package/api/documents-api.ts
CHANGED
|
@@ -92,18 +92,18 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
92
92
|
* List all the documents of a customer.
|
|
93
93
|
* @summary List documents of a customer
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
95
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
96
|
+
* @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.
|
|
97
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
98
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
99
|
+
* @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.
|
|
100
|
+
* @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.
|
|
101
|
+
* @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.
|
|
102
102
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
listDocuments: async (customerCode: string, pageSize?:
|
|
106
|
+
listDocuments: async (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
107
|
// verify required parameter 'customerCode' is not null or undefined
|
|
108
108
|
assertParamExists('listDocuments', 'customerCode', customerCode)
|
|
109
109
|
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
@@ -234,18 +234,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
234
234
|
* List all the documents of a customer.
|
|
235
235
|
* @summary List documents of a customer
|
|
236
236
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
237
|
-
* @param {
|
|
238
|
-
* @param {
|
|
239
|
-
* @param {
|
|
240
|
-
* @param {
|
|
241
|
-
* @param {
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {
|
|
237
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
238
|
+
* @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.
|
|
239
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
240
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
241
|
+
* @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.
|
|
242
|
+
* @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.
|
|
243
|
+
* @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.
|
|
244
244
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
245
245
|
* @param {*} [options] Override http request option.
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
*/
|
|
248
|
-
async listDocuments(customerCode: string, pageSize?:
|
|
248
|
+
async listDocuments(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<ListDocumentsResponseClass>> {
|
|
249
249
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
250
250
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
251
251
|
},
|
|
@@ -288,18 +288,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
288
288
|
* List all the documents of a customer.
|
|
289
289
|
* @summary List documents of a customer
|
|
290
290
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
291
|
-
* @param {
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {
|
|
295
|
-
* @param {
|
|
296
|
-
* @param {
|
|
297
|
-
* @param {
|
|
291
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
292
|
+
* @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.
|
|
293
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
294
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
295
|
+
* @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.
|
|
296
|
+
* @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.
|
|
297
|
+
* @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.
|
|
298
298
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
299
|
* @param {*} [options] Override http request option.
|
|
300
300
|
* @throws {RequiredError}
|
|
301
301
|
*/
|
|
302
|
-
listDocuments(customerCode: string, pageSize?:
|
|
302
|
+
listDocuments(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
303
303
|
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
304
304
|
},
|
|
305
305
|
/**
|
|
@@ -366,52 +366,52 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
369
|
-
* @type {
|
|
369
|
+
* @type {number}
|
|
370
370
|
* @memberof DocumentsApiListDocuments
|
|
371
371
|
*/
|
|
372
|
-
readonly pageSize?:
|
|
372
|
+
readonly pageSize?: number
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
|
-
* 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,
|
|
376
|
-
* @type {
|
|
375
|
+
* 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.
|
|
376
|
+
* @type {string}
|
|
377
377
|
* @memberof DocumentsApiListDocuments
|
|
378
378
|
*/
|
|
379
|
-
readonly pageToken?:
|
|
379
|
+
readonly pageToken?: string
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
382
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
|
-
* @type {
|
|
383
|
+
* @type {string}
|
|
384
384
|
* @memberof DocumentsApiListDocuments
|
|
385
385
|
*/
|
|
386
|
-
readonly filter?:
|
|
386
|
+
readonly filter?: string
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
390
|
-
* @type {
|
|
390
|
+
* @type {string}
|
|
391
391
|
* @memberof DocumentsApiListDocuments
|
|
392
392
|
*/
|
|
393
|
-
readonly search?:
|
|
393
|
+
readonly search?: string
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
396
|
* 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.
|
|
397
|
-
* @type {
|
|
397
|
+
* @type {string}
|
|
398
398
|
* @memberof DocumentsApiListDocuments
|
|
399
399
|
*/
|
|
400
|
-
readonly order?:
|
|
400
|
+
readonly order?: string
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* 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
|
|
404
|
-
* @type {
|
|
403
|
+
* 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.
|
|
404
|
+
* @type {string}
|
|
405
405
|
* @memberof DocumentsApiListDocuments
|
|
406
406
|
*/
|
|
407
|
-
readonly expand?:
|
|
407
|
+
readonly expand?: string
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
410
|
* 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.
|
|
411
|
-
* @type {
|
|
411
|
+
* @type {string}
|
|
412
412
|
* @memberof DocumentsApiListDocuments
|
|
413
413
|
*/
|
|
414
|
-
readonly filters?:
|
|
414
|
+
readonly filters?: string
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
417
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
package/api/invites-api.ts
CHANGED
|
@@ -126,7 +126,7 @@ export const InvitesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
126
126
|
};
|
|
127
127
|
},
|
|
128
128
|
/**
|
|
129
|
-
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
129
|
+
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
|
|
130
130
|
* @summary Invite a customer by tenant
|
|
131
131
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
132
132
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -241,7 +241,7 @@ export const InvitesApiFp = function(configuration?: Configuration) {
|
|
|
241
241
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
242
|
},
|
|
243
243
|
/**
|
|
244
|
-
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
244
|
+
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
|
|
245
245
|
* @summary Invite a customer by tenant
|
|
246
246
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -295,7 +295,7 @@ export const InvitesApiFactory = function (configuration?: Configuration, basePa
|
|
|
295
295
|
return localVarFp.inviteByCustomer(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
|
-
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
298
|
+
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
|
|
299
299
|
* @summary Invite a customer by tenant
|
|
300
300
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
301
301
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -420,7 +420,7 @@ export class InvitesApi extends BaseAPI {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
|
-
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
423
|
+
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported. **Required Permissions** \"customer-management.customers.create\"
|
|
424
424
|
* @summary Invite a customer by tenant
|
|
425
425
|
* @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
|
|
426
426
|
* @param {*} [options] Override http request option.
|