@emilgroup/partner-sdk-node 1.22.1-beta.9 → 1.23.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 +41 -0
- package/README.md +2 -2
- package/api/blacklist-api.ts +3 -3
- package/api/blacklist-reasons-api.ts +3 -3
- package/api/partner-hierarchies-api.ts +1371 -0
- package/api/partner-hierarchy-nodes-api.ts +1201 -0
- package/api/partner-hierarchy-types-api.ts +683 -0
- package/api/partners-api.ts +318 -12
- package/api.ts +6 -0
- package/base.ts +1 -0
- package/dist/api/blacklist-api.d.ts +4 -4
- package/dist/api/blacklist-reasons-api.d.ts +4 -4
- package/dist/api/partner-hierarchies-api.d.ts +774 -0
- package/dist/api/partner-hierarchies-api.js +1175 -0
- package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
- package/dist/api/partner-hierarchy-nodes-api.js +1053 -0
- package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
- package/dist/api/partner-hierarchy-types-api.js +640 -0
- package/dist/api/partners-api.d.ts +187 -12
- package/dist/api/partners-api.js +236 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
- package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
- package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
- package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-response-class.js +15 -0
- package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
- package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
- package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
- package/dist/models/delete-by-code-response-class.d.ts +24 -0
- package/dist/models/delete-by-code-response-class.js +15 -0
- package/dist/models/generate-upload-url-response-class.d.ts +36 -0
- package/dist/models/generate-upload-url-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
- package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
- package/dist/models/index.d.ts +38 -0
- package/dist/models/index.js +38 -0
- package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchies-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
- package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
- package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
- package/dist/models/list-partners-response-class.d.ts +9 -9
- package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
- package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
- package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
- package/dist/models/partner-hierarchy-class.d.ts +78 -0
- package/dist/models/partner-hierarchy-class.js +15 -0
- package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
- package/dist/models/partner-hierarchy-node-class.js +15 -0
- package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
- package/dist/models/partner-hierarchy-node-history-class.js +15 -0
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
- package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
- package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
- package/dist/models/partner-hierarchy-operation-class.js +15 -0
- package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
- package/dist/models/partner-hierarchy-type-class.js +15 -0
- package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
- package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
- package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
- package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-response-class.js +15 -0
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
- package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
- package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
- package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
- package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
- package/dist/models/validate-partner-request-dto.d.ts +30 -0
- package/dist/models/validate-partner-request-dto.js +15 -0
- package/dist/models/validate-partner-response-class.d.ts +30 -0
- package/dist/models/validate-partner-response-class.js +15 -0
- package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
- package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
- package/models/create-partner-hierarchy-node-response-class.ts +31 -0
- package/models/create-partner-hierarchy-request-dto.ts +36 -0
- package/models/create-partner-hierarchy-response-class.ts +31 -0
- package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
- package/models/create-partner-hierarchy-type-response-class.ts +31 -0
- package/models/delete-by-code-response-class.ts +30 -0
- package/models/generate-upload-url-response-class.ts +42 -0
- package/models/get-partner-hierarchy-node-response-class.ts +31 -0
- package/models/get-partner-hierarchy-response-class.ts +31 -0
- package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
- package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
- package/models/get-partner-hierarchy-type-response-class.ts +31 -0
- package/models/index.ts +38 -0
- package/models/list-partner-hierarchies-response-class.ts +49 -0
- package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
- package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
- package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
- package/models/list-partner-hierarchy-types-response-class.ts +49 -0
- package/models/list-partners-response-class.ts +9 -9
- package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
- package/models/move-partner-hierarchy-node-response-class.ts +31 -0
- package/models/partner-class.ts +6 -0
- package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
- package/models/partner-hierarchy-class.ts +84 -0
- package/models/partner-hierarchy-node-class.ts +115 -0
- package/models/partner-hierarchy-node-history-class.ts +103 -0
- package/models/partner-hierarchy-node-tree-class.ts +102 -0
- package/models/partner-hierarchy-operation-class.ts +96 -0
- package/models/partner-hierarchy-type-class.ts +72 -0
- package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
- package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
- package/models/update-partner-hierarchy-node-response-class.ts +31 -0
- package/models/update-partner-hierarchy-request-dto.ts +30 -0
- package/models/update-partner-hierarchy-response-class.ts +31 -0
- package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
- package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
- package/models/update-partner-hierarchy-type-response-class.ts +31 -0
- package/models/validate-partner-request-dto.ts +36 -0
- package/models/validate-partner-response-class.ts +36 -0
- package/package.json +1 -1
package/api/partners-api.ts
CHANGED
|
@@ -48,6 +48,10 @@ import { TagPartnerRequestDtoRest } from '../models';
|
|
|
48
48
|
import { UpdatePartnerRequestDto } from '../models';
|
|
49
49
|
// @ts-ignore
|
|
50
50
|
import { UpdatePartnerResponseClass } from '../models';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import { ValidatePartnerRequestDto } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import { ValidatePartnerResponseClass } from '../models';
|
|
51
55
|
// URLSearchParams not necessarily used
|
|
52
56
|
// @ts-ignore
|
|
53
57
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -298,11 +302,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
298
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
303
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
300
304
|
* @param {string} [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.
|
|
301
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
305
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
302
306
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
303
|
-
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
307
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
304
308
|
* @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, partnerTagLabels<i>
|
|
305
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
309
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
306
310
|
* @param {*} [options] Override http request option.
|
|
307
311
|
* @throws {RequiredError}
|
|
308
312
|
*/
|
|
@@ -439,6 +443,86 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
439
443
|
|
|
440
444
|
|
|
441
445
|
|
|
446
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
449
|
+
|
|
450
|
+
return {
|
|
451
|
+
url: toPathString(localVarUrlObj),
|
|
452
|
+
options: localVarRequestOptions,
|
|
453
|
+
};
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
457
|
+
* @summary List sub-partners
|
|
458
|
+
* @param {string} code Unique identifier for the object.
|
|
459
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
460
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
461
|
+
* @param {string} [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.
|
|
462
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
463
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
464
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
465
|
+
* @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, partnerTagLabels<i>
|
|
466
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
listSubPartners: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
471
|
+
// verify required parameter 'code' is not null or undefined
|
|
472
|
+
assertParamExists('listSubPartners', 'code', code)
|
|
473
|
+
const localVarPath = `/partnerservice/v1/partners/{code}/sub-partners`
|
|
474
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
477
|
+
let baseOptions;
|
|
478
|
+
let baseAccessToken;
|
|
479
|
+
if (configuration) {
|
|
480
|
+
baseOptions = configuration.baseOptions;
|
|
481
|
+
baseAccessToken = configuration.accessToken;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
485
|
+
const localVarHeaderParameter = {} as any;
|
|
486
|
+
const localVarQueryParameter = {} as any;
|
|
487
|
+
|
|
488
|
+
// authentication bearer required
|
|
489
|
+
// http bearer authentication required
|
|
490
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
491
|
+
|
|
492
|
+
if (pageSize !== undefined) {
|
|
493
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (pageToken !== undefined) {
|
|
497
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (filter !== undefined) {
|
|
501
|
+
localVarQueryParameter['filter'] = filter;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (search !== undefined) {
|
|
505
|
+
localVarQueryParameter['search'] = search;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (order !== undefined) {
|
|
509
|
+
localVarQueryParameter['order'] = order;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (expand !== undefined) {
|
|
513
|
+
localVarQueryParameter['expand'] = expand;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
if (filters !== undefined) {
|
|
517
|
+
localVarQueryParameter['filters'] = filters;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
521
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
442
526
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
443
527
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
444
528
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -596,6 +680,53 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
596
680
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
597
681
|
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
598
682
|
|
|
683
|
+
return {
|
|
684
|
+
url: toPathString(localVarUrlObj),
|
|
685
|
+
options: localVarRequestOptions,
|
|
686
|
+
};
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
|
|
690
|
+
* @summary Validate a partner
|
|
691
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
692
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
697
|
+
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
698
|
+
assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
|
|
699
|
+
const localVarPath = `/partnerservice/v1/partners/validate`;
|
|
700
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
701
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
702
|
+
let baseOptions;
|
|
703
|
+
let baseAccessToken;
|
|
704
|
+
if (configuration) {
|
|
705
|
+
baseOptions = configuration.baseOptions;
|
|
706
|
+
baseAccessToken = configuration.accessToken;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
710
|
+
const localVarHeaderParameter = {} as any;
|
|
711
|
+
const localVarQueryParameter = {} as any;
|
|
712
|
+
|
|
713
|
+
// authentication bearer required
|
|
714
|
+
// http bearer authentication required
|
|
715
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
716
|
+
|
|
717
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
718
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
724
|
+
|
|
725
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
727
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
728
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
729
|
+
|
|
599
730
|
return {
|
|
600
731
|
url: toPathString(localVarUrlObj),
|
|
601
732
|
options: localVarRequestOptions,
|
|
@@ -678,11 +809,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
678
809
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
679
810
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
680
811
|
* @param {string} [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.
|
|
681
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
812
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
682
813
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
683
|
-
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
814
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
684
815
|
* @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, partnerTagLabels<i>
|
|
685
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
816
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
686
817
|
* @param {*} [options] Override http request option.
|
|
687
818
|
* @throws {RequiredError}
|
|
688
819
|
*/
|
|
@@ -709,6 +840,25 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
709
840
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
710
841
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
711
842
|
},
|
|
843
|
+
/**
|
|
844
|
+
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
845
|
+
* @summary List sub-partners
|
|
846
|
+
* @param {string} code Unique identifier for the object.
|
|
847
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
848
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
849
|
+
* @param {string} [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.
|
|
850
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
851
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
852
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
853
|
+
* @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, partnerTagLabels<i>
|
|
854
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
async listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
|
|
859
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
860
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
861
|
+
},
|
|
712
862
|
/**
|
|
713
863
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
714
864
|
* @summary Update the partner
|
|
@@ -748,6 +898,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
748
898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(code, updatePartnerRequestDto, authorization, options);
|
|
749
899
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
750
900
|
},
|
|
901
|
+
/**
|
|
902
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
|
|
903
|
+
* @summary Validate a partner
|
|
904
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
905
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
|
|
910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
|
|
911
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
912
|
+
},
|
|
751
913
|
}
|
|
752
914
|
};
|
|
753
915
|
|
|
@@ -820,11 +982,11 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
820
982
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
821
983
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
822
984
|
* @param {string} [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.
|
|
823
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
985
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
824
986
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
825
|
-
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
987
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
826
988
|
* @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, partnerTagLabels<i>
|
|
827
|
-
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
989
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
828
990
|
* @param {*} [options] Override http request option.
|
|
829
991
|
* @throws {RequiredError}
|
|
830
992
|
*/
|
|
@@ -849,6 +1011,24 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
849
1011
|
listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
|
|
850
1012
|
return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
851
1013
|
},
|
|
1014
|
+
/**
|
|
1015
|
+
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1016
|
+
* @summary List sub-partners
|
|
1017
|
+
* @param {string} code Unique identifier for the object.
|
|
1018
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1019
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1020
|
+
* @param {string} [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.
|
|
1021
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1022
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1023
|
+
* @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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
1024
|
+
* @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, partnerTagLabels<i>
|
|
1025
|
+
* @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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
1030
|
+
return localVarFp.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1031
|
+
},
|
|
852
1032
|
/**
|
|
853
1033
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
854
1034
|
* @summary Update the partner
|
|
@@ -885,6 +1065,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
885
1065
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass> {
|
|
886
1066
|
return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
887
1067
|
},
|
|
1068
|
+
/**
|
|
1069
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
|
|
1070
|
+
* @summary Validate a partner
|
|
1071
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
1072
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
|
|
1077
|
+
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1078
|
+
},
|
|
888
1079
|
};
|
|
889
1080
|
};
|
|
890
1081
|
|
|
@@ -1028,7 +1219,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1028
1219
|
readonly pageToken?: string
|
|
1029
1220
|
|
|
1030
1221
|
/**
|
|
1031
|
-
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
1222
|
+
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1032
1223
|
* @type {string}
|
|
1033
1224
|
* @memberof PartnersApiListPartners
|
|
1034
1225
|
*/
|
|
@@ -1042,7 +1233,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1042
1233
|
readonly search?: string
|
|
1043
1234
|
|
|
1044
1235
|
/**
|
|
1045
|
-
* 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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels</i>
|
|
1236
|
+
* 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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
1046
1237
|
* @type {string}
|
|
1047
1238
|
* @memberof PartnersApiListPartners
|
|
1048
1239
|
*/
|
|
@@ -1056,7 +1247,7 @@ export interface PartnersApiListPartnersRequest {
|
|
|
1056
1247
|
readonly expand?: string
|
|
1057
1248
|
|
|
1058
1249
|
/**
|
|
1059
|
-
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode</i>
|
|
1250
|
+
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1060
1251
|
* @type {string}
|
|
1061
1252
|
* @memberof PartnersApiListPartners
|
|
1062
1253
|
*/
|
|
@@ -1133,6 +1324,76 @@ export interface PartnersApiListRelationsForPartnerRequest {
|
|
|
1133
1324
|
readonly filters?: string
|
|
1134
1325
|
}
|
|
1135
1326
|
|
|
1327
|
+
/**
|
|
1328
|
+
* Request parameters for listSubPartners operation in PartnersApi.
|
|
1329
|
+
* @export
|
|
1330
|
+
* @interface PartnersApiListSubPartnersRequest
|
|
1331
|
+
*/
|
|
1332
|
+
export interface PartnersApiListSubPartnersRequest {
|
|
1333
|
+
/**
|
|
1334
|
+
* Unique identifier for the object.
|
|
1335
|
+
* @type {string}
|
|
1336
|
+
* @memberof PartnersApiListSubPartners
|
|
1337
|
+
*/
|
|
1338
|
+
readonly code: string
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1342
|
+
* @type {string}
|
|
1343
|
+
* @memberof PartnersApiListSubPartners
|
|
1344
|
+
*/
|
|
1345
|
+
readonly authorization?: string
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1349
|
+
* @type {number}
|
|
1350
|
+
* @memberof PartnersApiListSubPartners
|
|
1351
|
+
*/
|
|
1352
|
+
readonly pageSize?: number
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* 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.
|
|
1356
|
+
* @type {string}
|
|
1357
|
+
* @memberof PartnersApiListSubPartners
|
|
1358
|
+
*/
|
|
1359
|
+
readonly pageToken?: string
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1363
|
+
* @type {string}
|
|
1364
|
+
* @memberof PartnersApiListSubPartners
|
|
1365
|
+
*/
|
|
1366
|
+
readonly filter?: string
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1370
|
+
* @type {string}
|
|
1371
|
+
* @memberof PartnersApiListSubPartners
|
|
1372
|
+
*/
|
|
1373
|
+
readonly search?: string
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* 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, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount</i>
|
|
1377
|
+
* @type {string}
|
|
1378
|
+
* @memberof PartnersApiListSubPartners
|
|
1379
|
+
*/
|
|
1380
|
+
readonly order?: string
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* 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, partnerTagLabels<i>
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof PartnersApiListSubPartners
|
|
1386
|
+
*/
|
|
1387
|
+
readonly expand?: string
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* 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, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount</i>
|
|
1391
|
+
* @type {string}
|
|
1392
|
+
* @memberof PartnersApiListSubPartners
|
|
1393
|
+
*/
|
|
1394
|
+
readonly filters?: string
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1136
1397
|
/**
|
|
1137
1398
|
* Request parameters for mergePartners operation in PartnersApi.
|
|
1138
1399
|
* @export
|
|
@@ -1217,6 +1478,27 @@ export interface PartnersApiUpdatePartnerRequest {
|
|
|
1217
1478
|
readonly authorization?: string
|
|
1218
1479
|
}
|
|
1219
1480
|
|
|
1481
|
+
/**
|
|
1482
|
+
* Request parameters for validatePartner operation in PartnersApi.
|
|
1483
|
+
* @export
|
|
1484
|
+
* @interface PartnersApiValidatePartnerRequest
|
|
1485
|
+
*/
|
|
1486
|
+
export interface PartnersApiValidatePartnerRequest {
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @type {ValidatePartnerRequestDto}
|
|
1490
|
+
* @memberof PartnersApiValidatePartner
|
|
1491
|
+
*/
|
|
1492
|
+
readonly validatePartnerRequestDto: ValidatePartnerRequestDto
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1496
|
+
* @type {string}
|
|
1497
|
+
* @memberof PartnersApiValidatePartner
|
|
1498
|
+
*/
|
|
1499
|
+
readonly authorization?: string
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1220
1502
|
/**
|
|
1221
1503
|
* PartnersApi - object-oriented interface
|
|
1222
1504
|
* @export
|
|
@@ -1308,6 +1590,18 @@ export class PartnersApi extends BaseAPI {
|
|
|
1308
1590
|
return PartnersApiFp(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1309
1591
|
}
|
|
1310
1592
|
|
|
1593
|
+
/**
|
|
1594
|
+
* Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
|
|
1595
|
+
* @summary List sub-partners
|
|
1596
|
+
* @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
* @memberof PartnersApi
|
|
1600
|
+
*/
|
|
1601
|
+
public listSubPartners(requestParameters: PartnersApiListSubPartnersRequest, options?: AxiosRequestConfig) {
|
|
1602
|
+
return PartnersApiFp(this.configuration).listSubPartners(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1311
1605
|
/**
|
|
1312
1606
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\", \"partner-management.partners.delete\"
|
|
1313
1607
|
* @summary Update the partner
|
|
@@ -1343,4 +1637,16 @@ export class PartnersApi extends BaseAPI {
|
|
|
1343
1637
|
public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
|
|
1344
1638
|
return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1345
1639
|
}
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
|
|
1643
|
+
* @summary Validate a partner
|
|
1644
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
1645
|
+
* @param {*} [options] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
* @memberof PartnersApi
|
|
1648
|
+
*/
|
|
1649
|
+
public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
|
|
1650
|
+
return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1651
|
+
}
|
|
1346
1652
|
}
|
package/api.ts
CHANGED
|
@@ -27,6 +27,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
27
27
|
import { BlacklistApi } from './api';
|
|
28
28
|
import { BlacklistReasonsApi } from './api';
|
|
29
29
|
import { HealthApi } from './api';
|
|
30
|
+
import { PartnerHierarchiesApi } from './api';
|
|
31
|
+
import { PartnerHierarchyNodesApi } from './api';
|
|
32
|
+
import { PartnerHierarchyTypesApi } from './api';
|
|
30
33
|
import { PartnerInvitationsApi } from './api';
|
|
31
34
|
import { PartnerRelationsApi } from './api';
|
|
32
35
|
import { PartnerTagsApi } from './api';
|
|
@@ -38,6 +41,9 @@ import { PartnersApi } from './api';
|
|
|
38
41
|
export * from './api/blacklist-api';
|
|
39
42
|
export * from './api/blacklist-reasons-api';
|
|
40
43
|
export * from './api/health-api';
|
|
44
|
+
export * from './api/partner-hierarchies-api';
|
|
45
|
+
export * from './api/partner-hierarchy-nodes-api';
|
|
46
|
+
export * from './api/partner-hierarchy-types-api';
|
|
41
47
|
export * from './api/partner-invitations-api';
|
|
42
48
|
export * from './api/partner-relations-api';
|
|
43
49
|
export * from './api/partner-tags-api';
|
package/base.ts
CHANGED
|
@@ -60,6 +60,7 @@ export enum Environment {
|
|
|
60
60
|
Staging = 'https://apiv2-staging.emil.de',
|
|
61
61
|
Development = 'https://apiv2-dev.emil.de',
|
|
62
62
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
63
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
let _retry_count = 0
|
|
@@ -14,7 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBlacklistItemRequestDto } from '../models';
|
|
16
16
|
import { CreateBlacklistItemResponseClass } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
18
18
|
import { GetBlacklistItemResponseClass } from '../models';
|
|
19
19
|
import { IsBlacklistedResponseClass } from '../models';
|
|
20
20
|
import { ListBlacklistItemsResponseClass } from '../models';
|
|
@@ -97,7 +97,7 @@ export declare const BlacklistApiFp: (configuration?: Configuration) => {
|
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
100
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
|
|
101
101
|
/**
|
|
102
102
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
103
103
|
* @summary Retrieve the blacklist item
|
|
@@ -154,7 +154,7 @@ export declare const BlacklistApiFactory: (configuration?: Configuration, basePa
|
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
|
-
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
157
|
+
deleteBlacklistItem(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
|
|
158
158
|
/**
|
|
159
159
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
160
160
|
* @summary Retrieve the blacklist item
|
|
@@ -344,7 +344,7 @@ export declare class BlacklistApi extends BaseAPI {
|
|
|
344
344
|
* @throws {RequiredError}
|
|
345
345
|
* @memberof BlacklistApi
|
|
346
346
|
*/
|
|
347
|
-
deleteBlacklistItem(requestParameters: BlacklistApiDeleteBlacklistItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
347
|
+
deleteBlacklistItem(requestParameters: BlacklistApiDeleteBlacklistItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteByCodeResponseClass, any, {}>>;
|
|
348
348
|
/**
|
|
349
349
|
* Retrieves the details of the blacklist item that was previously created. Supply the unique blacklist item code that was returned when you created it and Emil Api will return the corresponding blacklist item information. **Required Permissions** \"partner-management.partners.view\"
|
|
350
350
|
* @summary Retrieve the blacklist item
|
|
@@ -14,7 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBlacklistReasonRequestDto } from '../models';
|
|
16
16
|
import { CreateBlacklistReasonResponseClass } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
18
18
|
import { GetBlacklistReasonResponseClass } from '../models';
|
|
19
19
|
import { ListBlacklistReasonsResponseClass } from '../models';
|
|
20
20
|
import { UpdateBlacklistReasonRequestDto } from '../models';
|
|
@@ -110,7 +110,7 @@ export declare const BlacklistReasonsApiFp: (configuration?: Configuration) => {
|
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
|
-
deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
113
|
+
deleteBlacklistReason(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
|
|
114
114
|
/**
|
|
115
115
|
* Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
|
|
116
116
|
* @summary Retrieve the blacklist reason
|
|
@@ -178,7 +178,7 @@ export declare const BlacklistReasonsApiFactory: (configuration?: Configuration,
|
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
181
|
+
deleteBlacklistReason(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
|
|
182
182
|
/**
|
|
183
183
|
* Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
|
|
184
184
|
* @summary Retrieve the blacklist reason
|
|
@@ -410,7 +410,7 @@ export declare class BlacklistReasonsApi extends BaseAPI {
|
|
|
410
410
|
* @throws {RequiredError}
|
|
411
411
|
* @memberof BlacklistReasonsApi
|
|
412
412
|
*/
|
|
413
|
-
deleteBlacklistReason(requestParameters: BlacklistReasonsApiDeleteBlacklistReasonRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
413
|
+
deleteBlacklistReason(requestParameters: BlacklistReasonsApiDeleteBlacklistReasonRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteByCodeResponseClass, any, {}>>;
|
|
414
414
|
/**
|
|
415
415
|
* Retrieves the details of the blacklist reason that was previously created. Supply the unique blacklist reason code that was returned when you created it and Emil Api will return the corresponding blacklist reason information. **Required Permissions** \"partner-management.partners.view\"
|
|
416
416
|
* @summary Retrieve the blacklist reason
|