@emilgroup/partner-sdk 1.13.1-beta.0 → 1.13.1-beta.2
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/partner-invitations-api.ts +4 -4
- package/api/partner-relations-api.ts +28 -28
- package/api/partner-tags-api.ts +24 -24
- package/api/partner-types-api.ts +20 -20
- package/api/partner-versions-api.ts +8 -8
- package/api/partners-api.ts +28 -28
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/partner-invitations-api.d.ts +4 -4
- package/dist/api/partner-invitations-api.js +4 -4
- package/dist/api/partner-relations-api.d.ts +28 -28
- package/dist/api/partner-relations-api.js +28 -28
- package/dist/api/partner-tags-api.d.ts +24 -24
- package/dist/api/partner-tags-api.js +23 -23
- package/dist/api/partner-types-api.d.ts +20 -20
- package/dist/api/partner-types-api.js +20 -20
- package/dist/api/partner-versions-api.d.ts +8 -8
- package/dist/api/partner-versions-api.js +8 -8
- package/dist/api/partners-api.d.ts +28 -28
- package/dist/api/partners-api.js +28 -28
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/package.json +1 -1
package/dist/api/partners-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create a partner.
|
|
96
|
+
* This will create a partner.
|
|
97
97
|
* @summary Create the partner
|
|
98
98
|
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -142,7 +142,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
145
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
146
146
|
* @summary Delete the partner
|
|
147
147
|
* @param {string} code
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -190,7 +190,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* 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.
|
|
193
|
+
* 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.
|
|
194
194
|
* @summary Retrieve the partner
|
|
195
195
|
* @param {string} code Unique identifier for the object.
|
|
196
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -242,7 +242,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
|
-
* 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.
|
|
245
|
+
* 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.
|
|
246
246
|
* @summary List partners
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
248
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -314,7 +314,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
|
-
* 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.
|
|
317
|
+
* 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.
|
|
318
318
|
* @summary List grouped relations for partner
|
|
319
319
|
* @param {string} code
|
|
320
320
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -390,7 +390,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
390
390
|
});
|
|
391
391
|
},
|
|
392
392
|
/**
|
|
393
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
393
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
394
394
|
* @summary Update the partner
|
|
395
395
|
* @param {string} code
|
|
396
396
|
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
@@ -443,7 +443,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
443
443
|
});
|
|
444
444
|
},
|
|
445
445
|
/**
|
|
446
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
446
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
447
447
|
* @summary Update the partner
|
|
448
448
|
* @param {string} code Unique identifier for the object.
|
|
449
449
|
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
@@ -506,7 +506,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
506
506
|
var localVarAxiosParamCreator = (0, exports.PartnersApiAxiosParamCreator)(configuration);
|
|
507
507
|
return {
|
|
508
508
|
/**
|
|
509
|
-
* This will create a partner.
|
|
509
|
+
* This will create a partner.
|
|
510
510
|
* @summary Create the partner
|
|
511
511
|
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
512
512
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -527,7 +527,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
527
527
|
});
|
|
528
528
|
},
|
|
529
529
|
/**
|
|
530
|
-
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
530
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
531
531
|
* @summary Delete the partner
|
|
532
532
|
* @param {string} code
|
|
533
533
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -548,7 +548,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
548
548
|
});
|
|
549
549
|
},
|
|
550
550
|
/**
|
|
551
|
-
* 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.
|
|
551
|
+
* 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.
|
|
552
552
|
* @summary Retrieve the partner
|
|
553
553
|
* @param {string} code Unique identifier for the object.
|
|
554
554
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -570,7 +570,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
570
570
|
});
|
|
571
571
|
},
|
|
572
572
|
/**
|
|
573
|
-
* 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.
|
|
573
|
+
* 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.
|
|
574
574
|
* @summary List partners
|
|
575
575
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
576
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -597,7 +597,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
597
597
|
});
|
|
598
598
|
},
|
|
599
599
|
/**
|
|
600
|
-
* 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.
|
|
600
|
+
* 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.
|
|
601
601
|
* @summary List grouped relations for partner
|
|
602
602
|
* @param {string} code
|
|
603
603
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -625,7 +625,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
625
625
|
});
|
|
626
626
|
},
|
|
627
627
|
/**
|
|
628
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
628
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
629
629
|
* @summary Update the partner
|
|
630
630
|
* @param {string} code
|
|
631
631
|
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
@@ -647,7 +647,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
647
647
|
});
|
|
648
648
|
},
|
|
649
649
|
/**
|
|
650
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
650
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
651
651
|
* @summary Update the partner
|
|
652
652
|
* @param {string} code Unique identifier for the object.
|
|
653
653
|
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
@@ -679,7 +679,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
679
679
|
var localVarFp = (0, exports.PartnersApiFp)(configuration);
|
|
680
680
|
return {
|
|
681
681
|
/**
|
|
682
|
-
* This will create a partner.
|
|
682
|
+
* This will create a partner.
|
|
683
683
|
* @summary Create the partner
|
|
684
684
|
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
685
685
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -690,7 +690,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
690
690
|
return localVarFp.createPartner(createPartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
691
691
|
},
|
|
692
692
|
/**
|
|
693
|
-
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
693
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
694
694
|
* @summary Delete the partner
|
|
695
695
|
* @param {string} code
|
|
696
696
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -701,7 +701,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
701
701
|
return localVarFp.deletePartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
702
702
|
},
|
|
703
703
|
/**
|
|
704
|
-
* 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.
|
|
704
|
+
* 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.
|
|
705
705
|
* @summary Retrieve the partner
|
|
706
706
|
* @param {string} code Unique identifier for the object.
|
|
707
707
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -713,7 +713,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
713
713
|
return localVarFp.getPartner(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
714
714
|
},
|
|
715
715
|
/**
|
|
716
|
-
* 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.
|
|
716
|
+
* 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.
|
|
717
717
|
* @summary List partners
|
|
718
718
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
719
719
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -730,7 +730,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
730
730
|
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
731
731
|
},
|
|
732
732
|
/**
|
|
733
|
-
* 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.
|
|
733
|
+
* 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.
|
|
734
734
|
* @summary List grouped relations for partner
|
|
735
735
|
* @param {string} code
|
|
736
736
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -748,7 +748,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
748
748
|
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
749
749
|
},
|
|
750
750
|
/**
|
|
751
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
751
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
752
752
|
* @summary Update the partner
|
|
753
753
|
* @param {string} code
|
|
754
754
|
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
@@ -760,7 +760,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
760
760
|
return localVarFp.tagPartner(code, tagPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
761
761
|
},
|
|
762
762
|
/**
|
|
763
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
763
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
764
764
|
* @summary Update the partner
|
|
765
765
|
* @param {string} code Unique identifier for the object.
|
|
766
766
|
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
@@ -786,7 +786,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
786
786
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
787
787
|
}
|
|
788
788
|
/**
|
|
789
|
-
* This will create a partner.
|
|
789
|
+
* This will create a partner.
|
|
790
790
|
* @summary Create the partner
|
|
791
791
|
* @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
|
|
792
792
|
* @param {*} [options] Override http request option.
|
|
@@ -798,7 +798,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
798
798
|
return (0, exports.PartnersApiFp)(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
799
799
|
};
|
|
800
800
|
/**
|
|
801
|
-
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
801
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
802
802
|
* @summary Delete the partner
|
|
803
803
|
* @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
|
|
804
804
|
* @param {*} [options] Override http request option.
|
|
@@ -810,7 +810,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
810
810
|
return (0, exports.PartnersApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
811
811
|
};
|
|
812
812
|
/**
|
|
813
|
-
* 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.
|
|
813
|
+
* 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.
|
|
814
814
|
* @summary Retrieve the partner
|
|
815
815
|
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
816
816
|
* @param {*} [options] Override http request option.
|
|
@@ -822,7 +822,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
822
822
|
return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
823
823
|
};
|
|
824
824
|
/**
|
|
825
|
-
* 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.
|
|
825
|
+
* 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.
|
|
826
826
|
* @summary List partners
|
|
827
827
|
* @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
828
828
|
* @param {*} [options] Override http request option.
|
|
@@ -835,7 +835,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
835
835
|
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); });
|
|
836
836
|
};
|
|
837
837
|
/**
|
|
838
|
-
* 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.
|
|
838
|
+
* 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.
|
|
839
839
|
* @summary List grouped relations for partner
|
|
840
840
|
* @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
|
|
841
841
|
* @param {*} [options] Override http request option.
|
|
@@ -847,7 +847,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
847
847
|
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); });
|
|
848
848
|
};
|
|
849
849
|
/**
|
|
850
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
850
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
851
851
|
* @summary Update the partner
|
|
852
852
|
* @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
|
|
853
853
|
* @param {*} [options] Override http request option.
|
|
@@ -859,7 +859,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
859
859
|
return (0, exports.PartnersApiFp)(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
860
860
|
};
|
|
861
861
|
/**
|
|
862
|
-
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
862
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
863
863
|
* @summary Update the partner
|
|
864
864
|
* @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
865
865
|
* @param {*} [options] Override http request option.
|
package/dist/common.js
CHANGED
|
@@ -140,7 +140,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
140
140
|
_b.label = 4;
|
|
141
141
|
case 4:
|
|
142
142
|
accessToken = _a;
|
|
143
|
-
object["Authorization"] =
|
|
143
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
144
144
|
_b.label = 5;
|
|
145
145
|
case 5: return [2 /*return*/];
|
|
146
146
|
}
|
|
@@ -170,7 +170,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
170
170
|
_b.label = 4;
|
|
171
171
|
case 4:
|
|
172
172
|
localVarAccessTokenValue = _a;
|
|
173
|
-
object["Authorization"] =
|
|
173
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
174
174
|
_b.label = 5;
|
|
175
175
|
case 5: return [2 /*return*/];
|
|
176
176
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -80,4 +80,10 @@ export declare class Configuration {
|
|
|
80
80
|
* @return True if the given MIME is JSON, false otherwise.
|
|
81
81
|
*/
|
|
82
82
|
isJsonMime(mime: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Returns "Bearer" token.
|
|
85
|
+
* @param token - access token.
|
|
86
|
+
* @return Bearer token.
|
|
87
|
+
*/
|
|
88
|
+
getBearerToken(token?: string): string;
|
|
83
89
|
}
|
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;
|