@emilgroup/partner-sdk 1.4.0 → 1.5.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -4
- package/README.md +2 -2
- package/api/{partners-api.ts → partner-api.ts} +90 -90
- package/api/partner-invitation-api.ts +165 -0
- package/api/{partner-relations-api.ts → partner-relation-api.ts} +95 -95
- package/api/{partner-tags-api.ts → partner-tag-api.ts} +70 -70
- package/api/{partner-types-api.ts → partner-type-api.ts} +68 -68
- package/api/partner-version-api.ts +4 -4
- package/api.ts +10 -8
- package/base.ts +3 -3
- package/dist/api/{partners-api.d.ts → partner-api.d.ts} +82 -82
- package/dist/api/{partners-api.js → partner-api.js} +56 -56
- package/dist/api/partner-invitation-api.d.ts +97 -0
- package/dist/api/partner-invitation-api.js +224 -0
- package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +86 -86
- package/dist/api/{partner-relations-api.js → partner-relation-api.js} +53 -53
- package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +63 -63
- package/dist/api/{partner-tags-api.js → partner-tag-api.js} +46 -46
- package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +61 -61
- package/dist/api/{partner-types-api.js → partner-type-api.js} +43 -43
- package/dist/api/partner-version-api.d.ts +4 -4
- package/dist/api/partner-version-api.js +3 -3
- package/dist/api.d.ts +5 -4
- package/dist/api.js +5 -4
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -2
- package/dist/models/create-partner-response-class.d.ts +7 -0
- package/dist/models/create-partner-type-response-class.d.ts +1 -1
- package/dist/models/get-partner-type-response-class.d.ts +1 -1
- package/dist/models/get-partner-version-response-class.d.ts +3 -3
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/invite-class.d.ts +79 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
- package/dist/models/invite-partner-to-eis-response-class.js +15 -0
- package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
- package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
- package/dist/models/list-partner-relation-class.d.ts +1 -1
- package/dist/models/list-partner-relation-types-class.d.ts +1 -1
- package/dist/models/list-partner-types-response-class.d.ts +1 -1
- package/dist/models/list-partner-versions-response-class.d.ts +7 -1
- package/dist/models/list-partners-response-class.d.ts +1 -1
- package/dist/models/partner-class.d.ts +24 -6
- package/dist/models/partner-relation-class.d.ts +12 -0
- package/dist/models/partner-relation-type-class.d.ts +12 -0
- package/dist/models/partner-type-class.d.ts +12 -0
- package/dist/models/permission-class.d.ts +72 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +73 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/tag-class.d.ts +12 -0
- package/dist/models/update-partner-type-response-class.d.ts +1 -1
- package/models/create-partner-response-class.ts +7 -0
- package/models/create-partner-type-response-class.ts +1 -1
- package/models/get-partner-type-response-class.ts +1 -1
- package/models/get-partner-version-response-class.ts +3 -3
- package/models/index.ts +5 -0
- package/models/invite-class.ts +85 -0
- package/models/invite-partner-to-eis-response-class.ts +31 -0
- package/models/invite-partner-to-eisrequest-dto.ts +48 -0
- package/models/list-partner-relation-class.ts +1 -1
- package/models/list-partner-relation-types-class.ts +1 -1
- package/models/list-partner-types-response-class.ts +1 -1
- package/models/list-partner-versions-response-class.ts +7 -1
- package/models/list-partners-response-class.ts +1 -1
- package/models/partner-class.ts +24 -6
- package/models/partner-relation-class.ts +12 -0
- package/models/partner-relation-type-class.ts +12 -0
- package/models/partner-type-class.ts +12 -0
- package/models/permission-class.ts +78 -0
- package/models/role-class.ts +79 -0
- package/models/tag-class.ts +12 -0
- package/models/update-partner-type-response-class.ts +1 -1
- package/package.json +1 -1
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.PartnerTypeApi = exports.PartnerTypeApiFactory = exports.PartnerTypeApiFp = exports.PartnerTypeApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,10 +86,10 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* PartnerTypeApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var PartnerTypeApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
@@ -190,7 +190,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
193
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
194
194
|
* @summary Retrieve the partner-types
|
|
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.
|
|
@@ -368,13 +368,13 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
368
368
|
},
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
|
-
exports.
|
|
371
|
+
exports.PartnerTypeApiAxiosParamCreator = PartnerTypeApiAxiosParamCreator;
|
|
372
372
|
/**
|
|
373
|
-
*
|
|
373
|
+
* PartnerTypeApi - functional programming interface
|
|
374
374
|
* @export
|
|
375
375
|
*/
|
|
376
|
-
var
|
|
377
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
376
|
+
var PartnerTypeApiFp = function (configuration) {
|
|
377
|
+
var localVarAxiosParamCreator = (0, exports.PartnerTypeApiAxiosParamCreator)(configuration);
|
|
378
378
|
return {
|
|
379
379
|
/**
|
|
380
380
|
* This will create a partner type.
|
|
@@ -419,7 +419,7 @@ var PartnerTypesApiFp = function (configuration) {
|
|
|
419
419
|
});
|
|
420
420
|
},
|
|
421
421
|
/**
|
|
422
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
422
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
423
423
|
* @summary Retrieve the partner-types
|
|
424
424
|
* @param {string} code Unique identifier for the object.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -491,13 +491,13 @@ var PartnerTypesApiFp = function (configuration) {
|
|
|
491
491
|
},
|
|
492
492
|
};
|
|
493
493
|
};
|
|
494
|
-
exports.
|
|
494
|
+
exports.PartnerTypeApiFp = PartnerTypeApiFp;
|
|
495
495
|
/**
|
|
496
|
-
*
|
|
496
|
+
* PartnerTypeApi - factory interface
|
|
497
497
|
* @export
|
|
498
498
|
*/
|
|
499
|
-
var
|
|
500
|
-
var localVarFp = (0, exports.
|
|
499
|
+
var PartnerTypeApiFactory = function (configuration, basePath, axios) {
|
|
500
|
+
var localVarFp = (0, exports.PartnerTypeApiFp)(configuration);
|
|
501
501
|
return {
|
|
502
502
|
/**
|
|
503
503
|
* This will create a partner type.
|
|
@@ -522,7 +522,7 @@ var PartnerTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
522
522
|
return localVarFp.deletePartnerType(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
523
|
},
|
|
524
524
|
/**
|
|
525
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
525
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
526
526
|
* @summary Retrieve the partner-types
|
|
527
527
|
* @param {string} code Unique identifier for the object.
|
|
528
528
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -564,79 +564,79 @@ var PartnerTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
564
564
|
},
|
|
565
565
|
};
|
|
566
566
|
};
|
|
567
|
-
exports.
|
|
567
|
+
exports.PartnerTypeApiFactory = PartnerTypeApiFactory;
|
|
568
568
|
/**
|
|
569
|
-
*
|
|
569
|
+
* PartnerTypeApi - object-oriented interface
|
|
570
570
|
* @export
|
|
571
|
-
* @class
|
|
571
|
+
* @class PartnerTypeApi
|
|
572
572
|
* @extends {BaseAPI}
|
|
573
573
|
*/
|
|
574
|
-
var
|
|
575
|
-
__extends(
|
|
576
|
-
function
|
|
574
|
+
var PartnerTypeApi = /** @class */ (function (_super) {
|
|
575
|
+
__extends(PartnerTypeApi, _super);
|
|
576
|
+
function PartnerTypeApi() {
|
|
577
577
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* This will create a partner type.
|
|
581
581
|
* @summary Create the partner-types
|
|
582
|
-
* @param {
|
|
582
|
+
* @param {PartnerTypeApiCreatePartnerTypeRequest} requestParameters Request parameters.
|
|
583
583
|
* @param {*} [options] Override http request option.
|
|
584
584
|
* @throws {RequiredError}
|
|
585
|
-
* @memberof
|
|
585
|
+
* @memberof PartnerTypeApi
|
|
586
586
|
*/
|
|
587
|
-
|
|
587
|
+
PartnerTypeApi.prototype.createPartnerType = function (requestParameters, options) {
|
|
588
588
|
var _this = this;
|
|
589
|
-
return (0, exports.
|
|
589
|
+
return (0, exports.PartnerTypeApiFp)(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
590
|
};
|
|
591
591
|
/**
|
|
592
592
|
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
593
593
|
* @summary Delete the partner-types
|
|
594
|
-
* @param {
|
|
594
|
+
* @param {PartnerTypeApiDeletePartnerTypeRequest} requestParameters Request parameters.
|
|
595
595
|
* @param {*} [options] Override http request option.
|
|
596
596
|
* @throws {RequiredError}
|
|
597
|
-
* @memberof
|
|
597
|
+
* @memberof PartnerTypeApi
|
|
598
598
|
*/
|
|
599
|
-
|
|
599
|
+
PartnerTypeApi.prototype.deletePartnerType = function (requestParameters, options) {
|
|
600
600
|
var _this = this;
|
|
601
|
-
return (0, exports.
|
|
601
|
+
return (0, exports.PartnerTypeApiFp)(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
602
|
};
|
|
603
603
|
/**
|
|
604
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
604
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
605
605
|
* @summary Retrieve the partner-types
|
|
606
|
-
* @param {
|
|
606
|
+
* @param {PartnerTypeApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
607
607
|
* @param {*} [options] Override http request option.
|
|
608
608
|
* @throws {RequiredError}
|
|
609
|
-
* @memberof
|
|
609
|
+
* @memberof PartnerTypeApi
|
|
610
610
|
*/
|
|
611
|
-
|
|
611
|
+
PartnerTypeApi.prototype.getPartnerType = function (requestParameters, options) {
|
|
612
612
|
var _this = this;
|
|
613
|
-
return (0, exports.
|
|
613
|
+
return (0, exports.PartnerTypeApiFp)(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
614
|
};
|
|
615
615
|
/**
|
|
616
616
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
617
617
|
* @summary List partner-types
|
|
618
|
-
* @param {
|
|
618
|
+
* @param {PartnerTypeApiListPartnerTypesRequest} requestParameters Request parameters.
|
|
619
619
|
* @param {*} [options] Override http request option.
|
|
620
620
|
* @throws {RequiredError}
|
|
621
|
-
* @memberof
|
|
621
|
+
* @memberof PartnerTypeApi
|
|
622
622
|
*/
|
|
623
|
-
|
|
623
|
+
PartnerTypeApi.prototype.listPartnerTypes = function (requestParameters, options) {
|
|
624
624
|
var _this = this;
|
|
625
625
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
626
|
-
return (0, exports.
|
|
626
|
+
return (0, exports.PartnerTypeApiFp)(this.configuration).listPartnerTypes(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); });
|
|
627
627
|
};
|
|
628
628
|
/**
|
|
629
629
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
630
630
|
* @summary Update the partner-types
|
|
631
|
-
* @param {
|
|
631
|
+
* @param {PartnerTypeApiUpdatePartnerTypeRequest} requestParameters Request parameters.
|
|
632
632
|
* @param {*} [options] Override http request option.
|
|
633
633
|
* @throws {RequiredError}
|
|
634
|
-
* @memberof
|
|
634
|
+
* @memberof PartnerTypeApi
|
|
635
635
|
*/
|
|
636
|
-
|
|
636
|
+
PartnerTypeApi.prototype.updatePartnerType = function (requestParameters, options) {
|
|
637
637
|
var _this = this;
|
|
638
|
-
return (0, exports.
|
|
638
|
+
return (0, exports.PartnerTypeApiFp)(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
639
639
|
};
|
|
640
|
-
return
|
|
640
|
+
return PartnerTypeApi;
|
|
641
641
|
}(base_1.BaseAPI));
|
|
642
|
-
exports.
|
|
642
|
+
exports.PartnerTypeApi = PartnerTypeApi;
|
|
@@ -39,7 +39,7 @@ export declare const PartnerVersionApiAxiosParamCreator: (configuration?: Config
|
|
|
39
39
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
40
40
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
41
41
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
42
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
42
|
+
* @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<i>
|
|
43
43
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
@@ -71,7 +71,7 @@ export declare const PartnerVersionApiFp: (configuration?: Configuration) => {
|
|
|
71
71
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
72
72
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
73
73
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
74
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
74
|
+
* @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<i>
|
|
75
75
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
76
76
|
* @param {*} [options] Override http request option.
|
|
77
77
|
* @throws {RequiredError}
|
|
@@ -103,7 +103,7 @@ export declare const PartnerVersionApiFactory: (configuration?: Configuration, b
|
|
|
103
103
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
104
104
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
105
105
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
106
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
106
|
+
* @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<i>
|
|
107
107
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
@@ -184,7 +184,7 @@ export interface PartnerVersionApiListPartnerVersionRequest {
|
|
|
184
184
|
*/
|
|
185
185
|
readonly order?: string;
|
|
186
186
|
/**
|
|
187
|
-
* Expand to fetch additional information about the list items.
|
|
187
|
+
* 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<i>
|
|
188
188
|
* @type {string}
|
|
189
189
|
* @memberof PartnerVersionApiListPartnerVersion
|
|
190
190
|
*/
|
|
@@ -154,7 +154,7 @@ var PartnerVersionApiAxiosParamCreator = function (configuration) {
|
|
|
154
154
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
155
155
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
156
156
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
157
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
157
|
+
* @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<i>
|
|
158
158
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
160
160
|
* @throws {RequiredError}
|
|
@@ -262,7 +262,7 @@ var PartnerVersionApiFp = function (configuration) {
|
|
|
262
262
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
263
263
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
264
264
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
265
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
265
|
+
* @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<i>
|
|
266
266
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
@@ -312,7 +312,7 @@ var PartnerVersionApiFactory = function (configuration, basePath, axios) {
|
|
|
312
312
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
313
313
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
314
314
|
* @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: displayName, createdAt, updatedAt, version</i>
|
|
315
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
315
|
+
* @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<i>
|
|
316
316
|
* @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: code, version, displayName, updatedAt, updatedBy</i>
|
|
317
317
|
* @param {*} [options] Override http request option.
|
|
318
318
|
* @throws {RequiredError}
|
package/dist/api.d.ts
CHANGED
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/default-api';
|
|
13
|
-
export * from './api/partner-
|
|
14
|
-
export * from './api/partner-
|
|
15
|
-
export * from './api/partner-
|
|
13
|
+
export * from './api/partner-api';
|
|
14
|
+
export * from './api/partner-invitation-api';
|
|
15
|
+
export * from './api/partner-relation-api';
|
|
16
|
+
export * from './api/partner-tag-api';
|
|
17
|
+
export * from './api/partner-type-api';
|
|
16
18
|
export * from './api/partner-version-api';
|
|
17
|
-
export * from './api/partners-api';
|
package/dist/api.js
CHANGED
|
@@ -28,8 +28,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/default-api"), exports);
|
|
31
|
-
__exportStar(require("./api/partner-
|
|
32
|
-
__exportStar(require("./api/partner-
|
|
33
|
-
__exportStar(require("./api/partner-
|
|
31
|
+
__exportStar(require("./api/partner-api"), exports);
|
|
32
|
+
__exportStar(require("./api/partner-invitation-api"), exports);
|
|
33
|
+
__exportStar(require("./api/partner-relation-api"), exports);
|
|
34
|
+
__exportStar(require("./api/partner-tag-api"), exports);
|
|
35
|
+
__exportStar(require("./api/partner-type-api"), exports);
|
|
34
36
|
__exportStar(require("./api/partner-version-api"), exports);
|
|
35
|
-
__exportStar(require("./api/partners-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
24
24
|
};
|
|
25
25
|
export interface LoginClass {
|
|
26
26
|
accessToken: string;
|
|
27
|
-
permissions:
|
|
27
|
+
permissions: string;
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
@@ -52,7 +52,7 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
-
private permissions
|
|
55
|
+
private permissions?;
|
|
56
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
57
57
|
selectEnvironment(env: Environment): void;
|
|
58
58
|
selectBasePath(path: string): void;
|
package/dist/base.js
CHANGED
|
@@ -121,7 +121,6 @@ var BaseAPI = /** @class */ (function () {
|
|
|
121
121
|
if (axios === void 0) { axios = axios_1.default; }
|
|
122
122
|
this.basePath = basePath;
|
|
123
123
|
this.axios = axios;
|
|
124
|
-
this.permissions = [];
|
|
125
124
|
this.loadTokenData();
|
|
126
125
|
if (configuration) {
|
|
127
126
|
this.configuration = configuration;
|
|
@@ -145,7 +144,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
145
144
|
this.configuration.basePath = path;
|
|
146
145
|
};
|
|
147
146
|
BaseAPI.prototype.getPermissions = function () {
|
|
148
|
-
return this.permissions;
|
|
147
|
+
return this.permissions.split(',');
|
|
149
148
|
};
|
|
150
149
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
151
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InviteClass } from './invite-class';
|
|
12
13
|
import { PartnerClass } from './partner-class';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -22,4 +23,10 @@ export interface CreatePartnerResponseClass {
|
|
|
22
23
|
* @memberof CreatePartnerResponseClass
|
|
23
24
|
*/
|
|
24
25
|
'partner': PartnerClass;
|
|
26
|
+
/**
|
|
27
|
+
* The invite response.
|
|
28
|
+
* @type {InviteClass}
|
|
29
|
+
* @memberof CreatePartnerResponseClass
|
|
30
|
+
*/
|
|
31
|
+
'invite': InviteClass;
|
|
25
32
|
}
|
|
@@ -17,7 +17,7 @@ import { PartnerTypeClass } from './partner-type-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreatePartnerTypeResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The partner type response.
|
|
21
21
|
* @type {PartnerTypeClass}
|
|
22
22
|
* @memberof CreatePartnerTypeResponseClass
|
|
23
23
|
*/
|
|
@@ -17,7 +17,7 @@ import { PartnerTypeClass } from './partner-type-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface GetPartnerTypeResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The partner type response.
|
|
21
21
|
* @type {PartnerTypeClass}
|
|
22
22
|
* @memberof GetPartnerTypeResponseClass
|
|
23
23
|
*/
|
|
@@ -17,9 +17,9 @@ import { PartnerClass } from './partner-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface GetPartnerVersionResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
21
|
-
* @type {
|
|
20
|
+
* The partner response.
|
|
21
|
+
* @type {PartnerClass}
|
|
22
22
|
* @memberof GetPartnerVersionResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'partnerVersion':
|
|
24
|
+
'partnerVersion': PartnerClass;
|
|
25
25
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export * from './get-partner-version-response-class';
|
|
|
15
15
|
export * from './get-tag-response-class';
|
|
16
16
|
export * from './inline-response200';
|
|
17
17
|
export * from './inline-response503';
|
|
18
|
+
export * from './invite-class';
|
|
19
|
+
export * from './invite-partner-to-eisrequest-dto';
|
|
20
|
+
export * from './invite-partner-to-eis-response-class';
|
|
18
21
|
export * from './list-partner-relation-class';
|
|
19
22
|
export * from './list-partner-relation-types-class';
|
|
20
23
|
export * from './list-partner-types-response-class';
|
|
@@ -25,6 +28,8 @@ export * from './partner-class';
|
|
|
25
28
|
export * from './partner-relation-class';
|
|
26
29
|
export * from './partner-relation-type-class';
|
|
27
30
|
export * from './partner-type-class';
|
|
31
|
+
export * from './permission-class';
|
|
32
|
+
export * from './role-class';
|
|
28
33
|
export * from './tag-class';
|
|
29
34
|
export * from './tag-partner-request-dto-rest';
|
|
30
35
|
export * from './update-partner-relation-request-dto-rest';
|
package/dist/models/index.js
CHANGED
|
@@ -31,6 +31,9 @@ __exportStar(require("./get-partner-version-response-class"), exports);
|
|
|
31
31
|
__exportStar(require("./get-tag-response-class"), exports);
|
|
32
32
|
__exportStar(require("./inline-response200"), exports);
|
|
33
33
|
__exportStar(require("./inline-response503"), exports);
|
|
34
|
+
__exportStar(require("./invite-class"), exports);
|
|
35
|
+
__exportStar(require("./invite-partner-to-eisrequest-dto"), exports);
|
|
36
|
+
__exportStar(require("./invite-partner-to-eis-response-class"), exports);
|
|
34
37
|
__exportStar(require("./list-partner-relation-class"), exports);
|
|
35
38
|
__exportStar(require("./list-partner-relation-types-class"), exports);
|
|
36
39
|
__exportStar(require("./list-partner-types-response-class"), exports);
|
|
@@ -41,6 +44,8 @@ __exportStar(require("./partner-class"), exports);
|
|
|
41
44
|
__exportStar(require("./partner-relation-class"), exports);
|
|
42
45
|
__exportStar(require("./partner-relation-type-class"), exports);
|
|
43
46
|
__exportStar(require("./partner-type-class"), exports);
|
|
47
|
+
__exportStar(require("./permission-class"), exports);
|
|
48
|
+
__exportStar(require("./role-class"), exports);
|
|
44
49
|
__exportStar(require("./tag-class"), exports);
|
|
45
50
|
__exportStar(require("./tag-partner-request-dto-rest"), exports);
|
|
46
51
|
__exportStar(require("./update-partner-relation-request-dto-rest"), exports);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { RoleClass } from './role-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InviteClass
|
|
17
|
+
*/
|
|
18
|
+
export interface InviteClass {
|
|
19
|
+
/**
|
|
20
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof InviteClass
|
|
23
|
+
*/
|
|
24
|
+
'id': number;
|
|
25
|
+
/**
|
|
26
|
+
* User email address.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof InviteClass
|
|
29
|
+
*/
|
|
30
|
+
'email': string;
|
|
31
|
+
/**
|
|
32
|
+
* Roles associated with the invite.
|
|
33
|
+
* @type {Array<RoleClass>}
|
|
34
|
+
* @memberof InviteClass
|
|
35
|
+
*/
|
|
36
|
+
'roles': Array<RoleClass>;
|
|
37
|
+
/**
|
|
38
|
+
* Expiry date of invitation email.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof InviteClass
|
|
41
|
+
*/
|
|
42
|
+
'expiresOn': string;
|
|
43
|
+
/**
|
|
44
|
+
* Time at which the object was created.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof InviteClass
|
|
47
|
+
*/
|
|
48
|
+
'createdAt': string;
|
|
49
|
+
/**
|
|
50
|
+
* Time at which the object was updated.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof InviteClass
|
|
53
|
+
*/
|
|
54
|
+
'updatedAt': string;
|
|
55
|
+
/**
|
|
56
|
+
* Identifier of the user who created the record.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof InviteClass
|
|
59
|
+
*/
|
|
60
|
+
'createdBy': string;
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the user who last updated the record.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof InviteClass
|
|
65
|
+
*/
|
|
66
|
+
'updatedBy': string;
|
|
67
|
+
/**
|
|
68
|
+
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof InviteClass
|
|
71
|
+
*/
|
|
72
|
+
'ern': string;
|
|
73
|
+
/**
|
|
74
|
+
* Optional metadata associated with the invite - useful for passing data to the front end for custom logic.
|
|
75
|
+
* @type {object}
|
|
76
|
+
* @memberof InviteClass
|
|
77
|
+
*/
|
|
78
|
+
'metadata': object;
|
|
79
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { InviteClass } from './invite-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InvitePartnerToEisResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface InvitePartnerToEisResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The invite response.
|
|
21
|
+
* @type {InviteClass}
|
|
22
|
+
* @memberof InvitePartnerToEisResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invite': InviteClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvitePartnerToEISRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface InvitePartnerToEISRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The code of the partner that will be invited to EIS .
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvitePartnerToEISRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'partnerCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* The email address of the partner to be invited to the EIS platform.This email address will be used to send the invitation link to the partner.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvitePartnerToEISRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'signupEmail': string;
|
|
30
|
+
/**
|
|
31
|
+
* The partner will be invited to the given organization id in the EIS platform.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof InvitePartnerToEISRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'organizationId': number;
|
|
36
|
+
/**
|
|
37
|
+
* After signing up the invited partner will have the provided roles.
|
|
38
|
+
* @type {Array<number>}
|
|
39
|
+
* @memberof InvitePartnerToEISRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'roleIds': Array<number>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|