@emilgroup/partner-sdk 1.23.0 → 1.23.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.
Files changed (162) hide show
  1. package/.openapi-generator/FILES +42 -1
  2. package/README.md +2 -2
  3. package/api/blacklist-api.ts +3 -3
  4. package/api/blacklist-reasons-api.ts +3 -3
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api/partner-hierarchies-api.ts +1367 -0
  7. package/api/partner-hierarchy-nodes-api.ts +1197 -0
  8. package/api/partner-hierarchy-types-api.ts +679 -0
  9. package/api/partners-api.ts +318 -12
  10. package/api.ts +8 -2
  11. package/dist/api/blacklist-api.d.ts +4 -4
  12. package/dist/api/blacklist-reasons-api.d.ts +4 -4
  13. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  14. package/dist/api/{default-api.js → health-api.js} +22 -22
  15. package/dist/api/partner-hierarchies-api.d.ts +774 -0
  16. package/dist/api/partner-hierarchies-api.js +1171 -0
  17. package/dist/api/partner-hierarchy-nodes-api.d.ts +674 -0
  18. package/dist/api/partner-hierarchy-nodes-api.js +1049 -0
  19. package/dist/api/partner-hierarchy-types-api.d.ts +385 -0
  20. package/dist/api/partner-hierarchy-types-api.js +636 -0
  21. package/dist/api/partners-api.d.ts +187 -12
  22. package/dist/api/partners-api.js +236 -9
  23. package/dist/api.d.ts +4 -1
  24. package/dist/api.js +4 -1
  25. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.d.ts +30 -0
  26. package/dist/models/batch-create-partner-hierarchy-nodes-request-dto.js +15 -0
  27. package/dist/models/create-partner-hierarchy-node-request-dto.d.ts +42 -0
  28. package/dist/models/create-partner-hierarchy-node-request-dto.js +15 -0
  29. package/dist/models/create-partner-hierarchy-node-response-class.d.ts +25 -0
  30. package/dist/models/create-partner-hierarchy-node-response-class.js +15 -0
  31. package/dist/models/create-partner-hierarchy-request-dto.d.ts +30 -0
  32. package/dist/models/create-partner-hierarchy-request-dto.js +15 -0
  33. package/dist/models/create-partner-hierarchy-response-class.d.ts +25 -0
  34. package/dist/models/create-partner-hierarchy-response-class.js +15 -0
  35. package/dist/models/create-partner-hierarchy-type-request-dto.d.ts +30 -0
  36. package/dist/models/create-partner-hierarchy-type-request-dto.js +15 -0
  37. package/dist/models/create-partner-hierarchy-type-response-class.d.ts +25 -0
  38. package/dist/models/create-partner-hierarchy-type-response-class.js +15 -0
  39. package/dist/models/delete-by-code-response-class.d.ts +24 -0
  40. package/dist/models/delete-by-code-response-class.js +15 -0
  41. package/dist/models/generate-upload-url-response-class.d.ts +36 -0
  42. package/dist/models/generate-upload-url-response-class.js +15 -0
  43. package/dist/models/get-partner-hierarchy-node-response-class.d.ts +25 -0
  44. package/dist/models/get-partner-hierarchy-node-response-class.js +15 -0
  45. package/dist/models/get-partner-hierarchy-response-class.d.ts +25 -0
  46. package/dist/models/get-partner-hierarchy-response-class.js +15 -0
  47. package/dist/models/get-partner-hierarchy-tree-file-response-class.d.ts +42 -0
  48. package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
  49. package/dist/models/get-partner-hierarchy-tree-response-class.d.ts +25 -0
  50. package/dist/models/get-partner-hierarchy-tree-response-class.js +15 -0
  51. package/dist/models/get-partner-hierarchy-type-response-class.d.ts +25 -0
  52. package/dist/models/get-partner-hierarchy-type-response-class.js +15 -0
  53. package/dist/models/index.d.ts +38 -0
  54. package/dist/models/index.js +38 -0
  55. package/dist/models/list-blacklist-items-response-class.d.ts +12 -0
  56. package/dist/models/list-partner-hierarchies-response-class.d.ts +43 -0
  57. package/dist/models/list-partner-hierarchies-response-class.js +15 -0
  58. package/dist/models/list-partner-hierarchy-node-history-response-class.d.ts +43 -0
  59. package/dist/models/list-partner-hierarchy-node-history-response-class.js +15 -0
  60. package/dist/models/list-partner-hierarchy-nodes-response-class.d.ts +43 -0
  61. package/dist/models/list-partner-hierarchy-nodes-response-class.js +15 -0
  62. package/dist/models/list-partner-hierarchy-operations-response-class.d.ts +43 -0
  63. package/dist/models/list-partner-hierarchy-operations-response-class.js +15 -0
  64. package/dist/models/list-partner-hierarchy-types-response-class.d.ts +43 -0
  65. package/dist/models/list-partner-hierarchy-types-response-class.js +15 -0
  66. package/dist/models/list-partner-relation-class.d.ts +18 -6
  67. package/dist/models/list-partner-relation-types-class.d.ts +18 -6
  68. package/dist/models/list-partner-types-response-class.d.ts +18 -6
  69. package/dist/models/list-partner-versions-response-class.d.ts +18 -6
  70. package/dist/models/list-partners-response-class.d.ts +12 -0
  71. package/dist/models/list-related-partners-response-class.d.ts +18 -6
  72. package/dist/models/list-tags-response-class.d.ts +18 -6
  73. package/dist/models/move-partner-hierarchy-node-request-dto.d.ts +30 -0
  74. package/dist/models/move-partner-hierarchy-node-request-dto.js +15 -0
  75. package/dist/models/move-partner-hierarchy-node-response-class.d.ts +25 -0
  76. package/dist/models/move-partner-hierarchy-node-response-class.js +15 -0
  77. package/dist/models/partner-class.d.ts +6 -0
  78. package/dist/models/partner-hierarchy-async-operation-response-class.d.ts +30 -0
  79. package/dist/models/partner-hierarchy-async-operation-response-class.js +15 -0
  80. package/dist/models/partner-hierarchy-class.d.ts +78 -0
  81. package/dist/models/partner-hierarchy-class.js +15 -0
  82. package/dist/models/partner-hierarchy-node-class.d.ts +109 -0
  83. package/dist/models/partner-hierarchy-node-class.js +15 -0
  84. package/dist/models/partner-hierarchy-node-history-class.d.ts +97 -0
  85. package/dist/models/partner-hierarchy-node-history-class.js +15 -0
  86. package/dist/models/partner-hierarchy-node-tree-class.d.ts +96 -0
  87. package/dist/models/partner-hierarchy-node-tree-class.js +15 -0
  88. package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
  89. package/dist/models/partner-hierarchy-operation-class.js +15 -0
  90. package/dist/models/partner-hierarchy-type-class.d.ts +66 -0
  91. package/dist/models/partner-hierarchy-type-class.js +15 -0
  92. package/dist/models/unassign-partner-hierarchy-node-response-class.d.ts +25 -0
  93. package/dist/models/unassign-partner-hierarchy-node-response-class.js +15 -0
  94. package/dist/models/update-blacklist-reason-status-request-dto.d.ts +1 -1
  95. package/dist/models/update-partner-hierarchy-node-request-dto.d.ts +30 -0
  96. package/dist/models/update-partner-hierarchy-node-request-dto.js +15 -0
  97. package/dist/models/update-partner-hierarchy-node-response-class.d.ts +25 -0
  98. package/dist/models/update-partner-hierarchy-node-response-class.js +15 -0
  99. package/dist/models/update-partner-hierarchy-request-dto.d.ts +24 -0
  100. package/dist/models/update-partner-hierarchy-request-dto.js +15 -0
  101. package/dist/models/update-partner-hierarchy-response-class.d.ts +25 -0
  102. package/dist/models/update-partner-hierarchy-response-class.js +15 -0
  103. package/dist/models/update-partner-hierarchy-tree-request-body-dto.d.ts +24 -0
  104. package/dist/models/update-partner-hierarchy-tree-request-body-dto.js +15 -0
  105. package/dist/models/update-partner-hierarchy-type-request-dto.d.ts +30 -0
  106. package/dist/models/update-partner-hierarchy-type-request-dto.js +15 -0
  107. package/dist/models/update-partner-hierarchy-type-response-class.d.ts +25 -0
  108. package/dist/models/update-partner-hierarchy-type-response-class.js +15 -0
  109. package/dist/models/validate-partner-request-dto.d.ts +48 -0
  110. package/dist/models/validate-partner-request-dto.js +15 -0
  111. package/dist/models/validate-partner-response-class.d.ts +30 -0
  112. package/dist/models/validate-partner-response-class.js +15 -0
  113. package/models/batch-create-partner-hierarchy-nodes-request-dto.ts +36 -0
  114. package/models/create-partner-hierarchy-node-request-dto.ts +48 -0
  115. package/models/create-partner-hierarchy-node-response-class.ts +31 -0
  116. package/models/create-partner-hierarchy-request-dto.ts +36 -0
  117. package/models/create-partner-hierarchy-response-class.ts +31 -0
  118. package/models/create-partner-hierarchy-type-request-dto.ts +36 -0
  119. package/models/create-partner-hierarchy-type-response-class.ts +31 -0
  120. package/models/delete-by-code-response-class.ts +30 -0
  121. package/models/generate-upload-url-response-class.ts +42 -0
  122. package/models/get-partner-hierarchy-node-response-class.ts +31 -0
  123. package/models/get-partner-hierarchy-response-class.ts +31 -0
  124. package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
  125. package/models/get-partner-hierarchy-tree-response-class.ts +31 -0
  126. package/models/get-partner-hierarchy-type-response-class.ts +31 -0
  127. package/models/index.ts +38 -0
  128. package/models/list-blacklist-items-response-class.ts +12 -0
  129. package/models/list-partner-hierarchies-response-class.ts +49 -0
  130. package/models/list-partner-hierarchy-node-history-response-class.ts +49 -0
  131. package/models/list-partner-hierarchy-nodes-response-class.ts +49 -0
  132. package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
  133. package/models/list-partner-hierarchy-types-response-class.ts +49 -0
  134. package/models/list-partner-relation-class.ts +18 -6
  135. package/models/list-partner-relation-types-class.ts +18 -6
  136. package/models/list-partner-types-response-class.ts +18 -6
  137. package/models/list-partner-versions-response-class.ts +18 -6
  138. package/models/list-partners-response-class.ts +12 -0
  139. package/models/list-related-partners-response-class.ts +18 -6
  140. package/models/list-tags-response-class.ts +18 -6
  141. package/models/move-partner-hierarchy-node-request-dto.ts +36 -0
  142. package/models/move-partner-hierarchy-node-response-class.ts +31 -0
  143. package/models/partner-class.ts +6 -0
  144. package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
  145. package/models/partner-hierarchy-class.ts +84 -0
  146. package/models/partner-hierarchy-node-class.ts +115 -0
  147. package/models/partner-hierarchy-node-history-class.ts +103 -0
  148. package/models/partner-hierarchy-node-tree-class.ts +102 -0
  149. package/models/partner-hierarchy-operation-class.ts +96 -0
  150. package/models/partner-hierarchy-type-class.ts +72 -0
  151. package/models/unassign-partner-hierarchy-node-response-class.ts +31 -0
  152. package/models/update-blacklist-reason-status-request-dto.ts +1 -1
  153. package/models/update-partner-hierarchy-node-request-dto.ts +36 -0
  154. package/models/update-partner-hierarchy-node-response-class.ts +31 -0
  155. package/models/update-partner-hierarchy-request-dto.ts +30 -0
  156. package/models/update-partner-hierarchy-response-class.ts +31 -0
  157. package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
  158. package/models/update-partner-hierarchy-type-request-dto.ts +36 -0
  159. package/models/update-partner-hierarchy-type-response-class.ts +31 -0
  160. package/models/validate-partner-request-dto.ts +54 -0
  161. package/models/validate-partner-response-class.ts +36 -0
  162. package/package.json +2 -2
@@ -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
  /**
52
56
  * PartnersApi - axios parameter creator
53
57
  * @export
@@ -294,11 +298,11 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
294
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
299
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
296
300
  * @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.
297
- * @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>
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, subPartnersCount</i>
298
302
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
299
- * @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>
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, subPartnersCount</i>
300
304
  * @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>
301
- * @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>
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, subPartnersCount</i>
302
306
  * @param {*} [options] Override http request option.
303
307
  * @throws {RequiredError}
304
308
  */
@@ -435,6 +439,86 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
435
439
 
436
440
 
437
441
 
442
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
444
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
445
+
446
+ return {
447
+ url: toPathString(localVarUrlObj),
448
+ options: localVarRequestOptions,
449
+ };
450
+ },
451
+ /**
452
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
453
+ * @summary List sub-partners
454
+ * @param {string} code Unique identifier for the object.
455
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
456
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
457
+ * @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.
458
+ * @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>
459
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
460
+ * @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>
461
+ * @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>
462
+ * @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>
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ listSubPartners: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
467
+ // verify required parameter 'code' is not null or undefined
468
+ assertParamExists('listSubPartners', 'code', code)
469
+ const localVarPath = `/partnerservice/v1/partners/{code}/sub-partners`
470
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
471
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
472
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
473
+ let baseOptions;
474
+ let baseAccessToken;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ baseAccessToken = configuration.accessToken;
478
+ }
479
+
480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
481
+ const localVarHeaderParameter = {} as any;
482
+ const localVarQueryParameter = {} as any;
483
+
484
+ // authentication bearer required
485
+ // http bearer authentication required
486
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
487
+
488
+ if (pageSize !== undefined) {
489
+ localVarQueryParameter['pageSize'] = pageSize;
490
+ }
491
+
492
+ if (pageToken !== undefined) {
493
+ localVarQueryParameter['pageToken'] = pageToken;
494
+ }
495
+
496
+ if (filter !== undefined) {
497
+ localVarQueryParameter['filter'] = filter;
498
+ }
499
+
500
+ if (search !== undefined) {
501
+ localVarQueryParameter['search'] = search;
502
+ }
503
+
504
+ if (order !== undefined) {
505
+ localVarQueryParameter['order'] = order;
506
+ }
507
+
508
+ if (expand !== undefined) {
509
+ localVarQueryParameter['expand'] = expand;
510
+ }
511
+
512
+ if (filters !== undefined) {
513
+ localVarQueryParameter['filters'] = filters;
514
+ }
515
+
516
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
517
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
518
+ }
519
+
520
+
521
+
438
522
  setSearchParams(localVarUrlObj, localVarQueryParameter);
439
523
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
440
524
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -592,6 +676,53 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
592
676
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
593
677
  localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerRequestDto, localVarRequestOptions, configuration)
594
678
 
679
+ return {
680
+ url: toPathString(localVarUrlObj),
681
+ options: localVarRequestOptions,
682
+ };
683
+ },
684
+ /**
685
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
686
+ * @summary Validate a partner
687
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
693
+ // verify required parameter 'validatePartnerRequestDto' is not null or undefined
694
+ assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
695
+ const localVarPath = `/partnerservice/v1/partners/validate`;
696
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
697
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
698
+ let baseOptions;
699
+ let baseAccessToken;
700
+ if (configuration) {
701
+ baseOptions = configuration.baseOptions;
702
+ baseAccessToken = configuration.accessToken;
703
+ }
704
+
705
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
706
+ const localVarHeaderParameter = {} as any;
707
+ const localVarQueryParameter = {} as any;
708
+
709
+ // authentication bearer required
710
+ // http bearer authentication required
711
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
712
+
713
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
714
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
715
+ }
716
+
717
+
718
+
719
+ localVarHeaderParameter['Content-Type'] = 'application/json';
720
+
721
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
724
+ localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
725
+
595
726
  return {
596
727
  url: toPathString(localVarUrlObj),
597
728
  options: localVarRequestOptions,
@@ -674,11 +805,11 @@ export const PartnersApiFp = function(configuration?: Configuration) {
674
805
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
675
806
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
676
807
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
677
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
808
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
678
809
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
679
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
810
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
680
811
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
681
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
812
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
682
813
  * @param {*} [options] Override http request option.
683
814
  * @throws {RequiredError}
684
815
  */
@@ -705,6 +836,25 @@ export const PartnersApiFp = function(configuration?: Configuration) {
705
836
  const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
706
837
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
707
838
  },
839
+ /**
840
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
841
+ * @summary List sub-partners
842
+ * @param {string} code Unique identifier for the object.
843
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
844
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
845
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
846
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
847
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
848
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
849
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
850
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ 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>> {
855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
856
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
857
+ },
708
858
  /**
709
859
  * 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\"
710
860
  * @summary Update the partner
@@ -744,6 +894,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
744
894
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(code, updatePartnerRequestDto, authorization, options);
745
895
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
746
896
  },
897
+ /**
898
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
899
+ * @summary Validate a partner
900
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
901
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
907
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
908
+ },
747
909
  }
748
910
  };
749
911
 
@@ -816,11 +978,11 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
816
978
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
817
979
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
818
980
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
819
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
981
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
820
982
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
821
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
983
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
822
984
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
823
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
985
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
824
986
  * @param {*} [options] Override http request option.
825
987
  * @throws {RequiredError}
826
988
  */
@@ -845,6 +1007,24 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
845
1007
  listRelationsForPartner(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
846
1008
  return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
847
1009
  },
1010
+ /**
1011
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
1012
+ * @summary List sub-partners
1013
+ * @param {string} code Unique identifier for the object.
1014
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1015
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1016
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1017
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1018
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1019
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
1020
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
1021
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1022
+ * @param {*} [options] Override http request option.
1023
+ * @throws {RequiredError}
1024
+ */
1025
+ listSubPartners(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
1026
+ return localVarFp.listSubPartners(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1027
+ },
848
1028
  /**
849
1029
  * 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\"
850
1030
  * @summary Update the partner
@@ -881,6 +1061,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
881
1061
  updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass> {
882
1062
  return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
883
1063
  },
1064
+ /**
1065
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1066
+ * @summary Validate a partner
1067
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
1068
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
1073
+ return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
1074
+ },
884
1075
  };
885
1076
  };
886
1077
 
@@ -1024,7 +1215,7 @@ export interface PartnersApiListPartnersRequest {
1024
1215
  readonly pageToken?: string
1025
1216
 
1026
1217
  /**
1027
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
1218
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1028
1219
  * @type {string}
1029
1220
  * @memberof PartnersApiListPartners
1030
1221
  */
@@ -1038,7 +1229,7 @@ export interface PartnersApiListPartnersRequest {
1038
1229
  readonly search?: string
1039
1230
 
1040
1231
  /**
1041
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels&lt;/i&gt;
1232
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
1042
1233
  * @type {string}
1043
1234
  * @memberof PartnersApiListPartners
1044
1235
  */
@@ -1052,7 +1243,7 @@ export interface PartnersApiListPartnersRequest {
1052
1243
  readonly expand?: string
1053
1244
 
1054
1245
  /**
1055
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode&lt;/i&gt;
1246
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1056
1247
  * @type {string}
1057
1248
  * @memberof PartnersApiListPartners
1058
1249
  */
@@ -1129,6 +1320,76 @@ export interface PartnersApiListRelationsForPartnerRequest {
1129
1320
  readonly filters?: string
1130
1321
  }
1131
1322
 
1323
+ /**
1324
+ * Request parameters for listSubPartners operation in PartnersApi.
1325
+ * @export
1326
+ * @interface PartnersApiListSubPartnersRequest
1327
+ */
1328
+ export interface PartnersApiListSubPartnersRequest {
1329
+ /**
1330
+ * Unique identifier for the object.
1331
+ * @type {string}
1332
+ * @memberof PartnersApiListSubPartners
1333
+ */
1334
+ readonly code: string
1335
+
1336
+ /**
1337
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1338
+ * @type {string}
1339
+ * @memberof PartnersApiListSubPartners
1340
+ */
1341
+ readonly authorization?: string
1342
+
1343
+ /**
1344
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1345
+ * @type {number}
1346
+ * @memberof PartnersApiListSubPartners
1347
+ */
1348
+ readonly pageSize?: number
1349
+
1350
+ /**
1351
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1352
+ * @type {string}
1353
+ * @memberof PartnersApiListSubPartners
1354
+ */
1355
+ readonly pageToken?: string
1356
+
1357
+ /**
1358
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1359
+ * @type {string}
1360
+ * @memberof PartnersApiListSubPartners
1361
+ */
1362
+ readonly filter?: string
1363
+
1364
+ /**
1365
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1366
+ * @type {string}
1367
+ * @memberof PartnersApiListSubPartners
1368
+ */
1369
+ readonly search?: string
1370
+
1371
+ /**
1372
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs, partnerNumber, partnerType.name, partnerTagLabels.tagLabels, subPartnersCount&lt;/i&gt;
1373
+ * @type {string}
1374
+ * @memberof PartnersApiListSubPartners
1375
+ */
1376
+ readonly order?: string
1377
+
1378
+ /**
1379
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partnerType, tags, partnerTagLabels&lt;i&gt;
1380
+ * @type {string}
1381
+ * @memberof PartnersApiListSubPartners
1382
+ */
1383
+ readonly expand?: string
1384
+
1385
+ /**
1386
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeCodes, partnerTypeId, tenantUserCode, partnerNumber, accountCode, subPartnersCount&lt;/i&gt;
1387
+ * @type {string}
1388
+ * @memberof PartnersApiListSubPartners
1389
+ */
1390
+ readonly filters?: string
1391
+ }
1392
+
1132
1393
  /**
1133
1394
  * Request parameters for mergePartners operation in PartnersApi.
1134
1395
  * @export
@@ -1213,6 +1474,27 @@ export interface PartnersApiUpdatePartnerRequest {
1213
1474
  readonly authorization?: string
1214
1475
  }
1215
1476
 
1477
+ /**
1478
+ * Request parameters for validatePartner operation in PartnersApi.
1479
+ * @export
1480
+ * @interface PartnersApiValidatePartnerRequest
1481
+ */
1482
+ export interface PartnersApiValidatePartnerRequest {
1483
+ /**
1484
+ *
1485
+ * @type {ValidatePartnerRequestDto}
1486
+ * @memberof PartnersApiValidatePartner
1487
+ */
1488
+ readonly validatePartnerRequestDto: ValidatePartnerRequestDto
1489
+
1490
+ /**
1491
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1492
+ * @type {string}
1493
+ * @memberof PartnersApiValidatePartner
1494
+ */
1495
+ readonly authorization?: string
1496
+ }
1497
+
1216
1498
  /**
1217
1499
  * PartnersApi - object-oriented interface
1218
1500
  * @export
@@ -1304,6 +1586,18 @@ export class PartnersApi extends BaseAPI {
1304
1586
  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));
1305
1587
  }
1306
1588
 
1589
+ /**
1590
+ * Returns a paginated list of sub-partners assigned under the selected partner across partner hierarchies. **Required Permissions** \"partner-management.partners.view\"
1591
+ * @summary List sub-partners
1592
+ * @param {PartnersApiListSubPartnersRequest} requestParameters Request parameters.
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ * @memberof PartnersApi
1596
+ */
1597
+ public listSubPartners(requestParameters: PartnersApiListSubPartnersRequest, options?: AxiosRequestConfig) {
1598
+ 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));
1599
+ }
1600
+
1307
1601
  /**
1308
1602
  * 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\"
1309
1603
  * @summary Update the partner
@@ -1339,4 +1633,16 @@ export class PartnersApi extends BaseAPI {
1339
1633
  public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
1340
1634
  return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1341
1635
  }
1636
+
1637
+ /**
1638
+ * Validates a partner identity by partnerNumber and optional field values. All provided fields must match (AND logic). If no validation fields are provided, the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message. **Required Permissions** none
1639
+ * @summary Validate a partner
1640
+ * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
1641
+ * @param {*} [options] Override http request option.
1642
+ * @throws {RequiredError}
1643
+ * @memberof PartnersApi
1644
+ */
1645
+ public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
1646
+ return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1647
+ }
1342
1648
  }
package/api.ts CHANGED
@@ -22,7 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { BlacklistApi } from './api';
24
24
  import { BlacklistReasonsApi } from './api';
25
- import { DefaultApi } from './api';
25
+ import { HealthApi } from './api';
26
+ import { PartnerHierarchiesApi } from './api';
27
+ import { PartnerHierarchyNodesApi } from './api';
28
+ import { PartnerHierarchyTypesApi } from './api';
26
29
  import { PartnerInvitationsApi } from './api';
27
30
  import { PartnerRelationsApi } from './api';
28
31
  import { PartnerTagsApi } from './api';
@@ -33,7 +36,10 @@ import { PartnersApi } from './api';
33
36
 
34
37
  export * from './api/blacklist-api';
35
38
  export * from './api/blacklist-reasons-api';
36
- export * from './api/default-api';
39
+ export * from './api/health-api';
40
+ export * from './api/partner-hierarchies-api';
41
+ export * from './api/partner-hierarchy-nodes-api';
42
+ export * from './api/partner-hierarchy-types-api';
37
43
  export * from './api/partner-invitations-api';
38
44
  export * from './api/partner-relations-api';
39
45
  export * from './api/partner-tags-api';
@@ -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 { DeleteResponseClass } from '../models';
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<DeleteResponseClass>>;
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<DeleteResponseClass>;
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<DeleteResponseClass, any, {}>>;
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 { DeleteResponseClass } from '../models';
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<DeleteResponseClass>>;
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<DeleteResponseClass>;
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<DeleteResponseClass, any, {}>>;
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
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { InlineResponse200 } from '../models';
16
16
  /**
17
- * DefaultApi - axios parameter creator
17
+ * HealthApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
23
  * @summary Health Check
@@ -27,10 +27,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
27
27
  check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
28
  };
29
29
  /**
30
- * DefaultApi - functional programming interface
30
+ * HealthApi - functional programming interface
31
31
  * @export
32
32
  */
33
- export declare const DefaultApiFp: (configuration?: Configuration) => {
33
+ export declare const HealthApiFp: (configuration?: Configuration) => {
34
34
  /**
35
35
  * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
36
  * @summary Health Check
@@ -40,10 +40,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
40
40
  check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
41
41
  };
42
42
  /**
43
- * DefaultApi - factory interface
43
+ * HealthApi - factory interface
44
44
  * @export
45
45
  */
46
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
46
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
47
  /**
48
48
  * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
49
  * @summary Health Check
@@ -53,18 +53,18 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
53
53
  check(options?: any): AxiosPromise<InlineResponse200>;
54
54
  };
55
55
  /**
56
- * DefaultApi - object-oriented interface
56
+ * HealthApi - object-oriented interface
57
57
  * @export
58
- * @class DefaultApi
58
+ * @class HealthApi
59
59
  * @extends {BaseAPI}
60
60
  */
61
- export declare class DefaultApi extends BaseAPI {
61
+ export declare class HealthApi extends BaseAPI {
62
62
  /**
63
63
  * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
64
  * @summary Health Check
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
- * @memberof DefaultApi
67
+ * @memberof HealthApi
68
68
  */
69
69
  check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
70
70
  }