@emilgroup/partner-sdk 1.22.1-beta.19 → 1.22.1-beta.20

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.
@@ -121,5 +121,7 @@ models/update-partner-response-class.ts
121
121
  models/update-partner-type-request-dto.ts
122
122
  models/update-partner-type-response-class.ts
123
123
  models/update-tag-response-class.ts
124
+ models/validate-partner-request-dto.ts
125
+ models/validate-partner-response-class.ts
124
126
  package.json
125
127
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/partner-sdk@1.22.1-beta.19 --save
20
+ npm install @emilgroup/partner-sdk@1.22.1-beta.20 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk@1.22.1-beta.19
24
+ yarn add @emilgroup/partner-sdk@1.22.1-beta.20
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
@@ -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
@@ -592,6 +596,53 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
592
596
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
593
597
  localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerRequestDto, localVarRequestOptions, configuration)
594
598
 
599
+ return {
600
+ url: toPathString(localVarUrlObj),
601
+ options: localVarRequestOptions,
602
+ };
603
+ },
604
+ /**
605
+ * 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
606
+ * @summary Validate a partner
607
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
608
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
613
+ // verify required parameter 'validatePartnerRequestDto' is not null or undefined
614
+ assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
615
+ const localVarPath = `/partnerservice/v1/partners/validate`;
616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
618
+ let baseOptions;
619
+ let baseAccessToken;
620
+ if (configuration) {
621
+ baseOptions = configuration.baseOptions;
622
+ baseAccessToken = configuration.accessToken;
623
+ }
624
+
625
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
626
+ const localVarHeaderParameter = {} as any;
627
+ const localVarQueryParameter = {} as any;
628
+
629
+ // authentication bearer required
630
+ // http bearer authentication required
631
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
632
+
633
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
634
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
635
+ }
636
+
637
+
638
+
639
+ localVarHeaderParameter['Content-Type'] = 'application/json';
640
+
641
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
643
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
644
+ localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
645
+
595
646
  return {
596
647
  url: toPathString(localVarUrlObj),
597
648
  options: localVarRequestOptions,
@@ -744,6 +795,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
744
795
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(code, updatePartnerRequestDto, authorization, options);
745
796
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
746
797
  },
798
+ /**
799
+ * 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
800
+ * @summary Validate a partner
801
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
802
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
808
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
809
+ },
747
810
  }
748
811
  };
749
812
 
@@ -881,6 +944,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
881
944
  updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass> {
882
945
  return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
883
946
  },
947
+ /**
948
+ * 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
949
+ * @summary Validate a partner
950
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
951
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
956
+ return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
957
+ },
884
958
  };
885
959
  };
886
960
 
@@ -1213,6 +1287,27 @@ export interface PartnersApiUpdatePartnerRequest {
1213
1287
  readonly authorization?: string
1214
1288
  }
1215
1289
 
1290
+ /**
1291
+ * Request parameters for validatePartner operation in PartnersApi.
1292
+ * @export
1293
+ * @interface PartnersApiValidatePartnerRequest
1294
+ */
1295
+ export interface PartnersApiValidatePartnerRequest {
1296
+ /**
1297
+ *
1298
+ * @type {ValidatePartnerRequestDto}
1299
+ * @memberof PartnersApiValidatePartner
1300
+ */
1301
+ readonly validatePartnerRequestDto: ValidatePartnerRequestDto
1302
+
1303
+ /**
1304
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1305
+ * @type {string}
1306
+ * @memberof PartnersApiValidatePartner
1307
+ */
1308
+ readonly authorization?: string
1309
+ }
1310
+
1216
1311
  /**
1217
1312
  * PartnersApi - object-oriented interface
1218
1313
  * @export
@@ -1339,4 +1434,16 @@ export class PartnersApi extends BaseAPI {
1339
1434
  public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
1340
1435
  return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1341
1436
  }
1437
+
1438
+ /**
1439
+ * 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
1440
+ * @summary Validate a partner
1441
+ * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
1442
+ * @param {*} [options] Override http request option.
1443
+ * @throws {RequiredError}
1444
+ * @memberof PartnersApi
1445
+ */
1446
+ public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
1447
+ return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1448
+ }
1342
1449
  }
@@ -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
  }
@@ -645,6 +645,55 @@ var PartnersApiAxiosParamCreator = function (configuration) {
645
645
  });
646
646
  });
647
647
  },
648
+ /**
649
+ * 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
650
+ * @summary Validate a partner
651
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
652
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ validatePartner: function (validatePartnerRequestDto, authorization, options) {
657
+ if (options === void 0) { options = {}; }
658
+ return __awaiter(_this, void 0, void 0, function () {
659
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
660
+ return __generator(this, function (_a) {
661
+ switch (_a.label) {
662
+ case 0:
663
+ // verify required parameter 'validatePartnerRequestDto' is not null or undefined
664
+ (0, common_1.assertParamExists)('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto);
665
+ localVarPath = "/partnerservice/v1/partners/validate";
666
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
667
+ if (configuration) {
668
+ baseOptions = configuration.baseOptions;
669
+ baseAccessToken = configuration.accessToken;
670
+ }
671
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
672
+ localVarHeaderParameter = {};
673
+ localVarQueryParameter = {};
674
+ // authentication bearer required
675
+ // http bearer authentication required
676
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
677
+ case 1:
678
+ // authentication bearer required
679
+ // http bearer authentication required
680
+ _a.sent();
681
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
682
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
683
+ }
684
+ localVarHeaderParameter['Content-Type'] = 'application/json';
685
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
686
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
687
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
688
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validatePartnerRequestDto, localVarRequestOptions, configuration);
689
+ return [2 /*return*/, {
690
+ url: (0, common_1.toPathString)(localVarUrlObj),
691
+ options: localVarRequestOptions,
692
+ }];
693
+ }
694
+ });
695
+ });
696
+ },
648
697
  };
649
698
  };
650
699
  exports.PartnersApiAxiosParamCreator = PartnersApiAxiosParamCreator;
@@ -882,6 +931,27 @@ var PartnersApiFp = function (configuration) {
882
931
  });
883
932
  });
884
933
  },
934
+ /**
935
+ * 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
936
+ * @summary Validate a partner
937
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
938
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ validatePartner: function (validatePartnerRequestDto, authorization, options) {
943
+ return __awaiter(this, void 0, void 0, function () {
944
+ var localVarAxiosArgs;
945
+ return __generator(this, function (_a) {
946
+ switch (_a.label) {
947
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options)];
948
+ case 1:
949
+ localVarAxiosArgs = _a.sent();
950
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
951
+ }
952
+ });
953
+ });
954
+ },
885
955
  };
886
956
  };
887
957
  exports.PartnersApiFp = PartnersApiFp;
@@ -1019,6 +1089,17 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
1019
1089
  updatePartner: function (code, updatePartnerRequestDto, authorization, options) {
1020
1090
  return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1021
1091
  },
1092
+ /**
1093
+ * 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
1094
+ * @summary Validate a partner
1095
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
1096
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1097
+ * @param {*} [options] Override http request option.
1098
+ * @throws {RequiredError}
1099
+ */
1100
+ validatePartner: function (validatePartnerRequestDto, authorization, options) {
1101
+ return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1102
+ },
1022
1103
  };
1023
1104
  };
1024
1105
  exports.PartnersApiFactory = PartnersApiFactory;
@@ -1154,6 +1235,18 @@ var PartnersApi = /** @class */ (function (_super) {
1154
1235
  var _this = this;
1155
1236
  return (0, exports.PartnersApiFp)(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1156
1237
  };
1238
+ /**
1239
+ * 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
1240
+ * @summary Validate a partner
1241
+ * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ * @memberof PartnersApi
1245
+ */
1246
+ PartnersApi.prototype.validatePartner = function (requestParameters, options) {
1247
+ var _this = this;
1248
+ return (0, exports.PartnersApiFp)(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1249
+ };
1157
1250
  return PartnersApi;
1158
1251
  }(base_1.BaseAPI));
1159
1252
  exports.PartnersApi = PartnersApi;
@@ -98,3 +98,5 @@ export * from './update-partner-response-class';
98
98
  export * from './update-partner-type-request-dto';
99
99
  export * from './update-partner-type-response-class';
100
100
  export * from './update-tag-response-class';
101
+ export * from './validate-partner-request-dto';
102
+ export * from './validate-partner-response-class';
@@ -114,3 +114,5 @@ __exportStar(require("./update-partner-response-class"), exports);
114
114
  __exportStar(require("./update-partner-type-request-dto"), exports);
115
115
  __exportStar(require("./update-partner-type-response-class"), exports);
116
116
  __exportStar(require("./update-tag-response-class"), exports);
117
+ __exportStar(require("./validate-partner-request-dto"), exports);
118
+ __exportStar(require("./validate-partner-response-class"), exports);
@@ -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 ValidatePartnerRequestDto
16
+ */
17
+ export interface ValidatePartnerRequestDto {
18
+ /**
19
+ * The unique partner number used to identify the partner.
20
+ * @type {string}
21
+ * @memberof ValidatePartnerRequestDto
22
+ */
23
+ 'partnerNumber': string;
24
+ /**
25
+ * Dynamic key-value pairs matched against partner custom fields (top-level or one level deep). All provided fields must match — AND logic. If omitted or empty, validation passes without checking custom fields.
26
+ * @type {object}
27
+ * @memberof ValidatePartnerRequestDto
28
+ */
29
+ 'validationFields'?: object;
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,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 ValidatePartnerResponseClass
16
+ */
17
+ export interface ValidatePartnerResponseClass {
18
+ /**
19
+ * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
20
+ * @type {boolean}
21
+ * @memberof ValidatePartnerResponseClass
22
+ */
23
+ 'isValid': boolean;
24
+ /**
25
+ * Describes why validation failed. Possible values: \"Partner not found with partnerNumber: [partnerNumber]\" | \"Validation failed: field \\\"[name]\\\" was not found in partner data\" | \"Validation failed: value for field \\\"[name]\\\" does not match\". Only present when isValid is false.
26
+ * @type {string}
27
+ * @memberof ValidatePartnerResponseClass
28
+ */
29
+ 'errorMessage'?: 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 });
package/models/index.ts CHANGED
@@ -98,3 +98,5 @@ export * from './update-partner-response-class';
98
98
  export * from './update-partner-type-request-dto';
99
99
  export * from './update-partner-type-response-class';
100
100
  export * from './update-tag-response-class';
101
+ export * from './validate-partner-request-dto';
102
+ export * from './validate-partner-response-class';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ValidatePartnerRequestDto
21
+ */
22
+ export interface ValidatePartnerRequestDto {
23
+ /**
24
+ * The unique partner number used to identify the partner.
25
+ * @type {string}
26
+ * @memberof ValidatePartnerRequestDto
27
+ */
28
+ 'partnerNumber': string;
29
+ /**
30
+ * Dynamic key-value pairs matched against partner custom fields (top-level or one level deep). All provided fields must match — AND logic. If omitted or empty, validation passes without checking custom fields.
31
+ * @type {object}
32
+ * @memberof ValidatePartnerRequestDto
33
+ */
34
+ 'validationFields'?: object;
35
+ }
36
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ValidatePartnerResponseClass
21
+ */
22
+ export interface ValidatePartnerResponseClass {
23
+ /**
24
+ * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
25
+ * @type {boolean}
26
+ * @memberof ValidatePartnerResponseClass
27
+ */
28
+ 'isValid': boolean;
29
+ /**
30
+ * Describes why validation failed. Possible values: \"Partner not found with partnerNumber: [partnerNumber]\" | \"Validation failed: field \\\"[name]\\\" was not found in partner data\" | \"Validation failed: value for field \\\"[name]\\\" does not match\". Only present when isValid is false.
31
+ * @type {string}
32
+ * @memberof ValidatePartnerResponseClass
33
+ */
34
+ 'errorMessage'?: string;
35
+ }
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk",
3
- "version": "1.22.1-beta.19",
3
+ "version": "1.22.1-beta.20",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [