@aiao/rxdb-test 0.0.5 → 0.0.7

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.
@@ -1,4 +1,82 @@
1
1
  import { Entity, EntityBase, PropertyType, TreeAdjacencyListEntityBase, __decorateClass } from '@aiao/rxdb';
2
+ let TypeDemo = class extends EntityBase {};
3
+ TypeDemo = __decorateClass(
4
+ [
5
+ Entity({
6
+ name: "TypeDemo",
7
+ properties: [
8
+ {
9
+ name: "string",
10
+ type: PropertyType.string
11
+ },
12
+ {
13
+ name: "number",
14
+ type: PropertyType.number
15
+ },
16
+ {
17
+ name: "integer",
18
+ type: PropertyType.integer
19
+ },
20
+ {
21
+ name: "boolean",
22
+ type: PropertyType.boolean
23
+ },
24
+ {
25
+ name: "date",
26
+ type: PropertyType.date
27
+ },
28
+ {
29
+ name: "stringArray",
30
+ type: PropertyType.stringArray
31
+ },
32
+ {
33
+ name: "numberArray",
34
+ type: PropertyType.numberArray
35
+ },
36
+ {
37
+ name: "keyValue",
38
+ type: PropertyType.keyValue,
39
+ properties: [
40
+ {
41
+ name: "string",
42
+ type: PropertyType.string
43
+ },
44
+ {
45
+ name: "number",
46
+ type: PropertyType.number
47
+ },
48
+ {
49
+ name: "integer",
50
+ type: PropertyType.integer
51
+ },
52
+ {
53
+ name: "boolean",
54
+ type: PropertyType.boolean
55
+ },
56
+ {
57
+ name: "date",
58
+ type: PropertyType.date
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ name: "json",
64
+ type: PropertyType.json
65
+ }
66
+ ],
67
+ repository: "Repository",
68
+ namespace: "public",
69
+ relations: [],
70
+ indexes: [],
71
+ computedProperties: [],
72
+ extends: [
73
+ "EntityBase"
74
+ ],
75
+ displayName: "TypeDemo"
76
+ })
77
+ ],
78
+ TypeDemo
79
+ );
2
80
  let Todo = class extends EntityBase {};
3
81
  Todo = __decorateClass(
4
82
  [
@@ -19,6 +97,7 @@ Todo = __decorateClass(
19
97
  namespace: "public",
20
98
  relations: [],
21
99
  indexes: [],
100
+ computedProperties: [],
22
101
  extends: [
23
102
  "EntityBase"
24
103
  ],
@@ -27,29 +106,215 @@ Todo = __decorateClass(
27
106
  ],
28
107
  Todo
29
108
  );
30
- let Menu = class extends TreeAdjacencyListEntityBase {};
31
- Menu = __decorateClass(
109
+ let MenuSimple = class extends TreeAdjacencyListEntityBase {};
110
+ MenuSimple = __decorateClass(
32
111
  [
33
112
  Entity({
34
- name: "Menu",
113
+ name: "MenuSimple",
35
114
  properties: [
36
115
  {
37
116
  name: "title",
38
117
  type: PropertyType.string
118
+ },
119
+ {
120
+ name: "sortOrder",
121
+ type: PropertyType.string,
122
+ nullable: true
39
123
  }
40
124
  ],
125
+ features: {
126
+ tree: {
127
+ type: "adjacency-list",
128
+ hasChildren: false
129
+ }
130
+ },
41
131
  repository: "TreeRepository",
42
132
  namespace: "public",
43
133
  relations: [],
44
134
  indexes: [],
135
+ computedProperties: [],
136
+ extends: [
137
+ "TreeAdjacencyListEntityBase",
138
+ "EntityBase"
139
+ ],
140
+ displayName: "MenuSimple"
141
+ })
142
+ ],
143
+ MenuSimple
144
+ );
145
+ let MenuLarge = class extends TreeAdjacencyListEntityBase {};
146
+ MenuLarge = __decorateClass(
147
+ [
148
+ Entity({
149
+ name: "MenuLarge",
150
+ properties: [
151
+ {
152
+ name: "title",
153
+ type: PropertyType.string
154
+ },
155
+ {
156
+ name: "sortOrder",
157
+ type: PropertyType.string,
158
+ nullable: true
159
+ }
160
+ ],
161
+ features: {
162
+ tree: {
163
+ type: "adjacency-list",
164
+ hasChildren: true
165
+ }
166
+ },
167
+ repository: "TreeRepository",
168
+ namespace: "public",
169
+ relations: [],
170
+ indexes: [],
171
+ computedProperties: [],
172
+ extends: [
173
+ "TreeAdjacencyListEntityBase",
174
+ "EntityBase"
175
+ ],
176
+ displayName: "MenuLarge"
177
+ })
178
+ ],
179
+ MenuLarge
180
+ );
181
+ let FileNode = class extends TreeAdjacencyListEntityBase {};
182
+ FileNode = __decorateClass(
183
+ [
184
+ Entity({
185
+ name: "FileNode",
186
+ properties: [
187
+ {
188
+ name: "name",
189
+ type: PropertyType.string,
190
+ nullable: false
191
+ },
192
+ {
193
+ name: "type",
194
+ type: PropertyType.string,
195
+ nullable: false
196
+ },
197
+ {
198
+ name: "sortOrder",
199
+ type: PropertyType.string,
200
+ nullable: true
201
+ },
202
+ {
203
+ name: "extension",
204
+ type: PropertyType.string,
205
+ nullable: true
206
+ },
207
+ {
208
+ name: "size",
209
+ type: PropertyType.number,
210
+ nullable: true
211
+ }
212
+ ],
213
+ features: {
214
+ tree: {
215
+ type: "adjacency-list",
216
+ hasChildren: false
217
+ }
218
+ },
219
+ indexes: [
220
+ {
221
+ name: "parent_sort",
222
+ properties: [
223
+ "parentId",
224
+ "sortOrder"
225
+ ]
226
+ },
227
+ {
228
+ name: "parent_fullname",
229
+ properties: [
230
+ "parentId",
231
+ "name",
232
+ "extension"
233
+ ],
234
+ unique: true
235
+ }
236
+ ],
237
+ repository: "TreeRepository",
238
+ namespace: "public",
239
+ relations: [],
240
+ computedProperties: [],
241
+ extends: [
242
+ "TreeAdjacencyListEntityBase",
243
+ "EntityBase"
244
+ ],
245
+ displayName: "FileNode"
246
+ })
247
+ ],
248
+ FileNode
249
+ );
250
+ let FileLarge = class extends TreeAdjacencyListEntityBase {};
251
+ FileLarge = __decorateClass(
252
+ [
253
+ Entity({
254
+ name: "FileLarge",
255
+ properties: [
256
+ {
257
+ name: "name",
258
+ type: PropertyType.string,
259
+ nullable: false
260
+ },
261
+ {
262
+ name: "type",
263
+ type: PropertyType.string,
264
+ nullable: false
265
+ },
266
+ {
267
+ name: "sortOrder",
268
+ type: PropertyType.string,
269
+ nullable: true
270
+ },
271
+ {
272
+ name: "extension",
273
+ type: PropertyType.string,
274
+ nullable: true
275
+ },
276
+ {
277
+ name: "size",
278
+ type: PropertyType.number,
279
+ nullable: true
280
+ }
281
+ ],
282
+ features: {
283
+ tree: {
284
+ type: "adjacency-list",
285
+ hasChildren: true
286
+ }
287
+ },
288
+ indexes: [
289
+ {
290
+ name: "parent_sort",
291
+ properties: [
292
+ "parentId",
293
+ "sortOrder"
294
+ ]
295
+ },
296
+ {
297
+ name: "parent_fullname",
298
+ properties: [
299
+ "parentId",
300
+ "name",
301
+ "extension"
302
+ ],
303
+ unique: true
304
+ }
305
+ ],
306
+ repository: "TreeRepository",
307
+ namespace: "public",
308
+ relations: [],
309
+ computedProperties: [],
45
310
  extends: [
46
311
  "TreeAdjacencyListEntityBase",
47
312
  "EntityBase"
48
313
  ],
49
- displayName: "Menu"
314
+ displayName: "FileLarge"
50
315
  })
51
316
  ],
52
- Menu
317
+ FileLarge
53
318
  );
54
- const ENTITIES = [ Menu, Todo ];
55
- export { ENTITIES, Menu, Todo };
319
+ const ENTITIES = [ FileLarge, FileNode, MenuLarge, MenuSimple, Todo, TypeDemo ];
320
+ export { ENTITIES, FileLarge, FileNode, MenuLarge, MenuSimple, Todo, TypeDemo };
@@ -0,0 +1,16 @@
1
+ import { EntityType, IEntity, ITreeEntity, RuleGroupBase, UUID } from '@aiao/rxdb';
2
+ import { Observable } from 'rxjs';
3
+
4
+ /**
5
+ * rxdb
6
+ */
7
+ declare module "@aiao/rxdb" {
8
+ /**
9
+ * RxDB
10
+ */
11
+ interface RxDB {
12
+ }
13
+ }
14
+
15
+ export declare const ENTITIES: EntityType[];
16
+
@@ -0,0 +1,3 @@
1
+ import { Entity, __decorateClass } from '@aiao/rxdb';
2
+ const ENTITIES = [ ];
3
+ export { ENTITIES, };