@emilgroup/tenant-sdk-node 1.18.0 → 1.20.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-node@1.18.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.20.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.18.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.20.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
  // URLSearchParams not necessarily used
50
54
  // @ts-ignore
@@ -432,6 +436,56 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
432
436
  options: localVarRequestOptions,
433
437
  };
434
438
  },
439
+ /**
440
+ *
441
+ * @param {string} code Unique identifier for the object.
442
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ linkUserWithPartner: async (code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
448
+ // verify required parameter 'code' is not null or undefined
449
+ assertParamExists('linkUserWithPartner', 'code', code)
450
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
451
+ assertParamExists('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest)
452
+ const localVarPath = `/tenantservice/v1/users/{code}/link-partner`
453
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
455
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
456
+ let baseOptions;
457
+ let baseAccessToken;
458
+ if (configuration) {
459
+ baseOptions = configuration.baseOptions;
460
+ baseAccessToken = configuration.accessToken;
461
+ }
462
+
463
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
464
+ const localVarHeaderParameter = {} as any;
465
+ const localVarQueryParameter = {} as any;
466
+
467
+ // authentication bearer required
468
+ // http bearer authentication required
469
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
470
+
471
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
472
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
473
+ }
474
+
475
+
476
+
477
+ localVarHeaderParameter['Content-Type'] = 'application/json';
478
+
479
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
482
+ localVarRequestOptions.data = serializeDataIfNeeded(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration)
483
+
484
+ return {
485
+ url: toPathString(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ };
488
+ },
435
489
  /**
436
490
  * 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.
437
491
  * @summary List users
@@ -609,6 +663,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
609
663
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
610
664
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
611
665
  },
666
+ /**
667
+ *
668
+ * @param {string} code Unique identifier for the object.
669
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
670
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ */
674
+ async linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkUserWithPartnerResponseClass>> {
675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options);
676
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
677
+ },
612
678
  /**
613
679
  * 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.
614
680
  * @summary List users
@@ -720,6 +786,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
720
786
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
721
787
  return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
722
788
  },
789
+ /**
790
+ *
791
+ * @param {string} code Unique identifier for the object.
792
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
793
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ */
797
+ linkUserWithPartner(code: string, linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkUserWithPartnerResponseClass> {
798
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
799
+ },
723
800
  /**
724
801
  * 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.
725
802
  * @summary List users
@@ -929,6 +1006,34 @@ export interface UsersApiGetUserRequest {
929
1006
  readonly expand?: string
930
1007
  }
931
1008
 
1009
+ /**
1010
+ * Request parameters for linkUserWithPartner operation in UsersApi.
1011
+ * @export
1012
+ * @interface UsersApiLinkUserWithPartnerRequest
1013
+ */
1014
+ export interface UsersApiLinkUserWithPartnerRequest {
1015
+ /**
1016
+ * Unique identifier for the object.
1017
+ * @type {string}
1018
+ * @memberof UsersApiLinkUserWithPartner
1019
+ */
1020
+ readonly code: string
1021
+
1022
+ /**
1023
+ *
1024
+ * @type {LinkUserWithPartnerRequestDtoRest}
1025
+ * @memberof UsersApiLinkUserWithPartner
1026
+ */
1027
+ readonly linkUserWithPartnerRequestDtoRest: LinkUserWithPartnerRequestDtoRest
1028
+
1029
+ /**
1030
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1031
+ * @type {string}
1032
+ * @memberof UsersApiLinkUserWithPartner
1033
+ */
1034
+ readonly authorization?: string
1035
+ }
1036
+
932
1037
  /**
933
1038
  * Request parameters for listUsers operation in UsersApi.
934
1039
  * @export
@@ -1087,6 +1192,17 @@ export class UsersApi extends BaseAPI {
1087
1192
  return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1088
1193
  }
1089
1194
 
1195
+ /**
1196
+ *
1197
+ * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1198
+ * @param {*} [options] Override http request option.
1199
+ * @throws {RequiredError}
1200
+ * @memberof UsersApi
1201
+ */
1202
+ public linkUserWithPartner(requestParameters: UsersApiLinkUserWithPartnerRequest, options?: AxiosRequestConfig) {
1203
+ return UsersApiFp(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1204
+ }
1205
+
1090
1206
  /**
1091
1207
  * 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.
1092
1208
  * @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
@@ -490,6 +490,58 @@ var UsersApiAxiosParamCreator = function (configuration) {
490
490
  });
491
491
  });
492
492
  },
493
+ /**
494
+ *
495
+ * @param {string} code Unique identifier for the object.
496
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
497
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
502
+ if (options === void 0) { options = {}; }
503
+ return __awaiter(_this, void 0, void 0, function () {
504
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
505
+ return __generator(this, function (_a) {
506
+ switch (_a.label) {
507
+ case 0:
508
+ // verify required parameter 'code' is not null or undefined
509
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'code', code);
510
+ // verify required parameter 'linkUserWithPartnerRequestDtoRest' is not null or undefined
511
+ (0, common_1.assertParamExists)('linkUserWithPartner', 'linkUserWithPartnerRequestDtoRest', linkUserWithPartnerRequestDtoRest);
512
+ localVarPath = "/tenantservice/v1/users/{code}/link-partner"
513
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
514
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
515
+ if (configuration) {
516
+ baseOptions = configuration.baseOptions;
517
+ baseAccessToken = configuration.accessToken;
518
+ }
519
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
520
+ localVarHeaderParameter = {};
521
+ localVarQueryParameter = {};
522
+ // authentication bearer required
523
+ // http bearer authentication required
524
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
525
+ case 1:
526
+ // authentication bearer required
527
+ // http bearer authentication required
528
+ _a.sent();
529
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
530
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
531
+ }
532
+ localVarHeaderParameter['Content-Type'] = 'application/json';
533
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
534
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
536
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkUserWithPartnerRequestDtoRest, localVarRequestOptions, configuration);
537
+ return [2 /*return*/, {
538
+ url: (0, common_1.toPathString)(localVarUrlObj),
539
+ options: localVarRequestOptions,
540
+ }];
541
+ }
542
+ });
543
+ });
544
+ },
493
545
  /**
494
546
  * 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.
495
547
  * @summary List users
@@ -735,6 +787,27 @@ var UsersApiFp = function (configuration) {
735
787
  });
736
788
  });
737
789
  },
790
+ /**
791
+ *
792
+ * @param {string} code Unique identifier for the object.
793
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
794
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
799
+ return __awaiter(this, void 0, void 0, function () {
800
+ var localVarAxiosArgs;
801
+ return __generator(this, function (_a) {
802
+ switch (_a.label) {
803
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options)];
804
+ case 1:
805
+ localVarAxiosArgs = _a.sent();
806
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
807
+ }
808
+ });
809
+ });
810
+ },
738
811
  /**
739
812
  * 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.
740
813
  * @summary List users
@@ -855,6 +928,17 @@ var UsersApiFactory = function (configuration, basePath, axios) {
855
928
  getUser: function (code, code2, authorization, expand, options) {
856
929
  return localVarFp.getUser(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
857
930
  },
931
+ /**
932
+ *
933
+ * @param {string} code Unique identifier for the object.
934
+ * @param {LinkUserWithPartnerRequestDtoRest} linkUserWithPartnerRequestDtoRest
935
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
940
+ return localVarFp.linkUserWithPartner(code, linkUserWithPartnerRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
941
+ },
858
942
  /**
859
943
  * 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.
860
944
  * @summary List users
@@ -974,6 +1058,17 @@ var UsersApi = /** @class */ (function (_super) {
974
1058
  var _this = this;
975
1059
  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); });
976
1060
  };
1061
+ /**
1062
+ *
1063
+ * @param {UsersApiLinkUserWithPartnerRequest} requestParameters Request parameters.
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ * @memberof UsersApi
1067
+ */
1068
+ UsersApi.prototype.linkUserWithPartner = function (requestParameters, options) {
1069
+ var _this = this;
1070
+ return (0, exports.UsersApiFp)(this.configuration).linkUserWithPartner(requestParameters.code, requestParameters.linkUserWithPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1071
+ };
977
1072
  /**
978
1073
  * 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.
979
1074
  * @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-node",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [