@attraccess/database-entities 0.0.16 → 1.2.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 +4 -5
- package/src/index.d.ts +2 -0
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/lib/entities/attractap.entity.d.ts +15 -0
- package/src/lib/entities/attractap.entity.js +87 -0
- package/src/lib/entities/attractap.entity.js.map +1 -0
- package/src/lib/entities/billing-transaction-item.entity.d.ts +11 -0
- package/src/lib/entities/billing-transaction-item.entity.js +65 -0
- package/src/lib/entities/billing-transaction-item.entity.js.map +1 -0
- package/src/lib/entities/billing-transaction.entity.d.ts +25 -0
- package/src/lib/entities/billing-transaction.entity.js +121 -0
- package/src/lib/entities/billing-transaction.entity.js.map +1 -0
- package/src/lib/entities/email-template.entity.d.ts +15 -0
- package/src/lib/entities/email-template.entity.js +61 -0
- package/src/lib/entities/email-template.entity.js.map +1 -0
- package/src/lib/entities/mqttServer.entity.d.ts +3 -2
- package/src/lib/entities/mqttServer.entity.js +24 -5
- package/src/lib/entities/mqttServer.entity.js.map +1 -1
- package/src/lib/entities/nfcCard.entity.d.ts +12 -0
- package/src/lib/entities/nfcCard.entity.js +77 -0
- package/src/lib/entities/nfcCard.entity.js.map +1 -0
- package/src/lib/entities/resource-billing-configuration.entity.d.ts +10 -0
- package/src/lib/entities/resource-billing-configuration.entity.js +52 -0
- package/src/lib/entities/resource-billing-configuration.entity.js.map +1 -0
- package/src/lib/entities/resource.entity.d.ts +23 -10
- package/src/lib/entities/resource.entity.js +96 -34
- package/src/lib/entities/resource.entity.js.map +1 -1
- package/src/lib/entities/resource.maintenance.d.ts +11 -0
- package/src/lib/entities/resource.maintenance.js +78 -0
- package/src/lib/entities/resource.maintenance.js.map +1 -0
- package/src/lib/entities/resource.type.d.ts +4 -0
- package/src/lib/entities/resource.type.js +9 -0
- package/src/lib/entities/resource.type.js.map +1 -0
- package/src/lib/entities/resourceFlowEdge.d.ts +12 -0
- package/src/lib/entities/resourceFlowEdge.js +86 -0
- package/src/lib/entities/resourceFlowEdge.js.map +1 -0
- package/src/lib/entities/resourceFlowLog.d.ts +18 -0
- package/src/lib/entities/resourceFlowLog.js +94 -0
- package/src/lib/entities/resourceFlowLog.js.map +1 -0
- package/src/lib/entities/resourceFlowNode.d.ts +161 -0
- package/src/lib/entities/resourceFlowNode.js +257 -0
- package/src/lib/entities/resourceFlowNode.js.map +1 -0
- package/src/lib/entities/resourceGroup.entity.d.ts +2 -2
- package/src/lib/entities/resourceGroup.entity.js +3 -3
- package/src/lib/entities/resourceGroup.entity.js.map +1 -1
- package/src/lib/entities/{resourceIntroductionUser.entity.d.ts → resourceIntroducer.entity.d.ts} +5 -4
- package/src/lib/entities/{resourceIntroductionUser.entity.js → resourceIntroducer.entity.js} +27 -17
- package/src/lib/entities/resourceIntroducer.entity.js.map +1 -0
- package/src/lib/entities/resourceIntroduction.entity.d.ts +2 -1
- package/src/lib/entities/resourceIntroduction.entity.js +14 -4
- package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.d.ts +1 -1
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js +3 -3
- package/src/lib/entities/resourceIntroductionHistoryItem.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.entity.d.ts +4 -0
- package/src/lib/entities/resourceUsage.entity.js +24 -2
- package/src/lib/entities/resourceUsage.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.type.d.ts +6 -0
- package/src/lib/entities/resourceUsage.type.js +11 -0
- package/src/lib/entities/resourceUsage.type.js.map +1 -0
- package/src/lib/entities/revokedToken.entity.d.ts +0 -5
- package/src/lib/entities/revokedToken.entity.js +1 -29
- package/src/lib/entities/revokedToken.entity.js.map +1 -1
- package/src/lib/entities/session.entity.d.ts +12 -0
- package/src/lib/entities/session.entity.js +91 -0
- package/src/lib/entities/session.entity.js.map +1 -0
- package/src/lib/entities/setting.entity.d.ts +8 -0
- package/src/lib/entities/setting.entity.js +56 -0
- package/src/lib/entities/setting.entity.js.map +1 -0
- package/src/lib/entities/ssoProvider.oidc.d.ts +3 -0
- package/src/lib/entities/ssoProvider.oidc.js +27 -0
- package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
- package/src/lib/entities/user.entity.d.ts +17 -4
- package/src/lib/entities/user.entity.js +79 -8
- package/src/lib/entities/user.entity.js.map +1 -1
- package/src/lib/entities-index.d.ts +30 -9
- package/src/lib/entities-index.js +61 -12
- package/src/lib/entities-index.js.map +1 -1
- package/src/lib/types/documentationType.enum.d.ts +7 -0
- package/src/lib/types/documentationType.enum.js +12 -0
- package/src/lib/types/documentationType.enum.js.map +1 -0
- package/src/lib/entities/mqttResourceConfig.entity.d.ts +0 -15
- package/src/lib/entities/mqttResourceConfig.entity.js +0 -95
- package/src/lib/entities/mqttResourceConfig.entity.js.map +0 -1
- package/src/lib/entities/resourceIntroductionUser.entity.js.map +0 -1
- package/src/lib/entities/webhookConfig.entity.d.ts +0 -20
- package/src/lib/entities/webhookConfig.entity.js +0 -148
- package/src/lib/entities/webhookConfig.entity.js.map +0 -1
|
@@ -72,6 +72,33 @@ tslib_1.__decorate([
|
|
|
72
72
|
}),
|
|
73
73
|
tslib_1.__metadata("design:type", String)
|
|
74
74
|
], SSOProviderOIDCConfiguration.prototype, "clientSecret", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'simple-array', nullable: true }),
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'Optional list of OIDC scopes to request',
|
|
79
|
+
example: ['openid', 'email', 'profile'],
|
|
80
|
+
required: false,
|
|
81
|
+
}),
|
|
82
|
+
tslib_1.__metadata("design:type", Array)
|
|
83
|
+
], SSOProviderOIDCConfiguration.prototype, "scopes", void 0);
|
|
84
|
+
tslib_1.__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'simple-array', nullable: true }),
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
description: 'Ordered list of claim paths to resolve the username',
|
|
88
|
+
example: ['preferred_username', 'email', 'sub'],
|
|
89
|
+
required: false,
|
|
90
|
+
}),
|
|
91
|
+
tslib_1.__metadata("design:type", Array)
|
|
92
|
+
], SSOProviderOIDCConfiguration.prototype, "usernameClaimPaths", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: 'simple-array', nullable: true }),
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
description: 'Ordered list of claim paths to resolve the email',
|
|
97
|
+
example: ['email', 'emails[0].value', 'upn'],
|
|
98
|
+
required: false,
|
|
99
|
+
}),
|
|
100
|
+
tslib_1.__metadata("design:type", Array)
|
|
101
|
+
], SSOProviderOIDCConfiguration.prototype, "emailClaimPaths", void 0);
|
|
75
102
|
tslib_1.__decorate([
|
|
76
103
|
(0, typeorm_1.CreateDateColumn)(),
|
|
77
104
|
(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,6DAAmD;AAG5C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;
|
|
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;CAgGxC,CAAA;AAhGY,oEAA4B;AAMvC;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC;KACX,CAAC;;wDACU;AAOZ;I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duction.entity';
|
|
2
2
|
import { ResourceUsage } from './resourceUsage.entity';
|
|
3
|
-
import { RevokedToken } from './revokedToken.entity';
|
|
4
3
|
import { AuthenticationDetail } from './authenticationDetail.entity';
|
|
5
|
-
import {
|
|
4
|
+
import { ResourceIntroducer } from './resourceIntroducer.entity';
|
|
5
|
+
import { NFCCard } from './nfcCard.entity';
|
|
6
|
+
import { Session } from './session.entity';
|
|
7
|
+
import { BillingTransaction } from './billing-transaction.entity';
|
|
6
8
|
export declare class SystemPermissions {
|
|
7
9
|
canManageResources: boolean;
|
|
8
10
|
canManageSystemConfiguration: boolean;
|
|
9
11
|
canManageUsers: boolean;
|
|
12
|
+
canManageBilling: boolean;
|
|
10
13
|
}
|
|
11
14
|
export type SystemPermission = keyof SystemPermissions;
|
|
12
15
|
export declare class User {
|
|
@@ -16,12 +19,22 @@ export declare class User {
|
|
|
16
19
|
isEmailVerified: boolean;
|
|
17
20
|
emailVerificationToken: string | null;
|
|
18
21
|
emailVerificationTokenExpiresAt: Date | null;
|
|
22
|
+
passwordResetToken: string | null;
|
|
23
|
+
passwordResetTokenExpiresAt: Date | null;
|
|
19
24
|
systemPermissions: SystemPermissions;
|
|
20
25
|
createdAt: Date;
|
|
21
26
|
updatedAt: Date;
|
|
27
|
+
lastUsernameChangeAt: Date | null;
|
|
22
28
|
resourceIntroductions: ResourceIntroduction[];
|
|
23
29
|
resourceUsages: ResourceUsage[];
|
|
24
|
-
revokedTokens: RevokedToken[];
|
|
25
30
|
authenticationDetails: AuthenticationDetail[];
|
|
26
|
-
resourceIntroducerPermissions:
|
|
31
|
+
resourceIntroducerPermissions: ResourceIntroducer[];
|
|
32
|
+
externalIdentifier: string | null;
|
|
33
|
+
nfcCards: NFCCard[];
|
|
34
|
+
nfcKeySeedToken: string | null;
|
|
35
|
+
sessions: Session[];
|
|
36
|
+
billingTransactions: BillingTransaction[];
|
|
37
|
+
initiatedBillingTransactions: BillingTransaction[];
|
|
38
|
+
creditBalance: number;
|
|
39
|
+
billingFactor: number;
|
|
27
40
|
}
|
|
@@ -7,9 +7,11 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
7
7
|
const class_transformer_1 = require("class-transformer");
|
|
8
8
|
const resourceIntroduction_entity_1 = require("./resourceIntroduction.entity");
|
|
9
9
|
const resourceUsage_entity_1 = require("./resourceUsage.entity");
|
|
10
|
-
const revokedToken_entity_1 = require("./revokedToken.entity");
|
|
11
10
|
const authenticationDetail_entity_1 = require("./authenticationDetail.entity");
|
|
12
|
-
const
|
|
11
|
+
const resourceIntroducer_entity_1 = require("./resourceIntroducer.entity");
|
|
12
|
+
const nfcCard_entity_1 = require("./nfcCard.entity");
|
|
13
|
+
const session_entity_1 = require("./session.entity");
|
|
14
|
+
const billing_transaction_entity_1 = require("./billing-transaction.entity");
|
|
13
15
|
class SystemPermissions {
|
|
14
16
|
}
|
|
15
17
|
exports.SystemPermissions = SystemPermissions;
|
|
@@ -37,6 +39,14 @@ tslib_1.__decorate([
|
|
|
37
39
|
}),
|
|
38
40
|
tslib_1.__metadata("design:type", Boolean)
|
|
39
41
|
], SystemPermissions.prototype, "canManageUsers", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ default: false, type: 'boolean' }),
|
|
44
|
+
(0, swagger_1.ApiProperty)({
|
|
45
|
+
description: 'Whether the user can manage billing',
|
|
46
|
+
example: false,
|
|
47
|
+
}),
|
|
48
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
49
|
+
], SystemPermissions.prototype, "canManageBilling", void 0);
|
|
40
50
|
let User = class User {
|
|
41
51
|
};
|
|
42
52
|
exports.User = User;
|
|
@@ -82,6 +92,16 @@ tslib_1.__decorate([
|
|
|
82
92
|
(0, class_transformer_1.Exclude)(),
|
|
83
93
|
tslib_1.__metadata("design:type", Date)
|
|
84
94
|
], User.prototype, "emailVerificationTokenExpiresAt", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
97
|
+
(0, class_transformer_1.Exclude)(),
|
|
98
|
+
tslib_1.__metadata("design:type", String)
|
|
99
|
+
], User.prototype, "passwordResetToken", void 0);
|
|
100
|
+
tslib_1.__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
102
|
+
(0, class_transformer_1.Exclude)(),
|
|
103
|
+
tslib_1.__metadata("design:type", Date)
|
|
104
|
+
], User.prototype, "passwordResetTokenExpiresAt", void 0);
|
|
85
105
|
tslib_1.__decorate([
|
|
86
106
|
(0, typeorm_1.Column)(() => SystemPermissions, { prefix: '' }),
|
|
87
107
|
(0, swagger_1.ApiProperty)({
|
|
@@ -108,6 +128,11 @@ tslib_1.__decorate([
|
|
|
108
128
|
}),
|
|
109
129
|
tslib_1.__metadata("design:type", Date)
|
|
110
130
|
], User.prototype, "updatedAt", void 0);
|
|
131
|
+
tslib_1.__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
133
|
+
(0, class_transformer_1.Exclude)(),
|
|
134
|
+
tslib_1.__metadata("design:type", Date)
|
|
135
|
+
], User.prototype, "lastUsernameChangeAt", void 0);
|
|
111
136
|
tslib_1.__decorate([
|
|
112
137
|
(0, typeorm_1.OneToMany)(() => resourceIntroduction_entity_1.ResourceIntroduction, (introduction) => introduction.receiverUser, {
|
|
113
138
|
onDelete: 'CASCADE',
|
|
@@ -121,23 +146,69 @@ tslib_1.__decorate([
|
|
|
121
146
|
tslib_1.__metadata("design:type", Array)
|
|
122
147
|
], User.prototype, "resourceUsages", void 0);
|
|
123
148
|
tslib_1.__decorate([
|
|
124
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
149
|
+
(0, typeorm_1.OneToMany)(() => authenticationDetail_entity_1.AuthenticationDetail, (detail) => detail.user, {
|
|
125
150
|
onDelete: 'CASCADE',
|
|
126
151
|
}),
|
|
127
152
|
tslib_1.__metadata("design:type", Array)
|
|
128
|
-
], User.prototype, "
|
|
153
|
+
], User.prototype, "authenticationDetails", void 0);
|
|
129
154
|
tslib_1.__decorate([
|
|
130
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
155
|
+
(0, typeorm_1.OneToMany)(() => resourceIntroducer_entity_1.ResourceIntroducer, (introducer) => introducer.user, {
|
|
131
156
|
onDelete: 'CASCADE',
|
|
132
157
|
}),
|
|
133
158
|
tslib_1.__metadata("design:type", Array)
|
|
134
|
-
], User.prototype, "
|
|
159
|
+
], User.prototype, "resourceIntroducerPermissions", void 0);
|
|
135
160
|
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.
|
|
161
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
162
|
+
(0, swagger_1.ApiProperty)({
|
|
163
|
+
description: 'The external (origin) identifier of the user, if the user is authenticated via SSO',
|
|
164
|
+
example: '1234567890',
|
|
165
|
+
nullable: true,
|
|
166
|
+
required: false,
|
|
167
|
+
}),
|
|
168
|
+
tslib_1.__metadata("design:type", String)
|
|
169
|
+
], User.prototype, "externalIdentifier", void 0);
|
|
170
|
+
tslib_1.__decorate([
|
|
171
|
+
(0, typeorm_1.OneToMany)(() => nfcCard_entity_1.NFCCard, (card) => card.user, {
|
|
137
172
|
onDelete: 'CASCADE',
|
|
138
173
|
}),
|
|
139
174
|
tslib_1.__metadata("design:type", Array)
|
|
140
|
-
], User.prototype, "
|
|
175
|
+
], User.prototype, "nfcCards", void 0);
|
|
176
|
+
tslib_1.__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
178
|
+
(0, class_transformer_1.Exclude)(),
|
|
179
|
+
tslib_1.__metadata("design:type", String)
|
|
180
|
+
], User.prototype, "nfcKeySeedToken", void 0);
|
|
181
|
+
tslib_1.__decorate([
|
|
182
|
+
(0, typeorm_1.OneToMany)(() => session_entity_1.Session, (session) => session.user, {
|
|
183
|
+
onDelete: 'CASCADE',
|
|
184
|
+
}),
|
|
185
|
+
tslib_1.__metadata("design:type", Array)
|
|
186
|
+
], User.prototype, "sessions", void 0);
|
|
187
|
+
tslib_1.__decorate([
|
|
188
|
+
(0, typeorm_1.OneToMany)(() => billing_transaction_entity_1.BillingTransaction, (transaction) => transaction.user, {
|
|
189
|
+
onDelete: 'CASCADE',
|
|
190
|
+
}),
|
|
191
|
+
tslib_1.__metadata("design:type", Array)
|
|
192
|
+
], User.prototype, "billingTransactions", void 0);
|
|
193
|
+
tslib_1.__decorate([
|
|
194
|
+
(0, typeorm_1.OneToMany)(() => billing_transaction_entity_1.BillingTransaction, (transaction) => transaction.initiator, {
|
|
195
|
+
onDelete: 'CASCADE',
|
|
196
|
+
}),
|
|
197
|
+
tslib_1.__metadata("design:type", Array)
|
|
198
|
+
], User.prototype, "initiatedBillingTransactions", void 0);
|
|
199
|
+
tslib_1.__decorate([
|
|
200
|
+
(0, typeorm_1.Column)({ type: 'integer', default: 0 }),
|
|
201
|
+
(0, swagger_1.ApiProperty)({ description: 'The credit balance of the user' }),
|
|
202
|
+
tslib_1.__metadata("design:type", Number)
|
|
203
|
+
], User.prototype, "creditBalance", void 0);
|
|
204
|
+
tslib_1.__decorate([
|
|
205
|
+
(0, typeorm_1.Column)({ type: 'integer', default: 100 }),
|
|
206
|
+
(0, swagger_1.ApiProperty)({
|
|
207
|
+
description: 'The percentage rate the user to actually pay for activities that cost credits',
|
|
208
|
+
example: 100,
|
|
209
|
+
}),
|
|
210
|
+
tslib_1.__metadata("design:type", Number)
|
|
211
|
+
], User.prototype, "billingFactor", void 0);
|
|
141
212
|
exports.User = User = tslib_1.__decorate([
|
|
142
213
|
(0, typeorm_1.Entity)()
|
|
143
214
|
], User);
|
|
@@ -1 +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,+
|
|
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,+EAAqE;AACrE,2EAAiE;AACjE,qDAA2C;AAC3C,qDAA2C;AAC3C,6EAAkE;AAElE,MAAa,iBAAiB;CA4B7B;AA5BD,8CA4BC;AAtBC;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,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;;uEACqC;AAOvC;IALC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,KAAK;KACf,CAAC;;yDACuB;AAOzB;IALC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,KAAK;KACf,CAAC;;2DACyB;AAMtB,IAAM,IAAI,GAAV,MAAM,IAAI;CAuIhB,CAAA;AAvIY,oBAAI;AAMf;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,CAAC;KACX,CAAC;;gCACU;AAUZ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,GAAG;KACb,CAAC;;2CACqB;eAtIZ,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAuIhB"}
|
|
@@ -1,32 +1,53 @@
|
|
|
1
|
+
import { EmailTemplate } from './entities/email-template.entity';
|
|
1
2
|
import { AuthenticationDetail } from './entities/authenticationDetail.entity';
|
|
2
|
-
import { MqttResourceConfig } from './entities/mqttResourceConfig.entity';
|
|
3
3
|
import { MqttServer } from './entities/mqttServer.entity';
|
|
4
|
-
import {
|
|
4
|
+
import { NFCCard } from './entities/nfcCard.entity';
|
|
5
|
+
import { Resource } from './entities/resource.entity';
|
|
6
|
+
import { ResourceType } from './entities/resource.type';
|
|
5
7
|
import { ResourceGroup } from './entities/resourceGroup.entity';
|
|
6
8
|
import { ResourceIntroduction } from './entities/resourceIntroduction.entity';
|
|
7
9
|
import { ResourceIntroductionHistoryItem, IntroductionHistoryAction } from './entities/resourceIntroductionHistoryItem.entity';
|
|
8
|
-
import {
|
|
10
|
+
import { ResourceIntroducer } from './entities/resourceIntroducer.entity';
|
|
9
11
|
import { ResourceUsage } from './entities/resourceUsage.entity';
|
|
10
12
|
import { RevokedToken } from './entities/revokedToken.entity';
|
|
11
13
|
import { SSOProvider, SSOProviderType } from './entities/ssoProvider.entity';
|
|
12
14
|
import { SSOProviderOIDCConfiguration } from './entities/ssoProvider.oidc';
|
|
13
15
|
import { User, SystemPermissions, type SystemPermission } from './entities/user.entity';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
+
import { Session } from './entities/session.entity';
|
|
17
|
+
import { Attractap, AttractapFirmwareVersion } from './entities/attractap.entity';
|
|
18
|
+
import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema } from './entities/resourceFlowNode';
|
|
19
|
+
import { ResourceFlowEdge } from './entities/resourceFlowEdge';
|
|
20
|
+
import { ResourceFlowLog, ResourceFlowLogType } from './entities/resourceFlowLog';
|
|
21
|
+
import { ResourceMaintenance } from './entities/resource.maintenance';
|
|
22
|
+
import { ResourceUsageAction } from './entities/resourceUsage.type';
|
|
23
|
+
import { BillingTransaction, BillingTransactionStatus } from './entities/billing-transaction.entity';
|
|
24
|
+
import { ResourceBillingConfiguration } from './entities/resource-billing-configuration.entity';
|
|
25
|
+
import { Setting } from './entities/setting.entity';
|
|
26
|
+
import { BillingTransactionItem } from './entities/billing-transaction-item.entity';
|
|
27
|
+
export { AuthenticationDetail, MqttServer, Resource, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroducer, ResourceUsage, RevokedToken, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, User, SystemPermissions, SystemPermission, Session, NFCCard, Attractap, EmailTemplate, ResourceFlowNode, ResourceFlowNodeType, ResourceFlowEdge, getNodeDataSchema, NodeWithoutDataSchema as EventNodeDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ResourceFlowLog, ResourceFlowLogType, AttractapFirmwareVersion, ResourceMaintenance, ResourceType, ResourceUsageAction, ButtonNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, BillingTransaction, ResourceBillingConfiguration, Setting, BillingTransactionStatus, BillingTransactionItem, BillingTransactionItemCreateSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, };
|
|
16
28
|
export declare const entities: {
|
|
17
29
|
User: typeof User;
|
|
18
30
|
AuthenticationDetail: typeof AuthenticationDetail;
|
|
19
31
|
RevokedToken: typeof RevokedToken;
|
|
32
|
+
Session: typeof Session;
|
|
20
33
|
Resource: typeof Resource;
|
|
21
|
-
ResourceComputedView: typeof ResourceComputedView;
|
|
22
34
|
ResourceGroup: typeof ResourceGroup;
|
|
23
35
|
ResourceUsage: typeof ResourceUsage;
|
|
24
36
|
ResourceIntroduction: typeof ResourceIntroduction;
|
|
25
|
-
|
|
37
|
+
ResourceIntroducer: typeof ResourceIntroducer;
|
|
26
38
|
ResourceIntroductionHistoryItem: typeof ResourceIntroductionHistoryItem;
|
|
27
39
|
MqttServer: typeof MqttServer;
|
|
28
|
-
MqttResourceConfig: typeof MqttResourceConfig;
|
|
29
|
-
WebhookConfig: typeof WebhookConfig;
|
|
30
40
|
SSOProvider: typeof SSOProvider;
|
|
31
41
|
SSOProviderOIDCConfiguration: typeof SSOProviderOIDCConfiguration;
|
|
42
|
+
NFCCard: typeof NFCCard;
|
|
43
|
+
Attractap: typeof Attractap;
|
|
44
|
+
EmailTemplate: typeof EmailTemplate;
|
|
45
|
+
ResourceFlowNode: typeof ResourceFlowNode;
|
|
46
|
+
ResourceFlowEdge: typeof ResourceFlowEdge;
|
|
47
|
+
ResourceFlowLog: typeof ResourceFlowLog;
|
|
48
|
+
ResourceMaintenance: typeof ResourceMaintenance;
|
|
49
|
+
BillingTransaction: typeof BillingTransaction;
|
|
50
|
+
ResourceBillingConfiguration: typeof ResourceBillingConfiguration;
|
|
51
|
+
Setting: typeof Setting;
|
|
52
|
+
BillingTransactionItem: typeof BillingTransactionItem;
|
|
32
53
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.entities = exports.
|
|
3
|
+
exports.entities = exports.ErrorNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.MqttWaitForMessageNodeDataSchema = exports.MqttMessageReceivedNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.BillingTransactionItem = exports.BillingTransactionStatus = exports.Setting = exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.ResourceType = 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.Attractap = exports.NFCCard = exports.Session = exports.SystemPermissions = exports.User = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.RevokedToken = exports.ResourceUsage = exports.ResourceIntroducer = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.Resource = exports.MqttServer = exports.AuthenticationDetail = void 0;
|
|
4
4
|
// Import entities
|
|
5
|
+
const email_template_entity_1 = require("./entities/email-template.entity");
|
|
6
|
+
Object.defineProperty(exports, "EmailTemplate", { enumerable: true, get: function () { return email_template_entity_1.EmailTemplate; } });
|
|
5
7
|
const authenticationDetail_entity_1 = require("./entities/authenticationDetail.entity");
|
|
6
8
|
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
9
|
const mqttServer_entity_1 = require("./entities/mqttServer.entity");
|
|
10
10
|
Object.defineProperty(exports, "MqttServer", { enumerable: true, get: function () { return mqttServer_entity_1.MqttServer; } });
|
|
11
|
+
const nfcCard_entity_1 = require("./entities/nfcCard.entity");
|
|
12
|
+
Object.defineProperty(exports, "NFCCard", { enumerable: true, get: function () { return nfcCard_entity_1.NFCCard; } });
|
|
11
13
|
const resource_entity_1 = require("./entities/resource.entity");
|
|
12
14
|
Object.defineProperty(exports, "Resource", { enumerable: true, get: function () { return resource_entity_1.Resource; } });
|
|
13
|
-
|
|
15
|
+
const resource_type_1 = require("./entities/resource.type");
|
|
16
|
+
Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_type_1.ResourceType; } });
|
|
14
17
|
const resourceGroup_entity_1 = require("./entities/resourceGroup.entity");
|
|
15
18
|
Object.defineProperty(exports, "ResourceGroup", { enumerable: true, get: function () { return resourceGroup_entity_1.ResourceGroup; } });
|
|
16
19
|
const resourceIntroduction_entity_1 = require("./entities/resourceIntroduction.entity");
|
|
@@ -18,8 +21,8 @@ Object.defineProperty(exports, "ResourceIntroduction", { enumerable: true, get:
|
|
|
18
21
|
const resourceIntroductionHistoryItem_entity_1 = require("./entities/resourceIntroductionHistoryItem.entity");
|
|
19
22
|
Object.defineProperty(exports, "ResourceIntroductionHistoryItem", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem; } });
|
|
20
23
|
Object.defineProperty(exports, "IntroductionHistoryAction", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.IntroductionHistoryAction; } });
|
|
21
|
-
const
|
|
22
|
-
Object.defineProperty(exports, "
|
|
24
|
+
const resourceIntroducer_entity_1 = require("./entities/resourceIntroducer.entity");
|
|
25
|
+
Object.defineProperty(exports, "ResourceIntroducer", { enumerable: true, get: function () { return resourceIntroducer_entity_1.ResourceIntroducer; } });
|
|
23
26
|
const resourceUsage_entity_1 = require("./entities/resourceUsage.entity");
|
|
24
27
|
Object.defineProperty(exports, "ResourceUsage", { enumerable: true, get: function () { return resourceUsage_entity_1.ResourceUsage; } });
|
|
25
28
|
const revokedToken_entity_1 = require("./entities/revokedToken.entity");
|
|
@@ -32,24 +35,70 @@ Object.defineProperty(exports, "SSOProviderOIDCConfiguration", { enumerable: tru
|
|
|
32
35
|
const user_entity_1 = require("./entities/user.entity");
|
|
33
36
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_1.User; } });
|
|
34
37
|
Object.defineProperty(exports, "SystemPermissions", { enumerable: true, get: function () { return user_entity_1.SystemPermissions; } });
|
|
35
|
-
const
|
|
36
|
-
Object.defineProperty(exports, "
|
|
38
|
+
const session_entity_1 = require("./entities/session.entity");
|
|
39
|
+
Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_entity_1.Session; } });
|
|
40
|
+
const attractap_entity_1 = require("./entities/attractap.entity");
|
|
41
|
+
Object.defineProperty(exports, "Attractap", { enumerable: true, get: function () { return attractap_entity_1.Attractap; } });
|
|
42
|
+
Object.defineProperty(exports, "AttractapFirmwareVersion", { enumerable: true, get: function () { return attractap_entity_1.AttractapFirmwareVersion; } });
|
|
43
|
+
const resourceFlowNode_1 = require("./entities/resourceFlowNode");
|
|
44
|
+
Object.defineProperty(exports, "ResourceFlowNode", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceFlowNode; } });
|
|
45
|
+
Object.defineProperty(exports, "ResourceFlowNodeType", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceFlowNodeType; } });
|
|
46
|
+
Object.defineProperty(exports, "getNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.getNodeDataSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "EventNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.NodeWithoutDataSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "HttpRequestNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.HttpRequestNodeDataSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "MqttSendMessageNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.MqttSendMessageNodeDataSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "WaitNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.WaitNodeDataSchema; } });
|
|
51
|
+
Object.defineProperty(exports, "ButtonNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ButtonNodeDataSchema; } });
|
|
52
|
+
Object.defineProperty(exports, "IfNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.IfNodeDataSchema; } });
|
|
53
|
+
Object.defineProperty(exports, "BillingTransactionItemCreateSchema", { enumerable: true, get: function () { return resourceFlowNode_1.BillingTransactionItemCreateSchema; } });
|
|
54
|
+
Object.defineProperty(exports, "SetPayloadNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.SetPayloadNodeDataSchema; } });
|
|
55
|
+
Object.defineProperty(exports, "MqttMessageReceivedNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.MqttMessageReceivedNodeDataSchema; } });
|
|
56
|
+
Object.defineProperty(exports, "MqttWaitForMessageNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.MqttWaitForMessageNodeDataSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "ResourceUsageEndSessionNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceUsageEndSessionNodeDataSchema; } });
|
|
58
|
+
Object.defineProperty(exports, "ErrorNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ErrorNodeDataSchema; } });
|
|
59
|
+
const resourceFlowEdge_1 = require("./entities/resourceFlowEdge");
|
|
60
|
+
Object.defineProperty(exports, "ResourceFlowEdge", { enumerable: true, get: function () { return resourceFlowEdge_1.ResourceFlowEdge; } });
|
|
61
|
+
const resourceFlowLog_1 = require("./entities/resourceFlowLog");
|
|
62
|
+
Object.defineProperty(exports, "ResourceFlowLog", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLog; } });
|
|
63
|
+
Object.defineProperty(exports, "ResourceFlowLogType", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLogType; } });
|
|
64
|
+
const resource_maintenance_1 = require("./entities/resource.maintenance");
|
|
65
|
+
Object.defineProperty(exports, "ResourceMaintenance", { enumerable: true, get: function () { return resource_maintenance_1.ResourceMaintenance; } });
|
|
66
|
+
const resourceUsage_type_1 = require("./entities/resourceUsage.type");
|
|
67
|
+
Object.defineProperty(exports, "ResourceUsageAction", { enumerable: true, get: function () { return resourceUsage_type_1.ResourceUsageAction; } });
|
|
68
|
+
const billing_transaction_entity_1 = require("./entities/billing-transaction.entity");
|
|
69
|
+
Object.defineProperty(exports, "BillingTransaction", { enumerable: true, get: function () { return billing_transaction_entity_1.BillingTransaction; } });
|
|
70
|
+
Object.defineProperty(exports, "BillingTransactionStatus", { enumerable: true, get: function () { return billing_transaction_entity_1.BillingTransactionStatus; } });
|
|
71
|
+
const resource_billing_configuration_entity_1 = require("./entities/resource-billing-configuration.entity");
|
|
72
|
+
Object.defineProperty(exports, "ResourceBillingConfiguration", { enumerable: true, get: function () { return resource_billing_configuration_entity_1.ResourceBillingConfiguration; } });
|
|
73
|
+
const setting_entity_1 = require("./entities/setting.entity");
|
|
74
|
+
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return setting_entity_1.Setting; } });
|
|
75
|
+
const billing_transaction_item_entity_1 = require("./entities/billing-transaction-item.entity");
|
|
76
|
+
Object.defineProperty(exports, "BillingTransactionItem", { enumerable: true, get: function () { return billing_transaction_item_entity_1.BillingTransactionItem; } });
|
|
37
77
|
// Export the entities object
|
|
38
78
|
exports.entities = {
|
|
39
79
|
User: user_entity_1.User,
|
|
40
80
|
AuthenticationDetail: authenticationDetail_entity_1.AuthenticationDetail,
|
|
41
81
|
RevokedToken: revokedToken_entity_1.RevokedToken,
|
|
82
|
+
Session: session_entity_1.Session,
|
|
42
83
|
Resource: resource_entity_1.Resource,
|
|
43
|
-
ResourceComputedView: resource_entity_1.ResourceComputedView,
|
|
44
84
|
ResourceGroup: resourceGroup_entity_1.ResourceGroup,
|
|
45
85
|
ResourceUsage: resourceUsage_entity_1.ResourceUsage,
|
|
46
86
|
ResourceIntroduction: resourceIntroduction_entity_1.ResourceIntroduction,
|
|
47
|
-
|
|
87
|
+
ResourceIntroducer: resourceIntroducer_entity_1.ResourceIntroducer,
|
|
48
88
|
ResourceIntroductionHistoryItem: resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem,
|
|
49
89
|
MqttServer: mqttServer_entity_1.MqttServer,
|
|
50
|
-
MqttResourceConfig: mqttResourceConfig_entity_1.MqttResourceConfig,
|
|
51
|
-
WebhookConfig: webhookConfig_entity_1.WebhookConfig,
|
|
52
90
|
SSOProvider: ssoProvider_entity_1.SSOProvider,
|
|
53
91
|
SSOProviderOIDCConfiguration: ssoProvider_oidc_1.SSOProviderOIDCConfiguration,
|
|
92
|
+
NFCCard: nfcCard_entity_1.NFCCard,
|
|
93
|
+
Attractap: attractap_entity_1.Attractap,
|
|
94
|
+
EmailTemplate: email_template_entity_1.EmailTemplate,
|
|
95
|
+
ResourceFlowNode: resourceFlowNode_1.ResourceFlowNode,
|
|
96
|
+
ResourceFlowEdge: resourceFlowEdge_1.ResourceFlowEdge,
|
|
97
|
+
ResourceFlowLog: resourceFlowLog_1.ResourceFlowLog,
|
|
98
|
+
ResourceMaintenance: resource_maintenance_1.ResourceMaintenance,
|
|
99
|
+
BillingTransaction: billing_transaction_entity_1.BillingTransaction,
|
|
100
|
+
ResourceBillingConfiguration: resource_billing_configuration_entity_1.ResourceBillingConfiguration,
|
|
101
|
+
Setting: setting_entity_1.Setting,
|
|
102
|
+
BillingTransactionItem: billing_transaction_item_entity_1.BillingTransactionItem,
|
|
54
103
|
};
|
|
55
104
|
//# sourceMappingURL=entities-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities-index.js","sourceRoot":"","sources":["../../../../../libs/database-entities/src/lib/entities-index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,
|
|
1
|
+
{"version":3,"file":"entities-index.js","sourceRoot":"","sources":["../../../../../libs/database-entities/src/lib/entities-index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,4EAAiE;AAmE/D,8FAnEO,qCAAa,OAmEP;AAlEf,wFAA8E;AA+C5E,qGA/CO,kDAAoB,OA+CP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AtB,wDAAsB;CACvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentationType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enum for resource documentation types
|
|
6
|
+
*/
|
|
7
|
+
var DocumentationType;
|
|
8
|
+
(function (DocumentationType) {
|
|
9
|
+
DocumentationType["MARKDOWN"] = "markdown";
|
|
10
|
+
DocumentationType["URL"] = "url";
|
|
11
|
+
})(DocumentationType || (exports.DocumentationType = DocumentationType = {}));
|
|
12
|
+
//# sourceMappingURL=documentationType.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentationType.enum.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/types/documentationType.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Resource } from './resource.entity';
|
|
2
|
-
import { MqttServer } from './mqttServer.entity';
|
|
3
|
-
export declare class MqttResourceConfig {
|
|
4
|
-
id: number;
|
|
5
|
-
resourceId: number;
|
|
6
|
-
serverId: number;
|
|
7
|
-
inUseTopic: string;
|
|
8
|
-
inUseMessage: string;
|
|
9
|
-
notInUseTopic: string;
|
|
10
|
-
notInUseMessage: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
resource: Resource;
|
|
14
|
-
server: MqttServer;
|
|
15
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MqttResourceConfig = 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
|
-
const mqttServer_entity_1 = require("./mqttServer.entity");
|
|
9
|
-
let MqttResourceConfig = class MqttResourceConfig {
|
|
10
|
-
};
|
|
11
|
-
exports.MqttResourceConfig = MqttResourceConfig;
|
|
12
|
-
tslib_1.__decorate([
|
|
13
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
14
|
-
(0, swagger_1.ApiProperty)({
|
|
15
|
-
description: 'The unique identifier of the MQTT resource configuration',
|
|
16
|
-
example: 1,
|
|
17
|
-
}),
|
|
18
|
-
tslib_1.__metadata("design:type", Number)
|
|
19
|
-
], MqttResourceConfig.prototype, "id", void 0);
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
22
|
-
(0, swagger_1.ApiProperty)({
|
|
23
|
-
description: 'The ID of the resource this configuration is for',
|
|
24
|
-
example: 1,
|
|
25
|
-
}),
|
|
26
|
-
tslib_1.__metadata("design:type", Number)
|
|
27
|
-
], MqttResourceConfig.prototype, "resourceId", void 0);
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
30
|
-
(0, swagger_1.ApiProperty)({
|
|
31
|
-
description: 'The ID of the MQTT server to publish to',
|
|
32
|
-
example: 1,
|
|
33
|
-
}),
|
|
34
|
-
tslib_1.__metadata("design:type", Number)
|
|
35
|
-
], MqttResourceConfig.prototype, "serverId", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
38
|
-
(0, swagger_1.ApiProperty)({
|
|
39
|
-
description: 'Topic template using Handlebars for in-use status',
|
|
40
|
-
example: 'resources/{{id}}/status',
|
|
41
|
-
}),
|
|
42
|
-
tslib_1.__metadata("design:type", String)
|
|
43
|
-
], MqttResourceConfig.prototype, "inUseTopic", void 0);
|
|
44
|
-
tslib_1.__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
46
|
-
(0, swagger_1.ApiProperty)({
|
|
47
|
-
description: 'Message template using Handlebars for in-use status',
|
|
48
|
-
example: '{"status": "in_use", "resourceId": "{{id}}", "timestamp": "{{timestamp}}"}',
|
|
49
|
-
}),
|
|
50
|
-
tslib_1.__metadata("design:type", String)
|
|
51
|
-
], MqttResourceConfig.prototype, "inUseMessage", void 0);
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
54
|
-
(0, swagger_1.ApiProperty)({
|
|
55
|
-
description: 'Topic template using Handlebars for not-in-use status',
|
|
56
|
-
example: 'resources/{{id}}/status',
|
|
57
|
-
}),
|
|
58
|
-
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], MqttResourceConfig.prototype, "notInUseTopic", void 0);
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
62
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
-
description: 'Message template using Handlebars for not-in-use status',
|
|
64
|
-
example: '{"status": "not_in_use", "resourceId": "{{id}}", "timestamp": "{{timestamp}}"}',
|
|
65
|
-
}),
|
|
66
|
-
tslib_1.__metadata("design:type", String)
|
|
67
|
-
], MqttResourceConfig.prototype, "notInUseMessage", void 0);
|
|
68
|
-
tslib_1.__decorate([
|
|
69
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
70
|
-
(0, swagger_1.ApiProperty)({
|
|
71
|
-
description: 'When the MQTT resource configuration was created',
|
|
72
|
-
}),
|
|
73
|
-
tslib_1.__metadata("design:type", Date)
|
|
74
|
-
], MqttResourceConfig.prototype, "createdAt", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
77
|
-
(0, swagger_1.ApiProperty)({
|
|
78
|
-
description: 'When the MQTT resource configuration was last updated',
|
|
79
|
-
}),
|
|
80
|
-
tslib_1.__metadata("design:type", Date)
|
|
81
|
-
], MqttResourceConfig.prototype, "updatedAt", void 0);
|
|
82
|
-
tslib_1.__decorate([
|
|
83
|
-
(0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource),
|
|
84
|
-
(0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
|
|
85
|
-
tslib_1.__metadata("design:type", resource_entity_1.Resource)
|
|
86
|
-
], MqttResourceConfig.prototype, "resource", void 0);
|
|
87
|
-
tslib_1.__decorate([
|
|
88
|
-
(0, typeorm_1.ManyToOne)(() => mqttServer_entity_1.MqttServer, (server) => server.resourceConfigs),
|
|
89
|
-
(0, typeorm_1.JoinColumn)({ name: 'serverId' }),
|
|
90
|
-
tslib_1.__metadata("design:type", mqttServer_entity_1.MqttServer)
|
|
91
|
-
], MqttResourceConfig.prototype, "server", void 0);
|
|
92
|
-
exports.MqttResourceConfig = MqttResourceConfig = tslib_1.__decorate([
|
|
93
|
-
(0, typeorm_1.Entity)()
|
|
94
|
-
], MqttResourceConfig);
|
|
95
|
-
//# sourceMappingURL=mqttResourceConfig.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mqttResourceConfig.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mqttResourceConfig.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,uDAA6C;AAC7C,2DAAiD;AAG1C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAqE9B,CAAA;AArEY,gDAAkB;AAM7B;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,CAAC;KACX,CAAC;;8CACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QAC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AY,EAAE,CAAC;sCACxB,0BAAQ;oDAAC;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC;IAC/D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACxB,8BAAU;kDAAC;6BApET,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAqE9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourceIntroductionUser.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resourceIntroductionUser.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA0G;AAC1G,6CAA8C;AAC9C,uDAA6C;AAC7C,+CAAqC;AACrC,iEAAuD;AAGhD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CA2CpC,CAAA;AA3CY,4DAAwB;AAMnC;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,CAAC;KACX,CAAC;;oDACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,CAAC;KACX,CAAC;;4DACkB;AAOpB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,CAAC;KACX,CAAC;;wDACc;AAMhB;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;KAC/C,CAAC;sCACU,IAAI;2DAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;0DAAC;AAQpB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;KACjB,CAAC;sCACK,kBAAI;sDAAC;AAIZ;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAa,CAAC;IAC9B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;sCACxB,oCAAa;+DAAC;mCA1CnB,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CA2CpC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|