@comet/api-generator 8.11.0-canary-20251229095847 → 8.11.0-canary-20260105084630
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.
|
@@ -75,6 +75,18 @@ function generateCrudInput(generatorOptions_1, metadata_1) {
|
|
|
75
75
|
{ name: "PartialType", importPath: "@comet/cms-api" },
|
|
76
76
|
{ name: "BlockInputInterface", importPath: "@comet/cms-api" },
|
|
77
77
|
{ name: "isBlockInputInterface", importPath: "@comet/cms-api" },
|
|
78
|
+
{ name: "IsString", importPath: "class-validator" },
|
|
79
|
+
{ name: "IsNotEmpty", importPath: "class-validator" },
|
|
80
|
+
{ name: "ValidateNested", importPath: "class-validator" },
|
|
81
|
+
{ name: "IsNumber", importPath: "class-validator" },
|
|
82
|
+
{ name: "IsBoolean", importPath: "class-validator" },
|
|
83
|
+
{ name: "IsDate", importPath: "class-validator" },
|
|
84
|
+
{ name: "IsDateString", importPath: "class-validator" },
|
|
85
|
+
{ name: "IsOptional", importPath: "class-validator" },
|
|
86
|
+
{ name: "IsEnum", importPath: "class-validator" },
|
|
87
|
+
{ name: "IsUUID", importPath: "class-validator" },
|
|
88
|
+
{ name: "IsArray", importPath: "class-validator" },
|
|
89
|
+
{ name: "IsInt", importPath: "class-validator" },
|
|
78
90
|
];
|
|
79
91
|
for (const prop of props) {
|
|
80
92
|
let type = prop.type;
|
|
@@ -467,7 +479,6 @@ function generateCrudInput(generatorOptions_1, metadata_1) {
|
|
|
467
479
|
const className = (_m = options.className) !== null && _m !== void 0 ? _m : `${metadata.className}Input`;
|
|
468
480
|
const inputOut = `import { Field, InputType, ID, Int } from "@nestjs/graphql";
|
|
469
481
|
import { Transform, Type } from "class-transformer";
|
|
470
|
-
import { IsString, IsNotEmpty, ValidateNested, IsNumber, IsBoolean, IsDate, IsDateString, IsOptional, IsEnum, IsUUID, IsArray, IsInt } from "class-validator";
|
|
471
482
|
import { GraphQLJSONObject, GraphQLLocalDate } from "graphql-scalars";
|
|
472
483
|
${(0, generate_imports_code_1.generateImportsCode)(imports)}
|
|
473
484
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/api-generator",
|
|
3
|
-
"version": "8.11.0-canary-
|
|
3
|
+
"version": "8.11.0-canary-20260105084630",
|
|
4
4
|
"description": "Comet API Generator CLI tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/api/api-generator",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"ts-morph": "^25.0.1",
|
|
26
26
|
"ts-node": "^10.9.2",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
|
-
"@comet/cms-api": "8.11.0-canary-
|
|
28
|
+
"@comet/cms-api": "8.11.0-canary-20260105084630"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@mikro-orm/cli": "^6.4.16",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"rimraf": "^6.1.2",
|
|
45
45
|
"ts-jest": "^29.4.6",
|
|
46
46
|
"uuid": "^11.1.0",
|
|
47
|
-
"@comet/eslint-config": "8.11.0-canary-
|
|
47
|
+
"@comet/eslint-config": "8.11.0-canary-20260105084630"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@mikro-orm/cli": "^6.0.0",
|