@emilgroup/partner-sdk 1.14.1-beta.5 → 1.15.0

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@1.14.1-beta.5 --save
20
+ npm install @emilgroup/partner-sdk@1.15.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk@1.14.1-beta.5
24
+ yarn add @emilgroup/partner-sdk@1.15.0
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';
@@ -232,6 +234,51 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
232
234
 
233
235
 
234
236
 
237
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
240
+
241
+ return {
242
+ url: toPathString(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ },
246
+ /**
247
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
248
+ * @summary Retrieve the map partner to account
249
+ * @param {string} code
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ getPartnerAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ // verify required parameter 'code' is not null or undefined
256
+ assertParamExists('getPartnerAccount', 'code', code)
257
+ const localVarPath = `/partnerservice/v1/partners/{code}/map-to-account`
258
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
261
+ let baseOptions;
262
+ let baseAccessToken;
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ baseAccessToken = configuration.accessToken;
266
+ }
267
+
268
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
269
+ const localVarHeaderParameter = {} as any;
270
+ const localVarQueryParameter = {} as any;
271
+
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
275
+
276
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
+ }
279
+
280
+
281
+
235
282
  setSearchParams(localVarUrlObj, localVarQueryParameter);
236
283
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
284
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -559,6 +606,18 @@ export const PartnersApiFp = function(configuration?: Configuration) {
559
606
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPartner(code, authorization, expand, options);
560
607
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
561
608
  },
609
+ /**
610
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
611
+ * @summary Retrieve the map partner to account
612
+ * @param {string} code
613
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ async getPartnerAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MapPartnerToAccountResponseClass>> {
618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerAccount(code, authorization, options);
619
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
620
+ },
562
621
  /**
563
622
  * 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\"
564
623
  * @summary List partners
@@ -678,6 +737,17 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
678
737
  getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass> {
679
738
  return localVarFp.getPartner(code, authorization, expand, options).then((request) => request(axios, basePath));
680
739
  },
740
+ /**
741
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
742
+ * @summary Retrieve the map partner to account
743
+ * @param {string} code
744
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ getPartnerAccount(code: string, authorization?: string, options?: any): AxiosPromise<MapPartnerToAccountResponseClass> {
749
+ return localVarFp.getPartnerAccount(code, authorization, options).then((request) => request(axios, basePath));
750
+ },
681
751
  /**
682
752
  * 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\"
683
753
  * @summary List partners
@@ -838,6 +908,27 @@ export interface PartnersApiGetPartnerRequest {
838
908
  readonly expand?: any
839
909
  }
840
910
 
911
+ /**
912
+ * Request parameters for getPartnerAccount operation in PartnersApi.
913
+ * @export
914
+ * @interface PartnersApiGetPartnerAccountRequest
915
+ */
916
+ export interface PartnersApiGetPartnerAccountRequest {
917
+ /**
918
+ *
919
+ * @type {string}
920
+ * @memberof PartnersApiGetPartnerAccount
921
+ */
922
+ readonly code: string
923
+
924
+ /**
925
+ * Bearer Token: provided by the login endpoint under the name accessToken.
926
+ * @type {string}
927
+ * @memberof PartnersApiGetPartnerAccount
928
+ */
929
+ readonly authorization?: string
930
+ }
931
+
841
932
  /**
842
933
  * Request parameters for listPartners operation in PartnersApi.
843
934
  * @export
@@ -1082,6 +1173,18 @@ export class PartnersApi extends BaseAPI {
1082
1173
  return PartnersApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1083
1174
  }
1084
1175
 
1176
+ /**
1177
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
1178
+ * @summary Retrieve the map partner to account
1179
+ * @param {PartnersApiGetPartnerAccountRequest} requestParameters Request parameters.
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ * @memberof PartnersApi
1183
+ */
1184
+ public getPartnerAccount(requestParameters: PartnersApiGetPartnerAccountRequest, options?: AxiosRequestConfig) {
1185
+ return PartnersApiFp(this.configuration).getPartnerAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1186
+ }
1187
+
1085
1188
  /**
1086
1189
  * 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\"
1087
1190
  * @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
@@ -294,6 +294,54 @@ var PartnersApiAxiosParamCreator = function (configuration) {
294
294
  });
295
295
  });
296
296
  },
297
+ /**
298
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
299
+ * @summary Retrieve the map partner to account
300
+ * @param {string} code
301
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ getPartnerAccount: function (code, authorization, options) {
306
+ if (options === void 0) { options = {}; }
307
+ return __awaiter(_this, void 0, void 0, function () {
308
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0:
312
+ // verify required parameter 'code' is not null or undefined
313
+ (0, common_1.assertParamExists)('getPartnerAccount', 'code', code);
314
+ localVarPath = "/partnerservice/v1/partners/{code}/map-to-account"
315
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
316
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
317
+ if (configuration) {
318
+ baseOptions = configuration.baseOptions;
319
+ baseAccessToken = configuration.accessToken;
320
+ }
321
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
322
+ localVarHeaderParameter = {};
323
+ localVarQueryParameter = {};
324
+ // authentication bearer required
325
+ // http bearer authentication required
326
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
327
+ case 1:
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ _a.sent();
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
333
+ }
334
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
335
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
337
+ return [2 /*return*/, {
338
+ url: (0, common_1.toPathString)(localVarUrlObj),
339
+ options: localVarRequestOptions,
340
+ }];
341
+ }
342
+ });
343
+ });
344
+ },
297
345
  /**
298
346
  * 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\"
299
347
  * @summary List partners
@@ -644,6 +692,27 @@ var PartnersApiFp = function (configuration) {
644
692
  });
645
693
  });
646
694
  },
695
+ /**
696
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
697
+ * @summary Retrieve the map partner to account
698
+ * @param {string} code
699
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
700
+ * @param {*} [options] Override http request option.
701
+ * @throws {RequiredError}
702
+ */
703
+ getPartnerAccount: function (code, authorization, options) {
704
+ return __awaiter(this, void 0, void 0, function () {
705
+ var localVarAxiosArgs;
706
+ return __generator(this, function (_a) {
707
+ switch (_a.label) {
708
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPartnerAccount(code, authorization, options)];
709
+ case 1:
710
+ localVarAxiosArgs = _a.sent();
711
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
712
+ }
713
+ });
714
+ });
715
+ },
647
716
  /**
648
717
  * 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\"
649
718
  * @summary List partners
@@ -799,6 +868,17 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
799
868
  getPartner: function (code, authorization, expand, options) {
800
869
  return localVarFp.getPartner(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
801
870
  },
871
+ /**
872
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
873
+ * @summary Retrieve the map partner to account
874
+ * @param {string} code
875
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ getPartnerAccount: function (code, authorization, options) {
880
+ return localVarFp.getPartnerAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
881
+ },
802
882
  /**
803
883
  * 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\"
804
884
  * @summary List partners
@@ -920,6 +1000,18 @@ var PartnersApi = /** @class */ (function (_super) {
920
1000
  var _this = this;
921
1001
  return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
922
1002
  };
1003
+ /**
1004
+ * Map a partner to an account **Required Permissions** \"partner-management.partners.view\"
1005
+ * @summary Retrieve the map partner to account
1006
+ * @param {PartnersApiGetPartnerAccountRequest} requestParameters Request parameters.
1007
+ * @param {*} [options] Override http request option.
1008
+ * @throws {RequiredError}
1009
+ * @memberof PartnersApi
1010
+ */
1011
+ PartnersApi.prototype.getPartnerAccount = function (requestParameters, options) {
1012
+ var _this = this;
1013
+ return (0, exports.PartnersApiFp)(this.configuration).getPartnerAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1014
+ };
923
1015
  /**
924
1016
  * 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\"
925
1017
  * @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",
3
- "version": "1.14.1-beta.5",
3
+ "version": "1.15.0",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [