@collctiv/l2s-models 1.0.37 → 1.0.38

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.
@@ -5,6 +5,7 @@ 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
7
  export declare const TypeOfObject: <T extends any>(type: new () => T) => (target: any, propertyKey: string) => void;
8
+ export declare const TypeOfObjectArray: <T extends any>(type: new () => T) => (target: any, propertyKey: string) => void;
8
9
  export declare const Attribute: () => (target: any, propertyKey: string) => void;
9
10
  export declare const ObjectId: () => (target: any, propertyKey: string) => void;
10
11
  //# 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,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"}
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;AAED,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,GAAG,EAAE,MAAM,UAAS,CAAC,MACrD,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,SAAS,SACV,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA;AAED,eAAO,MAAM,QAAQ,SACT,QAAQ,GAAG,EAAE,aAAa,MAAM,SAQ3C,CAAA"}
@@ -26,19 +26,14 @@ export const Updatable = () => {
26
26
  };
27
27
  export const TypeOfObject = (type) => {
28
28
  return (target, propertyKey) => {
29
- Reflect.defineMetadata(`Type:Object`, type, target, propertyKey);
29
+ Reflect.defineMetadata(`Type:Object`, type.prototype, target, propertyKey);
30
30
  };
31
31
  };
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
- );
32
+ export const TypeOfObjectArray = (type) => {
33
+ return (target, propertyKey) => {
34
+ Reflect.defineMetadata(`Type:ObjectArray`, type.prototype, target, propertyKey);
40
35
  };
41
- }*/
36
+ };
42
37
  export const Attribute = () => {
43
38
  return (target, propertyKey) => {
44
39
  Reflect.defineMetadata(`Attribute`, true, target, propertyKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collctiv/l2s-models",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "L2S models, interfaces, types and enums",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",