@tstdl/base 0.78.4 → 0.78.5
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/notification/model.js +1 -1
- package/notification/model.js.map +1 -1
- package/orm/test.js +1 -1
- package/orm/test.js.map +1 -1
- package/package.json +1 -1
- package/schema/decorators/{type.d.ts → class.d.ts} +1 -1
- package/schema/decorators/{type.js → class.js} +4 -4
- package/schema/decorators/class.js.map +1 -0
- package/schema/decorators/index.d.ts +1 -1
- package/schema/decorators/index.js +1 -1
- package/schema/decorators/index.js.map +1 -1
- package/schema/decorators/types.d.ts +2 -1
- package/schema/utils/schema.js +26 -14
- package/schema/utils/schema.js.map +1 -1
- package/templates/template.model.js +1 -1
- package/templates/template.model.js.map +1 -1
- package/schema/decorators/type.js.map +0 -1
package/notification/model.js
CHANGED
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", Object)
|
|
31
31
|
], Notification.prototype, "data", void 0);
|
|
32
32
|
Notification = __decorate([
|
|
33
|
-
(0, schema_1.
|
|
33
|
+
(0, schema_1.Class)()
|
|
34
34
|
], Notification);
|
|
35
35
|
exports.Notification = Notification;
|
|
36
36
|
//# sourceMappingURL=model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/notification/model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/notification/model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAgD;AAGzC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAwBxB,CAAA;AApBC;IAAC,IAAA,iBAAQ,GAAE;;yCACC;AAKZ;IAAC,IAAA,iBAAQ,GAAE;;+CACO;AAKlB;IAAC,IAAA,iBAAQ,GAAE;;0CACS;AAKpB;IAAC,IAAA,YAAG,GAAE;;0CACI;AAvBC,YAAY;IADxB,IAAA,cAAK,GAAE;GACK,YAAY,CAwBxB;AAxBY,oCAAY"}
|
package/orm/test.js
CHANGED
package/orm/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../source/orm/test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../source/orm/test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2C;AAG3C,IAAM,UAAU,GAAhB,MAAM,UAAU;CAGf,CAAA;AAFC;IAAC,IAAA,iBAAQ,GAAE;;wCACE;AAFT,UAAU;IADf,IAAA,cAAK,GAAE;GACF,UAAU,CAGf"}
|
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { SchemaTypeReflectionData } from './types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function Class(options?: SchemaTypeReflectionData): Decorator<'class'>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Class = void 0;
|
|
5
5
|
const reflection_1 = require("../../reflection");
|
|
6
|
-
function
|
|
6
|
+
function Class(options = {}) {
|
|
7
7
|
return (0, reflection_1.createClassDecorator)({ data: { schema: options }, mergeData: true });
|
|
8
8
|
}
|
|
9
|
-
exports.
|
|
10
|
-
//# sourceMappingURL=
|
|
9
|
+
exports.Class = Class;
|
|
10
|
+
//# sourceMappingURL=class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../source/schema/decorators/class.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,iDAAoD;AAGpD,SAAgB,KAAK,CAAC,UAAoC,EAAE;IAC1D,OAAO,IAAA,iCAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;AAFD,sBAEC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './array';
|
|
2
|
+
export * from './class';
|
|
2
3
|
export * from './coerce';
|
|
3
4
|
export * from './nullable';
|
|
4
5
|
export * from './one-or-many';
|
|
5
6
|
export * from './optional';
|
|
6
7
|
export * from './property';
|
|
7
|
-
export * from './type';
|
|
8
8
|
export * from './types';
|
|
9
9
|
export * from './utils';
|
|
@@ -15,12 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./array"), exports);
|
|
18
|
+
__exportStar(require("./class"), exports);
|
|
18
19
|
__exportStar(require("./coerce"), exports);
|
|
19
20
|
__exportStar(require("./nullable"), exports);
|
|
20
21
|
__exportStar(require("./one-or-many"), exports);
|
|
21
22
|
__exportStar(require("./optional"), exports);
|
|
22
23
|
__exportStar(require("./property"), exports);
|
|
23
|
-
__exportStar(require("./type"), exports);
|
|
24
24
|
__exportStar(require("./types"), exports);
|
|
25
25
|
__exportStar(require("./utils"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { OneOrMany } from "../../types";
|
|
2
2
|
import type { SchemaTestable } from '../schema';
|
|
3
|
-
import type { ObjectSchema, SchemaArrayConstraint, SchemaFactoryFunction, SchemaValueCoercer, SchemaValueConstraint, SchemaValueTransformer, ValueSchema } from '../types';
|
|
3
|
+
import type { ObjectSchema, SchemaArrayConstraint, SchemaFactoryFunction, SchemaValueCoercer, SchemaValueConstraint, SchemaValueTransformer, TypeSchema, ValueSchema, ValueType } from '../types';
|
|
4
4
|
export declare type SchemaTypeReflectionData = Partial<Pick<ObjectSchema, 'mask' | 'allowUnknownProperties'>> & {
|
|
5
|
+
schema?: ObjectSchema | TypeSchema | ValueType;
|
|
5
6
|
factory?: SchemaFactoryFunction<any>;
|
|
6
7
|
};
|
|
7
8
|
export declare type SchemaPropertyReflectionData = {
|
package/schema/utils/schema.js
CHANGED
|
@@ -90,7 +90,31 @@ function _tryGetObjectSchemaFromReflection(type) {
|
|
|
90
90
|
if (!metadata.registered) {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
-
const typeData = metadata.data.tryGet('schema');
|
|
93
|
+
const typeData = metadata.data.tryGet('schema') ?? {};
|
|
94
|
+
const dataSchema = (0, types_1.isTypeSchema)(typeData.schema)
|
|
95
|
+
? getObjectSchema(typeData.schema.type)
|
|
96
|
+
: (0, types_1.isObjectSchema)(typeData.schema)
|
|
97
|
+
? typeData.schema
|
|
98
|
+
: (0, type_guards_1.isFunction)(typeData.schema)
|
|
99
|
+
? getObjectSchema(typeData.schema)
|
|
100
|
+
: undefined;
|
|
101
|
+
const schema = (0, types_1.objectSchema)({
|
|
102
|
+
sourceType: type,
|
|
103
|
+
factory: (0, type_guards_1.isDefined)(typeData.factory) ? { builder: typeData.factory } : { type: type },
|
|
104
|
+
properties: dataSchema?.properties ?? getObjectSchemaPropertiesFromReflection(metadata, type),
|
|
105
|
+
mask: typeData.mask ?? dataSchema?.mask,
|
|
106
|
+
allowUnknownProperties: (((0, type_guards_1.isUndefined)(typeData.allowUnknownProperties) || ((0, type_guards_1.isArray)(typeData.allowUnknownProperties) && (typeData.allowUnknownProperties.length == 0))) ? undefined : typeData.allowUnknownProperties) ?? dataSchema?.allowUnknownProperties
|
|
107
|
+
});
|
|
108
|
+
if ((0, type_guards_1.isUndefined)(dataSchema)) {
|
|
109
|
+
const prototype = Reflect.getPrototypeOf(type);
|
|
110
|
+
if ((0, type_guards_1.isNotNull)(prototype) && registry_1.reflectionRegistry.hasType(prototype)) {
|
|
111
|
+
const parentSchema = getObjectSchemaFromReflection(prototype);
|
|
112
|
+
return (0, assign_1.assign)(parentSchema, schema);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return schema;
|
|
116
|
+
}
|
|
117
|
+
function getObjectSchemaPropertiesFromReflection(metadata, type) {
|
|
94
118
|
const properties = {};
|
|
95
119
|
for (const [key, propertyMetadata] of metadata.properties) {
|
|
96
120
|
const reflectionData = propertyMetadata.data.tryGet('schema');
|
|
@@ -110,18 +134,6 @@ function _tryGetObjectSchemaFromReflection(type) {
|
|
|
110
134
|
valueConstraints: reflectionData?.valueConstraints
|
|
111
135
|
});
|
|
112
136
|
}
|
|
113
|
-
|
|
114
|
-
sourceType: type,
|
|
115
|
-
factory: (0, type_guards_1.isDefined)(typeData?.factory) ? { builder: typeData.factory } : { type: type },
|
|
116
|
-
properties,
|
|
117
|
-
mask: typeData?.mask,
|
|
118
|
-
allowUnknownProperties: ((0, type_guards_1.isUndefined)(typeData?.allowUnknownProperties) || ((0, type_guards_1.isArray)(typeData?.allowUnknownProperties) && (typeData?.allowUnknownProperties.length == 0))) ? undefined : typeData?.allowUnknownProperties
|
|
119
|
-
});
|
|
120
|
-
const prototype = Reflect.getPrototypeOf(type);
|
|
121
|
-
if ((0, type_guards_1.isNotNull)(prototype) && registry_1.reflectionRegistry.hasType(prototype)) {
|
|
122
|
-
const parentSchema = getObjectSchemaFromReflection(prototype);
|
|
123
|
-
return (0, assign_1.assign)(parentSchema, schema);
|
|
124
|
-
}
|
|
125
|
-
return schema;
|
|
137
|
+
return properties;
|
|
126
138
|
}
|
|
127
139
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../source/schema/utils/schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../source/schema/utils/schema.ts"],"names":[],"mappings":";;;AACA,wDAA2D;AAE3D,mDAA8C;AAC9C,0DAAyD;AACzD,sDAAwD;AACxD,yDAAqG;AAGrG,8CAA2C;AAE3C,oCAA0K;AAE7J,QAAA,eAAe,GAAG,IAAA,uBAAa,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAClE,QAAA,qBAAqB,GAAG,IAAA,uBAAa,EAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,QAAA,oBAAoB,GAAG,IAAA,uBAAa,EAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5E,QAAA,mBAAmB,GAAG,IAAA,uBAAa,EAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC1E,QAAA,kBAAkB,GAAG,IAAA,uBAAa,EAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,QAAA,gCAAgC,GAAG,IAAA,uBAAa,EAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAGjH,SAAgB,eAAe,CAAI,YAAmC;IACpE,OAAO,IAAA,wBAAU,EAAC,YAAY,CAAC;QAC7B,CAAC,CAAC,6BAA6B,CAAC,YAAY,CAAC;QAC7C,CAAC,CA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AAC,QAAQ,CAAC,IAAI,CAAC,IAAA,qBAAO,EAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YACrF,MAAM,IAAI,KAAK,CAAC,6BAA6B,IAAI,CAAC,IAAI,iBAAiB,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACxF;QAED,UAAU,CAAC,GAAc,CAAC,GAAG,IAAA,mBAAW,EAAC,IAAA,oCAA4B,EAAC,QAAQ,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YACxG,KAAK;YACL,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,MAAM,EAAE,cAAc,EAAE,MAAM;YAC9B,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,YAAY,EAAE,cAAc,EAAE,YAAY;YAC1C,gBAAgB,EAAE,cAAc,EAAE,gBAAgB;YAClD,gBAAgB,EAAE,cAAc,EAAE,gBAAgB;SACnD,CAAC,CAAC;KACJ;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -27,7 +27,7 @@ __decorate([
|
|
|
27
27
|
__metadata("design:type", Object)
|
|
28
28
|
], TemplateField.prototype, "options", void 0);
|
|
29
29
|
TemplateField = __decorate([
|
|
30
|
-
(0, schema_1.
|
|
30
|
+
(0, schema_1.Class)({ allowUnknownProperties: (0, schema_1.any)() })
|
|
31
31
|
], TemplateField);
|
|
32
32
|
exports.TemplateField = TemplateField;
|
|
33
33
|
class Template {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.model.js","sourceRoot":"","sources":["../../source/templates/template.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"template.model.js","sourceRoot":"","sources":["../../source/templates/template.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuE;AAIhE,IAAM,aAAa,GAAnB,MAAM,aAAa;CAUzB,CAAA;AATC;IAAC,IAAA,iBAAQ,GAAE;;+CACQ;AAEnB;IAAC,IAAA,iBAAQ,GAAE;;+CACQ;AAEnB;IAAC,IAAA,YAAG,GAAE;IACL,IAAA,iBAAQ,GAAE;;8CACO;AATP,aAAa;IADzB,IAAA,cAAK,EAAC,EAAE,sBAAsB,EAAE,IAAA,YAAG,GAAE,EAAE,CAAC;GAC5B,aAAa,CAUzB;AAVY,sCAAa;AAiB1B,MAAsB,QAAQ;CAO7B;AANC;IAAC,IAAA,iBAAQ,EAAC,EAAE,MAAM,EAAE,IAAA,eAAM,EAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;;wCAC7C;AAE/B;IAAC,IAAA,YAAG,GAAE;IACL,IAAA,iBAAQ,GAAE;;yCACe;AAN5B,4BAOC;AAED,SAAgB,cAAc,CAAC,QAAuB;IACpD,OAAO;QACL,MAAM,EAAE;YACN,QAAQ;SACT;KACF,CAAC;AACJ,CAAC;AAND,wCAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/schema/decorators/type.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,iDAAoD;AAGpD,SAAgB,IAAI,CAAC,UAAoC,EAAE;IACzD,OAAO,IAAA,iCAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;AAFD,oBAEC"}
|