@quatrain/core 1.1.23 → 1.1.28

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.
Files changed (235) hide show
  1. package/README.md +56 -8
  2. package/{lib → dist}/Core.d.ts +3 -17
  3. package/dist/Core.d.ts.map +1 -0
  4. package/dist/Core.js +105 -0
  5. package/dist/Core.js.map +1 -0
  6. package/dist/common/DataGenerator.d.ts +3 -0
  7. package/dist/common/DataGenerator.d.ts.map +1 -0
  8. package/dist/common/DataGenerator.js +86 -0
  9. package/dist/common/DataGenerator.js.map +1 -0
  10. package/{lib → dist}/common/ResourcesErrors.d.ts +1 -0
  11. package/dist/common/ResourcesErrors.d.ts.map +1 -0
  12. package/{lib → dist}/common/ResourcesErrors.js +1 -0
  13. package/dist/common/ResourcesErrors.js.map +1 -0
  14. package/{lib → dist}/common/statuses.d.ts +5 -0
  15. package/dist/common/statuses.d.ts.map +1 -0
  16. package/dist/common/statuses.js +24 -0
  17. package/dist/common/statuses.js.map +1 -0
  18. package/{lib → dist}/components/AbstractObject.d.ts +1 -5
  19. package/dist/components/AbstractObject.d.ts.map +1 -0
  20. package/{lib → dist}/components/AbstractObject.js +7 -10
  21. package/dist/components/AbstractObject.js.map +1 -0
  22. package/{lib → dist}/components/BaseObject.d.ts +4 -17
  23. package/dist/components/BaseObject.d.ts.map +1 -0
  24. package/dist/components/BaseObject.js +71 -0
  25. package/dist/components/BaseObject.js.map +1 -0
  26. package/dist/components/BaseObjectProperties.d.ts +2 -0
  27. package/dist/components/BaseObjectProperties.d.ts.map +1 -0
  28. package/{lib → dist}/components/BaseObjectProperties.js +1 -2
  29. package/dist/components/BaseObjectProperties.js.map +1 -0
  30. package/{lib → dist}/components/DataObject.d.ts +2 -51
  31. package/dist/components/DataObject.d.ts.map +1 -0
  32. package/{lib → dist}/components/DataObject.js +38 -111
  33. package/dist/components/DataObject.js.map +1 -0
  34. package/{lib → dist}/components/Entity.d.ts +1 -0
  35. package/dist/components/Entity.d.ts.map +1 -0
  36. package/dist/components/Entity.js +48 -0
  37. package/dist/components/Entity.js.map +1 -0
  38. package/{lib → dist}/components/ObjectUri.d.ts +1 -26
  39. package/dist/components/ObjectUri.d.ts.map +1 -0
  40. package/{lib → dist}/components/ObjectUri.js +13 -41
  41. package/dist/components/ObjectUri.js.map +1 -0
  42. package/{lib → dist}/components/User.d.ts +1 -0
  43. package/dist/components/User.d.ts.map +1 -0
  44. package/{lib → dist}/components/User.js +7 -26
  45. package/dist/components/User.js.map +1 -0
  46. package/dist/components/__test__/fixtures/dao.d.ts +37 -0
  47. package/dist/components/__test__/fixtures/dao.d.ts.map +1 -0
  48. package/dist/components/__test__/fixtures/dao.js +100 -0
  49. package/dist/components/__test__/fixtures/dao.js.map +1 -0
  50. package/{lib → dist}/components/index.d.ts +5 -2
  51. package/dist/components/index.d.ts.map +1 -0
  52. package/{lib → dist}/components/index.js +1 -0
  53. package/dist/components/index.js.map +1 -0
  54. package/{lib → dist}/components/types/AbstractObjectClass.d.ts +1 -0
  55. package/dist/components/types/AbstractObjectClass.d.ts.map +1 -0
  56. package/dist/components/types/AbstractObjectClass.js +3 -0
  57. package/dist/components/types/AbstractObjectClass.js.map +1 -0
  58. package/{lib → dist}/components/types/BaseObjectClass.d.ts +1 -0
  59. package/dist/components/types/BaseObjectClass.d.ts.map +1 -0
  60. package/{lib → dist}/components/types/BaseObjectClass.js +1 -0
  61. package/dist/components/types/BaseObjectClass.js.map +1 -0
  62. package/{lib → dist}/components/types/BaseObjectType.d.ts +2 -1
  63. package/dist/components/types/BaseObjectType.d.ts.map +1 -0
  64. package/{lib → dist}/components/types/BaseObjectType.js +1 -0
  65. package/dist/components/types/BaseObjectType.js.map +1 -0
  66. package/{lib → dist}/components/types/DataObjectClass.d.ts +1 -0
  67. package/dist/components/types/DataObjectClass.d.ts.map +1 -0
  68. package/{lib → dist}/components/types/DataObjectClass.js +1 -0
  69. package/dist/components/types/DataObjectClass.js.map +1 -0
  70. package/dist/components/types/DataObjectParams.d.ts +8 -0
  71. package/dist/components/types/DataObjectParams.d.ts.map +1 -0
  72. package/dist/components/types/DataObjectParams.js +3 -0
  73. package/dist/components/types/DataObjectParams.js.map +1 -0
  74. package/{lib → dist}/components/types/DataObjectType.d.ts +1 -0
  75. package/dist/components/types/DataObjectType.d.ts.map +1 -0
  76. package/{lib → dist}/components/types/DataObjectType.js +1 -0
  77. package/dist/components/types/DataObjectType.js.map +1 -0
  78. package/{lib → dist}/components/types/EntityClass.d.ts +1 -0
  79. package/dist/components/types/EntityClass.d.ts.map +1 -0
  80. package/{lib → dist}/components/types/EntityClass.js +1 -0
  81. package/dist/components/types/EntityClass.js.map +1 -0
  82. package/{lib → dist}/components/types/Payload.d.ts +1 -0
  83. package/dist/components/types/Payload.d.ts.map +1 -0
  84. package/{lib → dist}/components/types/Payload.js +1 -0
  85. package/dist/components/types/Payload.js.map +1 -0
  86. package/{lib → dist}/components/types/Persisted.d.ts +1 -0
  87. package/dist/components/types/Persisted.d.ts.map +1 -0
  88. package/{lib → dist}/components/types/Persisted.js +1 -0
  89. package/dist/components/types/Persisted.js.map +1 -0
  90. package/dist/components/types/Properties.d.ts +2 -0
  91. package/dist/components/types/Properties.d.ts.map +1 -0
  92. package/{lib/components/types/AbstractObjectClass.js → dist/components/types/Properties.js} +1 -0
  93. package/dist/components/types/Properties.js.map +1 -0
  94. package/{lib → dist}/components/types/ProxyConstructor.d.ts +1 -0
  95. package/dist/components/types/ProxyConstructor.d.ts.map +1 -0
  96. package/{lib → dist}/components/types/ProxyConstructor.js +1 -0
  97. package/dist/components/types/ProxyConstructor.js.map +1 -0
  98. package/{lib → dist}/components/types/toJSONParams.d.ts +1 -0
  99. package/dist/components/types/toJSONParams.d.ts.map +1 -0
  100. package/{lib → dist}/components/types/toJSONParams.js +1 -0
  101. package/dist/components/types/toJSONParams.js.map +1 -0
  102. package/{lib → dist}/index.d.ts +5 -1
  103. package/dist/index.d.ts.map +1 -0
  104. package/{lib → dist}/index.js +4 -1
  105. package/dist/index.js.map +1 -0
  106. package/{lib → dist}/properties/ArrayProperty.d.ts +1 -0
  107. package/dist/properties/ArrayProperty.d.ts.map +1 -0
  108. package/{lib → dist}/properties/ArrayProperty.js +5 -4
  109. package/dist/properties/ArrayProperty.js.map +1 -0
  110. package/{lib → dist}/properties/BaseProperty.d.ts +3 -2
  111. package/dist/properties/BaseProperty.d.ts.map +1 -0
  112. package/{lib → dist}/properties/BaseProperty.js +18 -11
  113. package/dist/properties/BaseProperty.js.map +1 -0
  114. package/{lib → dist}/properties/BooleanProperty.d.ts +1 -0
  115. package/dist/properties/BooleanProperty.d.ts.map +1 -0
  116. package/{lib → dist}/properties/BooleanProperty.js +2 -1
  117. package/dist/properties/BooleanProperty.js.map +1 -0
  118. package/{lib → dist}/properties/CollectionProperty.d.ts +1 -0
  119. package/dist/properties/CollectionProperty.d.ts.map +1 -0
  120. package/{lib → dist}/properties/CollectionProperty.js +6 -4
  121. package/dist/properties/CollectionProperty.js.map +1 -0
  122. package/{lib → dist}/properties/DateTimeProperty.d.ts +1 -0
  123. package/dist/properties/DateTimeProperty.d.ts.map +1 -0
  124. package/{lib → dist}/properties/DateTimeProperty.js +12 -5
  125. package/dist/properties/DateTimeProperty.js.map +1 -0
  126. package/{lib → dist}/properties/EnumProperty.d.ts +1 -0
  127. package/dist/properties/EnumProperty.d.ts.map +1 -0
  128. package/{lib → dist}/properties/EnumProperty.js +4 -3
  129. package/dist/properties/EnumProperty.js.map +1 -0
  130. package/{lib → dist}/properties/FileProperty.d.ts +1 -0
  131. package/dist/properties/FileProperty.d.ts.map +1 -0
  132. package/{lib → dist}/properties/FileProperty.js +3 -2
  133. package/dist/properties/FileProperty.js.map +1 -0
  134. package/{lib → dist}/properties/HashProperty.d.ts +2 -7
  135. package/dist/properties/HashProperty.d.ts.map +1 -0
  136. package/{lib → dist}/properties/HashProperty.js +15 -23
  137. package/dist/properties/HashProperty.js.map +1 -0
  138. package/{lib → dist}/properties/MapProperty.d.ts +1 -0
  139. package/dist/properties/MapProperty.d.ts.map +1 -0
  140. package/{lib → dist}/properties/MapProperty.js +2 -1
  141. package/dist/properties/MapProperty.js.map +1 -0
  142. package/{lib → dist}/properties/NumberProperty.d.ts +1 -0
  143. package/dist/properties/NumberProperty.d.ts.map +1 -0
  144. package/{lib → dist}/properties/NumberProperty.js +15 -14
  145. package/dist/properties/NumberProperty.js.map +1 -0
  146. package/{lib → dist}/properties/ObjectProperty.d.ts +1 -0
  147. package/dist/properties/ObjectProperty.d.ts.map +1 -0
  148. package/{lib → dist}/properties/ObjectProperty.js +4 -3
  149. package/dist/properties/ObjectProperty.js.map +1 -0
  150. package/{lib → dist}/properties/Property.d.ts +1 -0
  151. package/dist/properties/Property.d.ts.map +1 -0
  152. package/{lib → dist}/properties/Property.js +12 -11
  153. package/dist/properties/Property.js.map +1 -0
  154. package/{lib → dist}/properties/StringProperty.d.ts +3 -5
  155. package/dist/properties/StringProperty.d.ts.map +1 -0
  156. package/{lib → dist}/properties/StringProperty.js +20 -28
  157. package/dist/properties/StringProperty.js.map +1 -0
  158. package/{lib → dist}/properties/index.d.ts +4 -2
  159. package/dist/properties/index.d.ts.map +1 -0
  160. package/{lib → dist}/properties/index.js +1 -0
  161. package/dist/properties/index.js.map +1 -0
  162. package/{lib → dist}/properties/types/AbstractPropertyType.d.ts +1 -0
  163. package/dist/properties/types/AbstractPropertyType.d.ts.map +1 -0
  164. package/{lib → dist}/properties/types/AbstractPropertyType.js +1 -0
  165. package/dist/properties/types/AbstractPropertyType.js.map +1 -0
  166. package/{lib → dist}/properties/types/PropertyClassType.d.ts +1 -0
  167. package/dist/properties/types/PropertyClassType.d.ts.map +1 -0
  168. package/{lib → dist}/properties/types/PropertyClassType.js +1 -0
  169. package/dist/properties/types/PropertyClassType.js.map +1 -0
  170. package/{lib → dist}/properties/types/PropertyHTMLType.d.ts +1 -0
  171. package/dist/properties/types/PropertyHTMLType.d.ts.map +1 -0
  172. package/{lib → dist}/properties/types/PropertyHTMLType.js +1 -2
  173. package/dist/properties/types/PropertyHTMLType.js.map +1 -0
  174. package/{lib → dist}/properties/types/PropertyTypes.d.ts +1 -0
  175. package/dist/properties/types/PropertyTypes.d.ts.map +1 -0
  176. package/{lib → dist}/properties/types/PropertyTypes.js +1 -0
  177. package/dist/properties/types/PropertyTypes.js.map +1 -0
  178. package/package.json +47 -41
  179. package/src/Core.ts +145 -0
  180. package/src/common/DataGenerator.ts +81 -0
  181. package/src/common/ResourcesErrors.ts +17 -0
  182. package/src/common/statuses.ts +20 -0
  183. package/src/components/AbstractObject.ts +71 -0
  184. package/src/components/BaseObject.ts +123 -0
  185. package/src/components/BaseObjectProperties.ts +65 -0
  186. package/src/components/DataObject.ts +418 -0
  187. package/src/components/Entity.ts +38 -0
  188. package/src/components/ObjectUri.test.ts +74 -0
  189. package/src/components/ObjectUri.ts +174 -0
  190. package/src/components/User.ts +111 -0
  191. package/src/components/index.ts +19 -0
  192. package/src/components/types/AbstractObjectClass.ts +7 -0
  193. package/src/components/types/BaseObjectClass.ts +8 -0
  194. package/src/components/types/BaseObjectType.ts +10 -0
  195. package/src/components/types/DataObjectClass.ts +27 -0
  196. package/src/components/types/DataObjectParams.ts +8 -0
  197. package/src/components/types/DataObjectType.ts +27 -0
  198. package/src/components/types/EntityClass.ts +3 -0
  199. package/src/components/types/Payload.ts +11 -0
  200. package/src/components/types/Persisted.ts +7 -0
  201. package/src/components/types/Properties.ts +1 -0
  202. package/src/components/types/ProxyConstructor.ts +13 -0
  203. package/src/components/types/toJSONParams.ts +12 -0
  204. package/src/index.ts +97 -0
  205. package/src/properties/ArrayProperty.test.ts +46 -0
  206. package/src/properties/ArrayProperty.ts +87 -0
  207. package/src/properties/BaseProperty.test.ts +79 -0
  208. package/src/properties/BaseProperty.ts +140 -0
  209. package/src/properties/BooleanProperty.ts +11 -0
  210. package/src/properties/CollectionProperty.test.ts +22 -0
  211. package/src/properties/CollectionProperty.ts +43 -0
  212. package/src/properties/DateTimeProperty.ts +47 -0
  213. package/src/properties/EnumProperty.ts +36 -0
  214. package/src/properties/FileProperty.ts +14 -0
  215. package/src/properties/HashProperty.test.ts +108 -0
  216. package/src/properties/HashProperty.ts +70 -0
  217. package/src/properties/MapProperty.ts +19 -0
  218. package/src/properties/NumberProperty.test.ts +38 -0
  219. package/src/properties/NumberProperty.ts +110 -0
  220. package/src/properties/ObjectProperty.ts +118 -0
  221. package/src/properties/Property.ts +85 -0
  222. package/src/properties/StringProperty.test.ts +46 -0
  223. package/src/properties/StringProperty.ts +121 -0
  224. package/src/properties/index.ts +62 -0
  225. package/src/properties/types/AbstractPropertyType.ts +8 -0
  226. package/src/properties/types/PropertyClassType.ts +11 -0
  227. package/src/properties/types/PropertyHTMLType.ts +23 -0
  228. package/src/properties/types/PropertyTypes.ts +13 -0
  229. package/lib/Core.js +0 -133
  230. package/lib/common/statuses.js +0 -19
  231. package/lib/components/BaseObject.js +0 -103
  232. package/lib/components/BaseObjectProperties.d.ts +0 -1
  233. package/lib/components/Entity.js +0 -71
  234. package/lib/components/types/Properties.d.ts +0 -3
  235. package/lib/components/types/Properties.js +0 -1
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
25
  Object.defineProperty(exports, "__esModule", { value: true });
35
26
  exports.User = exports.UserProperties = void 0;
36
27
  const BaseObject_1 = require("./BaseObject");
@@ -39,16 +30,10 @@ const HashProperty_1 = require("../properties/HashProperty");
39
30
  const StringProperty_1 = require("../properties/StringProperty");
40
31
  const htmlType = __importStar(require("../properties/types/PropertyHTMLType"));
41
32
  const BaseObjectProperties_1 = require("./BaseObjectProperties");
42
- /**
43
- * Callback function to populate the 'name' property
44
- * @param dao DataObject
45
- * @returns
46
- */
47
33
  const onChange = (dao) => dao.set('name', `${dao.val('firstname')} ${dao.val('lastname')}`);
48
34
  exports.UserProperties = [
49
35
  ...BaseObjectProperties_1.BaseObjectProperties,
50
36
  {
51
- // change name property minLength
52
37
  name: 'name',
53
38
  type: StringProperty_1.StringProperty.TYPE,
54
39
  minLength: 0,
@@ -108,9 +93,9 @@ exports.UserProperties = [
108
93
  mandatory: true,
109
94
  type: HashProperty_1.HashProperty.TYPE,
110
95
  algorithm: HashProperty_1.HashProperty.ALGORITHM_SHA256,
111
- salt: '', // you should override it in your code
96
+ salt: '',
112
97
  minLength: 5,
113
- maxLength: 20, // this is for the clear password
98
+ maxLength: 20,
114
99
  htmlType: htmlType.PASSWORD,
115
100
  },
116
101
  {
@@ -121,15 +106,11 @@ exports.UserProperties = [
121
106
  },
122
107
  ];
123
108
  class User extends BaseObject_1.BaseObject {
124
- static factory(src = undefined) {
125
- const _super = Object.create(null, {
126
- factory: { get: () => super.factory }
127
- });
128
- return __awaiter(this, void 0, void 0, function* () {
129
- return _super.factory.call(this, src, User);
130
- });
109
+ static PROPS_DEFINITION = exports.UserProperties;
110
+ static COLLECTION = 'user';
111
+ static async factory(src = undefined) {
112
+ return super.factory(src, User);
131
113
  }
132
114
  }
133
115
  exports.User = User;
134
- User.PROPS_DEFINITION = exports.UserProperties;
135
- User.COLLECTION = 'user';
116
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/components/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AAEzC,8CAA8E;AAC9E,6DAAyD;AACzD,iEAA6D;AAC7D,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,EAAE,+BAAc,CAAC,IAAI;QACzB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,QAAQ,CAAC,KAAK;KAC1B;IACD;QACG,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,+BAAc,CAAC,IAAI;QACzB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,GAAG;QACd,QAAQ,EAAE,QAAQ,CAAC,GAAG;KACxB;IACD;QACG,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,2BAAY,CAAC,IAAI;QACvB,SAAS,EAAE,2BAAY,CAAC,gBAAgB;QACxC,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,QAAQ,CAAC,QAAQ;KAC7B;IACD;QACG,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,2BAAc,CAAC,IAAI;QACzB,UAAU,EAAE,QAAQ;KACtB;CACH,CAAA;AAED,MAAa,IAAK,SAAQ,uBAAU;IACjC,MAAM,CAAC,gBAAgB,GAAG,sBAAc,CAAA;IACxC,MAAM,CAAC,UAAU,GAAG,MAAM,CAAA;IAE1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAW,SAAS;QACtC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;;AANJ,oBAOC"}
@@ -0,0 +1,37 @@
1
+ import { DataObjectProperties } from '../../../properties';
2
+ import { BaseObjectCore } from '../../BaseObjectCore';
3
+ import { ObjectUri } from '../../ObjectUri';
4
+ export declare const fClassProperties: DataObjectProperties;
5
+ export declare class fClass extends BaseObjectCore {
6
+ static PROPS_DEFINITION: DataObjectProperties;
7
+ }
8
+ export declare const properties: DataObjectProperties;
9
+ export declare const fData: {
10
+ uid: string;
11
+ path: string;
12
+ string: string;
13
+ boolean: boolean;
14
+ enum: string;
15
+ object: ObjectUri;
16
+ };
17
+ export declare const baseObjectUri = "baseobject/xyz";
18
+ export declare const UserUri = "user/abc";
19
+ export declare const BaseObjectData: {
20
+ uid: string;
21
+ path: string;
22
+ name: string;
23
+ status: any;
24
+ };
25
+ export declare const UserData: {
26
+ uid: string;
27
+ path: string;
28
+ name: string;
29
+ status: any;
30
+ firstname: string;
31
+ lastname: string;
32
+ email: string;
33
+ password: string;
34
+ createdBy: ObjectUri;
35
+ createdAt: number;
36
+ };
37
+ //# sourceMappingURL=dao.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dao.d.ts","sourceRoot":"","sources":["../../../../src/components/__test__/fixtures/dao.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,gBAAgB,EAAE,oBAK9B,CAAA;AACD,qBAAa,MAAO,SAAQ,cAAc;IACvC,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAK5C;CACH;AAED,eAAO,MAAM,UAAU,EAAE,oBAsBxB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAA;AAED,eAAO,MAAM,aAAa,mBAAmB,CAAA;AAC7C,eAAO,MAAM,OAAO,aAAa,CAAA;AAEjC,eAAO,MAAM,cAAc;;;;;CAK1B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAA"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.UserData = exports.BaseObjectData = exports.UserUri = exports.baseObjectUri = exports.fData = exports.properties = exports.fClass = exports.fClassProperties = void 0;
27
+ const statuses = __importStar(require("../../../statuses"));
28
+ const BooleanProperty_1 = require("../../../properties/BooleanProperty");
29
+ const EnumProperty_1 = require("../../../properties/EnumProperty");
30
+ const ObjectProperty_1 = require("../../../properties/ObjectProperty");
31
+ const StringProperty_1 = require("../../../properties/StringProperty");
32
+ const BaseObjectCore_1 = require("../../BaseObjectCore");
33
+ const ObjectUri_1 = require("../../ObjectUri");
34
+ exports.fClassProperties = [
35
+ {
36
+ name: 'a',
37
+ type: StringProperty_1.StringProperty.TYPE,
38
+ },
39
+ ];
40
+ class fClass extends BaseObjectCore_1.BaseObjectCore {
41
+ static PROPS_DEFINITION = [
42
+ {
43
+ name: 'a',
44
+ type: StringProperty_1.StringProperty.TYPE,
45
+ },
46
+ ];
47
+ }
48
+ exports.fClass = fClass;
49
+ exports.properties = [
50
+ {
51
+ name: 'string',
52
+ mandatory: true,
53
+ type: StringProperty_1.StringProperty.TYPE,
54
+ defaultValue: 'nothing',
55
+ },
56
+ {
57
+ name: 'boolean',
58
+ type: BooleanProperty_1.BooleanProperty.TYPE,
59
+ defaultValue: false,
60
+ },
61
+ {
62
+ name: 'enum',
63
+ type: EnumProperty_1.EnumProperty.TYPE,
64
+ values: ['Mr', 'Miss', 'Ms', 'Dr'],
65
+ },
66
+ {
67
+ name: 'object',
68
+ type: ObjectProperty_1.ObjectProperty.TYPE,
69
+ instanceOf: fClass.prototype,
70
+ },
71
+ ];
72
+ exports.fData = {
73
+ uid: 'a/b',
74
+ path: 'a/b',
75
+ string: 'a string',
76
+ boolean: true,
77
+ enum: 'Miss',
78
+ object: new ObjectUri_1.ObjectUri('c/d'),
79
+ };
80
+ exports.baseObjectUri = 'baseobject/xyz';
81
+ exports.UserUri = 'user/abc';
82
+ exports.BaseObjectData = {
83
+ uid: exports.baseObjectUri,
84
+ path: exports.baseObjectUri,
85
+ name: 'a simple object',
86
+ status: statuses.PENDING,
87
+ };
88
+ exports.UserData = {
89
+ uid: 'abc',
90
+ path: exports.UserUri,
91
+ name: 'John Doe',
92
+ status: statuses.ACTIVE,
93
+ firstname: 'John',
94
+ lastname: 'Doe',
95
+ email: 'john@doe.com',
96
+ password: 'f2d81a260dea8a100dd517984e53c56a7523d96942a834b9cdc249bd4e8c7aa9',
97
+ createdBy: new ObjectUri_1.ObjectUri(exports.UserUri, 'John Doe'),
98
+ createdAt: 1,
99
+ };
100
+ //# sourceMappingURL=dao.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dao.js","sourceRoot":"","sources":["../../../../src/components/__test__/fixtures/dao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA6C;AAC7C,yEAAqE;AACrE,mEAA+D;AAC/D,uEAAmE;AACnE,uEAAmE;AAEnE,yDAAqD;AACrD,+CAA2C;AAE9B,QAAA,gBAAgB,GAAyB;IACnD;QACG,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,+BAAc,CAAC,IAAI;KAC3B;CACH,CAAA;AACD,MAAa,MAAO,SAAQ,+BAAc;IACvC,MAAM,CAAC,gBAAgB,GAAyB;QAC7C;Y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rB,QAAQ,EAAE,kEAAkE;IAC5E,SAAS,EAAE,IAAI,qBAAS,CAAC,eAAO,EAAE,UAAU,CAAC;IAC7C,SAAS,EAAE,CAAC;CACd,CAAA"}
@@ -1,8 +1,11 @@
1
- import { DataObject, DataObjectParams } from './DataObject';
1
+ import { DataObject } from './DataObject';
2
2
  import { DataObjectClass } from './types/DataObjectClass';
3
+ import { DataObjectParams } from './types/DataObjectParams';
3
4
  import { ObjectUri } from './ObjectUri';
4
5
  import { AbstractObject } from './AbstractObject';
5
6
  import { BaseObjectProperties } from './BaseObjectProperties';
6
7
  import { User, UserProperties } from './User';
7
8
  import { Entity } from './Entity';
8
- export { DataObject, DataObjectParams, DataObjectClass, ObjectUri, AbstractObject, User, Entity, BaseObjectProperties, UserProperties, };
9
+ export { DataObject, ObjectUri, AbstractObject, User, Entity, BaseObjectProperties, UserProperties, };
10
+ export type { DataObjectParams, DataObjectClass };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EACJ,UAAU,EACV,SAAS,EACT,cAAc,EACd,IAAI,EACJ,MAAM,EACN,oBAAoB,EACpB,cAAc,GAChB,CAAA;AACD,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAA"}
@@ -14,3 +14,4 @@ Object.defineProperty(exports, "User", { enumerable: true, get: function () { re
14
14
  Object.defineProperty(exports, "UserProperties", { enumerable: true, get: function () { return User_1.UserProperties; } });
15
15
  const Entity_1 = require("./Entity");
16
16
  Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return Entity_1.Entity; } });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAUtC,2FAVM,uBAAU,OAUN;AAPb,2CAAuC;AAQpC,0FARM,qBAAS,OAQN;AAPZ,qDAAiD;AAQ9C,+FARM,+BAAc,OAQN;AAPjB,iEAA6D;AAU1D,qGAVM,2CAAoB,OAUN;AATvB,iCAA6C;AAO1C,qFAPM,WAAI,OAON;AAGJ,+FAVY,qBAAc,OAUZ;AATjB,qCAAiC;AAO9B,uFAPM,eAAM,OAON"}
@@ -4,3 +4,4 @@ export interface AbstractObjectClass {
4
4
  asReference(): any;
5
5
  val(val: string): any;
6
6
  }
7
+ //# sourceMappingURL=AbstractObjectClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractObjectClass.d.ts","sourceRoot":"","sources":["../../../src/components/types/AbstractObjectClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,mBAAmB;IACjC,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC,CAAA;IAChC,WAAW,IAAI,GAAG,CAAA;IAClB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AbstractObjectClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractObjectClass.js","sourceRoot":"","sources":["../../../src/components/types/AbstractObjectClass.ts"],"names":[],"mappings":""}
@@ -5,3 +5,4 @@ export interface BaseObjectClass extends AbstractObjectClass {
5
5
  asReference(): any;
6
6
  save(): Promise<this>;
7
7
  }
8
+ //# sourceMappingURL=BaseObjectClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectClass.d.ts","sourceRoot":"","sources":["../../../src/components/types/BaseObjectClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACzD,UAAU,EAAE,eAAe,CAAC,GAAG,CAAC,CAAA;IAChC,WAAW,IAAI,GAAG,CAAA;IAClB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BaseObjectClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectClass.js","sourceRoot":"","sources":["../../../src/components/types/BaseObjectClass.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  export interface BaseObjectType {
2
2
  name: string;
3
- status: string;
3
+ status?: string;
4
4
  createdBy?: any;
5
5
  createdAt?: number | string;
6
6
  updatedBy?: any;
@@ -8,3 +8,4 @@ export interface BaseObjectType {
8
8
  deletedBy?: any;
9
9
  deletedAt?: number | string;
10
10
  }
11
+ //# sourceMappingURL=BaseObjectType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectType.d.ts","sourceRoot":"","sources":["../../../src/components/types/BaseObjectType.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BaseObjectType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectType.js","sourceRoot":"","sources":["../../../src/components/types/BaseObjectType.ts"],"names":[],"mappings":""}
@@ -25,3 +25,4 @@ export interface DataObjectClass<T extends DataObjectClass<any>> {
25
25
  }): this;
26
26
  asProxy(): any;
27
27
  }
28
+ //# sourceMappingURL=DataObjectClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectClass.d.ts","sourceRoot":"","sources":["../../../src/components/types/DataObjectClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC;IAC5D,GAAG,EAAE,SAAS,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,GAAG,CAAA;IACT,KAAK,EAAE,GAAG,CAAA;IACV,UAAU,EAAE,GAAG,CAAA;IACf,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAE9B,aAAa,CAAC,UAAU,EAAE,GAAG,GAAG,IAAI,CAAA;IACpC,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAAA;IAC7B,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAChC,WAAW,IAAI,OAAO,CAAA;IACtB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACzB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,CAAA;IAC/B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC7B,WAAW,IAAI,GAAG,CAAA;IAClB,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,GAAG,CAAA;IAC5C,gBAAgB,CAAC,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IACtD,OAAO,IAAI,GAAG,CAAA;CAChB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DataObjectClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectClass.js","sourceRoot":"","sources":["../../../src/components/types/DataObjectClass.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { DataObjectProperties } from '../../properties';
2
+ import { ObjectUri } from '../ObjectUri';
3
+ export interface DataObjectParams {
4
+ uri?: string | ObjectUri;
5
+ properties: DataObjectProperties;
6
+ parentProp?: string;
7
+ }
8
+ //# sourceMappingURL=DataObjectParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectParams.d.ts","sourceRoot":"","sources":["../../../src/components/types/DataObjectParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,WAAW,gBAAgB;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,UAAU,EAAE,oBAAoB,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DataObjectParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectParams.js","sourceRoot":"","sources":["../../../src/components/types/DataObjectParams.ts"],"names":[],"mappings":""}
@@ -25,3 +25,4 @@ export interface DataObjectType {
25
25
  }): this;
26
26
  asProxy(): any;
27
27
  }
28
+ //# sourceMappingURL=DataObjectType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectType.d.ts","sourceRoot":"","sources":["../../../src/components/types/DataObjectType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,cAAc;IAC5B,GAAG,EAAE,SAAS,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,GAAG,CAAA;IACT,KAAK,EAAE,GAAG,CAAA;IACV,UAAU,EAAE,GAAG,CAAA;IACf,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAE9B,aAAa,CAAC,UAAU,EAAE,GAAG,GAAG,IAAI,CAAA;IACpC,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAAA;IAC7B,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAClC,WAAW,IAAI,OAAO,CAAA;IACtB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACzB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,CAAA;IAC/B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAC/B,WAAW,IAAI,GAAG,CAAA;IAClB,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,GAAG,CAAA;IAC5C,gBAAgB,CAAC,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IACtD,OAAO,IAAI,GAAG,CAAA;CAChB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DataObjectType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataObjectType.js","sourceRoot":"","sources":["../../../src/components/types/DataObjectType.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import { BaseObjectClass } from './BaseObjectClass';
2
2
  export interface EntityClass extends BaseObjectClass {
3
3
  }
4
+ //# sourceMappingURL=EntityClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityClass.d.ts","sourceRoot":"","sources":["../../../src/components/types/EntityClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=EntityClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityClass.js","sourceRoot":"","sources":["../../../src/components/types/EntityClass.ts"],"names":[],"mappings":""}
@@ -7,3 +7,4 @@ export interface Meta {
7
7
  count: number;
8
8
  updatedAt: number;
9
9
  }
10
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/components/types/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC,CAAC,SAAS,cAAc;IACtD,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,IAAI,EAAE,IAAI,CAAA;CACZ;AAED,MAAM,WAAW,IAAI;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CACnB"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.js","sourceRoot":"","sources":["../../../src/components/types/Payload.ts"],"names":[],"mappings":""}
@@ -4,3 +4,4 @@ export type Persisted<T> = {
4
4
  uid: string;
5
5
  uri: ObjectUri;
6
6
  } & Proxy<T>;
7
+ //# sourceMappingURL=Persisted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Persisted.d.ts","sourceRoot":"","sources":["../../../src/components/types/Persisted.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,SAAS,CAAA;CAChB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Persisted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Persisted.js","sourceRoot":"","sources":["../../../src/components/types/Persisted.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Properties.d.ts","sourceRoot":"","sources":["../../../src/components/types/Properties.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../src/components/types/Properties.ts"],"names":[],"mappings":""}
@@ -8,3 +8,4 @@ export type Proxy<T> = T & {
8
8
  readonly core: BaseObjectClass;
9
9
  };
10
10
  export {};
11
+ //# sourceMappingURL=ProxyConstructor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyConstructor.d.ts","sourceRoot":"","sources":["../../../src/components/types/ProxyConstructor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,UAAU,gBAAgB;IACvB,KAAK,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;CAC1E;AAED,eAAO,MAAM,gBAAgB,kBAA4B,CAAA;AAEzD,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,MAAM,CAAA;IAC7B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;CAEhC,CAAA"}
@@ -2,3 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProxyConstructor = void 0;
4
4
  exports.ProxyConstructor = Proxy;
5
+ //# sourceMappingURL=ProxyConstructor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyConstructor.js","sourceRoot":"","sources":["../../../src/components/types/ProxyConstructor.ts"],"names":[],"mappings":";;;AAMa,QAAA,gBAAgB,GAAG,KAAyB,CAAA"}
@@ -7,3 +7,4 @@ export type toJSONParams = {
7
7
  [propType: string]: Function;
8
8
  };
9
9
  };
10
+ //# sourceMappingURL=toJSONParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toJSONParams.d.ts","sourceRoot":"","sources":["../../../src/components/types/toJSONParams.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAExB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,UAAU,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAA;CAC/C,CAAA"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=toJSONParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toJSONParams.js","sourceRoot":"","sources":["../../../src/components/types/toJSONParams.ts"],"names":[],"mappings":""}
@@ -3,6 +3,7 @@ import * as statuses from './common/statuses';
3
3
  import { Property } from './properties/Property';
4
4
  import { BaseProperty, BasePropertyType } from './properties/BaseProperty';
5
5
  import { StringProperty, StringPropertyType } from './properties/StringProperty';
6
+ import { NumberProperty, NumberPropertyType } from './properties/NumberProperty';
6
7
  import { EnumProperty, EnumPropertyType } from './properties/EnumProperty';
7
8
  import { BooleanProperty, BooleanPropertyType } from './properties/BooleanProperty';
8
9
  import { ObjectProperty, ObjectPropertyType, returnAs } from './properties/ObjectProperty';
@@ -22,4 +23,7 @@ import { Proxy } from './components/types/ProxyConstructor';
22
23
  import { UserType, User, UserProperties } from './components/User';
23
24
  import { EntityType, Entity } from './components/Entity';
24
25
  import { BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, GoneError } from './common/ResourcesErrors';
25
- export { statuses, Core, Property, BaseProperty, BasePropertyType, BooleanProperty, BooleanPropertyType, DateTimeProperty, DateTimePropertyType, EnumProperty, EnumPropertyType, HashProperty, HashPropertyType, CollectionProperty, CollectionPropertyType, ArrayProperty, ArrayPropertyType, ObjectProperty, ObjectPropertyType, returnAs, StringProperty, StringPropertyType, ObjectUri, DataObjectClass, DataObject, DataObjectProperties, AbstractObject, BaseObjectType, BaseObject, BaseObjectProperties, User, UserType, UserProperties, Proxy, Entity, EntityType, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, GoneError, };
26
+ import { DataObjectParams } from './components/types/DataObjectParams';
27
+ export { statuses, Core, Property, BaseProperty, BooleanProperty, DateTimeProperty, EnumProperty, HashProperty, CollectionProperty, ArrayProperty, ObjectProperty, NumberProperty, returnAs, StringProperty, ObjectUri, DataObject, AbstractObject, BaseObject, BaseObjectProperties, User, UserProperties, Entity, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, GoneError, };
28
+ export type { BasePropertyType, BooleanPropertyType, DataObjectParams, DateTimePropertyType, EnumPropertyType, HashPropertyType, CollectionPropertyType, ArrayPropertyType, ObjectPropertyType, NumberPropertyType, StringPropertyType, DataObjectClass, DataObjectProperties, BaseObjectType, UserType, Proxy, EntityType, };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,gBAAgB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ExD,OAAO,EACJ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACX,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,OAAO,EACJ,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EACR,cAAc,EACd,SAAS,EACT,UAAU,EACV,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,IAAI,EACJ,cAAc,EACd,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,GACX,CAAA;AAED,YAAY,EACT,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,QAAQ,EACR,KAAK,EACL,UAAU,GACZ,CAAA"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.GoneError = exports.NotFoundError = exports.ForbiddenError = exports.UnauthorizedError = exports.BadRequestError = exports.Entity = exports.UserProperties = exports.User = exports.BaseObjectProperties = exports.BaseObject = exports.AbstractObject = exports.DataObject = exports.ObjectUri = exports.StringProperty = exports.returnAs = exports.ObjectProperty = exports.ArrayProperty = exports.CollectionProperty = exports.HashProperty = exports.EnumProperty = exports.DateTimeProperty = exports.BooleanProperty = exports.BaseProperty = exports.Property = exports.Core = exports.statuses = void 0;
26
+ exports.GoneError = exports.NotFoundError = exports.ForbiddenError = exports.UnauthorizedError = exports.BadRequestError = exports.Entity = exports.UserProperties = exports.User = exports.BaseObjectProperties = exports.BaseObject = exports.AbstractObject = exports.DataObject = exports.ObjectUri = exports.StringProperty = exports.returnAs = exports.NumberProperty = exports.ObjectProperty = exports.ArrayProperty = exports.CollectionProperty = exports.HashProperty = exports.EnumProperty = exports.DateTimeProperty = exports.BooleanProperty = exports.BaseProperty = exports.Property = exports.Core = exports.statuses = void 0;
27
27
  const Core_1 = require("./Core");
28
28
  Object.defineProperty(exports, "Core", { enumerable: true, get: function () { return Core_1.Core; } });
29
29
  const statuses = __importStar(require("./common/statuses"));
@@ -34,6 +34,8 @@ const BaseProperty_1 = require("./properties/BaseProperty");
34
34
  Object.defineProperty(exports, "BaseProperty", { enumerable: true, get: function () { return BaseProperty_1.BaseProperty; } });
35
35
  const StringProperty_1 = require("./properties/StringProperty");
36
36
  Object.defineProperty(exports, "StringProperty", { enumerable: true, get: function () { return StringProperty_1.StringProperty; } });
37
+ const NumberProperty_1 = require("./properties/NumberProperty");
38
+ Object.defineProperty(exports, "NumberProperty", { enumerable: true, get: function () { return NumberProperty_1.NumberProperty; } });
37
39
  const EnumProperty_1 = require("./properties/EnumProperty");
38
40
  Object.defineProperty(exports, "EnumProperty", { enumerable: true, get: function () { return EnumProperty_1.EnumProperty; } });
39
41
  const BooleanProperty_1 = require("./properties/BooleanProperty");
@@ -70,3 +72,4 @@ Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: fun
70
72
  Object.defineProperty(exports, "ForbiddenError", { enumerable: true, get: function () { return ResourcesErrors_1.ForbiddenError; } });
71
73
  Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return ResourcesErrors_1.NotFoundError; } });
72
74
  Object.defineProperty(exports, "GoneError", { enumerable: true, get: function () { return ResourcesErrors_1.GoneError; } });
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AA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;
21
21
  }
22
+ //# sourceMappingURL=ArrayProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayProperty.d.ts","sourceRoot":"","sources":["../../src/properties/ArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAG/D,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,qBAAa,aAAc,SAAQ,YAAY;IAC5C,MAAM,CAAC,IAAI,SAAU;IACrB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAY;IAEpD,SAAS,CAAC,UAAU,EAAE,MAAM,CAAI;IAChC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAI;gBAEpB,MAAM,EAAE,iBAAiB;IAYrC,IAAI,SAAS,CAAC,GAAG,EAAE,MAAM,EAExB;IAED,IAAI,SAAS,IAJM,MAAM,CAMxB;IAED,IAAI,SAAS,CAAC,GAAG,EAAE,MAAM,EAExB;IACD,IAAI,SAAS,IAHM,MAAM,CAKxB;IAED,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,UAAU,UAAO;IAmCxC,GAAG,CAAC,SAAS,GAAE,QAAQ,GAAG,SAAqB;IAI/C,MAAM;CAGR"}
@@ -4,11 +4,12 @@ exports.ArrayProperty = void 0;
4
4
  const BaseProperty_1 = require("./BaseProperty");
5
5
  const StringProperty_1 = require("./StringProperty");
6
6
  class ArrayProperty extends BaseProperty_1.BaseProperty {
7
+ static TYPE = 'array';
8
+ _value = undefined;
9
+ _minLength = 0;
10
+ _maxLength = 0;
7
11
  constructor(config) {
8
12
  super(config);
9
- this._value = undefined;
10
- this._minLength = 0;
11
- this._maxLength = 0;
12
13
  this.minLength = config.minLength || 0;
13
14
  this.maxLength = config.maxLength || 0;
14
15
  if (this._enable(config.allowNumbers)) {
@@ -62,4 +63,4 @@ class ArrayProperty extends BaseProperty_1.BaseProperty {
62
63
  }
63
64
  }
64
65
  exports.ArrayProperty = ArrayProperty;
65
- ArrayProperty.TYPE = 'array';
66
+ //# sourceMappingURL=ArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../src/properties/ArrayProperty.ts"],"names":[],"mappings":";;;AAAA,iDAA+D;AAC/D,qDAAiD;AASjD,MAAa,aAAc,SAAQ,2BAAY;IAC5C,MAAM,CAAC,IAAI,GAAG,OAAO,CAAA;IACX,MAAM,GAA2B,SAAS,CAAA;IAE1C,UAAU,GAAW,CAAC,CAAA;IACtB,UAAU,GAAW,CAAC,CAAA;IAEhC,YAAY,MAAyB;QAClC,KAAK,CAAC,MAAM,CAAC,CAAA;QACb,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAA;QACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAA;QACtC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAAc,CAAC,aAAa,CAAC,CAAA;QAClD,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAAc,CAAC,aAAa,CAAC,CAAA;QAClD,CAAC;IACJ,CAAC;IAED,IAAI,SAAS,CAAC,GAAW;QACtB,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACvC,CAAC;IAED,IAAI,SAAS;QACV,O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