@aiao/rxdb-test 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1363 -102
- package/dist/entities/index.js +272 -7
- package/dist/graph/index.d.ts +16 -0
- package/dist/graph/index.js +3 -0
- package/dist/shop/index.d.ts +449 -551
- package/dist/shop/index.js +64 -18
- package/dist/system/index.d.ts +745 -245
- package/dist/system/index.js +180 -30
- package/package.json +7 -3
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,30 +1,77 @@
|
|
|
1
|
-
import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, FindTreeOptions,
|
|
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
|
+
/**
|
|
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
|
+
| StringArrayRules<TypeDemo, 'stringArray', string>
|
|
18
|
+
| NumberArrayRules<TypeDemo, 'numberArray', number>
|
|
19
|
+
| KeyValueRules<TypeDemo, 'keyValue', Partial<TypeDemoKeyValueKeyValue>>
|
|
20
|
+
| RelationStringRules<'keyValue.string', string>
|
|
21
|
+
| RelationNumberRules<'keyValue.number', number>
|
|
22
|
+
| RelationNumberRules<'keyValue.integer', number>
|
|
23
|
+
| RelationBooleanRules<'keyValue.boolean', boolean>
|
|
24
|
+
| RelationDateRules<'keyValue.date', Date>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* RuleGroupBase
|
|
28
|
+
*/
|
|
29
|
+
export declare type TypeDemoRuleGroup = RuleGroupBase<typeof TypeDemo,
|
|
30
|
+
|'id'
|
|
31
|
+
|'createdAt'
|
|
32
|
+
|'updatedAt'
|
|
33
|
+
|'createdBy'
|
|
34
|
+
|'updatedBy'
|
|
35
|
+
|'string'
|
|
36
|
+
|'number'
|
|
37
|
+
|'integer'
|
|
38
|
+
|'boolean'
|
|
39
|
+
|'date'
|
|
40
|
+
|'stringArray'
|
|
41
|
+
|'numberArray'
|
|
42
|
+
|'keyValue'
|
|
43
|
+
|'keyValue.string'
|
|
44
|
+
|'keyValue.number'
|
|
45
|
+
|'keyValue.integer'
|
|
46
|
+
|'keyValue.boolean'
|
|
47
|
+
|'keyValue.date',
|
|
48
|
+
TypeDemoRule>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* OrderByField
|
|
52
|
+
*/
|
|
53
|
+
declare type TypeDemoOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "string" | "number" | "integer" | "boolean" | "date" | "stringArray" | "numberArray" | "keyValue" | "json";
|
|
54
|
+
|
|
4
55
|
/**
|
|
5
56
|
* rule
|
|
6
57
|
*/
|
|
7
58
|
declare type TodoRule = UUIDRules<Todo, 'id'>
|
|
8
59
|
| DateRules<Todo, 'createdAt'>
|
|
9
60
|
| DateRules<Todo, 'updatedAt'>
|
|
10
|
-
| DateRules<Todo, 'removedAt'>
|
|
11
61
|
| StringRules<Todo, 'createdBy'>
|
|
12
62
|
| StringRules<Todo, 'updatedBy'>
|
|
13
|
-
| StringRules<Todo, 'removedBy'>
|
|
14
63
|
| StringRules<Todo, 'title'>
|
|
15
64
|
| BooleanRules<Todo, 'completed'>;
|
|
16
65
|
|
|
17
66
|
/**
|
|
18
|
-
*
|
|
67
|
+
* RuleGroupBase
|
|
19
68
|
*/
|
|
20
|
-
export declare type TodoRuleGroup =
|
|
69
|
+
export declare type TodoRuleGroup = RuleGroupBase<typeof Todo,
|
|
21
70
|
|'id'
|
|
22
71
|
|'createdAt'
|
|
23
72
|
|'updatedAt'
|
|
24
|
-
|'removedAt'
|
|
25
73
|
|'createdBy'
|
|
26
74
|
|'updatedBy'
|
|
27
|
-
|'removedBy'
|
|
28
75
|
|'title'
|
|
29
76
|
|'completed',
|
|
30
77
|
TodoRule>;
|
|
@@ -32,90 +79,369 @@ TodoRule>;
|
|
|
32
79
|
/**
|
|
33
80
|
* OrderByField
|
|
34
81
|
*/
|
|
35
|
-
declare type TodoOrderByField = "id" | "createdAt" | "updatedAt" | "
|
|
82
|
+
declare type TodoOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "title" | "completed";
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* rule
|
|
86
|
+
*/
|
|
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>
|
|
96
|
+
| RelationUUIDRules<'children.id', UUID>
|
|
97
|
+
| RelationDateRules<'children.createdAt', Date>
|
|
98
|
+
| RelationDateRules<'children.updatedAt', Date>
|
|
99
|
+
| RelationStringRules<'children.createdBy', string | null>
|
|
100
|
+
| RelationStringRules<'children.updatedBy', string | null>
|
|
101
|
+
| RelationStringRules<'children.title', string>
|
|
102
|
+
| RelationStringRules<'children.sortOrder', string | null>
|
|
103
|
+
| RelationExistsRules<'parent', MenuSimpleRuleGroup>
|
|
104
|
+
| RelationUUIDRules<'parent.id', UUID>
|
|
105
|
+
| RelationDateRules<'parent.createdAt', Date>
|
|
106
|
+
| RelationDateRules<'parent.updatedAt', Date>
|
|
107
|
+
| RelationStringRules<'parent.createdBy', string | null>
|
|
108
|
+
| RelationStringRules<'parent.updatedBy', string | null>
|
|
109
|
+
| RelationStringRules<'parent.title', string>
|
|
110
|
+
| RelationStringRules<'parent.sortOrder', string | null>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* RuleGroupBase
|
|
114
|
+
*/
|
|
115
|
+
export declare type MenuSimpleRuleGroup = RuleGroupBase<typeof MenuSimple,
|
|
116
|
+
|'id'
|
|
117
|
+
|'createdAt'
|
|
118
|
+
|'updatedAt'
|
|
119
|
+
|'createdBy'
|
|
120
|
+
|'updatedBy'
|
|
121
|
+
|'title'
|
|
122
|
+
|'sortOrder'
|
|
123
|
+
|'parentId'
|
|
124
|
+
|'children'
|
|
125
|
+
|'children.id'
|
|
126
|
+
|'children.createdAt'
|
|
127
|
+
|'children.updatedAt'
|
|
128
|
+
|'children.createdBy'
|
|
129
|
+
|'children.updatedBy'
|
|
130
|
+
|'children.title'
|
|
131
|
+
|'children.sortOrder'
|
|
132
|
+
|'parentId'
|
|
133
|
+
|'parent'
|
|
134
|
+
|'parent.id'
|
|
135
|
+
|'parent.createdAt'
|
|
136
|
+
|'parent.updatedAt'
|
|
137
|
+
|'parent.createdBy'
|
|
138
|
+
|'parent.updatedBy'
|
|
139
|
+
|'parent.title'
|
|
140
|
+
|'parent.sortOrder'
|
|
141
|
+
|'parentId',
|
|
142
|
+
MenuSimpleRule>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* OrderByField
|
|
146
|
+
*/
|
|
147
|
+
declare type MenuSimpleOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "title" | "sortOrder";
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* TreeRule
|
|
151
|
+
*/
|
|
152
|
+
declare type MenuSimpleTreeRule = RelationDateRules<'children.createdAt', Date>
|
|
153
|
+
| RelationDateRules<'children.updatedAt', Date>
|
|
154
|
+
| RelationStringRules<'children.createdBy', string | null>
|
|
155
|
+
| RelationStringRules<'children.updatedBy', string | null>
|
|
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>;
|
|
36
163
|
|
|
37
164
|
/**
|
|
38
165
|
* rule
|
|
39
166
|
*/
|
|
40
|
-
declare type
|
|
41
|
-
| DateRules<
|
|
42
|
-
| DateRules<
|
|
43
|
-
|
|
|
44
|
-
| StringRules<
|
|
45
|
-
| StringRules<
|
|
46
|
-
| StringRules<
|
|
47
|
-
|
|
|
48
|
-
|
|
|
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>
|
|
49
176
|
| RelationUUIDRules<'children.id', UUID>
|
|
50
177
|
| RelationDateRules<'children.createdAt', Date>
|
|
51
178
|
| RelationDateRules<'children.updatedAt', Date>
|
|
52
|
-
| RelationDateRules<'children.removedAt', Date | null>
|
|
53
179
|
| RelationStringRules<'children.createdBy', string | null>
|
|
54
180
|
| RelationStringRules<'children.updatedBy', string | null>
|
|
55
|
-
| RelationStringRules<'children.removedBy', string | null>
|
|
56
181
|
| RelationStringRules<'children.title', string>
|
|
182
|
+
| RelationStringRules<'children.sortOrder', string | null>
|
|
183
|
+
| RelationExistsRules<'parent', MenuLargeRuleGroup>
|
|
57
184
|
| RelationUUIDRules<'parent.id', UUID>
|
|
58
185
|
| RelationDateRules<'parent.createdAt', Date>
|
|
59
186
|
| RelationDateRules<'parent.updatedAt', Date>
|
|
60
|
-
| RelationDateRules<'parent.removedAt', Date | null>
|
|
61
187
|
| RelationStringRules<'parent.createdBy', string | null>
|
|
62
188
|
| RelationStringRules<'parent.updatedBy', string | null>
|
|
63
|
-
| RelationStringRules<'parent.
|
|
64
|
-
| RelationStringRules<'parent.
|
|
189
|
+
| RelationStringRules<'parent.title', string>
|
|
190
|
+
| RelationStringRules<'parent.sortOrder', string | null>;
|
|
65
191
|
|
|
66
192
|
/**
|
|
67
|
-
*
|
|
193
|
+
* RuleGroupBase
|
|
68
194
|
*/
|
|
69
|
-
export declare type
|
|
195
|
+
export declare type MenuLargeRuleGroup = RuleGroupBase<typeof MenuLarge,
|
|
70
196
|
|'id'
|
|
71
197
|
|'createdAt'
|
|
72
198
|
|'updatedAt'
|
|
73
|
-
|'removedAt'
|
|
74
199
|
|'createdBy'
|
|
75
200
|
|'updatedBy'
|
|
76
|
-
|'removedBy'
|
|
77
201
|
|'title'
|
|
202
|
+
|'sortOrder'
|
|
78
203
|
|'parentId'
|
|
204
|
+
|'children'
|
|
79
205
|
|'children.id'
|
|
80
206
|
|'children.createdAt'
|
|
81
207
|
|'children.updatedAt'
|
|
82
|
-
|'children.removedAt'
|
|
83
208
|
|'children.createdBy'
|
|
84
209
|
|'children.updatedBy'
|
|
85
|
-
|'children.removedBy'
|
|
86
210
|
|'children.title'
|
|
211
|
+
|'children.sortOrder'
|
|
87
212
|
|'parentId'
|
|
213
|
+
|'parent'
|
|
88
214
|
|'parent.id'
|
|
89
215
|
|'parent.createdAt'
|
|
90
216
|
|'parent.updatedAt'
|
|
91
|
-
|'parent.removedAt'
|
|
92
217
|
|'parent.createdBy'
|
|
93
218
|
|'parent.updatedBy'
|
|
94
|
-
|'parent.removedBy'
|
|
95
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>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* TreeRuleGroup
|
|
241
|
+
*/
|
|
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'
|
|
96
420
|
|'parentId',
|
|
97
|
-
|
|
421
|
+
FileLargeRule>;
|
|
98
422
|
|
|
99
423
|
/**
|
|
100
424
|
* OrderByField
|
|
101
425
|
*/
|
|
102
|
-
declare type
|
|
426
|
+
declare type FileLargeOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "type" | "sortOrder" | "extension" | "size";
|
|
103
427
|
|
|
104
428
|
/**
|
|
105
429
|
* TreeRule
|
|
106
430
|
*/
|
|
107
|
-
declare type
|
|
431
|
+
declare type FileLargeTreeRule = RelationDateRules<'children.createdAt', Date>
|
|
108
432
|
| RelationDateRules<'children.updatedAt', Date>
|
|
109
|
-
| RelationDateRules<'children.removedAt', Date | null>
|
|
110
433
|
| RelationStringRules<'children.createdBy', string | null>
|
|
111
434
|
| RelationStringRules<'children.updatedBy', string | null>
|
|
112
|
-
| RelationStringRules<'children.
|
|
113
|
-
| RelationStringRules<'children.
|
|
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>;
|
|
114
440
|
|
|
115
441
|
/**
|
|
116
442
|
* TreeRuleGroup
|
|
117
443
|
*/
|
|
118
|
-
export declare type
|
|
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>;
|
|
119
445
|
|
|
120
446
|
/**
|
|
121
447
|
* rxdb
|
|
@@ -125,17 +451,124 @@ declare module "@aiao/rxdb" {
|
|
|
125
451
|
* RxDB
|
|
126
452
|
*/
|
|
127
453
|
interface RxDB {
|
|
454
|
+
/**
|
|
455
|
+
* TypeDemo
|
|
456
|
+
*/
|
|
457
|
+
TypeDemo: typeof TypeDemo;
|
|
128
458
|
/**
|
|
129
459
|
* Todo
|
|
130
460
|
*/
|
|
131
461
|
Todo: typeof Todo;
|
|
132
462
|
/**
|
|
133
|
-
*
|
|
463
|
+
* MenuSimple
|
|
464
|
+
*/
|
|
465
|
+
MenuSimple: typeof MenuSimple;
|
|
466
|
+
/**
|
|
467
|
+
* MenuLarge
|
|
134
468
|
*/
|
|
135
|
-
|
|
469
|
+
MenuLarge: typeof MenuLarge;
|
|
470
|
+
/**
|
|
471
|
+
* FileNode
|
|
472
|
+
*/
|
|
473
|
+
FileNode: typeof FileNode;
|
|
474
|
+
/**
|
|
475
|
+
* FileLarge
|
|
476
|
+
*/
|
|
477
|
+
FileLarge: typeof FileLarge;
|
|
136
478
|
}
|
|
137
479
|
}
|
|
138
480
|
|
|
481
|
+
/**
|
|
482
|
+
* 静态类型
|
|
483
|
+
*/
|
|
484
|
+
export interface TypeDemoStaticTypes {
|
|
485
|
+
/**
|
|
486
|
+
* id 类型
|
|
487
|
+
*/
|
|
488
|
+
idType: UUID;
|
|
489
|
+
/**
|
|
490
|
+
* 查询选项
|
|
491
|
+
*/
|
|
492
|
+
getOptions: UUID;
|
|
493
|
+
/**
|
|
494
|
+
* 查询选项
|
|
495
|
+
*/
|
|
496
|
+
findOneOrFailOptions: FindOneOrFailOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
|
|
497
|
+
/**
|
|
498
|
+
* 查询选项
|
|
499
|
+
*/
|
|
500
|
+
findOptions: FindOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
|
|
501
|
+
/**
|
|
502
|
+
* 查询选项
|
|
503
|
+
*/
|
|
504
|
+
findOneOptions: FindOneOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
|
|
505
|
+
/**
|
|
506
|
+
* 查询选项
|
|
507
|
+
*/
|
|
508
|
+
findAllOptions: FindAllOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
|
|
509
|
+
/**
|
|
510
|
+
* 查询选项
|
|
511
|
+
*/
|
|
512
|
+
findByCursorOptions: FindByCursorOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>;
|
|
513
|
+
/**
|
|
514
|
+
* 查询选项
|
|
515
|
+
*/
|
|
516
|
+
countOptions: CountOptions<typeof TypeDemo,TypeDemoRuleGroup>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* 初始化数据
|
|
521
|
+
*/
|
|
522
|
+
export interface TypeDemoInitData {
|
|
523
|
+
/**
|
|
524
|
+
* string
|
|
525
|
+
*/
|
|
526
|
+
string?: string;
|
|
527
|
+
/**
|
|
528
|
+
* number
|
|
529
|
+
*/
|
|
530
|
+
number?: number;
|
|
531
|
+
/**
|
|
532
|
+
* integer
|
|
533
|
+
*/
|
|
534
|
+
integer?: number;
|
|
535
|
+
/**
|
|
536
|
+
* boolean
|
|
537
|
+
*/
|
|
538
|
+
boolean?: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* date
|
|
541
|
+
*/
|
|
542
|
+
date?: Date;
|
|
543
|
+
/**
|
|
544
|
+
* stringArray
|
|
545
|
+
*/
|
|
546
|
+
stringArray?: string[];
|
|
547
|
+
/**
|
|
548
|
+
* numberArray
|
|
549
|
+
*/
|
|
550
|
+
numberArray?: number[];
|
|
551
|
+
/**
|
|
552
|
+
* keyValue
|
|
553
|
+
*/
|
|
554
|
+
keyValue?: TypeDemoKeyValueKeyValue;
|
|
555
|
+
/**
|
|
556
|
+
* json
|
|
557
|
+
*/
|
|
558
|
+
json?: Record<string, any>;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* keyValue keyValue 类型
|
|
563
|
+
*/
|
|
564
|
+
export interface TypeDemoKeyValueKeyValue {
|
|
565
|
+
string: string;
|
|
566
|
+
number: number;
|
|
567
|
+
integer: number;
|
|
568
|
+
boolean: boolean;
|
|
569
|
+
date: Date;
|
|
570
|
+
}
|
|
571
|
+
|
|
139
572
|
/**
|
|
140
573
|
* 静态类型
|
|
141
574
|
*/
|
|
@@ -164,6 +597,10 @@ export interface TodoStaticTypes {
|
|
|
164
597
|
* 查询选项
|
|
165
598
|
*/
|
|
166
599
|
findAllOptions: FindAllOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
|
|
600
|
+
/**
|
|
601
|
+
* 查询选项
|
|
602
|
+
*/
|
|
603
|
+
findByCursorOptions: FindByCursorOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>;
|
|
167
604
|
/**
|
|
168
605
|
* 查询选项
|
|
169
606
|
*/
|
|
@@ -187,7 +624,7 @@ export interface TodoInitData {
|
|
|
187
624
|
/**
|
|
188
625
|
* 静态类型
|
|
189
626
|
*/
|
|
190
|
-
export interface
|
|
627
|
+
export interface MenuSimpleStaticTypes {
|
|
191
628
|
/**
|
|
192
629
|
* id 类型
|
|
193
630
|
*/
|
|
@@ -199,74 +636,423 @@ export interface MenuStaticTypes {
|
|
|
199
636
|
/**
|
|
200
637
|
* 查询选项
|
|
201
638
|
*/
|
|
202
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof
|
|
639
|
+
findOneOrFailOptions: FindOneOrFailOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
|
|
203
640
|
/**
|
|
204
641
|
* 查询选项
|
|
205
642
|
*/
|
|
206
|
-
findOptions: FindOptions<typeof
|
|
643
|
+
findOptions: FindOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
|
|
207
644
|
/**
|
|
208
645
|
* 查询选项
|
|
209
646
|
*/
|
|
210
|
-
findOneOptions: FindOneOptions<typeof
|
|
647
|
+
findOneOptions: FindOneOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
|
|
211
648
|
/**
|
|
212
649
|
* 查询选项
|
|
213
650
|
*/
|
|
214
|
-
findAllOptions: FindAllOptions<typeof
|
|
651
|
+
findAllOptions: FindAllOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
|
|
215
652
|
/**
|
|
216
653
|
* 查询选项
|
|
217
654
|
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* 查询的实体
|
|
221
|
-
*/
|
|
222
|
-
entity: Menu;
|
|
655
|
+
findByCursorOptions: FindByCursorOptions<typeof MenuSimple,MenuSimpleRuleGroup,MenuSimpleOrderByField>;
|
|
223
656
|
/**
|
|
224
657
|
* 查询选项
|
|
225
658
|
*/
|
|
226
|
-
|
|
659
|
+
countOptions: CountOptions<typeof MenuSimple,MenuSimpleRuleGroup>;
|
|
227
660
|
/**
|
|
228
|
-
*
|
|
661
|
+
* 查询的实体
|
|
229
662
|
*/
|
|
230
|
-
|
|
663
|
+
entity: MenuSimple;
|
|
231
664
|
/**
|
|
232
665
|
* 查询选项
|
|
233
666
|
*/
|
|
234
|
-
findDescendantsOptions: FindTreeOptions<typeof
|
|
667
|
+
findDescendantsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
|
|
235
668
|
/**
|
|
236
669
|
* 查询选项
|
|
237
670
|
*/
|
|
238
|
-
countDescendantsOptions: FindTreeOptions<typeof
|
|
671
|
+
countDescendantsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
|
|
239
672
|
/**
|
|
240
673
|
* 查询选项
|
|
241
674
|
*/
|
|
242
|
-
findAncestorsOptions: FindTreeOptions<typeof
|
|
675
|
+
findAncestorsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
|
|
243
676
|
/**
|
|
244
677
|
* 查询选项
|
|
245
678
|
*/
|
|
246
|
-
countAncestorsOptions: FindTreeOptions<typeof
|
|
679
|
+
countAncestorsOptions: FindTreeOptions<typeof MenuSimple,MenuSimpleTreeRuleGroup>;
|
|
247
680
|
}
|
|
248
681
|
|
|
249
682
|
/**
|
|
250
683
|
* 初始化数据
|
|
251
684
|
*/
|
|
252
|
-
export interface
|
|
685
|
+
export interface MenuSimpleInitData {
|
|
253
686
|
/**
|
|
254
687
|
* title
|
|
255
688
|
*/
|
|
256
689
|
title?: string;
|
|
690
|
+
/**
|
|
691
|
+
* sortOrder
|
|
692
|
+
*/
|
|
693
|
+
sortOrder?: string | null;
|
|
257
694
|
}
|
|
258
695
|
|
|
259
696
|
/**
|
|
260
|
-
*
|
|
697
|
+
* 静态类型
|
|
261
698
|
*/
|
|
262
|
-
export
|
|
263
|
-
[ENTITY_STATIC_TYPES]: TodoStaticTypes;
|
|
699
|
+
export interface MenuLargeStaticTypes {
|
|
264
700
|
/**
|
|
265
|
-
*
|
|
701
|
+
* id 类型
|
|
266
702
|
*/
|
|
267
|
-
|
|
703
|
+
idType: UUID;
|
|
268
704
|
/**
|
|
269
|
-
*
|
|
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
|
+
* 查询选项
|
|
790
|
+
*/
|
|
791
|
+
findOneOptions: FindOneOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
|
|
792
|
+
/**
|
|
793
|
+
* 查询选项
|
|
794
|
+
*/
|
|
795
|
+
findAllOptions: FindAllOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
|
|
796
|
+
/**
|
|
797
|
+
* 查询选项
|
|
798
|
+
*/
|
|
799
|
+
findByCursorOptions: FindByCursorOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>;
|
|
800
|
+
/**
|
|
801
|
+
* 查询选项
|
|
802
|
+
*/
|
|
803
|
+
countOptions: CountOptions<typeof FileNode,FileNodeRuleGroup>;
|
|
804
|
+
/**
|
|
805
|
+
* 查询的实体
|
|
806
|
+
*/
|
|
807
|
+
entity: FileNode;
|
|
808
|
+
/**
|
|
809
|
+
* 查询选项
|
|
810
|
+
*/
|
|
811
|
+
findDescendantsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
|
|
812
|
+
/**
|
|
813
|
+
* 查询选项
|
|
814
|
+
*/
|
|
815
|
+
countDescendantsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
|
|
816
|
+
/**
|
|
817
|
+
* 查询选项
|
|
818
|
+
*/
|
|
819
|
+
findAncestorsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
|
|
820
|
+
/**
|
|
821
|
+
* 查询选项
|
|
822
|
+
*/
|
|
823
|
+
countAncestorsOptions: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* 初始化数据
|
|
828
|
+
*/
|
|
829
|
+
export interface FileNodeInitData {
|
|
830
|
+
/**
|
|
831
|
+
* name
|
|
832
|
+
*/
|
|
833
|
+
name?: string;
|
|
834
|
+
/**
|
|
835
|
+
* type
|
|
836
|
+
*/
|
|
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;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* 静态类型
|
|
854
|
+
*/
|
|
855
|
+
export interface FileLargeStaticTypes {
|
|
856
|
+
/**
|
|
857
|
+
* id 类型
|
|
858
|
+
*/
|
|
859
|
+
idType: UUID;
|
|
860
|
+
/**
|
|
861
|
+
* 查询选项
|
|
862
|
+
*/
|
|
863
|
+
getOptions: UUID;
|
|
864
|
+
/**
|
|
865
|
+
* 查询选项
|
|
866
|
+
*/
|
|
867
|
+
findOneOrFailOptions: FindOneOrFailOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
|
|
868
|
+
/**
|
|
869
|
+
* 查询选项
|
|
870
|
+
*/
|
|
871
|
+
findOptions: FindOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
|
|
872
|
+
/**
|
|
873
|
+
* 查询选项
|
|
874
|
+
*/
|
|
875
|
+
findOneOptions: FindOneOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
|
|
876
|
+
/**
|
|
877
|
+
* 查询选项
|
|
878
|
+
*/
|
|
879
|
+
findAllOptions: FindAllOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
|
|
880
|
+
/**
|
|
881
|
+
* 查询选项
|
|
882
|
+
*/
|
|
883
|
+
findByCursorOptions: FindByCursorOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>;
|
|
884
|
+
/**
|
|
885
|
+
* 查询选项
|
|
886
|
+
*/
|
|
887
|
+
countOptions: CountOptions<typeof FileLarge,FileLargeRuleGroup>;
|
|
888
|
+
/**
|
|
889
|
+
* 查询的实体
|
|
890
|
+
*/
|
|
891
|
+
entity: FileLarge;
|
|
892
|
+
/**
|
|
893
|
+
* 查询选项
|
|
894
|
+
*/
|
|
895
|
+
findDescendantsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
|
|
896
|
+
/**
|
|
897
|
+
* 查询选项
|
|
898
|
+
*/
|
|
899
|
+
countDescendantsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
|
|
900
|
+
/**
|
|
901
|
+
* 查询选项
|
|
902
|
+
*/
|
|
903
|
+
findAncestorsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
|
|
904
|
+
/**
|
|
905
|
+
* 查询选项
|
|
906
|
+
*/
|
|
907
|
+
countAncestorsOptions: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* 初始化数据
|
|
912
|
+
*/
|
|
913
|
+
export interface FileLargeInitData {
|
|
914
|
+
/**
|
|
915
|
+
* name
|
|
916
|
+
*/
|
|
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;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* TypeDemo
|
|
938
|
+
*/
|
|
939
|
+
export declare class TypeDemo extends EntityBase implements IEntity {
|
|
940
|
+
static [ENTITY_STATIC_TYPES]: TypeDemoStaticTypes;
|
|
941
|
+
/**
|
|
942
|
+
* boolean
|
|
943
|
+
*/
|
|
944
|
+
boolean: boolean;
|
|
945
|
+
/**
|
|
946
|
+
* date
|
|
947
|
+
*/
|
|
948
|
+
date: Date;
|
|
949
|
+
/**
|
|
950
|
+
* integer
|
|
951
|
+
*/
|
|
952
|
+
integer: number;
|
|
953
|
+
/**
|
|
954
|
+
* json
|
|
955
|
+
*/
|
|
956
|
+
json: Record<string, any>;
|
|
957
|
+
/**
|
|
958
|
+
* keyValue
|
|
959
|
+
*/
|
|
960
|
+
keyValue: TypeDemoKeyValueKeyValue;
|
|
961
|
+
/**
|
|
962
|
+
* number
|
|
963
|
+
*/
|
|
964
|
+
number: number;
|
|
965
|
+
/**
|
|
966
|
+
* numberArray
|
|
967
|
+
*/
|
|
968
|
+
numberArray: number[];
|
|
969
|
+
/**
|
|
970
|
+
* string
|
|
971
|
+
*/
|
|
972
|
+
string: string;
|
|
973
|
+
/**
|
|
974
|
+
* stringArray
|
|
975
|
+
*/
|
|
976
|
+
stringArray: string[];
|
|
977
|
+
/**
|
|
978
|
+
* 初始化数据
|
|
979
|
+
* @param initData 初始化数据
|
|
980
|
+
*/
|
|
981
|
+
constructor(initData?: TypeDemoInitData);
|
|
982
|
+
/**
|
|
983
|
+
* 统计实体数量
|
|
984
|
+
* @param options 查询选项
|
|
985
|
+
* @example
|
|
986
|
+
* TypeDemo.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
987
|
+
*/
|
|
988
|
+
static count(options: CountOptions<typeof TypeDemo,TypeDemoRuleGroup>): Observable<number>;
|
|
989
|
+
/**
|
|
990
|
+
* 查询多个实体
|
|
991
|
+
* @param options 查询选项
|
|
992
|
+
* @example
|
|
993
|
+
* TypeDemo.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
994
|
+
*/
|
|
995
|
+
static find(options: FindOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
|
|
996
|
+
/**
|
|
997
|
+
* 查询所有实体
|
|
998
|
+
* @param options 查询选项
|
|
999
|
+
* @example
|
|
1000
|
+
* TypeDemo.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
1001
|
+
*/
|
|
1002
|
+
static findAll(options: FindAllOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
|
|
1003
|
+
/**
|
|
1004
|
+
* 游标分页查询
|
|
1005
|
+
* @param options 查询选项
|
|
1006
|
+
* @example
|
|
1007
|
+
* TypeDemo.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
1008
|
+
*/
|
|
1009
|
+
static findByCursor(options: FindByCursorOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo[]>;
|
|
1010
|
+
/**
|
|
1011
|
+
* 查询单个实体,未找到时返回 undefined
|
|
1012
|
+
* @param options 查询选项
|
|
1013
|
+
* @example
|
|
1014
|
+
* TypeDemo.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
1015
|
+
*/
|
|
1016
|
+
static findOne(options: FindOneOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo | undefined>;
|
|
1017
|
+
/**
|
|
1018
|
+
* 查询单个实体,未找到时抛出错误
|
|
1019
|
+
* @param options 查询选项
|
|
1020
|
+
* @example
|
|
1021
|
+
* TypeDemo.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
1022
|
+
*/
|
|
1023
|
+
static findOneOrFail(options: FindOneOrFailOptions<typeof TypeDemo,TypeDemoRuleGroup,TypeDemoOrderByField>): Observable<TypeDemo>;
|
|
1024
|
+
/**
|
|
1025
|
+
* 根据 ID 获取单个实体
|
|
1026
|
+
* @param options 查询选项
|
|
1027
|
+
* @example
|
|
1028
|
+
* TypeDemo.get('123').subscribe(entity => console.log(entity));
|
|
1029
|
+
*/
|
|
1030
|
+
static get(options: UUID): Observable<TypeDemo>;
|
|
1031
|
+
/**
|
|
1032
|
+
* 删除
|
|
1033
|
+
*/
|
|
1034
|
+
remove(): Promise<TypeDemo>;
|
|
1035
|
+
/**
|
|
1036
|
+
* 重置数据
|
|
1037
|
+
*/
|
|
1038
|
+
reset(): void;
|
|
1039
|
+
/**
|
|
1040
|
+
* 保存
|
|
1041
|
+
*/
|
|
1042
|
+
save(): Promise<TypeDemo>;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Todo
|
|
1047
|
+
*/
|
|
1048
|
+
export declare class Todo extends EntityBase implements IEntity {
|
|
1049
|
+
static [ENTITY_STATIC_TYPES]: TodoStaticTypes;
|
|
1050
|
+
/**
|
|
1051
|
+
* completed
|
|
1052
|
+
*/
|
|
1053
|
+
completed: boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* title
|
|
270
1056
|
*/
|
|
271
1057
|
title: string;
|
|
272
1058
|
/**
|
|
@@ -275,33 +1061,52 @@ export declare class Todo extends EntityBase implements IEntity, IEntityStaticTy
|
|
|
275
1061
|
*/
|
|
276
1062
|
constructor(initData?: TodoInitData);
|
|
277
1063
|
/**
|
|
278
|
-
*
|
|
1064
|
+
* 统计实体数量
|
|
279
1065
|
* @param options 查询选项
|
|
1066
|
+
* @example
|
|
1067
|
+
* Todo.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
280
1068
|
*/
|
|
281
1069
|
static count(options: CountOptions<typeof Todo,TodoRuleGroup>): Observable<number>;
|
|
282
1070
|
/**
|
|
283
|
-
*
|
|
1071
|
+
* 查询多个实体
|
|
284
1072
|
* @param options 查询选项
|
|
1073
|
+
* @example
|
|
1074
|
+
* Todo.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
285
1075
|
*/
|
|
286
1076
|
static find(options: FindOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
|
|
287
1077
|
/**
|
|
288
|
-
*
|
|
1078
|
+
* 查询所有实体
|
|
289
1079
|
* @param options 查询选项
|
|
1080
|
+
* @example
|
|
1081
|
+
* Todo.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
290
1082
|
*/
|
|
291
1083
|
static findAll(options: FindAllOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
|
|
292
1084
|
/**
|
|
293
|
-
*
|
|
1085
|
+
* 游标分页查询
|
|
294
1086
|
* @param options 查询选项
|
|
1087
|
+
* @example
|
|
1088
|
+
* Todo.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
1089
|
+
*/
|
|
1090
|
+
static findByCursor(options: FindByCursorOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo[]>;
|
|
1091
|
+
/**
|
|
1092
|
+
* 查询单个实体,未找到时返回 undefined
|
|
1093
|
+
* @param options 查询选项
|
|
1094
|
+
* @example
|
|
1095
|
+
* Todo.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
295
1096
|
*/
|
|
296
1097
|
static findOne(options: FindOneOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo | undefined>;
|
|
297
1098
|
/**
|
|
298
|
-
*
|
|
1099
|
+
* 查询单个实体,未找到时抛出错误
|
|
299
1100
|
* @param options 查询选项
|
|
1101
|
+
* @example
|
|
1102
|
+
* Todo.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
300
1103
|
*/
|
|
301
1104
|
static findOneOrFail(options: FindOneOrFailOptions<typeof Todo,TodoRuleGroup,TodoOrderByField>): Observable<Todo>;
|
|
302
1105
|
/**
|
|
303
|
-
*
|
|
1106
|
+
* 根据 ID 获取单个实体
|
|
304
1107
|
* @param options 查询选项
|
|
1108
|
+
* @example
|
|
1109
|
+
* Todo.get('123').subscribe(entity => console.log(entity));
|
|
305
1110
|
*/
|
|
306
1111
|
static get(options: UUID): Observable<Todo>;
|
|
307
1112
|
/**
|
|
@@ -319,22 +1124,161 @@ export declare class Todo extends EntityBase implements IEntity, IEntityStaticTy
|
|
|
319
1124
|
}
|
|
320
1125
|
|
|
321
1126
|
/**
|
|
322
|
-
*
|
|
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
|
|
323
1259
|
*/
|
|
324
|
-
export declare class
|
|
1260
|
+
export declare class MenuLarge extends TreeAdjacencyListEntityBase implements ITreeEntity {
|
|
1261
|
+
static [ENTITY_STATIC_TYPES]: MenuLargeStaticTypes;
|
|
325
1262
|
/**
|
|
326
1263
|
* children
|
|
327
1264
|
*/
|
|
328
|
-
children$: RelationEntitiesObservable<
|
|
1265
|
+
readonly children$: RelationEntitiesObservable<MenuLarge>;
|
|
1266
|
+
/**
|
|
1267
|
+
* hasChildren
|
|
1268
|
+
*/
|
|
1269
|
+
readonly hasChildren?: boolean | null;
|
|
329
1270
|
/**
|
|
330
1271
|
* parent
|
|
331
1272
|
*/
|
|
332
|
-
parent$: RelationEntityObservable<
|
|
1273
|
+
readonly parent$: RelationEntityObservable<typeof MenuLarge>;
|
|
333
1274
|
/**
|
|
334
1275
|
* parent id
|
|
335
1276
|
*/
|
|
336
|
-
parentId?: UUID;
|
|
337
|
-
|
|
1277
|
+
parentId?: UUID | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* sortOrder
|
|
1280
|
+
*/
|
|
1281
|
+
sortOrder?: string | null;
|
|
338
1282
|
/**
|
|
339
1283
|
* title
|
|
340
1284
|
*/
|
|
@@ -343,71 +1287,388 @@ export declare class Menu extends TreeAdjacencyListEntityBase implements IEntity
|
|
|
343
1287
|
* 初始化数据
|
|
344
1288
|
* @param initData 初始化数据
|
|
345
1289
|
*/
|
|
346
|
-
constructor(initData?:
|
|
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[]>;
|
|
347
1482
|
/**
|
|
348
|
-
*
|
|
1483
|
+
* 游标分页查询
|
|
349
1484
|
* @param options 查询选项
|
|
1485
|
+
* @example
|
|
1486
|
+
* FileNode.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
350
1487
|
*/
|
|
351
|
-
static
|
|
1488
|
+
static findByCursor(options: FindByCursorOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode[]>;
|
|
352
1489
|
/**
|
|
353
|
-
*
|
|
1490
|
+
* 查询子孙实体(包含自身)
|
|
354
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));
|
|
355
1498
|
*/
|
|
356
|
-
static
|
|
1499
|
+
static findDescendants(options?: FindTreeOptions<typeof FileNode,FileNodeTreeRuleGroup>): Observable<FileNode[]>;
|
|
357
1500
|
/**
|
|
358
|
-
*
|
|
1501
|
+
* 查询单个实体,未找到时返回 undefined
|
|
359
1502
|
* @param options 查询选项
|
|
1503
|
+
* @example
|
|
1504
|
+
* FileNode.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
360
1505
|
*/
|
|
361
|
-
static
|
|
1506
|
+
static findOne(options: FindOneOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode | undefined>;
|
|
362
1507
|
/**
|
|
363
|
-
*
|
|
1508
|
+
* 查询单个实体,未找到时抛出错误
|
|
364
1509
|
* @param options 查询选项
|
|
1510
|
+
* @example
|
|
1511
|
+
* FileNode.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
365
1512
|
*/
|
|
366
|
-
static
|
|
1513
|
+
static findOneOrFail(options: FindOneOrFailOptions<typeof FileNode,FileNodeRuleGroup,FileNodeOrderByField>): Observable<FileNode>;
|
|
367
1514
|
/**
|
|
368
|
-
*
|
|
1515
|
+
* 根据 ID 获取单个实体
|
|
369
1516
|
* @param options 查询选项
|
|
1517
|
+
* @example
|
|
1518
|
+
* FileNode.get('123').subscribe(entity => console.log(entity));
|
|
370
1519
|
*/
|
|
371
|
-
static
|
|
1520
|
+
static get(options: UUID): Observable<FileNode>;
|
|
372
1521
|
/**
|
|
373
|
-
*
|
|
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);
|
|
1581
|
+
/**
|
|
1582
|
+
* 统计实体数量
|
|
374
1583
|
* @param options 查询选项
|
|
1584
|
+
* @example
|
|
1585
|
+
* FileLarge.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
375
1586
|
*/
|
|
376
|
-
static
|
|
1587
|
+
static count(options: CountOptions<typeof FileLarge,FileLargeRuleGroup>): Observable<number>;
|
|
377
1588
|
/**
|
|
378
|
-
*
|
|
1589
|
+
* 统计祖先实体数量(不包含自身)
|
|
379
1590
|
* @param options 查询选项
|
|
1591
|
+
* @example
|
|
1592
|
+
* // 统计某节点的祖先层级深度
|
|
1593
|
+
FileLarge.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth));
|
|
380
1594
|
*/
|
|
381
|
-
static
|
|
1595
|
+
static countAncestors(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<number>;
|
|
382
1596
|
/**
|
|
383
|
-
*
|
|
1597
|
+
* 统计子孙实体数量(不包含自身)
|
|
384
1598
|
* @param options 查询选项
|
|
1599
|
+
* @example
|
|
1600
|
+
* // 统计某节点下的后代数量
|
|
1601
|
+
FileLarge.countDescendants({ entityId: root.id }).subscribe(count => console.log(count));
|
|
385
1602
|
*/
|
|
386
|
-
static
|
|
1603
|
+
static countDescendants(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<number>;
|
|
387
1604
|
/**
|
|
388
|
-
*
|
|
1605
|
+
* 查询多个实体
|
|
389
1606
|
* @param options 查询选项
|
|
1607
|
+
* @example
|
|
1608
|
+
* FileLarge.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
1609
|
+
*/
|
|
1610
|
+
static find(options: FindOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
|
|
1611
|
+
/**
|
|
1612
|
+
* 查询所有实体
|
|
1613
|
+
* @param options 查询选项
|
|
1614
|
+
* @example
|
|
1615
|
+
* FileLarge.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
1616
|
+
*/
|
|
1617
|
+
static findAll(options: FindAllOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
|
|
1618
|
+
/**
|
|
1619
|
+
* 查询祖先实体(包含自身)
|
|
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));
|
|
1627
|
+
*/
|
|
1628
|
+
static findAncestors(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<FileLarge[]>;
|
|
1629
|
+
/**
|
|
1630
|
+
* 游标分页查询
|
|
1631
|
+
* @param options 查询选项
|
|
1632
|
+
* @example
|
|
1633
|
+
* FileLarge.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
1634
|
+
*/
|
|
1635
|
+
static findByCursor(options: FindByCursorOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge[]>;
|
|
1636
|
+
/**
|
|
1637
|
+
* 查询子孙实体(包含自身)
|
|
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));
|
|
390
1645
|
*/
|
|
391
|
-
static
|
|
1646
|
+
static findDescendants(options?: FindTreeOptions<typeof FileLarge,FileLargeTreeRuleGroup>): Observable<FileLarge[]>;
|
|
392
1647
|
/**
|
|
393
|
-
*
|
|
1648
|
+
* 查询单个实体,未找到时返回 undefined
|
|
394
1649
|
* @param options 查询选项
|
|
1650
|
+
* @example
|
|
1651
|
+
* FileLarge.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
395
1652
|
*/
|
|
396
|
-
static
|
|
1653
|
+
static findOne(options: FindOneOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge | undefined>;
|
|
397
1654
|
/**
|
|
398
|
-
*
|
|
1655
|
+
* 查询单个实体,未找到时抛出错误
|
|
399
1656
|
* @param options 查询选项
|
|
1657
|
+
* @example
|
|
1658
|
+
* FileLarge.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
400
1659
|
*/
|
|
401
|
-
static
|
|
1660
|
+
static findOneOrFail(options: FindOneOrFailOptions<typeof FileLarge,FileLargeRuleGroup,FileLargeOrderByField>): Observable<FileLarge>;
|
|
402
1661
|
/**
|
|
403
|
-
*
|
|
1662
|
+
* 根据 ID 获取单个实体
|
|
404
1663
|
* @param options 查询选项
|
|
1664
|
+
* @example
|
|
1665
|
+
* FileLarge.get('123').subscribe(entity => console.log(entity));
|
|
405
1666
|
*/
|
|
406
|
-
static get(options: UUID): Observable<
|
|
1667
|
+
static get(options: UUID): Observable<FileLarge>;
|
|
407
1668
|
/**
|
|
408
1669
|
* 删除
|
|
409
1670
|
*/
|
|
410
|
-
remove(): Promise<
|
|
1671
|
+
remove(): Promise<FileLarge>;
|
|
411
1672
|
/**
|
|
412
1673
|
* 重置数据
|
|
413
1674
|
*/
|
|
@@ -415,7 +1676,7 @@ export declare class Menu extends TreeAdjacencyListEntityBase implements IEntity
|
|
|
415
1676
|
/**
|
|
416
1677
|
* 保存
|
|
417
1678
|
*/
|
|
418
|
-
save(): Promise<
|
|
1679
|
+
save(): Promise<FileLarge>;
|
|
419
1680
|
}
|
|
420
1681
|
|
|
421
1682
|
export declare const ENTITIES: EntityType[];
|