@emilgroup/partner-sdk 1.0.1 → 1.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +21 -1
- package/README.md +2 -2
- package/api/default-api.ts +8 -4
- package/api/partner-relations-api.ts +968 -0
- package/api/partner-tags-api.ts +662 -0
- package/api/partner-types-api.ts +36 -22
- package/api/partner-version-api.ts +375 -0
- package/api/partners-api.ts +154 -22
- package/api.ts +6 -0
- package/base.ts +6 -1
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/partner-relations-api.d.ts +550 -0
- package/dist/api/partner-relations-api.js +857 -0
- package/dist/api/partner-tags-api.d.ts +375 -0
- package/dist/api/partner-tags-api.js +629 -0
- package/dist/api/partner-types-api.d.ts +28 -19
- package/dist/api/partner-types-api.js +26 -20
- package/dist/api/partner-version-api.d.ts +224 -0
- package/dist/api/partner-version-api.js +363 -0
- package/dist/api/partners-api.d.ts +93 -19
- package/dist/api/partners-api.js +125 -20
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +5 -1
- package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
- package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
- package/dist/models/create-partner-relation-response-class.d.ts +25 -0
- package/dist/models/create-partner-type-request-dto.d.ts +13 -3
- package/dist/models/create-partner-type-request-dto.js +5 -0
- package/dist/models/create-tag-request-dto.d.ts +36 -0
- package/dist/models/create-tag-request-dto.js +15 -0
- package/dist/models/create-tag-response-class.d.ts +25 -0
- package/dist/models/create-tag-response-class.js +15 -0
- package/dist/models/get-partner-relation-class.d.ts +25 -0
- package/dist/models/get-partner-relation-class.js +15 -0
- package/dist/models/get-partner-relation-type-class.d.ts +25 -0
- package/dist/models/get-partner-relation-type-class.js +15 -0
- package/dist/models/get-partner-version-response-class.d.ts +25 -0
- package/dist/models/get-partner-version-response-class.js +15 -0
- package/dist/models/get-tag-response-class.d.ts +25 -0
- package/dist/models/get-tag-response-class.js +15 -0
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.js +18 -1
- package/dist/models/list-partner-relation-class.d.ts +31 -0
- package/dist/models/list-partner-relation-class.js +15 -0
- package/dist/models/list-partner-relation-types-class.d.ts +31 -0
- package/dist/models/list-partner-relation-types-class.js +15 -0
- package/dist/models/list-partner-versions-response-class.d.ts +25 -0
- package/dist/models/list-partner-versions-response-class.js +15 -0
- package/dist/models/list-tags-response-class.d.ts +31 -0
- package/dist/models/list-tags-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +18 -0
- package/dist/models/partner-relation-class.d.ts +72 -0
- package/dist/models/partner-relation-class.js +15 -0
- package/dist/models/partner-relation-type-class.d.ts +66 -0
- package/dist/models/partner-relation-type-class.js +15 -0
- package/dist/models/partner-type-class.d.ts +11 -0
- package/dist/models/partner-type-class.js +5 -0
- package/dist/models/tag-class.d.ts +54 -0
- package/dist/models/tag-class.js +15 -0
- package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
- package/dist/models/tag-partner-request-dto-rest.js +15 -0
- package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
- package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
- package/dist/models/update-partner-type-request-dto.d.ts +20 -4
- package/dist/models/update-partner-type-request-dto.js +5 -0
- package/dist/models/update-tag-response-class.d.ts +25 -0
- package/dist/models/update-tag-response-class.js +15 -0
- package/models/create-partner-relation-request-dto-rest.ts +74 -0
- package/models/create-partner-relation-response-class.ts +31 -0
- package/models/create-partner-type-request-dto.ts +16 -3
- package/models/create-tag-request-dto.ts +42 -0
- package/models/create-tag-response-class.ts +31 -0
- package/models/get-partner-relation-class.ts +31 -0
- package/models/get-partner-relation-type-class.ts +31 -0
- package/models/get-partner-version-response-class.ts +31 -0
- package/models/get-tag-response-class.ts +31 -0
- package/models/index.ts +18 -1
- package/models/list-partner-relation-class.ts +37 -0
- package/models/list-partner-relation-types-class.ts +37 -0
- package/models/list-partner-versions-response-class.ts +31 -0
- package/models/list-tags-response-class.ts +37 -0
- package/models/partner-class.ts +18 -0
- package/models/partner-relation-class.ts +78 -0
- package/models/partner-relation-type-class.ts +72 -0
- package/models/partner-type-class.ts +14 -0
- package/models/tag-class.ts +60 -0
- package/models/tag-partner-request-dto-rest.ts +30 -0
- package/models/update-partner-relation-request-dto-rest.ts +42 -0
- package/models/update-partner-type-request-dto.ts +23 -4
- package/models/update-tag-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
- package/models/partner-type-custom-schema-dto.ts +0 -72
- /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
package/dist/api/partners-api.js
CHANGED
|
@@ -190,7 +190,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
193
|
+
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
194
194
|
* @summary Retrieve the partner
|
|
195
195
|
* @param {string} code Unique identifier for the object.
|
|
196
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -242,19 +242,20 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
|
-
* Returns a list of partners you have previously created.
|
|
245
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
246
246
|
* @summary List partners
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
248
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
249
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
250
250
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
251
|
-
* @param {any} [search]
|
|
251
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
252
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
253
253
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
254
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
254
255
|
* @param {*} [options] Override http request option.
|
|
255
256
|
* @throws {RequiredError}
|
|
256
257
|
*/
|
|
257
|
-
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
258
|
+
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
259
|
if (options === void 0) { options = {}; }
|
|
259
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -295,6 +296,9 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
295
296
|
if (expand !== undefined) {
|
|
296
297
|
localVarQueryParameter['expand'] = expand;
|
|
297
298
|
}
|
|
299
|
+
if (filters !== undefined) {
|
|
300
|
+
localVarQueryParameter['filters'] = filters;
|
|
301
|
+
}
|
|
298
302
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
303
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
300
304
|
}
|
|
@@ -309,6 +313,59 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
309
313
|
});
|
|
310
314
|
});
|
|
311
315
|
},
|
|
316
|
+
/**
|
|
317
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
318
|
+
* @summary Update the partner
|
|
319
|
+
* @param {string} code
|
|
320
|
+
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
321
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
tagPartner: function (code, tagPartnerRequestDtoRest, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
// verify required parameter 'code' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('tagPartner', 'code', code);
|
|
334
|
+
// verify required parameter 'tagPartnerRequestDtoRest' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('tagPartner', 'tagPartnerRequestDtoRest', tagPartnerRequestDtoRest);
|
|
336
|
+
localVarPath = "/partnerservice/v1/partners/{code}/tag"
|
|
337
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
baseAccessToken = configuration.accessToken;
|
|
342
|
+
}
|
|
343
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
344
|
+
localVarHeaderParameter = {};
|
|
345
|
+
localVarQueryParameter = {};
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
349
|
+
case 1:
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
_a.sent();
|
|
353
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
354
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
355
|
+
}
|
|
356
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tagPartnerRequestDtoRest, localVarRequestOptions, configuration);
|
|
361
|
+
return [2 /*return*/, {
|
|
362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
}];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
},
|
|
312
369
|
/**
|
|
313
370
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
314
371
|
* @summary Update the partner
|
|
@@ -415,7 +472,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
415
472
|
});
|
|
416
473
|
},
|
|
417
474
|
/**
|
|
418
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
475
|
+
* 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.
|
|
419
476
|
* @summary Retrieve the partner
|
|
420
477
|
* @param {string} code Unique identifier for the object.
|
|
421
478
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -437,24 +494,47 @@ var PartnersApiFp = function (configuration) {
|
|
|
437
494
|
});
|
|
438
495
|
},
|
|
439
496
|
/**
|
|
440
|
-
* Returns a list of partners you have previously created.
|
|
497
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
441
498
|
* @summary List partners
|
|
442
499
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
500
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
444
501
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
445
502
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
446
|
-
* @param {any} [search]
|
|
503
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
447
504
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
448
505
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
506
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
449
507
|
* @param {*} [options] Override http request option.
|
|
450
508
|
* @throws {RequiredError}
|
|
451
509
|
*/
|
|
452
|
-
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
510
|
+
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
453
511
|
return __awaiter(this, void 0, void 0, function () {
|
|
454
512
|
var localVarAxiosArgs;
|
|
455
513
|
return __generator(this, function (_a) {
|
|
456
514
|
switch (_a.label) {
|
|
457
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
515
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
516
|
+
case 1:
|
|
517
|
+
localVarAxiosArgs = _a.sent();
|
|
518
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
});
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
525
|
+
* @summary Update the partner
|
|
526
|
+
* @param {string} code
|
|
527
|
+
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
528
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
tagPartner: function (code, tagPartnerRequestDtoRest, authorization, options) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
+
var localVarAxiosArgs;
|
|
535
|
+
return __generator(this, function (_a) {
|
|
536
|
+
switch (_a.label) {
|
|
537
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.tagPartner(code, tagPartnerRequestDtoRest, authorization, options)];
|
|
458
538
|
case 1:
|
|
459
539
|
localVarAxiosArgs = _a.sent();
|
|
460
540
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -517,7 +597,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
517
597
|
return localVarFp.deletePartner(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
518
598
|
},
|
|
519
599
|
/**
|
|
520
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
600
|
+
* 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.
|
|
521
601
|
* @summary Retrieve the partner
|
|
522
602
|
* @param {string} code Unique identifier for the object.
|
|
523
603
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -529,20 +609,33 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
529
609
|
return localVarFp.getPartner(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
530
610
|
},
|
|
531
611
|
/**
|
|
532
|
-
* Returns a list of partners you have previously created.
|
|
612
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
533
613
|
* @summary List partners
|
|
534
614
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
535
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
615
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
536
616
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
537
617
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
538
|
-
* @param {any} [search]
|
|
618
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
539
619
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
540
620
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
621
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
626
|
+
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
627
|
+
},
|
|
628
|
+
/**
|
|
629
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
630
|
+
* @summary Update the partner
|
|
631
|
+
* @param {string} code
|
|
632
|
+
* @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
|
|
633
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
634
|
* @param {*} [options] Override http request option.
|
|
542
635
|
* @throws {RequiredError}
|
|
543
636
|
*/
|
|
544
|
-
|
|
545
|
-
return localVarFp.
|
|
637
|
+
tagPartner: function (code, tagPartnerRequestDtoRest, authorization, options) {
|
|
638
|
+
return localVarFp.tagPartner(code, tagPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
546
639
|
},
|
|
547
640
|
/**
|
|
548
641
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -595,7 +688,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
595
688
|
return (0, exports.PartnersApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
689
|
};
|
|
597
690
|
/**
|
|
598
|
-
* Retrieves the details of the partner that was previously created. Supply the unique partner code
|
|
691
|
+
* 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.
|
|
599
692
|
* @summary Retrieve the partner
|
|
600
693
|
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
601
694
|
* @param {*} [options] Override http request option.
|
|
@@ -607,7 +700,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
607
700
|
return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
701
|
};
|
|
609
702
|
/**
|
|
610
|
-
* Returns a list of partners you have previously created.
|
|
703
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
611
704
|
* @summary List partners
|
|
612
705
|
* @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
613
706
|
* @param {*} [options] Override http request option.
|
|
@@ -617,7 +710,19 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
617
710
|
PartnersApi.prototype.listPartners = function (requestParameters, options) {
|
|
618
711
|
var _this = this;
|
|
619
712
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return (0, exports.PartnersApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
713
|
+
return (0, exports.PartnersApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
717
|
+
* @summary Update the partner
|
|
718
|
+
* @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
* @memberof PartnersApi
|
|
722
|
+
*/
|
|
723
|
+
PartnersApi.prototype.tagPartner = function (requestParameters, options) {
|
|
724
|
+
var _this = this;
|
|
725
|
+
return (0, exports.PartnersApiFp)(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
726
|
};
|
|
622
727
|
/**
|
|
623
728
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
package/dist/api.d.ts
CHANGED
|
@@ -10,5 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/default-api';
|
|
13
|
+
export * from './api/partner-relations-api';
|
|
14
|
+
export * from './api/partner-tags-api';
|
|
13
15
|
export * from './api/partner-types-api';
|
|
16
|
+
export * from './api/partner-version-api';
|
|
14
17
|
export * from './api/partners-api';
|
package/dist/api.js
CHANGED
|
@@ -28,5 +28,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/default-api"), exports);
|
|
31
|
+
__exportStar(require("./api/partner-relations-api"), exports);
|
|
32
|
+
__exportStar(require("./api/partner-tags-api"), exports);
|
|
31
33
|
__exportStar(require("./api/partner-types-api"), exports);
|
|
34
|
+
__exportStar(require("./api/partner-version-api"), exports);
|
|
32
35
|
__exportStar(require("./api/partners-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class BaseAPI {
|
|
|
54
54
|
private tokenData?;
|
|
55
55
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
56
|
selectEnvironment(env: Environment): void;
|
|
57
|
+
selectBasePath(path: string): void;
|
|
57
58
|
authorize(username: string, password: string): Promise<void>;
|
|
58
59
|
refreshTokenInternal(): Promise<string>;
|
|
59
60
|
private storeTokenData;
|
package/dist/base.js
CHANGED
|
@@ -125,6 +125,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
125
125
|
if (configuration) {
|
|
126
126
|
this.configuration = configuration;
|
|
127
127
|
this.basePath = configuration.basePath || this.basePath;
|
|
128
|
+
this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
|
|
128
129
|
}
|
|
129
130
|
else {
|
|
130
131
|
var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
|
|
@@ -137,7 +138,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
137
138
|
this.attachInterceptor(axios);
|
|
138
139
|
}
|
|
139
140
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
140
|
-
this.
|
|
141
|
+
this.selectBasePath(env);
|
|
142
|
+
};
|
|
143
|
+
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
|
+
this.configuration.basePath = path;
|
|
141
145
|
};
|
|
142
146
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
143
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreatePartnerRelationRequestDtoRest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePartnerRelationRequestDtoRest {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the first partner in the relationship
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
22
|
+
*/
|
|
23
|
+
'partner1Id': number;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the second partner in the relationship
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
28
|
+
*/
|
|
29
|
+
'partner2Id': number;
|
|
30
|
+
/**
|
|
31
|
+
* The slug of the partner relation type
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
34
|
+
*/
|
|
35
|
+
'relationTypeSlug': CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The start datetime of the relationship, provided in ISO 8601 format
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
40
|
+
*/
|
|
41
|
+
'startDate': string;
|
|
42
|
+
/**
|
|
43
|
+
* The end datetime of the relationship, provided in ISO 8601 format
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
46
|
+
*/
|
|
47
|
+
'endDate': string;
|
|
48
|
+
/**
|
|
49
|
+
* A note about the relationship, provided as a string
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreatePartnerRelationRequestDtoRest
|
|
52
|
+
*/
|
|
53
|
+
'note': string;
|
|
54
|
+
}
|
|
55
|
+
export declare const CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum: {
|
|
56
|
+
readonly Parent: "parent";
|
|
57
|
+
readonly Sibling: "sibling";
|
|
58
|
+
readonly Married: "married";
|
|
59
|
+
readonly ManagingDirector: "managing_director";
|
|
60
|
+
readonly Subsidiary: "subsidiary";
|
|
61
|
+
readonly SubAgent: "sub-agent";
|
|
62
|
+
readonly Employee: "employee";
|
|
63
|
+
readonly Other: "other";
|
|
64
|
+
};
|
|
65
|
+
export type CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum = typeof CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum[keyof typeof CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum = void 0;
|
|
17
|
+
exports.CreatePartnerRelationRequestDtoRestRelationTypeSlugEnum = {
|
|
18
|
+
Parent: 'parent',
|
|
19
|
+
Sibling: 'sibling',
|
|
20
|
+
Married: 'married',
|
|
21
|
+
ManagingDirector: 'managing_director',
|
|
22
|
+
Subsidiary: 'subsidiary',
|
|
23
|
+
SubAgent: 'sub-agent',
|
|
24
|
+
Employee: 'employee',
|
|
25
|
+
Other: 'other'
|
|
26
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PartnerRelationClass } from './partner-relation-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreatePartnerRelationResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreatePartnerRelationResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The partner relation response.
|
|
21
|
+
* @type {PartnerRelationClass}
|
|
22
|
+
* @memberof CreatePartnerRelationResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'partnerRelation': PartnerRelationClass;
|
|
25
|
+
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { PartnerTypeCustomSchemaDto } from './partner-type-custom-schema-dto';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -22,10 +21,21 @@ export interface CreatePartnerTypeRequestDto {
|
|
|
22
21
|
* @memberof CreatePartnerTypeRequestDto
|
|
23
22
|
*/
|
|
24
23
|
'name': string;
|
|
24
|
+
/**
|
|
25
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePartnerTypeRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'slug': CreatePartnerTypeRequestDtoSlugEnum;
|
|
25
30
|
/**
|
|
26
31
|
* The partner type schema array of object based on json schema.
|
|
27
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<string>}
|
|
28
33
|
* @memberof CreatePartnerTypeRequestDto
|
|
29
34
|
*/
|
|
30
|
-
'schemas': Array<
|
|
35
|
+
'schemas': Array<string>;
|
|
31
36
|
}
|
|
37
|
+
export declare const CreatePartnerTypeRequestDtoSlugEnum: {
|
|
38
|
+
readonly Person: "person";
|
|
39
|
+
readonly Organization: "organization";
|
|
40
|
+
};
|
|
41
|
+
export type CreatePartnerTypeRequestDtoSlugEnum = typeof CreatePartnerTypeRequestDtoSlugEnum[keyof typeof CreatePartnerTypeRequestDtoSlugEnum];
|
|
@@ -13,3 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreatePartnerTypeRequestDtoSlugEnum = void 0;
|
|
17
|
+
exports.CreatePartnerTypeRequestDtoSlugEnum = {
|
|
18
|
+
Person: 'person',
|
|
19
|
+
Organization: 'organization'
|
|
20
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateTagRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateTagRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateTagRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'slug': string;
|
|
24
|
+
/**
|
|
25
|
+
* A label for the tag - can be used for display purposes and localization
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateTagRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'label': string;
|
|
30
|
+
/**
|
|
31
|
+
* A short description for the tag
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateTagRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'description': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TagClass } from './tag-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateTagResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateTagResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The tag response.
|
|
21
|
+
* @type {TagClass}
|
|
22
|
+
* @memberof CreateTagResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'tag': TagClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PartnerRelationClass } from './partner-relation-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPartnerRelationClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPartnerRelationClass {
|
|
19
|
+
/**
|
|
20
|
+
* The partner relation response.
|
|
21
|
+
* @type {PartnerRelationClass}
|
|
22
|
+
* @memberof GetPartnerRelationClass
|
|
23
|
+
*/
|
|
24
|
+
'partnerRelation': PartnerRelationClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PartnerRelationTypeClass } from './partner-relation-type-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPartnerRelationTypeClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPartnerRelationTypeClass {
|
|
19
|
+
/**
|
|
20
|
+
* The partner relation type response.
|
|
21
|
+
* @type {PartnerRelationTypeClass}
|
|
22
|
+
* @memberof GetPartnerRelationTypeClass
|
|
23
|
+
*/
|
|
24
|
+
'relationType': PartnerRelationTypeClass;
|
|
25
|
+
}
|