@solidstarters/solid-core 1.2.93 → 1.2.95
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/dist/controllers/locale.controller.d.ts +41 -0
- package/dist/controllers/locale.controller.d.ts.map +1 -0
- package/dist/controllers/locale.controller.js +179 -0
- package/dist/controllers/locale.controller.js.map +1 -0
- package/dist/controllers/view-metadata.controller.d.ts +1 -0
- package/dist/controllers/view-metadata.controller.d.ts.map +1 -1
- package/dist/dtos/basic-filters.dto.d.ts +2 -0
- package/dist/dtos/basic-filters.dto.d.ts.map +1 -1
- package/dist/dtos/basic-filters.dto.js +11 -1
- package/dist/dtos/basic-filters.dto.js.map +1 -1
- package/dist/dtos/create-locale.dto.d.ts +6 -0
- package/dist/dtos/create-locale.dto.d.ts.map +1 -0
- package/dist/dtos/create-locale.dto.js +43 -0
- package/dist/dtos/create-locale.dto.js.map +1 -0
- package/dist/dtos/create-model-metadata.dto.d.ts +1 -0
- package/dist/dtos/create-model-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-model-metadata.dto.js +7 -2
- package/dist/dtos/create-model-metadata.dto.js.map +1 -1
- package/dist/dtos/update-locale.dto.d.ts +7 -0
- package/dist/dtos/update-locale.dto.d.ts.map +1 -0
- package/dist/dtos/update-locale.dto.js +48 -0
- package/dist/dtos/update-locale.dto.js.map +1 -0
- package/dist/entities/common.entity.d.ts +3 -0
- package/dist/entities/common.entity.d.ts.map +1 -1
- package/dist/entities/common.entity.js +13 -1
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/locale.entity.d.ts +7 -0
- package/dist/entities/locale.entity.d.ts.map +1 -0
- package/dist/entities/locale.entity.js +43 -0
- package/dist/entities/locale.entity.js.map +1 -0
- package/dist/entities/model-metadata.entity.d.ts +1 -0
- package/dist/entities/model-metadata.entity.d.ts.map +1 -1
- package/dist/entities/model-metadata.entity.js +5 -1
- package/dist/entities/model-metadata.entity.js.map +1 -1
- package/dist/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.d.ts.map +1 -1
- package/dist/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.js.map +1 -1
- package/dist/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.d.ts.map +1 -1
- package/dist/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.js.map +1 -1
- package/dist/helpers/module-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/module-metadata-helper.service.js.map +1 -1
- package/dist/helpers/solid-registry.d.ts +2 -0
- package/dist/helpers/solid-registry.d.ts.map +1 -1
- package/dist/helpers/solid-registry.js +5 -0
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +203 -0
- package/dist/services/crud-helper.service.d.ts +1 -1
- package/dist/services/crud-helper.service.d.ts.map +1 -1
- package/dist/services/crud-helper.service.js +17 -2
- package/dist/services/crud-helper.service.js.map +1 -1
- package/dist/services/crud.service.d.ts.map +1 -1
- package/dist/services/crud.service.js +18 -5
- package/dist/services/crud.service.js.map +1 -1
- package/dist/services/locale.service.d.ts +26 -0
- package/dist/services/locale.service.d.ts.map +1 -0
- package/dist/services/locale.service.js +64 -0
- package/dist/services/locale.service.js.map +1 -0
- package/dist/services/mediaStorageProviders/file-storage-provider.js.map +1 -1
- package/dist/services/selection-providers/locale-list-selection-provider.service.d.ts +9 -0
- package/dist/services/selection-providers/locale-list-selection-provider.service.d.ts.map +1 -0
- package/dist/services/selection-providers/locale-list-selection-provider.service.js +87 -0
- package/dist/services/selection-providers/locale-list-selection-provider.service.js.map +1 -0
- package/dist/services/view-metadata.service.d.ts +3 -0
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +73 -7
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +8 -0
- package/dist/solid-core.module.js.map +1 -1
- package/dist/subscribers/model.subscriber.d.ts.map +1 -1
- package/dist/subscribers/model.subscriber.js +24 -0
- package/dist/subscribers/model.subscriber.js.map +1 -1
- package/dist/transformers/datetime-transformer.d.ts +4 -0
- package/dist/transformers/datetime-transformer.d.ts.map +1 -0
- package/dist/transformers/datetime-transformer.js +11 -0
- package/dist/transformers/datetime-transformer.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/controllers/locale.controller.ts +94 -0
- package/src/dtos/basic-filters.dto.ts +13 -1
- package/src/dtos/create-locale.dto.ts +17 -0
- package/src/dtos/create-model-metadata.dto.ts +5 -1
- package/src/dtos/update-locale.dto.ts +23 -0
- package/src/entities/common.entity.ts +11 -1
- package/src/entities/locale.entity.ts +14 -0
- package/src/entities/model-metadata.entity.ts +3 -0
- package/src/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.ts +2 -1
- package/src/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.ts +1 -0
- package/src/helpers/module-metadata-helper.service.ts +0 -1
- package/src/helpers/solid-registry.ts +11 -2
- package/src/index.ts +6 -3
- package/src/seeders/seed-data/solid-core-metadata.json +203 -0
- package/src/services/crud-helper.service.ts +30 -12
- package/src/services/crud.service.ts +50 -34
- package/src/services/locale.service.ts +37 -0
- package/src/services/mediaStorageProviders/file-storage-provider.ts +1 -1
- package/src/services/selection-providers/locale-list-selection-provider.service.ts +58 -0
- package/src/services/view-metadata.service.ts +179 -14
- package/src/solid-core.module.ts +8 -0
- package/src/subscribers/model.subscriber.ts +24 -0
- package/src/transformers/datetime-transformer.ts +12 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LocaleService } from 'src/services/locale.service';
|
|
2
|
+
import { CreateLocaleDto } from 'src/dtos/create-locale.dto';
|
|
3
|
+
import { UpdateLocaleDto } from 'src/dtos/update-locale.dto';
|
|
4
|
+
export declare class LocaleController {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: LocaleService);
|
|
7
|
+
create(createDto: CreateLocaleDto, files: Array<Express.Multer.File>): Promise<import("..").Locale>;
|
|
8
|
+
insertMany(createDtos: CreateLocaleDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").Locale[]>;
|
|
9
|
+
update(id: number, updateDto: UpdateLocaleDto, files: Array<Express.Multer.File>): Promise<import("..").Locale>;
|
|
10
|
+
partialUpdate(id: number, updateDto: UpdateLocaleDto, files: Array<Express.Multer.File>): Promise<import("..").Locale>;
|
|
11
|
+
recoverMany(ids: number[]): Promise<{
|
|
12
|
+
message: string;
|
|
13
|
+
recoveredIds: number[];
|
|
14
|
+
}>;
|
|
15
|
+
recover(id: number): Promise<{
|
|
16
|
+
message: string;
|
|
17
|
+
data: import("..").Locale;
|
|
18
|
+
}>;
|
|
19
|
+
findMany(query: any): Promise<{
|
|
20
|
+
groupMeta: any[];
|
|
21
|
+
groupRecords: any[];
|
|
22
|
+
meta?: undefined;
|
|
23
|
+
records?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
meta: {
|
|
26
|
+
totalRecords: number;
|
|
27
|
+
currentPage: number;
|
|
28
|
+
nextPage: number;
|
|
29
|
+
prevPage: number;
|
|
30
|
+
totalPages: number;
|
|
31
|
+
perPage: number;
|
|
32
|
+
};
|
|
33
|
+
records: import("..").Locale[];
|
|
34
|
+
groupMeta?: undefined;
|
|
35
|
+
groupRecords?: undefined;
|
|
36
|
+
}>;
|
|
37
|
+
findOne(id: string, query: any): Promise<import("..").Locale>;
|
|
38
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
39
|
+
delete(id: number): Promise<import("..").Locale>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=locale.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/locale.controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAO7D,qBAEa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,aAAa;IAKnD,MAAM,CAAS,SAAS,EAAE,eAAe,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAO7F,UAAU,CAAS,UAAU,EAAE,eAAe,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQ3G,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,eAAe,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOtH,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,eAAe,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAMvH,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAe/B,QAAQ,CAAU,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAIrC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.LocaleController = void 0;
|
|
16
|
+
const openapi = require("@nestjs/swagger");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const locale_service_1 = require("../services/locale.service");
|
|
21
|
+
const create_locale_dto_1 = require("../dtos/create-locale.dto");
|
|
22
|
+
const update_locale_dto_1 = require("../dtos/update-locale.dto");
|
|
23
|
+
var ShowSoftDeleted;
|
|
24
|
+
(function (ShowSoftDeleted) {
|
|
25
|
+
ShowSoftDeleted["INCLUSIVE"] = "inclusive";
|
|
26
|
+
ShowSoftDeleted["EXCLUSIVE"] = "exclusive";
|
|
27
|
+
})(ShowSoftDeleted || (ShowSoftDeleted = {}));
|
|
28
|
+
let LocaleController = class LocaleController {
|
|
29
|
+
constructor(service) {
|
|
30
|
+
this.service = service;
|
|
31
|
+
}
|
|
32
|
+
create(createDto, files) {
|
|
33
|
+
return this.service.create(createDto, files);
|
|
34
|
+
}
|
|
35
|
+
insertMany(createDtos, filesArray = []) {
|
|
36
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
37
|
+
}
|
|
38
|
+
update(id, updateDto, files) {
|
|
39
|
+
return this.service.update(id, updateDto, files);
|
|
40
|
+
}
|
|
41
|
+
partialUpdate(id, updateDto, files) {
|
|
42
|
+
return this.service.update(id, updateDto, files, true);
|
|
43
|
+
}
|
|
44
|
+
async recoverMany(ids) {
|
|
45
|
+
return this.service.recoverMany(ids);
|
|
46
|
+
}
|
|
47
|
+
async recover(id) {
|
|
48
|
+
return this.service.recover(id);
|
|
49
|
+
}
|
|
50
|
+
async findMany(query) {
|
|
51
|
+
return this.service.find(query);
|
|
52
|
+
}
|
|
53
|
+
async findOne(id, query) {
|
|
54
|
+
return this.service.findOne(+id, query);
|
|
55
|
+
}
|
|
56
|
+
async deleteMany(ids) {
|
|
57
|
+
return this.service.deleteMany(ids);
|
|
58
|
+
}
|
|
59
|
+
async delete(id) {
|
|
60
|
+
return this.service.delete(id);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.LocaleController = LocaleController;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
66
|
+
(0, common_1.Post)(),
|
|
67
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
68
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/locale.entity").Locale }),
|
|
69
|
+
__param(0, (0, common_1.Body)()),
|
|
70
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [create_locale_dto_1.CreateLocaleDto, Array]),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], LocaleController.prototype, "create", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
77
|
+
(0, common_1.Post)('/bulk'),
|
|
78
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
79
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/locale.entity").Locale] }),
|
|
80
|
+
__param(0, (0, common_1.Body)()),
|
|
81
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
82
|
+
__metadata("design:type", Function),
|
|
83
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
84
|
+
__metadata("design:returntype", void 0)
|
|
85
|
+
], LocaleController.prototype, "insertMany", null);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
88
|
+
(0, common_1.Put)(':id'),
|
|
89
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
90
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/locale.entity").Locale }),
|
|
91
|
+
__param(0, (0, common_1.Param)('id')),
|
|
92
|
+
__param(1, (0, common_1.Body)()),
|
|
93
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
94
|
+
__metadata("design:type", Function),
|
|
95
|
+
__metadata("design:paramtypes", [Number, update_locale_dto_1.UpdateLocaleDto, Array]),
|
|
96
|
+
__metadata("design:returntype", void 0)
|
|
97
|
+
], LocaleController.prototype, "update", null);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
100
|
+
(0, common_1.Patch)(':id'),
|
|
101
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
102
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/locale.entity").Locale }),
|
|
103
|
+
__param(0, (0, common_1.Param)('id')),
|
|
104
|
+
__param(1, (0, common_1.Body)()),
|
|
105
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
106
|
+
__metadata("design:type", Function),
|
|
107
|
+
__metadata("design:paramtypes", [Number, update_locale_dto_1.UpdateLocaleDto, Array]),
|
|
108
|
+
__metadata("design:returntype", void 0)
|
|
109
|
+
], LocaleController.prototype, "partialUpdate", null);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
112
|
+
(0, common_1.Post)('/bulk-recover'),
|
|
113
|
+
openapi.ApiResponse({ status: 201 }),
|
|
114
|
+
__param(0, (0, common_1.Body)()),
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", [Array]),
|
|
117
|
+
__metadata("design:returntype", Promise)
|
|
118
|
+
], LocaleController.prototype, "recoverMany", null);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
121
|
+
(0, common_1.Get)('/recover/:id'),
|
|
122
|
+
openapi.ApiResponse({ status: 200 }),
|
|
123
|
+
__param(0, (0, common_1.Param)('id')),
|
|
124
|
+
__metadata("design:type", Function),
|
|
125
|
+
__metadata("design:paramtypes", [Number]),
|
|
126
|
+
__metadata("design:returntype", Promise)
|
|
127
|
+
], LocaleController.prototype, "recover", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
130
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted }),
|
|
131
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
132
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
133
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
134
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
135
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
136
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
137
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
138
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
139
|
+
(0, common_1.Get)(),
|
|
140
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
141
|
+
__param(0, (0, common_1.Query)()),
|
|
142
|
+
__metadata("design:type", Function),
|
|
143
|
+
__metadata("design:paramtypes", [Object]),
|
|
144
|
+
__metadata("design:returntype", Promise)
|
|
145
|
+
], LocaleController.prototype, "findMany", null);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
148
|
+
(0, common_1.Get)(':id'),
|
|
149
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/locale.entity").Locale }),
|
|
150
|
+
__param(0, (0, common_1.Param)('id')),
|
|
151
|
+
__param(1, (0, common_1.Query)()),
|
|
152
|
+
__metadata("design:type", Function),
|
|
153
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
154
|
+
__metadata("design:returntype", Promise)
|
|
155
|
+
], LocaleController.prototype, "findOne", null);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
158
|
+
(0, common_1.Delete)('/bulk'),
|
|
159
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
160
|
+
__param(0, (0, common_1.Body)()),
|
|
161
|
+
__metadata("design:type", Function),
|
|
162
|
+
__metadata("design:paramtypes", [Array]),
|
|
163
|
+
__metadata("design:returntype", Promise)
|
|
164
|
+
], LocaleController.prototype, "deleteMany", null);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
167
|
+
(0, common_1.Delete)(':id'),
|
|
168
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/locale.entity").Locale }),
|
|
169
|
+
__param(0, (0, common_1.Param)('id')),
|
|
170
|
+
__metadata("design:type", Function),
|
|
171
|
+
__metadata("design:paramtypes", [Number]),
|
|
172
|
+
__metadata("design:returntype", Promise)
|
|
173
|
+
], LocaleController.prototype, "delete", null);
|
|
174
|
+
exports.LocaleController = LocaleController = __decorate([
|
|
175
|
+
(0, swagger_1.ApiTags)('Solid Core'),
|
|
176
|
+
(0, common_1.Controller)('locale'),
|
|
177
|
+
__metadata("design:paramtypes", [locale_service_1.LocaleService])
|
|
178
|
+
], LocaleController);
|
|
179
|
+
//# sourceMappingURL=locale.controller.js.map
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EAAE,cAAc;;;;;;;;CAIxE"}
|
|
@@ -12,5 +12,7 @@ export declare class BasicFilterDto extends PaginationQueryDto {
|
|
|
12
12
|
readonly showSoftDeleted?: SoftDeleteFilter;
|
|
13
13
|
readonly populateGroup?: boolean;
|
|
14
14
|
groupFilter?: BasicFilterDto;
|
|
15
|
+
readonly locale?: string;
|
|
16
|
+
readonly status?: string;
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=basic-filters.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-filters.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/basic-filters.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"basic-filters.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/basic-filters.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,oBAAY,gBAAgB;IACxB,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,qBAAa,cAAe,SAAQ,kBAAkB;IAIlD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAI3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAIzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAK5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAK7B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAYlC,QAAQ,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IAI5C,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAIjC,WAAW,CAAC,EAAE,cAAc,CAAA;IAI5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAIzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAK5B"}
|
|
@@ -21,7 +21,7 @@ var SoftDeleteFilter;
|
|
|
21
21
|
})(SoftDeleteFilter || (exports.SoftDeleteFilter = SoftDeleteFilter = {}));
|
|
22
22
|
class BasicFilterDto extends pagination_query_dto_1.PaginationQueryDto {
|
|
23
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { fields: { required: false, type: () => [String] }, sort: { required: false, type: () => [String] }, groupBy: { required: false, type: () => [String] }, populate: { required: false, type: () => [String] }, populateMedia: { required: false, type: () => [String] }, showSoftDeleted: { required: false, enum: require("./basic-filters.dto").SoftDeleteFilter }, populateGroup: { required: false, type: () => Boolean }, groupFilter: { required: false, type: () => require("./basic-filters.dto").BasicFilterDto } };
|
|
24
|
+
return { fields: { required: false, type: () => [String] }, sort: { required: false, type: () => [String] }, groupBy: { required: false, type: () => [String] }, populate: { required: false, type: () => [String] }, populateMedia: { required: false, type: () => [String] }, showSoftDeleted: { required: false, enum: require("./basic-filters.dto").SoftDeleteFilter }, populateGroup: { required: false, type: () => Boolean }, groupFilter: { required: false, type: () => require("./basic-filters.dto").BasicFilterDto }, locale: { required: false, type: () => String }, status: { required: false, type: () => String } };
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.BasicFilterDto = BasicFilterDto;
|
|
@@ -69,4 +69,14 @@ __decorate([
|
|
|
69
69
|
(0, swagger_1.ApiProperty)({ description: "groupFilter" }),
|
|
70
70
|
__metadata("design:type", BasicFilterDto)
|
|
71
71
|
], BasicFilterDto.prototype, "groupFilter", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, swagger_1.ApiProperty)({ description: "locale" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], BasicFilterDto.prototype, "locale", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, swagger_1.ApiProperty)({ description: "status publish draft" }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], BasicFilterDto.prototype, "status", void 0);
|
|
72
82
|
//# sourceMappingURL=basic-filters.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-filters.dto.js","sourceRoot":"","sources":["../../src/dtos/basic-filters.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,6CAA8C;AAC9C,qDAAqD;AACrD,iEAA4D;
|
|
1
|
+
{"version":3,"file":"basic-filters.dto.js","sourceRoot":"","sources":["../../src/dtos/basic-filters.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,6CAA8C;AAC9C,qDAAqD;AACrD,iEAA4D;AAG5D,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,MAAa,cAAe,SAAQ,yCAAkB;;;;CAuDrD;AAvDD,wCAuDC;AAnDY;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;;8CACZ;AAIlB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;;4CACZ;AAIhB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;+CACZ;AAKnB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;;gDACZ;AAKpB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;;qDACZ;AAYzB;IANR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAgB,CAAC;IACxB,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;KACzB,CAAC;;uDAC0C;AAInC;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;;qDACb;AAIjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;8BAC9B,cAAc;mDAAA;AAInB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;;8CACd;AAIhB;IAFR,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;;8CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-locale.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-locale.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAIxB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,OAAO,CAAQ;CAC7B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CreateLocaleDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
class CreateLocaleDto {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.isDefault = true;
|
|
19
|
+
}
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { locale: { required: true, type: () => String }, displayName: { required: true, type: () => String }, isDefault: { required: true, type: () => Boolean, default: true } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CreateLocaleDto = CreateLocaleDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, swagger_1.ApiProperty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateLocaleDto.prototype, "locale", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateLocaleDto.prototype, "displayName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, swagger_1.ApiProperty)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], CreateLocaleDto.prototype, "isDefault", void 0);
|
|
43
|
+
//# sourceMappingURL=create-locale.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-locale.dto.js","sourceRoot":"","sources":["../../src/dtos/create-locale.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA8E;AAC9E,6CAA8C;AAE9C,MAAa,eAAe;IAA5B;QAYI,cAAS,GAAY,IAAI,CAAC;KAC7B;;iLADwB,IAAI;;CAC5B;AAbD,0CAaC;AATG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+CACC;AAIf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;kDACY"}
|
|
@@ -17,6 +17,7 @@ export declare class CreateModelMetadataDto {
|
|
|
17
17
|
readonly enableSoftDelete: boolean;
|
|
18
18
|
readonly enableAuditTracking: boolean;
|
|
19
19
|
readonly internationalisation: boolean;
|
|
20
|
+
readonly draftPublishWorkflow: boolean;
|
|
20
21
|
moduleId: number;
|
|
21
22
|
moduleUserKey?: string;
|
|
22
23
|
userKeyFieldId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model-metadata.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-model-metadata.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,oBAAY,cAAc;IAKtB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,qBAAa,sBAAsB;IAM/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAM5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAI5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAI7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAK7B,QAAQ,CAAC,UAAU,E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,CAAC,oBAAoB,EAAE,OAAO,CAAA;IAItC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAA;IAKtC,QAAQ,EAAE,MAAM,CAAC;IAIjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,cAAc,EAAE,MAAM,CAAC;IAIvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAM7B,MAAM,EAAE,sBAAsB,EAAE,CAAC;IAIjC,QAAQ,EAAE,OAAO,CAAC;IAIlB,OAAO,EAAE,OAAO,CAAC;IAKjB,aAAa,EAAE,MAAM,CAAC;IAKtB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -27,7 +27,7 @@ var DatasourceType;
|
|
|
27
27
|
})(DatasourceType || (exports.DatasourceType = DatasourceType = {}));
|
|
28
28
|
class CreateModelMetadataDto {
|
|
29
29
|
static _OPENAPI_METADATA_FACTORY() {
|
|
30
|
-
return { singularName: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, tableName: { required: false, type: () => String, pattern: "/[a-z]+(_[a-z]+)*/" }, pluralName: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, description: { required: true, type: () => String }, dataSource: { required: true, type: () => String }, dataSourceType: { required: true, type: () => String }, enableSoftDelete: { required: true, type: () => Boolean }, enableAuditTracking: { required: true, type: () => Boolean }, internationalisation: { required: true, type: () => Boolean }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: false, type: () => String }, userKeyFieldId: { required: true, type: () => Number }, userKeyFieldUserKey: { required: false, type: () => String }, fields: { required: true, type: () => [require("./create-field-metadata.dto").CreateFieldMetadataDto] }, isSystem: { required: true, type: () => Boolean }, isChild: { required: true, type: () => Boolean }, parentModelId: { required: true, type: () => Number }, parentModelUserKey: { required: true, type: () => String } };
|
|
30
|
+
return { singularName: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, tableName: { required: false, type: () => String, pattern: "/[a-z]+(_[a-z]+)*/" }, pluralName: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, displayName: { required: true, type: () => String }, description: { required: true, type: () => String }, dataSource: { required: true, type: () => String }, dataSourceType: { required: true, type: () => String }, enableSoftDelete: { required: true, type: () => Boolean }, enableAuditTracking: { required: true, type: () => Boolean }, internationalisation: { required: true, type: () => Boolean }, draftPublishWorkflow: { required: true, type: () => Boolean }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: false, type: () => String }, userKeyFieldId: { required: true, type: () => Number }, userKeyFieldUserKey: { required: false, type: () => String }, fields: { required: true, type: () => [require("./create-field-metadata.dto").CreateFieldMetadataDto] }, isSystem: { required: true, type: () => Boolean }, isChild: { required: true, type: () => Boolean }, parentModelId: { required: true, type: () => Number }, parentModelUserKey: { required: true, type: () => String } };
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.CreateModelMetadataDto = CreateModelMetadataDto;
|
|
@@ -85,10 +85,15 @@ __decorate([
|
|
|
85
85
|
__metadata("design:type", Boolean)
|
|
86
86
|
], CreateModelMetadataDto.prototype, "enableAuditTracking", void 0);
|
|
87
87
|
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)({ description: "
|
|
88
|
+
(0, swagger_1.ApiProperty)({ description: "Internationalisation" }),
|
|
89
89
|
(0, class_validator_1.IsBoolean)(),
|
|
90
90
|
__metadata("design:type", Boolean)
|
|
91
91
|
], CreateModelMetadataDto.prototype, "internationalisation", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({ description: "Draft publish workflow" }),
|
|
94
|
+
(0, class_validator_1.IsBoolean)(),
|
|
95
|
+
__metadata("design:type", Boolean)
|
|
96
|
+
], CreateModelMetadataDto.prototype, "draftPublishWorkflow", void 0);
|
|
92
97
|
__decorate([
|
|
93
98
|
(0, swagger_1.ApiProperty)({ description: "Related module id" }),
|
|
94
99
|
(0, class_validator_1.IsInt)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/create-model-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAA2G;AAC3G,2EAAqE;AACrE,qFAAsE;AACtE,8DAAqE;AAErE,IAAY,cAUX;AAVD,WAAY,cAAc;IAKtB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACvB,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;AAED,MAAa,sBAAsB;;;;
|
|
1
|
+
{"version":3,"file":"create-model-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/create-model-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAA2G;AAC3G,2EAAqE;AACrE,qFAAsE;AACtE,8DAAqE;AAErE,IAAY,cAUX;AAVD,WAAY,cAAc;IAKtB,iCAAe,CAAA;IACf,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACvB,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;AAED,MAAa,sBAAsB;;;;CA+FlC;AA/FD,wDA+FC;AAzFY;IALR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAC1D,IAAA,yBAAO,EAAC,kBAAkB,EAAE;QACzB,OAAO,EAAE,2EAA2E;KACvF,CAAC;IACD,IAAA,sCAAW,EAAC,wCAAuB,CAAC;;4DACP;AAOrB;IALR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACnD,IAAA,yBAAO,EAAC,kBAAkB,EAAE;QACzB,OAAO,EAAE,sEAAsE;KAClF,CAAC;IACD,IAAA,4BAAU,GAAE;;yDACe;AAMnB;IAJR,IAAA,qBAAW,EAAC,EAAE,W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D,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;8DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACgB;AAM7B;IAJC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IACjE,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kDAAsB,CAAC;;sDACF;AAIjC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4HAA4H,GAAG,CAAC;IAC3J,IAAA,2BAAS,GAAE;;wDACM;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0HAA0H,GAAG,CAAC;IACzJ,IAAA,2BAAS,GAAE;;uDACK;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC/C,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;6DACS;AAKtB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACrD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-locale.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-locale.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAGxB,EAAE,EAAE,MAAM,CAAC;IAKX,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,SAAS,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.UpdateLocaleDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
class UpdateLocaleDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, locale: { required: true, type: () => String }, displayName: { required: true, type: () => String }, isDefault: { required: true, type: () => Boolean } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateLocaleDto = UpdateLocaleDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateLocaleDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateLocaleDto.prototype, "locale", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateLocaleDto.prototype, "displayName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsBoolean)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], UpdateLocaleDto.prototype, "isDefault", void 0);
|
|
48
|
+
//# sourceMappingURL=update-locale.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-locale.dto.js","sourceRoot":"","sources":["../../src/dtos/update-locale.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAqF;AACrF,6CAA8C;AAE9C,MAAa,eAAe;;;;CAmB3B;AAnBD,0CAmBC;AAhBG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;2CACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+CACC;AAKf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;kDACK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"AAGA,8BAAsB,YAAY;IAE9B,EAAE,EAAE,MAAM,CAAA;IAGV,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,IAAI,CAAC;IAGlB,UAAU,EAAE,MAAM,CAAC;IAGnB,qBAAqB,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
class CommonEntity {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { id: { required: true, type: () => Number }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String } };
|
|
17
|
+
return { id: { required: true, type: () => Number }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String }, publishedAt: { required: true, type: () => Date }, localeName: { required: true, type: () => String }, defaultEntityLocaleId: { required: true, type: () => Number } };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.CommonEntity = CommonEntity;
|
|
@@ -38,4 +38,16 @@ __decorate([
|
|
|
38
38
|
(0, typeorm_1.Column)({ name: "deletedTracker", default: "not-deleted" }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], CommonEntity.prototype, "deletedTracker", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "timestamp", name: 'published_at', default: null, nullable: true }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], CommonEntity.prototype, "publishedAt", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", name: 'locale_name', default: null }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CommonEntity.prototype, "localeName", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", name: 'default_entity_locale_id', default: null }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CommonEntity.prototype, "defaultEntityLocaleId", void 0);
|
|
41
53
|
//# sourceMappingURL=common.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA4I;AAG5I,MAAsB,YAAY;;;;CAwBjC;AAxBD,oCAwBC;AAtBG;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wCAClC;AAGV;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACjD,IAAI;+CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;;oDACpC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACrE,IAAI;iDAAC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAC7C;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2DAC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.entity.d.ts","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,qBACa,MAAO,SAAQ,YAAY;IAGpC,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,OAAO,CAAQ;CAC7B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 openapi = require("@nestjs/swagger");
|
|
14
|
+
const common_entity_1 = require("./common.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let Locale = class Locale extends common_entity_1.CommonEntity {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.isDefault = true;
|
|
20
|
+
}
|
|
21
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
+
return { locale: { required: true, type: () => String }, displayName: { required: true, type: () => String }, isDefault: { required: true, type: () => Boolean, default: true } };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.Locale = Locale;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
28
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Locale.prototype, "locale", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Locale.prototype, "displayName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Index)(),
|
|
37
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], Locale.prototype, "isDefault", void 0);
|
|
40
|
+
exports.Locale = Locale = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)("ss_locale")
|
|
42
|
+
], Locale);
|
|
43
|
+
//# sourceMappingURL=locale.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.entity.js","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAA2D;AAGpD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,4BAAY;IAAjC;;QAQH,cAAS,GAAY,IAAI,CAAC;KAC7B;;iLADwB,IAAI;;CAC5B,CAAA;AATY,wBAAM;AAGf;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sCACb;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACR;AAGpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACjB;iBARjB,MAAM;IADlB,IAAA,gBAAM,EAAC,WAAW,CAAC;GACP,MAAM,CASlB"}
|
|
@@ -12,6 +12,7 @@ export declare class ModelMetadata extends CommonEntity {
|
|
|
12
12
|
enableSoftDelete: boolean;
|
|
13
13
|
enableAuditTracking: boolean;
|
|
14
14
|
internationalisation: boolean;
|
|
15
|
+
draftPublishWorkflow: boolean;
|
|
15
16
|
fields: FieldMetadata[];
|
|
16
17
|
module: ModuleMetadata;
|
|
17
18
|
userKeyField: FieldMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-metadata.entity.d.ts","sourceRoot":"","sources":["../../src/entities/model-metadata.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBACa,aAAc,SAAQ,YAAY;IAG3C,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAInB,cAAc,EAAE,MAAM,CAAC;IAGvB,gBAAgB,EAAE,OAAO,CAAC;IAG1B,mBAAmB,EAAE,OAAO,CAAC;IAG7B,oBAAoB,EAAE,OAAO,CAAC;IAG9B,MAAM,EAAE,aAAa,EAAE,CAA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