@emilgroup/partner-portal-sdk-node 1.0.1-beta.0 → 1.0.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/intermediary-api.ts +112 -112
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/intermediary-api.d.ts +112 -112
- package/dist/api/intermediary-api.js +71 -71
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/git_push.sh +1 -1
- package/package.json +1 -1
|
@@ -97,7 +97,7 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* Retrieves the details of
|
|
100
|
+
* Retrieves the details of a lead associated with the logged-in partner. Supply the unique lead code, and Emil API will return the corresponding lead information.
|
|
101
101
|
* @summary Retrieve the lead
|
|
102
102
|
* @param {string} code Unique identifier for the object.
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -145,9 +145,9 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
},
|
|
147
147
|
/**
|
|
148
|
-
* Retrieves the details of the partner
|
|
148
|
+
* Retrieves the details of a related partner or the logged-in partner if their code or \'me\' is provided. Supply the unique partner code, and Emil API will return the corresponding partner information.
|
|
149
149
|
* @summary Retrieve the partner
|
|
150
|
-
* @param {string} code
|
|
150
|
+
* @param {string} code The partner code or \"me\" for the currently logged in partner.
|
|
151
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
@@ -193,7 +193,7 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
});
|
|
194
194
|
},
|
|
195
195
|
/**
|
|
196
|
-
* Retrieves the details of
|
|
196
|
+
* Retrieves the details of a policy associated with the logged-in partner. Supply the unique policy code, and Emil API will return the corresponding policy information.
|
|
197
197
|
* @summary Retrieve the policy
|
|
198
198
|
* @param {string} code Unique identifier for the object.
|
|
199
199
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -241,7 +241,7 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
});
|
|
242
242
|
},
|
|
243
243
|
/**
|
|
244
|
-
* Retrieves the details of
|
|
244
|
+
* Retrieves the details of a policyholder linked to the leads and policies the logged-in partner is associated with. Supply the unique policyholder code, and Emil API will return the corresponding policyholder information.
|
|
245
245
|
* @summary Retrieve the policyholder
|
|
246
246
|
* @param {string} code Unique identifier for the object.
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -289,13 +289,13 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
289
289
|
});
|
|
290
290
|
},
|
|
291
291
|
/**
|
|
292
|
-
* Returns a list of leads
|
|
292
|
+
* Returns a list of leads associated with the logged-in partner. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
293
293
|
* @summary List leads
|
|
294
294
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
295
|
-
* @param {
|
|
296
|
-
* @param {
|
|
295
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
296
|
+
* @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.
|
|
297
297
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
298
|
-
* @param {
|
|
298
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
299
299
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, status, leadNumber, updatedAt</i>
|
|
300
300
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerLinks<i>
|
|
301
301
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
@@ -361,13 +361,13 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
361
361
|
});
|
|
362
362
|
},
|
|
363
363
|
/**
|
|
364
|
-
* Returns a list of partners
|
|
364
|
+
* Returns a list of partners related to the logged-in partner. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
365
365
|
* @summary List partners
|
|
366
366
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
|
-
* @param {
|
|
368
|
-
* @param {
|
|
367
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
368
|
+
* @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.
|
|
369
369
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
370
|
-
* @param {
|
|
370
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
371
371
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tagSlugs</i>
|
|
372
372
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partner<i>
|
|
373
373
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
@@ -433,13 +433,13 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
433
433
|
});
|
|
434
434
|
},
|
|
435
435
|
/**
|
|
436
|
-
* Returns a list of policies
|
|
436
|
+
* Returns a list of policies associated with the logged-in partner. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
437
437
|
* @summary List policies
|
|
438
438
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
439
|
-
* @param {
|
|
440
|
-
* @param {
|
|
439
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
440
|
+
* @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.
|
|
441
441
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
442
|
-
* @param {
|
|
442
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
443
443
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
444
444
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: currentVersion, partnerLinks<i>
|
|
445
445
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
@@ -505,13 +505,13 @@ var IntermediaryApiAxiosParamCreator = function (configuration) {
|
|
|
505
505
|
});
|
|
506
506
|
},
|
|
507
507
|
/**
|
|
508
|
-
* Returns a list of policyholders
|
|
508
|
+
* Returns a list of policyholders linked to the leads and policies the logged-in partner is associated with. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
509
509
|
* @summary List policyholders
|
|
510
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
|
-
* @param {
|
|
512
|
-
* @param {
|
|
511
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
512
|
+
* @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.
|
|
513
513
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
514
|
-
* @param {
|
|
514
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
515
515
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, firstName, lastName, email, createdAt, accountNumber</i>
|
|
516
516
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
517
517
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
@@ -587,7 +587,7 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
587
587
|
var localVarAxiosParamCreator = (0, exports.IntermediaryApiAxiosParamCreator)(configuration);
|
|
588
588
|
return {
|
|
589
589
|
/**
|
|
590
|
-
* Retrieves the details of
|
|
590
|
+
* Retrieves the details of a lead associated with the logged-in partner. Supply the unique lead code, and Emil API will return the corresponding lead information.
|
|
591
591
|
* @summary Retrieve the lead
|
|
592
592
|
* @param {string} code Unique identifier for the object.
|
|
593
593
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -608,9 +608,9 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
608
608
|
});
|
|
609
609
|
},
|
|
610
610
|
/**
|
|
611
|
-
* Retrieves the details of the partner
|
|
611
|
+
* Retrieves the details of a related partner or the logged-in partner if their code or \'me\' is provided. Supply the unique partner code, and Emil API will return the corresponding partner information.
|
|
612
612
|
* @summary Retrieve the partner
|
|
613
|
-
* @param {string} code
|
|
613
|
+
* @param {string} code The partner code or \"me\" for the currently logged in partner.
|
|
614
614
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
616
616
|
* @throws {RequiredError}
|
|
@@ -629,7 +629,7 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
629
629
|
});
|
|
630
630
|
},
|
|
631
631
|
/**
|
|
632
|
-
* Retrieves the details of
|
|
632
|
+
* Retrieves the details of a policy associated with the logged-in partner. Supply the unique policy code, and Emil API will return the corresponding policy information.
|
|
633
633
|
* @summary Retrieve the policy
|
|
634
634
|
* @param {string} code Unique identifier for the object.
|
|
635
635
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -650,7 +650,7 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
650
650
|
});
|
|
651
651
|
},
|
|
652
652
|
/**
|
|
653
|
-
* Retrieves the details of
|
|
653
|
+
* Retrieves the details of a policyholder linked to the leads and policies the logged-in partner is associated with. Supply the unique policyholder code, and Emil API will return the corresponding policyholder information.
|
|
654
654
|
* @summary Retrieve the policyholder
|
|
655
655
|
* @param {string} code Unique identifier for the object.
|
|
656
656
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -671,13 +671,13 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
671
671
|
});
|
|
672
672
|
},
|
|
673
673
|
/**
|
|
674
|
-
* Returns a list of leads
|
|
674
|
+
* Returns a list of leads associated with the logged-in partner. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
675
675
|
* @summary List leads
|
|
676
676
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
677
|
-
* @param {
|
|
678
|
-
* @param {
|
|
677
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
678
|
+
* @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.
|
|
679
679
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
680
|
-
* @param {
|
|
680
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
681
681
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, status, leadNumber, updatedAt</i>
|
|
682
682
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerLinks<i>
|
|
683
683
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
@@ -698,13 +698,13 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
698
698
|
});
|
|
699
699
|
},
|
|
700
700
|
/**
|
|
701
|
-
* Returns a list of partners
|
|
701
|
+
* Returns a list of partners related to the logged-in partner. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
702
702
|
* @summary List partners
|
|
703
703
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
704
|
-
* @param {
|
|
705
|
-
* @param {
|
|
704
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
705
|
+
* @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.
|
|
706
706
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
707
|
-
* @param {
|
|
707
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
708
708
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tagSlugs</i>
|
|
709
709
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partner<i>
|
|
710
710
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
@@ -725,13 +725,13 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
725
725
|
});
|
|
726
726
|
},
|
|
727
727
|
/**
|
|
728
|
-
* Returns a list of policies
|
|
728
|
+
* Returns a list of policies associated with the logged-in partner. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
729
729
|
* @summary List policies
|
|
730
730
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
731
|
-
* @param {
|
|
732
|
-
* @param {
|
|
731
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
732
|
+
* @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.
|
|
733
733
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
734
|
-
* @param {
|
|
734
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
735
735
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
736
736
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: currentVersion, partnerLinks<i>
|
|
737
737
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
@@ -752,13 +752,13 @@ var IntermediaryApiFp = function (configuration) {
|
|
|
752
752
|
});
|
|
753
753
|
},
|
|
754
754
|
/**
|
|
755
|
-
* Returns a list of policyholders
|
|
755
|
+
* Returns a list of policyholders linked to the leads and policies the logged-in partner is associated with. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
756
756
|
* @summary List policyholders
|
|
757
757
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
758
|
-
* @param {
|
|
759
|
-
* @param {
|
|
758
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
759
|
+
* @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.
|
|
760
760
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
761
|
-
* @param {
|
|
761
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
762
762
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, firstName, lastName, email, createdAt, accountNumber</i>
|
|
763
763
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
764
764
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
@@ -789,7 +789,7 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
789
789
|
var localVarFp = (0, exports.IntermediaryApiFp)(configuration);
|
|
790
790
|
return {
|
|
791
791
|
/**
|
|
792
|
-
* Retrieves the details of
|
|
792
|
+
* Retrieves the details of a lead associated with the logged-in partner. Supply the unique lead code, and Emil API will return the corresponding lead information.
|
|
793
793
|
* @summary Retrieve the lead
|
|
794
794
|
* @param {string} code Unique identifier for the object.
|
|
795
795
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -800,9 +800,9 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
800
800
|
return localVarFp.getLead(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
801
801
|
},
|
|
802
802
|
/**
|
|
803
|
-
* Retrieves the details of the partner
|
|
803
|
+
* Retrieves the details of a related partner or the logged-in partner if their code or \'me\' is provided. Supply the unique partner code, and Emil API will return the corresponding partner information.
|
|
804
804
|
* @summary Retrieve the partner
|
|
805
|
-
* @param {string} code
|
|
805
|
+
* @param {string} code The partner code or \"me\" for the currently logged in partner.
|
|
806
806
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
807
807
|
* @param {*} [options] Override http request option.
|
|
808
808
|
* @throws {RequiredError}
|
|
@@ -811,7 +811,7 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
811
811
|
return localVarFp.getPartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
812
812
|
},
|
|
813
813
|
/**
|
|
814
|
-
* Retrieves the details of
|
|
814
|
+
* Retrieves the details of a policy associated with the logged-in partner. Supply the unique policy code, and Emil API will return the corresponding policy information.
|
|
815
815
|
* @summary Retrieve the policy
|
|
816
816
|
* @param {string} code Unique identifier for the object.
|
|
817
817
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -822,7 +822,7 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
822
822
|
return localVarFp.getPolicy(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
823
823
|
},
|
|
824
824
|
/**
|
|
825
|
-
* Retrieves the details of
|
|
825
|
+
* Retrieves the details of a policyholder linked to the leads and policies the logged-in partner is associated with. Supply the unique policyholder code, and Emil API will return the corresponding policyholder information.
|
|
826
826
|
* @summary Retrieve the policyholder
|
|
827
827
|
* @param {string} code Unique identifier for the object.
|
|
828
828
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -833,13 +833,13 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
833
833
|
return localVarFp.getPolicyholder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
834
834
|
},
|
|
835
835
|
/**
|
|
836
|
-
* Returns a list of leads
|
|
836
|
+
* Returns a list of leads associated with the logged-in partner. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
837
837
|
* @summary List leads
|
|
838
838
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
839
|
-
* @param {
|
|
840
|
-
* @param {
|
|
839
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
840
|
+
* @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.
|
|
841
841
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
842
|
-
* @param {
|
|
842
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
843
843
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, status, leadNumber, updatedAt</i>
|
|
844
844
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerLinks<i>
|
|
845
845
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, status, leadNumber, accountCode, productSlug, ern, createdAt, updatedAt, partnerCode</i>
|
|
@@ -850,13 +850,13 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
850
850
|
return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
851
851
|
},
|
|
852
852
|
/**
|
|
853
|
-
* Returns a list of partners
|
|
853
|
+
* Returns a list of partners related to the logged-in partner. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
854
854
|
* @summary List partners
|
|
855
855
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {
|
|
856
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
857
|
+
* @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.
|
|
858
858
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
859
|
-
* @param {
|
|
859
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
860
860
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tagSlugs</i>
|
|
861
861
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partner<i>
|
|
862
862
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
|
|
@@ -867,13 +867,13 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
867
867
|
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
868
868
|
},
|
|
869
869
|
/**
|
|
870
|
-
* Returns a list of policies
|
|
870
|
+
* Returns a list of policies associated with the logged-in partner. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
871
871
|
* @summary List policies
|
|
872
872
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {
|
|
873
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
874
|
+
* @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.
|
|
875
875
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
876
|
-
* @param {
|
|
876
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
877
877
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
878
878
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: currentVersion, partnerLinks<i>
|
|
879
879
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode</i>
|
|
@@ -884,13 +884,13 @@ var IntermediaryApiFactory = function (configuration, basePath, axios) {
|
|
|
884
884
|
return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
885
885
|
},
|
|
886
886
|
/**
|
|
887
|
-
* Returns a list of policyholders
|
|
887
|
+
* Returns a list of policyholders linked to the leads and policies the logged-in partner is associated with. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
888
888
|
* @summary List policyholders
|
|
889
889
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
890
|
-
* @param {
|
|
891
|
-
* @param {
|
|
890
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
891
|
+
* @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.
|
|
892
892
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
893
|
-
* @param {
|
|
893
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
894
894
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, firstName, lastName, email, createdAt, accountNumber</i>
|
|
895
895
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
896
896
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: firstName, code, email, createdAt, birthDate, accountNumber, title, lastName, gender, street, zipCode, city, houseNumber, phone, type, companyName</i>
|
|
@@ -915,7 +915,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
915
915
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
916
916
|
}
|
|
917
917
|
/**
|
|
918
|
-
* Retrieves the details of
|
|
918
|
+
* Retrieves the details of a lead associated with the logged-in partner. Supply the unique lead code, and Emil API will return the corresponding lead information.
|
|
919
919
|
* @summary Retrieve the lead
|
|
920
920
|
* @param {IntermediaryApiGetLeadRequest} requestParameters Request parameters.
|
|
921
921
|
* @param {*} [options] Override http request option.
|
|
@@ -927,7 +927,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
927
927
|
return (0, exports.IntermediaryApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
928
928
|
};
|
|
929
929
|
/**
|
|
930
|
-
* Retrieves the details of the partner
|
|
930
|
+
* Retrieves the details of a related partner or the logged-in partner if their code or \'me\' is provided. Supply the unique partner code, and Emil API will return the corresponding partner information.
|
|
931
931
|
* @summary Retrieve the partner
|
|
932
932
|
* @param {IntermediaryApiGetPartnerRequest} requestParameters Request parameters.
|
|
933
933
|
* @param {*} [options] Override http request option.
|
|
@@ -939,7 +939,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
939
939
|
return (0, exports.IntermediaryApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
940
940
|
};
|
|
941
941
|
/**
|
|
942
|
-
* Retrieves the details of
|
|
942
|
+
* Retrieves the details of a policy associated with the logged-in partner. Supply the unique policy code, and Emil API will return the corresponding policy information.
|
|
943
943
|
* @summary Retrieve the policy
|
|
944
944
|
* @param {IntermediaryApiGetPolicyRequest} requestParameters Request parameters.
|
|
945
945
|
* @param {*} [options] Override http request option.
|
|
@@ -951,7 +951,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
951
951
|
return (0, exports.IntermediaryApiFp)(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
952
952
|
};
|
|
953
953
|
/**
|
|
954
|
-
* Retrieves the details of
|
|
954
|
+
* Retrieves the details of a policyholder linked to the leads and policies the logged-in partner is associated with. Supply the unique policyholder code, and Emil API will return the corresponding policyholder information.
|
|
955
955
|
* @summary Retrieve the policyholder
|
|
956
956
|
* @param {IntermediaryApiGetPolicyholderRequest} requestParameters Request parameters.
|
|
957
957
|
* @param {*} [options] Override http request option.
|
|
@@ -963,7 +963,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
963
963
|
return (0, exports.IntermediaryApiFp)(this.configuration).getPolicyholder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
964
964
|
};
|
|
965
965
|
/**
|
|
966
|
-
* Returns a list of leads
|
|
966
|
+
* Returns a list of leads associated with the logged-in partner. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
967
967
|
* @summary List leads
|
|
968
968
|
* @param {IntermediaryApiListLeadsRequest} requestParameters Request parameters.
|
|
969
969
|
* @param {*} [options] Override http request option.
|
|
@@ -976,7 +976,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
976
976
|
return (0, exports.IntermediaryApiFp)(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
977
977
|
};
|
|
978
978
|
/**
|
|
979
|
-
* Returns a list of partners
|
|
979
|
+
* Returns a list of partners related to the logged-in partner. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
980
980
|
* @summary List partners
|
|
981
981
|
* @param {IntermediaryApiListPartnersRequest} requestParameters Request parameters.
|
|
982
982
|
* @param {*} [options] Override http request option.
|
|
@@ -989,7 +989,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
989
989
|
return (0, exports.IntermediaryApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
990
990
|
};
|
|
991
991
|
/**
|
|
992
|
-
* Returns a list of policies
|
|
992
|
+
* Returns a list of policies associated with the logged-in partner. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
993
993
|
* @summary List policies
|
|
994
994
|
* @param {IntermediaryApiListPoliciesRequest} requestParameters Request parameters.
|
|
995
995
|
* @param {*} [options] Override http request option.
|
|
@@ -1002,7 +1002,7 @@ var IntermediaryApi = /** @class */ (function (_super) {
|
|
|
1002
1002
|
return (0, exports.IntermediaryApiFp)(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1003
1003
|
};
|
|
1004
1004
|
/**
|
|
1005
|
-
* Returns a list of policyholders
|
|
1005
|
+
* Returns a list of policyholders linked to the leads and policies the logged-in partner is associated with. The policyholders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1006
1006
|
* @summary List policyholders
|
|
1007
1007
|
* @param {IntermediaryApiListPolicyholdersRequest} requestParameters Request parameters.
|
|
1008
1008
|
* @param {*} [options] Override http request option.
|
package/dist/common.js
CHANGED
|
@@ -141,7 +141,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
141
141
|
_b.label = 4;
|
|
142
142
|
case 4:
|
|
143
143
|
accessToken = _a;
|
|
144
|
-
object["Authorization"] =
|
|
144
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
145
145
|
_b.label = 5;
|
|
146
146
|
case 5: return [2 /*return*/];
|
|
147
147
|
}
|
|
@@ -171,7 +171,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
171
171
|
_b.label = 4;
|
|
172
172
|
case 4:
|
|
173
173
|
localVarAccessTokenValue = _a;
|
|
174
|
-
object["Authorization"] =
|
|
174
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
175
175
|
_b.label = 5;
|
|
176
176
|
case 5: return [2 /*return*/];
|
|
177
177
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -87,4 +87,10 @@ export declare class Configuration {
|
|
|
87
87
|
* @return True if the given MIME is JSON, false otherwise.
|
|
88
88
|
*/
|
|
89
89
|
isJsonMime(mime: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Returns "Bearer" token.
|
|
92
|
+
* @param token - access token.
|
|
93
|
+
* @return Bearer token.
|
|
94
|
+
*/
|
|
95
|
+
getBearerToken(token?: string): string;
|
|
90
96
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -39,6 +39,14 @@ var Configuration = /** @class */ (function () {
|
|
|
39
39
|
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
40
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns "Bearer" token.
|
|
44
|
+
* @param token - access token.
|
|
45
|
+
* @return Bearer token.
|
|
46
|
+
*/
|
|
47
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
48
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
49
|
+
};
|
|
42
50
|
return Configuration;
|
|
43
51
|
}());
|
|
44
52
|
exports.Configuration = Configuration;
|
package/git_push.sh
CHANGED
package/package.json
CHANGED