@emilgroup/partner-sdk-node 1.13.0 → 1.13.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.
@@ -97,7 +97,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create a partner.
100
+ * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
101
101
  * @summary Create the partner
102
102
  * @param {CreatePartnerRequestDto} createPartnerRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -146,7 +146,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
149
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
150
150
  * @summary Delete the partner
151
151
  * @param {string} code
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -194,7 +194,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
197
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information. **Required Permissions** \"partner-management.partners.view\"
198
198
  * @summary Retrieve the partner
199
199
  * @param {string} code Unique identifier for the object.
200
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -246,13 +246,13 @@ var PartnersApiAxiosParamCreator = function (configuration) {
246
246
  });
247
247
  },
248
248
  /**
249
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
249
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
250
250
  * @summary List partners
251
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
- * @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.
252
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
+ * @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.
254
254
  * @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>
255
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
255
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
256
256
  * @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, tags, tagSlugs</i>
257
257
  * @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: partnerType, tags<i>
258
258
  * @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>
@@ -318,14 +318,14 @@ var PartnersApiAxiosParamCreator = function (configuration) {
318
318
  });
319
319
  },
320
320
  /**
321
- * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
321
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
322
322
  * @summary List grouped relations for partner
323
323
  * @param {string} code
324
324
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
325
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
326
- * @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.
325
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
326
+ * @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.
327
327
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
328
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
328
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
329
329
  * @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
330
330
  * @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: partner1, partner2, partnerRelationType<i>
331
331
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
@@ -394,7 +394,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
394
394
  });
395
395
  },
396
396
  /**
397
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
397
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
398
398
  * @summary Update the partner
399
399
  * @param {string} code
400
400
  * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
@@ -447,7 +447,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
447
447
  });
448
448
  },
449
449
  /**
450
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
450
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
451
451
  * @summary Update the partner
452
452
  * @param {string} code Unique identifier for the object.
453
453
  * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
@@ -510,7 +510,7 @@ var PartnersApiFp = function (configuration) {
510
510
  var localVarAxiosParamCreator = (0, exports.PartnersApiAxiosParamCreator)(configuration);
511
511
  return {
512
512
  /**
513
- * This will create a partner.
513
+ * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
514
514
  * @summary Create the partner
515
515
  * @param {CreatePartnerRequestDto} createPartnerRequestDto
516
516
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -531,7 +531,7 @@ var PartnersApiFp = function (configuration) {
531
531
  });
532
532
  },
533
533
  /**
534
- * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
534
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
535
535
  * @summary Delete the partner
536
536
  * @param {string} code
537
537
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -552,7 +552,7 @@ var PartnersApiFp = function (configuration) {
552
552
  });
553
553
  },
554
554
  /**
555
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
555
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information. **Required Permissions** \"partner-management.partners.view\"
556
556
  * @summary Retrieve the partner
557
557
  * @param {string} code Unique identifier for the object.
558
558
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -574,13 +574,13 @@ var PartnersApiFp = function (configuration) {
574
574
  });
575
575
  },
576
576
  /**
577
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
577
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
578
578
  * @summary List partners
579
579
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
580
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
581
- * @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.
580
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
581
+ * @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.
582
582
  * @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>
583
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
583
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
584
584
  * @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, tags, tagSlugs</i>
585
585
  * @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: partnerType, tags<i>
586
586
  * @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>
@@ -601,14 +601,14 @@ var PartnersApiFp = function (configuration) {
601
601
  });
602
602
  },
603
603
  /**
604
- * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
604
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
605
605
  * @summary List grouped relations for partner
606
606
  * @param {string} code
607
607
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
608
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
609
- * @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.
608
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
609
+ * @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.
610
610
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
611
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
611
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
612
612
  * @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
613
613
  * @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: partner1, partner2, partnerRelationType<i>
614
614
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
@@ -629,7 +629,7 @@ var PartnersApiFp = function (configuration) {
629
629
  });
630
630
  },
631
631
  /**
632
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
632
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
633
633
  * @summary Update the partner
634
634
  * @param {string} code
635
635
  * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
@@ -651,7 +651,7 @@ var PartnersApiFp = function (configuration) {
651
651
  });
652
652
  },
653
653
  /**
654
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
654
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
655
655
  * @summary Update the partner
656
656
  * @param {string} code Unique identifier for the object.
657
657
  * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
@@ -683,7 +683,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
683
683
  var localVarFp = (0, exports.PartnersApiFp)(configuration);
684
684
  return {
685
685
  /**
686
- * This will create a partner.
686
+ * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
687
687
  * @summary Create the partner
688
688
  * @param {CreatePartnerRequestDto} createPartnerRequestDto
689
689
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -694,7 +694,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
694
694
  return localVarFp.createPartner(createPartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
695
695
  },
696
696
  /**
697
- * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
697
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
698
698
  * @summary Delete the partner
699
699
  * @param {string} code
700
700
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -705,7 +705,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
705
705
  return localVarFp.deletePartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
706
706
  },
707
707
  /**
708
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
708
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information. **Required Permissions** \"partner-management.partners.view\"
709
709
  * @summary Retrieve the partner
710
710
  * @param {string} code Unique identifier for the object.
711
711
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -717,13 +717,13 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
717
717
  return localVarFp.getPartner(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
718
718
  },
719
719
  /**
720
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
720
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
721
721
  * @summary List partners
722
722
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
723
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
724
- * @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.
723
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
724
+ * @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.
725
725
  * @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>
726
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
726
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
727
727
  * @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, tags, tagSlugs</i>
728
728
  * @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: partnerType, tags<i>
729
729
  * @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>
@@ -734,14 +734,14 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
734
734
  return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
735
735
  },
736
736
  /**
737
- * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
737
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
738
738
  * @summary List grouped relations for partner
739
739
  * @param {string} code
740
740
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
741
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
742
- * @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.
741
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
742
+ * @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.
743
743
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
744
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
744
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
745
745
  * @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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
746
746
  * @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: partner1, partner2, partnerRelationType<i>
747
747
  * @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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
@@ -752,7 +752,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
752
752
  return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
753
753
  },
754
754
  /**
755
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
755
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
756
756
  * @summary Update the partner
757
757
  * @param {string} code
758
758
  * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
@@ -764,7 +764,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
764
764
  return localVarFp.tagPartner(code, tagPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
765
765
  },
766
766
  /**
767
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
767
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
768
768
  * @summary Update the partner
769
769
  * @param {string} code Unique identifier for the object.
770
770
  * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
@@ -790,7 +790,7 @@ var PartnersApi = /** @class */ (function (_super) {
790
790
  return _super !== null && _super.apply(this, arguments) || this;
791
791
  }
792
792
  /**
793
- * This will create a partner.
793
+ * This will create a partner. **Required Permissions** \"partner-management.partners.create\"
794
794
  * @summary Create the partner
795
795
  * @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
796
796
  * @param {*} [options] Override http request option.
@@ -802,7 +802,7 @@ var PartnersApi = /** @class */ (function (_super) {
802
802
  return (0, exports.PartnersApiFp)(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
803
803
  };
804
804
  /**
805
- * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
805
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
806
806
  * @summary Delete the partner
807
807
  * @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
808
808
  * @param {*} [options] Override http request option.
@@ -814,7 +814,7 @@ var PartnersApi = /** @class */ (function (_super) {
814
814
  return (0, exports.PartnersApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
815
815
  };
816
816
  /**
817
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
817
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information. **Required Permissions** \"partner-management.partners.view\"
818
818
  * @summary Retrieve the partner
819
819
  * @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
820
820
  * @param {*} [options] Override http request option.
@@ -826,7 +826,7 @@ var PartnersApi = /** @class */ (function (_super) {
826
826
  return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
827
827
  };
828
828
  /**
829
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
829
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
830
830
  * @summary List partners
831
831
  * @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
832
832
  * @param {*} [options] Override http request option.
@@ -839,7 +839,7 @@ var PartnersApi = /** @class */ (function (_super) {
839
839
  return (0, exports.PartnersApiFp)(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); });
840
840
  };
841
841
  /**
842
- * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
842
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
843
843
  * @summary List grouped relations for partner
844
844
  * @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
845
845
  * @param {*} [options] Override http request option.
@@ -851,7 +851,7 @@ var PartnersApi = /** @class */ (function (_super) {
851
851
  return (0, exports.PartnersApiFp)(this.configuration).listRelationsForPartner(requestParameters.code, 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); });
852
852
  };
853
853
  /**
854
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
854
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
855
855
  * @summary Update the partner
856
856
  * @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
857
857
  * @param {*} [options] Override http request option.
@@ -863,7 +863,7 @@ var PartnersApi = /** @class */ (function (_super) {
863
863
  return (0, exports.PartnersApiFp)(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
864
864
  };
865
865
  /**
866
- * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
866
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
867
867
  * @summary Update the partner
868
868
  * @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
869
869
  * @param {*} [options] Override http request option.
package/dist/base.js CHANGED
@@ -330,7 +330,7 @@ var BaseAPI = /** @class */ (function () {
330
330
  case 2:
331
331
  tokenString = _a.sent();
332
332
  accessToken = "Bearer ".concat(tokenString);
333
- originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
333
+ originalConfig.headers['Authorization'] = accessToken;
334
334
  this.configuration.accessToken = accessToken;
335
335
  return [2 /*return*/, axios.request(originalConfig)];
336
336
  case 3:
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"] = "Bearer " + accessToken;
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"] = "Bearer " + localVarAccessTokenValue;
174
+ object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
175
175
  _b.label = 5;
176
176
  case 5: return [2 /*return*/];
177
177
  }
@@ -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
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.13.0",
3
+ "version": "1.13.1-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [