@attraccess/database-entities 0.0.9
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/README.md +11 -0
- package/package.json +26 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +6 -0
- package/src/index.js.map +1 -0
- package/src/lib/entities/authenticationDetail.entity.d.ts +9 -0
- package/src/lib/entities/authenticationDetail.entity.js +58 -0
- package/src/lib/entities/authenticationDetail.entity.js.map +1 -0
- package/src/lib/entities/mqttResourceConfig.entity.d.ts +15 -0
- package/src/lib/entities/mqttResourceConfig.entity.js +95 -0
- package/src/lib/entities/mqttResourceConfig.entity.js.map +1 -0
- package/src/lib/entities/mqttServer.entity.d.ts +14 -0
- package/src/lib/entities/mqttServer.entity.js +99 -0
- package/src/lib/entities/mqttServer.entity.js.map +1 -0
- package/src/lib/entities/resource.entity.d.ts +24 -0
- package/src/lib/entities/resource.entity.js +120 -0
- package/src/lib/entities/resource.entity.js.map +1 -0
- package/src/lib/entities/resourceGroup.entity.d.ts +13 -0
- package/src/lib/entities/resourceGroup.entity.js +67 -0
- package/src/lib/entities/resourceGroup.entity.js.map +1 -0
- package/src/lib/entities/resourceIntroduction.entity.d.ts +17 -0
- package/src/lib/entities/resourceIntroduction.entity.js +101 -0
- package/src/lib/entities/resourceIntroduction.entity.js.map +1 -0
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.d.ts +16 -0
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js +87 -0
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js.map +1 -0
- package/src/lib/entities/resourceIntroductionUser.entity.d.ts +12 -0
- package/src/lib/entities/resourceIntroductionUser.entity.js +66 -0
- package/src/lib/entities/resourceIntroductionUser.entity.js.map +1 -0
- package/src/lib/entities/resourceUsage.entity.d.ts +14 -0
- package/src/lib/entities/resourceUsage.entity.js +108 -0
- package/src/lib/entities/resourceUsage.entity.js.map +1 -0
- package/src/lib/entities/revokedToken.entity.d.ts +10 -0
- package/src/lib/entities/revokedToken.entity.js +63 -0
- package/src/lib/entities/revokedToken.entity.js.map +1 -0
- package/src/lib/entities/ssoProvider.entity.d.ts +12 -0
- package/src/lib/entities/ssoProvider.entity.js +71 -0
- package/src/lib/entities/ssoProvider.entity.js.map +1 -0
- package/src/lib/entities/ssoProvider.oidc.d.ts +14 -0
- package/src/lib/entities/ssoProvider.oidc.js +97 -0
- package/src/lib/entities/ssoProvider.oidc.js.map +1 -0
- package/src/lib/entities/user.entity.d.ts +27 -0
- package/src/lib/entities/user.entity.js +144 -0
- package/src/lib/entities/user.entity.js.map +1 -0
- package/src/lib/entities/webhookConfig.entity.d.ts +20 -0
- package/src/lib/entities/webhookConfig.entity.js +148 -0
- package/src/lib/entities/webhookConfig.entity.js.map +1 -0
- package/src/lib/entities-index.d.ts +32 -0
- package/src/lib/entities-index.js +55 -0
- package/src/lib/entities-index.js.map +1 -0
- package/src/lib/types/authenticationType.enum.d.ts +4 -0
- package/src/lib/types/authenticationType.enum.js +9 -0
- package/src/lib/types/authenticationType.enum.js.map +1 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SSOProviderOIDCConfiguration = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const ssoProvider_entity_1 = require("./ssoProvider.entity");
|
|
8
|
+
let SSOProviderOIDCConfiguration = class SSOProviderOIDCConfiguration {
|
|
9
|
+
};
|
|
10
|
+
exports.SSOProviderOIDCConfiguration = SSOProviderOIDCConfiguration;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
13
|
+
(0, swagger_1.ApiProperty)({
|
|
14
|
+
description: 'The unique identifier of the provider',
|
|
15
|
+
example: 1,
|
|
16
|
+
}),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], SSOProviderOIDCConfiguration.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
21
|
+
(0, swagger_1.ApiProperty)({
|
|
22
|
+
description: 'The ID of the SSO provider',
|
|
23
|
+
example: 1,
|
|
24
|
+
}),
|
|
25
|
+
tslib_1.__metadata("design:type", Number)
|
|
26
|
+
], SSOProviderOIDCConfiguration.prototype, "ssoProviderId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'The issuer of the provider',
|
|
31
|
+
example: 'https://sso.csh.rit.edu/auth/realms/csh',
|
|
32
|
+
}),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], SSOProviderOIDCConfiguration.prototype, "issuer", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
description: 'The authorization URL of the provider',
|
|
39
|
+
example: 'https://sso.csh.rit.edu/auth/realms/csh/protocol/openid-connect/auth',
|
|
40
|
+
}),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], SSOProviderOIDCConfiguration.prototype, "authorizationURL", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'The token URL of the provider',
|
|
47
|
+
example: 'https://sso.csh.rit.edu/auth/realms/csh/protocol/openid-connect/token',
|
|
48
|
+
}),
|
|
49
|
+
tslib_1.__metadata("design:type", String)
|
|
50
|
+
], SSOProviderOIDCConfiguration.prototype, "tokenURL", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
description: 'The user info URL of the provider',
|
|
55
|
+
example: 'https://sso.csh.rit.edu/auth/realms/csh/protocol/openid-connect/userinfo',
|
|
56
|
+
}),
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
|
+
], SSOProviderOIDCConfiguration.prototype, "userInfoURL", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
description: 'The client ID of the provider',
|
|
63
|
+
example: '1234567890',
|
|
64
|
+
}),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], SSOProviderOIDCConfiguration.prototype, "clientId", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
description: 'The client secret of the provider',
|
|
71
|
+
example: '1234567890',
|
|
72
|
+
}),
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
74
|
+
], SSOProviderOIDCConfiguration.prototype, "clientSecret", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'When the user was created',
|
|
79
|
+
}),
|
|
80
|
+
tslib_1.__metadata("design:type", Date)
|
|
81
|
+
], SSOProviderOIDCConfiguration.prototype, "createdAt", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
84
|
+
(0, swagger_1.ApiProperty)({
|
|
85
|
+
description: 'When the user was last updated',
|
|
86
|
+
}),
|
|
87
|
+
tslib_1.__metadata("design:type", Date)
|
|
88
|
+
], SSOProviderOIDCConfiguration.prototype, "updatedAt", void 0);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, typeorm_1.OneToOne)(() => ssoProvider_entity_1.SSOProvider, (ssoProvider) => ssoProvider.oidcConfiguration),
|
|
91
|
+
(0, typeorm_1.JoinColumn)({ name: 'ssoProviderId' }),
|
|
92
|
+
tslib_1.__metadata("design:type", ssoProvider_entity_1.SSOProvider)
|
|
93
|
+
], SSOProviderOIDCConfiguration.prototype, "ssoProvider", void 0);
|
|
94
|
+
exports.SSOProviderOIDCConfiguration = SSOProviderOIDCConfiguration = tslib_1.__decorate([
|
|
95
|
+
(0, typeorm_1.Entity)()
|
|
96
|
+
], SSOProviderOIDCConfiguration);
|
|
97
|
+
//# sourceMappingURL=ssoProvider.oidc.js.map
|
|
@@ -0,0 +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,6DAAmD;AAG5C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CA2ExC,CAAA;AA3EY,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;AAQhB;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,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A4B,CA2ExC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ResourceIntroduction } from './resourceIntroduction.entity';
|
|
2
|
+
import { ResourceUsage } from './resourceUsage.entity';
|
|
3
|
+
import { RevokedToken } from './revokedToken.entity';
|
|
4
|
+
import { AuthenticationDetail } from './authenticationDetail.entity';
|
|
5
|
+
import { ResourceIntroductionUser } from './resourceIntroductionUser.entity';
|
|
6
|
+
export declare class SystemPermissions {
|
|
7
|
+
canManageResources: boolean;
|
|
8
|
+
canManageSystemConfiguration: boolean;
|
|
9
|
+
canManageUsers: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type SystemPermission = keyof SystemPermissions;
|
|
12
|
+
export declare class User {
|
|
13
|
+
id: number;
|
|
14
|
+
username: string;
|
|
15
|
+
email: string;
|
|
16
|
+
isEmailVerified: boolean;
|
|
17
|
+
emailVerificationToken: string | null;
|
|
18
|
+
emailVerificationTokenExpiresAt: Date | null;
|
|
19
|
+
systemPermissions: SystemPermissions;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
resourceIntroductions: ResourceIntroduction[];
|
|
23
|
+
resourceUsages: ResourceUsage[];
|
|
24
|
+
revokedTokens: RevokedToken[];
|
|
25
|
+
authenticationDetails: AuthenticationDetail[];
|
|
26
|
+
resourceIntroducerPermissions: ResourceIntroductionUser[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.User = exports.SystemPermissions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const class_transformer_1 = require("class-transformer");
|
|
8
|
+
const resourceIntroduction_entity_1 = require("./resourceIntroduction.entity");
|
|
9
|
+
const resourceUsage_entity_1 = require("./resourceUsage.entity");
|
|
10
|
+
const revokedToken_entity_1 = require("./revokedToken.entity");
|
|
11
|
+
const authenticationDetail_entity_1 = require("./authenticationDetail.entity");
|
|
12
|
+
const resourceIntroductionUser_entity_1 = require("./resourceIntroductionUser.entity");
|
|
13
|
+
class SystemPermissions {
|
|
14
|
+
}
|
|
15
|
+
exports.SystemPermissions = SystemPermissions;
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'Whether the user can manage resources',
|
|
20
|
+
example: false,
|
|
21
|
+
}),
|
|
22
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
23
|
+
], SystemPermissions.prototype, "canManageResources", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Whether the user can manage system configuration',
|
|
28
|
+
example: false,
|
|
29
|
+
}),
|
|
30
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
31
|
+
], SystemPermissions.prototype, "canManageSystemConfiguration", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: 'Whether the user can manage users',
|
|
36
|
+
example: false,
|
|
37
|
+
}),
|
|
38
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
39
|
+
], SystemPermissions.prototype, "canManageUsers", void 0);
|
|
40
|
+
let User = class User {
|
|
41
|
+
};
|
|
42
|
+
exports.User = User;
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'The unique identifier of the user',
|
|
47
|
+
example: 1,
|
|
48
|
+
}),
|
|
49
|
+
tslib_1.__metadata("design:type", Number)
|
|
50
|
+
], User.prototype, "id", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({
|
|
53
|
+
unique: true,
|
|
54
|
+
type: 'text',
|
|
55
|
+
}),
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
description: 'The username of the user',
|
|
58
|
+
example: 'johndoe',
|
|
59
|
+
}),
|
|
60
|
+
tslib_1.__metadata("design:type", String)
|
|
61
|
+
], User.prototype, "username", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ unique: true, type: 'text' }),
|
|
64
|
+
(0, class_transformer_1.Exclude)(),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], User.prototype, "email", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
description: 'Whether the user has verified their email address',
|
|
71
|
+
example: true,
|
|
72
|
+
}),
|
|
73
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
74
|
+
], User.prototype, "isEmailVerified", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
77
|
+
(0, class_transformer_1.Exclude)(),
|
|
78
|
+
tslib_1.__metadata("design:type", String)
|
|
79
|
+
], User.prototype, "emailVerificationToken", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
82
|
+
(0, class_transformer_1.Exclude)(),
|
|
83
|
+
tslib_1.__metadata("design:type", Date)
|
|
84
|
+
], User.prototype, "emailVerificationTokenExpiresAt", void 0);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, typeorm_1.Column)(() => SystemPermissions, { prefix: '' }),
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
description: 'System-wide permissions for the user',
|
|
89
|
+
example: {
|
|
90
|
+
canManageResources: true,
|
|
91
|
+
canManageSystemConfiguration: false,
|
|
92
|
+
canManageUsers: false,
|
|
93
|
+
},
|
|
94
|
+
}),
|
|
95
|
+
tslib_1.__metadata("design:type", SystemPermissions)
|
|
96
|
+
], User.prototype, "systemPermissions", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
99
|
+
(0, swagger_1.ApiProperty)({
|
|
100
|
+
description: 'When the user was created',
|
|
101
|
+
}),
|
|
102
|
+
tslib_1.__metadata("design:type", Date)
|
|
103
|
+
], User.prototype, "createdAt", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
description: 'When the user was last updated',
|
|
108
|
+
}),
|
|
109
|
+
tslib_1.__metadata("design:type", Date)
|
|
110
|
+
], User.prototype, "updatedAt", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, typeorm_1.OneToMany)(() => resourceIntroduction_entity_1.ResourceIntroduction, (introduction) => introduction.receiverUser, {
|
|
113
|
+
onDelete: 'CASCADE',
|
|
114
|
+
}),
|
|
115
|
+
tslib_1.__metadata("design:type", Array)
|
|
116
|
+
], User.prototype, "resourceIntroductions", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.OneToMany)(() => resourceUsage_entity_1.ResourceUsage, (usage) => usage.user, {
|
|
119
|
+
onDelete: 'SET NULL',
|
|
120
|
+
}),
|
|
121
|
+
tslib_1.__metadata("design:type", Array)
|
|
122
|
+
], User.prototype, "resourceUsages", void 0);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, typeorm_1.OneToMany)(() => revokedToken_entity_1.RevokedToken, (token) => token.user, {
|
|
125
|
+
onDelete: 'CASCADE',
|
|
126
|
+
}),
|
|
127
|
+
tslib_1.__metadata("design:type", Array)
|
|
128
|
+
], User.prototype, "revokedTokens", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, typeorm_1.OneToMany)(() => authenticationDetail_entity_1.AuthenticationDetail, (detail) => detail.user, {
|
|
131
|
+
onDelete: 'CASCADE',
|
|
132
|
+
}),
|
|
133
|
+
tslib_1.__metadata("design:type", Array)
|
|
134
|
+
], User.prototype, "authenticationDetails", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, typeorm_1.OneToMany)(() => resourceIntroductionUser_entity_1.ResourceIntroductionUser, (introducer) => introducer.user, {
|
|
137
|
+
onDelete: 'CASCADE',
|
|
138
|
+
}),
|
|
139
|
+
tslib_1.__metadata("design:type", Array)
|
|
140
|
+
], User.prototype, "resourceIntroducerPermissions", void 0);
|
|
141
|
+
exports.User = User = tslib_1.__decorate([
|
|
142
|
+
(0, typeorm_1.Entity)()
|
|
143
|
+
], User);
|
|
144
|
+
//# sourceMappingURL=user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/user.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAgH;AAChH,6CAA8C;AAC9C,yDAA4C;AAC5C,+EAAqE;AACrE,iEAAuD;AACvD,+DAAqD;AACrD,+EAAqE;AACrE,uFAA6E;AAE7E,MAAa,iBAAiB;CAqB7B;AArBD,8CAqBC;AAfC;IALC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,KAAK;KACf,CAAC;;6DAC2B;AAO7B;IALC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX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AAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QAC1E,QAAQ,EAAE,SAAS;KACpB,CAAC;;2DACyD;eAnFhD,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAoFhB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Resource } from './resource.entity';
|
|
2
|
+
export declare class WebhookConfig {
|
|
3
|
+
id: number;
|
|
4
|
+
resourceId: number;
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
method: string;
|
|
8
|
+
headers: string | null;
|
|
9
|
+
inUseTemplate: string;
|
|
10
|
+
notInUseTemplate: string;
|
|
11
|
+
active: boolean;
|
|
12
|
+
retryEnabled: boolean;
|
|
13
|
+
maxRetries: number;
|
|
14
|
+
retryDelay: number;
|
|
15
|
+
secret: string | null;
|
|
16
|
+
signatureHeader: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
resource: Resource;
|
|
20
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const resource_entity_1 = require("./resource.entity");
|
|
8
|
+
let WebhookConfig = class WebhookConfig {
|
|
9
|
+
};
|
|
10
|
+
exports.WebhookConfig = WebhookConfig;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
13
|
+
(0, swagger_1.ApiProperty)({
|
|
14
|
+
description: 'The unique identifier of the webhook configuration',
|
|
15
|
+
example: 1,
|
|
16
|
+
}),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], WebhookConfig.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
21
|
+
(0, swagger_1.ApiProperty)({
|
|
22
|
+
description: 'The ID of the resource this webhook configuration is for',
|
|
23
|
+
example: 1,
|
|
24
|
+
}),
|
|
25
|
+
tslib_1.__metadata("design:type", Number)
|
|
26
|
+
], WebhookConfig.prototype, "resourceId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Friendly name for the webhook',
|
|
31
|
+
example: 'Slack Notification',
|
|
32
|
+
}),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], WebhookConfig.prototype, "name", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
description: 'Destination URL for the webhook',
|
|
39
|
+
example: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
|
|
40
|
+
}),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], WebhookConfig.prototype, "url", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'HTTP method to use for the webhook request',
|
|
47
|
+
example: 'POST',
|
|
48
|
+
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
49
|
+
}),
|
|
50
|
+
tslib_1.__metadata("design:type", String)
|
|
51
|
+
], WebhookConfig.prototype, "method", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
description: 'JSON object for custom headers',
|
|
56
|
+
example: '{"Content-Type": "application/json", "Authorization": "Bearer token123"}',
|
|
57
|
+
required: false,
|
|
58
|
+
}),
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
60
|
+
], WebhookConfig.prototype, "headers", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'Template for payload when resource is in use',
|
|
65
|
+
example: '{"status": "in_use", "resource": "{{name}}", "user": "{{user.name}}", "timestamp": "{{timestamp}}"}',
|
|
66
|
+
}),
|
|
67
|
+
tslib_1.__metadata("design:type", String)
|
|
68
|
+
], WebhookConfig.prototype, "inUseTemplate", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'Template for payload when resource is not in use',
|
|
73
|
+
example: '{"status": "not_in_use", "resource": "{{name}}", "timestamp": "{{timestamp}}"}',
|
|
74
|
+
}),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], WebhookConfig.prototype, "notInUseTemplate", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ default: true, type: 'boolean' }),
|
|
79
|
+
(0, swagger_1.ApiProperty)({
|
|
80
|
+
description: 'Whether the webhook is active',
|
|
81
|
+
example: true,
|
|
82
|
+
}),
|
|
83
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
84
|
+
], WebhookConfig.prototype, "active", void 0);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
description: 'Whether to enable retry mechanism for failed webhook requests',
|
|
89
|
+
example: true,
|
|
90
|
+
}),
|
|
91
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
92
|
+
], WebhookConfig.prototype, "retryEnabled", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ default: 3, type: 'integer' }),
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
description: 'Number of retry attempts for failed webhook requests (maximum 10)',
|
|
97
|
+
example: 3,
|
|
98
|
+
}),
|
|
99
|
+
tslib_1.__metadata("design:type", Number)
|
|
100
|
+
], WebhookConfig.prototype, "maxRetries", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ default: 1000, type: 'integer' }),
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
description: 'Delay in milliseconds between retries (maximum 10000)',
|
|
105
|
+
example: 1000,
|
|
106
|
+
}),
|
|
107
|
+
tslib_1.__metadata("design:type", Number)
|
|
108
|
+
], WebhookConfig.prototype, "retryDelay", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'text' }),
|
|
111
|
+
(0, swagger_1.ApiProperty)({
|
|
112
|
+
description: 'Secret key for signing webhook payloads',
|
|
113
|
+
example: 'whsec_abcdef123456789',
|
|
114
|
+
required: false,
|
|
115
|
+
}),
|
|
116
|
+
tslib_1.__metadata("design:type", String)
|
|
117
|
+
], WebhookConfig.prototype, "secret", void 0);
|
|
118
|
+
tslib_1.__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ default: 'X-Webhook-Signature', type: 'text' }),
|
|
120
|
+
(0, swagger_1.ApiProperty)({
|
|
121
|
+
description: 'Name of the header that contains the signature',
|
|
122
|
+
example: 'X-Webhook-Signature',
|
|
123
|
+
}),
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
125
|
+
], WebhookConfig.prototype, "signatureHeader", void 0);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
128
|
+
(0, swagger_1.ApiProperty)({
|
|
129
|
+
description: 'When the webhook configuration was created',
|
|
130
|
+
}),
|
|
131
|
+
tslib_1.__metadata("design:type", Date)
|
|
132
|
+
], WebhookConfig.prototype, "createdAt", void 0);
|
|
133
|
+
tslib_1.__decorate([
|
|
134
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
135
|
+
(0, swagger_1.ApiProperty)({
|
|
136
|
+
description: 'When the webhook configuration was last updated',
|
|
137
|
+
}),
|
|
138
|
+
tslib_1.__metadata("design:type", Date)
|
|
139
|
+
], WebhookConfig.prototype, "updatedAt", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource),
|
|
142
|
+
(0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
|
|
143
|
+
tslib_1.__metadata("design:type", resource_entity_1.Resource)
|
|
144
|
+
], WebhookConfig.prototype, "resource", void 0);
|
|
145
|
+
exports.WebhookConfig = WebhookConfig = tslib_1.__decorate([
|
|
146
|
+
(0, typeorm_1.Entity)()
|
|
147
|
+
], WebhookConfig);
|
|
148
|
+
//# sourceMappingURL=webhookConfig.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookConfig.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/webhookConfig.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,uDAA6C;AAGtC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAqHzB,CAAA;AArHY,sCAAa;AAMxB;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,CAAC;KACX,CAAC;;yCACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,CAAC;KACX,CAAC;;iDACkB;AAOpB;IALC,IAAA,gBA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D,CAAC;sCACU,IAAI;gDAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;+CAAC;wBApHT,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAqHzB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AuthenticationDetail } from './entities/authenticationDetail.entity';
|
|
2
|
+
import { MqttResourceConfig } from './entities/mqttResourceConfig.entity';
|
|
3
|
+
import { MqttServer } from './entities/mqttServer.entity';
|
|
4
|
+
import { Resource, ResourceComputedView } from './entities/resource.entity';
|
|
5
|
+
import { ResourceGroup } from './entities/resourceGroup.entity';
|
|
6
|
+
import { ResourceIntroduction } from './entities/resourceIntroduction.entity';
|
|
7
|
+
import { ResourceIntroductionHistoryItem, IntroductionHistoryAction } from './entities/resourceIntroductionHistoryItem.entity';
|
|
8
|
+
import { ResourceIntroductionUser } from './entities/resourceIntroductionUser.entity';
|
|
9
|
+
import { ResourceUsage } from './entities/resourceUsage.entity';
|
|
10
|
+
import { RevokedToken } from './entities/revokedToken.entity';
|
|
11
|
+
import { SSOProvider, SSOProviderType } from './entities/ssoProvider.entity';
|
|
12
|
+
import { SSOProviderOIDCConfiguration } from './entities/ssoProvider.oidc';
|
|
13
|
+
import { User, SystemPermissions, type SystemPermission } from './entities/user.entity';
|
|
14
|
+
import { WebhookConfig } from './entities/webhookConfig.entity';
|
|
15
|
+
export { AuthenticationDetail, MqttResourceConfig, MqttServer, Resource, ResourceComputedView, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroductionUser, ResourceUsage, RevokedToken, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, User, SystemPermissions, SystemPermission, WebhookConfig, };
|
|
16
|
+
export declare const entities: {
|
|
17
|
+
User: typeof User;
|
|
18
|
+
AuthenticationDetail: typeof AuthenticationDetail;
|
|
19
|
+
RevokedToken: typeof RevokedToken;
|
|
20
|
+
Resource: typeof Resource;
|
|
21
|
+
ResourceComputedView: typeof ResourceComputedView;
|
|
22
|
+
ResourceGroup: typeof ResourceGroup;
|
|
23
|
+
ResourceUsage: typeof ResourceUsage;
|
|
24
|
+
ResourceIntroduction: typeof ResourceIntroduction;
|
|
25
|
+
ResourceIntroductionUser: typeof ResourceIntroductionUser;
|
|
26
|
+
ResourceIntroductionHistoryItem: typeof ResourceIntroductionHistoryItem;
|
|
27
|
+
MqttServer: typeof MqttServer;
|
|
28
|
+
MqttResourceConfig: typeof MqttResourceConfig;
|
|
29
|
+
WebhookConfig: typeof WebhookConfig;
|
|
30
|
+
SSOProvider: typeof SSOProvider;
|
|
31
|
+
SSOProviderOIDCConfiguration: typeof SSOProviderOIDCConfiguration;
|
|
32
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entities = exports.WebhookConfig = exports.SystemPermissions = exports.User = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.RevokedToken = exports.ResourceUsage = exports.ResourceIntroductionUser = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.ResourceComputedView = exports.Resource = exports.MqttServer = exports.MqttResourceConfig = exports.AuthenticationDetail = void 0;
|
|
4
|
+
// Import entities
|
|
5
|
+
const authenticationDetail_entity_1 = require("./entities/authenticationDetail.entity");
|
|
6
|
+
Object.defineProperty(exports, "AuthenticationDetail", { enumerable: true, get: function () { return authenticationDetail_entity_1.AuthenticationDetail; } });
|
|
7
|
+
const mqttResourceConfig_entity_1 = require("./entities/mqttResourceConfig.entity");
|
|
8
|
+
Object.defineProperty(exports, "MqttResourceConfig", { enumerable: true, get: function () { return mqttResourceConfig_entity_1.MqttResourceConfig; } });
|
|
9
|
+
const mqttServer_entity_1 = require("./entities/mqttServer.entity");
|
|
10
|
+
Object.defineProperty(exports, "MqttServer", { enumerable: true, get: function () { return mqttServer_entity_1.MqttServer; } });
|
|
11
|
+
const resource_entity_1 = require("./entities/resource.entity");
|
|
12
|
+
Object.defineProperty(exports, "Resource", { enumerable: true, get: function () { return resource_entity_1.Resource; } });
|
|
13
|
+
Object.defineProperty(exports, "ResourceComputedView", { enumerable: true, get: function () { return resource_entity_1.ResourceComputedView; } });
|
|
14
|
+
const resourceGroup_entity_1 = require("./entities/resourceGroup.entity");
|
|
15
|
+
Object.defineProperty(exports, "ResourceGroup", { enumerable: true, get: function () { return resourceGroup_entity_1.ResourceGroup; } });
|
|
16
|
+
const resourceIntroduction_entity_1 = require("./entities/resourceIntroduction.entity");
|
|
17
|
+
Object.defineProperty(exports, "ResourceIntroduction", { enumerable: true, get: function () { return resourceIntroduction_entity_1.ResourceIntroduction; } });
|
|
18
|
+
const resourceIntroductionHistoryItem_entity_1 = require("./entities/resourceIntroductionHistoryItem.entity");
|
|
19
|
+
Object.defineProperty(exports, "ResourceIntroductionHistoryItem", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem; } });
|
|
20
|
+
Object.defineProperty(exports, "IntroductionHistoryAction", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.IntroductionHistoryAction; } });
|
|
21
|
+
const resourceIntroductionUser_entity_1 = require("./entities/resourceIntroductionUser.entity");
|
|
22
|
+
Object.defineProperty(exports, "ResourceIntroductionUser", { enumerable: true, get: function () { return resourceIntroductionUser_entity_1.ResourceIntroductionUser; } });
|
|
23
|
+
const resourceUsage_entity_1 = require("./entities/resourceUsage.entity");
|
|
24
|
+
Object.defineProperty(exports, "ResourceUsage", { enumerable: true, get: function () { return resourceUsage_entity_1.ResourceUsage; } });
|
|
25
|
+
const revokedToken_entity_1 = require("./entities/revokedToken.entity");
|
|
26
|
+
Object.defineProperty(exports, "RevokedToken", { enumerable: true, get: function () { return revokedToken_entity_1.RevokedToken; } });
|
|
27
|
+
const ssoProvider_entity_1 = require("./entities/ssoProvider.entity");
|
|
28
|
+
Object.defineProperty(exports, "SSOProvider", { enumerable: true, get: function () { return ssoProvider_entity_1.SSOProvider; } });
|
|
29
|
+
Object.defineProperty(exports, "SSOProviderType", { enumerable: true, get: function () { return ssoProvider_entity_1.SSOProviderType; } });
|
|
30
|
+
const ssoProvider_oidc_1 = require("./entities/ssoProvider.oidc");
|
|
31
|
+
Object.defineProperty(exports, "SSOProviderOIDCConfiguration", { enumerable: true, get: function () { return ssoProvider_oidc_1.SSOProviderOIDCConfiguration; } });
|
|
32
|
+
const user_entity_1 = require("./entities/user.entity");
|
|
33
|
+
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_1.User; } });
|
|
34
|
+
Object.defineProperty(exports, "SystemPermissions", { enumerable: true, get: function () { return user_entity_1.SystemPermissions; } });
|
|
35
|
+
const webhookConfig_entity_1 = require("./entities/webhookConfig.entity");
|
|
36
|
+
Object.defineProperty(exports, "WebhookConfig", { enumerable: true, get: function () { return webhookConfig_entity_1.WebhookConfig; } });
|
|
37
|
+
// Export the entities object
|
|
38
|
+
exports.entities = {
|
|
39
|
+
User: user_entity_1.User,
|
|
40
|
+
AuthenticationDetail: authenticationDetail_entity_1.AuthenticationDetail,
|
|
41
|
+
RevokedToken: revokedToken_entity_1.RevokedToken,
|
|
42
|
+
Resource: resource_entity_1.Resource,
|
|
43
|
+
ResourceComputedView: resource_entity_1.ResourceComputedView,
|
|
44
|
+
ResourceGroup: resourceGroup_entity_1.ResourceGroup,
|
|
45
|
+
ResourceUsage: resourceUsage_entity_1.ResourceUsage,
|
|
46
|
+
ResourceIntroduction: resourceIntroduction_entity_1.ResourceIntroduction,
|
|
47
|
+
ResourceIntroductionUser: resourceIntroductionUser_entity_1.ResourceIntroductionUser,
|
|
48
|
+
ResourceIntroductionHistoryItem: resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem,
|
|
49
|
+
MqttServer: mqttServer_entity_1.MqttServer,
|
|
50
|
+
MqttResourceConfig: mqttResourceConfig_entity_1.MqttResourceConfig,
|
|
51
|
+
WebhookConfig: webhookConfig_entity_1.WebhookConfig,
|
|
52
|
+
SSOProvider: ssoProvider_entity_1.SSOProvider,
|
|
53
|
+
SSOProviderOIDCConfiguration: ssoProvider_oidc_1.SSOProviderOIDCConfiguration,
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=entities-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities-index.js","sourceRoot":"","sources":["../../../../../libs/database-entities/src/lib/entities-index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,wFAA8E;AAoB5E,qGApBO,kDAAoB,OAoBP;AAnBtB,oFAA0E;AAoBxE,mGApBO,8CAAkB,OAoBP;AAnBpB,oEAA0D;AAoBxD,2FApBO,8BAAU,OAoBP;AAnBZ,gEAA4E;AAoB1E,yFApBO,0BAAQ,OAoBP;AACR,qGArBiB,sCAAoB,OAqBjB;AApBtB,0EAAgE;AAqB9D,8FArBO,oCAAa,OAqBP;AApBf,wFAA8E;AAqB5E,qGArBO,kDAAoB,OAqBP;AApBtB,8GAG2D;AAkBzD,gHApBA,wEAA+B,OAoBA;AAC/B,0GApBA,kEAAyB,OAoBA;AAlB3B,gGAAsF;AAmBpF,yGAnBO,0DAAwB,OAmBP;AAlB1B,0EAAgE;AAmB9D,8FAnBO,oCAAa,OAmBP;AAlBf,wEAA8D;AAmB5D,6FAnBO,kCAAY,OAmBP;AAlBd,sEAA6E;AAmB3E,4FAnBO,gCAAW,OAmBP;AACX,gGApBoB,oCAAe,OAoBpB;AAnBjB,kEAA2E;AAoBzE,6GApBO,+CAA4B,OAoBP;AAnB9B,wDAAwF;AAoBtF,qFApBO,kBAAI,OAoBP;AACJ,kGArBa,+BAAiB,OAqBb;AApBnB,0EAAgE;AAsB9D,8FAtBO,oCAAa,OAsBP;AAGf,6BAA6B;AAChB,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAJ,kBAAI;IACJ,oBAAoB,EAApB,kDAAoB;IACpB,YAAY,EAAZ,kCAAY;IACZ,QAAQ,EAAR,0BAAQ;IACR,oBAAoB,EAApB,sCAAoB;IACpB,aAAa,EAAb,oCAAa;IACb,aAAa,EAAb,oCAAa;IACb,oBAAoB,EAApB,kDAAoB;IACpB,wBAAwB,EAAxB,0DAAwB;IACxB,+BAA+B,EAA/B,wEAA+B;IAC/B,UAAU,EAAV,8BAAU;IACV,kBAAkB,EAAlB,8CAAkB;IAClB,aAAa,EAAb,oCAAa;IACb,WAAW,EAAX,gCAAW;IACX,4BAA4B,EAA5B,+CAA4B;CAC7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationType = void 0;
|
|
4
|
+
var AuthenticationType;
|
|
5
|
+
(function (AuthenticationType) {
|
|
6
|
+
AuthenticationType["LOCAL_PASSWORD"] = "local_password";
|
|
7
|
+
AuthenticationType["SSO"] = "sso";
|
|
8
|
+
})(AuthenticationType || (exports.AuthenticationType = AuthenticationType = {}));
|
|
9
|
+
//# sourceMappingURL=authenticationType.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationType.enum.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/types/authenticationType.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uDAAiC,CAAA;IACjC,iCAAW,CAAA;AACb,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|