@collctiv/l2s-models 1.0.34 → 1.0.36
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.
|
@@ -4,8 +4,7 @@ export declare const Topic: (value: string) => (target: any) => void;
|
|
|
4
4
|
export declare const TransactionId: (property: string) => (target: any) => void;
|
|
5
5
|
export declare const NotCreatable: () => (target: any, propertyKey: string) => void;
|
|
6
6
|
export declare const Updatable: () => (target: any, propertyKey: string) => void;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const ObjectArrayType: <T>(type: new (...args: any[]) => T) => (target: any, propertyKey: string) => void;
|
|
7
|
+
export declare const TypeOfObject: <T extends any>(type: new () => T) => (target: any, propertyKey: string) => void;
|
|
9
8
|
export declare const Attribute: () => (target: any, propertyKey: string) => void;
|
|
10
9
|
export declare const ObjectId: () => (target: any, propertyKey: string) => void;
|
|
11
10
|
//# sourceMappingURL=decorators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../global/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,MAC5B,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,MACvB,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,MAClC,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,YAAY,SACb,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,SAAS,SACV,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../global/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,MAC5B,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,MACvB,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,MAClC,QAAQ,GAAG,SAOtB,CAAA;AAED,eAAO,MAAM,YAAY,SACb,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,SAAS,SACV,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,GAAG,EAAE,MAAM,UAAS,CAAC,MAChD,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAaD,eAAO,MAAM,SAAS,SACV,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,QAAQ,SACT,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA"}
|
|
@@ -24,16 +24,21 @@ export const Updatable = () => {
|
|
|
24
24
|
Reflect.defineMetadata(`Updatable`, true, target, propertyKey);
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const TypeOfObject = (type) => {
|
|
28
28
|
return (target, propertyKey) => {
|
|
29
|
-
Reflect.defineMetadata(
|
|
29
|
+
Reflect.defineMetadata(`Type:Object`, type, target, propertyKey);
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
33
|
-
return (target, propertyKey) => {
|
|
34
|
-
Reflect.defineMetadata(
|
|
32
|
+
/*export const ObjectArray = <T extends any>(type: new() => T) => {
|
|
33
|
+
return (target: any, propertyKey: string) => {
|
|
34
|
+
Reflect.defineMetadata(
|
|
35
|
+
`Type:ObjectArray`,
|
|
36
|
+
type.prototype,
|
|
37
|
+
target,
|
|
38
|
+
propertyKey
|
|
39
|
+
);
|
|
35
40
|
};
|
|
36
|
-
}
|
|
41
|
+
}*/
|
|
37
42
|
export const Attribute = () => {
|
|
38
43
|
return (target, propertyKey) => {
|
|
39
44
|
Reflect.defineMetadata(`Attribute`, true, target, propertyKey);
|