@solidstarters/solid-core 1.2.51 → 1.2.53
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/list-of-values.controller.d.ts +41 -0
- package/dist/controllers/list-of-values.controller.d.ts.map +1 -0
- package/dist/controllers/list-of-values.controller.js +179 -0
- package/dist/controllers/list-of-values.controller.js.map +1 -0
- package/dist/controllers/saved-filters.controller.d.ts +41 -0
- package/dist/controllers/saved-filters.controller.d.ts.map +1 -0
- package/dist/controllers/saved-filters.controller.js +179 -0
- package/dist/controllers/saved-filters.controller.js.map +1 -0
- package/dist/dtos/create-field-metadata.dto.d.ts +1 -0
- package/dist/dtos/create-field-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-field-metadata.dto.js +6 -1
- package/dist/dtos/create-field-metadata.dto.js.map +1 -1
- package/dist/dtos/create-list-of-values.dto.d.ts +6 -6
- package/dist/dtos/create-list-of-values.dto.d.ts.map +1 -1
- package/dist/dtos/create-list-of-values.dto.js +24 -7
- package/dist/dtos/create-list-of-values.dto.js.map +1 -1
- package/dist/dtos/create-saved-filters.dto.d.ts +12 -0
- package/dist/dtos/create-saved-filters.dto.d.ts.map +1 -0
- package/dist/dtos/create-saved-filters.dto.js +80 -0
- package/dist/dtos/create-saved-filters.dto.js.map +1 -0
- package/dist/dtos/update-list-of-values.dto.d.ts +10 -0
- package/dist/dtos/update-list-of-values.dto.d.ts.map +1 -0
- package/dist/dtos/update-list-of-values.dto.js +67 -0
- package/dist/dtos/update-list-of-values.dto.js.map +1 -0
- package/dist/dtos/update-saved-filters.dto.d.ts +13 -0
- package/dist/dtos/update-saved-filters.dto.d.ts.map +1 -0
- package/dist/dtos/update-saved-filters.dto.js +82 -0
- package/dist/dtos/update-saved-filters.dto.js.map +1 -0
- package/dist/entities/field-metadata.entity.d.ts +1 -0
- package/dist/entities/field-metadata.entity.d.ts.map +1 -1
- package/dist/entities/field-metadata.entity.js +5 -1
- package/dist/entities/field-metadata.entity.js.map +1 -1
- package/dist/entities/list-of-values.entity.d.ts +1 -1
- package/dist/entities/list-of-values.entity.d.ts.map +1 -1
- package/dist/entities/list-of-values.entity.js +11 -7
- package/dist/entities/list-of-values.entity.js.map +1 -1
- package/dist/entities/saved-filters.entity.d.ts +13 -0
- package/dist/entities/saved-filters.entity.d.ts.map +1 -0
- package/dist/entities/saved-filters.entity.js +59 -0
- package/dist/entities/saved-filters.entity.js.map +1 -0
- package/dist/helpers/schematic.service.d.ts +1 -0
- package/dist/helpers/schematic.service.d.ts.map +1 -1
- package/dist/helpers/schematic.service.js +3 -0
- package/dist/helpers/schematic.service.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/list-of-values-selection-providers.service.js +2 -2
- package/dist/providers/list-of-values-selection-providers.service.js.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts +6 -2
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +24 -8
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +1400 -332
- package/dist/services/field-metadata.service.d.ts.map +1 -1
- package/dist/services/field-metadata.service.js +1 -0
- package/dist/services/field-metadata.service.js.map +1 -1
- package/dist/services/list-of-values.service.d.ts +21 -10
- package/dist/services/list-of-values.service.d.ts.map +1 -1
- package/dist/services/list-of-values.service.js +43 -31
- package/dist/services/list-of-values.service.js.map +1 -1
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +18 -4
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/saved-filters.service.d.ts +22 -0
- package/dist/services/saved-filters.service.d.ts.map +1 -0
- package/dist/services/saved-filters.service.js +56 -0
- package/dist/services/saved-filters.service.js.map +1 -0
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +12 -0
- package/dist/solid-core.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/controllers/list-of-values.controller.ts +93 -0
- package/src/controllers/saved-filters.controller.ts +93 -0
- package/src/dtos/create-field-metadata.dto.ts +6 -1
- package/src/dtos/create-list-of-values.dto.ts +27 -19
- package/src/dtos/create-saved-filters.dto.ts +42 -0
- package/src/dtos/update-list-of-values.dto.ts +36 -0
- package/src/dtos/update-saved-filters.dto.ts +45 -0
- package/src/entities/field-metadata.entity.ts +6 -0
- package/src/entities/list-of-values.entity.ts +9 -14
- package/src/entities/saved-filters.entity.ts +24 -0
- package/src/helpers/schematic.service.ts +5 -0
- package/src/index.ts +2 -0
- package/src/providers/list-of-values-selection-providers.service.ts +2 -2
- package/src/seeders/module-metadata-seeder.service.ts +22 -3
- package/src/seeders/seed-data/solid-core-metadata.json +1646 -578
- package/src/services/field-metadata.service.ts +9 -8
- package/src/services/list-of-values.service.ts +55 -47
- package/src/services/model-metadata.service.ts +19 -4
- package/src/services/saved-filters.service.ts +34 -0
- package/src/solid-core.module.ts +12 -0
|
@@ -12,34 +12,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateListOfValuesDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const class_validator_2 = require("class-validator");
|
|
15
17
|
class CreateListOfValuesDto {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.default = false;
|
|
20
|
+
}
|
|
16
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { type: { required: true, type: () => String }, value: { required: true, type: () => String }, display: { required: true, type: () => String }, description: { required: true, type: () => String }, default: { required: true, type: () => Boolean }, sequence: { required: true, type: () => Number } };
|
|
22
|
+
return { type: { required: true, type: () => String }, value: { required: true, type: () => String }, display: { required: true, type: () => String }, description: { required: true, type: () => String }, default: { required: true, type: () => Boolean, default: false }, sequence: { required: true, type: () => Number } };
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
exports.CreateListOfValuesDto = CreateListOfValuesDto;
|
|
21
26
|
__decorate([
|
|
22
|
-
(0,
|
|
27
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
30
|
__metadata("design:type", String)
|
|
24
31
|
], CreateListOfValuesDto.prototype, "type", void 0);
|
|
25
32
|
__decorate([
|
|
26
|
-
(0,
|
|
33
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
36
|
__metadata("design:type", String)
|
|
28
37
|
], CreateListOfValuesDto.prototype, "value", void 0);
|
|
29
38
|
__decorate([
|
|
30
|
-
(0,
|
|
39
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
42
|
__metadata("design:type", String)
|
|
32
43
|
], CreateListOfValuesDto.prototype, "display", void 0);
|
|
33
44
|
__decorate([
|
|
34
|
-
(0,
|
|
45
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
48
|
__metadata("design:type", String)
|
|
36
49
|
], CreateListOfValuesDto.prototype, "description", void 0);
|
|
37
50
|
__decorate([
|
|
38
|
-
(0,
|
|
51
|
+
(0, class_validator_2.IsOptional)(),
|
|
52
|
+
(0, class_validator_2.IsBoolean)(),
|
|
53
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
54
|
__metadata("design:type", Boolean)
|
|
40
55
|
], CreateListOfValuesDto.prototype, "default", void 0);
|
|
41
56
|
__decorate([
|
|
42
|
-
(0,
|
|
57
|
+
(0, class_validator_2.IsOptional)(),
|
|
58
|
+
(0, class_validator_2.IsInt)(),
|
|
59
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
60
|
__metadata("design:type", Number)
|
|
44
61
|
], CreateListOfValuesDto.prototype, "sequence", void 0);
|
|
45
62
|
//# sourceMappingURL=create-list-of-values.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-list-of-values.dto.js","sourceRoot":"","sources":["../../src/dtos/create-list-of-values.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;
|
|
1
|
+
{"version":3,"file":"create-list-of-values.dto.js","sourceRoot":"","sources":["../../src/dtos/create-list-of-values.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAA2E;AAE3E,MAAa,qBAAqB;IAAlC;QAoBI,YAAO,GAAY,KAAK,CAAC;KAK5B;;6QALsB,KAAK;;CAK3B;AAzBD,sDAyBC;AArBG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACA;AAId;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACE;AAIhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;sDACW;AAIzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class CreateSavedFiltersDto {
|
|
2
|
+
filterQueryJson: string;
|
|
3
|
+
name: string;
|
|
4
|
+
isPrivate: boolean;
|
|
5
|
+
userId: number;
|
|
6
|
+
userUserKey: string;
|
|
7
|
+
modelId: number;
|
|
8
|
+
modelUserKey: string;
|
|
9
|
+
viewId: number;
|
|
10
|
+
viewUserKey: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=create-saved-filters.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-saved-filters.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-saved-filters.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,qBAAqB;IAI9B,eAAe,EAAE,MAAM,CAAC;IAIxB,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,OAAO,CAAS;IAI3B,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAIpB,OAAO,EAAE,MAAM,CAAC;IAIhB,YAAY,EAAE,MAAM,CAAC;IAIrB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.CreateSavedFiltersDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const class_validator_2 = require("class-validator");
|
|
17
|
+
class CreateSavedFiltersDto {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.isPrivate = false;
|
|
20
|
+
}
|
|
21
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
+
return { filterQueryJson: { required: true, type: () => String }, name: { required: true, type: () => String }, isPrivate: { required: true, type: () => Boolean, default: false }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, modelId: { required: true, type: () => Number }, modelUserKey: { required: true, type: () => String }, viewId: { required: true, type: () => Number }, viewUserKey: { required: true, type: () => String } };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.CreateSavedFiltersDto = CreateSavedFiltersDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_2.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiProperty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateSavedFiltersDto.prototype, "filterQueryJson", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateSavedFiltersDto.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_2.IsOptional)(),
|
|
40
|
+
(0, class_validator_2.IsBoolean)(),
|
|
41
|
+
(0, swagger_1.ApiProperty)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateSavedFiltersDto.prototype, "isPrivate", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_2.IsOptional)(),
|
|
46
|
+
(0, class_validator_2.IsInt)(),
|
|
47
|
+
(0, swagger_1.ApiProperty)({ description: "This is the user id field" }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], CreateSavedFiltersDto.prototype, "userId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_2.IsOptional)(),
|
|
53
|
+
(0, swagger_1.ApiProperty)({ description: "This is the user id field" }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreateSavedFiltersDto.prototype, "userUserKey", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_2.IsOptional)(),
|
|
58
|
+
(0, class_validator_2.IsInt)(),
|
|
59
|
+
(0, swagger_1.ApiProperty)({ description: "This is the model related to saved filter." }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], CreateSavedFiltersDto.prototype, "modelId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_2.IsOptional)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)({ description: "This is the model related to saved filter." }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CreateSavedFiltersDto.prototype, "modelUserKey", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_2.IsOptional)(),
|
|
70
|
+
(0, class_validator_2.IsInt)(),
|
|
71
|
+
(0, swagger_1.ApiProperty)({ description: "This is the view related to saved filter." }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], CreateSavedFiltersDto.prototype, "viewId", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_2.IsOptional)(),
|
|
77
|
+
(0, swagger_1.ApiProperty)({ description: "This is the view related to saved filter." }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateSavedFiltersDto.prototype, "viewUserKey", void 0);
|
|
80
|
+
//# sourceMappingURL=create-saved-filters.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-saved-filters.dto.js","sourceRoot":"","sources":["../../src/dtos/create-saved-filters.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAA2E;AAE3E,MAAa,qBAAqB;IAAlC;QAYI,cAAS,GAAY,KAAK,CAAC;KAyB9B;;mLAzBwB,KAAK;;CAyB7B;AArCD,sDAqCC;AAjCG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8DACU;AAIxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;wDACa;AAI3B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;qDAC3C;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;0DACtC;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;sDAC3D;AAIhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;2DACtD;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;;qDAC3D;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;;0DACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-list-of-values.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-list-of-values.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAG9B,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,OAAO,EAAE,MAAM,CAAC;IAKhB,WAAW,EAAE,MAAM,CAAC;IAIpB,OAAO,EAAE,OAAO,CAAC;IAIjB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.UpdateListOfValuesDto = 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 UpdateListOfValuesDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, type: { required: true, type: () => String }, value: { required: true, type: () => String }, display: { required: true, type: () => String }, description: { required: true, type: () => String }, default: { required: true, type: () => Boolean }, sequence: { required: true, type: () => Number } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateListOfValuesDto = UpdateListOfValuesDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateListOfValuesDto.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
|
+
], UpdateListOfValuesDto.prototype, "type", 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
|
+
], UpdateListOfValuesDto.prototype, "value", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UpdateListOfValuesDto.prototype, "display", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, swagger_1.ApiProperty)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpdateListOfValuesDto.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsBoolean)(),
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], UpdateListOfValuesDto.prototype, "default", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsInt)(),
|
|
64
|
+
(0, swagger_1.ApiProperty)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], UpdateListOfValuesDto.prototype, "sequence", void 0);
|
|
67
|
+
//# sourceMappingURL=update-list-of-values.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-list-of-values.dto.js","sourceRoot":"","sources":["../../src/dtos/update-list-of-values.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAoF;AACpF,6CAA8C;AAE9C,MAAa,qBAAqB;;;;CAgCjC;AAhCD,sDAgCC;AA7BG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAKb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACA;AAKd;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;sDACG;AAIjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class UpdateSavedFiltersDto {
|
|
2
|
+
id: number;
|
|
3
|
+
filterQueryJson: string;
|
|
4
|
+
name: string;
|
|
5
|
+
isPrivate: boolean;
|
|
6
|
+
userId: number;
|
|
7
|
+
userUserKey: string;
|
|
8
|
+
modelId: number;
|
|
9
|
+
modelUserKey: string;
|
|
10
|
+
viewId: number;
|
|
11
|
+
viewUserKey: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=update-saved-filters.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-saved-filters.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-saved-filters.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAG9B,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,EAAE,MAAM,CAAC;IAKxB,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,OAAO,CAAC;IAInB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAIpB,OAAO,EAAE,MAAM,CAAC;IAIhB,YAAY,EAAE,MAAM,CAAC;IAIrB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.UpdateSavedFiltersDto = 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 UpdateSavedFiltersDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, filterQueryJson: { required: true, type: () => String }, name: { required: true, type: () => String }, isPrivate: { required: true, type: () => Boolean }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, modelId: { required: true, type: () => Number }, modelUserKey: { required: true, type: () => String }, viewId: { required: true, type: () => Number }, viewUserKey: { required: true, type: () => String } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateSavedFiltersDto = UpdateSavedFiltersDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateSavedFiltersDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateSavedFiltersDto.prototype, "filterQueryJson", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UpdateSavedFiltersDto.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], UpdateSavedFiltersDto.prototype, "isPrivate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsInt)(),
|
|
49
|
+
(0, swagger_1.ApiProperty)({ description: "This is the user id field" }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], UpdateSavedFiltersDto.prototype, "userId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)({ description: "This is the user id field" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], UpdateSavedFiltersDto.prototype, "userUserKey", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsInt)(),
|
|
61
|
+
(0, swagger_1.ApiProperty)({ description: "This is the model related to saved filter." }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], UpdateSavedFiltersDto.prototype, "modelId", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, swagger_1.ApiProperty)({ description: "This is the model related to saved filter." }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], UpdateSavedFiltersDto.prototype, "modelUserKey", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsInt)(),
|
|
73
|
+
(0, swagger_1.ApiProperty)({ description: "This is the view related to saved filter." }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], UpdateSavedFiltersDto.prototype, "viewId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, swagger_1.ApiProperty)({ description: "This is the view related to saved filter." }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], UpdateSavedFiltersDto.prototype, "viewUserKey", void 0);
|
|
82
|
+
//# sourceMappingURL=update-saved-filters.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-saved-filters.dto.js","sourceRoot":"","sources":["../../src/dtos/update-saved-filters.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAoF;AACpF,6CAA8C;AAE9C,MAAa,qBAAqB;;;;CAyCjC;AAzCD,sDAyCC;AAtCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8DACU;AAKxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mDACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;wDACK;AAInB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;qDAC3C;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;0DACtC;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;sDAC3D;AAIhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;2DACtD;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;;qDAC3D;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;;0DACtD"}
|
|
@@ -31,6 +31,7 @@ export declare class FieldMetadata extends CommonEntity {
|
|
|
31
31
|
relationModelModuleName: string;
|
|
32
32
|
relationCoModelFieldName: string;
|
|
33
33
|
isRelationManyToManyOwner: boolean;
|
|
34
|
+
relationFieldFixedFilter: string;
|
|
34
35
|
selectionDynamicProvider: string;
|
|
35
36
|
selectionDynamicProviderCtxt: string;
|
|
36
37
|
selectionStaticValues: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-metadata.entity.d.ts","sourceRoot":"","sources":["../../src/entities/field-metadata.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,O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BAAsB,EAAE,MAAM,CAAC;IAG/B,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAGlB,kBAAkB,EAAE,OAAO,CAAC;IAG5B,UAAU,EAAE,MAAM,CAAC;IAGnB,yBAAyB,EAAE,MAAM,CAAC;IAGlC,SAAS,EAAE,OAAO,CAAC;IAGnB,qBAAqB,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -21,7 +21,7 @@ let FieldMetadata = class FieldMetadata extends common_entity_1.CommonEntity {
|
|
|
21
21
|
this.selectionValueType = 'string';
|
|
22
22
|
}
|
|
23
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, description: { required: true, type: () => String }, type: { required: true, type: () => String }, ormType: { required: true, type: () => String }, model: { required: true, type: () => require("./model-metadata.entity").ModelMetadata }, defaultValue: { required: true, type: () => String }, regexPattern: { required: true, type: () => String }, regexPatternNotMatchingErrorMsg: { required: true, type: () => String }, required: { required: true, type: () => Boolean }, unique: { required: true, type: () => Boolean }, encrypt: { required: true, type: () => Boolean }, encryptionType: { required: true, type: () => String }, decryptWhen: { required: true, type: () => String }, index: { required: true, type: () => Boolean }, length: { required: true, type: () => Number }, max: { required: true, type: () => Number }, min: { required: true, type: () => Number }, private: { required: true, type: () => Boolean }, mediaTypes: { required: true, type: () => [String] }, mediaMaxSizeKb: { required: true, type: () => Number }, mediaStorageProvider: { required: true, type: () => require("./media-storage-provider-metadata.entity").MediaStorageProviderMetadata }, relationType: { required: true, type: () => String }, relationCoModelSingularName: { required: true, type: () => String }, relationCreateInverse: { required: true, type: () => Boolean }, relationCascade: { required: true, type: () => String }, relationModelModuleName: { required: true, type: () => String }, relationCoModelFieldName: { required: true, type: () => String }, isRelationManyToManyOwner: { required: true, type: () => Boolean }, selectionDynamicProvider: { required: true, type: () => String }, selectionDynamicProviderCtxt: { required: true, type: () => String }, selectionStaticValues: { required: true, type: () => [String] }, selectionValueType: { required: true, type: () => String, default: "string" }, computedFieldValueProvider: { required: true, type: () => String }, computedFieldValueProviderCtxt: { required: true, type: () => String }, computedFieldValueType: { required: true, type: () => String }, uuid: { required: true, type: () => String }, isSystem: { required: true, type: () => Boolean }, isMarkedForRemoval: { required: true, type: () => Boolean }, columnName: { required: true, type: () => String }, relationCoModelColumnName: { required: true, type: () => String }, isUserKey: { required: true, type: () => Boolean }, relationJoinTableName: { required: true, type: () => String } };
|
|
24
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, description: { required: true, type: () => String }, type: { required: true, type: () => String }, ormType: { required: true, type: () => String }, model: { required: true, type: () => require("./model-metadata.entity").ModelMetadata }, defaultValue: { required: true, type: () => String }, regexPattern: { required: true, type: () => String }, regexPatternNotMatchingErrorMsg: { required: true, type: () => String }, required: { required: true, type: () => Boolean }, unique: { required: true, type: () => Boolean }, encrypt: { required: true, type: () => Boolean }, encryptionType: { required: true, type: () => String }, decryptWhen: { required: true, type: () => String }, index: { required: true, type: () => Boolean }, length: { required: true, type: () => Number }, max: { required: true, type: () => Number }, min: { required: true, type: () => Number }, private: { required: true, type: () => Boolean }, mediaTypes: { required: true, type: () => [String] }, mediaMaxSizeKb: { required: true, type: () => Number }, mediaStorageProvider: { required: true, type: () => require("./media-storage-provider-metadata.entity").MediaStorageProviderMetadata }, relationType: { required: true, type: () => String }, relationCoModelSingularName: { required: true, type: () => String }, relationCreateInverse: { required: true, type: () => Boolean }, relationCascade: { required: true, type: () => String }, relationModelModuleName: { required: true, type: () => String }, relationCoModelFieldName: { required: true, type: () => String }, isRelationManyToManyOwner: { required: true, type: () => Boolean }, relationFieldFixedFilter: { required: true, type: () => String }, selectionDynamicProvider: { required: true, type: () => String }, selectionDynamicProviderCtxt: { required: true, type: () => String }, selectionStaticValues: { required: true, type: () => [String] }, selectionValueType: { required: true, type: () => String, default: "string" }, computedFieldValueProvider: { required: true, type: () => String }, computedFieldValueProviderCtxt: { required: true, type: () => String }, computedFieldValueType: { required: true, type: () => String }, uuid: { required: true, type: () => String }, isSystem: { required: true, type: () => Boolean }, isMarkedForRemoval: { required: true, type: () => Boolean }, columnName: { required: true, type: () => String }, relationCoModelColumnName: { required: true, type: () => String }, isUserKey: { required: true, type: () => Boolean }, relationJoinTableName: { required: true, type: () => String } };
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
exports.FieldMetadata = FieldMetadata;
|
|
@@ -144,6 +144,10 @@ __decorate([
|
|
|
144
144
|
(0, typeorm_1.Column)({ name: 'is_relation_many_to_many_owner', nullable: true }),
|
|
145
145
|
__metadata("design:type", Boolean)
|
|
146
146
|
], FieldMetadata.prototype, "isRelationManyToManyOwner", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ name: 'relation_Field_Fixed_Filter', nullable: true }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], FieldMetadata.prototype, "relationFieldFixedFilter", void 0);
|
|
147
151
|
__decorate([
|
|
148
152
|
(0, typeorm_1.Column)({ name: 'selection_dynamic_provider', nullable: true }),
|
|
149
153
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-metadata.entity.js","sourceRoot":"","sources":["../../src/entities/field-metadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAuE;AACvE,qGAAwF;AACxF,mEAAwD;AAGjD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;
|
|
1
|
+
{"version":3,"file":"field-metadata.entity.js","sourceRoot":"","sources":["../../src/entities/field-metadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAuE;AACvE,qGAAwF;AACxF,mEAAwD;AAGjD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QAkHH,uBAAkB,GAAW,QAAQ,CAAC;KAkCzC;;;;CAAA,CAAA;AApJY,sCAAa;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AE,YAAY,EAAE,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"list-of-values.entity.d.ts","sourceRoot":"","sources":["../../src/entities/list-of-values.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,qBACa,YAAa,SAAQ,YAAY;IAE1C,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,MAAM,CAAC;IAEpB,OAAO,EAAE,OAAO,CAAS;IAEzB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -14,33 +14,37 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const common_entity_1 = require("./common.entity");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
let ListOfValues = class ListOfValues extends common_entity_1.CommonEntity {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.default = false;
|
|
20
|
+
}
|
|
17
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { type: { required: true, type: () => String }, value: { required: true, type: () => String }, display: { required: true, type: () => String }, description: { required: true, type: () => String }, default: { required: true, type: () => Boolean }, sequence: { required: true, type: () => Number } };
|
|
22
|
+
return { type: { required: true, type: () => String }, value: { required: true, type: () => String }, display: { required: true, type: () => String }, description: { required: true, type: () => String }, default: { required: true, type: () => Boolean, default: false }, sequence: { required: true, type: () => Number } };
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
exports.ListOfValues = ListOfValues;
|
|
22
26
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({
|
|
27
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
24
28
|
__metadata("design:type", String)
|
|
25
29
|
], ListOfValues.prototype, "type", void 0);
|
|
26
30
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
28
32
|
__metadata("design:type", String)
|
|
29
33
|
], ListOfValues.prototype, "value", void 0);
|
|
30
34
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
32
36
|
__metadata("design:type", String)
|
|
33
37
|
], ListOfValues.prototype, "display", void 0);
|
|
34
38
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
36
40
|
__metadata("design:type", String)
|
|
37
41
|
], ListOfValues.prototype, "description", void 0);
|
|
38
42
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({
|
|
43
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true, default: false }),
|
|
40
44
|
__metadata("design:type", Boolean)
|
|
41
45
|
], ListOfValues.prototype, "default", void 0);
|
|
42
46
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({
|
|
47
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
44
48
|
__metadata("design:type", Number)
|
|
45
49
|
], ListOfValues.prototype, "sequence", void 0);
|
|
46
50
|
exports.ListOfValues = ListOfValues = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-of-values.entity.js","sourceRoot":"","sources":["../../src/entities/list-of-values.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"list-of-values.entity.js","sourceRoot":"","sources":["../../src/entities/list-of-values.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAsC;AAG/B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QAUH,YAAO,GAAY,KAAK,CAAC;KAG5B;;6QAHsB,KAAK;;CAG3B,CAAA;AAbY,oCAAY;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACd;AAEd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACZ;AAEhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACnC;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACvB;uBAZR,YAAY;IADxB,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,YAAY,CAaxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonEntity } from 'src/entities/common.entity';
|
|
2
|
+
import { User } from 'src/entities/user.entity';
|
|
3
|
+
import { ModelMetadata } from 'src/entities/model-metadata.entity';
|
|
4
|
+
import { ViewMetadata } from 'src/entities/view-metadata.entity';
|
|
5
|
+
export declare class SavedFilters extends CommonEntity {
|
|
6
|
+
filterQueryJson: string;
|
|
7
|
+
name: string;
|
|
8
|
+
isPrivate: boolean;
|
|
9
|
+
user: User;
|
|
10
|
+
model: ModelMetadata;
|
|
11
|
+
view: ViewMetadata;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=saved-filters.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saved-filters.entity.d.ts","sourceRoot":"","sources":["../../src/entities/saved-filters.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEhE,qBACa,YAAa,SAAQ,YAAY;IAE1C,eAAe,EAAE,MAAM,CAAC;IAExB,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,EAAE,OAAO,CAAS;IAG3B,IAAI,EAAE,IAAI,CAAC;IAGX,KAAK,EAAE,aAAa,CAAC;IAGrB,IAAI,EAAE,YAAY,CAAC;CACtB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.SavedFilters = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const common_entity_1 = require("./common.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
const model_metadata_entity_1 = require("./model-metadata.entity");
|
|
18
|
+
const view_metadata_entity_1 = require("./view-metadata.entity");
|
|
19
|
+
let SavedFilters = class SavedFilters extends common_entity_1.CommonEntity {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.isPrivate = false;
|
|
23
|
+
}
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return { filterQueryJson: { required: true, type: () => String }, name: { required: true, type: () => String }, isPrivate: { required: true, type: () => Boolean, default: false }, user: { required: true, type: () => require("./user.entity").User }, model: { required: true, type: () => require("./model-metadata.entity").ModelMetadata }, view: { required: true, type: () => require("./view-metadata.entity").ViewMetadata } };
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.SavedFilters = SavedFilters;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SavedFilters.prototype, "filterQueryJson", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SavedFilters.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true, default: false }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], SavedFilters.prototype, "isPrivate", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "RESTRICT", nullable: false }),
|
|
43
|
+
(0, typeorm_1.JoinColumn)(),
|
|
44
|
+
__metadata("design:type", user_entity_1.User)
|
|
45
|
+
], SavedFilters.prototype, "user", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => model_metadata_entity_1.ModelMetadata, { onDelete: "RESTRICT", nullable: false }),
|
|
48
|
+
(0, typeorm_1.JoinColumn)(),
|
|
49
|
+
__metadata("design:type", model_metadata_entity_1.ModelMetadata)
|
|
50
|
+
], SavedFilters.prototype, "model", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(() => view_metadata_entity_1.ViewMetadata, { onDelete: "RESTRICT", nullable: false }),
|
|
53
|
+
(0, typeorm_1.JoinColumn)(),
|
|
54
|
+
__metadata("design:type", view_metadata_entity_1.ViewMetadata)
|
|
55
|
+
], SavedFilters.prototype, "view", void 0);
|
|
56
|
+
exports.SavedFilters = SavedFilters = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)("ss_saved_fitlers")
|
|
58
|
+
], SavedFilters);
|
|
59
|
+
//# sourceMappingURL=saved-filters.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saved-filters.entity.js","sourceRoot":"","sources":["../../src/entities/saved-filters.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAA8D;AAC9D,+CAAgD;AAChD,mEAAmE;AACnE,iEAAgE;AAGzD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QAMH,cAAS,GAAY,KAAK,CAAC;KAU9B;;mLAVwB,KAAK;;CAU7B,CAAA;AAhBY,oCAAY;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACjB;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACjC;AAG3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChE,IAAA,oBAAU,GAAE;8BACP,kBAAI;0CAAC;AAGX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzE,IAAA,oBAAU,GAAE;8BACN,qCAAa;2CAAC;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxE,IAAA,oBAAU,GAAE;8BACP,mCAAY;0CAAC;uBAfV,YAAY;IADxB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,YAAY,CAgBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematic.service.d.ts","sourceRoot":"","sources":["../../src/helpers/schematic.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,qBAAqB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"schematic.service.d.ts","sourceRoot":"","sources":["../../src/helpers/schematic.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AAUrD,qBACa,gBAAgB;IAGf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAC5D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuC;gBAC5C,cAAc,EAAE,cAAc;IAErD,uBAAuB,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,qBAAqB,GAAG,YAAY,EAC7C,KAAK,UAAQ,GACZ,OAAO,CAAC,MAAM,CAAC;IAMlB,OAAO,CAAC,wBAAwB;CAuDjC"}
|
|
@@ -51,6 +51,9 @@ let SchematicService = SchematicService_1 = class SchematicService {
|
|
|
51
51
|
if (fieldOptions.modelEnableSoftDelete) {
|
|
52
52
|
modelCommand += ` --model-enable-soft-delete=${fieldOptions.modelEnableSoftDelete}`;
|
|
53
53
|
}
|
|
54
|
+
if (fieldOptions.parentModel) {
|
|
55
|
+
modelCommand += ` --parent-model=${fieldOptions.parentModel}`;
|
|
56
|
+
}
|
|
54
57
|
let fieldCommand = fieldOptions.fields
|
|
55
58
|
.filter((field) => {
|
|
56
59
|
return !Object.values(SYSTEM_FIELDS_TO_IGNORE_FOR_CODE_GENERATION).includes(field.name);
|