@emilgroup/tenant-sdk-node 1.0.2 → 1.1.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.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/api/custom-schema-api.ts +16 -16
  3. package/api/data-report-api.ts +20 -20
  4. package/api/data-report-executor-api.ts +4 -4
  5. package/api/invite-organizations-api.ts +8 -8
  6. package/api/invite-users-api.ts +20 -20
  7. package/api/organizations-api.ts +124 -8
  8. package/api/users-api.ts +36 -36
  9. package/base.ts +3 -3
  10. package/dist/api/custom-schema-api.d.ts +16 -16
  11. package/dist/api/custom-schema-api.js +12 -12
  12. package/dist/api/data-report-api.d.ts +20 -20
  13. package/dist/api/data-report-api.js +15 -15
  14. package/dist/api/data-report-executor-api.d.ts +4 -4
  15. package/dist/api/data-report-executor-api.js +3 -3
  16. package/dist/api/invite-organizations-api.d.ts +8 -8
  17. package/dist/api/invite-organizations-api.js +6 -6
  18. package/dist/api/invite-users-api.d.ts +20 -20
  19. package/dist/api/invite-users-api.js +15 -15
  20. package/dist/api/organizations-api.d.ts +72 -8
  21. package/dist/api/organizations-api.js +105 -6
  22. package/dist/api/users-api.d.ts +36 -36
  23. package/dist/api/users-api.js +27 -27
  24. package/dist/base.d.ts +1 -1
  25. package/dist/base.js +3 -3
  26. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  27. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  28. package/dist/models/create-custom-schema-request-dto.js +2 -1
  29. package/dist/models/invite-org-request-dto.d.ts +2 -14
  30. package/dist/models/invite-org-request-dto.js +0 -6
  31. package/dist/models/invite-user-request-dto.d.ts +2 -2
  32. package/dist/models/invite-users-request-dto.d.ts +2 -2
  33. package/dist/models/org-invitation-class.d.ts +0 -12
  34. package/dist/models/org-invitation-class.js +0 -6
  35. package/dist/models/organization-class.d.ts +6 -12
  36. package/dist/models/organization-class.js +0 -6
  37. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  38. package/dist/models/update-custom-schema-request-dto.js +2 -1
  39. package/models/assign-user-roles-request-dto.ts +2 -2
  40. package/models/create-custom-schema-request-dto.ts +2 -1
  41. package/models/invite-org-request-dto.ts +2 -17
  42. package/models/invite-user-request-dto.ts +2 -2
  43. package/models/invite-users-request-dto.ts +2 -2
  44. package/models/org-invitation-class.ts +0 -15
  45. package/models/organization-class.ts +6 -15
  46. package/models/update-custom-schema-request-dto.ts +2 -1
  47. package/package.json +1 -1
@@ -100,7 +100,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
100
100
  *
101
101
  * @param {number} id
102
102
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
103
- * @param {string} [authorization] Bearer Token
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
@@ -151,7 +151,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
151
151
  /**
152
152
  *
153
153
  * @param {number} id
154
- * @param {string} [authorization] Bearer Token
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
155
  * @param {*} [options] Override http request option.
156
156
  * @throws {RequiredError}
157
157
  */
@@ -198,7 +198,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
198
198
  /**
199
199
  *
200
200
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
201
- * @param {string} [authorization] Bearer Token
201
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
204
204
  */
@@ -246,7 +246,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
246
246
  /**
247
247
  *
248
248
  * @param {number} id
249
- * @param {string} [authorization] Bearer Token
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @param {*} [options] Override http request option.
251
251
  * @throws {RequiredError}
252
252
  */
@@ -293,7 +293,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
293
293
  /**
294
294
  *
295
295
  * @param {DisableUsersRequestDto} disableUsersRequestDto
296
- * @param {string} [authorization] Bearer Token
296
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
297
  * @param {*} [options] Override http request option.
298
298
  * @throws {RequiredError}
299
299
  */
@@ -341,7 +341,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
341
341
  /**
342
342
  *
343
343
  * @param {number} id
344
- * @param {string} [authorization] Bearer Token
344
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
345
  * @param {*} [options] Override http request option.
346
346
  * @throws {RequiredError}
347
347
  */
@@ -388,7 +388,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
388
388
  /**
389
389
  *
390
390
  * @param {EnableUsersRequestDto} enableUsersRequestDto
391
- * @param {string} [authorization] Bearer Token
391
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
392
392
  * @param {*} [options] Override http request option.
393
393
  * @throws {RequiredError}
394
394
  */
@@ -437,7 +437,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
437
437
  *
438
438
  * @param {string} code
439
439
  * @param {string} code2 code
440
- * @param {string} [authorization] Bearer Token
440
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
441
441
  * @param {string} [expand] Fields to expand response by
442
442
  * @param {*} [options] Override http request option.
443
443
  * @throws {RequiredError}
@@ -493,7 +493,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
493
493
  /**
494
494
  * 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
495
  * @summary List users
496
- * @param {string} [authorization] Bearer Token
496
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
497
497
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
498
498
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
499
499
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -572,7 +572,7 @@ var UsersApiFp = function (configuration) {
572
572
  *
573
573
  * @param {number} id
574
574
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
575
- * @param {string} [authorization] Bearer Token
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
576
  * @param {*} [options] Override http request option.
577
577
  * @throws {RequiredError}
578
578
  */
@@ -592,7 +592,7 @@ var UsersApiFp = function (configuration) {
592
592
  /**
593
593
  *
594
594
  * @param {number} id
595
- * @param {string} [authorization] Bearer Token
595
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
596
596
  * @param {*} [options] Override http request option.
597
597
  * @throws {RequiredError}
598
598
  */
@@ -612,7 +612,7 @@ var UsersApiFp = function (configuration) {
612
612
  /**
613
613
  *
614
614
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
615
- * @param {string} [authorization] Bearer Token
615
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
616
616
  * @param {*} [options] Override http request option.
617
617
  * @throws {RequiredError}
618
618
  */
@@ -632,7 +632,7 @@ var UsersApiFp = function (configuration) {
632
632
  /**
633
633
  *
634
634
  * @param {number} id
635
- * @param {string} [authorization] Bearer Token
635
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
636
  * @param {*} [options] Override http request option.
637
637
  * @throws {RequiredError}
638
638
  */
@@ -652,7 +652,7 @@ var UsersApiFp = function (configuration) {
652
652
  /**
653
653
  *
654
654
  * @param {DisableUsersRequestDto} disableUsersRequestDto
655
- * @param {string} [authorization] Bearer Token
655
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
656
656
  * @param {*} [options] Override http request option.
657
657
  * @throws {RequiredError}
658
658
  */
@@ -672,7 +672,7 @@ var UsersApiFp = function (configuration) {
672
672
  /**
673
673
  *
674
674
  * @param {number} id
675
- * @param {string} [authorization] Bearer Token
675
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
676
676
  * @param {*} [options] Override http request option.
677
677
  * @throws {RequiredError}
678
678
  */
@@ -692,7 +692,7 @@ var UsersApiFp = function (configuration) {
692
692
  /**
693
693
  *
694
694
  * @param {EnableUsersRequestDto} enableUsersRequestDto
695
- * @param {string} [authorization] Bearer Token
695
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
696
696
  * @param {*} [options] Override http request option.
697
697
  * @throws {RequiredError}
698
698
  */
@@ -713,7 +713,7 @@ var UsersApiFp = function (configuration) {
713
713
  *
714
714
  * @param {string} code
715
715
  * @param {string} code2 code
716
- * @param {string} [authorization] Bearer Token
716
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
717
717
  * @param {string} [expand] Fields to expand response by
718
718
  * @param {*} [options] Override http request option.
719
719
  * @throws {RequiredError}
@@ -734,7 +734,7 @@ var UsersApiFp = function (configuration) {
734
734
  /**
735
735
  * 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
736
  * @summary List users
737
- * @param {string} [authorization] Bearer Token
737
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
738
738
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
739
739
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
740
740
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -771,7 +771,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
771
771
  *
772
772
  * @param {number} id
773
773
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
774
- * @param {string} [authorization] Bearer Token
774
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
775
775
  * @param {*} [options] Override http request option.
776
776
  * @throws {RequiredError}
777
777
  */
@@ -781,7 +781,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
781
781
  /**
782
782
  *
783
783
  * @param {number} id
784
- * @param {string} [authorization] Bearer Token
784
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
785
785
  * @param {*} [options] Override http request option.
786
786
  * @throws {RequiredError}
787
787
  */
@@ -791,7 +791,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
791
791
  /**
792
792
  *
793
793
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
794
- * @param {string} [authorization] Bearer Token
794
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
795
  * @param {*} [options] Override http request option.
796
796
  * @throws {RequiredError}
797
797
  */
@@ -801,7 +801,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
801
801
  /**
802
802
  *
803
803
  * @param {number} id
804
- * @param {string} [authorization] Bearer Token
804
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
805
805
  * @param {*} [options] Override http request option.
806
806
  * @throws {RequiredError}
807
807
  */
@@ -811,7 +811,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
811
811
  /**
812
812
  *
813
813
  * @param {DisableUsersRequestDto} disableUsersRequestDto
814
- * @param {string} [authorization] Bearer Token
814
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
815
815
  * @param {*} [options] Override http request option.
816
816
  * @throws {RequiredError}
817
817
  */
@@ -821,7 +821,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
821
821
  /**
822
822
  *
823
823
  * @param {number} id
824
- * @param {string} [authorization] Bearer Token
824
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
825
825
  * @param {*} [options] Override http request option.
826
826
  * @throws {RequiredError}
827
827
  */
@@ -831,7 +831,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
831
831
  /**
832
832
  *
833
833
  * @param {EnableUsersRequestDto} enableUsersRequestDto
834
- * @param {string} [authorization] Bearer Token
834
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
835
835
  * @param {*} [options] Override http request option.
836
836
  * @throws {RequiredError}
837
837
  */
@@ -842,7 +842,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
842
842
  *
843
843
  * @param {string} code
844
844
  * @param {string} code2 code
845
- * @param {string} [authorization] Bearer Token
845
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
846
846
  * @param {string} [expand] Fields to expand response by
847
847
  * @param {*} [options] Override http request option.
848
848
  * @throws {RequiredError}
@@ -853,7 +853,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
853
853
  /**
854
854
  * 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.
855
855
  * @summary List users
856
- * @param {string} [authorization] Bearer Token
856
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
857
857
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
858
858
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
859
859
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
package/dist/base.d.ts CHANGED
@@ -59,7 +59,7 @@ export declare class BaseAPI {
59
59
  private readEnvVariables;
60
60
  selectEnvironment(env: Environment): void;
61
61
  authorize(username: string, password: string): Promise<void>;
62
- refreshToken(): Promise<string>;
62
+ refreshTokenInternal(): Promise<string>;
63
63
  private extractRefreshToken;
64
64
  getConfiguration(): Configuration;
65
65
  private attachInterceptor;
package/dist/base.js CHANGED
@@ -270,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
270
270
  });
271
271
  });
272
272
  };
273
- BaseAPI.prototype.refreshToken = function () {
273
+ BaseAPI.prototype.refreshTokenInternal = function () {
274
274
  return __awaiter(this, void 0, void 0, function () {
275
275
  var _a, username, refreshToken, options, accessToken;
276
276
  return __generator(this, function (_b) {
@@ -324,7 +324,7 @@ var BaseAPI = /** @class */ (function () {
324
324
  _a.label = 1;
325
325
  case 1:
326
326
  _a.trys.push([1, 3, , 4]);
327
- return [4 /*yield*/, this.refreshToken()];
327
+ return [4 /*yield*/, this.refreshTokenInternal()];
328
328
  case 2:
329
329
  tokenString = _a.sent();
330
330
  accessToken = "Bearer ".concat(tokenString);
@@ -351,7 +351,7 @@ var BaseAPI = /** @class */ (function () {
351
351
  _a.label = 6;
352
352
  case 6:
353
353
  _a.trys.push([6, 8, , 9]);
354
- return [4 /*yield*/, this.refreshToken()];
354
+ return [4 /*yield*/, this.refreshTokenInternal()];
355
355
  case 7:
356
356
  tokenString = _a.sent();
357
357
  accessToken = "Bearer ".concat(tokenString);
@@ -23,8 +23,8 @@ export interface AssignUserRolesRequestDto {
23
23
  'userId': number;
24
24
  /**
25
25
  * Role ids to be assigned
26
- * @type {Array<string>}
26
+ * @type {Array<number>}
27
27
  * @memberof AssignUserRolesRequestDto
28
28
  */
29
- 'roleIds': Array<string>;
29
+ 'roleIds': Array<number>;
30
30
  }
@@ -40,5 +40,6 @@ export declare const CreateCustomSchemaRequestDtoEntityEnum: {
40
40
  readonly Claim: "claim";
41
41
  readonly Invoice: "invoice";
42
42
  readonly Payment: "payment";
43
+ readonly Organization: "organization";
43
44
  };
44
45
  export type CreateCustomSchemaRequestDtoEntityEnum = typeof CreateCustomSchemaRequestDtoEntityEnum[keyof typeof CreateCustomSchemaRequestDtoEntityEnum];
@@ -18,5 +18,6 @@ exports.CreateCustomSchemaRequestDtoEntityEnum = {
18
18
  Account: 'account',
19
19
  Claim: 'claim',
20
20
  Invoice: 'invoice',
21
- Payment: 'payment'
21
+ Payment: 'payment',
22
+ Organization: 'organization'
22
23
  };
@@ -23,22 +23,16 @@ export interface InviteOrgRequestDto {
23
23
  'email': string;
24
24
  /**
25
25
  * Role ids to be assigned.
26
- * @type {Array<string>}
26
+ * @type {Array<number>}
27
27
  * @memberof InviteOrgRequestDto
28
28
  */
29
- 'roleIds': Array<string>;
29
+ 'roleIds': Array<number>;
30
30
  /**
31
31
  * Name of the invited organization.
32
32
  * @type {string}
33
33
  * @memberof InviteOrgRequestDto
34
34
  */
35
35
  'name': string;
36
- /**
37
- * Type of the organization.
38
- * @type {string}
39
- * @memberof InviteOrgRequestDto
40
- */
41
- 'type': InviteOrgRequestDtoTypeEnum;
42
36
  /**
43
37
  * Identifier for the organization.
44
38
  * @type {string}
@@ -82,9 +76,3 @@ export interface InviteOrgRequestDto {
82
76
  */
83
77
  'customFields': object;
84
78
  }
85
- export declare const InviteOrgRequestDtoTypeEnum: {
86
- readonly Association: "association";
87
- readonly Line: "line";
88
- readonly Broker: "broker";
89
- };
90
- export type InviteOrgRequestDtoTypeEnum = typeof InviteOrgRequestDtoTypeEnum[keyof typeof InviteOrgRequestDtoTypeEnum];
@@ -13,9 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InviteOrgRequestDtoTypeEnum = void 0;
17
- exports.InviteOrgRequestDtoTypeEnum = {
18
- Association: 'association',
19
- Line: 'line',
20
- Broker: 'broker'
21
- };
@@ -29,8 +29,8 @@ export interface InviteUserRequestDto {
29
29
  'organizationId'?: number;
30
30
  /**
31
31
  * Role ids to be assigned.
32
- * @type {Array<string>}
32
+ * @type {Array<number>}
33
33
  * @memberof InviteUserRequestDto
34
34
  */
35
- 'roleIds': Array<string>;
35
+ 'roleIds': Array<number>;
36
36
  }
@@ -23,8 +23,8 @@ export interface InviteUsersRequestDto {
23
23
  'emails': Array<string>;
24
24
  /**
25
25
  * Role ids to be assigned.
26
- * @type {Array<string>}
26
+ * @type {Array<number>}
27
27
  * @memberof InviteUsersRequestDto
28
28
  */
29
- 'roleIds': Array<string>;
29
+ 'roleIds': Array<number>;
30
30
  }
@@ -40,12 +40,6 @@ export interface OrgInvitationClass {
40
40
  * @memberof OrgInvitationClass
41
41
  */
42
42
  'name': string;
43
- /**
44
- * Type of the organization.
45
- * @type {string}
46
- * @memberof OrgInvitationClass
47
- */
48
- 'type': OrgInvitationClassTypeEnum;
49
43
  /**
50
44
  * Identifier for the organization.
51
45
  * @type {string}
@@ -107,9 +101,3 @@ export interface OrgInvitationClass {
107
101
  */
108
102
  'updatedAt': string;
109
103
  }
110
- export declare const OrgInvitationClassTypeEnum: {
111
- readonly Association: "association";
112
- readonly Line: "line";
113
- readonly Broker: "broker";
114
- };
115
- export type OrgInvitationClassTypeEnum = typeof OrgInvitationClassTypeEnum[keyof typeof OrgInvitationClassTypeEnum];
@@ -13,9 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrgInvitationClassTypeEnum = void 0;
17
- exports.OrgInvitationClassTypeEnum = {
18
- Association: 'association',
19
- Line: 'line',
20
- Broker: 'broker'
21
- };
@@ -34,23 +34,23 @@ export interface OrganizationClass {
34
34
  */
35
35
  'parentId'?: object;
36
36
  /**
37
- * Organization email address
37
+ * ERN of the organization.
38
38
  * @type {string}
39
39
  * @memberof OrganizationClass
40
40
  */
41
- 'email': string;
41
+ 'ern': string;
42
42
  /**
43
- * Name of the invited organization.
43
+ * Organization email address
44
44
  * @type {string}
45
45
  * @memberof OrganizationClass
46
46
  */
47
- 'name': string;
47
+ 'email': string;
48
48
  /**
49
- * Type of the organization.
49
+ * Name of the invited organization.
50
50
  * @type {string}
51
51
  * @memberof OrganizationClass
52
52
  */
53
- 'type': OrganizationClassTypeEnum;
53
+ 'name': string;
54
54
  /**
55
55
  * Address of the organization.
56
56
  * @type {string}
@@ -82,9 +82,3 @@ export interface OrganizationClass {
82
82
  */
83
83
  'customFields'?: object;
84
84
  }
85
- export declare const OrganizationClassTypeEnum: {
86
- readonly Association: "association";
87
- readonly Line: "line";
88
- readonly Broker: "broker";
89
- };
90
- export type OrganizationClassTypeEnum = typeof OrganizationClassTypeEnum[keyof typeof OrganizationClassTypeEnum];
@@ -13,9 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrganizationClassTypeEnum = void 0;
17
- exports.OrganizationClassTypeEnum = {
18
- Association: 'association',
19
- Line: 'line',
20
- Broker: 'broker'
21
- };
@@ -40,5 +40,6 @@ export declare const UpdateCustomSchemaRequestDtoEntityEnum: {
40
40
  readonly Claim: "claim";
41
41
  readonly Invoice: "invoice";
42
42
  readonly Payment: "payment";
43
+ readonly Organization: "organization";
43
44
  };
44
45
  export type UpdateCustomSchemaRequestDtoEntityEnum = typeof UpdateCustomSchemaRequestDtoEntityEnum[keyof typeof UpdateCustomSchemaRequestDtoEntityEnum];
@@ -18,5 +18,6 @@ exports.UpdateCustomSchemaRequestDtoEntityEnum = {
18
18
  Account: 'account',
19
19
  Claim: 'claim',
20
20
  Invoice: 'invoice',
21
- Payment: 'payment'
21
+ Payment: 'payment',
22
+ Organization: 'organization'
22
23
  };
@@ -28,9 +28,9 @@ export interface AssignUserRolesRequestDto {
28
28
  'userId': number;
29
29
  /**
30
30
  * Role ids to be assigned
31
- * @type {Array<string>}
31
+ * @type {Array<number>}
32
32
  * @memberof AssignUserRolesRequestDto
33
33
  */
34
- 'roleIds': Array<string>;
34
+ 'roleIds': Array<number>;
35
35
  }
36
36
 
@@ -45,7 +45,8 @@ export const CreateCustomSchemaRequestDtoEntityEnum = {
45
45
  Account: 'account',
46
46
  Claim: 'claim',
47
47
  Invoice: 'invoice',
48
- Payment: 'payment'
48
+ Payment: 'payment',
49
+ Organization: 'organization'
49
50
  } as const;
50
51
 
51
52
  export type CreateCustomSchemaRequestDtoEntityEnum = typeof CreateCustomSchemaRequestDtoEntityEnum[keyof typeof CreateCustomSchemaRequestDtoEntityEnum];
@@ -28,22 +28,16 @@ export interface InviteOrgRequestDto {
28
28
  'email': string;
29
29
  /**
30
30
  * Role ids to be assigned.
31
- * @type {Array<string>}
31
+ * @type {Array<number>}
32
32
  * @memberof InviteOrgRequestDto
33
33
  */
34
- 'roleIds': Array<string>;
34
+ 'roleIds': Array<number>;
35
35
  /**
36
36
  * Name of the invited organization.
37
37
  * @type {string}
38
38
  * @memberof InviteOrgRequestDto
39
39
  */
40
40
  'name': string;
41
- /**
42
- * Type of the organization.
43
- * @type {string}
44
- * @memberof InviteOrgRequestDto
45
- */
46
- 'type': InviteOrgRequestDtoTypeEnum;
47
41
  /**
48
42
  * Identifier for the organization.
49
43
  * @type {string}
@@ -88,12 +82,3 @@ export interface InviteOrgRequestDto {
88
82
  'customFields': object;
89
83
  }
90
84
 
91
- export const InviteOrgRequestDtoTypeEnum = {
92
- Association: 'association',
93
- Line: 'line',
94
- Broker: 'broker'
95
- } as const;
96
-
97
- export type InviteOrgRequestDtoTypeEnum = typeof InviteOrgRequestDtoTypeEnum[keyof typeof InviteOrgRequestDtoTypeEnum];
98
-
99
-
@@ -34,9 +34,9 @@ export interface InviteUserRequestDto {
34
34
  'organizationId'?: number;
35
35
  /**
36
36
  * Role ids to be assigned.
37
- * @type {Array<string>}
37
+ * @type {Array<number>}
38
38
  * @memberof InviteUserRequestDto
39
39
  */
40
- 'roleIds': Array<string>;
40
+ 'roleIds': Array<number>;
41
41
  }
42
42
 
@@ -28,9 +28,9 @@ export interface InviteUsersRequestDto {
28
28
  'emails': Array<string>;
29
29
  /**
30
30
  * Role ids to be assigned.
31
- * @type {Array<string>}
31
+ * @type {Array<number>}
32
32
  * @memberof InviteUsersRequestDto
33
33
  */
34
- 'roleIds': Array<string>;
34
+ 'roleIds': Array<number>;
35
35
  }
36
36
 
@@ -45,12 +45,6 @@ export interface OrgInvitationClass {
45
45
  * @memberof OrgInvitationClass
46
46
  */
47
47
  'name': string;
48
- /**
49
- * Type of the organization.
50
- * @type {string}
51
- * @memberof OrgInvitationClass
52
- */
53
- 'type': OrgInvitationClassTypeEnum;
54
48
  /**
55
49
  * Identifier for the organization.
56
50
  * @type {string}
@@ -113,12 +107,3 @@ export interface OrgInvitationClass {
113
107
  'updatedAt': string;
114
108
  }
115
109
 
116
- export const OrgInvitationClassTypeEnum = {
117
- Association: 'association',
118
- Line: 'line',
119
- Broker: 'broker'
120
- } as const;
121
-
122
- export type OrgInvitationClassTypeEnum = typeof OrgInvitationClassTypeEnum[keyof typeof OrgInvitationClassTypeEnum];
123
-
124
-
@@ -39,23 +39,23 @@ export interface OrganizationClass {
39
39
  */
40
40
  'parentId'?: object;
41
41
  /**
42
- * Organization email address
42
+ * ERN of the organization.
43
43
  * @type {string}
44
44
  * @memberof OrganizationClass
45
45
  */
46
- 'email': string;
46
+ 'ern': string;
47
47
  /**
48
- * Name of the invited organization.
48
+ * Organization email address
49
49
  * @type {string}
50
50
  * @memberof OrganizationClass
51
51
  */
52
- 'name': string;
52
+ 'email': string;
53
53
  /**
54
- * Type of the organization.
54
+ * Name of the invited organization.
55
55
  * @type {string}
56
56
  * @memberof OrganizationClass
57
57
  */
58
- 'type': OrganizationClassTypeEnum;
58
+ 'name': string;
59
59
  /**
60
60
  * Address of the organization.
61
61
  * @type {string}
@@ -88,12 +88,3 @@ export interface OrganizationClass {
88
88
  'customFields'?: object;
89
89
  }
90
90
 
91
- export const OrganizationClassTypeEnum = {
92
- Association: 'association',
93
- Line: 'line',
94
- Broker: 'broker'
95
- } as const;
96
-
97
- export type OrganizationClassTypeEnum = typeof OrganizationClassTypeEnum[keyof typeof OrganizationClassTypeEnum];
98
-
99
-
@@ -45,7 +45,8 @@ export const UpdateCustomSchemaRequestDtoEntityEnum = {
45
45
  Account: 'account',
46
46
  Claim: 'claim',
47
47
  Invoice: 'invoice',
48
- Payment: 'payment'
48
+ Payment: 'payment',
49
+ Organization: 'organization'
49
50
  } as const;
50
51
 
51
52
  export type UpdateCustomSchemaRequestDtoEntityEnum = typeof UpdateCustomSchemaRequestDtoEntityEnum[keyof typeof UpdateCustomSchemaRequestDtoEntityEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk-node",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [