@attraccess/database-entities 1.8.0 → 1.9.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.
- package/package.json +2 -2
- package/src/lib/entities/companion-device.entity.d.ts +11 -0
- package/src/lib/entities/companion-device.entity.js +56 -0
- package/src/lib/entities/companion-device.entity.js.map +1 -0
- package/src/lib/entities/email-layout.entity.d.ts +7 -0
- package/src/lib/entities/email-layout.entity.js +36 -0
- package/src/lib/entities/email-layout.entity.js.map +1 -0
- package/src/lib/entities/email-template-translation.entity.d.ts +7 -0
- package/src/lib/entities/email-template-translation.entity.js +34 -0
- package/src/lib/entities/email-template-translation.entity.js.map +1 -0
- package/src/lib/entities/email-template.entity.js +1 -5
- package/src/lib/entities/email-template.entity.js.map +1 -1
- package/src/lib/entities/permission.entity.d.ts +8 -0
- package/src/lib/entities/permission.entity.js +53 -0
- package/src/lib/entities/permission.entity.js.map +1 -0
- package/src/lib/entities/resourceFlowLog.js +2 -1
- package/src/lib/entities/resourceFlowLog.js.map +1 -1
- package/src/lib/entities/resourceFlowNode.d.ts +22 -1
- package/src/lib/entities/resourceFlowNode.js +41 -1
- package/src/lib/entities/resourceFlowNode.js.map +1 -1
- package/src/lib/entities/resourceIntroduction.entity.js +3 -0
- package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.entity.js +3 -0
- package/src/lib/entities/resourceUsage.entity.js.map +1 -1
- package/src/lib/entities/role-permission.entity.d.ts +10 -0
- package/src/lib/entities/role-permission.entity.js +45 -0
- package/src/lib/entities/role-permission.entity.js.map +1 -0
- package/src/lib/entities/role.entity.d.ts +14 -0
- package/src/lib/entities/role.entity.js +80 -0
- package/src/lib/entities/role.entity.js.map +1 -0
- package/src/lib/entities/ssoProvider.oidc.d.ts +1 -2
- package/src/lib/entities/ssoProvider.oidc.js +5 -5
- package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
- package/src/lib/entities/ssoProvider.saml.d.ts +1 -2
- package/src/lib/entities/ssoProvider.saml.js +5 -5
- package/src/lib/entities/ssoProvider.saml.js.map +1 -1
- package/src/lib/entities/user-role.entity.d.ts +19 -0
- package/src/lib/entities/user-role.entity.js +89 -0
- package/src/lib/entities/user-role.entity.js.map +1 -0
- package/src/lib/entities/user.entity.d.ts +3 -8
- package/src/lib/entities/user.entity.js +15 -48
- package/src/lib/entities/user.entity.js.map +1 -1
- package/src/lib/entities-index.d.ts +16 -3
- package/src/lib/entities-index.js +29 -3
- package/src/lib/entities-index.js.map +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Role = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const role_permission_entity_1 = require("./role-permission.entity");
|
|
8
|
+
const user_role_entity_1 = require("./user-role.entity");
|
|
9
|
+
let Role = class Role {
|
|
10
|
+
};
|
|
11
|
+
exports.Role = Role;
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
14
|
+
(0, swagger_1.ApiProperty)({
|
|
15
|
+
description: 'Unique identifier of the role',
|
|
16
|
+
example: 1,
|
|
17
|
+
}),
|
|
18
|
+
tslib_1.__metadata("design:type", Number)
|
|
19
|
+
], Role.prototype, "id", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'text', unique: true }),
|
|
22
|
+
(0, swagger_1.ApiProperty)({
|
|
23
|
+
description: 'Stable string key for this role',
|
|
24
|
+
example: 'resource-manager',
|
|
25
|
+
}),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], Role.prototype, "key", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'Human-readable name of the role',
|
|
32
|
+
example: 'Resource Manager',
|
|
33
|
+
}),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], Role.prototype, "name", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
description: 'Description of what this role allows',
|
|
40
|
+
example: 'Can manage all resources in the system',
|
|
41
|
+
}),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], Role.prototype, "description", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
description: 'Whether this role is managed by the system and cannot be deleted',
|
|
48
|
+
example: true,
|
|
49
|
+
}),
|
|
50
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
51
|
+
], Role.prototype, "isSystemManaged", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
description: 'Whether this role is assigned to all new users by default',
|
|
56
|
+
example: false,
|
|
57
|
+
}),
|
|
58
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
59
|
+
], Role.prototype, "isDefault", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
62
|
+
tslib_1.__metadata("design:type", Date)
|
|
63
|
+
], Role.prototype, "createdAt", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
66
|
+
tslib_1.__metadata("design:type", Date)
|
|
67
|
+
], Role.prototype, "updatedAt", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, typeorm_1.OneToMany)(() => role_permission_entity_1.RolePermission, (rp) => rp.role, { onDelete: 'CASCADE' }),
|
|
70
|
+
(0, swagger_1.ApiProperty)({ type: [role_permission_entity_1.RolePermission], description: 'Permissions granted by this role', required: false }),
|
|
71
|
+
tslib_1.__metadata("design:type", Array)
|
|
72
|
+
], Role.prototype, "rolePermissions", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.OneToMany)(() => user_role_entity_1.UserRole, (ur) => ur.role, { onDelete: 'CASCADE' }),
|
|
75
|
+
tslib_1.__metadata("design:type", Array)
|
|
76
|
+
], Role.prototype, "userRoles", void 0);
|
|
77
|
+
exports.Role = Role = tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.Entity)('role')
|
|
79
|
+
], Role);
|
|
80
|
+
//# sourceMappingURL=role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/role.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAgH;AAChH,6CAA8C;AAC9C,qEAA0D;AAC1D,yDAA8C;AAIvC,IAAM,IAAI,GAAV,MAAM,IAAI;CAuDhB,CAAA;AAvDY,oBAAI;AAMf;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+BAA+B;QAC5C,OAAO,EAAE,CAAC;KACX,CAAC;;gCACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,kBAAkB;KAC5B,CAAC;;iCACW;AAOb;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;QAC9C,OA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|
|
|
1
1
|
import { SSOProvider } from './ssoProvider.entity';
|
|
2
|
-
import { SystemPermission } from './user.entity';
|
|
3
2
|
export declare class SSOProviderOIDCConfiguration {
|
|
4
3
|
id: number;
|
|
5
4
|
ssoProviderId: number;
|
|
@@ -12,7 +11,7 @@ export declare class SSOProviderOIDCConfiguration {
|
|
|
12
11
|
scopes: string[] | null;
|
|
13
12
|
usernameClaimPaths: string[] | null;
|
|
14
13
|
emailClaimPaths: string[] | null;
|
|
15
|
-
|
|
14
|
+
roleMappings?: Record<string, string[]> | null;
|
|
16
15
|
createdAt: Date;
|
|
17
16
|
updatedAt: Date;
|
|
18
17
|
ssoProvider: SSOProvider;
|
|
@@ -103,17 +103,17 @@ tslib_1.__decorate([
|
|
|
103
103
|
tslib_1.__metadata("design:type", Array)
|
|
104
104
|
], SSOProviderOIDCConfiguration.prototype, "emailClaimPaths", void 0);
|
|
105
105
|
tslib_1.__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true, name: 'permissionMappings' }),
|
|
107
107
|
(0, swagger_1.ApiProperty)({
|
|
108
|
-
description: '
|
|
108
|
+
description: 'Mapping between Attraccess role keys and IdP role/group claim values',
|
|
109
109
|
required: false,
|
|
110
110
|
example: {
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
'resource-manager': ['attraccess_resources'],
|
|
112
|
+
'user-manager': ['attraccess_admin'],
|
|
113
113
|
},
|
|
114
114
|
}),
|
|
115
115
|
tslib_1.__metadata("design:type", Object)
|
|
116
|
-
], SSOProviderOIDCConfiguration.prototype, "
|
|
116
|
+
], SSOProviderOIDCConfiguration.prototype, "roleMappings", void 0);
|
|
117
117
|
tslib_1.__decorate([
|
|
118
118
|
(0, typeorm_1.CreateDateColumn)(),
|
|
119
119
|
(0, swagger_1.ApiProperty)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssoProvider.oidc.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/ssoProvider.oidc.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,6DAAmD;
|
|
1
|
+
{"version":3,"file":"ssoProvider.oidc.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/ssoProvider.oidc.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,6DAAmD;AAG5C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CA+GxC,CAAA;AA/GY,oEAA4B;AAMvC;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC;KACX,CAAC;;wDACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,CAAC;KACX,CAAC;;mEACqB;AAOvB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,yCAAyC;KACnD,CAAC;;4DACc;AAOhB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,sEAAsE;KAChF,CAAC;;sEACwB;AAO1B;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+BAA+B;QAC5C,OAAO,EAAE,uEAAuE;KACjF,CAAC;;8DACgB;AAOlB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC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A,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;IACpE,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sEAAsE;QACnF,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE;YACP,kBAAkB,EAAE,CAAC,sBAAsB,CAAC;YAC5C,cAAc,EAAE,CAAC,kBAAkB,CAAC;SACrC;KACF,CAAC;;kEAC6C;AAM/C;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2BAA2B;KACzC,CAAC;sCACU,IAAI;+DAAC;AAMjB;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,gCAAgC;KAC9C,CAAC;sCACU,IAAI;+DAAC;AAIjB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC;IAC3E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;sCACxB,gCAAW;iEAAC;uCA9Gf,4BAA4B;IADxC,IAAA,gBAAM,GAAE;GACI,4BAA4B,CA+GxC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SSOProvider } from './ssoProvider.entity';
|
|
2
|
-
import { SystemPermission } from './user.entity';
|
|
3
2
|
export declare class SSOProviderSAMLConfiguration {
|
|
4
3
|
id: number;
|
|
5
4
|
ssoProviderId: number;
|
|
@@ -14,7 +13,7 @@ export declare class SSOProviderSAMLConfiguration {
|
|
|
14
13
|
forceAuthn: boolean;
|
|
15
14
|
emailAttributeKeys?: string[] | null;
|
|
16
15
|
provisioningSecret?: string | null;
|
|
17
|
-
|
|
16
|
+
roleMappings?: Record<string, string[]> | null;
|
|
18
17
|
spSigningCertificate?: string | null;
|
|
19
18
|
spSigningKeyEncrypted?: string | null;
|
|
20
19
|
spSigningKeyEncryptionKeyId?: string | null;
|
|
@@ -117,17 +117,17 @@ tslib_1.__decorate([
|
|
|
117
117
|
tslib_1.__metadata("design:type", String)
|
|
118
118
|
], SSOProviderSAMLConfiguration.prototype, "provisioningSecret", void 0);
|
|
119
119
|
tslib_1.__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true, name: 'permissionMappings' }),
|
|
121
121
|
(0, swagger_1.ApiProperty)({
|
|
122
|
-
description: '
|
|
122
|
+
description: 'Mapping between Attraccess role keys and SAML role/group attribute values',
|
|
123
123
|
required: false,
|
|
124
124
|
example: {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
'system-admin': ['attraccess_config_admin'],
|
|
126
|
+
'billing-manager': ['attraccess_billing'],
|
|
127
127
|
},
|
|
128
128
|
}),
|
|
129
129
|
tslib_1.__metadata("design:type", Object)
|
|
130
|
-
], SSOProviderSAMLConfiguration.prototype, "
|
|
130
|
+
], SSOProviderSAMLConfiguration.prototype, "roleMappings", void 0);
|
|
131
131
|
tslib_1.__decorate([
|
|
132
132
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
133
133
|
(0, swagger_1.ApiProperty)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssoProvider.saml.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/ssoProvider.saml.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,6DAAmD;
|
|
1
|
+
{"version":3,"file":"ssoProvider.saml.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/ssoProvider.saml.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,6DAAmD;AAG5C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAgJxC,CAAA;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AW,EAAC;QACX,WAAW,EAAE,yCAAyC;KACvD,CAAC;sCACU,IAAI;+DAAC;uCA/IN,4BAA4B;IADxC,IAAA,gBAAM,GAAE;GACI,4BAA4B,CAgJxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { User } from './user.entity';
|
|
2
|
+
import { Role } from './role.entity';
|
|
3
|
+
export declare enum UserRoleSource {
|
|
4
|
+
MANUAL = "manual",
|
|
5
|
+
SSO = "sso"
|
|
6
|
+
}
|
|
7
|
+
export declare class UserRole {
|
|
8
|
+
id: number;
|
|
9
|
+
userId: number;
|
|
10
|
+
roleId: number;
|
|
11
|
+
source: UserRoleSource;
|
|
12
|
+
ssoProviderType: string | null;
|
|
13
|
+
ssoProviderId: number | null;
|
|
14
|
+
externalValue: string | null;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
user: User;
|
|
18
|
+
role: Role;
|
|
19
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserRole = exports.UserRoleSource = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const user_entity_1 = require("./user.entity");
|
|
8
|
+
const role_entity_1 = require("./role.entity");
|
|
9
|
+
var UserRoleSource;
|
|
10
|
+
(function (UserRoleSource) {
|
|
11
|
+
UserRoleSource["MANUAL"] = "manual";
|
|
12
|
+
UserRoleSource["SSO"] = "sso";
|
|
13
|
+
})(UserRoleSource || (exports.UserRoleSource = UserRoleSource = {}));
|
|
14
|
+
let UserRole = class UserRole {
|
|
15
|
+
};
|
|
16
|
+
exports.UserRole = UserRole;
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
tslib_1.__metadata("design:type", Number)
|
|
20
|
+
], UserRole.prototype, "id", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
|
24
|
+
], UserRole.prototype, "userId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
27
|
+
(0, swagger_1.ApiProperty)({ description: 'ID of the assigned role' }),
|
|
28
|
+
tslib_1.__metadata("design:type", Number)
|
|
29
|
+
], UserRole.prototype, "roleId", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text', default: UserRoleSource.MANUAL }),
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'How this role was assigned to the user',
|
|
34
|
+
enum: UserRoleSource,
|
|
35
|
+
example: UserRoleSource.MANUAL,
|
|
36
|
+
}),
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
38
|
+
], UserRole.prototype, "source", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'SSO provider type, if source is sso',
|
|
43
|
+
example: 'oidc',
|
|
44
|
+
nullable: true,
|
|
45
|
+
required: false,
|
|
46
|
+
}),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], UserRole.prototype, "ssoProviderType", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'SSO provider ID, if source is sso',
|
|
53
|
+
nullable: true,
|
|
54
|
+
required: false,
|
|
55
|
+
}),
|
|
56
|
+
tslib_1.__metadata("design:type", Number)
|
|
57
|
+
], UserRole.prototype, "ssoProviderId", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
description: 'External value from SSO provider that triggered this assignment',
|
|
62
|
+
nullable: true,
|
|
63
|
+
required: false,
|
|
64
|
+
}),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], UserRole.prototype, "externalValue", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
69
|
+
tslib_1.__metadata("design:type", Date)
|
|
70
|
+
], UserRole.prototype, "createdAt", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
73
|
+
tslib_1.__metadata("design:type", Date)
|
|
74
|
+
], UserRole.prototype, "updatedAt", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
77
|
+
(0, typeorm_1.JoinColumn)({ name: 'userId' }),
|
|
78
|
+
tslib_1.__metadata("design:type", user_entity_1.User)
|
|
79
|
+
], UserRole.prototype, "user", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, typeorm_1.ManyToOne)(() => role_entity_1.Role, (role) => role.userRoles, { onDelete: 'CASCADE' }),
|
|
82
|
+
(0, typeorm_1.JoinColumn)({ name: 'roleId' }),
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)({ type: () => role_entity_1.Role, description: 'The role object, populated when loaded with relations' }),
|
|
84
|
+
tslib_1.__metadata("design:type", role_entity_1.Role)
|
|
85
|
+
], UserRole.prototype, "role", void 0);
|
|
86
|
+
exports.UserRole = UserRole = tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.Entity)('user_role')
|
|
88
|
+
], UserRole);
|
|
89
|
+
//# sourceMappingURL=user-role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-role.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/user-role.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAAmE;AACnE,+CAAqC;AACrC,+CAAqC;AAErC,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAGM,IAAM,QAAQ,GAAd,MAAM,QAAQ;CA0DpB,CAAA;AA1DY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,GAAE;;oCACb;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wCACZ;AAIhB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;wCACxC;AAQhB;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC;IACxD,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,cAAc,CAAC,MAAM;KAC/B,CAAC;;wCACsB;AASxB;IAPC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;iDAC8B;AAQhC;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;+CAC4B;AAQ9B;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iEAAiE;QAC9E,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;+CAC4B;AAG9B;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;2CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;2CAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;sCACxB,kBAAI;sCAAC;AAKZ;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACxE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,uDAAuD,EAAE,CAAC;sCACzG,kBAAI;sCAAC;mBAzDD,QAAQ;IADpB,IAAA,gBAAM,EAAC,WAAW,CAAC;GACP,QAAQ,CA0DpB"}
|
|
@@ -9,23 +9,17 @@ import { Project } from './project';
|
|
|
9
9
|
import { ProjectMember } from './project-member.entity';
|
|
10
10
|
import { ProjectInvitation } from './project-invitation.entity';
|
|
11
11
|
import { FormSubmission } from './form';
|
|
12
|
-
|
|
13
|
-
canManageResources: boolean;
|
|
14
|
-
canManageSystemConfiguration: boolean;
|
|
15
|
-
canManageUsers: boolean;
|
|
16
|
-
canManageBilling: boolean;
|
|
17
|
-
}
|
|
18
|
-
export type SystemPermission = keyof SystemPermissions;
|
|
12
|
+
import { UserRole } from './user-role.entity';
|
|
19
13
|
export declare class User {
|
|
20
14
|
id: number;
|
|
21
15
|
username: string;
|
|
22
16
|
email: string;
|
|
17
|
+
locale: string;
|
|
23
18
|
isEmailVerified: boolean;
|
|
24
19
|
emailVerificationToken: string | null;
|
|
25
20
|
emailVerificationTokenExpiresAt: Date | null;
|
|
26
21
|
passwordResetToken: string | null;
|
|
27
22
|
passwordResetTokenExpiresAt: Date | null;
|
|
28
|
-
systemPermissions: SystemPermissions;
|
|
29
23
|
createdAt: Date;
|
|
30
24
|
updatedAt: Date;
|
|
31
25
|
deletedAt?: Date | null;
|
|
@@ -53,4 +47,5 @@ export declare class User {
|
|
|
53
47
|
sentProjectInvitations: ProjectInvitation[];
|
|
54
48
|
receivedProjectInvitations: ProjectInvitation[];
|
|
55
49
|
formSubmissions: FormSubmission[];
|
|
50
|
+
userRoles: UserRole[];
|
|
56
51
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.User =
|
|
3
|
+
exports.User = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const swagger_1 = require("@nestjs/swagger");
|
|
@@ -16,41 +16,7 @@ const project_1 = require("./project");
|
|
|
16
16
|
const project_member_entity_1 = require("./project-member.entity");
|
|
17
17
|
const project_invitation_entity_1 = require("./project-invitation.entity");
|
|
18
18
|
const form_1 = require("./form");
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
exports.SystemPermissions = SystemPermissions;
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
24
|
-
(0, swagger_1.ApiProperty)({
|
|
25
|
-
description: 'Whether the user can manage resources',
|
|
26
|
-
example: false,
|
|
27
|
-
}),
|
|
28
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
29
|
-
], SystemPermissions.prototype, "canManageResources", void 0);
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
32
|
-
(0, swagger_1.ApiProperty)({
|
|
33
|
-
description: 'Whether the user can manage system configuration',
|
|
34
|
-
example: false,
|
|
35
|
-
}),
|
|
36
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
37
|
-
], SystemPermissions.prototype, "canManageSystemConfiguration", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
40
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
-
description: 'Whether the user can manage users',
|
|
42
|
-
example: false,
|
|
43
|
-
}),
|
|
44
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
45
|
-
], SystemPermissions.prototype, "canManageUsers", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
48
|
-
(0, swagger_1.ApiProperty)({
|
|
49
|
-
description: 'Whether the user can manage billing',
|
|
50
|
-
example: false,
|
|
51
|
-
}),
|
|
52
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
53
|
-
], SystemPermissions.prototype, "canManageBilling", void 0);
|
|
19
|
+
const user_role_entity_1 = require("./user-role.entity");
|
|
54
20
|
let User = class User {
|
|
55
21
|
};
|
|
56
22
|
exports.User = User;
|
|
@@ -78,6 +44,14 @@ tslib_1.__decorate([
|
|
|
78
44
|
(0, class_transformer_1.Exclude)(),
|
|
79
45
|
tslib_1.__metadata("design:type", String)
|
|
80
46
|
], User.prototype, "email", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 35, default: 'en' }),
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: "The user's preferred locale (BCP 47 language tag)",
|
|
51
|
+
example: 'en',
|
|
52
|
+
}),
|
|
53
|
+
tslib_1.__metadata("design:type", String)
|
|
54
|
+
], User.prototype, "locale", void 0);
|
|
81
55
|
tslib_1.__decorate([
|
|
82
56
|
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
83
57
|
(0, swagger_1.ApiProperty)({
|
|
@@ -106,18 +80,6 @@ tslib_1.__decorate([
|
|
|
106
80
|
(0, class_transformer_1.Exclude)(),
|
|
107
81
|
tslib_1.__metadata("design:type", Date)
|
|
108
82
|
], User.prototype, "passwordResetTokenExpiresAt", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
(0, typeorm_1.Column)(() => SystemPermissions, { prefix: '' }),
|
|
111
|
-
(0, swagger_1.ApiProperty)({
|
|
112
|
-
description: 'System-wide permissions for the user',
|
|
113
|
-
example: {
|
|
114
|
-
canManageResources: true,
|
|
115
|
-
canManageSystemConfiguration: false,
|
|
116
|
-
canManageUsers: false,
|
|
117
|
-
},
|
|
118
|
-
}),
|
|
119
|
-
tslib_1.__metadata("design:type", SystemPermissions)
|
|
120
|
-
], User.prototype, "systemPermissions", void 0);
|
|
121
83
|
tslib_1.__decorate([
|
|
122
84
|
(0, typeorm_1.CreateDateColumn)(),
|
|
123
85
|
(0, swagger_1.ApiProperty)({
|
|
@@ -286,6 +248,11 @@ tslib_1.__decorate([
|
|
|
286
248
|
}),
|
|
287
249
|
tslib_1.__metadata("design:type", Array)
|
|
288
250
|
], User.prototype, "formSubmissions", void 0);
|
|
251
|
+
tslib_1.__decorate([
|
|
252
|
+
(0, typeorm_1.OneToMany)(() => user_role_entity_1.UserRole, (ur) => ur.user, { onDelete: 'CASCADE' }),
|
|
253
|
+
(0, swagger_1.ApiProperty)({ type: [user_role_entity_1.UserRole], description: 'Role assignments for this user', required: false }),
|
|
254
|
+
tslib_1.__metadata("design:type", Array)
|
|
255
|
+
], User.prototype, "userRoles", void 0);
|
|
289
256
|
exports.User = User = tslib_1.__decorate([
|
|
290
257
|
(0, typeorm_1.Entity)()
|
|
291
258
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/user.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,+EAAqE;AACrE,iEAAuD;AACvD,+EAAqE;AACrE,2EAAiE;AACjE,qDAA2C;AAC3C,qDAA2C;AAC3C,6EAAkE;AAClE,uCAAoC;AACpC,mEAAwD;AACxD,2EAAgE;AAChE,iCAAwC;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/user.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,yDAA4C;AAC5C,+EAAqE;AACrE,iEAAuD;AACvD,+EAAqE;AACrE,2EAAiE;AACjE,qDAA2C;AAC3C,qDAA2C;AAC3C,6EAAkE;AAClE,uCAAoC;AACpC,mEAAwD;AACxD,2EAAgE;AAChE,iCAAwC;AACxC,yDAA8C;AAIvC,IAAM,IAAI,GAAV,MAAM,IAAI;CAoMhB,CAAA;AApMY,oBAAI;AAMf;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,CAAC;KACX,CAAC;;gCACU;AAUZ;IARC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;KACb,CAAC;IACD,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,SAAS;KACnB,CAAC;;sCACgB;AAIlB;IAFC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACtC,IAAA,2BA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ACtE,QAAQ,EAAE,SAAS;KACpB,CAAC;;oDAC2C;AAK7C;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE;QAC1E,QAAQ,EAAE,SAAS;KACpB,CAAC;;wDAC+C;AAKjD;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qBAAc,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QAChE,QAAQ,EAAE,SAAS;KACpB,CAAC;;6CACiC;AAInC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2BAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACnE,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,2BAAQ,CAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uCAC3E;eAnMZ,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAoMhB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EmailTemplate } from './entities/email-template.entity';
|
|
2
|
+
import { EmailTemplateTranslation } from './entities/email-template-translation.entity';
|
|
2
3
|
import { AuthenticationDetail } from './entities/authenticationDetail.entity';
|
|
3
4
|
import { MqttServer } from './entities/mqttServer.entity';
|
|
4
5
|
import { NFCCard } from './entities/nfcCard.entity';
|
|
@@ -13,11 +14,11 @@ import { SupervisionMode, AutoIntroductionTarget } from './entities/resource.sup
|
|
|
13
14
|
import { SSOProvider, SSOProviderType } from './entities/ssoProvider.entity';
|
|
14
15
|
import { SSOProviderOIDCConfiguration } from './entities/ssoProvider.oidc';
|
|
15
16
|
import { SSOProviderSAMLConfiguration } from './entities/ssoProvider.saml';
|
|
16
|
-
import { User
|
|
17
|
+
import { User } from './entities/user.entity';
|
|
17
18
|
import { Session } from './entities/session.entity';
|
|
18
19
|
import { Attractap, AttractapFirmwareVersion } from './entities/attractap.entity';
|
|
19
20
|
import { AttractapCrashReport } from './entities/attractapCrashReport.entity';
|
|
20
|
-
import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema } from './entities/resourceFlowNode';
|
|
21
|
+
import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema } from './entities/resourceFlowNode';
|
|
21
22
|
import { ResourceHealthState, ResourceHealthStatus, ResourceHealthSource } from './entities/resourceHealthState.entity';
|
|
22
23
|
import { ResourceFlowEdge } from './entities/resourceFlowEdge';
|
|
23
24
|
import { ResourceFlowLog, ResourceFlowLogType } from './entities/resourceFlowLog';
|
|
@@ -47,7 +48,13 @@ import { ConversationParticipant } from './entities/conversation-participant.ent
|
|
|
47
48
|
import { Message, MessageReferenceType } from './entities/message.entity';
|
|
48
49
|
import { NotificationPreference } from './entities/notification-preference.entity';
|
|
49
50
|
import { PushSubscription } from './entities/push-subscription.entity';
|
|
50
|
-
|
|
51
|
+
import { CompanionDevice } from './entities/companion-device.entity';
|
|
52
|
+
import { EmailLayout, EMAIL_LAYOUT_SINGLETON_ID } from './entities/email-layout.entity';
|
|
53
|
+
import { Permission } from './entities/permission.entity';
|
|
54
|
+
import { Role } from './entities/role.entity';
|
|
55
|
+
import { RolePermission } from './entities/role-permission.entity';
|
|
56
|
+
import { UserRole, UserRoleSource } from './entities/user-role.entity';
|
|
57
|
+
export { AuthenticationDetail, MqttServer, Resource, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroducer, ResourceIntroducerType, ResourceUsage, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, SSOProviderSAMLConfiguration, User, Session, NFCCard, Attractap, AttractapCrashReport, EmailTemplate, EmailTemplateTranslation, ResourceFlowNode, ResourceFlowNodeType, ResourceFlowEdge, getNodeDataSchema, NodeWithoutDataSchema as EventNodeDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ResourceFlowLog, ResourceFlowLogType, AttractapFirmwareVersion, ResourceMaintenance, ResourceMaintenanceRequest, MaintenanceRequestStatus, ResourceMaintenanceSchedule, ResourceMaintenanceScheduleTriggerType, ResourceMaintenanceScheduleUsageHoursConfig, UsageDurationUnit, ResourceMaintenanceScheduleUsageCountConfig, ResourceMaintenanceScheduleTimeIntervalConfig, ResourceType, SupervisionMode, AutoIntroductionTarget, ResourceUsageAction, ButtonNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, BillingTransaction, ResourceBillingConfiguration, Setting, BillingTransactionStatus, BillingTransactionItem, BillingTransactionItemCreateSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, Project, ProjectMember, ProjectMemberRole, ProjectInvitation, ProjectInvitationStatus, Form, FormField, FormSubmission, FormFieldType, ResourceFormAction, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, ResourceHealthState, ResourceHealthStatus, ResourceHealthSource, ResourceFlowVariable, ResourceFlowVariableScope, type ResourceFlowVariableValueType, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema, PasswordPolicy, PASSWORD_POLICY_SINGLETON_ID, PasswordHistory, PasswordPolicyOverride, PasswordPolicyRole, PASSWORD_POLICY_ROLES, PasswordPolicyAudit, PasswordPolicyAuditEvent, Conversation, ConversationParticipant, Message, MessageReferenceType, NotificationPreference, PushSubscription, CompanionDevice, EmailLayout, EMAIL_LAYOUT_SINGLETON_ID, Permission, Role, RolePermission, UserRole, UserRoleSource, };
|
|
51
58
|
export declare const entities: {
|
|
52
59
|
User: typeof User;
|
|
53
60
|
AuthenticationDetail: typeof AuthenticationDetail;
|
|
@@ -66,6 +73,7 @@ export declare const entities: {
|
|
|
66
73
|
Attractap: typeof Attractap;
|
|
67
74
|
AttractapCrashReport: typeof AttractapCrashReport;
|
|
68
75
|
EmailTemplate: typeof EmailTemplate;
|
|
76
|
+
EmailTemplateTranslation: typeof EmailTemplateTranslation;
|
|
69
77
|
ResourceFlowNode: typeof ResourceFlowNode;
|
|
70
78
|
ResourceFlowEdge: typeof ResourceFlowEdge;
|
|
71
79
|
ResourceFlowLog: typeof ResourceFlowLog;
|
|
@@ -96,4 +104,9 @@ export declare const entities: {
|
|
|
96
104
|
Message: typeof Message;
|
|
97
105
|
NotificationPreference: typeof NotificationPreference;
|
|
98
106
|
PushSubscription: typeof PushSubscription;
|
|
107
|
+
CompanionDevice: typeof CompanionDevice;
|
|
108
|
+
Permission: typeof Permission;
|
|
109
|
+
Role: typeof Role;
|
|
110
|
+
RolePermission: typeof RolePermission;
|
|
111
|
+
UserRole: typeof UserRole;
|
|
99
112
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.AutoIntroductionTarget = exports.SupervisionMode = exports.ResourceType = exports.ResourceMaintenanceScheduleTimeIntervalConfig = exports.ResourceMaintenanceScheduleUsageCountConfig = exports.UsageDurationUnit = exports.ResourceMaintenanceScheduleUsageHoursConfig = exports.ResourceMaintenanceScheduleTriggerType = exports.ResourceMaintenanceSchedule = exports.MaintenanceRequestStatus = exports.ResourceMaintenanceRequest = exports.ResourceMaintenance = exports.AttractapFirmwareVersion = exports.ResourceFlowLogType = exports.ResourceFlowLog = exports.WaitNodeDataSchema = exports.MqttSendMessageNodeDataSchema = exports.HttpRequestNodeDataSchema = exports.EventNodeDataSchema = exports.getNodeDataSchema = exports.ResourceFlowEdge = exports.ResourceFlowNodeType = exports.ResourceFlowNode = exports.EmailTemplate = exports.AttractapCrashReport = exports.Attractap = exports.NFCCard = exports.Session = exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.AutoIntroductionTarget = exports.SupervisionMode = exports.ResourceType = exports.ResourceMaintenanceScheduleTimeIntervalConfig = exports.ResourceMaintenanceScheduleUsageCountConfig = exports.UsageDurationUnit = exports.ResourceMaintenanceScheduleUsageHoursConfig = exports.ResourceMaintenanceScheduleTriggerType = exports.ResourceMaintenanceSchedule = exports.MaintenanceRequestStatus = exports.ResourceMaintenanceRequest = exports.ResourceMaintenance = exports.AttractapFirmwareVersion = exports.ResourceFlowLogType = exports.ResourceFlowLog = exports.WaitNodeDataSchema = exports.MqttSendMessageNodeDataSchema = exports.HttpRequestNodeDataSchema = exports.EventNodeDataSchema = exports.getNodeDataSchema = exports.ResourceFlowEdge = exports.ResourceFlowNodeType = exports.ResourceFlowNode = exports.EmailTemplateTranslation = exports.EmailTemplate = exports.AttractapCrashReport = exports.Attractap = exports.NFCCard = exports.Session = exports.User = exports.SSOProviderSAMLConfiguration = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.ResourceUsage = exports.ResourceIntroducerType = exports.ResourceIntroducer = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.Resource = exports.MqttServer = exports.AuthenticationDetail = void 0;
|
|
4
|
+
exports.PushSubscription = exports.NotificationPreference = exports.MessageReferenceType = exports.Message = exports.ConversationParticipant = exports.Conversation = exports.PasswordPolicyAuditEvent = exports.PasswordPolicyAudit = exports.PASSWORD_POLICY_ROLES = exports.PasswordPolicyRole = exports.PasswordPolicyOverride = exports.PasswordHistory = exports.PASSWORD_POLICY_SINGLETON_ID = exports.PasswordPolicy = exports.CompanionUsbDeviceNodeDataSchema = exports.CompanionForegroundAppNodeDataSchema = exports.CompanionIdleActiveNodeDataSchema = exports.CompanionLockNodeDataSchema = exports.VariableScopeSchema = exports.VariableChangedNodeDataSchema = exports.GetVariablesNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.ResourceFlowVariableScope = exports.ResourceFlowVariable = exports.ResourceHealthSource = exports.ResourceHealthStatus = exports.ResourceHealthState = exports.HealthStateOptionEnum = exports.ResourceHealthSetNodeDataSchema = exports.ResourceHealthHeartbeatNodeDataSchema = exports.ResourceActivityTrackActivityNodeDataSchema = exports.InputResourceActivityNoActivityNodeDataSchema = exports.ResourceFormAction = exports.FormFieldType = exports.FormSubmission = exports.FormField = exports.Form = exports.ProjectInvitationStatus = exports.ProjectInvitation = exports.ProjectMemberRole = exports.ProjectMember = exports.Project = exports.ErrorNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.MqttWaitForMessageNodeDataSchema = exports.MqttMessageReceivedNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.BillingTransactionItem = exports.BillingTransactionStatus = exports.Setting = void 0;
|
|
5
|
+
exports.entities = exports.UserRoleSource = exports.UserRole = exports.RolePermission = exports.Role = exports.Permission = exports.EMAIL_LAYOUT_SINGLETON_ID = exports.EmailLayout = exports.CompanionDevice = void 0;
|
|
5
6
|
// Import entities
|
|
6
7
|
const email_template_entity_1 = require("./entities/email-template.entity");
|
|
7
8
|
Object.defineProperty(exports, "EmailTemplate", { enumerable: true, get: function () { return email_template_entity_1.EmailTemplate; } });
|
|
9
|
+
const email_template_translation_entity_1 = require("./entities/email-template-translation.entity");
|
|
10
|
+
Object.defineProperty(exports, "EmailTemplateTranslation", { enumerable: true, get: function () { return email_template_translation_entity_1.EmailTemplateTranslation; } });
|
|
8
11
|
const authenticationDetail_entity_1 = require("./entities/authenticationDetail.entity");
|
|
9
12
|
Object.defineProperty(exports, "AuthenticationDetail", { enumerable: true, get: function () { return authenticationDetail_entity_1.AuthenticationDetail; } });
|
|
10
13
|
const mqttServer_entity_1 = require("./entities/mqttServer.entity");
|
|
@@ -39,7 +42,6 @@ const ssoProvider_saml_1 = require("./entities/ssoProvider.saml");
|
|
|
39
42
|
Object.defineProperty(exports, "SSOProviderSAMLConfiguration", { enumerable: true, get: function () { return ssoProvider_saml_1.SSOProviderSAMLConfiguration; } });
|
|
40
43
|
const user_entity_1 = require("./entities/user.entity");
|
|
41
44
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_1.User; } });
|
|
42
|
-
Object.defineProperty(exports, "SystemPermissions", { enumerable: true, get: function () { return user_entity_1.SystemPermissions; } });
|
|
43
45
|
const session_entity_1 = require("./entities/session.entity");
|
|
44
46
|
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_entity_1.Session; } });
|
|
45
47
|
const attractap_entity_1 = require("./entities/attractap.entity");
|
|
@@ -72,6 +74,10 @@ Object.defineProperty(exports, "SetVariablesNodeDataSchema", { enumerable: true,
|
|
|
72
74
|
Object.defineProperty(exports, "GetVariablesNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.GetVariablesNodeDataSchema; } });
|
|
73
75
|
Object.defineProperty(exports, "VariableChangedNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.VariableChangedNodeDataSchema; } });
|
|
74
76
|
Object.defineProperty(exports, "VariableScopeSchema", { enumerable: true, get: function () { return resourceFlowNode_1.VariableScopeSchema; } });
|
|
77
|
+
Object.defineProperty(exports, "CompanionLockNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionLockNodeDataSchema; } });
|
|
78
|
+
Object.defineProperty(exports, "CompanionIdleActiveNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionIdleActiveNodeDataSchema; } });
|
|
79
|
+
Object.defineProperty(exports, "CompanionForegroundAppNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionForegroundAppNodeDataSchema; } });
|
|
80
|
+
Object.defineProperty(exports, "CompanionUsbDeviceNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionUsbDeviceNodeDataSchema; } });
|
|
75
81
|
const resourceHealthState_entity_1 = require("./entities/resourceHealthState.entity");
|
|
76
82
|
Object.defineProperty(exports, "ResourceHealthState", { enumerable: true, get: function () { return resourceHealthState_entity_1.ResourceHealthState; } });
|
|
77
83
|
Object.defineProperty(exports, "ResourceHealthStatus", { enumerable: true, get: function () { return resourceHealthState_entity_1.ResourceHealthStatus; } });
|
|
@@ -148,6 +154,20 @@ const notification_preference_entity_1 = require("./entities/notification-prefer
|
|
|
148
154
|
Object.defineProperty(exports, "NotificationPreference", { enumerable: true, get: function () { return notification_preference_entity_1.NotificationPreference; } });
|
|
149
155
|
const push_subscription_entity_1 = require("./entities/push-subscription.entity");
|
|
150
156
|
Object.defineProperty(exports, "PushSubscription", { enumerable: true, get: function () { return push_subscription_entity_1.PushSubscription; } });
|
|
157
|
+
const companion_device_entity_1 = require("./entities/companion-device.entity");
|
|
158
|
+
Object.defineProperty(exports, "CompanionDevice", { enumerable: true, get: function () { return companion_device_entity_1.CompanionDevice; } });
|
|
159
|
+
const email_layout_entity_1 = require("./entities/email-layout.entity");
|
|
160
|
+
Object.defineProperty(exports, "EmailLayout", { enumerable: true, get: function () { return email_layout_entity_1.EmailLayout; } });
|
|
161
|
+
Object.defineProperty(exports, "EMAIL_LAYOUT_SINGLETON_ID", { enumerable: true, get: function () { return email_layout_entity_1.EMAIL_LAYOUT_SINGLETON_ID; } });
|
|
162
|
+
const permission_entity_1 = require("./entities/permission.entity");
|
|
163
|
+
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return permission_entity_1.Permission; } });
|
|
164
|
+
const role_entity_1 = require("./entities/role.entity");
|
|
165
|
+
Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return role_entity_1.Role; } });
|
|
166
|
+
const role_permission_entity_1 = require("./entities/role-permission.entity");
|
|
167
|
+
Object.defineProperty(exports, "RolePermission", { enumerable: true, get: function () { return role_permission_entity_1.RolePermission; } });
|
|
168
|
+
const user_role_entity_1 = require("./entities/user-role.entity");
|
|
169
|
+
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_role_entity_1.UserRole; } });
|
|
170
|
+
Object.defineProperty(exports, "UserRoleSource", { enumerable: true, get: function () { return user_role_entity_1.UserRoleSource; } });
|
|
151
171
|
// Export the entities object
|
|
152
172
|
exports.entities = {
|
|
153
173
|
User: user_entity_1.User,
|
|
@@ -167,6 +187,7 @@ exports.entities = {
|
|
|
167
187
|
Attractap: attractap_entity_1.Attractap,
|
|
168
188
|
AttractapCrashReport: attractapCrashReport_entity_1.AttractapCrashReport,
|
|
169
189
|
EmailTemplate: email_template_entity_1.EmailTemplate,
|
|
190
|
+
EmailTemplateTranslation: email_template_translation_entity_1.EmailTemplateTranslation,
|
|
170
191
|
ResourceFlowNode: resourceFlowNode_1.ResourceFlowNode,
|
|
171
192
|
ResourceFlowEdge: resourceFlowEdge_1.ResourceFlowEdge,
|
|
172
193
|
ResourceFlowLog: resourceFlowLog_1.ResourceFlowLog,
|
|
@@ -197,5 +218,10 @@ exports.entities = {
|
|
|
197
218
|
Message: message_entity_1.Message,
|
|
198
219
|
NotificationPreference: notification_preference_entity_1.NotificationPreference,
|
|
199
220
|
PushSubscription: push_subscription_entity_1.PushSubscription,
|
|
221
|
+
CompanionDevice: companion_device_entity_1.CompanionDevice,
|
|
222
|
+
Permission: permission_entity_1.Permission,
|
|
223
|
+
Role: role_entity_1.Role,
|
|
224
|
+
RolePermission: role_permission_entity_1.RolePermission,
|
|
225
|
+
UserRole: user_role_entity_1.UserRole,
|
|
200
226
|
};
|
|
201
227
|
//# sourceMappingURL=entities-index.js.map
|