@emilgroup/partner-sdk-node 1.22.1-beta.17 → 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.
@@ -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-node@1.22.1-beta.17 --save
20
+ npm install @emilgroup/partner-sdk-node@1.22.1-beta.18 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk-node@1.22.1-beta.17
24
+ yarn add @emilgroup/partner-sdk-node@1.22.1-beta.18
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
  // URLSearchParams not necessarily used
52
56
  // @ts-ignore
53
57
  import { URL, URLSearchParams } from 'url';
@@ -596,6 +600,53 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
596
600
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
597
601
  localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerRequestDto, localVarRequestOptions, configuration)
598
602
 
603
+ return {
604
+ url: toPathString(localVarUrlObj),
605
+ options: localVarRequestOptions,
606
+ };
607
+ },
608
+ /**
609
+ * 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
610
+ * @summary Validate a partner
611
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
612
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
617
+ // verify required parameter 'validatePartnerRequestDto' is not null or undefined
618
+ assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
619
+ const localVarPath = `/partnerservice/v1/partners/validate`;
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ let baseAccessToken;
624
+ if (configuration) {
625
+ baseOptions = configuration.baseOptions;
626
+ baseAccessToken = configuration.accessToken;
627
+ }
628
+
629
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
630
+ const localVarHeaderParameter = {} as any;
631
+ const localVarQueryParameter = {} as any;
632
+
633
+ // authentication bearer required
634
+ // http bearer authentication required
635
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
636
+
637
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
638
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
639
+ }
640
+
641
+
642
+
643
+ localVarHeaderParameter['Content-Type'] = 'application/json';
644
+
645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
647
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
648
+ localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
649
+
599
650
  return {
600
651
  url: toPathString(localVarUrlObj),
601
652
  options: localVarRequestOptions,
@@ -748,6 +799,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
748
799
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(code, updatePartnerRequestDto, authorization, options);
749
800
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
750
801
  },
802
+ /**
803
+ * 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
804
+ * @summary Validate a partner
805
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
806
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
812
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
813
+ },
751
814
  }
752
815
  };
753
816
 
@@ -885,6 +948,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
885
948
  updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass> {
886
949
  return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
887
950
  },
951
+ /**
952
+ * 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
953
+ * @summary Validate a partner
954
+ * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
955
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
960
+ return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
961
+ },
888
962
  };
889
963
  };
890
964
 
@@ -1217,6 +1291,27 @@ export interface PartnersApiUpdatePartnerRequest {
1217
1291
  readonly authorization?: string
1218
1292
  }
1219
1293
 
1294
+ /**
1295
+ * Request parameters for validatePartner operation in PartnersApi.
1296
+ * @export
1297
+ * @interface PartnersApiValidatePartnerRequest
1298
+ */
1299
+ export interface PartnersApiValidatePartnerRequest {
1300
+ /**
1301
+ *
1302
+ * @type {ValidatePartnerRequestDto}
1303
+ * @memberof PartnersApiValidatePartner
1304
+ */
1305
+ readonly validatePartnerRequestDto: ValidatePartnerRequestDto
1306
+
1307
+ /**
1308
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1309
+ * @type {string}
1310
+ * @memberof PartnersApiValidatePartner
1311
+ */
1312
+ readonly authorization?: string
1313
+ }
1314
+
1220
1315
  /**
1221
1316
  * PartnersApi - object-oriented interface
1222
1317
  * @export
@@ -1343,4 +1438,16 @@ export class PartnersApi extends BaseAPI {
1343
1438
  public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
1344
1439
  return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1345
1440
  }
1441
+
1442
+ /**
1443
+ * 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
1444
+ * @summary Validate a partner
1445
+ * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ * @memberof PartnersApi
1449
+ */
1450
+ public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
1451
+ return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1452
+ }
1346
1453
  }
@@ -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
  }
@@ -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;
@@ -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-node",
3
- "version": "1.22.1-beta.17",
3
+ "version": "1.22.1-beta.18",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [