@emilgroup/partner-sdk-node 1.14.1-beta.5 → 1.14.1-beta.6

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.
@@ -46,6 +46,8 @@ models/list-partner-versions-response-class.ts
46
46
  models/list-partners-response-class.ts
47
47
  models/list-related-partners-response-class.ts
48
48
  models/list-tags-response-class.ts
49
+ models/map-partner-to-account-response-class.ts
50
+ models/mapped-account-from-partner-class.ts
49
51
  models/partner-class.ts
50
52
  models/partner-relation-class.ts
51
53
  models/partner-relation-type-class.ts
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.14.1-beta.5 --save
20
+ npm install @emilgroup/partner-sdk-node@1.14.1-beta.6 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk-node@1.14.1-beta.5
24
+ yarn add @emilgroup/partner-sdk-node@1.14.1-beta.6
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
@@ -37,6 +37,8 @@ import { ListPartnersResponseClass } from '../models';
37
37
  // @ts-ignore
38
38
  import { ListRelatedPartnersResponseClass } from '../models';
39
39
  // @ts-ignore
40
+ import { MapPartnerToAccountResponseClass } from '../models';
41
+ // @ts-ignore
40
42
  import { TagPartnerRequestDtoRest } from '../models';
41
43
  // @ts-ignore
42
44
  import { UpdatePartnerRequestDto } from '../models';
@@ -236,6 +238,51 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
236
238
 
237
239
 
238
240
 
241
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
244
+
245
+ return {
246
+ url: toPathString(localVarUrlObj),
247
+ options: localVarRequestOptions,
248
+ };
249
+ },
250
+ /**
251
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
252
+ * @summary Retrieve the map partner to account
253
+ * @param {string} code
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ getPartnerAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'code' is not null or undefined
260
+ assertParamExists('getPartnerAccount', 'code', code)
261
+ const localVarPath = `/partnerservice/v1/partners/{code}/map-to-account`
262
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
265
+ let baseOptions;
266
+ let baseAccessToken;
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+
272
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
273
+ const localVarHeaderParameter = {} as any;
274
+ const localVarQueryParameter = {} as any;
275
+
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
279
+
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
+ }
283
+
284
+
285
+
239
286
  setSearchParams(localVarUrlObj, localVarQueryParameter);
240
287
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
288
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -563,6 +610,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
563
610
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPartner(code, authorization, expand, options);
564
611
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
565
612
  },
613
+ /**
614
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
615
+ * @summary Retrieve the map partner to account
616
+ * @param {string} code
617
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ async getPartnerAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MapPartnerToAccountResponseClass>> {
622
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerAccount(code, authorization, options);
623
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
624
+ },
566
625
  /**
567
626
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
568
627
  * @summary List partners
@@ -682,6 +741,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
682
741
  getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass> {
683
742
  return localVarFp.getPartner(code, authorization, expand, options).then((request) => request(axios, basePath));
684
743
  },
744
+ /**
745
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
746
+ * @summary Retrieve the map partner to account
747
+ * @param {string} code
748
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ getPartnerAccount(code: string, authorization?: string, options?: any): AxiosPromise<MapPartnerToAccountResponseClass> {
753
+ return localVarFp.getPartnerAccount(code, authorization, options).then((request) => request(axios, basePath));
754
+ },
685
755
  /**
686
756
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
687
757
  * @summary List partners
@@ -842,6 +912,27 @@ export interface PartnersApiGetPartnerRequest {
842
912
  readonly expand?: any
843
913
  }
844
914
 
915
+ /**
916
+ * Request parameters for getPartnerAccount operation in PartnersApi.
917
+ * @export
918
+ * @interface PartnersApiGetPartnerAccountRequest
919
+ */
920
+ export interface PartnersApiGetPartnerAccountRequest {
921
+ /**
922
+ *
923
+ * @type {string}
924
+ * @memberof PartnersApiGetPartnerAccount
925
+ */
926
+ readonly code: string
927
+
928
+ /**
929
+ * Bearer Token: provided by the login endpoint under the name accessToken.
930
+ * @type {string}
931
+ * @memberof PartnersApiGetPartnerAccount
932
+ */
933
+ readonly authorization?: string
934
+ }
935
+
845
936
  /**
846
937
  * Request parameters for listPartners operation in PartnersApi.
847
938
  * @export
@@ -1086,6 +1177,18 @@ export class PartnersApi extends BaseAPI {
1086
1177
  return PartnersApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1087
1178
  }
1088
1179
 
1180
+ /**
1181
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
1182
+ * @summary Retrieve the map partner to account
1183
+ * @param {PartnersApiGetPartnerAccountRequest} requestParameters Request parameters.
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ * @memberof PartnersApi
1187
+ */
1188
+ public getPartnerAccount(requestParameters: PartnersApiGetPartnerAccountRequest, options?: AxiosRequestConfig) {
1189
+ return PartnersApiFp(this.configuration).getPartnerAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1190
+ }
1191
+
1089
1192
  /**
1090
1193
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
1091
1194
  * @summary List partners
@@ -20,6 +20,7 @@ import { DeleteResponseClass } from '../models';
20
20
  import { GetPartnerResponseClass } from '../models';
21
21
  import { ListPartnersResponseClass } from '../models';
22
22
  import { ListRelatedPartnersResponseClass } from '../models';
23
+ import { MapPartnerToAccountResponseClass } from '../models';
23
24
  import { TagPartnerRequestDtoRest } from '../models';
24
25
  import { UpdatePartnerRequestDto } from '../models';
25
26
  import { UpdatePartnerResponseClass } from '../models';
@@ -66,6 +67,15 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
66
67
  * @throws {RequiredError}
67
68
  */
68
69
  getPartner: (code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
+ /**
71
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
72
+ * @summary Retrieve the map partner to account
73
+ * @param {string} code
74
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ getPartnerAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
79
  /**
70
80
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
71
81
  * @summary List partners
@@ -161,6 +171,15 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
161
171
  * @throws {RequiredError}
162
172
  */
163
173
  getPartner(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerResponseClass>>;
174
+ /**
175
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
176
+ * @summary Retrieve the map partner to account
177
+ * @param {string} code
178
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ getPartnerAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MapPartnerToAccountResponseClass>>;
164
183
  /**
165
184
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
166
185
  * @summary List partners
@@ -256,6 +275,15 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
256
275
  * @throws {RequiredError}
257
276
  */
258
277
  getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass>;
278
+ /**
279
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
280
+ * @summary Retrieve the map partner to account
281
+ * @param {string} code
282
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ getPartnerAccount(code: string, authorization?: string, options?: any): AxiosPromise<MapPartnerToAccountResponseClass>;
259
287
  /**
260
288
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
261
289
  * @summary List partners
@@ -396,6 +424,25 @@ export interface PartnersApiGetPartnerRequest {
396
424
  */
397
425
  readonly expand?: any;
398
426
  }
427
+ /**
428
+ * Request parameters for getPartnerAccount operation in PartnersApi.
429
+ * @export
430
+ * @interface PartnersApiGetPartnerAccountRequest
431
+ */
432
+ export interface PartnersApiGetPartnerAccountRequest {
433
+ /**
434
+ *
435
+ * @type {string}
436
+ * @memberof PartnersApiGetPartnerAccount
437
+ */
438
+ readonly code: string;
439
+ /**
440
+ * Bearer Token: provided by the login endpoint under the name accessToken.
441
+ * @type {string}
442
+ * @memberof PartnersApiGetPartnerAccount
443
+ */
444
+ readonly authorization?: string;
445
+ }
399
446
  /**
400
447
  * Request parameters for listPartners operation in PartnersApi.
401
448
  * @export
@@ -605,6 +652,15 @@ export declare class PartnersApi extends BaseAPI {
605
652
  * @memberof PartnersApi
606
653
  */
607
654
  getPartner(requestParameters: PartnersApiGetPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
655
+ /**
656
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
657
+ * @summary Retrieve the map partner to account
658
+ * @param {PartnersApiGetPartnerAccountRequest} requestParameters Request parameters.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ * @memberof PartnersApi
662
+ */
663
+ getPartnerAccount(requestParameters: PartnersApiGetPartnerAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MapPartnerToAccountResponseClass, any>>;
608
664
  /**
609
665
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
610
666
  * @summary List partners
@@ -298,6 +298,54 @@ var PartnersApiAxiosParamCreator = function (configuration) {
298
298
  });
299
299
  });
300
300
  },
301
+ /**
302
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
303
+ * @summary Retrieve the map partner to account
304
+ * @param {string} code
305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ getPartnerAccount: function (code, authorization, options) {
310
+ if (options === void 0) { options = {}; }
311
+ return __awaiter(_this, void 0, void 0, function () {
312
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
313
+ return __generator(this, function (_a) {
314
+ switch (_a.label) {
315
+ case 0:
316
+ // verify required parameter 'code' is not null or undefined
317
+ (0, common_1.assertParamExists)('getPartnerAccount', 'code', code);
318
+ localVarPath = "/partnerservice/v1/partners/{code}/map-to-account"
319
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
320
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ baseAccessToken = configuration.accessToken;
324
+ }
325
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
326
+ localVarHeaderParameter = {};
327
+ localVarQueryParameter = {};
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
331
+ case 1:
332
+ // authentication bearer required
333
+ // http bearer authentication required
334
+ _a.sent();
335
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
336
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
337
+ }
338
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
339
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
341
+ return [2 /*return*/, {
342
+ url: (0, common_1.toPathString)(localVarUrlObj),
343
+ options: localVarRequestOptions,
344
+ }];
345
+ }
346
+ });
347
+ });
348
+ },
301
349
  /**
302
350
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
303
351
  * @summary List partners
@@ -648,6 +696,27 @@ var PartnersApiFp = function (configuration) {
648
696
  });
649
697
  });
650
698
  },
699
+ /**
700
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
701
+ * @summary Retrieve the map partner to account
702
+ * @param {string} code
703
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ getPartnerAccount: function (code, authorization, options) {
708
+ return __awaiter(this, void 0, void 0, function () {
709
+ var localVarAxiosArgs;
710
+ return __generator(this, function (_a) {
711
+ switch (_a.label) {
712
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerAccount(code, authorization, options)];
713
+ case 1:
714
+ localVarAxiosArgs = _a.sent();
715
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
716
+ }
717
+ });
718
+ });
719
+ },
651
720
  /**
652
721
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
653
722
  * @summary List partners
@@ -803,6 +872,17 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
803
872
  getPartner: function (code, authorization, expand, options) {
804
873
  return localVarFp.getPartner(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
805
874
  },
875
+ /**
876
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
877
+ * @summary Retrieve the map partner to account
878
+ * @param {string} code
879
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ getPartnerAccount: function (code, authorization, options) {
884
+ return localVarFp.getPartnerAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
885
+ },
806
886
  /**
807
887
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
808
888
  * @summary List partners
@@ -924,6 +1004,18 @@ var PartnersApi = /** @class */ (function (_super) {
924
1004
  var _this = this;
925
1005
  return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
926
1006
  };
1007
+ /**
1008
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
1009
+ * @summary Retrieve the map partner to account
1010
+ * @param {PartnersApiGetPartnerAccountRequest} requestParameters Request parameters.
1011
+ * @param {*} [options] Override http request option.
1012
+ * @throws {RequiredError}
1013
+ * @memberof PartnersApi
1014
+ */
1015
+ PartnersApi.prototype.getPartnerAccount = function (requestParameters, options) {
1016
+ var _this = this;
1017
+ return (0, exports.PartnersApiFp)(this.configuration).getPartnerAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1018
+ };
927
1019
  /**
928
1020
  * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
929
1021
  * @summary List partners
@@ -28,6 +28,8 @@ export * from './list-partner-versions-response-class';
28
28
  export * from './list-partners-response-class';
29
29
  export * from './list-related-partners-response-class';
30
30
  export * from './list-tags-response-class';
31
+ export * from './map-partner-to-account-response-class';
32
+ export * from './mapped-account-from-partner-class';
31
33
  export * from './partner-class';
32
34
  export * from './partner-relation-class';
33
35
  export * from './partner-relation-type-class';
@@ -44,6 +44,8 @@ __exportStar(require("./list-partner-versions-response-class"), exports);
44
44
  __exportStar(require("./list-partners-response-class"), exports);
45
45
  __exportStar(require("./list-related-partners-response-class"), exports);
46
46
  __exportStar(require("./list-tags-response-class"), exports);
47
+ __exportStar(require("./map-partner-to-account-response-class"), exports);
48
+ __exportStar(require("./mapped-account-from-partner-class"), exports);
47
49
  __exportStar(require("./partner-class"), exports);
48
50
  __exportStar(require("./partner-relation-class"), exports);
49
51
  __exportStar(require("./partner-relation-type-class"), exports);
@@ -0,0 +1,32 @@
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
+ import { MappedAccountFromPartnerClass } from './mapped-account-from-partner-class';
13
+ import { PartnerClass } from './partner-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MapPartnerToAccountResponseClass
18
+ */
19
+ export interface MapPartnerToAccountResponseClass {
20
+ /**
21
+ * The partner response.
22
+ * @type {PartnerClass}
23
+ * @memberof MapPartnerToAccountResponseClass
24
+ */
25
+ 'partner': PartnerClass;
26
+ /**
27
+ * The mappedAccount response.
28
+ * @type {MappedAccountFromPartnerClass}
29
+ * @memberof MapPartnerToAccountResponseClass
30
+ */
31
+ 'mappedAccount': MappedAccountFromPartnerClass;
32
+ }
@@ -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,138 @@
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 MappedAccountFromPartnerClass
16
+ */
17
+ export interface MappedAccountFromPartnerClass {
18
+ /**
19
+ * Unique identifier for the object.
20
+ * @type {string}
21
+ * @memberof MappedAccountFromPartnerClass
22
+ */
23
+ 'code'?: string;
24
+ /**
25
+ * Optional field in order to use a specific account number.
26
+ * @type {string}
27
+ * @memberof MappedAccountFromPartnerClass
28
+ */
29
+ 'accountNumber'?: string;
30
+ /**
31
+ * The account\'s title.
32
+ * @type {string}
33
+ * @memberof MappedAccountFromPartnerClass
34
+ */
35
+ 'title'?: MappedAccountFromPartnerClassTitleEnum;
36
+ /**
37
+ * The account\'s first name.
38
+ * @type {string}
39
+ * @memberof MappedAccountFromPartnerClass
40
+ */
41
+ 'firstName': string;
42
+ /**
43
+ * The account\'s last name.
44
+ * @type {string}
45
+ * @memberof MappedAccountFromPartnerClass
46
+ */
47
+ 'lastName': string;
48
+ /**
49
+ * The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
50
+ * @type {string}
51
+ * @memberof MappedAccountFromPartnerClass
52
+ */
53
+ 'email': string;
54
+ /**
55
+ * The account\'s gender.
56
+ * @type {string}
57
+ * @memberof MappedAccountFromPartnerClass
58
+ */
59
+ 'gender': MappedAccountFromPartnerClassGenderEnum;
60
+ /**
61
+ * The account\'s street name.
62
+ * @type {string}
63
+ * @memberof MappedAccountFromPartnerClass
64
+ */
65
+ 'street': string;
66
+ /**
67
+ * The account\'s house number.
68
+ * @type {string}
69
+ * @memberof MappedAccountFromPartnerClass
70
+ */
71
+ 'houseNumber': string;
72
+ /**
73
+ * The account\'s ZIP or postal code
74
+ * @type {string}
75
+ * @memberof MappedAccountFromPartnerClass
76
+ */
77
+ 'zipCode': string;
78
+ /**
79
+ * The account\'s city, district, suburb, town, or village.
80
+ * @type {string}
81
+ * @memberof MappedAccountFromPartnerClass
82
+ */
83
+ 'city': string;
84
+ /**
85
+ * The account\'s date of birth. required for account type person
86
+ * @type {string}
87
+ * @memberof MappedAccountFromPartnerClass
88
+ */
89
+ 'birthDate'?: string;
90
+ /**
91
+ * The account\'s phone number.
92
+ * @type {string}
93
+ * @memberof MappedAccountFromPartnerClass
94
+ */
95
+ 'phone'?: string;
96
+ /**
97
+ * Optional field contain extra information.
98
+ * @type {object}
99
+ * @memberof MappedAccountFromPartnerClass
100
+ */
101
+ 'metadata'?: object;
102
+ /**
103
+ * Optional field contain custom fields.
104
+ * @type {object}
105
+ * @memberof MappedAccountFromPartnerClass
106
+ */
107
+ 'customFields'?: object;
108
+ /**
109
+ * The type of account, default to person
110
+ * @type {string}
111
+ * @memberof MappedAccountFromPartnerClass
112
+ */
113
+ 'type': MappedAccountFromPartnerClassTypeEnum;
114
+ /**
115
+ * The company name of account, required for account type org
116
+ * @type {string}
117
+ * @memberof MappedAccountFromPartnerClass
118
+ */
119
+ 'companyName'?: string;
120
+ }
121
+ export declare const MappedAccountFromPartnerClassTitleEnum: {
122
+ readonly Empty: "";
123
+ readonly Dr: "Dr.";
124
+ readonly DrMed: "Dr. med.";
125
+ readonly Prof: "Prof.";
126
+ };
127
+ export type MappedAccountFromPartnerClassTitleEnum = typeof MappedAccountFromPartnerClassTitleEnum[keyof typeof MappedAccountFromPartnerClassTitleEnum];
128
+ export declare const MappedAccountFromPartnerClassGenderEnum: {
129
+ readonly Male: "male";
130
+ readonly Female: "female";
131
+ readonly Unspecified: "unspecified";
132
+ };
133
+ export type MappedAccountFromPartnerClassGenderEnum = typeof MappedAccountFromPartnerClassGenderEnum[keyof typeof MappedAccountFromPartnerClassGenderEnum];
134
+ export declare const MappedAccountFromPartnerClassTypeEnum: {
135
+ readonly Person: "person";
136
+ readonly Org: "org";
137
+ };
138
+ export type MappedAccountFromPartnerClassTypeEnum = typeof MappedAccountFromPartnerClassTypeEnum[keyof typeof MappedAccountFromPartnerClassTypeEnum];
@@ -0,0 +1,31 @@
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 });
16
+ exports.MappedAccountFromPartnerClassTypeEnum = exports.MappedAccountFromPartnerClassGenderEnum = exports.MappedAccountFromPartnerClassTitleEnum = void 0;
17
+ exports.MappedAccountFromPartnerClassTitleEnum = {
18
+ Empty: '',
19
+ Dr: 'Dr.',
20
+ DrMed: 'Dr. med.',
21
+ Prof: 'Prof.'
22
+ };
23
+ exports.MappedAccountFromPartnerClassGenderEnum = {
24
+ Male: 'male',
25
+ Female: 'female',
26
+ Unspecified: 'unspecified'
27
+ };
28
+ exports.MappedAccountFromPartnerClassTypeEnum = {
29
+ Person: 'person',
30
+ Org: 'org'
31
+ };
package/models/index.ts CHANGED
@@ -28,6 +28,8 @@ export * from './list-partner-versions-response-class';
28
28
  export * from './list-partners-response-class';
29
29
  export * from './list-related-partners-response-class';
30
30
  export * from './list-tags-response-class';
31
+ export * from './map-partner-to-account-response-class';
32
+ export * from './mapped-account-from-partner-class';
31
33
  export * from './partner-class';
32
34
  export * from './partner-relation-class';
33
35
  export * from './partner-relation-type-class';
@@ -0,0 +1,38 @@
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
+ import { MappedAccountFromPartnerClass } from './mapped-account-from-partner-class';
17
+ import { PartnerClass } from './partner-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface MapPartnerToAccountResponseClass
23
+ */
24
+ export interface MapPartnerToAccountResponseClass {
25
+ /**
26
+ * The partner response.
27
+ * @type {PartnerClass}
28
+ * @memberof MapPartnerToAccountResponseClass
29
+ */
30
+ 'partner': PartnerClass;
31
+ /**
32
+ * The mappedAccount response.
33
+ * @type {MappedAccountFromPartnerClass}
34
+ * @memberof MapPartnerToAccountResponseClass
35
+ */
36
+ 'mappedAccount': MappedAccountFromPartnerClass;
37
+ }
38
+
@@ -0,0 +1,149 @@
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 MappedAccountFromPartnerClass
21
+ */
22
+ export interface MappedAccountFromPartnerClass {
23
+ /**
24
+ * Unique identifier for the object.
25
+ * @type {string}
26
+ * @memberof MappedAccountFromPartnerClass
27
+ */
28
+ 'code'?: string;
29
+ /**
30
+ * Optional field in order to use a specific account number.
31
+ * @type {string}
32
+ * @memberof MappedAccountFromPartnerClass
33
+ */
34
+ 'accountNumber'?: string;
35
+ /**
36
+ * The account\'s title.
37
+ * @type {string}
38
+ * @memberof MappedAccountFromPartnerClass
39
+ */
40
+ 'title'?: MappedAccountFromPartnerClassTitleEnum;
41
+ /**
42
+ * The account\'s first name.
43
+ * @type {string}
44
+ * @memberof MappedAccountFromPartnerClass
45
+ */
46
+ 'firstName': string;
47
+ /**
48
+ * The account\'s last name.
49
+ * @type {string}
50
+ * @memberof MappedAccountFromPartnerClass
51
+ */
52
+ 'lastName': string;
53
+ /**
54
+ * The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
55
+ * @type {string}
56
+ * @memberof MappedAccountFromPartnerClass
57
+ */
58
+ 'email': string;
59
+ /**
60
+ * The account\'s gender.
61
+ * @type {string}
62
+ * @memberof MappedAccountFromPartnerClass
63
+ */
64
+ 'gender': MappedAccountFromPartnerClassGenderEnum;
65
+ /**
66
+ * The account\'s street name.
67
+ * @type {string}
68
+ * @memberof MappedAccountFromPartnerClass
69
+ */
70
+ 'street': string;
71
+ /**
72
+ * The account\'s house number.
73
+ * @type {string}
74
+ * @memberof MappedAccountFromPartnerClass
75
+ */
76
+ 'houseNumber': string;
77
+ /**
78
+ * The account\'s ZIP or postal code
79
+ * @type {string}
80
+ * @memberof MappedAccountFromPartnerClass
81
+ */
82
+ 'zipCode': string;
83
+ /**
84
+ * The account\'s city, district, suburb, town, or village.
85
+ * @type {string}
86
+ * @memberof MappedAccountFromPartnerClass
87
+ */
88
+ 'city': string;
89
+ /**
90
+ * The account\'s date of birth. required for account type person
91
+ * @type {string}
92
+ * @memberof MappedAccountFromPartnerClass
93
+ */
94
+ 'birthDate'?: string;
95
+ /**
96
+ * The account\'s phone number.
97
+ * @type {string}
98
+ * @memberof MappedAccountFromPartnerClass
99
+ */
100
+ 'phone'?: string;
101
+ /**
102
+ * Optional field contain extra information.
103
+ * @type {object}
104
+ * @memberof MappedAccountFromPartnerClass
105
+ */
106
+ 'metadata'?: object;
107
+ /**
108
+ * Optional field contain custom fields.
109
+ * @type {object}
110
+ * @memberof MappedAccountFromPartnerClass
111
+ */
112
+ 'customFields'?: object;
113
+ /**
114
+ * The type of account, default to person
115
+ * @type {string}
116
+ * @memberof MappedAccountFromPartnerClass
117
+ */
118
+ 'type': MappedAccountFromPartnerClassTypeEnum;
119
+ /**
120
+ * The company name of account, required for account type org
121
+ * @type {string}
122
+ * @memberof MappedAccountFromPartnerClass
123
+ */
124
+ 'companyName'?: string;
125
+ }
126
+
127
+ export const MappedAccountFromPartnerClassTitleEnum = {
128
+ Empty: '',
129
+ Dr: 'Dr.',
130
+ DrMed: 'Dr. med.',
131
+ Prof: 'Prof.'
132
+ } as const;
133
+
134
+ export type MappedAccountFromPartnerClassTitleEnum = typeof MappedAccountFromPartnerClassTitleEnum[keyof typeof MappedAccountFromPartnerClassTitleEnum];
135
+ export const MappedAccountFromPartnerClassGenderEnum = {
136
+ Male: 'male',
137
+ Female: 'female',
138
+ Unspecified: 'unspecified'
139
+ } as const;
140
+
141
+ export type MappedAccountFromPartnerClassGenderEnum = typeof MappedAccountFromPartnerClassGenderEnum[keyof typeof MappedAccountFromPartnerClassGenderEnum];
142
+ export const MappedAccountFromPartnerClassTypeEnum = {
143
+ Person: 'person',
144
+ Org: 'org'
145
+ } as const;
146
+
147
+ export type MappedAccountFromPartnerClassTypeEnum = typeof MappedAccountFromPartnerClassTypeEnum[keyof typeof MappedAccountFromPartnerClassTypeEnum];
148
+
149
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk-node",
3
- "version": "1.14.1-beta.5",
3
+ "version": "1.14.1-beta.6",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [