@emilgroup/tenant-sdk 1.19.0 → 1.21.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.
@@ -73,6 +73,8 @@ models/invite-user-request-dto.ts
73
73
  models/invite-user-response-class.ts
74
74
  models/invite-users-request-dto.ts
75
75
  models/invite-users-response-class.ts
76
+ models/link-user-with-partner-request-dto-rest.ts
77
+ models/link-user-with-partner-response-class.ts
76
78
  models/list-custom-schemas-response-class.ts
77
79
  models/list-dashboard-groups-response-class.ts
78
80
  models/list-dashboards-response-class.ts
@@ -85,6 +87,7 @@ models/list-users-response-class.ts
85
87
  models/org-invitation-class.ts
86
88
  models/org-invitation-response-class.ts
87
89
  models/organization-class.ts
90
+ models/partner-invitation-data-dto.ts
88
91
  models/permission-class.ts
89
92
  models/re-invite-org-request-dto.ts
90
93
  models/role-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/tenant-sdk@1.19.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.21.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.19.0
24
+ yarn add @emilgroup/tenant-sdk@1.21.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
package/api/users-api.ts CHANGED
@@ -45,6 +45,10 @@ import { EnableUsersResponseClass } from '../models';
45
45
  // @ts-ignore
46
46
  import { GetUserResponseClass } from '../models';
47
47
  // @ts-ignore
48
+ import { LinkUserWithPartnerRequestDtoRest } from '../models';
49
+ // @ts-ignore
50
+ import { LinkUserWithPartnerResponseClass } from '../models';
51
+ // @ts-ignore
48
52
  import { ListUsersResponseClass } from '../models';
49
53
  /**
50
54
  * UsersApi - axios parameter creator
@@ -428,6 +432,56 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
428
432
  options: localVarRequestOptions,
429
433
  };
430
434
  },
435
+ /**
436
+ *
437
+ * @param {string} code Unique identifier for the object.
438
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ linkUserWithPartner: async (code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
444
+ // verify required parameter 'code' is not null or undefined
445
+ assertParamExists('linkUserWithPartner', 'code', code)
446
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
447
+ assertParamExists('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest)
448
+ const localVarPath = `/tenantservice/v1/users/{code}/link-partner`
449
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ let baseAccessToken;
454
+ if (configuration) {
455
+ baseOptions = configuration.baseOptions;
456
+ baseAccessToken = configuration.accessToken;
457
+ }
458
+
459
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
460
+ const localVarHeaderParameter = {} as any;
461
+ const localVarQueryParameter = {} as any;
462
+
463
+ // authentication bearer required
464
+ // http bearer authentication required
465
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
466
+
467
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
468
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
469
+ }
470
+
471
+
472
+
473
+ localVarHeaderParameter['Content-Type'] = 'application/json';
474
+
475
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
478
+ localVarRequestOptions.data = serializeDataIfNeeded(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration)
479
+
480
+ return {
481
+ url: toPathString(localVarUrlObj),
482
+ options: localVarRequestOptions,
483
+ };
484
+ },
431
485
  /**
432
486
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
433
487
  * @summary List users
@@ -605,6 +659,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
605
659
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
606
660
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
607
661
  },
662
+ /**
663
+ *
664
+ * @param {string} code Unique identifier for the object.
665
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
666
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ async linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkUserWithPartnerResponseClass>> {
671
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options);
672
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
673
+ },
608
674
  /**
609
675
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
610
676
  * @summary List users
@@ -716,6 +782,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
716
782
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
717
783
  return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
718
784
  },
785
+ /**
786
+ *
787
+ * @param {string} code Unique identifier for the object.
788
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
789
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ */
793
+ linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkUserWithPartnerResponseClass> {
794
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
795
+ },
719
796
  /**
720
797
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
721
798
  * @summary List users
@@ -925,6 +1002,34 @@ export interface UsersApiGetUserRequest {
925
1002
  readonly expand?: string
926
1003
  }
927
1004
 
1005
+ /**
1006
+ * Request parameters for linkUserWithPartner operation in UsersApi.
1007
+ * @export
1008
+ * @interface UsersApiLinkUserWithPartnerRequest
1009
+ */
1010
+ export interface UsersApiLinkUserWithPartnerRequest {
1011
+ /**
1012
+ * Unique identifier for the object.
1013
+ * @type {string}
1014
+ * @memberof UsersApiLinkUserWithPartner
1015
+ */
1016
+ readonly code: string
1017
+
1018
+ /**
1019
+ *
1020
+ * @type {LinkUserWithPartnerRequestDtoRest}
1021
+ * @memberof UsersApiLinkUserWithPartner
1022
+ */
1023
+ readonly linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest
1024
+
1025
+ /**
1026
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1027
+ * @type {string}
1028
+ * @memberof UsersApiLinkUserWithPartner
1029
+ */
1030
+ readonly authorization?: string
1031
+ }
1032
+
928
1033
  /**
929
1034
  * Request parameters for listUsers operation in UsersApi.
930
1035
  * @export
@@ -1083,6 +1188,17 @@ export class UsersApi extends BaseAPI {
1083
1188
  return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1084
1189
  }
1085
1190
 
1191
+ /**
1192
+ *
1193
+ * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ * @memberof UsersApi
1197
+ */
1198
+ public linkUserWithPartner(requestParameters: UsersApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig) {
1199
+ return UsersApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1200
+ }
1201
+
1086
1202
  /**
1087
1203
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1088
1204
  * @summary List users
@@ -24,6 +24,8 @@ import { EnableUserResponseClass } from '../models';
24
24
  import { EnableUsersRequestDto } from '../models';
25
25
  import { EnableUsersResponseClass } from '../models';
26
26
  import { GetUserResponseClass } from '../models';
27
+ import { LinkUserWithPartnerRequestDtoRest } from '../models';
28
+ import { LinkUserWithPartnerResponseClass } from '../models';
27
29
  import { ListUsersResponseClass } from '../models';
28
30
  /**
29
31
  * UsersApi - axios parameter creator
@@ -97,6 +99,15 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
97
99
  * @throws {RequiredError}
98
100
  */
99
101
  getUser: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
102
+ /**
103
+ *
104
+ * @param {string} code Unique identifier for the object.
105
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
106
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ linkUserWithPartner: (code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
111
  /**
101
112
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
102
113
  * @summary List users
@@ -185,6 +196,15 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
185
196
  * @throws {RequiredError}
186
197
  */
187
198
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>>;
199
+ /**
200
+ *
201
+ * @param {string} code Unique identifier for the object.
202
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
203
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkUserWithPartnerResponseClass>>;
188
208
  /**
189
209
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
190
210
  * @summary List users
@@ -273,6 +293,15 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
273
293
  * @throws {RequiredError}
274
294
  */
275
295
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass>;
296
+ /**
297
+ *
298
+ * @param {string} code Unique identifier for the object.
299
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
300
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkUserWithPartnerResponseClass>;
276
305
  /**
277
306
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
278
307
  * @summary List users
@@ -459,6 +488,31 @@ export interface UsersApiGetUserRequest {
459
488
  */
460
489
  readonly expand?: string;
461
490
  }
491
+ /**
492
+ * Request parameters for linkUserWithPartner operation in UsersApi.
493
+ * @export
494
+ * @interface UsersApiLinkUserWithPartnerRequest
495
+ */
496
+ export interface UsersApiLinkUserWithPartnerRequest {
497
+ /**
498
+ * Unique identifier for the object.
499
+ * @type {string}
500
+ * @memberof UsersApiLinkUserWithPartner
501
+ */
502
+ readonly code: string;
503
+ /**
504
+ *
505
+ * @type {LinkUserWithPartnerRequestDtoRest}
506
+ * @memberof UsersApiLinkUserWithPartner
507
+ */
508
+ readonly linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest;
509
+ /**
510
+ * Bearer Token: provided by the login endpoint under the name accessToken.
511
+ * @type {string}
512
+ * @memberof UsersApiLinkUserWithPartner
513
+ */
514
+ readonly authorization?: string;
515
+ }
462
516
  /**
463
517
  * Request parameters for listUsers operation in UsersApi.
464
518
  * @export
@@ -585,6 +639,14 @@ export declare class UsersApi extends BaseAPI {
585
639
  * @memberof UsersApi
586
640
  */
587
641
  getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserResponseClass, any>>;
642
+ /**
643
+ *
644
+ * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ * @memberof UsersApi
648
+ */
649
+ linkUserWithPartner(requestParameters: UsersApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkUserWithPartnerResponseClass, any>>;
588
650
  /**
589
651
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
590
652
  * @summary List users
@@ -486,6 +486,58 @@ var UsersApiAxiosParamCreator = function (configuration) {
486
486
  });
487
487
  });
488
488
  },
489
+ /**
490
+ *
491
+ * @param {string} code Unique identifier for the object.
492
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
493
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ */
497
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
498
+ if (options === void 0) { options = {}; }
499
+ return __awaiter(_this, void 0, void 0, function () {
500
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
501
+ return __generator(this, function (_a) {
502
+ switch (_a.label) {
503
+ case 0:
504
+ // verify required parameter 'code' is not null or undefined
505
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'code', code);
506
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
507
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest);
508
+ localVarPath = "/tenantservice/v1/users/{code}/link-partner"
509
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
510
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
511
+ if (configuration) {
512
+ baseOptions = configuration.baseOptions;
513
+ baseAccessToken = configuration.accessToken;
514
+ }
515
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
516
+ localVarHeaderParameter = {};
517
+ localVarQueryParameter = {};
518
+ // authentication bearer required
519
+ // http bearer authentication required
520
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
521
+ case 1:
522
+ // authentication bearer required
523
+ // http bearer authentication required
524
+ _a.sent();
525
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
526
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
527
+ }
528
+ localVarHeaderParameter['Content-Type'] = 'application/json';
529
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
530
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
531
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
532
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration);
533
+ return [2 /*return*/, {
534
+ url: (0, common_1.toPathString)(localVarUrlObj),
535
+ options: localVarRequestOptions,
536
+ }];
537
+ }
538
+ });
539
+ });
540
+ },
489
541
  /**
490
542
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
491
543
  * @summary List users
@@ -731,6 +783,27 @@ var UsersApiFp = function (configuration) {
731
783
  });
732
784
  });
733
785
  },
786
+ /**
787
+ *
788
+ * @param {string} code Unique identifier for the object.
789
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
790
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
795
+ return __awaiter(this, void 0, void 0, function () {
796
+ var localVarAxiosArgs;
797
+ return __generator(this, function (_a) {
798
+ switch (_a.label) {
799
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options)];
800
+ case 1:
801
+ localVarAxiosArgs = _a.sent();
802
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
803
+ }
804
+ });
805
+ });
806
+ },
734
807
  /**
735
808
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
736
809
  * @summary List users
@@ -851,6 +924,17 @@ var UsersApiFactory = function (configuration, basePath, axios) {
851
924
  getUser: function (code, code2, authorization, expand, options) {
852
925
  return localVarFp.getUser(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
853
926
  },
927
+ /**
928
+ *
929
+ * @param {string} code Unique identifier for the object.
930
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
931
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
932
+ * @param {*} [options] Override http request option.
933
+ * @throws {RequiredError}
934
+ */
935
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
936
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
937
+ },
854
938
  /**
855
939
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
856
940
  * @summary List users
@@ -970,6 +1054,17 @@ var UsersApi = /** @class */ (function (_super) {
970
1054
  var _this = this;
971
1055
  return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
972
1056
  };
1057
+ /**
1058
+ *
1059
+ * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ * @memberof UsersApi
1063
+ */
1064
+ UsersApi.prototype.linkUserWithPartner = function (requestParameters, options) {
1065
+ var _this = this;
1066
+ return (0, exports.UsersApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1067
+ };
973
1068
  /**
974
1069
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
975
1070
  * @summary List users
@@ -47,6 +47,8 @@ export * from './invite-user-request-dto';
47
47
  export * from './invite-user-response-class';
48
48
  export * from './invite-users-request-dto';
49
49
  export * from './invite-users-response-class';
50
+ export * from './link-user-with-partner-request-dto-rest';
51
+ export * from './link-user-with-partner-response-class';
50
52
  export * from './list-custom-schemas-response-class';
51
53
  export * from './list-dashboard-groups-response-class';
52
54
  export * from './list-dashboards-response-class';
@@ -59,6 +61,7 @@ export * from './list-users-response-class';
59
61
  export * from './org-invitation-class';
60
62
  export * from './org-invitation-response-class';
61
63
  export * from './organization-class';
64
+ export * from './partner-invitation-data-dto';
62
65
  export * from './permission-class';
63
66
  export * from './re-invite-org-request-dto';
64
67
  export * from './role-class';
@@ -63,6 +63,8 @@ __exportStar(require("./invite-user-request-dto"), exports);
63
63
  __exportStar(require("./invite-user-response-class"), exports);
64
64
  __exportStar(require("./invite-users-request-dto"), exports);
65
65
  __exportStar(require("./invite-users-response-class"), exports);
66
+ __exportStar(require("./link-user-with-partner-request-dto-rest"), exports);
67
+ __exportStar(require("./link-user-with-partner-response-class"), exports);
66
68
  __exportStar(require("./list-custom-schemas-response-class"), exports);
67
69
  __exportStar(require("./list-dashboard-groups-response-class"), exports);
68
70
  __exportStar(require("./list-dashboards-response-class"), exports);
@@ -75,6 +77,7 @@ __exportStar(require("./list-users-response-class"), exports);
75
77
  __exportStar(require("./org-invitation-class"), exports);
76
78
  __exportStar(require("./org-invitation-response-class"), exports);
77
79
  __exportStar(require("./organization-class"), exports);
80
+ __exportStar(require("./partner-invitation-data-dto"), exports);
78
81
  __exportStar(require("./permission-class"), exports);
79
82
  __exportStar(require("./re-invite-org-request-dto"), exports);
80
83
  __exportStar(require("./role-class"), exports);
@@ -59,10 +59,28 @@ export interface InviteClass {
59
59
  * @memberof InviteClass
60
60
  */
61
61
  'ern': string;
62
+ /**
63
+ * Indicates if a new partner will be created as part of the invitation flow.
64
+ * @type {boolean}
65
+ * @memberof InviteClass
66
+ */
67
+ 'shouldCreateNewPartner': boolean;
68
+ /**
69
+ * Optional metadata associated with the invite - useful for passing data to the front end for custom logic.
70
+ * @type {object}
71
+ * @memberof InviteClass
72
+ */
73
+ 'metadata'?: object;
74
+ /**
75
+ * Organization ID associated with the invite.
76
+ * @type {number}
77
+ * @memberof InviteClass
78
+ */
79
+ 'organizationId'?: number;
62
80
  /**
63
81
  * Organization associated with the user
64
82
  * @type {OrganizationClass}
65
83
  * @memberof InviteClass
66
84
  */
67
- 'organization': OrganizationClass;
85
+ 'organization'?: OrganizationClass;
68
86
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { PartnerInvitationDataDto } from './partner-invitation-data-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -33,4 +34,10 @@ export interface InviteUserRequestDto {
33
34
  * @memberof InviteUserRequestDto
34
35
  */
35
36
  'roleIds': Array<number>;
37
+ /**
38
+ *
39
+ * @type {PartnerInvitationDataDto}
40
+ * @memberof InviteUserRequestDto
41
+ */
42
+ 'partnerInvitationData'?: PartnerInvitationDataDto;
36
43
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService 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 LinkUserWithPartnerRequestDtoRest
16
+ */
17
+ export interface LinkUserWithPartnerRequestDtoRest {
18
+ /**
19
+ * Indicates whether a new partner entity should be created or an existing one should be used
20
+ * @type {boolean}
21
+ * @memberof LinkUserWithPartnerRequestDtoRest
22
+ */
23
+ 'shouldCreateNewPartner': boolean;
24
+ /**
25
+ * The code of the partner that will be linked with the user - only if shouldCreateNewPartner is false
26
+ * @type {string}
27
+ * @memberof LinkUserWithPartnerRequestDtoRest
28
+ */
29
+ 'partnerCode'?: string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService 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,25 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService 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 { UserClass } from './user-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LinkUserWithPartnerResponseClass
17
+ */
18
+ export interface LinkUserWithPartnerResponseClass {
19
+ /**
20
+ * user
21
+ * @type {UserClass}
22
+ * @memberof LinkUserWithPartnerResponseClass
23
+ */
24
+ 'user': UserClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService 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 PartnerInvitationDataDto
16
+ */
17
+ export interface PartnerInvitationDataDto {
18
+ /**
19
+ * Indicates if a new partner should be created if the partner code does not exist
20
+ * @type {boolean}
21
+ * @memberof PartnerInvitationDataDto
22
+ */
23
+ 'shouldCreateNewPartner': boolean;
24
+ /**
25
+ * In case we do not want to create a new partner, we can provide the code of an existing partner
26
+ * @type {string}
27
+ * @memberof PartnerInvitationDataDto
28
+ */
29
+ 'partnerCode'?: string;
30
+ /**
31
+ * Optional metadata to be stored with the invitation
32
+ * @type {object}
33
+ * @memberof PartnerInvitationDataDto
34
+ */
35
+ 'metadata'?: object;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService 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 });
@@ -96,10 +96,16 @@ export interface UserClass {
96
96
  * @memberof UserClass
97
97
  */
98
98
  'ern': string;
99
+ /**
100
+ * Associated partner code - only available if the partner has been invited and registered in EIS platform
101
+ * @type {string}
102
+ * @memberof UserClass
103
+ */
104
+ 'partnerCode'?: string;
99
105
  /**
100
106
  * Organization associated with the user
101
107
  * @type {OrganizationClass}
102
108
  * @memberof UserClass
103
109
  */
104
- 'organization': OrganizationClass;
110
+ 'organization'?: OrganizationClass;
105
111
  }
package/models/index.ts CHANGED
@@ -47,6 +47,8 @@ export * from './invite-user-request-dto';
47
47
  export * from './invite-user-response-class';
48
48
  export * from './invite-users-request-dto';
49
49
  export * from './invite-users-response-class';
50
+ export * from './link-user-with-partner-request-dto-rest';
51
+ export * from './link-user-with-partner-response-class';
50
52
  export * from './list-custom-schemas-response-class';
51
53
  export * from './list-dashboard-groups-response-class';
52
54
  export * from './list-dashboards-response-class';
@@ -59,6 +61,7 @@ export * from './list-users-response-class';
59
61
  export * from './org-invitation-class';
60
62
  export * from './org-invitation-response-class';
61
63
  export * from './organization-class';
64
+ export * from './partner-invitation-data-dto';
62
65
  export * from './permission-class';
63
66
  export * from './re-invite-org-request-dto';
64
67
  export * from './role-class';
@@ -64,11 +64,29 @@ export interface InviteClass {
64
64
  * @memberof InviteClass
65
65
  */
66
66
  'ern': string;
67
+ /**
68
+ * Indicates if a new partner will be created as part of the invitation flow.
69
+ * @type {boolean}
70
+ * @memberof InviteClass
71
+ */
72
+ 'shouldCreateNewPartner': boolean;
73
+ /**
74
+ * Optional metadata associated with the invite - useful for passing data to the front end for custom logic.
75
+ * @type {object}
76
+ * @memberof InviteClass
77
+ */
78
+ 'metadata'?: object;
79
+ /**
80
+ * Organization ID associated with the invite.
81
+ * @type {number}
82
+ * @memberof InviteClass
83
+ */
84
+ 'organizationId'?: number;
67
85
  /**
68
86
  * Organization associated with the user
69
87
  * @type {OrganizationClass}
70
88
  * @memberof InviteClass
71
89
  */
72
- 'organization': OrganizationClass;
90
+ 'organization'?: OrganizationClass;
73
91
  }
74
92
 
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { PartnerInvitationDataDto } from './partner-invitation-data-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -38,5 +39,11 @@ export interface InviteUserRequestDto {
38
39
  * @memberof InviteUserRequestDto
39
40
  */
40
41
  'roleIds': Array<number>;
42
+ /**
43
+ *
44
+ * @type {PartnerInvitationDataDto}
45
+ * @memberof InviteUserRequestDto
46
+ */
47
+ 'partnerInvitationData'?: PartnerInvitationDataDto;
41
48
  }
42
49
 
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService 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 LinkUserWithPartnerRequestDtoRest
21
+ */
22
+ export interface LinkUserWithPartnerRequestDtoRest {
23
+ /**
24
+ * Indicates whether a new partner entity should be created or an existing one should be used
25
+ * @type {boolean}
26
+ * @memberof LinkUserWithPartnerRequestDtoRest
27
+ */
28
+ 'shouldCreateNewPartner': boolean;
29
+ /**
30
+ * The code of the partner that will be linked with the user - only if shouldCreateNewPartner is false
31
+ * @type {string}
32
+ * @memberof LinkUserWithPartnerRequestDtoRest
33
+ */
34
+ 'partnerCode'?: string;
35
+ }
36
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService 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 { UserClass } from './user-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface LinkUserWithPartnerResponseClass
22
+ */
23
+ export interface LinkUserWithPartnerResponseClass {
24
+ /**
25
+ * user
26
+ * @type {UserClass}
27
+ * @memberof LinkUserWithPartnerResponseClass
28
+ */
29
+ 'user': UserClass;
30
+ }
31
+
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService 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 PartnerInvitationDataDto
21
+ */
22
+ export interface PartnerInvitationDataDto {
23
+ /**
24
+ * Indicates if a new partner should be created if the partner code does not exist
25
+ * @type {boolean}
26
+ * @memberof PartnerInvitationDataDto
27
+ */
28
+ 'shouldCreateNewPartner': boolean;
29
+ /**
30
+ * In case we do not want to create a new partner, we can provide the code of an existing partner
31
+ * @type {string}
32
+ * @memberof PartnerInvitationDataDto
33
+ */
34
+ 'partnerCode'?: string;
35
+ /**
36
+ * Optional metadata to be stored with the invitation
37
+ * @type {object}
38
+ * @memberof PartnerInvitationDataDto
39
+ */
40
+ 'metadata'?: object;
41
+ }
42
+
@@ -101,11 +101,17 @@ export interface UserClass {
101
101
  * @memberof UserClass
102
102
  */
103
103
  'ern': string;
104
+ /**
105
+ * Associated partner code - only available if the partner has been invited and registered in EIS platform
106
+ * @type {string}
107
+ * @memberof UserClass
108
+ */
109
+ 'partnerCode'?: string;
104
110
  /**
105
111
  * Organization associated with the user
106
112
  * @type {OrganizationClass}
107
113
  * @memberof UserClass
108
114
  */
109
- 'organization': OrganizationClass;
115
+ 'organization'?: OrganizationClass;
110
116
  }
111
117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [