@emilgroup/partner-sdk-node 1.3.1-beta.1 → 1.4.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 +1 -0
- package/README.md +38 -5
- package/api/default-api.ts +4 -0
- package/api/partner-relations-api.ts +12 -8
- package/api/partner-tags-api.ts +12 -8
- package/api/partner-types-api.ts +8 -4
- package/api/partner-version-api.ts +8 -4
- package/api/partners-api.ts +12 -8
- package/api.ts +4 -0
- package/base.ts +91 -62
- package/common.ts +1 -0
- package/configuration.ts +8 -0
- package/dist/api/default-api.js +5 -1
- package/dist/api/partner-relations-api.d.ts +8 -8
- package/dist/api/partner-relations-api.js +17 -13
- package/dist/api/partner-tags-api.d.ts +8 -8
- package/dist/api/partner-tags-api.js +16 -12
- package/dist/api/partner-types-api.d.ts +4 -4
- package/dist/api/partner-types-api.js +13 -9
- package/dist/api/partner-version-api.d.ts +4 -4
- package/dist/api/partner-version-api.js +9 -5
- package/dist/api/partners-api.d.ts +8 -8
- package/dist/api/partners-api.js +17 -13
- package/dist/base.d.ts +9 -6
- package/dist/base.js +137 -45
- package/dist/common.d.ts +1 -0
- package/dist/common.js +2 -1
- package/dist/configuration.d.ts +7 -0
- package/dist/models/create-partner-type-request-dto.d.ts +3 -2
- package/dist/models/create-partner-type-response-class.d.ts +1 -1
- package/dist/models/create-tag-request-dto.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 +1 -0
- package/dist/models/index.js +1 -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 +1 -7
- package/dist/models/list-partners-response-class.d.ts +1 -1
- package/dist/models/partner-class.d.ts +6 -12
- package/dist/models/partner-relation-class.d.ts +0 -12
- package/dist/models/partner-relation-type-class.d.ts +0 -12
- package/dist/models/partner-type-class.d.ts +0 -12
- package/dist/models/partner-type-custom-schema-dto.d.ts +102 -0
- package/dist/models/partner-type-custom-schema-dto.js +15 -0
- package/dist/models/tag-class.d.ts +0 -12
- package/dist/models/update-partner-type-request-dto.d.ts +3 -2
- package/dist/models/update-partner-type-response-class.d.ts +1 -1
- package/models/create-partner-type-request-dto.ts +3 -2
- package/models/create-partner-type-response-class.ts +1 -1
- package/models/create-tag-request-dto.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 +1 -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 +1 -7
- package/models/list-partners-response-class.ts +1 -1
- package/models/partner-class.ts +6 -12
- package/models/partner-relation-class.ts +0 -12
- package/models/partner-relation-type-class.ts +0 -12
- package/models/partner-type-class.ts +0 -12
- package/models/partner-type-custom-schema-dto.ts +108 -0
- package/models/tag-class.ts +0 -12
- package/models/update-partner-type-request-dto.ts +3 -2
- package/models/update-partner-type-response-class.ts +1 -1
- package/package.json +5 -2
|
@@ -85,6 +85,10 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
85
85
|
var common_1 = require("../common");
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
88
92
|
/**
|
|
89
93
|
* PartnerTagsApi - axios parameter creator
|
|
90
94
|
* @export
|
|
@@ -110,7 +114,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
110
114
|
// verify required parameter 'createTagRequestDto' is not null or undefined
|
|
111
115
|
(0, common_1.assertParamExists)('createTag', 'createTagRequestDto', createTagRequestDto);
|
|
112
116
|
localVarPath = "/partnerservice/v1/tags";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
118
|
if (configuration) {
|
|
115
119
|
baseOptions = configuration.baseOptions;
|
|
116
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -160,7 +164,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
160
164
|
(0, common_1.assertParamExists)('deleteTag', 'code', code);
|
|
161
165
|
localVarPath = "/partnerservice/v1/tags/{code}"
|
|
162
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
168
|
if (configuration) {
|
|
165
169
|
baseOptions = configuration.baseOptions;
|
|
166
170
|
baseAccessToken = configuration.accessToken;
|
|
@@ -190,7 +194,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
190
194
|
});
|
|
191
195
|
},
|
|
192
196
|
/**
|
|
193
|
-
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code
|
|
197
|
+
* 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.
|
|
194
198
|
* @summary Retrieve the partner tag
|
|
195
199
|
* @param {string} code Unique identifier for the object.
|
|
196
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -208,7 +212,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
208
212
|
(0, common_1.assertParamExists)('getTag', 'code', code);
|
|
209
213
|
localVarPath = "/partnerservice/v1/tags/{code}"
|
|
210
214
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
211
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
216
|
if (configuration) {
|
|
213
217
|
baseOptions = configuration.baseOptions;
|
|
214
218
|
baseAccessToken = configuration.accessToken;
|
|
@@ -246,7 +250,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
246
250
|
* @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, slug, label</i>
|
|
247
251
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
248
252
|
* @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: code, slug, label, createdAt, updatedAt</i>
|
|
249
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
253
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
250
254
|
* @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, slug, label</i>
|
|
251
255
|
* @param {*} [options] Override http request option.
|
|
252
256
|
* @throws {RequiredError}
|
|
@@ -259,7 +263,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
259
263
|
switch (_a.label) {
|
|
260
264
|
case 0:
|
|
261
265
|
localVarPath = "/partnerservice/v1/tags";
|
|
262
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
266
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
267
|
if (configuration) {
|
|
264
268
|
baseOptions = configuration.baseOptions;
|
|
265
269
|
baseAccessToken = configuration.accessToken;
|
|
@@ -328,7 +332,7 @@ var PartnerTagsApiAxiosParamCreator = function (configuration) {
|
|
|
328
332
|
(0, common_1.assertParamExists)('updateTag', 'code', code);
|
|
329
333
|
localVarPath = "/partnerservice/v1/tags/{code}"
|
|
330
334
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
331
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
336
|
if (configuration) {
|
|
333
337
|
baseOptions = configuration.baseOptions;
|
|
334
338
|
baseAccessToken = configuration.accessToken;
|
|
@@ -410,7 +414,7 @@ var PartnerTagsApiFp = function (configuration) {
|
|
|
410
414
|
});
|
|
411
415
|
},
|
|
412
416
|
/**
|
|
413
|
-
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code
|
|
417
|
+
* 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.
|
|
414
418
|
* @summary Retrieve the partner tag
|
|
415
419
|
* @param {string} code Unique identifier for the object.
|
|
416
420
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -439,7 +443,7 @@ var PartnerTagsApiFp = function (configuration) {
|
|
|
439
443
|
* @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, slug, label</i>
|
|
440
444
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
441
445
|
* @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: code, slug, label, createdAt, updatedAt</i>
|
|
442
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
446
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
443
447
|
* @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, slug, label</i>
|
|
444
448
|
* @param {*} [options] Override http request option.
|
|
445
449
|
* @throws {RequiredError}
|
|
@@ -511,7 +515,7 @@ var PartnerTagsApiFactory = function (configuration, basePath, axios) {
|
|
|
511
515
|
return localVarFp.deleteTag(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
516
|
},
|
|
513
517
|
/**
|
|
514
|
-
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code
|
|
518
|
+
* 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.
|
|
515
519
|
* @summary Retrieve the partner tag
|
|
516
520
|
* @param {string} code Unique identifier for the object.
|
|
517
521
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -530,7 +534,7 @@ var PartnerTagsApiFactory = function (configuration, basePath, axios) {
|
|
|
530
534
|
* @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, slug, label</i>
|
|
531
535
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
532
536
|
* @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: code, slug, label, createdAt, updatedAt</i>
|
|
533
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
537
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
534
538
|
* @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, slug, label</i>
|
|
535
539
|
* @param {*} [options] Override http request option.
|
|
536
540
|
* @throws {RequiredError}
|
|
@@ -588,7 +592,7 @@ var PartnerTagsApi = /** @class */ (function (_super) {
|
|
|
588
592
|
return (0, exports.PartnerTagsApiFp)(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
589
593
|
};
|
|
590
594
|
/**
|
|
591
|
-
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code
|
|
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.
|
|
592
596
|
* @summary Retrieve the partner tag
|
|
593
597
|
* @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
|
|
594
598
|
* @param {*} [options] Override http request option.
|
|
@@ -43,7 +43,7 @@ export declare const PartnerTypesApiAxiosParamCreator: (configuration?: Configur
|
|
|
43
43
|
*/
|
|
44
44
|
deletePartnerType: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
46
|
+
* 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.
|
|
47
47
|
* @summary Retrieve the partner-types
|
|
48
48
|
* @param {string} code Unique identifier for the object.
|
|
49
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -102,7 +102,7 @@ export declare const PartnerTypesApiFp: (configuration?: Configuration) => {
|
|
|
102
102
|
*/
|
|
103
103
|
deletePartnerType(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
104
104
|
/**
|
|
105
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
105
|
+
* 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.
|
|
106
106
|
* @summary Retrieve the partner-types
|
|
107
107
|
* @param {string} code Unique identifier for the object.
|
|
108
108
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -161,7 +161,7 @@ export declare const PartnerTypesApiFactory: (configuration?: Configuration, bas
|
|
|
161
161
|
*/
|
|
162
162
|
deletePartnerType(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
163
163
|
/**
|
|
164
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
164
|
+
* 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.
|
|
165
165
|
* @summary Retrieve the partner-types
|
|
166
166
|
* @param {string} code Unique identifier for the object.
|
|
167
167
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -365,7 +365,7 @@ export declare class PartnerTypesApi extends BaseAPI {
|
|
|
365
365
|
*/
|
|
366
366
|
deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
367
367
|
/**
|
|
368
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
368
|
+
* 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.
|
|
369
369
|
* @summary Retrieve the partner-types
|
|
370
370
|
* @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
@@ -85,6 +85,10 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
85
85
|
var common_1 = require("../common");
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
88
92
|
/**
|
|
89
93
|
* PartnerTypesApi - axios parameter creator
|
|
90
94
|
* @export
|
|
@@ -110,7 +114,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
110
114
|
// verify required parameter 'createPartnerTypeRequestDto' is not null or undefined
|
|
111
115
|
(0, common_1.assertParamExists)('createPartnerType', 'createPartnerTypeRequestDto', createPartnerTypeRequestDto);
|
|
112
116
|
localVarPath = "/partnerservice/v1/partner-types";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
118
|
if (configuration) {
|
|
115
119
|
baseOptions = configuration.baseOptions;
|
|
116
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -160,7 +164,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
160
164
|
(0, common_1.assertParamExists)('deletePartnerType', 'code', code);
|
|
161
165
|
localVarPath = "/partnerservice/v1/partner-types/{code}"
|
|
162
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
168
|
if (configuration) {
|
|
165
169
|
baseOptions = configuration.baseOptions;
|
|
166
170
|
baseAccessToken = configuration.accessToken;
|
|
@@ -190,7 +194,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
190
194
|
});
|
|
191
195
|
},
|
|
192
196
|
/**
|
|
193
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
197
|
+
* 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
198
|
* @summary Retrieve the partner-types
|
|
195
199
|
* @param {string} code Unique identifier for the object.
|
|
196
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -209,7 +213,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
209
213
|
(0, common_1.assertParamExists)('getPartnerType', 'code', code);
|
|
210
214
|
localVarPath = "/partnerservice/v1/partner-types/{code}"
|
|
211
215
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
212
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
217
|
if (configuration) {
|
|
214
218
|
baseOptions = configuration.baseOptions;
|
|
215
219
|
baseAccessToken = configuration.accessToken;
|
|
@@ -263,7 +267,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
263
267
|
switch (_a.label) {
|
|
264
268
|
case 0:
|
|
265
269
|
localVarPath = "/partnerservice/v1/partner-types";
|
|
266
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
271
|
if (configuration) {
|
|
268
272
|
baseOptions = configuration.baseOptions;
|
|
269
273
|
baseAccessToken = configuration.accessToken;
|
|
@@ -335,7 +339,7 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
|
|
|
335
339
|
(0, common_1.assertParamExists)('updatePartnerType', 'updatePartnerTypeRequestDto', updatePartnerTypeRequestDto);
|
|
336
340
|
localVarPath = "/partnerservice/v1/partner-types/{code}"
|
|
337
341
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
342
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
343
|
if (configuration) {
|
|
340
344
|
baseOptions = configuration.baseOptions;
|
|
341
345
|
baseAccessToken = configuration.accessToken;
|
|
@@ -419,7 +423,7 @@ var PartnerTypesApiFp = function (configuration) {
|
|
|
419
423
|
});
|
|
420
424
|
},
|
|
421
425
|
/**
|
|
422
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
426
|
+
* 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
427
|
* @summary Retrieve the partner-types
|
|
424
428
|
* @param {string} code Unique identifier for the object.
|
|
425
429
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -522,7 +526,7 @@ var PartnerTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
522
526
|
return localVarFp.deletePartnerType(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
527
|
},
|
|
524
528
|
/**
|
|
525
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
529
|
+
* 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
530
|
* @summary Retrieve the partner-types
|
|
527
531
|
* @param {string} code Unique identifier for the object.
|
|
528
532
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -601,7 +605,7 @@ var PartnerTypesApi = /** @class */ (function (_super) {
|
|
|
601
605
|
return (0, exports.PartnerTypesApiFp)(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
606
|
};
|
|
603
607
|
/**
|
|
604
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
608
|
+
* 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
609
|
* @summary Retrieve the partner-types
|
|
606
610
|
* @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
607
611
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
*/
|
|
@@ -85,6 +85,10 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
85
85
|
var common_1 = require("../common");
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
88
92
|
/**
|
|
89
93
|
* PartnerVersionApi - axios parameter creator
|
|
90
94
|
* @export
|
|
@@ -115,7 +119,7 @@ var PartnerVersionApiAxiosParamCreator = function (configuration) {
|
|
|
115
119
|
localVarPath = "/partnerservice/v1/partners/{code}/versions/{version}"
|
|
116
120
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
117
121
|
.replace("{".concat("version", "}"), encodeURIComponent(String(version)));
|
|
118
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
123
|
if (configuration) {
|
|
120
124
|
baseOptions = configuration.baseOptions;
|
|
121
125
|
baseAccessToken = configuration.accessToken;
|
|
@@ -154,7 +158,7 @@ var PartnerVersionApiAxiosParamCreator = function (configuration) {
|
|
|
154
158
|
* @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
159
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
156
160
|
* @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.
|
|
161
|
+
* @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
162
|
* @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
163
|
* @param {*} [options] Override http request option.
|
|
160
164
|
* @throws {RequiredError}
|
|
@@ -170,7 +174,7 @@ var PartnerVersionApiAxiosParamCreator = function (configuration) {
|
|
|
170
174
|
(0, common_1.assertParamExists)('listPartnerVersion', 'code', code);
|
|
171
175
|
localVarPath = "/partnerservice/v1/partners/{code}/versions"
|
|
172
176
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
173
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
177
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
174
178
|
if (configuration) {
|
|
175
179
|
baseOptions = configuration.baseOptions;
|
|
176
180
|
baseAccessToken = configuration.accessToken;
|
|
@@ -262,7 +266,7 @@ var PartnerVersionApiFp = function (configuration) {
|
|
|
262
266
|
* @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
267
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
264
268
|
* @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.
|
|
269
|
+
* @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
270
|
* @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
271
|
* @param {*} [options] Override http request option.
|
|
268
272
|
* @throws {RequiredError}
|
|
@@ -312,7 +316,7 @@ var PartnerVersionApiFactory = function (configuration, basePath, axios) {
|
|
|
312
316
|
* @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
317
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
314
318
|
* @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.
|
|
319
|
+
* @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
320
|
* @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
321
|
* @param {*} [options] Override http request option.
|
|
318
322
|
* @throws {RequiredError}
|
|
@@ -44,7 +44,7 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
44
44
|
*/
|
|
45
45
|
deletePartner: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
/**
|
|
47
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
47
|
+
* 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.
|
|
48
48
|
* @summary Retrieve the partner
|
|
49
49
|
* @param {string} code Unique identifier for the object.
|
|
50
50
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -62,7 +62,7 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
62
62
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
63
63
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
64
64
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
65
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
65
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
66
66
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
@@ -113,7 +113,7 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
113
113
|
*/
|
|
114
114
|
deletePartner(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
115
115
|
/**
|
|
116
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
116
|
+
* 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.
|
|
117
117
|
* @summary Retrieve the partner
|
|
118
118
|
* @param {string} code Unique identifier for the object.
|
|
119
119
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -131,7 +131,7 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
131
131
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
132
132
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
133
133
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
134
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
134
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
135
135
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
@@ -182,7 +182,7 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
182
182
|
*/
|
|
183
183
|
deletePartner(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
184
184
|
/**
|
|
185
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
185
|
+
* 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.
|
|
186
186
|
* @summary Retrieve the partner
|
|
187
187
|
* @param {string} code Unique identifier for the object.
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -200,7 +200,7 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
200
200
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
201
201
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
202
202
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
203
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
203
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
204
204
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
@@ -333,7 +333,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
333
333
|
*/
|
|
334
334
|
readonly order?: string;
|
|
335
335
|
/**
|
|
336
|
-
* Expand to fetch additional information about the list items.
|
|
336
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
337
337
|
* @type {string}
|
|
338
338
|
* @memberof PartnersApiListPartners
|
|
339
339
|
*/
|
|
@@ -421,7 +421,7 @@ export declare class PartnersApi extends BaseAPI {
|
|
|
421
421
|
*/
|
|
422
422
|
deletePartner(requestParameters: PartnersApiDeletePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
423
423
|
/**
|
|
424
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
424
|
+
* 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.
|
|
425
425
|
* @summary Retrieve the partner
|
|
426
426
|
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
427
427
|
* @param {*} [options] Override http request option.
|
package/dist/api/partners-api.js
CHANGED
|
@@ -85,6 +85,10 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
85
85
|
var common_1 = require("../common");
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
88
92
|
/**
|
|
89
93
|
* PartnersApi - axios parameter creator
|
|
90
94
|
* @export
|
|
@@ -110,7 +114,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
110
114
|
// verify required parameter 'createPartnerRequestDto' is not null or undefined
|
|
111
115
|
(0, common_1.assertParamExists)('createPartner', 'createPartnerRequestDto', createPartnerRequestDto);
|
|
112
116
|
localVarPath = "/partnerservice/v1/partners";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
118
|
if (configuration) {
|
|
115
119
|
baseOptions = configuration.baseOptions;
|
|
116
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -160,7 +164,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
160
164
|
(0, common_1.assertParamExists)('deletePartner', 'code', code);
|
|
161
165
|
localVarPath = "/partnerservice/v1/partners/{code}"
|
|
162
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
168
|
if (configuration) {
|
|
165
169
|
baseOptions = configuration.baseOptions;
|
|
166
170
|
baseAccessToken = configuration.accessToken;
|
|
@@ -190,7 +194,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
190
194
|
});
|
|
191
195
|
},
|
|
192
196
|
/**
|
|
193
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
197
|
+
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
194
198
|
* @summary Retrieve the partner
|
|
195
199
|
* @param {string} code Unique identifier for the object.
|
|
196
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -209,7 +213,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
209
213
|
(0, common_1.assertParamExists)('getPartner', 'code', code);
|
|
210
214
|
localVarPath = "/partnerservice/v1/partners/{code}"
|
|
211
215
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
212
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
217
|
if (configuration) {
|
|
214
218
|
baseOptions = configuration.baseOptions;
|
|
215
219
|
baseAccessToken = configuration.accessToken;
|
|
@@ -250,7 +254,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
250
254
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
251
255
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
256
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
253
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
257
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
254
258
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
255
259
|
* @param {*} [options] Override http request option.
|
|
256
260
|
* @throws {RequiredError}
|
|
@@ -263,7 +267,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
263
267
|
switch (_a.label) {
|
|
264
268
|
case 0:
|
|
265
269
|
localVarPath = "/partnerservice/v1/partners";
|
|
266
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
271
|
if (configuration) {
|
|
268
272
|
baseOptions = configuration.baseOptions;
|
|
269
273
|
baseAccessToken = configuration.accessToken;
|
|
@@ -335,7 +339,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
335
339
|
(0, common_1.assertParamExists)('tagPartner', 'tagPartnerRequestDtoRest', tagPartnerRequestDtoRest);
|
|
336
340
|
localVarPath = "/partnerservice/v1/partners/{code}/tag"
|
|
337
341
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
342
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
343
|
if (configuration) {
|
|
340
344
|
baseOptions = configuration.baseOptions;
|
|
341
345
|
baseAccessToken = configuration.accessToken;
|
|
@@ -388,7 +392,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
388
392
|
(0, common_1.assertParamExists)('updatePartner', 'updatePartnerRequestDto', updatePartnerRequestDto);
|
|
389
393
|
localVarPath = "/partnerservice/v1/partners/{code}"
|
|
390
394
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
391
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
395
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
392
396
|
if (configuration) {
|
|
393
397
|
baseOptions = configuration.baseOptions;
|
|
394
398
|
baseAccessToken = configuration.accessToken;
|
|
@@ -472,7 +476,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
472
476
|
});
|
|
473
477
|
},
|
|
474
478
|
/**
|
|
475
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
479
|
+
* 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.
|
|
476
480
|
* @summary Retrieve the partner
|
|
477
481
|
* @param {string} code Unique identifier for the object.
|
|
478
482
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -502,7 +506,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
502
506
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
503
507
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
504
508
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
505
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
509
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
506
510
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
507
511
|
* @param {*} [options] Override http request option.
|
|
508
512
|
* @throws {RequiredError}
|
|
@@ -597,7 +601,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
597
601
|
return localVarFp.deletePartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
598
602
|
},
|
|
599
603
|
/**
|
|
600
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
604
|
+
* 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.
|
|
601
605
|
* @summary Retrieve the partner
|
|
602
606
|
* @param {string} code Unique identifier for the object.
|
|
603
607
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -617,7 +621,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
617
621
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
618
622
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
619
623
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
620
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
624
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags.<i>
|
|
621
625
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
622
626
|
* @param {*} [options] Override http request option.
|
|
623
627
|
* @throws {RequiredError}
|
|
@@ -688,7 +692,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
688
692
|
return (0, exports.PartnersApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
693
|
};
|
|
690
694
|
/**
|
|
691
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
695
|
+
* 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.
|
|
692
696
|
* @summary Retrieve the partner
|
|
693
697
|
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
694
698
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -50,18 +50,21 @@ export interface RequestArgs {
|
|
|
50
50
|
export declare class BaseAPI {
|
|
51
51
|
protected basePath: string;
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
|
-
protected configuration: Configuration
|
|
54
|
-
private
|
|
53
|
+
protected configuration: Configuration;
|
|
54
|
+
private username?;
|
|
55
|
+
private password?;
|
|
55
56
|
private permissions;
|
|
56
57
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
|
+
initialize(env?: Environment): Promise<void>;
|
|
59
|
+
private loadCredentials;
|
|
60
|
+
private readConfigFile;
|
|
61
|
+
private readEnvVariables;
|
|
57
62
|
selectEnvironment(env: Environment): void;
|
|
58
|
-
selectBasePath(path: string): void;
|
|
59
63
|
getPermissions(): Array<string>;
|
|
60
64
|
authorize(username: string, password: string): Promise<void>;
|
|
61
65
|
refreshTokenInternal(): Promise<LoginClass>;
|
|
62
|
-
private
|
|
63
|
-
|
|
64
|
-
cleanTokenData(): void;
|
|
66
|
+
private extractRefreshToken;
|
|
67
|
+
getConfiguration(): Configuration;
|
|
65
68
|
private attachInterceptor;
|
|
66
69
|
}
|
|
67
70
|
/**
|