@emilgroup/customer-sdk-node 1.41.0 → 1.44.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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/claims-api.ts +28 -28
- package/api/customers-api.ts +28 -28
- package/api/documents-api.ts +51 -34
- package/api/invoices-api.ts +28 -28
- package/api/leads-api.ts +62 -62
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +1 -0
- package/dist/api/claims-api.d.ts +20 -20
- package/dist/api/claims-api.js +18 -18
- package/dist/api/customers-api.d.ts +20 -20
- package/dist/api/customers-api.js +18 -18
- package/dist/api/documents-api.d.ts +33 -23
- package/dist/api/documents-api.js +31 -24
- package/dist/api/invoices-api.d.ts +20 -20
- package/dist/api/invoices-api.js +18 -18
- package/dist/api/leads-api.d.ts +40 -40
- package/dist/api/leads-api.js +48 -48
- package/dist/api/policies-api.d.ts +20 -20
- package/dist/api/policies-api.js +18 -18
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/base.d.ts +1 -0
- package/dist/base.js +1 -0
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/create-account-request-dto.d.ts +2 -8
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/customer-product-class.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
- package/dist/models/upload-account-documents-request-dto.js +19 -0
- package/models/account-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/create-account-request-dto.ts +2 -8
- package/models/customer-product-class.ts +2 -2
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
package/api/invoices-api.ts
CHANGED
|
@@ -36,18 +36,18 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
36
36
|
* List all the invoices of a customer.
|
|
37
37
|
* @summary List invoices of a customer
|
|
38
38
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
39
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
39
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
40
40
|
* @param {any} [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.
|
|
41
41
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
42
|
-
* @param {any} [
|
|
43
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
42
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
44
43
|
* @param {any} [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.
|
|
45
44
|
* @param {any} [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.
|
|
45
|
+
* @param {any} [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.
|
|
46
46
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
50
|
+
listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
51
|
// verify required parameter 'customerCode' is not null or undefined
|
|
52
52
|
assertParamExists('listInvoices', 'customerCode', customerCode)
|
|
53
53
|
const localVarPath = `/v1/customers/{customerCode}/invoices`
|
|
@@ -77,10 +77,6 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
77
77
|
localVarQueryParameter['filter'] = filter;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (filters !== undefined) {
|
|
81
|
-
localVarQueryParameter['filters'] = filters;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
80
|
if (search !== undefined) {
|
|
85
81
|
localVarQueryParameter['search'] = search;
|
|
86
82
|
}
|
|
@@ -93,6 +89,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
93
89
|
localVarQueryParameter['expand'] = expand;
|
|
94
90
|
}
|
|
95
91
|
|
|
92
|
+
if (filters !== undefined) {
|
|
93
|
+
localVarQueryParameter['filters'] = filters;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
96
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
97
97
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
98
98
|
}
|
|
@@ -122,19 +122,19 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
122
122
|
* List all the invoices of a customer.
|
|
123
123
|
* @summary List invoices of a customer
|
|
124
124
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
125
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
125
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
126
126
|
* @param {any} [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.
|
|
127
127
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
128
|
-
* @param {any} [
|
|
129
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
128
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
130
129
|
* @param {any} [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.
|
|
131
130
|
* @param {any} [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.
|
|
131
|
+
* @param {any} [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.
|
|
132
132
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
133
133
|
* @param {*} [options] Override http request option.
|
|
134
134
|
* @throws {RequiredError}
|
|
135
135
|
*/
|
|
136
|
-
async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
137
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter,
|
|
136
|
+
async listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
|
|
137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
138
138
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
139
139
|
},
|
|
140
140
|
}
|
|
@@ -151,19 +151,19 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
151
151
|
* List all the invoices of a customer.
|
|
152
152
|
* @summary List invoices of a customer
|
|
153
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
154
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
154
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
155
155
|
* @param {any} [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
156
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
157
|
-
* @param {any} [
|
|
158
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
157
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
159
158
|
* @param {any} [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
159
|
* @param {any} [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 {any} [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 {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
162
162
|
* @param {*} [options] Override http request option.
|
|
163
163
|
* @throws {RequiredError}
|
|
164
164
|
*/
|
|
165
|
-
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
166
|
-
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter,
|
|
165
|
+
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
166
|
+
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
167
167
|
},
|
|
168
168
|
};
|
|
169
169
|
};
|
|
@@ -182,7 +182,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
182
182
|
readonly customerCode: string
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
185
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
186
|
* @type {any}
|
|
187
187
|
* @memberof InvoicesApiListInvoices
|
|
188
188
|
*/
|
|
@@ -203,14 +203,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
203
203
|
readonly filter?: any
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
* @type {any}
|
|
208
|
-
* @memberof InvoicesApiListInvoices
|
|
209
|
-
*/
|
|
210
|
-
readonly filters?: any
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
206
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
214
207
|
* @type {any}
|
|
215
208
|
* @memberof InvoicesApiListInvoices
|
|
216
209
|
*/
|
|
@@ -230,6 +223,13 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
230
223
|
*/
|
|
231
224
|
readonly expand?: any
|
|
232
225
|
|
|
226
|
+
/**
|
|
227
|
+
* 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.
|
|
228
|
+
* @type {any}
|
|
229
|
+
* @memberof InvoicesApiListInvoices
|
|
230
|
+
*/
|
|
231
|
+
readonly filters?: any
|
|
232
|
+
|
|
233
233
|
/**
|
|
234
234
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
235
235
|
* @type {string}
|
|
@@ -254,6 +254,6 @@ export class InvoicesApi extends BaseAPI {
|
|
|
254
254
|
* @memberof InvoicesApi
|
|
255
255
|
*/
|
|
256
256
|
public listInvoices(requestParameters: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig) {
|
|
257
|
-
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
257
|
+
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
258
258
|
}
|
|
259
259
|
}
|
package/api/leads-api.ts
CHANGED
|
@@ -94,22 +94,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
97
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
98
98
|
* @summary Retrieve the lead
|
|
99
|
-
* @param {string}
|
|
99
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
100
100
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
102
|
* @param {string} [expand]
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getLead: async (
|
|
107
|
-
// verify required parameter '
|
|
108
|
-
assertParamExists('getLead', '
|
|
106
|
+
getLead: async (leadCode: string, customerCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'leadCode' is not null or undefined
|
|
108
|
+
assertParamExists('getLead', 'leadCode', leadCode)
|
|
109
109
|
// verify required parameter 'customerCode' is not null or undefined
|
|
110
110
|
assertParamExists('getLead', 'customerCode', customerCode)
|
|
111
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
112
|
-
.replace(`{${"
|
|
111
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{leadCode}`
|
|
112
|
+
.replace(`{${"leadCode"}}`, encodeURIComponent(String(leadCode)))
|
|
113
113
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
114
114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
115
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -152,17 +152,17 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
152
152
|
* @summary List leads
|
|
153
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
155
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
156
|
* @param {any} [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
157
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
|
-
* @param {any} [
|
|
159
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
158
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
160
159
|
* @param {any} [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.
|
|
161
160
|
* @param {any} [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 {any} [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 {*} [options] Override http request option.
|
|
163
163
|
* @throws {RequiredError}
|
|
164
164
|
*/
|
|
165
|
-
listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
165
|
+
listLeads: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
166
166
|
// verify required parameter 'customerCode' is not null or undefined
|
|
167
167
|
assertParamExists('listLeads', 'customerCode', customerCode)
|
|
168
168
|
const localVarPath = `/v1/customers/{customerCode}/leads`
|
|
@@ -196,10 +196,6 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
196
196
|
localVarQueryParameter['filter'] = filter;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
if (filters !== undefined) {
|
|
200
|
-
localVarQueryParameter['filters'] = filters;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
199
|
if (search !== undefined) {
|
|
204
200
|
localVarQueryParameter['search'] = search;
|
|
205
201
|
}
|
|
@@ -212,6 +208,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
212
208
|
localVarQueryParameter['expand'] = expand;
|
|
213
209
|
}
|
|
214
210
|
|
|
211
|
+
if (filters !== undefined) {
|
|
212
|
+
localVarQueryParameter['filters'] = filters;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
215
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
216
216
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
217
217
|
}
|
|
@@ -230,22 +230,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
230
230
|
/**
|
|
231
231
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
232
232
|
* @summary Update the lead
|
|
233
|
-
* @param {string}
|
|
233
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
234
234
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
235
235
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
236
236
|
* @param {string} [authorization] Bearer Token
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
*/
|
|
240
|
-
updateLead: async (
|
|
241
|
-
// verify required parameter '
|
|
242
|
-
assertParamExists('updateLead', '
|
|
240
|
+
updateLead: async (leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
241
|
+
// verify required parameter 'leadCode' is not null or undefined
|
|
242
|
+
assertParamExists('updateLead', 'leadCode', leadCode)
|
|
243
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
244
244
|
assertParamExists('updateLead', 'customerCode', customerCode)
|
|
245
245
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
246
246
|
assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
247
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
248
|
-
.replace(`{${"
|
|
247
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{leadCode}`
|
|
248
|
+
.replace(`{${"leadCode"}}`, encodeURIComponent(String(leadCode)))
|
|
249
249
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
250
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -306,17 +306,17 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
306
306
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
307
|
},
|
|
308
308
|
/**
|
|
309
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
309
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
310
310
|
* @summary Retrieve the lead
|
|
311
|
-
* @param {string}
|
|
311
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
312
312
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
313
313
|
* @param {string} [authorization] Bearer Token
|
|
314
314
|
* @param {string} [expand]
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
async getLead(
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(
|
|
318
|
+
async getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(leadCode, customerCode, authorization, expand, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
@@ -324,32 +324,32 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
324
324
|
* @summary List leads
|
|
325
325
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
326
326
|
* @param {string} [authorization] Bearer Token
|
|
327
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
327
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
328
328
|
* @param {any} [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.
|
|
329
329
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
330
|
-
* @param {any} [
|
|
331
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
330
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
332
331
|
* @param {any} [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.
|
|
333
332
|
* @param {any} [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.
|
|
333
|
+
* @param {any} [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.
|
|
334
334
|
* @param {*} [options] Override http request option.
|
|
335
335
|
* @throws {RequiredError}
|
|
336
336
|
*/
|
|
337
|
-
async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
338
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter,
|
|
337
|
+
async listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>> {
|
|
338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
339
339
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
340
|
},
|
|
341
341
|
/**
|
|
342
342
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
343
343
|
* @summary Update the lead
|
|
344
|
-
* @param {string}
|
|
344
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
345
345
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
346
346
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
347
347
|
* @param {string} [authorization] Bearer Token
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
async updateLead(
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(
|
|
351
|
+
async updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options);
|
|
353
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
354
|
},
|
|
355
355
|
}
|
|
@@ -375,48 +375,48 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
375
375
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
378
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
379
379
|
* @summary Retrieve the lead
|
|
380
|
-
* @param {string}
|
|
380
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
381
381
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
382
382
|
* @param {string} [authorization] Bearer Token
|
|
383
383
|
* @param {string} [expand]
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getLead(
|
|
388
|
-
return localVarFp.getLead(
|
|
387
|
+
getLead(leadCode: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
388
|
+
return localVarFp.getLead(leadCode, customerCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
391
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
392
392
|
* @summary List leads
|
|
393
393
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
394
394
|
* @param {string} [authorization] Bearer Token
|
|
395
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
395
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
396
396
|
* @param {any} [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.
|
|
397
397
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
398
|
-
* @param {any} [
|
|
399
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
398
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
400
399
|
* @param {any} [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.
|
|
401
400
|
* @param {any} [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.
|
|
401
|
+
* @param {any} [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.
|
|
402
402
|
* @param {*} [options] Override http request option.
|
|
403
403
|
* @throws {RequiredError}
|
|
404
404
|
*/
|
|
405
|
-
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
406
|
-
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter,
|
|
405
|
+
listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass> {
|
|
406
|
+
return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
407
407
|
},
|
|
408
408
|
/**
|
|
409
409
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
410
410
|
* @summary Update the lead
|
|
411
|
-
* @param {string}
|
|
411
|
+
* @param {string} leadCode The unique identification code of the lead.
|
|
412
412
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
413
413
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
414
414
|
* @param {string} [authorization] Bearer Token
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
416
416
|
* @throws {RequiredError}
|
|
417
417
|
*/
|
|
418
|
-
updateLead(
|
|
419
|
-
return localVarFp.updateLead(
|
|
418
|
+
updateLead(leadCode: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
419
|
+
return localVarFp.updateLead(leadCode, customerCode, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
420
420
|
},
|
|
421
421
|
};
|
|
422
422
|
};
|
|
@@ -456,11 +456,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
456
456
|
*/
|
|
457
457
|
export interface LeadsApiGetLeadRequest {
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* The unique identification code of the lead.
|
|
460
460
|
* @type {string}
|
|
461
461
|
* @memberof LeadsApiGetLead
|
|
462
462
|
*/
|
|
463
|
-
readonly
|
|
463
|
+
readonly leadCode: string
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -505,7 +505,7 @@ export interface LeadsApiListLeadsRequest {
|
|
|
505
505
|
readonly authorization?: string
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
508
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
509
509
|
* @type {any}
|
|
510
510
|
* @memberof LeadsApiListLeads
|
|
511
511
|
*/
|
|
@@ -526,14 +526,7 @@ export interface LeadsApiListLeadsRequest {
|
|
|
526
526
|
readonly filter?: any
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
|
-
*
|
|
530
|
-
* @type {any}
|
|
531
|
-
* @memberof LeadsApiListLeads
|
|
532
|
-
*/
|
|
533
|
-
readonly filters?: any
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
529
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
537
530
|
* @type {any}
|
|
538
531
|
* @memberof LeadsApiListLeads
|
|
539
532
|
*/
|
|
@@ -552,6 +545,13 @@ export interface LeadsApiListLeadsRequest {
|
|
|
552
545
|
* @memberof LeadsApiListLeads
|
|
553
546
|
*/
|
|
554
547
|
readonly expand?: any
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* 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.
|
|
551
|
+
* @type {any}
|
|
552
|
+
* @memberof LeadsApiListLeads
|
|
553
|
+
*/
|
|
554
|
+
readonly filters?: any
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
|
@@ -561,11 +561,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
export interface LeadsApiUpdateLeadRequest {
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* The unique identification code of the lead.
|
|
565
565
|
* @type {string}
|
|
566
566
|
* @memberof LeadsApiUpdateLead
|
|
567
567
|
*/
|
|
568
|
-
readonly
|
|
568
|
+
readonly leadCode: string
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -609,7 +609,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
612
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
613
613
|
* @summary Retrieve the lead
|
|
614
614
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
@@ -617,7 +617,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
617
617
|
* @memberof LeadsApi
|
|
618
618
|
*/
|
|
619
619
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.
|
|
620
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
@@ -629,7 +629,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
629
629
|
* @memberof LeadsApi
|
|
630
630
|
*/
|
|
631
631
|
public listLeads(requestParameters: LeadsApiListLeadsRequest, options?: AxiosRequestConfig) {
|
|
632
|
-
return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
632
|
+
return LeadsApiFp(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
/**
|
|
@@ -641,6 +641,6 @@ export class LeadsApi extends BaseAPI {
|
|
|
641
641
|
* @memberof LeadsApi
|
|
642
642
|
*/
|
|
643
643
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return LeadsApiFp(this.configuration).updateLead(requestParameters.
|
|
644
|
+
return LeadsApiFp(this.configuration).updateLead(requestParameters.leadCode, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
645
|
}
|
|
646
646
|
}
|