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