@emilgroup/partner-sdk-node 1.22.1-beta.16 → 1.22.1-beta.18
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 +9 -0
- package/README.md +2 -2
- package/api/partner-hierarchies-api.ts +89 -64
- package/api/partner-hierarchy-nodes-api.ts +58 -39
- package/api/partner-hierarchy-types-api.ts +20 -20
- package/api/partners-api.ts +107 -0
- package/dist/api/partner-hierarchies-api.d.ts +79 -65
- package/dist/api/partner-hierarchies-api.js +65 -58
- package/dist/api/partner-hierarchy-nodes-api.d.ts +47 -36
- package/dist/api/partner-hierarchy-nodes-api.js +45 -39
- package/dist/api/partner-hierarchy-types-api.d.ts +20 -20
- package/dist/api/partner-hierarchy-types-api.js +20 -20
- package/dist/api/partners-api.d.ts +57 -0
- package/dist/api/partners-api.js +93 -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/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-tree-file-response-class.d.ts +42 -0
- package/dist/models/get-partner-hierarchy-tree-file-response-class.js +15 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -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/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 +1 -1
- package/dist/models/partner-hierarchy-node-class.d.ts +4 -4
- package/dist/models/partner-hierarchy-node-history-class.d.ts +3 -3
- package/dist/models/partner-hierarchy-node-tree-class.d.ts +6 -6
- package/dist/models/partner-hierarchy-operation-class.d.ts +90 -0
- package/dist/models/partner-hierarchy-operation-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/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/generate-upload-url-response-class.ts +42 -0
- package/models/get-partner-hierarchy-tree-file-response-class.ts +48 -0
- package/models/index.ts +9 -0
- package/models/list-partner-hierarchy-operations-response-class.ts +49 -0
- package/models/partner-hierarchy-async-operation-response-class.ts +36 -0
- package/models/partner-hierarchy-class.ts +1 -1
- package/models/partner-hierarchy-node-class.ts +4 -4
- package/models/partner-hierarchy-node-history-class.ts +3 -3
- package/models/partner-hierarchy-node-tree-class.ts +6 -6
- package/models/partner-hierarchy-operation-class.ts +96 -0
- package/models/update-partner-hierarchy-tree-request-body-dto.ts +30 -0
- package/models/validate-partner-request-dto.ts +36 -0
- package/models/validate-partner-response-class.ts +36 -0
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ var PartnerHierarchyTypesApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* Creates a new partner hierarchy type. The schema defines the level structure and valid role codes for all hierarchies of this type. **Required Permissions** \"partner-management.partners.create\"
|
|
101
|
-
* @summary Create
|
|
101
|
+
* @summary Create a partner hierarchy type
|
|
102
102
|
* @param {CreatePartnerHierarchyTypeRequestDto} createPartnerHierarchyTypeRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
@@ -147,7 +147,7 @@ var PartnerHierarchyTypesApiAxiosParamCreator = function (configuration) {
|
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
149
|
* Soft-deletes a partner hierarchy type. Blocked if any partner hierarchy instances reference this type. **Required Permissions** \"partner-management.partners.delete\"
|
|
150
|
-
* @summary Delete
|
|
150
|
+
* @summary Delete a partner hierarchy type
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
@@ -195,7 +195,7 @@ var PartnerHierarchyTypesApiAxiosParamCreator = function (configuration) {
|
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
197
|
* Returns a partner hierarchy type by its code, including the full schema. **Required Permissions** \"partner-management.partners.view\"
|
|
198
|
-
* @summary
|
|
198
|
+
* @summary Get a partner hierarchy type
|
|
199
199
|
* @param {string} code Unique identifier for the object.
|
|
200
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
@@ -243,7 +243,7 @@ var PartnerHierarchyTypesApiAxiosParamCreator = function (configuration) {
|
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
245
|
* Returns a paginated list of partner hierarchy types. **Required Permissions** \"partner-management.partners.view\"
|
|
246
|
-
* @summary List partner
|
|
246
|
+
* @summary List partner hierarchy types
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
248
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
249
|
* @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.
|
|
@@ -315,7 +315,7 @@ var PartnerHierarchyTypesApiAxiosParamCreator = function (configuration) {
|
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
317
|
* Updates name or schema of a partner hierarchy type. Removing a depth level is blocked if any partner hierarchy nodes exist at that depth. Removing a role code is blocked if any partner hierarchy nodes use that role. **Required Permissions** \"partner-management.partners.update\"
|
|
318
|
-
* @summary Update
|
|
318
|
+
* @summary Update a partner hierarchy type
|
|
319
319
|
* @param {string} code Unique identifier for the object.
|
|
320
320
|
* @param {UpdatePartnerHierarchyTypeRequestDto} updatePartnerHierarchyTypeRequestDto
|
|
321
321
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -378,7 +378,7 @@ var PartnerHierarchyTypesApiFp = function (configuration) {
|
|
|
378
378
|
return {
|
|
379
379
|
/**
|
|
380
380
|
* Creates a new partner hierarchy type. The schema defines the level structure and valid role codes for all hierarchies of this type. **Required Permissions** \"partner-management.partners.create\"
|
|
381
|
-
* @summary Create
|
|
381
|
+
* @summary Create a partner hierarchy type
|
|
382
382
|
* @param {CreatePartnerHierarchyTypeRequestDto} createPartnerHierarchyTypeRequestDto
|
|
383
383
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
@@ -399,7 +399,7 @@ var PartnerHierarchyTypesApiFp = function (configuration) {
|
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
401
|
* Soft-deletes a partner hierarchy type. Blocked if any partner hierarchy instances reference this type. **Required Permissions** \"partner-management.partners.delete\"
|
|
402
|
-
* @summary Delete
|
|
402
|
+
* @summary Delete a partner hierarchy type
|
|
403
403
|
* @param {string} code Unique identifier for the object.
|
|
404
404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
405
405
|
* @param {*} [options] Override http request option.
|
|
@@ -420,7 +420,7 @@ var PartnerHierarchyTypesApiFp = function (configuration) {
|
|
|
420
420
|
},
|
|
421
421
|
/**
|
|
422
422
|
* Returns a partner hierarchy type by its code, including the full schema. **Required Permissions** \"partner-management.partners.view\"
|
|
423
|
-
* @summary
|
|
423
|
+
* @summary Get a partner hierarchy type
|
|
424
424
|
* @param {string} code Unique identifier for the object.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
@@ -441,7 +441,7 @@ var PartnerHierarchyTypesApiFp = function (configuration) {
|
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
443
443
|
* Returns a paginated list of partner hierarchy types. **Required Permissions** \"partner-management.partners.view\"
|
|
444
|
-
* @summary List partner
|
|
444
|
+
* @summary List partner hierarchy types
|
|
445
445
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
446
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
447
447
|
* @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.
|
|
@@ -468,7 +468,7 @@ var PartnerHierarchyTypesApiFp = function (configuration) {
|
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
470
|
* Updates name or schema of a partner hierarchy type. Removing a depth level is blocked if any partner hierarchy nodes exist at that depth. Removing a role code is blocked if any partner hierarchy nodes use that role. **Required Permissions** \"partner-management.partners.update\"
|
|
471
|
-
* @summary Update
|
|
471
|
+
* @summary Update a partner hierarchy type
|
|
472
472
|
* @param {string} code Unique identifier for the object.
|
|
473
473
|
* @param {UpdatePartnerHierarchyTypeRequestDto} updatePartnerHierarchyTypeRequestDto
|
|
474
474
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -500,7 +500,7 @@ var PartnerHierarchyTypesApiFactory = function (configuration, basePath, axios)
|
|
|
500
500
|
return {
|
|
501
501
|
/**
|
|
502
502
|
* Creates a new partner hierarchy type. The schema defines the level structure and valid role codes for all hierarchies of this type. **Required Permissions** \"partner-management.partners.create\"
|
|
503
|
-
* @summary Create
|
|
503
|
+
* @summary Create a partner hierarchy type
|
|
504
504
|
* @param {CreatePartnerHierarchyTypeRequestDto} createPartnerHierarchyTypeRequestDto
|
|
505
505
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
506
|
* @param {*} [options] Override http request option.
|
|
@@ -511,7 +511,7 @@ var PartnerHierarchyTypesApiFactory = function (configuration, basePath, axios)
|
|
|
511
511
|
},
|
|
512
512
|
/**
|
|
513
513
|
* Soft-deletes a partner hierarchy type. Blocked if any partner hierarchy instances reference this type. **Required Permissions** \"partner-management.partners.delete\"
|
|
514
|
-
* @summary Delete
|
|
514
|
+
* @summary Delete a partner hierarchy type
|
|
515
515
|
* @param {string} code Unique identifier for the object.
|
|
516
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
517
517
|
* @param {*} [options] Override http request option.
|
|
@@ -522,7 +522,7 @@ var PartnerHierarchyTypesApiFactory = function (configuration, basePath, axios)
|
|
|
522
522
|
},
|
|
523
523
|
/**
|
|
524
524
|
* Returns a partner hierarchy type by its code, including the full schema. **Required Permissions** \"partner-management.partners.view\"
|
|
525
|
-
* @summary
|
|
525
|
+
* @summary Get a partner hierarchy type
|
|
526
526
|
* @param {string} code Unique identifier for the object.
|
|
527
527
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
528
528
|
* @param {*} [options] Override http request option.
|
|
@@ -533,7 +533,7 @@ var PartnerHierarchyTypesApiFactory = function (configuration, basePath, axios)
|
|
|
533
533
|
},
|
|
534
534
|
/**
|
|
535
535
|
* Returns a paginated list of partner hierarchy types. **Required Permissions** \"partner-management.partners.view\"
|
|
536
|
-
* @summary List partner
|
|
536
|
+
* @summary List partner hierarchy types
|
|
537
537
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
538
538
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
539
539
|
* @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.
|
|
@@ -550,7 +550,7 @@ var PartnerHierarchyTypesApiFactory = function (configuration, basePath, axios)
|
|
|
550
550
|
},
|
|
551
551
|
/**
|
|
552
552
|
* Updates name or schema of a partner hierarchy type. Removing a depth level is blocked if any partner hierarchy nodes exist at that depth. Removing a role code is blocked if any partner hierarchy nodes use that role. **Required Permissions** \"partner-management.partners.update\"
|
|
553
|
-
* @summary Update
|
|
553
|
+
* @summary Update a partner hierarchy type
|
|
554
554
|
* @param {string} code Unique identifier for the object.
|
|
555
555
|
* @param {UpdatePartnerHierarchyTypeRequestDto} updatePartnerHierarchyTypeRequestDto
|
|
556
556
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -576,7 +576,7 @@ var PartnerHierarchyTypesApi = /** @class */ (function (_super) {
|
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
578
|
* Creates a new partner hierarchy type. The schema defines the level structure and valid role codes for all hierarchies of this type. **Required Permissions** \"partner-management.partners.create\"
|
|
579
|
-
* @summary Create
|
|
579
|
+
* @summary Create a partner hierarchy type
|
|
580
580
|
* @param {PartnerHierarchyTypesApiCreatePartnerHierarchyTypeRequest} requestParameters Request parameters.
|
|
581
581
|
* @param {*} [options] Override http request option.
|
|
582
582
|
* @throws {RequiredError}
|
|
@@ -588,7 +588,7 @@ var PartnerHierarchyTypesApi = /** @class */ (function (_super) {
|
|
|
588
588
|
};
|
|
589
589
|
/**
|
|
590
590
|
* Soft-deletes a partner hierarchy type. Blocked if any partner hierarchy instances reference this type. **Required Permissions** \"partner-management.partners.delete\"
|
|
591
|
-
* @summary Delete
|
|
591
|
+
* @summary Delete a partner hierarchy type
|
|
592
592
|
* @param {PartnerHierarchyTypesApiDeletePartnerHierarchyTypeRequest} requestParameters Request parameters.
|
|
593
593
|
* @param {*} [options] Override http request option.
|
|
594
594
|
* @throws {RequiredError}
|
|
@@ -600,7 +600,7 @@ var PartnerHierarchyTypesApi = /** @class */ (function (_super) {
|
|
|
600
600
|
};
|
|
601
601
|
/**
|
|
602
602
|
* Returns a partner hierarchy type by its code, including the full schema. **Required Permissions** \"partner-management.partners.view\"
|
|
603
|
-
* @summary
|
|
603
|
+
* @summary Get a partner hierarchy type
|
|
604
604
|
* @param {PartnerHierarchyTypesApiGetPartnerHierarchyTypeRequest} requestParameters Request parameters.
|
|
605
605
|
* @param {*} [options] Override http request option.
|
|
606
606
|
* @throws {RequiredError}
|
|
@@ -612,7 +612,7 @@ var PartnerHierarchyTypesApi = /** @class */ (function (_super) {
|
|
|
612
612
|
};
|
|
613
613
|
/**
|
|
614
614
|
* Returns a paginated list of partner hierarchy types. **Required Permissions** \"partner-management.partners.view\"
|
|
615
|
-
* @summary List partner
|
|
615
|
+
* @summary List partner hierarchy types
|
|
616
616
|
* @param {PartnerHierarchyTypesApiListPartnerHierarchyTypesRequest} requestParameters Request parameters.
|
|
617
617
|
* @param {*} [options] Override http request option.
|
|
618
618
|
* @throws {RequiredError}
|
|
@@ -625,7 +625,7 @@ var PartnerHierarchyTypesApi = /** @class */ (function (_super) {
|
|
|
625
625
|
};
|
|
626
626
|
/**
|
|
627
627
|
* Updates name or schema of a partner hierarchy type. Removing a depth level is blocked if any partner hierarchy nodes exist at that depth. Removing a role code is blocked if any partner hierarchy nodes use that role. **Required Permissions** \"partner-management.partners.update\"
|
|
628
|
-
* @summary Update
|
|
628
|
+
* @summary Update a partner hierarchy type
|
|
629
629
|
* @param {PartnerHierarchyTypesApiUpdatePartnerHierarchyTypeRequest} requestParameters Request parameters.
|
|
630
630
|
* @param {*} [options] Override http request option.
|
|
631
631
|
* @throws {RequiredError}
|
|
@@ -26,6 +26,8 @@ import { MergePartnersResponseClass } from '../models';
|
|
|
26
26
|
import { TagPartnerRequestDtoRest } from '../models';
|
|
27
27
|
import { UpdatePartnerRequestDto } from '../models';
|
|
28
28
|
import { UpdatePartnerResponseClass } from '../models';
|
|
29
|
+
import { ValidatePartnerRequestDto } from '../models';
|
|
30
|
+
import { ValidatePartnerResponseClass } from '../models';
|
|
29
31
|
/**
|
|
30
32
|
* PartnersApi - axios parameter creator
|
|
31
33
|
* @export
|
|
@@ -138,6 +140,15 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
138
140
|
* @throws {RequiredError}
|
|
139
141
|
*/
|
|
140
142
|
updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
143
|
+
/**
|
|
144
|
+
* 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
|
|
145
|
+
* @summary Validate a partner
|
|
146
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
validatePartner: (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
141
152
|
};
|
|
142
153
|
/**
|
|
143
154
|
* PartnersApi - functional programming interface
|
|
@@ -251,6 +262,15 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
251
262
|
* @throws {RequiredError}
|
|
252
263
|
*/
|
|
253
264
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
|
|
265
|
+
/**
|
|
266
|
+
* 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
|
|
267
|
+
* @summary Validate a partner
|
|
268
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
269
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>>;
|
|
254
274
|
};
|
|
255
275
|
/**
|
|
256
276
|
* PartnersApi - factory interface
|
|
@@ -364,6 +384,15 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
364
384
|
* @throws {RequiredError}
|
|
365
385
|
*/
|
|
366
386
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
|
|
387
|
+
/**
|
|
388
|
+
* 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
|
|
389
|
+
* @summary Validate a partner
|
|
390
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
391
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass>;
|
|
367
396
|
};
|
|
368
397
|
/**
|
|
369
398
|
* Request parameters for createOrUpdatePartnerFromAccount operation in PartnersApi.
|
|
@@ -657,6 +686,25 @@ export interface PartnersApiUpdatePartnerRequest {
|
|
|
657
686
|
*/
|
|
658
687
|
readonly authorization?: string;
|
|
659
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Request parameters for validatePartner operation in PartnersApi.
|
|
691
|
+
* @export
|
|
692
|
+
* @interface PartnersApiValidatePartnerRequest
|
|
693
|
+
*/
|
|
694
|
+
export interface PartnersApiValidatePartnerRequest {
|
|
695
|
+
/**
|
|
696
|
+
*
|
|
697
|
+
* @type {ValidatePartnerRequestDto}
|
|
698
|
+
* @memberof PartnersApiValidatePartner
|
|
699
|
+
*/
|
|
700
|
+
readonly validatePartnerRequestDto: ValidatePartnerRequestDto;
|
|
701
|
+
/**
|
|
702
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
703
|
+
* @type {string}
|
|
704
|
+
* @memberof PartnersApiValidatePartner
|
|
705
|
+
*/
|
|
706
|
+
readonly authorization?: string;
|
|
707
|
+
}
|
|
660
708
|
/**
|
|
661
709
|
* PartnersApi - object-oriented interface
|
|
662
710
|
* @export
|
|
@@ -754,4 +802,13 @@ export declare class PartnersApi extends BaseAPI {
|
|
|
754
802
|
* @memberof PartnersApi
|
|
755
803
|
*/
|
|
756
804
|
updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any, {}>>;
|
|
805
|
+
/**
|
|
806
|
+
* 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
|
|
807
|
+
* @summary Validate a partner
|
|
808
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @memberof PartnersApi
|
|
812
|
+
*/
|
|
813
|
+
validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidatePartnerResponseClass, any, {}>>;
|
|
757
814
|
}
|
package/dist/api/partners-api.js
CHANGED
|
@@ -649,6 +649,55 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
649
649
|
});
|
|
650
650
|
});
|
|
651
651
|
},
|
|
652
|
+
/**
|
|
653
|
+
* 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
|
|
654
|
+
* @summary Validate a partner
|
|
655
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
656
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
validatePartner: function (validatePartnerRequestDto, authorization, options) {
|
|
661
|
+
if (options === void 0) { options = {}; }
|
|
662
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
663
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
664
|
+
return __generator(this, function (_a) {
|
|
665
|
+
switch (_a.label) {
|
|
666
|
+
case 0:
|
|
667
|
+
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
668
|
+
(0, common_1.assertParamExists)('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto);
|
|
669
|
+
localVarPath = "/partnerservice/v1/partners/validate";
|
|
670
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
671
|
+
if (configuration) {
|
|
672
|
+
baseOptions = configuration.baseOptions;
|
|
673
|
+
baseAccessToken = configuration.accessToken;
|
|
674
|
+
}
|
|
675
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
676
|
+
localVarHeaderParameter = {};
|
|
677
|
+
localVarQueryParameter = {};
|
|
678
|
+
// authentication bearer required
|
|
679
|
+
// http bearer authentication required
|
|
680
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
681
|
+
case 1:
|
|
682
|
+
// authentication bearer required
|
|
683
|
+
// http bearer authentication required
|
|
684
|
+
_a.sent();
|
|
685
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
686
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
687
|
+
}
|
|
688
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
689
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
690
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
691
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
692
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validatePartnerRequestDto, localVarRequestOptions, configuration);
|
|
693
|
+
return [2 /*return*/, {
|
|
694
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
695
|
+
options: localVarRequestOptions,
|
|
696
|
+
}];
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
});
|
|
700
|
+
},
|
|
652
701
|
};
|
|
653
702
|
};
|
|
654
703
|
exports.PartnersApiAxiosParamCreator = PartnersApiAxiosParamCreator;
|
|
@@ -886,6 +935,27 @@ var PartnersApiFp = function (configuration) {
|
|
|
886
935
|
});
|
|
887
936
|
});
|
|
888
937
|
},
|
|
938
|
+
/**
|
|
939
|
+
* 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
|
|
940
|
+
* @summary Validate a partner
|
|
941
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
942
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
943
|
+
* @param {*} [options] Override http request option.
|
|
944
|
+
* @throws {RequiredError}
|
|
945
|
+
*/
|
|
946
|
+
validatePartner: function (validatePartnerRequestDto, authorization, options) {
|
|
947
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
948
|
+
var localVarAxiosArgs;
|
|
949
|
+
return __generator(this, function (_a) {
|
|
950
|
+
switch (_a.label) {
|
|
951
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options)];
|
|
952
|
+
case 1:
|
|
953
|
+
localVarAxiosArgs = _a.sent();
|
|
954
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
});
|
|
958
|
+
},
|
|
889
959
|
};
|
|
890
960
|
};
|
|
891
961
|
exports.PartnersApiFp = PartnersApiFp;
|
|
@@ -1023,6 +1093,17 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
1023
1093
|
updatePartner: function (code, updatePartnerRequestDto, authorization, options) {
|
|
1024
1094
|
return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1025
1095
|
},
|
|
1096
|
+
/**
|
|
1097
|
+
* 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
|
|
1098
|
+
* @summary Validate a partner
|
|
1099
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
1100
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
validatePartner: function (validatePartnerRequestDto, authorization, options) {
|
|
1105
|
+
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1106
|
+
},
|
|
1026
1107
|
};
|
|
1027
1108
|
};
|
|
1028
1109
|
exports.PartnersApiFactory = PartnersApiFactory;
|
|
@@ -1158,6 +1239,18 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
1158
1239
|
var _this = this;
|
|
1159
1240
|
return (0, exports.PartnersApiFp)(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1160
1241
|
};
|
|
1242
|
+
/**
|
|
1243
|
+
* 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
|
|
1244
|
+
* @summary Validate a partner
|
|
1245
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
1246
|
+
* @param {*} [options] Override http request option.
|
|
1247
|
+
* @throws {RequiredError}
|
|
1248
|
+
* @memberof PartnersApi
|
|
1249
|
+
*/
|
|
1250
|
+
PartnersApi.prototype.validatePartner = function (requestParameters, options) {
|
|
1251
|
+
var _this = this;
|
|
1252
|
+
return (0, exports.PartnersApiFp)(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1253
|
+
};
|
|
1161
1254
|
return PartnersApi;
|
|
1162
1255
|
}(base_1.BaseAPI));
|
|
1163
1256
|
exports.PartnersApi = PartnersApi;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchCreatePartnerHierarchyNodesRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchCreatePartnerHierarchyNodesRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Code of the hierarchy that will receive the uploaded nodes.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BatchCreatePartnerHierarchyNodesRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'partnerHierarchyCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* S3 object key returned by the upload URL endpoint after the batch node file is uploaded.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BatchCreatePartnerHierarchyNodesRequestDto
|
|
28
|
+
*/
|
|
29
|
+
's3Key': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GenerateUploadUrlResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GenerateUploadUrlResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-signed URL used to upload the hierarchy tree file.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GenerateUploadUrlResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'url': string;
|
|
24
|
+
/**
|
|
25
|
+
* S3 object key to pass to the tree replacement or batch node creation endpoint after upload.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GenerateUploadUrlResponseClass
|
|
28
|
+
*/
|
|
29
|
+
's3Key': string;
|
|
30
|
+
/**
|
|
31
|
+
* Time when the upload URL expires.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GenerateUploadUrlResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'expiresAt'?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPartnerHierarchyTreeFileResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPartnerHierarchyTreeFileResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Download URL for the hierarchy tree file. Empty while the file is still being built.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPartnerHierarchyTreeFileResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'url'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Time when the download URL expires.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPartnerHierarchyTreeFileResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'expiresAt'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Operation code returned when the tree file is being built instead of immediately available.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPartnerHierarchyTreeFileResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'operationCode'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Current tree file build status when a download URL is not ready yet.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPartnerHierarchyTreeFileResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'status'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL PartnerService
|
|
6
|
+
* The EMIL PartnerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './batch-create-partner-hierarchy-nodes-request-dto';
|
|
1
2
|
export * from './blacklist-item-class';
|
|
2
3
|
export * from './blacklist-reason-class';
|
|
3
4
|
export * from './create-blacklist-item-request-dto';
|
|
@@ -22,10 +23,12 @@ export * from './create-tag-request-dto';
|
|
|
22
23
|
export * from './create-tag-response-class';
|
|
23
24
|
export * from './delete-by-code-response-class';
|
|
24
25
|
export * from './delete-response-class';
|
|
26
|
+
export * from './generate-upload-url-response-class';
|
|
25
27
|
export * from './get-blacklist-item-response-class';
|
|
26
28
|
export * from './get-blacklist-reason-response-class';
|
|
27
29
|
export * from './get-partner-hierarchy-node-response-class';
|
|
28
30
|
export * from './get-partner-hierarchy-response-class';
|
|
31
|
+
export * from './get-partner-hierarchy-tree-file-response-class';
|
|
29
32
|
export * from './get-partner-hierarchy-tree-response-class';
|
|
30
33
|
export * from './get-partner-hierarchy-type-response-class';
|
|
31
34
|
export * from './get-partner-relation-class';
|
|
@@ -46,6 +49,7 @@ export * from './list-blacklist-reasons-response-class';
|
|
|
46
49
|
export * from './list-partner-hierarchies-response-class';
|
|
47
50
|
export * from './list-partner-hierarchy-node-history-response-class';
|
|
48
51
|
export * from './list-partner-hierarchy-nodes-response-class';
|
|
52
|
+
export * from './list-partner-hierarchy-operations-response-class';
|
|
49
53
|
export * from './list-partner-hierarchy-types-response-class';
|
|
50
54
|
export * from './list-partner-relation-class';
|
|
51
55
|
export * from './list-partner-relation-types-class';
|
|
@@ -61,10 +65,12 @@ export * from './merge-partners-response-class';
|
|
|
61
65
|
export * from './move-partner-hierarchy-node-request-dto';
|
|
62
66
|
export * from './move-partner-hierarchy-node-response-class';
|
|
63
67
|
export * from './partner-class';
|
|
68
|
+
export * from './partner-hierarchy-async-operation-response-class';
|
|
64
69
|
export * from './partner-hierarchy-class';
|
|
65
70
|
export * from './partner-hierarchy-node-class';
|
|
66
71
|
export * from './partner-hierarchy-node-history-class';
|
|
67
72
|
export * from './partner-hierarchy-node-tree-class';
|
|
73
|
+
export * from './partner-hierarchy-operation-class';
|
|
68
74
|
export * from './partner-hierarchy-type-class';
|
|
69
75
|
export * from './partner-relation-class';
|
|
70
76
|
export * from './partner-relation-type-class';
|
|
@@ -83,6 +89,7 @@ export * from './update-partner-hierarchy-node-request-dto';
|
|
|
83
89
|
export * from './update-partner-hierarchy-node-response-class';
|
|
84
90
|
export * from './update-partner-hierarchy-request-dto';
|
|
85
91
|
export * from './update-partner-hierarchy-response-class';
|
|
92
|
+
export * from './update-partner-hierarchy-tree-request-body-dto';
|
|
86
93
|
export * from './update-partner-hierarchy-type-request-dto';
|
|
87
94
|
export * from './update-partner-hierarchy-type-response-class';
|
|
88
95
|
export * from './update-partner-relation-request-dto-rest';
|
|
@@ -91,3 +98,5 @@ export * from './update-partner-response-class';
|
|
|
91
98
|
export * from './update-partner-type-request-dto';
|
|
92
99
|
export * from './update-partner-type-response-class';
|
|
93
100
|
export * from './update-tag-response-class';
|
|
101
|
+
export * from './validate-partner-request-dto';
|
|
102
|
+
export * from './validate-partner-response-class';
|