@emilgroup/customer-sdk-node 1.46.0 → 1.46.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -31,23 +31,23 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, contentDisposition?:
|
|
34
|
+
getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, contentDisposition?: "attachment" | "inline", authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
36
|
* List all the documents of a customer.
|
|
37
37
|
* @summary List documents of a customer
|
|
38
38
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
39
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
40
|
+
* @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.
|
|
41
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
42
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
43
|
+
* @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.
|
|
44
|
+
* @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.
|
|
45
|
+
* @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.
|
|
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
|
-
listDocuments: (customerCode: string, pageSize?:
|
|
50
|
+
listDocuments: (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
51
|
/**
|
|
52
52
|
* API to upload and attach documents to an account.
|
|
53
53
|
* @summary Upload account documents
|
|
@@ -73,23 +73,23 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
76
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: "attachment" | "inline", authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
|
|
77
77
|
/**
|
|
78
78
|
* List all the documents of a customer.
|
|
79
79
|
* @summary List documents of a customer
|
|
80
80
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
81
|
-
* @param {
|
|
82
|
-
* @param {
|
|
83
|
-
* @param {
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
81
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
82
|
+
* @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.
|
|
83
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
84
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
85
|
+
* @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.
|
|
86
|
+
* @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.
|
|
87
|
+
* @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.
|
|
88
88
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
listDocuments(customerCode: string, pageSize?:
|
|
92
|
+
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>>;
|
|
93
93
|
/**
|
|
94
94
|
* API to upload and attach documents to an account.
|
|
95
95
|
* @summary Upload account documents
|
|
@@ -115,23 +115,23 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
115
115
|
* @param {*} [options] Override http request option.
|
|
116
116
|
* @throws {RequiredError}
|
|
117
117
|
*/
|
|
118
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
118
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: "attachment" | "inline", authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
|
|
119
119
|
/**
|
|
120
120
|
* List all the documents of a customer.
|
|
121
121
|
* @summary List documents of a customer
|
|
122
122
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {
|
|
125
|
-
* @param {
|
|
126
|
-
* @param {
|
|
127
|
-
* @param {
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {
|
|
123
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
124
|
+
* @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.
|
|
125
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
126
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
127
|
+
* @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.
|
|
128
|
+
* @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.
|
|
129
|
+
* @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.
|
|
130
130
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
132
132
|
* @throws {RequiredError}
|
|
133
133
|
*/
|
|
134
|
-
listDocuments(customerCode: string, pageSize?:
|
|
134
|
+
listDocuments(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
135
135
|
/**
|
|
136
136
|
* API to upload and attach documents to an account.
|
|
137
137
|
* @summary Upload account documents
|
|
@@ -187,46 +187,46 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
187
187
|
readonly customerCode: string;
|
|
188
188
|
/**
|
|
189
189
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
-
* @type {
|
|
190
|
+
* @type {number}
|
|
191
191
|
* @memberof DocumentsApiListDocuments
|
|
192
192
|
*/
|
|
193
|
-
readonly pageSize?:
|
|
193
|
+
readonly pageSize?: number;
|
|
194
194
|
/**
|
|
195
|
-
* 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,
|
|
196
|
-
* @type {
|
|
195
|
+
* 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.
|
|
196
|
+
* @type {string}
|
|
197
197
|
* @memberof DocumentsApiListDocuments
|
|
198
198
|
*/
|
|
199
|
-
readonly pageToken?:
|
|
199
|
+
readonly pageToken?: string;
|
|
200
200
|
/**
|
|
201
201
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
202
|
-
* @type {
|
|
202
|
+
* @type {string}
|
|
203
203
|
* @memberof DocumentsApiListDocuments
|
|
204
204
|
*/
|
|
205
|
-
readonly filter?:
|
|
205
|
+
readonly filter?: string;
|
|
206
206
|
/**
|
|
207
207
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
208
|
-
* @type {
|
|
208
|
+
* @type {string}
|
|
209
209
|
* @memberof DocumentsApiListDocuments
|
|
210
210
|
*/
|
|
211
|
-
readonly search?:
|
|
211
|
+
readonly search?: string;
|
|
212
212
|
/**
|
|
213
213
|
* 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.
|
|
214
|
-
* @type {
|
|
214
|
+
* @type {string}
|
|
215
215
|
* @memberof DocumentsApiListDocuments
|
|
216
216
|
*/
|
|
217
|
-
readonly order?:
|
|
217
|
+
readonly order?: string;
|
|
218
218
|
/**
|
|
219
|
-
* 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
|
|
220
|
-
* @type {
|
|
219
|
+
* 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.
|
|
220
|
+
* @type {string}
|
|
221
221
|
* @memberof DocumentsApiListDocuments
|
|
222
222
|
*/
|
|
223
|
-
readonly expand?:
|
|
223
|
+
readonly expand?: string;
|
|
224
224
|
/**
|
|
225
225
|
* 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.
|
|
226
|
-
* @type {
|
|
226
|
+
* @type {string}
|
|
227
227
|
* @memberof DocumentsApiListDocuments
|
|
228
228
|
*/
|
|
229
|
-
readonly filters?:
|
|
229
|
+
readonly filters?: string;
|
|
230
230
|
/**
|
|
231
231
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
232
232
|
* @type {string}
|
|
@@ -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
|
};
|
|
@@ -106,10 +115,14 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
106
115
|
* @param {*} [options] Override http request option.
|
|
107
116
|
* @throws {RequiredError}
|
|
108
117
|
*/
|
|
109
|
-
getCustomerDocumentDownloadUrl: function (
|
|
110
|
-
|
|
111
|
-
|
|
118
|
+
getCustomerDocumentDownloadUrl: function (documentCode_1, customerCode_1, contentDisposition_1, authorization_1) {
|
|
119
|
+
var args_1 = [];
|
|
120
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
121
|
+
args_1[_i - 4] = arguments[_i];
|
|
122
|
+
}
|
|
123
|
+
return __awaiter(_this, __spreadArray([documentCode_1, customerCode_1, contentDisposition_1, authorization_1], args_1, true), void 0, function (documentCode, customerCode, contentDisposition, authorization, options) {
|
|
112
124
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
125
|
+
if (options === void 0) { options = {}; }
|
|
113
126
|
return __generator(this, function (_a) {
|
|
114
127
|
// verify required parameter 'documentCode' is not null or undefined
|
|
115
128
|
(0, common_1.assertParamExists)('getCustomerDocumentDownloadUrl', 'documentCode', documentCode);
|
|
@@ -146,21 +159,25 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
146
159
|
* List all the documents of a customer.
|
|
147
160
|
* @summary List documents of a customer
|
|
148
161
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
|
-
* @param {
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {
|
|
154
|
-
* @param {
|
|
155
|
-
* @param {
|
|
162
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
163
|
+
* @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.
|
|
164
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
165
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
166
|
+
* @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.
|
|
167
|
+
* @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.
|
|
168
|
+
* @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.
|
|
156
169
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
170
|
* @param {*} [options] Override http request option.
|
|
158
171
|
* @throws {RequiredError}
|
|
159
172
|
*/
|
|
160
|
-
listDocuments: function (
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
listDocuments: function (customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1) {
|
|
174
|
+
var args_1 = [];
|
|
175
|
+
for (var _i = 9; _i < arguments.length; _i++) {
|
|
176
|
+
args_1[_i - 9] = arguments[_i];
|
|
177
|
+
}
|
|
178
|
+
return __awaiter(_this, __spreadArray([customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1], args_1, true), void 0, function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
163
179
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
180
|
+
if (options === void 0) { options = {}; }
|
|
164
181
|
return __generator(this, function (_a) {
|
|
165
182
|
// verify required parameter 'customerCode' is not null or undefined
|
|
166
183
|
(0, common_1.assertParamExists)('listDocuments', 'customerCode', customerCode);
|
|
@@ -216,10 +233,14 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
216
233
|
* @param {*} [options] Override http request option.
|
|
217
234
|
* @throws {RequiredError}
|
|
218
235
|
*/
|
|
219
|
-
uploadAccountDocuments: function (
|
|
220
|
-
|
|
221
|
-
|
|
236
|
+
uploadAccountDocuments: function (customerCode_1, uploadAccountDocumentsRequestDto_1) {
|
|
237
|
+
var args_1 = [];
|
|
238
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
239
|
+
args_1[_i - 2] = arguments[_i];
|
|
240
|
+
}
|
|
241
|
+
return __awaiter(_this, __spreadArray([customerCode_1, uploadAccountDocumentsRequestDto_1], args_1, true), void 0, function (customerCode, uploadAccountDocumentsRequestDto, options) {
|
|
222
242
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
243
|
+
if (options === void 0) { options = {}; }
|
|
223
244
|
return __generator(this, function (_a) {
|
|
224
245
|
// verify required parameter 'customerCode' is not null or undefined
|
|
225
246
|
(0, common_1.assertParamExists)('uploadAccountDocuments', 'customerCode', customerCode);
|
|
@@ -284,13 +305,13 @@ var DocumentsApiFp = function (configuration) {
|
|
|
284
305
|
* List all the documents of a customer.
|
|
285
306
|
* @summary List documents of a customer
|
|
286
307
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
287
|
-
* @param {
|
|
288
|
-
* @param {
|
|
289
|
-
* @param {
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
308
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
309
|
+
* @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.
|
|
310
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
311
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
312
|
+
* @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.
|
|
313
|
+
* @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.
|
|
314
|
+
* @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.
|
|
294
315
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
295
316
|
* @param {*} [options] Override http request option.
|
|
296
317
|
* @throws {RequiredError}
|
|
@@ -356,13 +377,13 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
356
377
|
* List all the documents of a customer.
|
|
357
378
|
* @summary List documents of a customer
|
|
358
379
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
359
|
-
* @param {
|
|
360
|
-
* @param {
|
|
361
|
-
* @param {
|
|
362
|
-
* @param {
|
|
363
|
-
* @param {
|
|
364
|
-
* @param {
|
|
365
|
-
* @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.
|
|
366
387
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
388
|
* @param {*} [options] Override http request option.
|
|
368
389
|
* @throws {RequiredError}
|
|
@@ -42,7 +42,7 @@ export declare const InvitesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
42
42
|
*/
|
|
43
43
|
inviteByCustomer: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
|
-
* 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.
|
|
45
|
+
* 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\"
|
|
46
46
|
* @summary Invite a customer by tenant
|
|
47
47
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
48
48
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -82,7 +82,7 @@ export declare const InvitesApiFp: (configuration?: Configuration) => {
|
|
|
82
82
|
*/
|
|
83
83
|
inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>>;
|
|
84
84
|
/**
|
|
85
|
-
* 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.
|
|
85
|
+
* 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\"
|
|
86
86
|
* @summary Invite a customer by tenant
|
|
87
87
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
88
88
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -122,7 +122,7 @@ export declare const InvitesApiFactory: (configuration?: Configuration, basePath
|
|
|
122
122
|
*/
|
|
123
123
|
inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass>;
|
|
124
124
|
/**
|
|
125
|
-
* 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.
|
|
125
|
+
* 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\"
|
|
126
126
|
* @summary Invite a customer by tenant
|
|
127
127
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
128
128
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -229,7 +229,7 @@ export declare class InvitesApi extends BaseAPI {
|
|
|
229
229
|
*/
|
|
230
230
|
inviteByCustomer(requestParameters: InvitesApiInviteByCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByCustomerResponseClass, any>>;
|
|
231
231
|
/**
|
|
232
|
-
* 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.
|
|
232
|
+
* 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\"
|
|
233
233
|
* @summary Invite a customer by tenant
|
|
234
234
|
* @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
|
|
235
235
|
* @param {*} [options] Override http request option.
|
package/dist/api/invites-api.js
CHANGED
|
@@ -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
|
};
|
|
@@ -103,10 +112,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
103
112
|
* @param {*} [options] Override http request option.
|
|
104
113
|
* @throws {RequiredError}
|
|
105
114
|
*/
|
|
106
|
-
createCustomer: function (
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
createCustomer: function (createCustomerRequestDto_1) {
|
|
116
|
+
var args_1 = [];
|
|
117
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
118
|
+
args_1[_i - 1] = arguments[_i];
|
|
119
|
+
}
|
|
120
|
+
return __awaiter(_this, __spreadArray([createCustomerRequestDto_1], args_1, true), void 0, function (createCustomerRequestDto, options) {
|
|
109
121
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
122
|
+
if (options === void 0) { options = {}; }
|
|
110
123
|
return __generator(this, function (_a) {
|
|
111
124
|
// verify required parameter 'createCustomerRequestDto' is not null or undefined
|
|
112
125
|
(0, common_1.assertParamExists)('createCustomer', 'createCustomerRequestDto', createCustomerRequestDto);
|
|
@@ -139,10 +152,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
139
152
|
* @param {*} [options] Override http request option.
|
|
140
153
|
* @throws {RequiredError}
|
|
141
154
|
*/
|
|
142
|
-
inviteByCustomer: function (
|
|
143
|
-
|
|
144
|
-
|
|
155
|
+
inviteByCustomer: function (inviteByCustomerRequestDto_1, authorization_1) {
|
|
156
|
+
var args_1 = [];
|
|
157
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
158
|
+
args_1[_i - 2] = arguments[_i];
|
|
159
|
+
}
|
|
160
|
+
return __awaiter(_this, __spreadArray([inviteByCustomerRequestDto_1, authorization_1], args_1, true), void 0, function (inviteByCustomerRequestDto, authorization, options) {
|
|
145
161
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
if (options === void 0) { options = {}; }
|
|
146
163
|
return __generator(this, function (_a) {
|
|
147
164
|
// verify required parameter 'inviteByCustomerRequestDto' is not null or undefined
|
|
148
165
|
(0, common_1.assertParamExists)('inviteByCustomer', 'inviteByCustomerRequestDto', inviteByCustomerRequestDto);
|
|
@@ -171,17 +188,21 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
171
188
|
});
|
|
172
189
|
},
|
|
173
190
|
/**
|
|
174
|
-
* 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.
|
|
191
|
+
* 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\"
|
|
175
192
|
* @summary Invite a customer by tenant
|
|
176
193
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
177
194
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
178
195
|
* @param {*} [options] Override http request option.
|
|
179
196
|
* @throws {RequiredError}
|
|
180
197
|
*/
|
|
181
|
-
inviteByTenant: function (
|
|
182
|
-
|
|
183
|
-
|
|
198
|
+
inviteByTenant: function (inviteByTenantRequestDto_1, authorization_1) {
|
|
199
|
+
var args_1 = [];
|
|
200
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
201
|
+
args_1[_i - 2] = arguments[_i];
|
|
202
|
+
}
|
|
203
|
+
return __awaiter(_this, __spreadArray([inviteByTenantRequestDto_1, authorization_1], args_1, true), void 0, function (inviteByTenantRequestDto, authorization, options) {
|
|
184
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
if (options === void 0) { options = {}; }
|
|
185
206
|
return __generator(this, function (_a) {
|
|
186
207
|
// verify required parameter 'inviteByTenantRequestDto' is not null or undefined
|
|
187
208
|
(0, common_1.assertParamExists)('inviteByTenant', 'inviteByTenantRequestDto', inviteByTenantRequestDto);
|
|
@@ -216,10 +237,14 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
216
237
|
* @param {*} [options] Override http request option.
|
|
217
238
|
* @throws {RequiredError}
|
|
218
239
|
*/
|
|
219
|
-
verifyInvite: function (
|
|
220
|
-
|
|
221
|
-
|
|
240
|
+
verifyInvite: function (inviteToken_1) {
|
|
241
|
+
var args_1 = [];
|
|
242
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
243
|
+
args_1[_i - 1] = arguments[_i];
|
|
244
|
+
}
|
|
245
|
+
return __awaiter(_this, __spreadArray([inviteToken_1], args_1, true), void 0, function (inviteToken, options) {
|
|
222
246
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
247
|
+
if (options === void 0) { options = {}; }
|
|
223
248
|
return __generator(this, function (_a) {
|
|
224
249
|
// verify required parameter 'inviteToken' is not null or undefined
|
|
225
250
|
(0, common_1.assertParamExists)('verifyInvite', 'inviteToken', inviteToken);
|
|
@@ -297,7 +322,7 @@ var InvitesApiFp = function (configuration) {
|
|
|
297
322
|
});
|
|
298
323
|
},
|
|
299
324
|
/**
|
|
300
|
-
* 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.
|
|
325
|
+
* 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\"
|
|
301
326
|
* @summary Invite a customer by tenant
|
|
302
327
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
303
328
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -369,7 +394,7 @@ var InvitesApiFactory = function (configuration, basePath, axios) {
|
|
|
369
394
|
return localVarFp.inviteByCustomer(inviteByCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
370
395
|
},
|
|
371
396
|
/**
|
|
372
|
-
* 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.
|
|
397
|
+
* 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\"
|
|
373
398
|
* @summary Invite a customer by tenant
|
|
374
399
|
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
375
400
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -428,7 +453,7 @@ var InvitesApi = /** @class */ (function (_super) {
|
|
|
428
453
|
return (0, exports.InvitesApiFp)(this.configuration).inviteByCustomer(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
429
454
|
};
|
|
430
455
|
/**
|
|
431
|
-
* 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.
|
|
456
|
+
* 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\"
|
|
432
457
|
* @summary Invite a customer by tenant
|
|
433
458
|
* @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
|
|
434
459
|
* @param {*} [options] Override http request option.
|