@hedhog/admin 0.0.93 → 0.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +171 -35
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +1 -0
- package/dist/auth/auth.module.js.map +1 -1
- package/dist/locale/dto/create.dto.d.ts.map +1 -1
- package/dist/locale/dto/create.dto.js.map +1 -1
- package/dist/locale/dto/set-enabled.dto.d.ts +4 -0
- package/dist/locale/dto/set-enabled.dto.d.ts.map +1 -0
- package/dist/{entities/multifactor.entity.js → locale/dto/set-enabled.dto.js} +12 -18
- package/dist/locale/dto/set-enabled.dto.js.map +1 -0
- package/dist/locale/dto/update.dto.d.ts.map +1 -1
- package/dist/locale/dto/update.dto.js.map +1 -1
- package/dist/locale/locale.controller.d.ts +3 -1
- package/dist/locale/locale.controller.d.ts.map +1 -1
- package/dist/locale/locale.controller.js +15 -3
- package/dist/locale/locale.controller.js.map +1 -1
- package/dist/locale/locale.service.d.ts +2 -1
- package/dist/locale/locale.service.d.ts.map +1 -1
- package/dist/locale/locale.service.js +57 -3
- package/dist/locale/locale.service.js.map +1 -1
- package/dist/locale/locale.service.spec.js +33 -25
- package/dist/locale/locale.service.spec.js.map +1 -1
- package/dist/menu/menu.controller.d.ts.map +1 -1
- package/dist/menu/menu.controller.js +0 -4
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/role/role.controller.d.ts.map +1 -1
- package/dist/role/role.controller.js +0 -4
- package/dist/role/role.controller.js.map +1 -1
- package/dist/route/route.controller.d.ts.map +1 -1
- package/dist/route/route.controller.js +0 -4
- package/dist/route/route.controller.js.map +1 -1
- package/dist/screen/screen.controller.d.ts.map +1 -1
- package/dist/screen/screen.controller.js +0 -4
- package/dist/screen/screen.controller.js.map +1 -1
- package/dist/setting/dto/setting-user.dto.d.ts +4 -0
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
- package/dist/{entities/role.entity.js → setting/dto/setting-user.dto.js} +8 -19
- package/dist/setting/dto/setting-user.dto.js.map +1 -0
- package/dist/setting/settings.controller.d.ts +7 -1
- package/dist/setting/settings.controller.d.ts.map +1 -1
- package/dist/setting/settings.controller.js +14 -12
- package/dist/setting/settings.controller.js.map +1 -1
- package/dist/setting/settings.service.d.ts +4 -2
- package/dist/setting/settings.service.d.ts.map +1 -1
- package/dist/setting/settings.service.js +27 -19
- package/dist/setting/settings.service.js.map +1 -1
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.controller.js +0 -4
- package/dist/user/user.controller.js.map +1 -1
- package/hedhog.yaml +8 -1
- package/package.json +3 -2
- package/dist/entities/country.entity.d.ts +0 -6
- package/dist/entities/country.entity.d.ts.map +0 -1
- package/dist/entities/country.entity.js +0 -38
- package/dist/entities/country.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -12
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -28
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/locale.entity.d.ts +0 -7
- package/dist/entities/locale.entity.d.ts.map +0 -1
- package/dist/entities/locale.entity.js +0 -44
- package/dist/entities/locale.entity.js.map +0 -1
- package/dist/entities/menu.entity.d.ts +0 -9
- package/dist/entities/menu.entity.d.ts.map +0 -1
- package/dist/entities/menu.entity.js +0 -57
- package/dist/entities/menu.entity.js.map +0 -1
- package/dist/entities/multifactor.entity.d.ts +0 -5
- package/dist/entities/multifactor.entity.d.ts.map +0 -1
- package/dist/entities/multifactor.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -5
- package/dist/entities/role.entity.d.ts.map +0 -1
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/route.entity.d.ts +0 -6
- package/dist/entities/route.entity.d.ts.map +0 -1
- package/dist/entities/route.entity.js +0 -36
- package/dist/entities/route.entity.js.map +0 -1
- package/dist/entities/screen.entity.d.ts +0 -6
- package/dist/entities/screen.entity.d.ts.map +0 -1
- package/dist/entities/screen.entity.js +0 -36
- package/dist/entities/screen.entity.js.map +0 -1
- package/dist/entities/setting-group.entity.d.ts +0 -6
- package/dist/entities/setting-group.entity.d.ts.map +0 -1
- package/dist/entities/setting-group.entity.js +0 -39
- package/dist/entities/setting-group.entity.js.map +0 -1
- package/dist/entities/setting.entity.d.ts +0 -8
- package/dist/entities/setting.entity.d.ts.map +0 -1
- package/dist/entities/setting.entity.js +0 -51
- package/dist/entities/setting.entity.js.map +0 -1
- package/dist/entities/translation.entity.d.ts +0 -8
- package/dist/entities/translation.entity.d.ts.map +0 -1
- package/dist/entities/translation.entity.js +0 -42
- package/dist/entities/translation.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -9
- package/dist/entities/user.entity.d.ts.map +0 -1
- package/dist/entities/user.entity.js +0 -51
- package/dist/entities/user.entity.js.map +0 -1
- package/src/entities/country.entity.ts +0 -19
- package/src/entities/index.ts +0 -11
- package/src/entities/locale.entity.ts +0 -24
- package/src/entities/menu.entity.ts +0 -35
- package/src/entities/multifactor.entity.ts +0 -12
- package/src/entities/role.entity.ts +0 -14
- package/src/entities/route.entity.ts +0 -17
- package/src/entities/screen.entity.ts +0 -17
- package/src/entities/setting-group.entity.ts +0 -20
- package/src/entities/setting.entity.ts +0 -30
- package/src/entities/translation.entity.ts +0 -21
- package/src/entities/user.entity.ts +0 -29
@@ -23,18 +23,17 @@ let SettingsService = class SettingsService {
|
|
23
23
|
this.paginationService = paginationService;
|
24
24
|
}
|
25
25
|
async setManySettings(data) {
|
26
|
-
const results = [];
|
27
26
|
for (const { slug, value } of data.settings) {
|
28
|
-
|
27
|
+
await this.prismaService.settings.updateMany({
|
29
28
|
where: {
|
30
29
|
slug,
|
31
30
|
},
|
32
31
|
data: {
|
33
32
|
value,
|
34
33
|
},
|
35
|
-
})
|
34
|
+
});
|
36
35
|
}
|
37
|
-
return
|
36
|
+
return { success: true };
|
38
37
|
}
|
39
38
|
async getSettingFromGroup(locale, paginationParams, slug) {
|
40
39
|
const fields = ['slug', 'value'];
|
@@ -207,24 +206,32 @@ let SettingsService = class SettingsService {
|
|
207
206
|
const setting = await this.prismaService.settings.findFirst({
|
208
207
|
where: {
|
209
208
|
slug,
|
210
|
-
|
209
|
+
user_override: true,
|
211
210
|
},
|
212
211
|
});
|
213
212
|
if (!setting) {
|
214
213
|
throw new common_1.BadRequestException(`Setting with slug ${slug} not found or user can not override.`);
|
215
214
|
}
|
216
|
-
return await this.prismaService.
|
215
|
+
return await this.prismaService.setting_users.upsert({
|
217
216
|
where: {
|
218
|
-
|
217
|
+
user_id_setting_id: {
|
218
|
+
setting_id: setting.id,
|
219
|
+
user_id: user.id,
|
220
|
+
},
|
219
221
|
},
|
220
222
|
create: {
|
221
|
-
|
223
|
+
setting_id: setting.id,
|
222
224
|
value,
|
223
225
|
user_id: user.id,
|
224
226
|
},
|
225
227
|
update: {
|
226
228
|
value,
|
227
229
|
},
|
230
|
+
select: {
|
231
|
+
setting_id: true,
|
232
|
+
user_id: true,
|
233
|
+
value: true,
|
234
|
+
},
|
228
235
|
});
|
229
236
|
}
|
230
237
|
async getSettingValues(slug) {
|
@@ -240,29 +247,30 @@ let SettingsService = class SettingsService {
|
|
240
247
|
value: true,
|
241
248
|
slug: true,
|
242
249
|
type: true,
|
243
|
-
|
250
|
+
user_override: true,
|
244
251
|
},
|
245
252
|
});
|
246
253
|
const slugUserOverride = settings.filter((setting) => setting.userOverride);
|
247
|
-
const settingsUser = await this.prismaService.
|
254
|
+
const settingsUser = await this.prismaService.setting_users.findMany({
|
248
255
|
where: {
|
249
|
-
|
256
|
+
setting_id: {
|
250
257
|
in: slugUserOverride.map((setting) => setting.id),
|
251
258
|
},
|
252
259
|
},
|
253
260
|
select: {
|
254
261
|
value: true,
|
255
|
-
|
262
|
+
setting_id: true,
|
256
263
|
},
|
257
264
|
});
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
265
|
+
const data = {};
|
266
|
+
settings.forEach((setting) => {
|
267
|
+
data[setting.slug] = setting.value;
|
268
|
+
});
|
269
|
+
settingsUser.forEach((setting) => {
|
270
|
+
data[slugUserOverride.find((s) => s.id === setting.setting_id).slug] =
|
271
|
+
setting.value;
|
264
272
|
});
|
265
|
-
return
|
273
|
+
return data;
|
266
274
|
}
|
267
275
|
};
|
268
276
|
exports.SettingsService = SettingsService;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAIxB,yCAAiD;AAK1C,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,eAAe,CAAC,IAAiB;QACrC,
|
1
|
+
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAIxB,yCAAiD;AAK1C,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,eAAe,CAAC,IAAiB;QACrC,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC5C,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;gBAC3C,KAAK,EAAE;oBACL,IAAI;iBACL;gBACD,IAAI,EAAE;oBACJ,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,MA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AC;QAEH,MAAM,IAAI,GAAwB,EAAE,CAAC;QAErC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,YAAY,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;gBAClE,OAAO,CAAC,KAAK,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA1UY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAL5C,eAAe,CA0U3B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,QAAQ,CAAe,gBAAgB,KAAA;IAKvC,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA;IAM1B,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKxD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -19,8 +19,6 @@ const create_dto_1 = require("./dto/create.dto");
|
|
19
19
|
const delete_dto_1 = require("../dto/delete.dto");
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const user_service_1 = require("./user.service");
|
22
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
23
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
24
22
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
25
23
|
let UserController = class UserController {
|
26
24
|
constructor(userService) {
|
@@ -105,8 +103,6 @@ __decorate([
|
|
105
103
|
__metadata("design:returntype", Promise)
|
106
104
|
], UserController.prototype, "delete", null);
|
107
105
|
exports.UserController = UserController = __decorate([
|
108
|
-
(0, role_decorator_1.Role)(),
|
109
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
110
106
|
(0, common_1.Controller)('users'),
|
111
107
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => user_service_1.UserService))),
|
112
108
|
__metadata("design:paramtypes", [user_service_1.UserService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,
|
1
|
+
{"version":3,"file":"user.controller.js","sourceRoot":"","s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IADL,IAAA,YAAG,GAAE;IACU,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;8CAE3B;AAGK;IADL,IAAA,YAAG,EAAC,eAAe,CAAC;IAElB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;+CAGd;AAGK;IADL,IAAA,cAAK,EAAC,eAAe,CAAC;IAEpB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;iDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;0CAExC;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;4CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;yBAnDU,cAAc;IAD1B,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAoD1B"}
|
package/hedhog.yaml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# yaml-language-server: $schema=../../hedhog.schema.json
|
1
2
|
data:
|
2
3
|
routes:
|
3
4
|
- url: /auth/verify
|
@@ -100,6 +101,8 @@ data:
|
|
100
101
|
method: PUT
|
101
102
|
- url: /settings/:slug
|
102
103
|
method: PUT
|
104
|
+
- url: /settings/users/:slug
|
105
|
+
method: PUT
|
103
106
|
- url: /settings/:settingId
|
104
107
|
method: PATCH
|
105
108
|
- url: /settings
|
@@ -124,6 +127,8 @@ data:
|
|
124
127
|
method: GET
|
125
128
|
- url: /locales
|
126
129
|
method: POST
|
130
|
+
- url: /locales
|
131
|
+
method: PUT
|
127
132
|
- url: /locales/:localeId
|
128
133
|
method: PATCH
|
129
134
|
- url: /locales
|
@@ -1181,6 +1186,7 @@ data:
|
|
1181
1186
|
en: The system default language, each user can have their own preferred language
|
1182
1187
|
pt: O idioma padrão do sistema, cada usuário pode ter o seu próprio idioma preferido
|
1183
1188
|
value: en
|
1189
|
+
user_override: true
|
1184
1190
|
- slug: timezone
|
1185
1191
|
type: string
|
1186
1192
|
name:
|
@@ -1190,6 +1196,7 @@ data:
|
|
1190
1196
|
en: The timezone to use
|
1191
1197
|
pt: O fuso horário a utilizar
|
1192
1198
|
value: UTC
|
1199
|
+
user_override: true
|
1193
1200
|
- slug: appearance
|
1194
1201
|
icon: palette
|
1195
1202
|
name:
|
@@ -1661,7 +1668,7 @@ tables:
|
|
1661
1668
|
- name: value
|
1662
1669
|
length: 1023
|
1663
1670
|
isNullable: true
|
1664
|
-
- name:
|
1671
|
+
- name: user_override
|
1665
1672
|
type: boolean
|
1666
1673
|
default: false
|
1667
1674
|
- type: created_at
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hedhog/admin",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.95",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -32,6 +32,7 @@
|
|
32
32
|
"@hedhog/mail": "latest",
|
33
33
|
"@hedhog/pagination": "latest",
|
34
34
|
"@hedhog/prisma": "latest",
|
35
|
-
"@hedhog/utils": "latest"
|
35
|
+
"@hedhog/utils": "latest",
|
36
|
+
"@nestjs/jwt": "latest"
|
36
37
|
}
|
37
38
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"country.entity.d.ts","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,OAAO;IAIlB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Country = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Country = class Country {
|
15
|
-
};
|
16
|
-
exports.Country = Country;
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
19
|
-
unsigned: true,
|
20
|
-
}),
|
21
|
-
__metadata("design:type", Number)
|
22
|
-
], Country.prototype, "id", void 0);
|
23
|
-
__decorate([
|
24
|
-
(0, typeorm_1.Column)(),
|
25
|
-
__metadata("design:type", String)
|
26
|
-
], Country.prototype, "name", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, typeorm_1.Column)({
|
29
|
-
length: 3,
|
30
|
-
}),
|
31
|
-
__metadata("design:type", String)
|
32
|
-
], Country.prototype, "code", void 0);
|
33
|
-
exports.Country = Country = __decorate([
|
34
|
-
(0, typeorm_1.Entity)({
|
35
|
-
name: 'countries',
|
36
|
-
})
|
37
|
-
], Country);
|
38
|
-
//# sourceMappingURL=country.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiE;AAK1D,IAAM,OAAO,GAAb,MAAM,OAAO;CAanB,CAAA;AAbY,0BAAO;AAIlB;IAHC,IAAA,gCAAsB,EAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACS;AAGX;IADC,IAAA,gBAAM,GAAE;;qCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;qCACW;kBAZF,OAAO;IAHnB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,WAAW;KAClB,CAAC;GACW,OAAO,CAanB"}
|
package/dist/entities/index.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
export * from './user.entity';
|
2
|
-
export * from './translation.entity';
|
3
|
-
export * from './screen.entity';
|
4
|
-
export * from './role.entity';
|
5
|
-
export * from './multifactor.entity';
|
6
|
-
export * from './locale.entity';
|
7
|
-
export * from './country.entity';
|
8
|
-
export * from './menu.entity';
|
9
|
-
export * from './route.entity';
|
10
|
-
export * from './setting-group.entity';
|
11
|
-
export * from './setting.entity';
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
package/dist/entities/index.js
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./user.entity"), exports);
|
18
|
-
__exportStar(require("./translation.entity"), exports);
|
19
|
-
__exportStar(require("./screen.entity"), exports);
|
20
|
-
__exportStar(require("./role.entity"), exports);
|
21
|
-
__exportStar(require("./multifactor.entity"), exports);
|
22
|
-
__exportStar(require("./locale.entity"), exports);
|
23
|
-
__exportStar(require("./country.entity"), exports);
|
24
|
-
__exportStar(require("./menu.entity"), exports);
|
25
|
-
__exportStar(require("./route.entity"), exports);
|
26
|
-
__exportStar(require("./setting-group.entity"), exports);
|
27
|
-
__exportStar(require("./setting.entity"), exports);
|
28
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,mDAAiC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"locale.entity.d.ts","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,MAAM;IAIjB,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAKb,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Locale = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Locale = class Locale {
|
15
|
-
};
|
16
|
-
exports.Locale = Locale;
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({
|
19
|
-
unsigned: true,
|
20
|
-
}),
|
21
|
-
__metadata("design:type", Number)
|
22
|
-
], Locale.prototype, "id", void 0);
|
23
|
-
__decorate([
|
24
|
-
(0, typeorm_1.Column)({
|
25
|
-
length: 2,
|
26
|
-
}),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], Locale.prototype, "code", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, typeorm_1.Column)({
|
31
|
-
length: 2,
|
32
|
-
}),
|
33
|
-
__metadata("design:type", String)
|
34
|
-
], Locale.prototype, "region", void 0);
|
35
|
-
__decorate([
|
36
|
-
(0, typeorm_1.Column)(),
|
37
|
-
__metadata("design:type", Boolean)
|
38
|
-
], Locale.prototype, "enabled", void 0);
|
39
|
-
exports.Locale = Locale = __decorate([
|
40
|
-
(0, typeorm_1.Entity)({
|
41
|
-
name: 'locales',
|
42
|
-
})
|
43
|
-
], Locale);
|
44
|
-
//# sourceMappingURL=locale.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"locale.entity.js","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAkBlB,CAAA;AAlBY,wBAAM;AAIjB;IAHC,IAAA,gCAAsB,EAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACS;AAKX;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;oCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;sCACa;AAGf;IADC,IAAA,gBAAM,GAAE;;uCACQ;iBAjBN,MAAM;IAHlB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;KAChB,CAAC;GACW,MAAM,CAkBlB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"menu.entity.d.ts","sourceRoot":"","sources":["../../src/entities/menu.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAOX,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAKb,GAAG,CAAC,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Menu = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Menu = class Menu {
|
15
|
-
};
|
16
|
-
exports.Menu = Menu;
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
-
__metadata("design:type", Number)
|
20
|
-
], Menu.prototype, "id", void 0);
|
21
|
-
__decorate([
|
22
|
-
(0, typeorm_1.JoinColumn)(),
|
23
|
-
(0, typeorm_1.Column)({
|
24
|
-
nullable: true,
|
25
|
-
unsigned: true,
|
26
|
-
}),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], Menu.prototype, "menu_id", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, typeorm_1.Column)(),
|
31
|
-
__metadata("design:type", String)
|
32
|
-
], Menu.prototype, "slug", void 0);
|
33
|
-
__decorate([
|
34
|
-
(0, typeorm_1.Column)({
|
35
|
-
nullable: true,
|
36
|
-
}),
|
37
|
-
__metadata("design:type", String)
|
38
|
-
], Menu.prototype, "url", void 0);
|
39
|
-
__decorate([
|
40
|
-
(0, typeorm_1.Column)({
|
41
|
-
default: 0,
|
42
|
-
unsigned: true,
|
43
|
-
}),
|
44
|
-
__metadata("design:type", Number)
|
45
|
-
], Menu.prototype, "order", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, typeorm_1.Column)({
|
48
|
-
nullable: true,
|
49
|
-
}),
|
50
|
-
__metadata("design:type", String)
|
51
|
-
], Menu.prototype, "icon", void 0);
|
52
|
-
exports.Menu = Menu = __decorate([
|
53
|
-
(0, typeorm_1.Entity)({
|
54
|
-
name: 'menus',
|
55
|
-
})
|
56
|
-
], Menu);
|
57
|
-
//# sourceMappingURL=menu.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../src/entities/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,IAAI,GAAV,MAAM,IAAI;CA6BhB,CAAA;AA7BY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAOX;IALC,IAAA,oBAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACe;AAGjB;IADC,IAAA,gBAAM,GAAE;;kCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;iCACW;AAMb;IAJC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACY;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACY;eA5BH,IAAI;IAHhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,OAAO;KACd,CAAC;GACW,IAAI,CA6BhB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"multifactor.entity.d.ts","sourceRoot":"","sources":["../../src/entities/multifactor.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"multifactor.entity.js","sourceRoot":"","sources":["../../src/entities/multifactor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,WAAW,GAAjB,MAAM,WAAW;CAMvB,CAAA;AANY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,GAAE;;uCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;yCACI;sBALF,WAAW;IAHvB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,cAAc;KACrB,CAAC;GACW,WAAW,CAMvB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,IAAI,GAAV,MAAM,IAAI;CAQhB,CAAA;AARY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAKX;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;kCACW;eAPF,IAAI;IAHhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,OAAO;KACd,CAAC;GACW,IAAI,CAQhB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"route.entity.d.ts","sourceRoot":"","sources":["../../src/entities/route.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,KAAK;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,GAAG,EAAE,MAAM,CAAC;IAKZ,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Route = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Route = class Route {
|
15
|
-
};
|
16
|
-
exports.Route = Route;
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
-
__metadata("design:type", Number)
|
20
|
-
], Route.prototype, "id", void 0);
|
21
|
-
__decorate([
|
22
|
-
(0, typeorm_1.Column)(),
|
23
|
-
__metadata("design:type", String)
|
24
|
-
], Route.prototype, "url", void 0);
|
25
|
-
__decorate([
|
26
|
-
(0, typeorm_1.Column)({
|
27
|
-
enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
|
28
|
-
}),
|
29
|
-
__metadata("design:type", String)
|
30
|
-
], Route.prototype, "method", void 0);
|
31
|
-
exports.Route = Route = __decorate([
|
32
|
-
(0, typeorm_1.Entity)({
|
33
|
-
name: 'routes',
|
34
|
-
})
|
35
|
-
], Route);
|
36
|
-
//# sourceMappingURL=route.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"route.entity.js","sourceRoot":"","sources":["../../src/entities/route.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,KAAK,GAAX,MAAM,KAAK;CAWjB,CAAA;AAXY,sBAAK;AAEhB;IADC,IAAA,gCAAsB,GAAE;;iCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;kCACG;AAKZ;IAHC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;KACnE,CAAC;;qCACa;gBAVJ,KAAK;IAHjB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;KACf,CAAC;GACW,KAAK,CAWjB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"screen.entity.d.ts","sourceRoot":"","sources":["../../src/entities/screen.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Screen = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
let Screen = class Screen {
|
15
|
-
};
|
16
|
-
exports.Screen = Screen;
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
-
__metadata("design:type", Number)
|
20
|
-
], Screen.prototype, "id", void 0);
|
21
|
-
__decorate([
|
22
|
-
(0, typeorm_1.Column)(),
|
23
|
-
__metadata("design:type", String)
|
24
|
-
], Screen.prototype, "slug", void 0);
|
25
|
-
__decorate([
|
26
|
-
(0, typeorm_1.Column)({
|
27
|
-
nullable: true,
|
28
|
-
}),
|
29
|
-
__metadata("design:type", String)
|
30
|
-
], Screen.prototype, "icon", void 0);
|
31
|
-
exports.Screen = Screen = __decorate([
|
32
|
-
(0, typeorm_1.Entity)({
|
33
|
-
name: 'screens',
|
34
|
-
})
|
35
|
-
], Screen);
|
36
|
-
//# sourceMappingURL=screen.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"screen.entity.js","sourceRoot":"","sources":["../../src/entities/screen.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAWlB,CAAA;AAXY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,GAAE;;kCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;oCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;oCACY;iBAVH,MAAM;IAHlB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;KAChB,CAAC;GACW,MAAM,CAWlB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setting-group.entity.d.ts","sourceRoot":"","sources":["../../src/entities/setting-group.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAMb,IAAI,EAAE,MAAM,CAAC;CACd"}
|