@aiao/rxdb-test 0.0.15 → 0.0.17

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 (50) hide show
  1. package/README.md +30 -1
  2. package/dist/entities/FileLarge.d.ts +339 -0
  3. package/dist/entities/FileLarge.js +77 -0
  4. package/dist/entities/FileNode.d.ts +335 -0
  5. package/dist/entities/FileNode.js +77 -0
  6. package/dist/entities/MenuLarge.d.ts +294 -0
  7. package/dist/entities/MenuLarge.js +41 -0
  8. package/dist/entities/MenuSimple.d.ts +290 -0
  9. package/dist/entities/MenuSimple.js +41 -0
  10. package/dist/entities/Todo.d.ts +165 -0
  11. package/dist/entities/Todo.js +34 -0
  12. package/dist/entities/TypeDemo.d.ts +289 -0
  13. package/dist/entities/TypeDemo.js +137 -0
  14. package/dist/entities/index.d.ts +14 -1655
  15. package/dist/entities/index.js +6 -360
  16. package/dist/graph/index.d.ts +1 -2
  17. package/dist/graph/index.js +1 -1
  18. package/dist/shop/Attribute.d.ts +992 -0
  19. package/dist/shop/Attribute.js +50 -0
  20. package/dist/shop/AttributeValue.d.ts +999 -0
  21. package/dist/shop/AttributeValue.js +51 -0
  22. package/dist/shop/Category.d.ts +772 -0
  23. package/dist/shop/Category.js +52 -0
  24. package/dist/shop/IdCard.d.ts +647 -0
  25. package/dist/shop/IdCard.js +43 -0
  26. package/dist/shop/Order.d.ts +690 -0
  27. package/dist/shop/Order.js +66 -0
  28. package/dist/shop/OrderItem.d.ts +665 -0
  29. package/dist/shop/OrderItem.js +76 -0
  30. package/dist/shop/Product.d.ts +761 -0
  31. package/dist/shop/Product.js +58 -0
  32. package/dist/shop/SKU.d.ts +634 -0
  33. package/dist/shop/SKU.js +74 -0
  34. package/dist/shop/SKUAttributes.d.ts +625 -0
  35. package/dist/shop/SKUAttributes.js +56 -0
  36. package/dist/shop/User.d.ts +679 -0
  37. package/dist/shop/User.js +74 -0
  38. package/dist/shop/index.d.ts +52 -2990
  39. package/dist/shop/index.js +10 -528
  40. package/dist/system/RxDBBranch.d.ts +396 -0
  41. package/dist/system/RxDBBranch.js +106 -0
  42. package/dist/system/RxDBChange.d.ts +361 -0
  43. package/dist/system/RxDBChange.js +123 -0
  44. package/dist/system/RxDBMigration.d.ts +167 -0
  45. package/dist/system/RxDBMigration.js +40 -0
  46. package/dist/system/RxDBSync.d.ts +339 -0
  47. package/dist/system/RxDBSync.js +122 -0
  48. package/dist/system/index.d.ts +9 -1240
  49. package/dist/system/index.js +4 -384
  50. package/package.json +3 -3
@@ -1,449 +1,17 @@
1
- import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, FindTreeOptions, IEntity, ITreeEntity, KeyValueRules, NumberArrayRules, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationExistsRules, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupBase, StringArrayRules, StringRules, TreeAdjacencyListEntityBase, UUID, UUIDRules } from '@aiao/rxdb';
2
- import { Observable } from 'rxjs';
3
-
4
- /**
5
- * rule
6
- */
7
- declare type TypeDemoRule = UUIDRules<TypeDemo, 'id'>
8
- | DateRules<TypeDemo, 'createdAt'>
9
- | DateRules<TypeDemo, 'updatedAt'>
10
- | StringRules<TypeDemo, 'createdBy'>
11
- | StringRules<TypeDemo, 'updatedBy'>
12
- | StringRules<TypeDemo, 'string'>
13
- | NumberRules<TypeDemo, 'number'>
14
- | NumberRules<TypeDemo, 'integer'>
15
- | BooleanRules<TypeDemo, 'boolean'>
16
- | DateRules<TypeDemo, 'date'>
17
- | StringRules<TypeDemo, 'enum'>
18
- | StringArrayRules<TypeDemo, 'stringArray', string>
19
- | NumberArrayRules<TypeDemo, 'numberArray', number>
20
- | KeyValueRules<TypeDemo, 'keyValue', Partial<TypeDemoKeyValueKeyValue>>
21
- | RelationStringRules<'keyValue.string', string>
22
- | RelationNumberRules<'keyValue.number', number>
23
- | RelationNumberRules<'keyValue.integer', number>
24
- | RelationBooleanRules<'keyValue.boolean', boolean>
25
- | RelationDateRules<'keyValue.date', Date>;
26
-
27
- /**
28
- * RuleGroupBase
29
- */
30
- export declare type TypeDemoRuleGroup = RuleGroupBase<typeof TypeDemo,
31
- |'id'
32
- |'createdAt'
33
- |'updatedAt'
34
- |'createdBy'
35
- |'updatedBy'
36
- |'string'
37
- |'number'
38
- |'integer'
39
- |'boolean'
40
- |'date'
41
- |'enum'
42
- |'stringArray'
43
- |'numberArray'
44
- |'keyValue'
45
- |'keyValue.string'
46
- |'keyValue.number'
47
- |'keyValue.integer'
48
- |'keyValue.boolean'
49
- |'keyValue.date',
50
- TypeDemoRule>;
51
-
52
- /**
53
- * OrderByField
54
- */
55
- declare type TypeDemoOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "string" | "number" | "integer" | "boolean" | "date" | "enum" | "stringArray" | "numberArray" | "keyValue" | "json";
56
-
57
- /**
58
- * rule
59
- */
60
- declare type TodoRule = UUIDRules<Todo, 'id'>
61
- | DateRules<Todo, 'createdAt'>
62
- | DateRules<Todo, 'updatedAt'>
63
- | StringRules<Todo, 'createdBy'>
64
- | StringRules<Todo, 'updatedBy'>
65
- | StringRules<Todo, 'title'>
66
- | BooleanRules<Todo, 'completed'>;
67
-
68
- /**
69
- * RuleGroupBase
70
- */
71
- export declare type TodoRuleGroup = RuleGroupBase<typeof Todo,
72
- |'id'
73
- |'createdAt'
74
- |'updatedAt'
75
- |'createdBy'
76
- |'updatedBy'
77
- |'title'
78
- |'completed',
79
- TodoRule>;
80
-
81
- /**
82
- * OrderByField
83
- */
84
- declare type TodoOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "title" | "completed";
85
-
86
- /**
87
- * rule
88
- */
89
- declare type MenuSimpleRule = UUIDRules<MenuSimple, 'id'>
90
- | DateRules<MenuSimple, 'createdAt'>
91
- | DateRules<MenuSimple, 'updatedAt'>
92
- | StringRules<MenuSimple, 'createdBy'>
93
- | StringRules<MenuSimple, 'updatedBy'>
94
- | StringRules<MenuSimple, 'title'>
95
- | StringRules<MenuSimple, 'sortOrder'>
96
- | UUIDRules<MenuSimple, 'parentId'>
97
- | RelationExistsRules<'children', MenuSimpleRuleGroup>
98
- | RelationUUIDRules<'children.id', UUID>
99
- | RelationDateRules<'children.createdAt', Date>
100
- | RelationDateRules<'children.updatedAt', Date>
101
- | RelationStringRules<'children.createdBy', string | null>
102
- | RelationStringRules<'children.updatedBy', string | null>
103
- | RelationStringRules<'children.title', string>
104
- | RelationStringRules<'children.sortOrder', string | null>
105
- | RelationExistsRules<'parent', MenuSimpleRuleGroup>
106
- | RelationUUIDRules<'parent.id', UUID>
107
- | RelationDateRules<'parent.createdAt', Date>
108
- | RelationDateRules<'parent.updatedAt', Date>
109
- | RelationStringRules<'parent.createdBy', string | null>
110
- | RelationStringRules<'parent.updatedBy', string | null>
111
- | RelationStringRules<'parent.title', string>
112
- | RelationStringRules<'parent.sortOrder', string | null>;
113
-
114
- /**
115
- * RuleGroupBase
116
- */
117
- export declare type MenuSimpleRuleGroup = RuleGroupBase<typeof MenuSimple,
118
- |'id'
119
- |'createdAt'
120
- |'updatedAt'
121
- |'createdBy'
122
- |'updatedBy'
123
- |'title'
124
- |'sortOrder'
125
- |'parentId'
126
- |'children'
127
- |'children.id'
128
- |'children.createdAt'
129
- |'children.updatedAt'
130
- |'children.createdBy'
131
- |'children.updatedBy'
132
- |'children.title'
133
- |'children.sortOrder'
134
- |'parentId'
135
- |'parent'
136
- |'parent.id'
137
- |'parent.createdAt'
138
- |'parent.updatedAt'
139
- |'parent.createdBy'
140
- |'parent.updatedBy'
141
- |'parent.title'
142
- |'parent.sortOrder'
143
- |'parentId',
144
- MenuSimpleRule>;
145
-
146
- /**
147
- * OrderByField
148
- */
149
- declare type MenuSimpleOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "title" | "sortOrder";
150
-
151
- /**
152
- * TreeRule
153
- */
154
- declare type MenuSimpleTreeRule = RelationDateRules<'children.createdAt', Date>
155
- | RelationDateRules<'children.updatedAt', Date>
156
- | RelationStringRules<'children.createdBy', string | null>
157
- | RelationStringRules<'children.updatedBy', string | null>
158
- | RelationStringRules<'children.title', string>
159
- | RelationStringRules<'children.sortOrder', string | null>;
160
-
161
- /**
162
- * TreeRuleGroup
163
- */
164
- export declare type MenuSimpleTreeRuleGroup = RuleGroupBase<typeof MenuSimple, 'children.createdAt' | 'children.updatedAt' | 'children.createdBy' | 'children.updatedBy' | 'children.title' | 'children.sortOrder', MenuSimpleTreeRule>;
165
-
166
- /**
167
- * rule
168
- */
169
- declare type MenuLargeRule = UUIDRules<MenuLarge, 'id'>
170
- | DateRules<MenuLarge, 'createdAt'>
171
- | DateRules<MenuLarge, 'updatedAt'>
172
- | StringRules<MenuLarge, 'createdBy'>
173
- | StringRules<MenuLarge, 'updatedBy'>
174
- | StringRules<MenuLarge, 'title'>
175
- | StringRules<MenuLarge, 'sortOrder'>
176
- | UUIDRules<MenuLarge, 'parentId'>
177
- | RelationExistsRules<'children', MenuLargeRuleGroup>
178
- | RelationUUIDRules<'children.id', UUID>
179
- | RelationDateRules<'children.createdAt', Date>
180
- | RelationDateRules<'children.updatedAt', Date>
181
- | RelationStringRules<'children.createdBy', string | null>
182
- | RelationStringRules<'children.updatedBy', string | null>
183
- | RelationStringRules<'children.title', string>
184
- | RelationStringRules<'children.sortOrder', string | null>
185
- | RelationExistsRules<'parent', MenuLargeRuleGroup>
186
- | RelationUUIDRules<'parent.id', UUID>
187
- | RelationDateRules<'parent.createdAt', Date>
188
- | RelationDateRules<'parent.updatedAt', Date>
189
- | RelationStringRules<'parent.createdBy', string | null>
190
- | RelationStringRules<'parent.updatedBy', string | null>
191
- | RelationStringRules<'parent.title', string>
192
- | RelationStringRules<'parent.sortOrder', string | null>;
193
-
194
- /**
195
- * RuleGroupBase
196
- */
197
- export declare type MenuLargeRuleGroup = RuleGroupBase<typeof MenuLarge,
198
- |'id'
199
- |'createdAt'
200
- |'updatedAt'
201
- |'createdBy'
202
- |'updatedBy'
203
- |'title'
204
- |'sortOrder'
205
- |'parentId'
206
- |'children'
207
- |'children.id'
208
- |'children.createdAt'
209
- |'children.updatedAt'
210
- |'children.createdBy'
211
- |'children.updatedBy'
212
- |'children.title'
213
- |'children.sortOrder'
214
- |'parentId'
215
- |'parent'
216
- |'parent.id'
217
- |'parent.createdAt'
218
- |'parent.updatedAt'
219
- |'parent.createdBy'
220
- |'parent.updatedBy'
221
- |'parent.title'
222
- |'parent.sortOrder'
223
- |'parentId',
224
- MenuLargeRule>;
225
-
226
- /**
227
- * OrderByField
228
- */
229
- declare type MenuLargeOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "title" | "sortOrder";
230
-
231
- /**
232
- * TreeRule
233
- */
234
- declare type MenuLargeTreeRule = RelationDateRules<'children.createdAt', Date>
235
- | RelationDateRules<'children.updatedAt', Date>
236
- | RelationStringRules<'children.createdBy', string | null>
237
- | RelationStringRules<'children.updatedBy', string | null>
238
- | RelationStringRules<'children.title', string>
239
- | RelationStringRules<'children.sortOrder', string | null>;
240
-
241
- /**
242
- * TreeRuleGroup
243
- */
244
- export declare type MenuLargeTreeRuleGroup = RuleGroupBase<typeof MenuLarge, 'children.createdAt' | 'children.updatedAt' | 'children.createdBy' | 'children.updatedBy' | 'children.title' | 'children.sortOrder', MenuLargeTreeRule>;
245
-
246
- /**
247
- * rule
248
- */
249
- declare type FileNodeRule = UUIDRules<FileNode, 'id'>
250
- | DateRules<FileNode, 'createdAt'>
251
- | DateRules<FileNode, 'updatedAt'>
252
- | StringRules<FileNode, 'createdBy'>
253
- | StringRules<FileNode, 'updatedBy'>
254
- | StringRules<FileNode, 'name'>
255
- | StringRules<FileNode, 'type'>
256
- | StringRules<FileNode, 'sortOrder'>
257
- | StringRules<FileNode, 'extension'>
258
- | NumberRules<FileNode, 'size'>
259
- | UUIDRules<FileNode, 'parentId'>
260
- | RelationExistsRules<'children', FileNodeRuleGroup>
261
- | RelationUUIDRules<'children.id', UUID>
262
- | RelationDateRules<'children.createdAt', Date>
263
- | RelationDateRules<'children.updatedAt', Date>
264
- | RelationStringRules<'children.createdBy', string | null>
265
- | RelationStringRules<'children.updatedBy', string | null>
266
- | RelationStringRules<'children.name', string>
267
- | RelationStringRules<'children.type', string>
268
- | RelationStringRules<'children.sortOrder', string | null>
269
- | RelationStringRules<'children.extension', string | null>
270
- | RelationNumberRules<'children.size', number | null>
271
- | RelationExistsRules<'parent', FileNodeRuleGroup>
272
- | RelationUUIDRules<'parent.id', UUID>
273
- | RelationDateRules<'parent.createdAt', Date>
274
- | RelationDateRules<'parent.updatedAt', Date>
275
- | RelationStringRules<'parent.createdBy', string | null>
276
- | RelationStringRules<'parent.updatedBy', string | null>
277
- | RelationStringRules<'parent.name', string>
278
- | RelationStringRules<'parent.type', string>
279
- | RelationStringRules<'parent.sortOrder', string | null>
280
- | RelationStringRules<'parent.extension', string | null>
281
- | RelationNumberRules<'parent.size', number | null>;
282
-
283
- /**
284
- * RuleGroupBase
285
- */
286
- export declare type FileNodeRuleGroup = RuleGroupBase<typeof FileNode,
287
- |'id'
288
- |'createdAt'
289
- |'updatedAt'
290
- |'createdBy'
291
- |'updatedBy'
292
- |'name'
293
- |'type'
294
- |'sortOrder'
295
- |'extension'
296
- |'size'
297
- |'parentId'
298
- |'children'
299
- |'children.id'
300
- |'children.createdAt'
301
- |'children.updatedAt'
302
- |'children.createdBy'
303
- |'children.updatedBy'
304
- |'children.name'
305
- |'children.type'
306
- |'children.sortOrder'
307
- |'children.extension'
308
- |'children.size'
309
- |'parentId'
310
- |'parent'
311
- |'parent.id'
312
- |'parent.createdAt'
313
- |'parent.updatedAt'
314
- |'parent.createdBy'
315
- |'parent.updatedBy'
316
- |'parent.name'
317
- |'parent.type'
318
- |'parent.sortOrder'
319
- |'parent.extension'
320
- |'parent.size'
321
- |'parentId',
322
- FileNodeRule>;
323
-
324
- /**
325
- * OrderByField
326
- */
327
- declare type FileNodeOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "type" | "sortOrder" | "extension" | "size";
328
-
329
- /**
330
- * TreeRule
331
- */
332
- declare type FileNodeTreeRule = RelationDateRules<'children.createdAt', Date>
333
- | RelationDateRules<'children.updatedAt', Date>
334
- | RelationStringRules<'children.createdBy', string | null>
335
- | RelationStringRules<'children.updatedBy', string | null>
336
- | RelationStringRules<'children.name', string>
337
- | RelationStringRules<'children.type', string>
338
- | RelationStringRules<'children.sortOrder', string | null>
339
- | RelationStringRules<'children.extension', string | null>
340
- | RelationNumberRules<'children.size', number | null>;
341
-
342
- /**
343
- * TreeRuleGroup
344
- */
345
- export declare type FileNodeTreeRuleGroup = RuleGroupBase<typeof FileNode, 'children.createdAt' | 'children.updatedAt' | 'children.createdBy' | 'children.updatedBy' | 'children.name' | 'children.type' | 'children.sortOrder' | 'children.extension' | 'children.size', FileNodeTreeRule>;
346
-
347
- /**
348
- * rule
349
- */
350
- declare type FileLargeRule = UUIDRules<FileLarge, 'id'>
351
- | DateRules<FileLarge, 'createdAt'>
352
- | DateRules<FileLarge, 'updatedAt'>
353
- | StringRules<FileLarge, 'createdBy'>
354
- | StringRules<FileLarge, 'updatedBy'>
355
- | StringRules<FileLarge, 'name'>
356
- | StringRules<FileLarge, 'type'>
357
- | StringRules<FileLarge, 'sortOrder'>
358
- | StringRules<FileLarge, 'extension'>
359
- | NumberRules<FileLarge, 'size'>
360
- | UUIDRules<FileLarge, 'parentId'>
361
- | RelationExistsRules<'children', FileLargeRuleGroup>
362
- | RelationUUIDRules<'children.id', UUID>
363
- | RelationDateRules<'children.createdAt', Date>
364
- | RelationDateRules<'children.updatedAt', Date>
365
- | RelationStringRules<'children.createdBy', string | null>
366
- | RelationStringRules<'children.updatedBy', string | null>
367
- | RelationStringRules<'children.name', string>
368
- | RelationStringRules<'children.type', string>
369
- | RelationStringRules<'children.sortOrder', string | null>
370
- | RelationStringRules<'children.extension', string | null>
371
- | RelationNumberRules<'children.size', number | null>
372
- | RelationExistsRules<'parent', FileLargeRuleGroup>
373
- | RelationUUIDRules<'parent.id', UUID>
374
- | RelationDateRules<'parent.createdAt', Date>
375
- | RelationDateRules<'parent.updatedAt', Date>
376
- | RelationStringRules<'parent.createdBy', string | null>
377
- | RelationStringRules<'parent.updatedBy', string | null>
378
- | RelationStringRules<'parent.name', string>
379
- | RelationStringRules<'parent.type', string>
380
- | RelationStringRules<'parent.sortOrder', string | null>
381
- | RelationStringRules<'parent.extension', string | null>
382
- | RelationNumberRules<'parent.size', number | null>;
383
-
384
- /**
385
- * RuleGroupBase
386
- */
387
- export declare type FileLargeRuleGroup = RuleGroupBase<typeof FileLarge,
388
- |'id'
389
- |'createdAt'
390
- |'updatedAt'
391
- |'createdBy'
392
- |'updatedBy'
393
- |'name'
394
- |'type'
395
- |'sortOrder'
396
- |'extension'
397
- |'size'
398
- |'parentId'
399
- |'children'
400
- |'children.id'
401
- |'children.createdAt'
402
- |'children.updatedAt'
403
- |'children.createdBy'
404
- |'children.updatedBy'
405
- |'children.name'
406
- |'children.type'
407
- |'children.sortOrder'
408
- |'children.extension'
409
- |'children.size'
410
- |'parentId'
411
- |'parent'
412
- |'parent.id'
413
- |'parent.createdAt'
414
- |'parent.updatedAt'
415
- |'parent.createdBy'
416
- |'parent.updatedBy'
417
- |'parent.name'
418
- |'parent.type'
419
- |'parent.sortOrder'
420
- |'parent.extension'
421
- |'parent.size'
422
- |'parentId',
423
- FileLargeRule>;
424
-
425
- /**
426
- * OrderByField
427
- */
428
- declare type FileLargeOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "type" | "sortOrder" | "extension" | "size";
429
-
430
- /**
431
- * TreeRule
432
- */
433
- declare type FileLargeTreeRule = RelationDateRules<'children.createdAt', Date>
434
- | RelationDateRules<'children.updatedAt', Date>
435
- | RelationStringRules<'children.createdBy', string | null>
436
- | RelationStringRules<'children.updatedBy', string | null>
437
- | RelationStringRules<'children.name', string>
438
- | RelationStringRules<'children.type', string>
439
- | RelationStringRules<'children.sortOrder', string | null>
440
- | RelationStringRules<'children.extension', string | null>
441
- | RelationNumberRules<'children.size', number | null>;
442
-
443
- /**
444
- * TreeRuleGroup
445
- */
446
- export declare type FileLargeTreeRuleGroup = RuleGroupBase<typeof FileLarge, 'children.createdAt' | 'children.updatedAt' | 'children.createdBy' | 'children.updatedBy' | 'children.name' | 'children.type' | 'children.sortOrder' | 'children.extension' | 'children.size', FileLargeTreeRule>;
1
+ import { FileLarge } from './FileLarge.js';
2
+ import { FileNode } from './FileNode.js';
3
+ import { MenuLarge } from './MenuLarge.js';
4
+ import { MenuSimple } from './MenuSimple.js';
5
+ import { Todo } from './Todo.js';
6
+ import { TypeDemo } from './TypeDemo.js';
7
+ import { EntityType } from '@aiao/rxdb';
8
+
9
+ export * from './FileLarge.js';
10
+ export * from './FileNode.js';
11
+ export * from './MenuLarge.js';
12
+ export * from './MenuSimple.js';
13
+ export * from './Todo.js';
14
+ export * from './TypeDemo.js';
447
15
 
448
16
  /**
449
17
  * rxdb
@@ -480,1214 +48,5 @@ declare module "@aiao/rxdb" {
480
48
  }
481
49
  }
482
50
 
483
- /**
484
- * 静态类型
485
- */
486
- export interface TypeDemoStaticTypes {
487
- /**
488
- * id 类型
489
- */
490
- idType: UUID;
491
- /**
492
- * 查询选项
493
- */
494
- getOptions: UUID;
495
- /**
496
- * 查询选项
497
- */
498
- findOneOrFailOptions: FindOneOrFailOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
499
- /**
500
- * 查询选项
501
- */
502
- findOptions: FindOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
503
- /**
504
- * 查询选项
505
- */
506
- findOneOptions: FindOneOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
507
- /**
508
- * 查询选项
509
- */
510
- findAllOptions: FindAllOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
511
- /**
512
- * 查询选项
513
- */
514
- findByCursorOptions: FindByCursorOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
515
- /**
516
- * 查询选项
517
- */
518
- countOptions: CountOptions<typeof TypeDemo,TypeDemoRuleGroup>;
519
- }
520
-
521
- /**
522
- * 初始化数据
523
- */
524
- export interface TypeDemoInitData {
525
- /**
526
- * string
527
- */
528
- string?: string;
529
- /**
530
- * number
531
- */
532
- number?: number;
533
- /**
534
- * integer
535
- */
536
- integer?: number;
537
- /**
538
- * boolean
539
- */
540
- boolean?: boolean;
541
- /**
542
- * date
543
- */
544
- date?: Date;
545
- /**
546
- * enum
547
- */
548
- enum?: 'active' | 'inactive' | 'pending' | null;
549
- /**
550
- * stringArray
551
- */
552
- stringArray?: string[];
553
- /**
554
- * numberArray
555
- */
556
- numberArray?: number[];
557
- /**
558
- * keyValue
559
- */
560
- keyValue?: TypeDemoKeyValueKeyValue;
561
- /**
562
- * json
563
- */
564
- json?: Record<string, any>;
565
- }
566
-
567
- /**
568
- * keyValue keyValue 类型
569
- */
570
- export interface TypeDemoKeyValueKeyValue {
571
- string: string;
572
- number: number;
573
- integer: number;
574
- boolean: boolean;
575
- date: Date;
576
- }
577
-
578
- /**
579
- * 静态类型
580
- */
581
- export interface TodoStaticTypes {
582
- /**
583
- * id 类型
584
- */
585
- idType: UUID;
586
- /**
587
- * 查询选项
588
- */
589
- getOptions: UUID;
590
- /**
591
- * 查询选项
592
- */
593
- findOneOrFailOptions: FindOneOrFailOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
594
- /**
595
- * 查询选项
596
- */
597
- findOptions: FindOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
598
- /**
599
- * 查询选项
600
- */
601
- findOneOptions: FindOneOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
602
- /**
603
- * 查询选项
604
- */
605
- findAllOptions: FindAllOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
606
- /**
607
- * 查询选项
608
- */
609
- findByCursorOptions: FindByCursorOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
610
- /**
611
- * 查询选项
612
- */
613
- countOptions: CountOptions<typeof Todo,TodoRuleGroup>;
614
- }
615
-
616
- /**
617
- * 初始化数据
618
- */
619
- export interface TodoInitData {
620
- /**
621
- * title
622
- */
623
- title?: string;
624
- /**
625
- * completed
626
- */
627
- completed?: boolean;
628
- }
629
-
630
- /**
631
- * 静态类型
632
- */
633
- export interface MenuSimpleStaticTypes {
634
- /**
635
- * id 类型
636
- */
637
- idType: UUID;
638
- /**
639
- * 查询选项
640
- */
641
- getOptions: UUID;
642
- /**
643
- * 查询选项
644
- */
645
- findOneOrFailOptions: FindOneOrFailOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
646
- /**
647
- * 查询选项
648
- */
649
- findOptions: FindOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
650
- /**
651
- * 查询选项
652
- */
653
- findOneOptions: FindOneOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
654
- /**
655
- * 查询选项
656
- */
657
- findAllOptions: FindAllOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
658
- /**
659
- * 查询选项
660
- */
661
- findByCursorOptions: FindByCursorOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
662
- /**
663
- * 查询选项
664
- */
665
- countOptions: CountOptions<typeof MenuSimple,MenuSimpleRuleGroup>;
666
- /**
667
- * 查询的实体
668
- */
669
- entity: MenuSimple;
670
- /**
671
- * 查询选项
672
- */
673
- findDescendantsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
674
- /**
675
- * 查询选项
676
- */
677
- countDescendantsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
678
- /**
679
- * 查询选项
680
- */
681
- findAncestorsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
682
- /**
683
- * 查询选项
684
- */
685
- countAncestorsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
686
- }
687
-
688
- /**
689
- * 初始化数据
690
- */
691
- export interface MenuSimpleInitData {
692
- /**
693
- * title
694
- */
695
- title?: string;
696
- /**
697
- * sortOrder
698
- */
699
- sortOrder?: string | null;
700
- }
701
-
702
- /**
703
- * 静态类型
704
- */
705
- export interface MenuLargeStaticTypes {
706
- /**
707
- * id 类型
708
- */
709
- idType: UUID;
710
- /**
711
- * 查询选项
712
- */
713
- getOptions: UUID;
714
- /**
715
- * 查询选项
716
- */
717
- findOneOrFailOptions: FindOneOrFailOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>;
718
- /**
719
- * 查询选项
720
- */
721
- findOptions: FindOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>;
722
- /**
723
- * 查询选项
724
- */
725
- findOneOptions: FindOneOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>;
726
- /**
727
- * 查询选项
728
- */
729
- findAllOptions: FindAllOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>;
730
- /**
731
- * 查询选项
732
- */
733
- findByCursorOptions: FindByCursorOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>;
734
- /**
735
- * 查询选项
736
- */
737
- countOptions: CountOptions<typeof MenuLarge,MenuLargeRuleGroup>;
738
- /**
739
- * 查询的实体
740
- */
741
- entity: MenuLarge;
742
- /**
743
- * 查询选项
744
- */
745
- findDescendantsOptions: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>;
746
- /**
747
- * 查询选项
748
- */
749
- countDescendantsOptions: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>;
750
- /**
751
- * 查询选项
752
- */
753
- findAncestorsOptions: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>;
754
- /**
755
- * 查询选项
756
- */
757
- countAncestorsOptions: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>;
758
- }
759
-
760
- /**
761
- * 初始化数据
762
- */
763
- export interface MenuLargeInitData {
764
- /**
765
- * title
766
- */
767
- title?: string;
768
- /**
769
- * sortOrder
770
- */
771
- sortOrder?: string | null;
772
- }
773
-
774
- /**
775
- * 静态类型
776
- */
777
- export interface FileNodeStaticTypes {
778
- /**
779
- * id 类型
780
- */
781
- idType: UUID;
782
- /**
783
- * 查询选项
784
- */
785
- getOptions: UUID;
786
- /**
787
- * 查询选项
788
- */
789
- findOneOrFailOptions: FindOneOrFailOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
790
- /**
791
- * 查询选项
792
- */
793
- findOptions: FindOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
794
- /**
795
- * 查询选项
796
- */
797
- findOneOptions: FindOneOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
798
- /**
799
- * 查询选项
800
- */
801
- findAllOptions: FindAllOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
802
- /**
803
- * 查询选项
804
- */
805
- findByCursorOptions: FindByCursorOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
806
- /**
807
- * 查询选项
808
- */
809
- countOptions: CountOptions<typeof FileNode,FileNodeRuleGroup>;
810
- /**
811
- * 查询的实体
812
- */
813
- entity: FileNode;
814
- /**
815
- * 查询选项
816
- */
817
- findDescendantsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
818
- /**
819
- * 查询选项
820
- */
821
- countDescendantsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
822
- /**
823
- * 查询选项
824
- */
825
- findAncestorsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
826
- /**
827
- * 查询选项
828
- */
829
- countAncestorsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
830
- }
831
-
832
- /**
833
- * 初始化数据
834
- */
835
- export interface FileNodeInitData {
836
- /**
837
- * name
838
- */
839
- name?: string;
840
- /**
841
- * type
842
- */
843
- type?: string;
844
- /**
845
- * sortOrder
846
- */
847
- sortOrder?: string | null;
848
- /**
849
- * extension
850
- */
851
- extension?: string | null;
852
- /**
853
- * size
854
- */
855
- size?: number | null;
856
- }
857
-
858
- /**
859
- * 静态类型
860
- */
861
- export interface FileLargeStaticTypes {
862
- /**
863
- * id 类型
864
- */
865
- idType: UUID;
866
- /**
867
- * 查询选项
868
- */
869
- getOptions: UUID;
870
- /**
871
- * 查询选项
872
- */
873
- findOneOrFailOptions: FindOneOrFailOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
874
- /**
875
- * 查询选项
876
- */
877
- findOptions: FindOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
878
- /**
879
- * 查询选项
880
- */
881
- findOneOptions: FindOneOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
882
- /**
883
- * 查询选项
884
- */
885
- findAllOptions: FindAllOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
886
- /**
887
- * 查询选项
888
- */
889
- findByCursorOptions: FindByCursorOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
890
- /**
891
- * 查询选项
892
- */
893
- countOptions: CountOptions<typeof FileLarge,FileLargeRuleGroup>;
894
- /**
895
- * 查询的实体
896
- */
897
- entity: FileLarge;
898
- /**
899
- * 查询选项
900
- */
901
- findDescendantsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
902
- /**
903
- * 查询选项
904
- */
905
- countDescendantsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
906
- /**
907
- * 查询选项
908
- */
909
- findAncestorsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
910
- /**
911
- * 查询选项
912
- */
913
- countAncestorsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
914
- }
915
-
916
- /**
917
- * 初始化数据
918
- */
919
- export interface FileLargeInitData {
920
- /**
921
- * name
922
- */
923
- name?: string;
924
- /**
925
- * type
926
- */
927
- type?: string;
928
- /**
929
- * sortOrder
930
- */
931
- sortOrder?: string | null;
932
- /**
933
- * extension
934
- */
935
- extension?: string | null;
936
- /**
937
- * size
938
- */
939
- size?: number | null;
940
- }
941
-
942
- /**
943
- * TypeDemo
944
- */
945
- export declare class TypeDemo extends EntityBase implements IEntity {
946
- static [ENTITY_STATIC_TYPES]: TypeDemoStaticTypes;
947
- /**
948
- * boolean
949
- */
950
- boolean: boolean;
951
- /**
952
- * date
953
- */
954
- date: Date;
955
- /**
956
- * enum
957
- */
958
- enum?: 'active' | 'inactive' | 'pending' | null;
959
- /**
960
- * integer
961
- */
962
- integer: number;
963
- /**
964
- * json
965
- */
966
- json: Record<string, any>;
967
- /**
968
- * keyValue
969
- */
970
- keyValue: TypeDemoKeyValueKeyValue;
971
- /**
972
- * number
973
- */
974
- number: number;
975
- /**
976
- * numberArray
977
- */
978
- numberArray: number[];
979
- /**
980
- * string
981
- */
982
- string: string;
983
- /**
984
- * stringArray
985
- */
986
- stringArray: string[];
987
- /**
988
- * 初始化数据
989
- * @param initData 初始化数据
990
- */
991
- constructor(initData?: TypeDemoInitData);
992
- /**
993
- * 统计实体数量
994
- * @param options 查询选项
995
- * @example
996
- * TypeDemo.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
997
- */
998
- static count(options: CountOptions<typeof TypeDemo,TypeDemoRuleGroup>): Observable<number>;
999
- /**
1000
- * 查询多个实体
1001
- * @param options 查询选项
1002
- * @example
1003
- * TypeDemo.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1004
- */
1005
- static find(options: FindOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
1006
- /**
1007
- * 查询所有实体
1008
- * @param options 查询选项
1009
- * @example
1010
- * TypeDemo.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1011
- */
1012
- static findAll(options: FindAllOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
1013
- /**
1014
- * 游标分页查询
1015
- * @param options 查询选项
1016
- * @example
1017
- * TypeDemo.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1018
- */
1019
- static findByCursor(options: FindByCursorOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
1020
- /**
1021
- * 查询单个实体,未找到时返回 undefined
1022
- * @param options 查询选项
1023
- * @example
1024
- * TypeDemo.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1025
- */
1026
- static findOne(options: FindOneOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo | undefined>;
1027
- /**
1028
- * 查询单个实体,未找到时抛出错误
1029
- * @param options 查询选项
1030
- * @example
1031
- * TypeDemo.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1032
- */
1033
- static findOneOrFail(options: FindOneOrFailOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo>;
1034
- /**
1035
- * 根据 ID 获取单个实体
1036
- * @param options 查询选项
1037
- * @example
1038
- * TypeDemo.get('123').subscribe(entity => console.log(entity));
1039
- */
1040
- static get(options: UUID): Observable<TypeDemo>;
1041
- /**
1042
- * 删除
1043
- */
1044
- remove(): Promise<TypeDemo>;
1045
- /**
1046
- * 重置数据
1047
- */
1048
- reset(): void;
1049
- /**
1050
- * 保存
1051
- */
1052
- save(): Promise<TypeDemo>;
1053
- }
1054
-
1055
- /**
1056
- * Todo
1057
- */
1058
- export declare class Todo extends EntityBase implements IEntity {
1059
- static [ENTITY_STATIC_TYPES]: TodoStaticTypes;
1060
- /**
1061
- * completed
1062
- */
1063
- completed: boolean;
1064
- /**
1065
- * title
1066
- */
1067
- title: string;
1068
- /**
1069
- * 初始化数据
1070
- * @param initData 初始化数据
1071
- */
1072
- constructor(initData?: TodoInitData);
1073
- /**
1074
- * 统计实体数量
1075
- * @param options 查询选项
1076
- * @example
1077
- * Todo.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
1078
- */
1079
- static count(options: CountOptions<typeof Todo,TodoRuleGroup>): Observable<number>;
1080
- /**
1081
- * 查询多个实体
1082
- * @param options 查询选项
1083
- * @example
1084
- * Todo.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1085
- */
1086
- static find(options: FindOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
1087
- /**
1088
- * 查询所有实体
1089
- * @param options 查询选项
1090
- * @example
1091
- * Todo.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1092
- */
1093
- static findAll(options: FindAllOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
1094
- /**
1095
- * 游标分页查询
1096
- * @param options 查询选项
1097
- * @example
1098
- * Todo.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1099
- */
1100
- static findByCursor(options: FindByCursorOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
1101
- /**
1102
- * 查询单个实体,未找到时返回 undefined
1103
- * @param options 查询选项
1104
- * @example
1105
- * Todo.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1106
- */
1107
- static findOne(options: FindOneOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo | undefined>;
1108
- /**
1109
- * 查询单个实体,未找到时抛出错误
1110
- * @param options 查询选项
1111
- * @example
1112
- * Todo.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1113
- */
1114
- static findOneOrFail(options: FindOneOrFailOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo>;
1115
- /**
1116
- * 根据 ID 获取单个实体
1117
- * @param options 查询选项
1118
- * @example
1119
- * Todo.get('123').subscribe(entity => console.log(entity));
1120
- */
1121
- static get(options: UUID): Observable<Todo>;
1122
- /**
1123
- * 删除
1124
- */
1125
- remove(): Promise<Todo>;
1126
- /**
1127
- * 重置数据
1128
- */
1129
- reset(): void;
1130
- /**
1131
- * 保存
1132
- */
1133
- save(): Promise<Todo>;
1134
- }
1135
-
1136
- /**
1137
- * MenuSimple
1138
- */
1139
- export declare class MenuSimple extends TreeAdjacencyListEntityBase implements ITreeEntity {
1140
- static [ENTITY_STATIC_TYPES]: MenuSimpleStaticTypes;
1141
- /**
1142
- * 子节点
1143
- */
1144
- readonly children$: RelationEntitiesObservable<MenuSimple>;
1145
- /**
1146
- * 父节点
1147
- */
1148
- readonly parent$: RelationEntityObservable<typeof MenuSimple>;
1149
- /**
1150
- * 父节点 id
1151
- */
1152
- parentId?: UUID | null;
1153
- /**
1154
- * sortOrder
1155
- */
1156
- sortOrder?: string | null;
1157
- /**
1158
- * title
1159
- */
1160
- title: string;
1161
- /**
1162
- * 初始化数据
1163
- * @param initData 初始化数据
1164
- */
1165
- constructor(initData?: MenuSimpleInitData);
1166
- /**
1167
- * 统计实体数量
1168
- * @param options 查询选项
1169
- * @example
1170
- * MenuSimple.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
1171
- */
1172
- static count(options: CountOptions<typeof MenuSimple,MenuSimpleRuleGroup>): Observable<number>;
1173
- /**
1174
- * 统计祖先实体数量(不包含自身)
1175
- * @param options 查询选项
1176
- * @example
1177
- * // 统计某节点的祖先层级深度
1178
- MenuSimple.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth));
1179
- */
1180
- static countAncestors(options?: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>): Observable<number>;
1181
- /**
1182
- * 统计子孙实体数量(不包含自身)
1183
- * @param options 查询选项
1184
- * @example
1185
- * // 统计某节点下的后代数量
1186
- MenuSimple.countDescendants({ entityId: root.id }).subscribe(count => console.log(count));
1187
- */
1188
- static countDescendants(options?: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>): Observable<number>;
1189
- /**
1190
- * 查询多个实体
1191
- * @param options 查询选项
1192
- * @example
1193
- * MenuSimple.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1194
- */
1195
- static find(options: FindOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>): Observable<MenuSimple[]>;
1196
- /**
1197
- * 查询所有实体
1198
- * @param options 查询选项
1199
- * @example
1200
- * MenuSimple.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1201
- */
1202
- static findAll(options: FindAllOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>): Observable<MenuSimple[]>;
1203
- /**
1204
- * 查询祖先实体(包含自身)
1205
- * @param options 查询选项
1206
- * @example
1207
- * // 查询某节点的所有祖先(面包屑导航)
1208
- MenuSimple.findAncestors({ entityId: grand.id }).subscribe(ancestors => console.log(ancestors));
1209
-
1210
- // 仅查询直接父节点(level 1)
1211
- MenuSimple.findAncestors({ entityId: grand.id, level: 1 }).subscribe(parents => console.log(parents));
1212
- */
1213
- static findAncestors(options?: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>): Observable<MenuSimple[]>;
1214
- /**
1215
- * 游标分页查询
1216
- * @param options 查询选项
1217
- * @example
1218
- * MenuSimple.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1219
- */
1220
- static findByCursor(options: FindByCursorOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>): Observable<MenuSimple[]>;
1221
- /**
1222
- * 查询子孙实体(包含自身)
1223
- * @param options 查询选项
1224
- * @example
1225
- * // 查询某节点的所有后代
1226
- MenuSimple.findDescendants({ entityId: root.id }).subscribe(list => console.log(list));
1227
-
1228
- // 仅查询直接子节点(level 1)
1229
- MenuSimple.findDescendants({ entityId: root.id, level: 1 }).subscribe(children => console.log(children));
1230
- */
1231
- static findDescendants(options?: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>): Observable<MenuSimple[]>;
1232
- /**
1233
- * 查询单个实体,未找到时返回 undefined
1234
- * @param options 查询选项
1235
- * @example
1236
- * MenuSimple.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1237
- */
1238
- static findOne(options: FindOneOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>): Observable<MenuSimple | undefined>;
1239
- /**
1240
- * 查询单个实体,未找到时抛出错误
1241
- * @param options 查询选项
1242
- * @example
1243
- * MenuSimple.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1244
- */
1245
- static findOneOrFail(options: FindOneOrFailOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>): Observable<MenuSimple>;
1246
- /**
1247
- * 根据 ID 获取单个实体
1248
- * @param options 查询选项
1249
- * @example
1250
- * MenuSimple.get('123').subscribe(entity => console.log(entity));
1251
- */
1252
- static get(options: UUID): Observable<MenuSimple>;
1253
- /**
1254
- * 删除
1255
- */
1256
- remove(): Promise<MenuSimple>;
1257
- /**
1258
- * 重置数据
1259
- */
1260
- reset(): void;
1261
- /**
1262
- * 保存
1263
- */
1264
- save(): Promise<MenuSimple>;
1265
- }
1266
-
1267
- /**
1268
- * MenuLarge
1269
- */
1270
- export declare class MenuLarge extends TreeAdjacencyListEntityBase implements ITreeEntity {
1271
- static [ENTITY_STATIC_TYPES]: MenuLargeStaticTypes;
1272
- /**
1273
- * 子节点
1274
- */
1275
- readonly children$: RelationEntitiesObservable<MenuLarge>;
1276
- /**
1277
- * 是否有子节点
1278
- */
1279
- readonly hasChildren?: boolean | null;
1280
- /**
1281
- * 父节点
1282
- */
1283
- readonly parent$: RelationEntityObservable<typeof MenuLarge>;
1284
- /**
1285
- * 父节点 id
1286
- */
1287
- parentId?: UUID | null;
1288
- /**
1289
- * sortOrder
1290
- */
1291
- sortOrder?: string | null;
1292
- /**
1293
- * title
1294
- */
1295
- title: string;
1296
- /**
1297
- * 初始化数据
1298
- * @param initData 初始化数据
1299
- */
1300
- constructor(initData?: MenuLargeInitData);
1301
- /**
1302
- * 统计实体数量
1303
- * @param options 查询选项
1304
- * @example
1305
- * MenuLarge.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
1306
- */
1307
- static count(options: CountOptions<typeof MenuLarge,MenuLargeRuleGroup>): Observable<number>;
1308
- /**
1309
- * 统计祖先实体数量(不包含自身)
1310
- * @param options 查询选项
1311
- * @example
1312
- * // 统计某节点的祖先层级深度
1313
- MenuLarge.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth));
1314
- */
1315
- static countAncestors(options?: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>): Observable<number>;
1316
- /**
1317
- * 统计子孙实体数量(不包含自身)
1318
- * @param options 查询选项
1319
- * @example
1320
- * // 统计某节点下的后代数量
1321
- MenuLarge.countDescendants({ entityId: root.id }).subscribe(count => console.log(count));
1322
- */
1323
- static countDescendants(options?: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>): Observable<number>;
1324
- /**
1325
- * 查询多个实体
1326
- * @param options 查询选项
1327
- * @example
1328
- * MenuLarge.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1329
- */
1330
- static find(options: FindOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>): Observable<MenuLarge[]>;
1331
- /**
1332
- * 查询所有实体
1333
- * @param options 查询选项
1334
- * @example
1335
- * MenuLarge.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1336
- */
1337
- static findAll(options: FindAllOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>): Observable<MenuLarge[]>;
1338
- /**
1339
- * 查询祖先实体(包含自身)
1340
- * @param options 查询选项
1341
- * @example
1342
- * // 查询某节点的所有祖先(面包屑导航)
1343
- MenuLarge.findAncestors({ entityId: grand.id }).subscribe(ancestors => console.log(ancestors));
1344
-
1345
- // 仅查询直接父节点(level 1)
1346
- MenuLarge.findAncestors({ entityId: grand.id, level: 1 }).subscribe(parents => console.log(parents));
1347
- */
1348
- static findAncestors(options?: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>): Observable<MenuLarge[]>;
1349
- /**
1350
- * 游标分页查询
1351
- * @param options 查询选项
1352
- * @example
1353
- * MenuLarge.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1354
- */
1355
- static findByCursor(options: FindByCursorOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>): Observable<MenuLarge[]>;
1356
- /**
1357
- * 查询子孙实体(包含自身)
1358
- * @param options 查询选项
1359
- * @example
1360
- * // 查询某节点的所有后代
1361
- MenuLarge.findDescendants({ entityId: root.id }).subscribe(list => console.log(list));
1362
-
1363
- // 仅查询直接子节点(level 1)
1364
- MenuLarge.findDescendants({ entityId: root.id, level: 1 }).subscribe(children => console.log(children));
1365
- */
1366
- static findDescendants(options?: FindTreeOptions<typeof MenuLarge,MenuLargeTreeRuleGroup>): Observable<MenuLarge[]>;
1367
- /**
1368
- * 查询单个实体,未找到时返回 undefined
1369
- * @param options 查询选项
1370
- * @example
1371
- * MenuLarge.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1372
- */
1373
- static findOne(options: FindOneOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>): Observable<MenuLarge | undefined>;
1374
- /**
1375
- * 查询单个实体,未找到时抛出错误
1376
- * @param options 查询选项
1377
- * @example
1378
- * MenuLarge.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1379
- */
1380
- static findOneOrFail(options: FindOneOrFailOptions<typeof MenuLarge,MenuLargeRuleGroup,MenuLargeOrderByField>): Observable<MenuLarge>;
1381
- /**
1382
- * 根据 ID 获取单个实体
1383
- * @param options 查询选项
1384
- * @example
1385
- * MenuLarge.get('123').subscribe(entity => console.log(entity));
1386
- */
1387
- static get(options: UUID): Observable<MenuLarge>;
1388
- /**
1389
- * 删除
1390
- */
1391
- remove(): Promise<MenuLarge>;
1392
- /**
1393
- * 重置数据
1394
- */
1395
- reset(): void;
1396
- /**
1397
- * 保存
1398
- */
1399
- save(): Promise<MenuLarge>;
1400
- }
1401
-
1402
- /**
1403
- * FileNode
1404
- */
1405
- export declare class FileNode extends TreeAdjacencyListEntityBase implements ITreeEntity {
1406
- static [ENTITY_STATIC_TYPES]: FileNodeStaticTypes;
1407
- /**
1408
- * 子节点
1409
- */
1410
- readonly children$: RelationEntitiesObservable<FileNode>;
1411
- /**
1412
- * 父节点
1413
- */
1414
- readonly parent$: RelationEntityObservable<typeof FileNode>;
1415
- /**
1416
- * extension
1417
- */
1418
- extension?: string | null;
1419
- /**
1420
- * name
1421
- */
1422
- name: string;
1423
- /**
1424
- * 父节点 id
1425
- */
1426
- parentId?: UUID | null;
1427
- /**
1428
- * size
1429
- */
1430
- size?: number | null;
1431
- /**
1432
- * sortOrder
1433
- */
1434
- sortOrder?: string | null;
1435
- /**
1436
- * type
1437
- */
1438
- type: string;
1439
- /**
1440
- * 初始化数据
1441
- * @param initData 初始化数据
1442
- */
1443
- constructor(initData?: FileNodeInitData);
1444
- /**
1445
- * 统计实体数量
1446
- * @param options 查询选项
1447
- * @example
1448
- * FileNode.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
1449
- */
1450
- static count(options: CountOptions<typeof FileNode,FileNodeRuleGroup>): Observable<number>;
1451
- /**
1452
- * 统计祖先实体数量(不包含自身)
1453
- * @param options 查询选项
1454
- * @example
1455
- * // 统计某节点的祖先层级深度
1456
- FileNode.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth));
1457
- */
1458
- static countAncestors(options?: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>): Observable<number>;
1459
- /**
1460
- * 统计子孙实体数量(不包含自身)
1461
- * @param options 查询选项
1462
- * @example
1463
- * // 统计某节点下的后代数量
1464
- FileNode.countDescendants({ entityId: root.id }).subscribe(count => console.log(count));
1465
- */
1466
- static countDescendants(options?: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>): Observable<number>;
1467
- /**
1468
- * 查询多个实体
1469
- * @param options 查询选项
1470
- * @example
1471
- * FileNode.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1472
- */
1473
- static find(options: FindOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode[]>;
1474
- /**
1475
- * 查询所有实体
1476
- * @param options 查询选项
1477
- * @example
1478
- * FileNode.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1479
- */
1480
- static findAll(options: FindAllOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode[]>;
1481
- /**
1482
- * 查询祖先实体(包含自身)
1483
- * @param options 查询选项
1484
- * @example
1485
- * // 查询某节点的所有祖先(面包屑导航)
1486
- FileNode.findAncestors({ entityId: grand.id }).subscribe(ancestors => console.log(ancestors));
1487
-
1488
- // 仅查询直接父节点(level 1)
1489
- FileNode.findAncestors({ entityId: grand.id, level: 1 }).subscribe(parents => console.log(parents));
1490
- */
1491
- static findAncestors(options?: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>): Observable<FileNode[]>;
1492
- /**
1493
- * 游标分页查询
1494
- * @param options 查询选项
1495
- * @example
1496
- * FileNode.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1497
- */
1498
- static findByCursor(options: FindByCursorOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode[]>;
1499
- /**
1500
- * 查询子孙实体(包含自身)
1501
- * @param options 查询选项
1502
- * @example
1503
- * // 查询某节点的所有后代
1504
- FileNode.findDescendants({ entityId: root.id }).subscribe(list => console.log(list));
1505
-
1506
- // 仅查询直接子节点(level 1)
1507
- FileNode.findDescendants({ entityId: root.id, level: 1 }).subscribe(children => console.log(children));
1508
- */
1509
- static findDescendants(options?: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>): Observable<FileNode[]>;
1510
- /**
1511
- * 查询单个实体,未找到时返回 undefined
1512
- * @param options 查询选项
1513
- * @example
1514
- * FileNode.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1515
- */
1516
- static findOne(options: FindOneOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode | undefined>;
1517
- /**
1518
- * 查询单个实体,未找到时抛出错误
1519
- * @param options 查询选项
1520
- * @example
1521
- * FileNode.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1522
- */
1523
- static findOneOrFail(options: FindOneOrFailOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode>;
1524
- /**
1525
- * 根据 ID 获取单个实体
1526
- * @param options 查询选项
1527
- * @example
1528
- * FileNode.get('123').subscribe(entity => console.log(entity));
1529
- */
1530
- static get(options: UUID): Observable<FileNode>;
1531
- /**
1532
- * 删除
1533
- */
1534
- remove(): Promise<FileNode>;
1535
- /**
1536
- * 重置数据
1537
- */
1538
- reset(): void;
1539
- /**
1540
- * 保存
1541
- */
1542
- save(): Promise<FileNode>;
1543
- }
1544
-
1545
- /**
1546
- * FileLarge
1547
- */
1548
- export declare class FileLarge extends TreeAdjacencyListEntityBase implements ITreeEntity {
1549
- static [ENTITY_STATIC_TYPES]: FileLargeStaticTypes;
1550
- /**
1551
- * 子节点
1552
- */
1553
- readonly children$: RelationEntitiesObservable<FileLarge>;
1554
- /**
1555
- * 是否有子节点
1556
- */
1557
- readonly hasChildren?: boolean | null;
1558
- /**
1559
- * 父节点
1560
- */
1561
- readonly parent$: RelationEntityObservable<typeof FileLarge>;
1562
- /**
1563
- * extension
1564
- */
1565
- extension?: string | null;
1566
- /**
1567
- * name
1568
- */
1569
- name: string;
1570
- /**
1571
- * 父节点 id
1572
- */
1573
- parentId?: UUID | null;
1574
- /**
1575
- * size
1576
- */
1577
- size?: number | null;
1578
- /**
1579
- * sortOrder
1580
- */
1581
- sortOrder?: string | null;
1582
- /**
1583
- * type
1584
- */
1585
- type: string;
1586
- /**
1587
- * 初始化数据
1588
- * @param initData 初始化数据
1589
- */
1590
- constructor(initData?: FileLargeInitData);
1591
- /**
1592
- * 统计实体数量
1593
- * @param options 查询选项
1594
- * @example
1595
- * FileLarge.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
1596
- */
1597
- static count(options: CountOptions<typeof FileLarge,FileLargeRuleGroup>): Observable<number>;
1598
- /**
1599
- * 统计祖先实体数量(不包含自身)
1600
- * @param options 查询选项
1601
- * @example
1602
- * // 统计某节点的祖先层级深度
1603
- FileLarge.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth));
1604
- */
1605
- static countAncestors(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<number>;
1606
- /**
1607
- * 统计子孙实体数量(不包含自身)
1608
- * @param options 查询选项
1609
- * @example
1610
- * // 统计某节点下的后代数量
1611
- FileLarge.countDescendants({ entityId: root.id }).subscribe(count => console.log(count));
1612
- */
1613
- static countDescendants(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<number>;
1614
- /**
1615
- * 查询多个实体
1616
- * @param options 查询选项
1617
- * @example
1618
- * FileLarge.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
1619
- */
1620
- static find(options: FindOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
1621
- /**
1622
- * 查询所有实体
1623
- * @param options 查询选项
1624
- * @example
1625
- * FileLarge.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1626
- */
1627
- static findAll(options: FindAllOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
1628
- /**
1629
- * 查询祖先实体(包含自身)
1630
- * @param options 查询选项
1631
- * @example
1632
- * // 查询某节点的所有祖先(面包屑导航)
1633
- FileLarge.findAncestors({ entityId: grand.id }).subscribe(ancestors => console.log(ancestors));
1634
-
1635
- // 仅查询直接父节点(level 1)
1636
- FileLarge.findAncestors({ entityId: grand.id, level: 1 }).subscribe(parents => console.log(parents));
1637
- */
1638
- static findAncestors(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<FileLarge[]>;
1639
- /**
1640
- * 游标分页查询
1641
- * @param options 查询选项
1642
- * @example
1643
- * FileLarge.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
1644
- */
1645
- static findByCursor(options: FindByCursorOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
1646
- /**
1647
- * 查询子孙实体(包含自身)
1648
- * @param options 查询选项
1649
- * @example
1650
- * // 查询某节点的所有后代
1651
- FileLarge.findDescendants({ entityId: root.id }).subscribe(list => console.log(list));
1652
-
1653
- // 仅查询直接子节点(level 1)
1654
- FileLarge.findDescendants({ entityId: root.id, level: 1 }).subscribe(children => console.log(children));
1655
- */
1656
- static findDescendants(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<FileLarge[]>;
1657
- /**
1658
- * 查询单个实体,未找到时返回 undefined
1659
- * @param options 查询选项
1660
- * @example
1661
- * FileLarge.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1662
- */
1663
- static findOne(options: FindOneOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge | undefined>;
1664
- /**
1665
- * 查询单个实体,未找到时抛出错误
1666
- * @param options 查询选项
1667
- * @example
1668
- * FileLarge.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
1669
- */
1670
- static findOneOrFail(options: FindOneOrFailOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge>;
1671
- /**
1672
- * 根据 ID 获取单个实体
1673
- * @param options 查询选项
1674
- * @example
1675
- * FileLarge.get('123').subscribe(entity => console.log(entity));
1676
- */
1677
- static get(options: UUID): Observable<FileLarge>;
1678
- /**
1679
- * 删除
1680
- */
1681
- remove(): Promise<FileLarge>;
1682
- /**
1683
- * 重置数据
1684
- */
1685
- reset(): void;
1686
- /**
1687
- * 保存
1688
- */
1689
- save(): Promise<FileLarge>;
1690
- }
1691
-
1692
51
  export declare const ENTITIES: EntityType[];
1693
52