@emilgroup/partner-sdk-node 1.7.0 → 1.8.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 +6 -6
- package/README.md +2 -2
- package/api/{partner-invitation-api.ts → partner-invitations-api.ts} +20 -20
- package/api/{partner-relation-api.ts → partner-relations-api.ts} +87 -87
- package/api/{partner-tag-api.ts → partner-tags-api.ts} +62 -62
- package/api/{partner-type-api.ts → partner-types-api.ts} +64 -64
- package/api/{partner-version-api.ts → partner-versions-api.ts} +37 -37
- package/api/{partner-api.ts → partners-api.ts} +74 -74
- package/api.ts +12 -12
- package/dist/api/{partner-invitation-api.d.ts → partner-invitations-api.d.ts} +17 -17
- package/dist/api/{partner-invitation-api.js → partner-invitations-api.js} +23 -23
- package/dist/api/{partner-relation-api.d.ts → partner-relations-api.d.ts} +78 -78
- package/dist/api/{partner-relation-api.js → partner-relations-api.js} +47 -47
- package/dist/api/{partner-tag-api.d.ts → partner-tags-api.d.ts} +55 -55
- package/dist/api/{partner-tag-api.js → partner-tags-api.js} +39 -39
- package/dist/api/{partner-type-api.d.ts → partner-types-api.d.ts} +57 -57
- package/dist/api/{partner-type-api.js → partner-types-api.js} +39 -39
- package/dist/api/{partner-version-api.d.ts → partner-versions-api.d.ts} +33 -33
- package/dist/api/{partner-version-api.js → partner-versions-api.js} +27 -27
- package/dist/api/{partner-api.d.ts → partners-api.d.ts} +66 -66
- package/dist/api/{partner-api.js → partners-api.js} +43 -43
- package/dist/api.d.ts +6 -6
- package/dist/api.js +6 -6
- 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.PartnerRelationsApi = exports.PartnerRelationsApiFactory = exports.PartnerRelationsApiFp = exports.PartnerRelationsApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,10 +90,10 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerRelationsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PartnerRelationsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -488,13 +488,13 @@ var PartnerRelationApiAxiosParamCreator = function (configuration) {
|
|
|
488
488
|
},
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
|
-
exports.
|
|
491
|
+
exports.PartnerRelationsApiAxiosParamCreator = PartnerRelationsApiAxiosParamCreator;
|
|
492
492
|
/**
|
|
493
|
-
*
|
|
493
|
+
* PartnerRelationsApi - functional programming interface
|
|
494
494
|
* @export
|
|
495
495
|
*/
|
|
496
|
-
var
|
|
497
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
496
|
+
var PartnerRelationsApiFp = function (configuration) {
|
|
497
|
+
var localVarAxiosParamCreator = (0, exports.PartnerRelationsApiAxiosParamCreator)(configuration);
|
|
498
498
|
return {
|
|
499
499
|
/**
|
|
500
500
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -658,13 +658,13 @@ var PartnerRelationApiFp = function (configuration) {
|
|
|
658
658
|
},
|
|
659
659
|
};
|
|
660
660
|
};
|
|
661
|
-
exports.
|
|
661
|
+
exports.PartnerRelationsApiFp = PartnerRelationsApiFp;
|
|
662
662
|
/**
|
|
663
|
-
*
|
|
663
|
+
* PartnerRelationsApi - factory interface
|
|
664
664
|
* @export
|
|
665
665
|
*/
|
|
666
|
-
var
|
|
667
|
-
var localVarFp = (0, exports.
|
|
666
|
+
var PartnerRelationsApiFactory = function (configuration, basePath, axios) {
|
|
667
|
+
var localVarFp = (0, exports.PartnerRelationsApiFp)(configuration);
|
|
668
668
|
return {
|
|
669
669
|
/**
|
|
670
670
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -758,104 +758,104 @@ var PartnerRelationApiFactory = function (configuration, basePath, axios) {
|
|
|
758
758
|
},
|
|
759
759
|
};
|
|
760
760
|
};
|
|
761
|
-
exports.
|
|
761
|
+
exports.PartnerRelationsApiFactory = PartnerRelationsApiFactory;
|
|
762
762
|
/**
|
|
763
|
-
*
|
|
763
|
+
* PartnerRelationsApi - object-oriented interface
|
|
764
764
|
* @export
|
|
765
|
-
* @class
|
|
765
|
+
* @class PartnerRelationsApi
|
|
766
766
|
* @extends {BaseAPI}
|
|
767
767
|
*/
|
|
768
|
-
var
|
|
769
|
-
__extends(
|
|
770
|
-
function
|
|
768
|
+
var PartnerRelationsApi = /** @class */ (function (_super) {
|
|
769
|
+
__extends(PartnerRelationsApi, _super);
|
|
770
|
+
function PartnerRelationsApi() {
|
|
771
771
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
775
775
|
* @summary Create the partner relation
|
|
776
|
-
* @param {
|
|
776
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
777
777
|
* @param {*} [options] Override http request option.
|
|
778
778
|
* @throws {RequiredError}
|
|
779
|
-
* @memberof
|
|
779
|
+
* @memberof PartnerRelationsApi
|
|
780
780
|
*/
|
|
781
|
-
|
|
781
|
+
PartnerRelationsApi.prototype.createPartnerRelation = function (requestParameters, options) {
|
|
782
782
|
var _this = this;
|
|
783
|
-
return (0, exports.
|
|
783
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).createPartnerRelation(requestParameters.createPartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
784
784
|
};
|
|
785
785
|
/**
|
|
786
786
|
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
787
787
|
* @summary Delete the partner-relation
|
|
788
|
-
* @param {
|
|
788
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
789
789
|
* @param {*} [options] Override http request option.
|
|
790
790
|
* @throws {RequiredError}
|
|
791
|
-
* @memberof
|
|
791
|
+
* @memberof PartnerRelationsApi
|
|
792
792
|
*/
|
|
793
|
-
|
|
793
|
+
PartnerRelationsApi.prototype.deletePartnerRelation = function (requestParameters, options) {
|
|
794
794
|
var _this = this;
|
|
795
|
-
return (0, exports.
|
|
795
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).deletePartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
796
796
|
};
|
|
797
797
|
/**
|
|
798
798
|
* Retrieve a single partner relation identified by its id
|
|
799
799
|
* @summary Retrieve the partner relation
|
|
800
|
-
* @param {
|
|
800
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
801
801
|
* @param {*} [options] Override http request option.
|
|
802
802
|
* @throws {RequiredError}
|
|
803
|
-
* @memberof
|
|
803
|
+
* @memberof PartnerRelationsApi
|
|
804
804
|
*/
|
|
805
|
-
|
|
805
|
+
PartnerRelationsApi.prototype.getPartnerRelation = function (requestParameters, options) {
|
|
806
806
|
var _this = this;
|
|
807
|
-
return (0, exports.
|
|
807
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
808
808
|
};
|
|
809
809
|
/**
|
|
810
810
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
811
811
|
* @summary Retrieve the partner relation type
|
|
812
|
-
* @param {
|
|
812
|
+
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
813
813
|
* @param {*} [options] Override http request option.
|
|
814
814
|
* @throws {RequiredError}
|
|
815
|
-
* @memberof
|
|
815
|
+
* @memberof PartnerRelationsApi
|
|
816
816
|
*/
|
|
817
|
-
|
|
817
|
+
PartnerRelationsApi.prototype.getPartnerRelationType = function (requestParameters, options) {
|
|
818
818
|
var _this = this;
|
|
819
|
-
return (0, exports.
|
|
819
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
820
820
|
};
|
|
821
821
|
/**
|
|
822
822
|
* List all partner relation types - is used to create partner relations
|
|
823
823
|
* @summary List partner relation types
|
|
824
|
-
* @param {
|
|
824
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
825
825
|
* @param {*} [options] Override http request option.
|
|
826
826
|
* @throws {RequiredError}
|
|
827
|
-
* @memberof
|
|
827
|
+
* @memberof PartnerRelationsApi
|
|
828
828
|
*/
|
|
829
|
-
|
|
829
|
+
PartnerRelationsApi.prototype.listPartnerRelationTypes = function (requestParameters, options) {
|
|
830
830
|
var _this = this;
|
|
831
831
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
832
|
-
return (0, exports.
|
|
832
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelationTypes(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); });
|
|
833
833
|
};
|
|
834
834
|
/**
|
|
835
835
|
* List all partner relations
|
|
836
836
|
* @summary List partner relations
|
|
837
|
-
* @param {
|
|
837
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
838
838
|
* @param {*} [options] Override http request option.
|
|
839
839
|
* @throws {RequiredError}
|
|
840
|
-
* @memberof
|
|
840
|
+
* @memberof PartnerRelationsApi
|
|
841
841
|
*/
|
|
842
|
-
|
|
842
|
+
PartnerRelationsApi.prototype.listPartnerRelations = function (requestParameters, options) {
|
|
843
843
|
var _this = this;
|
|
844
844
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
845
|
-
return (0, exports.
|
|
845
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelations(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); });
|
|
846
846
|
};
|
|
847
847
|
/**
|
|
848
848
|
* Update a partner relation identified by its id
|
|
849
849
|
* @summary Update the partner relation
|
|
850
|
-
* @param {
|
|
850
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
851
851
|
* @param {*} [options] Override http request option.
|
|
852
852
|
* @throws {RequiredError}
|
|
853
|
-
* @memberof
|
|
853
|
+
* @memberof PartnerRelationsApi
|
|
854
854
|
*/
|
|
855
|
-
|
|
855
|
+
PartnerRelationsApi.prototype.updatePartnerRelation = function (requestParameters, options) {
|
|
856
856
|
var _this = this;
|
|
857
|
-
return (0, exports.
|
|
857
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).updatePartnerRelation(requestParameters.id, requestParameters.updatePartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
858
858
|
};
|
|
859
|
-
return
|
|
859
|
+
return PartnerRelationsApi;
|
|
860
860
|
}(base_1.BaseAPI));
|
|
861
|
-
exports.
|
|
861
|
+
exports.PartnerRelationsApi = PartnerRelationsApi;
|
|
@@ -19,10 +19,10 @@ import { GetTagResponseClass } from '../models';
|
|
|
19
19
|
import { ListTagsResponseClass } from '../models';
|
|
20
20
|
import { UpdateTagResponseClass } from '../models';
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* PartnerTagsApi - axios parameter creator
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const PartnerTagsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
26
|
/**
|
|
27
27
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
28
28
|
* @summary Create the partner tag
|
|
@@ -76,10 +76,10 @@ export declare const PartnerTagApiAxiosParamCreator: (configuration?: Configurat
|
|
|
76
76
|
updateTag: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* PartnerTagsApi - functional programming interface
|
|
80
80
|
* @export
|
|
81
81
|
*/
|
|
82
|
-
export declare const
|
|
82
|
+
export declare const PartnerTagsApiFp: (configuration?: Configuration) => {
|
|
83
83
|
/**
|
|
84
84
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
85
85
|
* @summary Create the partner tag
|
|
@@ -133,10 +133,10 @@ export declare const PartnerTagApiFp: (configuration?: Configuration) => {
|
|
|
133
133
|
updateTag(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateTagResponseClass>>;
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* PartnerTagsApi - factory interface
|
|
137
137
|
* @export
|
|
138
138
|
*/
|
|
139
|
-
export declare const
|
|
139
|
+
export declare const PartnerTagsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
140
140
|
/**
|
|
141
141
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
142
142
|
* @summary Create the partner tag
|
|
@@ -190,186 +190,186 @@ export declare const PartnerTagApiFactory: (configuration?: Configuration, baseP
|
|
|
190
190
|
updateTag(code: string, authorization?: string, options?: any): AxiosPromise<UpdateTagResponseClass>;
|
|
191
191
|
};
|
|
192
192
|
/**
|
|
193
|
-
* Request parameters for createTag operation in
|
|
193
|
+
* Request parameters for createTag operation in PartnerTagsApi.
|
|
194
194
|
* @export
|
|
195
|
-
* @interface
|
|
195
|
+
* @interface PartnerTagsApiCreateTagRequest
|
|
196
196
|
*/
|
|
197
|
-
export interface
|
|
197
|
+
export interface PartnerTagsApiCreateTagRequest {
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* @type {CreateTagRequestDto}
|
|
201
|
-
* @memberof
|
|
201
|
+
* @memberof PartnerTagsApiCreateTag
|
|
202
202
|
*/
|
|
203
203
|
readonly createTagRequestDto: CreateTagRequestDto;
|
|
204
204
|
/**
|
|
205
205
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
206
|
* @type {string}
|
|
207
|
-
* @memberof
|
|
207
|
+
* @memberof PartnerTagsApiCreateTag
|
|
208
208
|
*/
|
|
209
209
|
readonly authorization?: string;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
* Request parameters for deleteTag operation in
|
|
212
|
+
* Request parameters for deleteTag operation in PartnerTagsApi.
|
|
213
213
|
* @export
|
|
214
|
-
* @interface
|
|
214
|
+
* @interface PartnerTagsApiDeleteTagRequest
|
|
215
215
|
*/
|
|
216
|
-
export interface
|
|
216
|
+
export interface PartnerTagsApiDeleteTagRequest {
|
|
217
217
|
/**
|
|
218
218
|
*
|
|
219
219
|
* @type {string}
|
|
220
|
-
* @memberof
|
|
220
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
221
221
|
*/
|
|
222
222
|
readonly code: string;
|
|
223
223
|
/**
|
|
224
224
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
225
225
|
* @type {string}
|
|
226
|
-
* @memberof
|
|
226
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
227
227
|
*/
|
|
228
228
|
readonly authorization?: string;
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
|
-
* Request parameters for getTag operation in
|
|
231
|
+
* Request parameters for getTag operation in PartnerTagsApi.
|
|
232
232
|
* @export
|
|
233
|
-
* @interface
|
|
233
|
+
* @interface PartnerTagsApiGetTagRequest
|
|
234
234
|
*/
|
|
235
|
-
export interface
|
|
235
|
+
export interface PartnerTagsApiGetTagRequest {
|
|
236
236
|
/**
|
|
237
237
|
* Unique identifier for the object.
|
|
238
238
|
* @type {string}
|
|
239
|
-
* @memberof
|
|
239
|
+
* @memberof PartnerTagsApiGetTag
|
|
240
240
|
*/
|
|
241
241
|
readonly code: string;
|
|
242
242
|
/**
|
|
243
243
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
244
|
* @type {string}
|
|
245
|
-
* @memberof
|
|
245
|
+
* @memberof PartnerTagsApiGetTag
|
|
246
246
|
*/
|
|
247
247
|
readonly authorization?: string;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* Request parameters for listTags operation in
|
|
250
|
+
* Request parameters for listTags operation in PartnerTagsApi.
|
|
251
251
|
* @export
|
|
252
|
-
* @interface
|
|
252
|
+
* @interface PartnerTagsApiListTagsRequest
|
|
253
253
|
*/
|
|
254
|
-
export interface
|
|
254
|
+
export interface PartnerTagsApiListTagsRequest {
|
|
255
255
|
/**
|
|
256
256
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @type {string}
|
|
258
|
-
* @memberof
|
|
258
|
+
* @memberof PartnerTagsApiListTags
|
|
259
259
|
*/
|
|
260
260
|
readonly authorization?: string;
|
|
261
261
|
/**
|
|
262
262
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
263
263
|
* @type {any}
|
|
264
|
-
* @memberof
|
|
264
|
+
* @memberof PartnerTagsApiListTags
|
|
265
265
|
*/
|
|
266
266
|
readonly pageSize?: any;
|
|
267
267
|
/**
|
|
268
268
|
* 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.
|
|
269
269
|
* @type {any}
|
|
270
|
-
* @memberof
|
|
270
|
+
* @memberof PartnerTagsApiListTags
|
|
271
271
|
*/
|
|
272
272
|
readonly pageToken?: any;
|
|
273
273
|
/**
|
|
274
274
|
* 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, slug, label</i>
|
|
275
275
|
* @type {string}
|
|
276
|
-
* @memberof
|
|
276
|
+
* @memberof PartnerTagsApiListTags
|
|
277
277
|
*/
|
|
278
278
|
readonly filter?: string;
|
|
279
279
|
/**
|
|
280
280
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
281
281
|
* @type {any}
|
|
282
|
-
* @memberof
|
|
282
|
+
* @memberof PartnerTagsApiListTags
|
|
283
283
|
*/
|
|
284
284
|
readonly search?: any;
|
|
285
285
|
/**
|
|
286
286
|
* 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: code, slug, label, createdAt, updatedAt</i>
|
|
287
287
|
* @type {string}
|
|
288
|
-
* @memberof
|
|
288
|
+
* @memberof PartnerTagsApiListTags
|
|
289
289
|
*/
|
|
290
290
|
readonly order?: string;
|
|
291
291
|
/**
|
|
292
292
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
293
293
|
* @type {string}
|
|
294
|
-
* @memberof
|
|
294
|
+
* @memberof PartnerTagsApiListTags
|
|
295
295
|
*/
|
|
296
296
|
readonly expand?: string;
|
|
297
297
|
/**
|
|
298
298
|
* 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, slug, label</i>
|
|
299
299
|
* @type {string}
|
|
300
|
-
* @memberof
|
|
300
|
+
* @memberof PartnerTagsApiListTags
|
|
301
301
|
*/
|
|
302
302
|
readonly filters?: string;
|
|
303
303
|
}
|
|
304
304
|
/**
|
|
305
|
-
* Request parameters for updateTag operation in
|
|
305
|
+
* Request parameters for updateTag operation in PartnerTagsApi.
|
|
306
306
|
* @export
|
|
307
|
-
* @interface
|
|
307
|
+
* @interface PartnerTagsApiUpdateTagRequest
|
|
308
308
|
*/
|
|
309
|
-
export interface
|
|
309
|
+
export interface PartnerTagsApiUpdateTagRequest {
|
|
310
310
|
/**
|
|
311
311
|
*
|
|
312
312
|
* @type {string}
|
|
313
|
-
* @memberof
|
|
313
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
314
314
|
*/
|
|
315
315
|
readonly code: string;
|
|
316
316
|
/**
|
|
317
317
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
318
318
|
* @type {string}
|
|
319
|
-
* @memberof
|
|
319
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
320
320
|
*/
|
|
321
321
|
readonly authorization?: string;
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
*
|
|
324
|
+
* PartnerTagsApi - object-oriented interface
|
|
325
325
|
* @export
|
|
326
|
-
* @class
|
|
326
|
+
* @class PartnerTagsApi
|
|
327
327
|
* @extends {BaseAPI}
|
|
328
328
|
*/
|
|
329
|
-
export declare class
|
|
329
|
+
export declare class PartnerTagsApi extends BaseAPI {
|
|
330
330
|
/**
|
|
331
331
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
332
332
|
* @summary Create the partner tag
|
|
333
|
-
* @param {
|
|
333
|
+
* @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
|
|
334
334
|
* @param {*} [options] Override http request option.
|
|
335
335
|
* @throws {RequiredError}
|
|
336
|
-
* @memberof
|
|
336
|
+
* @memberof PartnerTagsApi
|
|
337
337
|
*/
|
|
338
|
-
createTag(requestParameters:
|
|
338
|
+
createTag(requestParameters: PartnerTagsApiCreateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTagResponseClass, any>>;
|
|
339
339
|
/**
|
|
340
340
|
* Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
|
|
341
341
|
* @summary Delete the partner tag
|
|
342
|
-
* @param {
|
|
342
|
+
* @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
|
|
343
343
|
* @param {*} [options] Override http request option.
|
|
344
344
|
* @throws {RequiredError}
|
|
345
|
-
* @memberof
|
|
345
|
+
* @memberof PartnerTagsApi
|
|
346
346
|
*/
|
|
347
|
-
deleteTag(requestParameters:
|
|
347
|
+
deleteTag(requestParameters: PartnerTagsApiDeleteTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
348
348
|
/**
|
|
349
349
|
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
|
|
350
350
|
* @summary Retrieve the partner tag
|
|
351
|
-
* @param {
|
|
351
|
+
* @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
|
|
352
352
|
* @param {*} [options] Override http request option.
|
|
353
353
|
* @throws {RequiredError}
|
|
354
|
-
* @memberof
|
|
354
|
+
* @memberof PartnerTagsApi
|
|
355
355
|
*/
|
|
356
|
-
getTag(requestParameters:
|
|
356
|
+
getTag(requestParameters: PartnerTagsApiGetTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTagResponseClass, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
359
359
|
* @summary List partner tags
|
|
360
|
-
* @param {
|
|
360
|
+
* @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
|
|
361
361
|
* @param {*} [options] Override http request option.
|
|
362
362
|
* @throws {RequiredError}
|
|
363
|
-
* @memberof
|
|
363
|
+
* @memberof PartnerTagsApi
|
|
364
364
|
*/
|
|
365
|
-
listTags(requestParameters?:
|
|
365
|
+
listTags(requestParameters?: PartnerTagsApiListTagsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTagsResponseClass, any>>;
|
|
366
366
|
/**
|
|
367
367
|
* Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
368
368
|
* @summary Update the partner tag
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
372
|
-
* @memberof
|
|
372
|
+
* @memberof PartnerTagsApi
|
|
373
373
|
*/
|
|
374
|
-
updateTag(requestParameters:
|
|
374
|
+
updateTag(requestParameters: PartnerTagsApiUpdateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateTagResponseClass, any>>;
|
|
375
375
|
}
|
|
@@ -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.PartnerTagsApi = exports.PartnerTagsApiFactory = exports.PartnerTagsApiFp = exports.PartnerTagsApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,10 +90,10 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerTagsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -363,13 +363,13 @@ var PartnerTagApiAxiosParamCreator = function (configuration) {
|
|
|
363
363
|
},
|
|
364
364
|
};
|
|
365
365
|
};
|
|
366
|
-
exports.
|
|
366
|
+
exports.PartnerTagsApiAxiosParamCreator = PartnerTagsApiAxiosParamCreator;
|
|
367
367
|
/**
|
|
368
|
-
*
|
|
368
|
+
* PartnerTagsApi - functional programming interface
|
|
369
369
|
* @export
|
|
370
370
|
*/
|
|
371
|
-
var
|
|
372
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
371
|
+
var PartnerTagsApiFp = function (configuration) {
|
|
372
|
+
var localVarAxiosParamCreator = (0, exports.PartnerTagsApiAxiosParamCreator)(configuration);
|
|
373
373
|
return {
|
|
374
374
|
/**
|
|
375
375
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
@@ -484,13 +484,13 @@ var PartnerTagApiFp = function (configuration) {
|
|
|
484
484
|
},
|
|
485
485
|
};
|
|
486
486
|
};
|
|
487
|
-
exports.
|
|
487
|
+
exports.PartnerTagsApiFp = PartnerTagsApiFp;
|
|
488
488
|
/**
|
|
489
|
-
*
|
|
489
|
+
* PartnerTagsApi - factory interface
|
|
490
490
|
* @export
|
|
491
491
|
*/
|
|
492
|
-
var
|
|
493
|
-
var localVarFp = (0, exports.
|
|
492
|
+
var PartnerTagsApiFactory = function (configuration, basePath, axios) {
|
|
493
|
+
var localVarFp = (0, exports.PartnerTagsApiFp)(configuration);
|
|
494
494
|
return {
|
|
495
495
|
/**
|
|
496
496
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
@@ -555,79 +555,79 @@ var PartnerTagApiFactory = function (configuration, basePath, axios) {
|
|
|
555
555
|
},
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
exports.
|
|
558
|
+
exports.PartnerTagsApiFactory = PartnerTagsApiFactory;
|
|
559
559
|
/**
|
|
560
|
-
*
|
|
560
|
+
* PartnerTagsApi - object-oriented interface
|
|
561
561
|
* @export
|
|
562
|
-
* @class
|
|
562
|
+
* @class PartnerTagsApi
|
|
563
563
|
* @extends {BaseAPI}
|
|
564
564
|
*/
|
|
565
|
-
var
|
|
566
|
-
__extends(
|
|
567
|
-
function
|
|
565
|
+
var PartnerTagsApi = /** @class */ (function (_super) {
|
|
566
|
+
__extends(PartnerTagsApi, _super);
|
|
567
|
+
function PartnerTagsApi() {
|
|
568
568
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
571
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
572
572
|
* @summary Create the partner tag
|
|
573
|
-
* @param {
|
|
573
|
+
* @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
|
|
574
574
|
* @param {*} [options] Override http request option.
|
|
575
575
|
* @throws {RequiredError}
|
|
576
|
-
* @memberof
|
|
576
|
+
* @memberof PartnerTagsApi
|
|
577
577
|
*/
|
|
578
|
-
|
|
578
|
+
PartnerTagsApi.prototype.createTag = function (requestParameters, options) {
|
|
579
579
|
var _this = this;
|
|
580
|
-
return (0, exports.
|
|
580
|
+
return (0, exports.PartnerTagsApiFp)(this.configuration).createTag(requestParameters.createTagRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
581
581
|
};
|
|
582
582
|
/**
|
|
583
583
|
* Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
|
|
584
584
|
* @summary Delete the partner tag
|
|
585
|
-
* @param {
|
|
585
|
+
* @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
|
|
586
586
|
* @param {*} [options] Override http request option.
|
|
587
587
|
* @throws {RequiredError}
|
|
588
|
-
* @memberof
|
|
588
|
+
* @memberof PartnerTagsApi
|
|
589
589
|
*/
|
|
590
|
-
|
|
590
|
+
PartnerTagsApi.prototype.deleteTag = function (requestParameters, options) {
|
|
591
591
|
var _this = this;
|
|
592
|
-
return (0, exports.
|
|
592
|
+
return (0, exports.PartnerTagsApiFp)(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
593
593
|
};
|
|
594
594
|
/**
|
|
595
595
|
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
|
|
596
596
|
* @summary Retrieve the partner tag
|
|
597
|
-
* @param {
|
|
597
|
+
* @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
|
|
598
598
|
* @param {*} [options] Override http request option.
|
|
599
599
|
* @throws {RequiredError}
|
|
600
|
-
* @memberof
|
|
600
|
+
* @memberof PartnerTagsApi
|
|
601
601
|
*/
|
|
602
|
-
|
|
602
|
+
PartnerTagsApi.prototype.getTag = function (requestParameters, options) {
|
|
603
603
|
var _this = this;
|
|
604
|
-
return (0, exports.
|
|
604
|
+
return (0, exports.PartnerTagsApiFp)(this.configuration).getTag(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
605
605
|
};
|
|
606
606
|
/**
|
|
607
607
|
* Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
608
608
|
* @summary List partner tags
|
|
609
|
-
* @param {
|
|
609
|
+
* @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
|
|
610
610
|
* @param {*} [options] Override http request option.
|
|
611
611
|
* @throws {RequiredError}
|
|
612
|
-
* @memberof
|
|
612
|
+
* @memberof PartnerTagsApi
|
|
613
613
|
*/
|
|
614
|
-
|
|
614
|
+
PartnerTagsApi.prototype.listTags = function (requestParameters, options) {
|
|
615
615
|
var _this = this;
|
|
616
616
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
617
|
-
return (0, exports.
|
|
617
|
+
return (0, exports.PartnerTagsApiFp)(this.configuration).listTags(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); });
|
|
618
618
|
};
|
|
619
619
|
/**
|
|
620
620
|
* Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
621
621
|
* @summary Update the partner tag
|
|
622
|
-
* @param {
|
|
622
|
+
* @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
|
|
623
623
|
* @param {*} [options] Override http request option.
|
|
624
624
|
* @throws {RequiredError}
|
|
625
|
-
* @memberof
|
|
625
|
+
* @memberof PartnerTagsApi
|
|
626
626
|
*/
|
|
627
|
-
|
|
627
|
+
PartnerTagsApi.prototype.updateTag = function (requestParameters, options) {
|
|
628
628
|
var _this = this;
|
|
629
|
-
return (0, exports.
|
|
629
|
+
return (0, exports.PartnerTagsApiFp)(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
630
630
|
};
|
|
631
|
-
return
|
|
631
|
+
return PartnerTagsApi;
|
|
632
632
|
}(base_1.BaseAPI));
|
|
633
|
-
exports.
|
|
633
|
+
exports.PartnerTagsApi = PartnerTagsApi;
|