nicot 1.2.1 → 1.2.3
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/index.cjs +12 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -980,7 +980,12 @@ function IdBase(idOptions = {}) {
|
|
|
980
980
|
}),
|
|
981
981
|
Reflect.metadata("design:type", Number),
|
|
982
982
|
Generated("increment"),
|
|
983
|
-
QueryEqual()
|
|
983
|
+
QueryEqual(),
|
|
984
|
+
Metadata.set(
|
|
985
|
+
"notRequiredButHasDefault",
|
|
986
|
+
true,
|
|
987
|
+
"notRequiredButHasDefaultFields"
|
|
988
|
+
)
|
|
984
989
|
]);
|
|
985
990
|
dec(cl.prototype, "id");
|
|
986
991
|
return cl;
|
|
@@ -1002,6 +1007,11 @@ function StringIdBase(idOptions) {
|
|
|
1002
1007
|
const decs = [
|
|
1003
1008
|
Reflect.metadata("design:type", String),
|
|
1004
1009
|
QueryEqual(),
|
|
1010
|
+
Metadata.set(
|
|
1011
|
+
"notRequiredButHasDefault",
|
|
1012
|
+
true,
|
|
1013
|
+
"notRequiredButHasDefaultFields"
|
|
1014
|
+
),
|
|
1005
1015
|
...idOptions.uuid ? [UuidColumn({ ...columnOptions, generated: true }), NotWritable()] : [
|
|
1006
1016
|
StringColumn(idOptions.length || 255, columnOptions),
|
|
1007
1017
|
IsNotEmpty2(),
|
|
@@ -2216,7 +2226,7 @@ var _RestfulFactory = class _RestfulFactory {
|
|
|
2216
2226
|
);
|
|
2217
2227
|
ApiProperty5({
|
|
2218
2228
|
...oldApiProperty,
|
|
2219
|
-
required: false,
|
|
2229
|
+
// required: false,
|
|
2220
2230
|
type: () => relation.isArray ? [useClass[0]] : useClass[0]
|
|
2221
2231
|
})(resultDto.prototype, relation.propertyName);
|
|
2222
2232
|
};
|