@aiao/rxdb-test 0.0.2 → 0.0.4

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.
@@ -0,0 +1,771 @@
1
+ import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityType, FindAllOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, FindTreeOptions, FindTreeRootOptions, GetOptions, IEntityStaticType, ITreeEntity, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupCustom, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
2
+ import { Observable } from 'rxjs';
3
+
4
+ /**
5
+ * rule
6
+ */
7
+ declare type RxDBMigrationRule = NumberRules<RxDBMigration, 'id'>
8
+ | StringRules<RxDBMigration, 'name'>
9
+ | DateRules<RxDBMigration, 'executedAt'>;
10
+
11
+ /**
12
+ * RuleGroupCustom
13
+ */
14
+ export declare type RxDBMigrationRuleGroup = RuleGroupCustom<typeof RxDBMigration,
15
+ |'id'
16
+ |'name'
17
+ |'executedAt',
18
+ RxDBMigrationRule>;
19
+
20
+ /**
21
+ * OrderByField
22
+ */
23
+ declare type RxDBMigrationOrderByField = "id" | "name" | "executedAt";
24
+
25
+ /**
26
+ * rule
27
+ */
28
+ declare type RxDBChangeRule = NumberRules<RxDBChange, 'id'>
29
+ | StringRules<RxDBChange, 'type'>
30
+ | UUIDRules<RxDBChange, 'transactionId'>
31
+ | StringRules<RxDBChange, 'namespace'>
32
+ | StringRules<RxDBChange, 'entity'>
33
+ | UUIDRules<RxDBChange, 'entityId'>
34
+ | DateRules<RxDBChange, 'createdAt'>
35
+ | DateRules<RxDBChange, 'updatedAt'>
36
+ | DateRules<RxDBChange, 'revertChangedAt'>
37
+ | NumberRules<RxDBChange, 'revertChangeId'>
38
+ | UUIDRules<RxDBChange, 'parentId'>
39
+ | UUIDRules<RxDBChange, 'branchId'>
40
+ | RelationNumberRules<'children.id', any>
41
+ | RelationStringRules<'children.type', string>
42
+ | RelationUUIDRules<'children.transactionId', UUID | null>
43
+ | RelationStringRules<'children.namespace', string | null>
44
+ | RelationStringRules<'children.entity', string | null>
45
+ | RelationUUIDRules<'children.entityId', UUID | null>
46
+ | RelationDateRules<'children.createdAt', Date | null>
47
+ | RelationDateRules<'children.updatedAt', Date | null>
48
+ | RelationDateRules<'children.revertChangedAt', Date | null>
49
+ | RelationNumberRules<'children.revertChangeId', any | null>
50
+ | RelationNumberRules<'parent.id', any>
51
+ | RelationStringRules<'parent.type', string>
52
+ | RelationUUIDRules<'parent.transactionId', UUID | null>
53
+ | RelationStringRules<'parent.namespace', string | null>
54
+ | RelationStringRules<'parent.entity', string | null>
55
+ | RelationUUIDRules<'parent.entityId', UUID | null>
56
+ | RelationDateRules<'parent.createdAt', Date | null>
57
+ | RelationDateRules<'parent.updatedAt', Date | null>
58
+ | RelationDateRules<'parent.revertChangedAt', Date | null>
59
+ | RelationNumberRules<'parent.revertChangeId', any | null>
60
+ | RelationStringRules<'branch.id', string>
61
+ | RelationBooleanRules<'branch.activated', boolean>
62
+ | RelationBooleanRules<'branch.local', boolean>
63
+ | RelationBooleanRules<'branch.remote', boolean>;
64
+
65
+ /**
66
+ * RuleGroupCustom
67
+ */
68
+ export declare type RxDBChangeRuleGroup = RuleGroupCustom<typeof RxDBChange,
69
+ |'id'
70
+ |'type'
71
+ |'transactionId'
72
+ |'namespace'
73
+ |'entity'
74
+ |'entityId'
75
+ |'createdAt'
76
+ |'updatedAt'
77
+ |'revertChangedAt'
78
+ |'revertChangeId'
79
+ |'parentId'
80
+ |'branchId'
81
+ |'children.id'
82
+ |'children.type'
83
+ |'children.transactionId'
84
+ |'children.namespace'
85
+ |'children.entity'
86
+ |'children.entityId'
87
+ |'children.createdAt'
88
+ |'children.updatedAt'
89
+ |'children.revertChangedAt'
90
+ |'children.revertChangeId'
91
+ |'parentId'
92
+ |'branchId'
93
+ |'parent.id'
94
+ |'parent.type'
95
+ |'parent.transactionId'
96
+ |'parent.namespace'
97
+ |'parent.entity'
98
+ |'parent.entityId'
99
+ |'parent.createdAt'
100
+ |'parent.updatedAt'
101
+ |'parent.revertChangedAt'
102
+ |'parent.revertChangeId'
103
+ |'parentId'
104
+ |'branchId'
105
+ |'branch.id'
106
+ |'branch.activated'
107
+ |'branch.local'
108
+ |'branch.remote',
109
+ RxDBChangeRule>;
110
+
111
+ /**
112
+ * OrderByField
113
+ */
114
+ declare type RxDBChangeOrderByField = "id" | "type" | "transactionId" | "namespace" | "entity" | "entityId" | "inversePatch" | "patch" | "createdAt" | "updatedAt" | "revertChangedAt" | "revertChangeId";
115
+
116
+ /**
117
+ * TreeRule
118
+ */
119
+ declare type RxDBChangeTreeRule = RelationStringRules<'children.type', string>
120
+ | RelationUUIDRules<'children.transactionId', UUID | null>
121
+ | RelationStringRules<'children.namespace', string | null>
122
+ | RelationStringRules<'children.entity', string | null>
123
+ | RelationUUIDRules<'children.entityId', UUID | null>
124
+ | RelationDateRules<'children.createdAt', Date | null>
125
+ | RelationDateRules<'children.updatedAt', Date | null>
126
+ | RelationDateRules<'children.revertChangedAt', Date | null>
127
+ | RelationNumberRules<'children.revertChangeId', any | null>;
128
+
129
+ /**
130
+ * TreeRuleGroup
131
+ */
132
+ export declare type RxDBChangeTreeRuleGroup = RuleGroupCustom<typeof RxDBChange, 'children.type' | 'children.transactionId' | 'children.namespace' | 'children.entity' | 'children.entityId' | 'children.createdAt' | 'children.updatedAt' | 'children.revertChangedAt' | 'children.revertChangeId', RxDBChangeTreeRule>;
133
+
134
+ /**
135
+ * rule
136
+ */
137
+ declare type RxDBBranchRule = StringRules<RxDBBranch, 'id'>
138
+ | BooleanRules<RxDBBranch, 'activated'>
139
+ | BooleanRules<RxDBBranch, 'local'>
140
+ | BooleanRules<RxDBBranch, 'remote'>
141
+ | RelationNumberRules<'changes.id', any>
142
+ | RelationStringRules<'changes.type', string>
143
+ | RelationUUIDRules<'changes.transactionId', UUID | null>
144
+ | RelationStringRules<'changes.namespace', string | null>
145
+ | RelationStringRules<'changes.entity', string | null>
146
+ | RelationUUIDRules<'changes.entityId', UUID | null>
147
+ | RelationDateRules<'changes.createdAt', Date | null>
148
+ | RelationDateRules<'changes.updatedAt', Date | null>
149
+ | RelationDateRules<'changes.revertChangedAt', Date | null>
150
+ | RelationNumberRules<'changes.revertChangeId', any | null>
151
+ | UUIDRules<RxDBChange, 'parentId'>
152
+ | UUIDRules<RxDBChange, 'branchId'>
153
+ | RelationNumberRules<'changes.children.id', any>
154
+ | RelationStringRules<'changes.children.type', string>
155
+ | RelationUUIDRules<'changes.children.transactionId', UUID | null>
156
+ | RelationStringRules<'changes.children.namespace', string | null>
157
+ | RelationStringRules<'changes.children.entity', string | null>
158
+ | RelationUUIDRules<'changes.children.entityId', UUID | null>
159
+ | RelationDateRules<'changes.children.createdAt', Date | null>
160
+ | RelationDateRules<'changes.children.updatedAt', Date | null>
161
+ | RelationDateRules<'changes.children.revertChangedAt', Date | null>
162
+ | RelationNumberRules<'changes.children.revertChangeId', any | null>
163
+ | RelationNumberRules<'changes.parent.id', any>
164
+ | RelationStringRules<'changes.parent.type', string>
165
+ | RelationUUIDRules<'changes.parent.transactionId', UUID | null>
166
+ | RelationStringRules<'changes.parent.namespace', string | null>
167
+ | RelationStringRules<'changes.parent.entity', string | null>
168
+ | RelationUUIDRules<'changes.parent.entityId', UUID | null>
169
+ | RelationDateRules<'changes.parent.createdAt', Date | null>
170
+ | RelationDateRules<'changes.parent.updatedAt', Date | null>
171
+ | RelationDateRules<'changes.parent.revertChangedAt', Date | null>
172
+ | RelationNumberRules<'changes.parent.revertChangeId', any | null>;
173
+
174
+ /**
175
+ * RuleGroupCustom
176
+ */
177
+ export declare type RxDBBranchRuleGroup = RuleGroupCustom<typeof RxDBBranch,
178
+ |'id'
179
+ |'activated'
180
+ |'local'
181
+ |'remote'
182
+ |'changes.id'
183
+ |'changes.type'
184
+ |'changes.transactionId'
185
+ |'changes.namespace'
186
+ |'changes.entity'
187
+ |'changes.entityId'
188
+ |'changes.createdAt'
189
+ |'changes.updatedAt'
190
+ |'changes.revertChangedAt'
191
+ |'changes.revertChangeId'
192
+ |'parentId'
193
+ |'branchId'
194
+ |'changes.children.id'
195
+ |'changes.children.type'
196
+ |'changes.children.transactionId'
197
+ |'changes.children.namespace'
198
+ |'changes.children.entity'
199
+ |'changes.children.entityId'
200
+ |'changes.children.createdAt'
201
+ |'changes.children.updatedAt'
202
+ |'changes.children.revertChangedAt'
203
+ |'changes.children.revertChangeId'
204
+ |'parentId'
205
+ |'branchId'
206
+ |'changes.parent.id'
207
+ |'changes.parent.type'
208
+ |'changes.parent.transactionId'
209
+ |'changes.parent.namespace'
210
+ |'changes.parent.entity'
211
+ |'changes.parent.entityId'
212
+ |'changes.parent.createdAt'
213
+ |'changes.parent.updatedAt'
214
+ |'changes.parent.revertChangedAt'
215
+ |'changes.parent.revertChangeId'
216
+ |'parentId'
217
+ |'branchId',
218
+ RxDBBranchRule>;
219
+
220
+ /**
221
+ * OrderByField
222
+ */
223
+ declare type RxDBBranchOrderByField = "id" | "activated" | "local" | "remote";
224
+
225
+ /**
226
+ * rxdb
227
+ */
228
+ declare module "@aiao/rxdb" {
229
+ /**
230
+ * RxDB
231
+ */
232
+ interface RxDB {
233
+ /**
234
+ * RxDBMigration
235
+ */
236
+ RxDBMigration: typeof RxDBMigration;
237
+ /**
238
+ * RxDBChange
239
+ */
240
+ RxDBChange: typeof RxDBChange;
241
+ /**
242
+ * RxDBBranch
243
+ */
244
+ RxDBBranch: typeof RxDBBranch;
245
+ }
246
+ }
247
+
248
+ /**
249
+ * 静态类型
250
+ */
251
+ export interface RxDBMigrationStaticTypes {
252
+ /**
253
+ * id 类型
254
+ */
255
+ idType: number;
256
+ /**
257
+ * 查询选项
258
+ */
259
+ getOptions: number;
260
+ /**
261
+ * 查询选项
262
+ */
263
+ findOneOrFailOptions: FindOneOrFailOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>;
264
+ /**
265
+ * 查询选项
266
+ */
267
+ findOptions: FindOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>;
268
+ /**
269
+ * 查询选项
270
+ */
271
+ findOneOptions: FindOneOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>;
272
+ /**
273
+ * 查询选项
274
+ */
275
+ findAllOptions: FindAllOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>;
276
+ /**
277
+ * 查询选项
278
+ */
279
+ countOptions: CountOptions<typeof RxDBMigration,RxDBMigrationRuleGroup>;
280
+ }
281
+
282
+ /**
283
+ * 初始化数据
284
+ */
285
+ export interface RxDBMigrationInitData {
286
+ /**
287
+ * id
288
+ */
289
+ id?: any;
290
+ /**
291
+ * name
292
+ */
293
+ name?: string;
294
+ /**
295
+ * executedAt
296
+ * @default new Date()
297
+ */
298
+ executedAt?: Date;
299
+ }
300
+
301
+ /**
302
+ * 静态类型
303
+ */
304
+ export interface RxDBChangeStaticTypes {
305
+ /**
306
+ * id 类型
307
+ */
308
+ idType: number;
309
+ /**
310
+ * 查询选项
311
+ */
312
+ getOptions: number;
313
+ /**
314
+ * 查询选项
315
+ */
316
+ findOneOrFailOptions: FindOneOrFailOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>;
317
+ /**
318
+ * 查询选项
319
+ */
320
+ findOptions: FindOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>;
321
+ /**
322
+ * 查询选项
323
+ */
324
+ findOneOptions: FindOneOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>;
325
+ /**
326
+ * 查询选项
327
+ */
328
+ findAllOptions: FindAllOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>;
329
+ /**
330
+ * 查询选项
331
+ */
332
+ countOptions: CountOptions<typeof RxDBChange,RxDBChangeRuleGroup>;
333
+ /**
334
+ * 查询的实体
335
+ */
336
+ entity: RxDBChange;
337
+ /**
338
+ * 查询选项
339
+ */
340
+ findRootOptions: FindTreeRootOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
341
+ /**
342
+ * 查询选项
343
+ */
344
+ countRootOptions: FindTreeRootOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
345
+ /**
346
+ * 查询选项
347
+ */
348
+ findDescendantsOptions: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
349
+ /**
350
+ * 查询选项
351
+ */
352
+ countDescendantsOptions: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
353
+ /**
354
+ * 查询选项
355
+ */
356
+ findAncestorsOptions: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
357
+ /**
358
+ * 查询选项
359
+ */
360
+ countAncestorsOptions: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>;
361
+ }
362
+
363
+ /**
364
+ * 初始化数据
365
+ */
366
+ export interface RxDBChangeInitData {
367
+ /**
368
+ * id
369
+ */
370
+ id?: any;
371
+ /**
372
+ * type
373
+ */
374
+ type?: string;
375
+ /**
376
+ * transactionId
377
+ */
378
+ transactionId?: UUID | null;
379
+ /**
380
+ * namespace
381
+ */
382
+ namespace?: string | null;
383
+ /**
384
+ * entity
385
+ */
386
+ entity?: string | null;
387
+ /**
388
+ * entityId
389
+ */
390
+ entityId?: UUID | null;
391
+ /**
392
+ * inversePatch
393
+ */
394
+ inversePatch?: any | null;
395
+ /**
396
+ * patch
397
+ */
398
+ patch?: any | null;
399
+ /**
400
+ * createdAt
401
+ * @default new Date()
402
+ */
403
+ createdAt?: Date | null;
404
+ /**
405
+ * updatedAt
406
+ * @default new Date()
407
+ */
408
+ updatedAt?: Date | null;
409
+ /**
410
+ * revertChangedAt
411
+ */
412
+ revertChangedAt?: Date | null;
413
+ /**
414
+ * revertChangeId
415
+ */
416
+ revertChangeId?: any | null;
417
+ }
418
+
419
+ /**
420
+ * 静态类型
421
+ */
422
+ export interface RxDBBranchStaticTypes {
423
+ /**
424
+ * id 类型
425
+ */
426
+ idType: string;
427
+ /**
428
+ * 查询选项
429
+ */
430
+ getOptions: string;
431
+ /**
432
+ * 查询选项
433
+ */
434
+ findOneOrFailOptions: FindOneOrFailOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>;
435
+ /**
436
+ * 查询选项
437
+ */
438
+ findOptions: FindOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>;
439
+ /**
440
+ * 查询选项
441
+ */
442
+ findOneOptions: FindOneOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>;
443
+ /**
444
+ * 查询选项
445
+ */
446
+ findAllOptions: FindAllOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>;
447
+ /**
448
+ * 查询选项
449
+ */
450
+ countOptions: CountOptions<typeof RxDBBranch,RxDBBranchRuleGroup>;
451
+ }
452
+
453
+ /**
454
+ * 初始化数据
455
+ */
456
+ export interface RxDBBranchInitData {
457
+ /**
458
+ * id
459
+ */
460
+ id?: string;
461
+ /**
462
+ * activated
463
+ */
464
+ activated?: boolean;
465
+ /**
466
+ * local
467
+ */
468
+ local?: boolean;
469
+ /**
470
+ * remote
471
+ */
472
+ remote?: boolean;
473
+ }
474
+
475
+ /**
476
+ * RxDBMigration
477
+ */
478
+ export declare class RxDBMigration implements IEntityStaticType {
479
+ /**
480
+ * executedAt
481
+ * @default new Date()
482
+ */
483
+ executedAt: Date;
484
+ /**
485
+ * name
486
+ */
487
+ name: string;
488
+ [ENTITY_STATIC_TYPES]: RxDBMigrationStaticTypes;
489
+ /**
490
+ * id
491
+ */
492
+ id: any;
493
+ /**
494
+ * 初始化数据
495
+ * @param initData 初始化数据
496
+ */
497
+ constructor(initData?: RxDBMigrationInitData);
498
+ /**
499
+ * count 查询
500
+ * @param options 查询选项
501
+ */
502
+ static count(options: CountOptions<typeof RxDBMigration,RxDBMigrationRuleGroup>): Observable<number>;
503
+ /**
504
+ * find 查询
505
+ * @param options 查询选项
506
+ */
507
+ static find(options: FindOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>): Observable<RxDBMigration[]>;
508
+ /**
509
+ * findAll 查询
510
+ * @param options 查询选项
511
+ */
512
+ static findAll(options: FindAllOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>): Observable<RxDBMigration[]>;
513
+ /**
514
+ * findOne 查询
515
+ * @param options 查询选项
516
+ */
517
+ static findOne(options: FindOneOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>): Observable<RxDBMigration | undefined>;
518
+ /**
519
+ * findOneOrFail 查询
520
+ * @param options 查询选项
521
+ */
522
+ static findOneOrFail(options: FindOneOrFailOptions<typeof RxDBMigration,RxDBMigrationRuleGroup,RxDBMigrationOrderByField>): Observable<RxDBMigration>;
523
+ /**
524
+ * get 查询
525
+ * @param options 查询选项
526
+ */
527
+ static get(options: number): Observable<RxDBMigration>;
528
+ /**
529
+ * 删除
530
+ */
531
+ remove(): Promise<RxDBMigration>;
532
+ /**
533
+ * 重置数据
534
+ */
535
+ reset(): void;
536
+ /**
537
+ * 保存
538
+ */
539
+ save(): Promise<RxDBMigration>;
540
+ }
541
+
542
+ /**
543
+ * RxDBChange
544
+ */
545
+ export declare class RxDBChange implements IEntityStaticType {
546
+ /**
547
+ * branch
548
+ */
549
+ branch$: RelationEntityObservable<RxDBBranch | null>;
550
+ /**
551
+ * branch id
552
+ */
553
+ branchId?: string;
554
+ /**
555
+ * children
556
+ */
557
+ children$: RelationEntitiesObservable<RxDBChange>;
558
+ /**
559
+ * createdAt
560
+ * @default new Date()
561
+ */
562
+ createdAt?: Date | null;
563
+ /**
564
+ * entity
565
+ */
566
+ entity?: string | null;
567
+ /**
568
+ * entityId
569
+ */
570
+ entityId?: UUID | null;
571
+ /**
572
+ * inversePatch
573
+ */
574
+ inversePatch?: any | null;
575
+ /**
576
+ * namespace
577
+ */
578
+ namespace?: string | null;
579
+ /**
580
+ * parent
581
+ */
582
+ parent$: RelationEntityObservable<RxDBChange | null>;
583
+ /**
584
+ * parent id
585
+ */
586
+ parentId?: number;
587
+ /**
588
+ * patch
589
+ */
590
+ patch?: any | null;
591
+ /**
592
+ * type
593
+ */
594
+ type: string;
595
+ /**
596
+ * updatedAt
597
+ * @default new Date()
598
+ */
599
+ updatedAt?: Date | null;
600
+ [ENTITY_STATIC_TYPES]: RxDBChangeStaticTypes;
601
+ /**
602
+ * id
603
+ */
604
+ id: any;
605
+ /**
606
+ * revertChangedAt
607
+ */
608
+ revertChangedAt?: Date | null;
609
+ /**
610
+ * revertChangeId
611
+ */
612
+ revertChangeId?: any | null;
613
+ /**
614
+ * transactionId
615
+ */
616
+ transactionId?: UUID | null;
617
+ /**
618
+ * 初始化数据
619
+ * @param initData 初始化数据
620
+ */
621
+ constructor(initData?: RxDBChangeInitData);
622
+ /**
623
+ * count 查询
624
+ * @param options 查询选项
625
+ */
626
+ static count(options: CountOptions<typeof RxDBChange,RxDBChangeRuleGroup>): Observable<number>;
627
+ /**
628
+ * 查询祖先实体数量
629
+ * @param options 查询选项
630
+ */
631
+ static countAncestors(options?: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<number>;
632
+ /**
633
+ * 查询子孙实体数量
634
+ * @param options 查询选项
635
+ */
636
+ static countDescendants(options?: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<number>;
637
+ /**
638
+ * 查询子孙实体数量
639
+ * @param options 查询选项
640
+ */
641
+ static countRoot(options?: FindTreeRootOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<number>;
642
+ /**
643
+ * find 查询
644
+ * @param options 查询选项
645
+ */
646
+ static find(options: FindOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>): Observable<RxDBChange[]>;
647
+ /**
648
+ * findAll 查询
649
+ * @param options 查询选项
650
+ */
651
+ static findAll(options: FindAllOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>): Observable<RxDBChange[]>;
652
+ /**
653
+ * 查询祖先实体
654
+ * @param options 查询选项
655
+ */
656
+ static findAncestors(options?: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<RxDBChange[]>;
657
+ /**
658
+ * 查询子孙实体
659
+ * @param options 查询选项
660
+ */
661
+ static findDescendants(options?: FindTreeOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<RxDBChange[]>;
662
+ /**
663
+ * findOne 查询
664
+ * @param options 查询选项
665
+ */
666
+ static findOne(options: FindOneOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>): Observable<RxDBChange | undefined>;
667
+ /**
668
+ * findOneOrFail 查询
669
+ * @param options 查询选项
670
+ */
671
+ static findOneOrFail(options: FindOneOrFailOptions<typeof RxDBChange,RxDBChangeRuleGroup,RxDBChangeOrderByField>): Observable<RxDBChange>;
672
+ /**
673
+ * 查询子孙实体
674
+ * @param options 查询选项
675
+ */
676
+ static findRoot(options?: FindTreeRootOptions<typeof RxDBChange,RxDBChangeTreeRuleGroup>): Observable<RxDBChange[]>;
677
+ /**
678
+ * get 查询
679
+ * @param options 查询选项
680
+ */
681
+ static get(options: number): Observable<RxDBChange>;
682
+ /**
683
+ * 删除
684
+ */
685
+ remove(): Promise<RxDBChange>;
686
+ /**
687
+ * 重置数据
688
+ */
689
+ reset(): void;
690
+ /**
691
+ * 保存
692
+ */
693
+ save(): Promise<RxDBChange>;
694
+ }
695
+
696
+ /**
697
+ * RxDBBranch
698
+ */
699
+ export declare class RxDBBranch implements IEntityStaticType {
700
+ /**
701
+ * changes
702
+ */
703
+ changes$: RelationEntitiesObservable<RxDBChange>;
704
+ [ENTITY_STATIC_TYPES]: RxDBBranchStaticTypes;
705
+ /**
706
+ * activated
707
+ */
708
+ activated: boolean;
709
+ /**
710
+ * id
711
+ */
712
+ id: string;
713
+ /**
714
+ * local
715
+ */
716
+ local: boolean;
717
+ /**
718
+ * remote
719
+ */
720
+ remote: boolean;
721
+ /**
722
+ * 初始化数据
723
+ * @param initData 初始化数据
724
+ */
725
+ constructor(initData?: RxDBBranchInitData);
726
+ /**
727
+ * count 查询
728
+ * @param options 查询选项
729
+ */
730
+ static count(options: CountOptions<typeof RxDBBranch,RxDBBranchRuleGroup>): Observable<number>;
731
+ /**
732
+ * find 查询
733
+ * @param options 查询选项
734
+ */
735
+ static find(options: FindOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>): Observable<RxDBBranch[]>;
736
+ /**
737
+ * findAll 查询
738
+ * @param options 查询选项
739
+ */
740
+ static findAll(options: FindAllOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>): Observable<RxDBBranch[]>;
741
+ /**
742
+ * findOne 查询
743
+ * @param options 查询选项
744
+ */
745
+ static findOne(options: FindOneOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>): Observable<RxDBBranch | undefined>;
746
+ /**
747
+ * findOneOrFail 查询
748
+ * @param options 查询选项
749
+ */
750
+ static findOneOrFail(options: FindOneOrFailOptions<typeof RxDBBranch,RxDBBranchRuleGroup,RxDBBranchOrderByField>): Observable<RxDBBranch>;
751
+ /**
752
+ * get 查询
753
+ * @param options 查询选项
754
+ */
755
+ static get(options: string): Observable<RxDBBranch>;
756
+ /**
757
+ * 删除
758
+ */
759
+ remove(): Promise<RxDBBranch>;
760
+ /**
761
+ * 重置数据
762
+ */
763
+ reset(): void;
764
+ /**
765
+ * 保存
766
+ */
767
+ save(): Promise<RxDBBranch>;
768
+ }
769
+
770
+ export declare const ENTITIES: EntityType[];
771
+