@hedhog/admin 0.0.89 → 0.0.91
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/entities/locale.entity.d.ts +0 -1
- package/dist/entities/locale.entity.d.ts.map +1 -1
- package/dist/entities/locale.entity.js +0 -7
- package/dist/entities/locale.entity.js.map +1 -1
- package/dist/locale/dto/create.dto.d.ts +0 -1
- package/dist/locale/dto/create.dto.d.ts.map +1 -1
- package/dist/locale/dto/create.dto.js +0 -4
- package/dist/locale/dto/create.dto.js.map +1 -1
- package/dist/locale/dto/update.dto.d.ts +0 -1
- package/dist/locale/dto/update.dto.d.ts.map +1 -1
- package/dist/locale/dto/update.dto.js +0 -5
- package/dist/locale/dto/update.dto.js.map +1 -1
- package/dist/locale/locale.controller.d.ts +1 -1
- package/dist/locale/locale.controller.d.ts.map +1 -1
- package/dist/locale/locale.controller.js +14 -11
- package/dist/locale/locale.controller.js.map +1 -1
- package/dist/locale/locale.service.d.ts +1 -1
- package/dist/locale/locale.service.d.ts.map +1 -1
- package/dist/locale/locale.service.js +2 -2
- package/dist/locale/locale.service.js.map +1 -1
- package/dist/locale/locale.service.spec.js +0 -5
- package/dist/locale/locale.service.spec.js.map +1 -1
- package/dist/role/guards/role.guard.d.ts.map +1 -1
- package/dist/role/guards/role.guard.js +8 -0
- package/dist/role/guards/role.guard.js.map +1 -1
- package/dist/setting/settings.service.d.ts +2 -0
- package/dist/setting/settings.service.d.ts.map +1 -1
- package/dist/setting/settings.service.js +60 -0
- package/dist/setting/settings.service.js.map +1 -1
- package/hedhog.yaml +0 -64
- package/package.json +1 -1
- package/src/entities/locale.entity.ts +0 -6
@@ -1 +1 @@
|
|
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;
|
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"}
|
@@ -20,13 +20,6 @@ __decorate([
|
|
20
20
|
}),
|
21
21
|
__metadata("design:type", Number)
|
22
22
|
], Locale.prototype, "id", void 0);
|
23
|
-
__decorate([
|
24
|
-
(0, typeorm_1.JoinColumn)(),
|
25
|
-
(0, typeorm_1.Column)({
|
26
|
-
unsigned: true,
|
27
|
-
}),
|
28
|
-
__metadata("design:type", Number)
|
29
|
-
], Locale.prototype, "country_id", void 0);
|
30
23
|
__decorate([
|
31
24
|
(0, typeorm_1.Column)({
|
32
25
|
length: 2,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.entity.js","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,IAAM,MAAM,GAAZ,MAAM,MAAM;
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/locale/dto/create.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/locale/dto/create.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -26,8 +26,4 @@ __decorate([
|
|
26
26
|
(0, class_validator_1.IsString)(),
|
27
27
|
__metadata("design:type", String)
|
28
28
|
], CreateDTO.prototype, "region", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, class_validator_1.IsInt)(),
|
31
|
-
__metadata("design:type", Number)
|
32
|
-
], CreateDTO.prototype, "country_id", void 0);
|
33
29
|
//# sourceMappingURL=create.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/locale/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,SAAS;
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/locale/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,SAAS;CASrB;AATD,8BASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;uCACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uCACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;yCACI"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.dto.d.ts","sourceRoot":"","sources":["../../../src/locale/dto/update.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,SAAS;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,MAAM,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"update.dto.d.ts","sourceRoot":"","sources":["../../../src/locale/dto/update.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,SAAS;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
@@ -29,9 +29,4 @@ __decorate([
|
|
29
29
|
(0, class_validator_1.IsOptional)(),
|
30
30
|
__metadata("design:type", String)
|
31
31
|
], UpdateDTO.prototype, "region", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsInt)(),
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
35
|
-
__metadata("design:type", Number)
|
36
|
-
], UpdateDTO.prototype, "country_id", void 0);
|
37
32
|
//# sourceMappingURL=update.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../src/locale/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,SAAS;
|
1
|
+
{"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../src/locale/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,SAAS;CAYrB;AAZD,8BAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACG"}
|
@@ -5,8 +5,8 @@ import { LocaleService } from './locale.service';
|
|
5
5
|
export declare class LocaleController {
|
6
6
|
private readonly localeService;
|
7
7
|
constructor(localeService: LocaleService);
|
8
|
+
getEnables(paginationParams: any, locale: string): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
8
9
|
getTranslations(localeCode: string, namespace: string): Promise<{}>;
|
9
|
-
getEnableds(paginationParams: any, locale: string): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
10
10
|
get(paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
11
11
|
getById(id: number): Promise<any>;
|
12
12
|
create(data: CreateDTO): Promise<any>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.controller.d.ts","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"locale.controller.d.ts","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAKzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,EAAE,MAAM;IAMnE,eAAe,CACE,UAAU,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM;IAMjC,GAAG,CAAe,gBAAgB,KAAA;IAKlC,OAAO,CAA4B,EAAE,EAAE,MAAM;IAKnD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAQrE,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -20,16 +20,17 @@ const delete_dto_1 = require("./dto/delete.dto");
|
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const locale_service_1 = require("./locale.service");
|
22
22
|
const locale_decorator_1 = require("./locale.decorator");
|
23
|
+
const public_decorator_1 = require("../auth/decorators/public.decorator");
|
23
24
|
let LocaleController = class LocaleController {
|
24
25
|
constructor(localeService) {
|
25
26
|
this.localeService = localeService;
|
26
27
|
}
|
28
|
+
async getEnables(paginationParams, locale) {
|
29
|
+
return this.localeService.getEnables(locale, paginationParams);
|
30
|
+
}
|
27
31
|
async getTranslations(localeCode, namespace) {
|
28
32
|
return this.localeService.getTranslations(localeCode, namespace);
|
29
33
|
}
|
30
|
-
async getEnableds(paginationParams, locale) {
|
31
|
-
return this.localeService.getEnableds(locale, paginationParams);
|
32
|
-
}
|
33
34
|
async get(paginationParams) {
|
34
35
|
return this.localeService.get(paginationParams);
|
35
36
|
}
|
@@ -51,6 +52,16 @@ let LocaleController = class LocaleController {
|
|
51
52
|
};
|
52
53
|
exports.LocaleController = LocaleController;
|
53
54
|
__decorate([
|
55
|
+
(0, public_decorator_1.Public)(),
|
56
|
+
(0, common_1.Get)('system/enables'),
|
57
|
+
__param(0, (0, pagination_1.Pagination)()),
|
58
|
+
__param(1, (0, locale_decorator_1.Locale)()),
|
59
|
+
__metadata("design:type", Function),
|
60
|
+
__metadata("design:paramtypes", [Object, String]),
|
61
|
+
__metadata("design:returntype", Promise)
|
62
|
+
], LocaleController.prototype, "getEnables", null);
|
63
|
+
__decorate([
|
64
|
+
(0, public_decorator_1.Public)(),
|
54
65
|
(0, common_1.Get)(':localeCode/:namespace'),
|
55
66
|
__param(0, (0, common_1.Param)('localeCode')),
|
56
67
|
__param(1, (0, common_1.Param)('namespace')),
|
@@ -58,14 +69,6 @@ __decorate([
|
|
58
69
|
__metadata("design:paramtypes", [String, String]),
|
59
70
|
__metadata("design:returntype", Promise)
|
60
71
|
], LocaleController.prototype, "getTranslations", null);
|
61
|
-
__decorate([
|
62
|
-
(0, common_1.Get)('system/enableds'),
|
63
|
-
__param(0, (0, pagination_1.Pagination)()),
|
64
|
-
__param(1, (0, locale_decorator_1.Locale)()),
|
65
|
-
__metadata("design:type", Function),
|
66
|
-
__metadata("design:paramtypes", [Object, String]),
|
67
|
-
__metadata("design:returntype", Promise)
|
68
|
-
], LocaleController.prototype, "getEnableds", null);
|
69
72
|
__decorate([
|
70
73
|
(0, common_1.Get)(),
|
71
74
|
__param(0, (0, pagination_1.Pagination)()),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.controller.js","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAC7C,qDAAiD;AACjD,yDAA4C;
|
1
|
+
{"version":3,"file":"locale.controller.js","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAC7C,qDAAiD;AACjD,yDAA4C;AAC5C,0EAA6D;AAGtD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIE,AAAN,KAAK,CAAC,UAAU,CAAe,gBAAgB,EAAY,MAAc;QACvE,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACjE,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CACE,UAAkB,EACnB,SAAiB;QAErC,OAAO,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACnE,CAAC;IAGK,AAAN,KAAK,CAAC,GAAG,CAAe,g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GK;IADL,IAAA,cAAK,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;8CAK1E;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAEnC;2BA/CU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAgD5B"}
|
@@ -7,7 +7,7 @@ export declare class LocaleService {
|
|
7
7
|
private readonly prismaService;
|
8
8
|
private readonly paginationService;
|
9
9
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
10
|
-
|
10
|
+
getEnables(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
11
11
|
parseLocale(locale: string): {
|
12
12
|
code: string;
|
13
13
|
region: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAGtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,
|
1
|
+
{"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAGtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiEhE,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;IAWpB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAwCrD,GAAG,CAAC,gBAAgB,EAAE,aAAa;IAqBnC,OAAO,CAAC,SAAS,EAAE,MAAM;IAMzB,MAAM,CAAC,IAAI,EAAE,SAAS;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
|
@@ -21,8 +21,8 @@ let LocaleService = class LocaleService {
|
|
21
21
|
this.prismaService = prismaService;
|
22
22
|
this.paginationService = paginationService;
|
23
23
|
}
|
24
|
-
async
|
25
|
-
const fields = ['
|
24
|
+
async getEnables(locale, paginationParams) {
|
25
|
+
const fields = ['code', 'region'];
|
26
26
|
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
27
27
|
const result = await this.paginationService.paginate(this.prismaService.locales, paginationParams, {
|
28
28
|
where: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.service.js","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAMjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"locale.service.js","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAMjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,gBAA+B;QAC9D,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClC,MAAM,EAAE,GAAU,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAC1D,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAClD,IAAI,CAAC,aAAa,CAAC,OAAO,EAC1B,gBAAgB,EAChB;YACE,KAAK,EAAE;gBACL,GAAG,EAAE;oBACH;wBACE,OAAO,EAAE,IAAI;qBACd;oBACD;wBACE,EAAE;qBACH;iBACF;aACF;SACF,CACF,CAAC;QAEF,MAAM,KAAK,GAAG,EAAE,CAAC;QAEjB,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC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,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAL5C,aAAa,CAmLzB"}
|
@@ -99,7 +99,6 @@ describe('LocaleService', () => {
|
|
99
99
|
name: 'English',
|
100
100
|
code: 'en',
|
101
101
|
region: 'us',
|
102
|
-
country_id: 1,
|
103
102
|
created_at: new Date(),
|
104
103
|
updated_at: new Date(),
|
105
104
|
};
|
@@ -116,14 +115,12 @@ describe('LocaleService', () => {
|
|
116
115
|
name: 'English',
|
117
116
|
code: 'en',
|
118
117
|
region: 'us',
|
119
|
-
country_id: 1,
|
120
118
|
};
|
121
119
|
const mockLocale = {
|
122
120
|
id: 1,
|
123
121
|
name: 'English',
|
124
122
|
code: 'en',
|
125
123
|
region: 'us',
|
126
|
-
country_id: 1,
|
127
124
|
created_at: new Date(),
|
128
125
|
updated_at: new Date(),
|
129
126
|
};
|
@@ -138,14 +135,12 @@ describe('LocaleService', () => {
|
|
138
135
|
name: 'English Updated',
|
139
136
|
code: 'en',
|
140
137
|
region: 'us',
|
141
|
-
country_id: 1,
|
142
138
|
};
|
143
139
|
const mockLocale = {
|
144
140
|
id: 1,
|
145
141
|
name: 'English Updated',
|
146
142
|
code: 'en',
|
147
143
|
region: 'us',
|
148
|
-
country_id: 1,
|
149
144
|
created_at: new Date(),
|
150
145
|
updated_at: new Date(),
|
151
146
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.service.spec.js","sourceRoot":"","sources":["../../src/locale/locale.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,qDAAiD;AACjD,2CAA+C;AAC/C,mDAI4B;AAC5B,2CAAqD;AAKrD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,OAAsB,CAAC;IAC3B,IAAI,aAA4B,CAAC;IACjC,IAAI,iBAAoC,CAAC;IAEzC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,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G,MAAM,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YACnD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFf,SAAS,EAAE,SAAS,EAEX,MAAM,EAAE,aAAa;IAGlC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA6F9D,OAAO,CAAC,sBAAsB;CAI/B"}
|
@@ -18,6 +18,7 @@ const core_1 = require("@nestjs/core");
|
|
18
18
|
const constants_1 = require("@nestjs/common/constants");
|
19
19
|
const role_decorator_1 = require("../decorators/role.decorator");
|
20
20
|
const prisma_1 = require("@hedhog/prisma");
|
21
|
+
const public_decorator_1 = require("../../auth/decorators/public.decorator");
|
21
22
|
let RoleGuard = class RoleGuard {
|
22
23
|
constructor(reflector, prisma) {
|
23
24
|
this.reflector = reflector;
|
@@ -25,6 +26,13 @@ let RoleGuard = class RoleGuard {
|
|
25
26
|
}
|
26
27
|
async canActivate(context) {
|
27
28
|
var _a, _b;
|
29
|
+
const isPublic = this.reflector.getAllAndOverride(public_decorator_1.IS_PUBLIC_KEY, [
|
30
|
+
context.getHandler(),
|
31
|
+
context.getClass(),
|
32
|
+
]);
|
33
|
+
if (isPublic) {
|
34
|
+
return true;
|
35
|
+
}
|
28
36
|
const withRole = this.reflector.getAllAndOverride(role_decorator_1.WITH_ROLE, [
|
29
37
|
context.getHandler(),
|
30
38
|
context.getClass(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.guard.js","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,uCAAyC;AACzC,wDAA2D;AAC3D,iEAAyD;AACzD,2CAA+C;
|
1
|
+
{"version":3,"file":"role.guard.js","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,uCAAyC;AACzC,wDAA2D;AAC3D,iEAAyD;AACzD,2CAA+C;AAC/C,6EAAuE;AAGhE,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YACU,SAAoB,EAEX,MAAqB;QAF9B,cAAS,GAAT,SAAS,CAAW;QAEX,WAAM,GAAN,MAAM,CAAe;IACrC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,gCAAa,EAAE;YACxE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,0BAAS,EAAE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C,CAAC;CACF,CAAA;AAxGY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;qCADrB,gBAAS;QAEH,sBAAa;GAJ7B,SAAS,CAwGrB"}
|
@@ -18,5 +18,7 @@ export declare class SettingsService {
|
|
18
18
|
}): Promise<any>;
|
19
19
|
updateFromSlug(slug: string, data: UpdateDTO): Promise<any>;
|
20
20
|
delete({ ids }: DeleteDTO): Promise<any>;
|
21
|
+
setSettingUserValue(slug: string, value: string): Promise<any>;
|
22
|
+
getSettingValues(slug: string | string[]): Promise<any>;
|
21
23
|
}
|
22
24
|
//# sourceMappingURL=settings.service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.service.d.ts","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,qBACa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAiEpE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAqChE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE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CAAA;KAAE;IAOpD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAiB5C,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgBzB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IA4B/C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CA4C/C"}
|
@@ -178,6 +178,66 @@ let SettingsService = class SettingsService {
|
|
178
178
|
},
|
179
179
|
});
|
180
180
|
}
|
181
|
+
async setSettingUserValue(slug, value) {
|
182
|
+
const setting = await this.prismaService.settings.findFirst({
|
183
|
+
where: {
|
184
|
+
slug,
|
185
|
+
userOverride: true,
|
186
|
+
},
|
187
|
+
});
|
188
|
+
if (!setting) {
|
189
|
+
throw new common_1.BadRequestException(`Setting with slug ${slug} not found or user can not override.`);
|
190
|
+
}
|
191
|
+
return await this.prismaService.settings_user.upsert({
|
192
|
+
where: {
|
193
|
+
settingId: setting.id,
|
194
|
+
},
|
195
|
+
create: {
|
196
|
+
settingId: setting.id,
|
197
|
+
value,
|
198
|
+
},
|
199
|
+
update: {
|
200
|
+
value,
|
201
|
+
},
|
202
|
+
});
|
203
|
+
}
|
204
|
+
async getSettingValues(slug) {
|
205
|
+
slug = Array.isArray(slug) ? slug : [slug];
|
206
|
+
let settings = await this.prismaService.settings.findMany({
|
207
|
+
where: {
|
208
|
+
slug: {
|
209
|
+
in: slug,
|
210
|
+
},
|
211
|
+
},
|
212
|
+
select: {
|
213
|
+
id: true,
|
214
|
+
value: true,
|
215
|
+
slug: true,
|
216
|
+
type: true,
|
217
|
+
userOverride: true,
|
218
|
+
},
|
219
|
+
});
|
220
|
+
const slugUserOverride = settings.filter((setting) => setting.userOverride);
|
221
|
+
const settingsUser = await this.prismaService.settings_user.findMany({
|
222
|
+
where: {
|
223
|
+
settingId: {
|
224
|
+
in: slugUserOverride.map((setting) => setting.id),
|
225
|
+
},
|
226
|
+
},
|
227
|
+
select: {
|
228
|
+
value: true,
|
229
|
+
settingId: true,
|
230
|
+
},
|
231
|
+
});
|
232
|
+
settings = settings.map((setting) => {
|
233
|
+
const settingUser = settingsUser.find((settingUser) => settingUser.settingId === setting.id);
|
234
|
+
if (settingUser) {
|
235
|
+
setting.value = settingUser.value;
|
236
|
+
}
|
237
|
+
return setting;
|
238
|
+
});
|
239
|
+
return settings;
|
240
|
+
}
|
181
241
|
};
|
182
242
|
exports.SettingsService = SettingsService;
|
183
243
|
exports.SettingsService = SettingsService = __decorate([
|
@@ -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;AAG1C,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,mBAAmB,CAAC,MAAW,EAAE,gBAAqB,EAAE,IAAY;QACxE,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEjC,gBAAgB,CAAC,QAAQ,GAAG,GAAG,CAAC;QAEhC,MAAM,EAAE,GAAU,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAC1D,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAChD,IAAI,CAAC,aAAa,CAAC,QAAQ,EAC3B,gBAAgB,EAChB;YACE,KAAK,EAAE;gBACL,GAAG,EAAE;oBACH,cAAc,EAAE;wBACd,IAAI;qBACL;oBACD,EAAE;iBACH;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,OAAO,EAAE;wBACP,0BAA0B,EAAE;4BAC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;YACF,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YACpC,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AApSY,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,CAoS3B"}
|
package/hedhog.yaml
CHANGED
@@ -1150,70 +1150,6 @@ data:
|
|
1150
1150
|
name: pt
|
1151
1151
|
value: Português
|
1152
1152
|
setting_groups:
|
1153
|
-
- slug: file-storage
|
1154
|
-
icon: folder
|
1155
|
-
name:
|
1156
|
-
en: File Storage
|
1157
|
-
pt: Armazenamento de Arquivos
|
1158
|
-
description:
|
1159
|
-
en: Configure the file storage settings.
|
1160
|
-
pt: Configurar as definições de armazenamento de arquivos.
|
1161
|
-
relations:
|
1162
|
-
settings:
|
1163
|
-
- slug: storage
|
1164
|
-
type: string
|
1165
|
-
name:
|
1166
|
-
en: Storage Provider
|
1167
|
-
pt: Provedor de Armazenamento
|
1168
|
-
description:
|
1169
|
-
en: The storage to use
|
1170
|
-
pt: O armazenamento a utilizar
|
1171
|
-
value: local
|
1172
|
-
- slug: storage-local-path
|
1173
|
-
type: string
|
1174
|
-
name:
|
1175
|
-
en: Local Path
|
1176
|
-
pt: Caminho Local
|
1177
|
-
description:
|
1178
|
-
en: The local path to store files
|
1179
|
-
pt: O caminho local para armazenar arquivos
|
1180
|
-
value: storage
|
1181
|
-
- slug: storage-s3-key
|
1182
|
-
type: string
|
1183
|
-
name:
|
1184
|
-
en: S3 Key
|
1185
|
-
pt: Chave S3
|
1186
|
-
description:
|
1187
|
-
en: The S3 key
|
1188
|
-
pt: A chave S3
|
1189
|
-
value: ''
|
1190
|
-
- slug: storage-s3-secret
|
1191
|
-
type: string
|
1192
|
-
name:
|
1193
|
-
en: S3 Secret
|
1194
|
-
pt: Segredo S3
|
1195
|
-
description:
|
1196
|
-
en: The S3 secret
|
1197
|
-
pt: O segredo S3
|
1198
|
-
value: ''
|
1199
|
-
- slug: storage-s3-region
|
1200
|
-
type: string
|
1201
|
-
name:
|
1202
|
-
en: S3 Region
|
1203
|
-
pt: Região S3
|
1204
|
-
description:
|
1205
|
-
en: The S3 region
|
1206
|
-
pt: A região S3
|
1207
|
-
value: ''
|
1208
|
-
- slug: storage-s3-bucket
|
1209
|
-
type: string
|
1210
|
-
name:
|
1211
|
-
en: S3 Bucket
|
1212
|
-
pt: Bucket S3
|
1213
|
-
description:
|
1214
|
-
en: The S3 bucket
|
1215
|
-
pt: O bucket S3
|
1216
|
-
value: ''
|
1217
1153
|
- slug: localization
|
1218
1154
|
icon: world
|
1219
1155
|
name:
|
package/package.json
CHANGED