@aiao/rxdb-test 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +30 -1
  2. package/dist/entities/FileLarge.d.ts +339 -0
  3. package/dist/entities/FileLarge.js +77 -0
  4. package/dist/entities/FileNode.d.ts +335 -0
  5. package/dist/entities/FileNode.js +77 -0
  6. package/dist/entities/MenuLarge.d.ts +294 -0
  7. package/dist/entities/MenuLarge.js +41 -0
  8. package/dist/entities/MenuSimple.d.ts +290 -0
  9. package/dist/entities/MenuSimple.js +41 -0
  10. package/dist/entities/Todo.d.ts +165 -0
  11. package/dist/entities/Todo.js +34 -0
  12. package/dist/entities/TypeDemo.d.ts +289 -0
  13. package/dist/entities/TypeDemo.js +137 -0
  14. package/dist/entities/index.d.ts +14 -1655
  15. package/dist/entities/index.js +6 -360
  16. package/dist/graph/index.d.ts +1 -2
  17. package/dist/graph/index.js +1 -1
  18. package/dist/shop/Attribute.d.ts +992 -0
  19. package/dist/shop/Attribute.js +50 -0
  20. package/dist/shop/AttributeValue.d.ts +999 -0
  21. package/dist/shop/AttributeValue.js +51 -0
  22. package/dist/shop/Category.d.ts +772 -0
  23. package/dist/shop/Category.js +52 -0
  24. package/dist/shop/IdCard.d.ts +647 -0
  25. package/dist/shop/IdCard.js +43 -0
  26. package/dist/shop/Order.d.ts +690 -0
  27. package/dist/shop/Order.js +66 -0
  28. package/dist/shop/OrderItem.d.ts +665 -0
  29. package/dist/shop/OrderItem.js +76 -0
  30. package/dist/shop/Product.d.ts +761 -0
  31. package/dist/shop/Product.js +58 -0
  32. package/dist/shop/SKU.d.ts +634 -0
  33. package/dist/shop/SKU.js +74 -0
  34. package/dist/shop/SKUAttributes.d.ts +625 -0
  35. package/dist/shop/SKUAttributes.js +56 -0
  36. package/dist/shop/User.d.ts +679 -0
  37. package/dist/shop/User.js +74 -0
  38. package/dist/shop/index.d.ts +52 -2990
  39. package/dist/shop/index.js +10 -528
  40. package/dist/system/RxDBBranch.d.ts +396 -0
  41. package/dist/system/RxDBBranch.js +106 -0
  42. package/dist/system/RxDBChange.d.ts +361 -0
  43. package/dist/system/RxDBChange.js +123 -0
  44. package/dist/system/RxDBMigration.d.ts +167 -0
  45. package/dist/system/RxDBMigration.js +40 -0
  46. package/dist/system/RxDBSync.d.ts +339 -0
  47. package/dist/system/RxDBSync.js +122 -0
  48. package/dist/system/index.d.ts +9 -1240
  49. package/dist/system/index.js +4 -384
  50. package/package.json +3 -3
@@ -0,0 +1,679 @@
1
+ import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, IEntity, ITreeEntity, NumberRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationExistsRules, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupBase, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
2
+ import { Observable } from 'rxjs';
3
+
4
+ /**
5
+ * rule
6
+ */
7
+ declare type UserRule = UUIDRules<User, 'id'>
8
+ | DateRules<User, 'createdAt'>
9
+ | DateRules<User, 'updatedAt'>
10
+ | StringRules<User, 'createdBy'>
11
+ | StringRules<User, 'updatedBy'>
12
+ | StringRules<User, 'name'>
13
+ | BooleanRules<User, 'married'>
14
+ | NumberRules<User, 'age'>
15
+ | StringRules<User, 'gender'>
16
+ | UUIDRules<User, 'idCardId'>
17
+ | RelationExistsRules<'idCard', IdCardRuleGroup>
18
+ | RelationUUIDRules<'idCard.id', UUID>
19
+ | RelationDateRules<'idCard.createdAt', Date>
20
+ | RelationDateRules<'idCard.updatedAt', Date>
21
+ | RelationStringRules<'idCard.createdBy', string | null>
22
+ | RelationStringRules<'idCard.updatedBy', string | null>
23
+ | RelationStringRules<'idCard.code', string>
24
+ | UUIDRules<IdCard, 'ownerId'>
25
+ | RelationExistsRules<'orders', OrderRuleGroup>
26
+ | RelationUUIDRules<'orders.id', UUID>
27
+ | RelationDateRules<'orders.createdAt', Date>
28
+ | RelationDateRules<'orders.updatedAt', Date>
29
+ | RelationStringRules<'orders.createdBy', string | null>
30
+ | RelationStringRules<'orders.updatedBy', string | null>
31
+ | RelationStringRules<'orders.number', string>
32
+ | RelationNumberRules<'orders.amount', number>
33
+ | RelationStringRules<'orders.status', string | null>
34
+ | UUIDRules<Order, 'ownerId'>
35
+ | RelationUUIDRules<'orders.items.id', UUID>
36
+ | RelationDateRules<'orders.items.createdAt', Date>
37
+ | RelationDateRules<'orders.items.updatedAt', Date>
38
+ | RelationStringRules<'orders.items.createdBy', string | null>
39
+ | RelationStringRules<'orders.items.updatedBy', string | null>
40
+ | RelationStringRules<'orders.items.productName', string>
41
+ | RelationNumberRules<'orders.items.quantity', number>
42
+ | RelationNumberRules<'orders.items.price', number>
43
+ | UUIDRules<OrderItem, 'orderId'>
44
+ | UUIDRules<OrderItem, 'skuId'>
45
+ | RelationUUIDRules<'orders.items.sku.id', UUID>
46
+ | RelationDateRules<'orders.items.sku.createdAt', Date>
47
+ | RelationDateRules<'orders.items.sku.updatedAt', Date>
48
+ | RelationStringRules<'orders.items.sku.createdBy', string | null>
49
+ | RelationStringRules<'orders.items.sku.updatedBy', string | null>
50
+ | RelationStringRules<'orders.items.sku.code', string>
51
+ | RelationNumberRules<'orders.items.sku.price', number>
52
+ | RelationNumberRules<'orders.items.sku.stock', number>
53
+ | UUIDRules<SKU, 'productId'>
54
+ | RelationUUIDRules<'orders.items.sku.attributes.id', UUID>
55
+ | RelationDateRules<'orders.items.sku.attributes.createdAt', Date>
56
+ | RelationDateRules<'orders.items.sku.attributes.updatedAt', Date>
57
+ | RelationStringRules<'orders.items.sku.attributes.createdBy', string | null>
58
+ | RelationStringRules<'orders.items.sku.attributes.updatedBy', string | null>
59
+ | UUIDRules<SKUAttributes, 'skuId'>
60
+ | UUIDRules<SKUAttributes, 'attributeId'>
61
+ | UUIDRules<SKUAttributes, 'valueId'>
62
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.id', UUID>
63
+ | RelationDateRules<'orders.items.sku.attributes.attribute.createdAt', Date>
64
+ | RelationDateRules<'orders.items.sku.attributes.attribute.updatedAt', Date>
65
+ | RelationStringRules<'orders.items.sku.attributes.attribute.createdBy', string | null>
66
+ | RelationStringRules<'orders.items.sku.attributes.attribute.updatedBy', string | null>
67
+ | RelationStringRules<'orders.items.sku.attributes.attribute.name', string>
68
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.values.id', UUID>
69
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.createdAt', Date>
70
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.updatedAt', Date>
71
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.createdBy', string | null>
72
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.updatedBy', string | null>
73
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.name', string>
74
+ | UUIDRules<AttributeValue, 'attributeId'>
75
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.id', UUID>
76
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdAt', Date>
77
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
78
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
79
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
80
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.skuAttributes.id', UUID>
81
+ | RelationDateRules<'orders.items.sku.attributes.attribute.skuAttributes.createdAt', Date>
82
+ | RelationDateRules<'orders.items.sku.attributes.attribute.skuAttributes.updatedAt', Date>
83
+ | RelationStringRules<'orders.items.sku.attributes.attribute.skuAttributes.createdBy', string | null>
84
+ | RelationStringRules<'orders.items.sku.attributes.attribute.skuAttributes.updatedBy', string | null>
85
+ | RelationUUIDRules<'orders.items.sku.attributes.value.id', UUID>
86
+ | RelationDateRules<'orders.items.sku.attributes.value.createdAt', Date>
87
+ | RelationDateRules<'orders.items.sku.attributes.value.updatedAt', Date>
88
+ | RelationStringRules<'orders.items.sku.attributes.value.createdBy', string | null>
89
+ | RelationStringRules<'orders.items.sku.attributes.value.updatedBy', string | null>
90
+ | RelationStringRules<'orders.items.sku.attributes.value.name', string>
91
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.id', UUID>
92
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.createdAt', Date>
93
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.updatedAt', Date>
94
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.createdBy', string | null>
95
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.updatedBy', string | null>
96
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.name', string>
97
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.values.id', UUID>
98
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.values.createdAt', Date>
99
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.values.updatedAt', Date>
100
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.createdBy', string | null>
101
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.updatedBy', string | null>
102
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.name', string>
103
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.skuAttributes.id', UUID>
104
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.skuAttributes.createdAt', Date>
105
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.skuAttributes.updatedAt', Date>
106
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.skuAttributes.createdBy', string | null>
107
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.skuAttributes.updatedBy', string | null>
108
+ | RelationUUIDRules<'orders.items.sku.attributes.value.skuAttributeValues.id', UUID>
109
+ | RelationDateRules<'orders.items.sku.attributes.value.skuAttributeValues.createdAt', Date>
110
+ | RelationDateRules<'orders.items.sku.attributes.value.skuAttributeValues.updatedAt', Date>
111
+ | RelationStringRules<'orders.items.sku.attributes.value.skuAttributeValues.createdBy', string | null>
112
+ | RelationStringRules<'orders.items.sku.attributes.value.skuAttributeValues.updatedBy', string | null>
113
+ | RelationUUIDRules<'orders.items.sku.orderItems.id', UUID>
114
+ | RelationDateRules<'orders.items.sku.orderItems.createdAt', Date>
115
+ | RelationDateRules<'orders.items.sku.orderItems.updatedAt', Date>
116
+ | RelationStringRules<'orders.items.sku.orderItems.createdBy', string | null>
117
+ | RelationStringRules<'orders.items.sku.orderItems.updatedBy', string | null>
118
+ | RelationStringRules<'orders.items.sku.orderItems.productName', string>
119
+ | RelationNumberRules<'orders.items.sku.orderItems.quantity', number>
120
+ | RelationNumberRules<'orders.items.sku.orderItems.price', number>
121
+ | RelationUUIDRules<'orders.items.sku.product.id', UUID>
122
+ | RelationDateRules<'orders.items.sku.product.createdAt', Date>
123
+ | RelationDateRules<'orders.items.sku.product.updatedAt', Date>
124
+ | RelationStringRules<'orders.items.sku.product.createdBy', string | null>
125
+ | RelationStringRules<'orders.items.sku.product.updatedBy', string | null>
126
+ | RelationStringRules<'orders.items.sku.product.name', string>
127
+ | RelationStringRules<'orders.items.sku.product.description', string | null>
128
+ | RelationUUIDRules<'orders.items.sku.product.skus.id', UUID>
129
+ | RelationDateRules<'orders.items.sku.product.skus.createdAt', Date>
130
+ | RelationDateRules<'orders.items.sku.product.skus.updatedAt', Date>
131
+ | RelationStringRules<'orders.items.sku.product.skus.createdBy', string | null>
132
+ | RelationStringRules<'orders.items.sku.product.skus.updatedBy', string | null>
133
+ | RelationStringRules<'orders.items.sku.product.skus.code', string>
134
+ | RelationNumberRules<'orders.items.sku.product.skus.price', number>
135
+ | RelationNumberRules<'orders.items.sku.product.skus.stock', number>
136
+ | RelationUUIDRules<'orders.items.sku.product.categories.id', UUID>
137
+ | RelationDateRules<'orders.items.sku.product.categories.createdAt', Date>
138
+ | RelationDateRules<'orders.items.sku.product.categories.updatedAt', Date>
139
+ | RelationStringRules<'orders.items.sku.product.categories.createdBy', string | null>
140
+ | RelationStringRules<'orders.items.sku.product.categories.updatedBy', string | null>
141
+ | RelationStringRules<'orders.items.sku.product.categories.name', string>
142
+ | RelationUUIDRules<'orders.items.sku.product.categories.orderItems.id', UUID>
143
+ | RelationDateRules<'orders.items.sku.product.categories.orderItems.createdAt', Date>
144
+ | RelationDateRules<'orders.items.sku.product.categories.orderItems.updatedAt', Date>
145
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.createdBy', string | null>
146
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.updatedBy', string | null>
147
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.productName', string>
148
+ | RelationNumberRules<'orders.items.sku.product.categories.orderItems.quantity', number>
149
+ | RelationNumberRules<'orders.items.sku.product.categories.orderItems.price', number>
150
+ | RelationUUIDRules<'orders.items.categories.id', UUID>
151
+ | RelationDateRules<'orders.items.categories.createdAt', Date>
152
+ | RelationDateRules<'orders.items.categories.updatedAt', Date>
153
+ | RelationStringRules<'orders.items.categories.createdBy', string | null>
154
+ | RelationStringRules<'orders.items.categories.updatedBy', string | null>
155
+ | RelationStringRules<'orders.items.categories.name', string>
156
+ | RelationUUIDRules<'orders.items.categories.products.id', UUID>
157
+ | RelationDateRules<'orders.items.categories.products.createdAt', Date>
158
+ | RelationDateRules<'orders.items.categories.products.updatedAt', Date>
159
+ | RelationStringRules<'orders.items.categories.products.createdBy', string | null>
160
+ | RelationStringRules<'orders.items.categories.products.updatedBy', string | null>
161
+ | RelationStringRules<'orders.items.categories.products.name', string>
162
+ | RelationStringRules<'orders.items.categories.products.description', string | null>
163
+ | RelationUUIDRules<'orders.items.categories.products.skus.id', UUID>
164
+ | RelationDateRules<'orders.items.categories.products.skus.createdAt', Date>
165
+ | RelationDateRules<'orders.items.categories.products.skus.updatedAt', Date>
166
+ | RelationStringRules<'orders.items.categories.products.skus.createdBy', string | null>
167
+ | RelationStringRules<'orders.items.categories.products.skus.updatedBy', string | null>
168
+ | RelationStringRules<'orders.items.categories.products.skus.code', string>
169
+ | RelationNumberRules<'orders.items.categories.products.skus.price', number>
170
+ | RelationNumberRules<'orders.items.categories.products.skus.stock', number>
171
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.id', UUID>
172
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.createdAt', Date>
173
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.updatedAt', Date>
174
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.createdBy', string | null>
175
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.updatedBy', string | null>
176
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.id', UUID>
177
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.createdAt', Date>
178
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.updatedAt', Date>
179
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.createdBy', string | null>
180
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.updatedBy', string | null>
181
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.name', string>
182
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.values.id', UUID>
183
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.createdAt', Date>
184
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.updatedAt', Date>
185
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.createdBy', string | null>
186
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.updatedBy', string | null>
187
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.name', string>
188
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id', UUID>
189
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
190
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
191
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
192
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
193
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.id', UUID>
194
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdAt', Date>
195
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt', Date>
196
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdBy', string | null>
197
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy', string | null>
198
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.id', UUID>
199
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.createdAt', Date>
200
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.updatedAt', Date>
201
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.createdBy', string | null>
202
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.updatedBy', string | null>
203
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.name', string>
204
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.id', UUID>
205
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.createdAt', Date>
206
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.updatedAt', Date>
207
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.createdBy', string | null>
208
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.updatedBy', string | null>
209
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.name', string>
210
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.values.id', UUID>
211
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.values.createdAt', Date>
212
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.values.updatedAt', Date>
213
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.createdBy', string | null>
214
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.updatedBy', string | null>
215
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.name', string>
216
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.id', UUID>
217
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt', Date>
218
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
219
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
220
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
221
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.id', UUID>
222
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdAt', Date>
223
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt', Date>
224
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdBy', string | null>
225
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy', string | null>
226
+ | RelationUUIDRules<'orders.items.categories.products.skus.orderItems.id', UUID>
227
+ | RelationDateRules<'orders.items.categories.products.skus.orderItems.createdAt', Date>
228
+ | RelationDateRules<'orders.items.categories.products.skus.orderItems.updatedAt', Date>
229
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.createdBy', string | null>
230
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.updatedBy', string | null>
231
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.productName', string>
232
+ | RelationNumberRules<'orders.items.categories.products.skus.orderItems.quantity', number>
233
+ | RelationNumberRules<'orders.items.categories.products.skus.orderItems.price', number>;
234
+
235
+ /**
236
+ * RuleGroupBase
237
+ */
238
+ export declare type UserRuleGroup = RuleGroupBase<typeof User,
239
+ |'id'
240
+ |'createdAt'
241
+ |'updatedAt'
242
+ |'createdBy'
243
+ |'updatedBy'
244
+ |'name'
245
+ |'married'
246
+ |'age'
247
+ |'gender'
248
+ |'idCardId'
249
+ |'idCard'
250
+ |'idCard.id'
251
+ |'idCard.createdAt'
252
+ |'idCard.updatedAt'
253
+ |'idCard.createdBy'
254
+ |'idCard.updatedBy'
255
+ |'idCard.code'
256
+ |'ownerId'
257
+ |'orders'
258
+ |'orders.id'
259
+ |'orders.createdAt'
260
+ |'orders.updatedAt'
261
+ |'orders.createdBy'
262
+ |'orders.updatedBy'
263
+ |'orders.number'
264
+ |'orders.amount'
265
+ |'orders.status'
266
+ |'ownerId'
267
+ |'orders.items.id'
268
+ |'orders.items.createdAt'
269
+ |'orders.items.updatedAt'
270
+ |'orders.items.createdBy'
271
+ |'orders.items.updatedBy'
272
+ |'orders.items.productName'
273
+ |'orders.items.quantity'
274
+ |'orders.items.price'
275
+ |'orderId'
276
+ |'skuId'
277
+ |'orders.items.sku.id'
278
+ |'orders.items.sku.createdAt'
279
+ |'orders.items.sku.updatedAt'
280
+ |'orders.items.sku.createdBy'
281
+ |'orders.items.sku.updatedBy'
282
+ |'orders.items.sku.code'
283
+ |'orders.items.sku.price'
284
+ |'orders.items.sku.stock'
285
+ |'productId'
286
+ |'orders.items.sku.attributes.id'
287
+ |'orders.items.sku.attributes.createdAt'
288
+ |'orders.items.sku.attributes.updatedAt'
289
+ |'orders.items.sku.attributes.createdBy'
290
+ |'orders.items.sku.attributes.updatedBy'
291
+ |'skuId'
292
+ |'attributeId'
293
+ |'valueId'
294
+ |'orders.items.sku.attributes.attribute.id'
295
+ |'orders.items.sku.attributes.attribute.createdAt'
296
+ |'orders.items.sku.attributes.attribute.updatedAt'
297
+ |'orders.items.sku.attributes.attribute.createdBy'
298
+ |'orders.items.sku.attributes.attribute.updatedBy'
299
+ |'orders.items.sku.attributes.attribute.name'
300
+ |'orders.items.sku.attributes.attribute.values.id'
301
+ |'orders.items.sku.attributes.attribute.values.createdAt'
302
+ |'orders.items.sku.attributes.attribute.values.updatedAt'
303
+ |'orders.items.sku.attributes.attribute.values.createdBy'
304
+ |'orders.items.sku.attributes.attribute.values.updatedBy'
305
+ |'orders.items.sku.attributes.attribute.values.name'
306
+ |'attributeId'
307
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.id'
308
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdAt'
309
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedAt'
310
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdBy'
311
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedBy'
312
+ |'skuId'
313
+ |'attributeId'
314
+ |'valueId'
315
+ |'orders.items.sku.attributes.attribute.skuAttributes.id'
316
+ |'orders.items.sku.attributes.attribute.skuAttributes.createdAt'
317
+ |'orders.items.sku.attributes.attribute.skuAttributes.updatedAt'
318
+ |'orders.items.sku.attributes.attribute.skuAttributes.createdBy'
319
+ |'orders.items.sku.attributes.attribute.skuAttributes.updatedBy'
320
+ |'skuId'
321
+ |'attributeId'
322
+ |'valueId'
323
+ |'orders.items.sku.attributes.value.id'
324
+ |'orders.items.sku.attributes.value.createdAt'
325
+ |'orders.items.sku.attributes.value.updatedAt'
326
+ |'orders.items.sku.attributes.value.createdBy'
327
+ |'orders.items.sku.attributes.value.updatedBy'
328
+ |'orders.items.sku.attributes.value.name'
329
+ |'attributeId'
330
+ |'orders.items.sku.attributes.value.attribute.id'
331
+ |'orders.items.sku.attributes.value.attribute.createdAt'
332
+ |'orders.items.sku.attributes.value.attribute.updatedAt'
333
+ |'orders.items.sku.attributes.value.attribute.createdBy'
334
+ |'orders.items.sku.attributes.value.attribute.updatedBy'
335
+ |'orders.items.sku.attributes.value.attribute.name'
336
+ |'orders.items.sku.attributes.value.attribute.values.id'
337
+ |'orders.items.sku.attributes.value.attribute.values.createdAt'
338
+ |'orders.items.sku.attributes.value.attribute.values.updatedAt'
339
+ |'orders.items.sku.attributes.value.attribute.values.createdBy'
340
+ |'orders.items.sku.attributes.value.attribute.values.updatedBy'
341
+ |'orders.items.sku.attributes.value.attribute.values.name'
342
+ |'attributeId'
343
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.id'
344
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.createdAt'
345
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.updatedAt'
346
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.createdBy'
347
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.updatedBy'
348
+ |'skuId'
349
+ |'attributeId'
350
+ |'valueId'
351
+ |'orders.items.sku.attributes.value.skuAttributeValues.id'
352
+ |'orders.items.sku.attributes.value.skuAttributeValues.createdAt'
353
+ |'orders.items.sku.attributes.value.skuAttributeValues.updatedAt'
354
+ |'orders.items.sku.attributes.value.skuAttributeValues.createdBy'
355
+ |'orders.items.sku.attributes.value.skuAttributeValues.updatedBy'
356
+ |'skuId'
357
+ |'attributeId'
358
+ |'valueId'
359
+ |'orders.items.sku.orderItems.id'
360
+ |'orders.items.sku.orderItems.createdAt'
361
+ |'orders.items.sku.orderItems.updatedAt'
362
+ |'orders.items.sku.orderItems.createdBy'
363
+ |'orders.items.sku.orderItems.updatedBy'
364
+ |'orders.items.sku.orderItems.productName'
365
+ |'orders.items.sku.orderItems.quantity'
366
+ |'orders.items.sku.orderItems.price'
367
+ |'orderId'
368
+ |'skuId'
369
+ |'orders.items.sku.product.id'
370
+ |'orders.items.sku.product.createdAt'
371
+ |'orders.items.sku.product.updatedAt'
372
+ |'orders.items.sku.product.createdBy'
373
+ |'orders.items.sku.product.updatedBy'
374
+ |'orders.items.sku.product.name'
375
+ |'orders.items.sku.product.description'
376
+ |'orders.items.sku.product.skus.id'
377
+ |'orders.items.sku.product.skus.createdAt'
378
+ |'orders.items.sku.product.skus.updatedAt'
379
+ |'orders.items.sku.product.skus.createdBy'
380
+ |'orders.items.sku.product.skus.updatedBy'
381
+ |'orders.items.sku.product.skus.code'
382
+ |'orders.items.sku.product.skus.price'
383
+ |'orders.items.sku.product.skus.stock'
384
+ |'productId'
385
+ |'orders.items.sku.product.categories.id'
386
+ |'orders.items.sku.product.categories.createdAt'
387
+ |'orders.items.sku.product.categories.updatedAt'
388
+ |'orders.items.sku.product.categories.createdBy'
389
+ |'orders.items.sku.product.categories.updatedBy'
390
+ |'orders.items.sku.product.categories.name'
391
+ |'orders.items.sku.product.categories.orderItems.id'
392
+ |'orders.items.sku.product.categories.orderItems.createdAt'
393
+ |'orders.items.sku.product.categories.orderItems.updatedAt'
394
+ |'orders.items.sku.product.categories.orderItems.createdBy'
395
+ |'orders.items.sku.product.categories.orderItems.updatedBy'
396
+ |'orders.items.sku.product.categories.orderItems.productName'
397
+ |'orders.items.sku.product.categories.orderItems.quantity'
398
+ |'orders.items.sku.product.categories.orderItems.price'
399
+ |'orderId'
400
+ |'skuId'
401
+ |'orders.items.categories.id'
402
+ |'orders.items.categories.createdAt'
403
+ |'orders.items.categories.updatedAt'
404
+ |'orders.items.categories.createdBy'
405
+ |'orders.items.categories.updatedBy'
406
+ |'orders.items.categories.name'
407
+ |'orders.items.categories.products.id'
408
+ |'orders.items.categories.products.createdAt'
409
+ |'orders.items.categories.products.updatedAt'
410
+ |'orders.items.categories.products.createdBy'
411
+ |'orders.items.categories.products.updatedBy'
412
+ |'orders.items.categories.products.name'
413
+ |'orders.items.categories.products.description'
414
+ |'orders.items.categories.products.skus.id'
415
+ |'orders.items.categories.products.skus.createdAt'
416
+ |'orders.items.categories.products.skus.updatedAt'
417
+ |'orders.items.categories.products.skus.createdBy'
418
+ |'orders.items.categories.products.skus.updatedBy'
419
+ |'orders.items.categories.products.skus.code'
420
+ |'orders.items.categories.products.skus.price'
421
+ |'orders.items.categories.products.skus.stock'
422
+ |'productId'
423
+ |'orders.items.categories.products.skus.attributes.id'
424
+ |'orders.items.categories.products.skus.attributes.createdAt'
425
+ |'orders.items.categories.products.skus.attributes.updatedAt'
426
+ |'orders.items.categories.products.skus.attributes.createdBy'
427
+ |'orders.items.categories.products.skus.attributes.updatedBy'
428
+ |'skuId'
429
+ |'attributeId'
430
+ |'valueId'
431
+ |'orders.items.categories.products.skus.attributes.attribute.id'
432
+ |'orders.items.categories.products.skus.attributes.attribute.createdAt'
433
+ |'orders.items.categories.products.skus.attributes.attribute.updatedAt'
434
+ |'orders.items.categories.products.skus.attributes.attribute.createdBy'
435
+ |'orders.items.categories.products.skus.attributes.attribute.updatedBy'
436
+ |'orders.items.categories.products.skus.attributes.attribute.name'
437
+ |'orders.items.categories.products.skus.attributes.attribute.values.id'
438
+ |'orders.items.categories.products.skus.attributes.attribute.values.createdAt'
439
+ |'orders.items.categories.products.skus.attributes.attribute.values.updatedAt'
440
+ |'orders.items.categories.products.skus.attributes.attribute.values.createdBy'
441
+ |'orders.items.categories.products.skus.attributes.attribute.values.updatedBy'
442
+ |'orders.items.categories.products.skus.attributes.attribute.values.name'
443
+ |'attributeId'
444
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id'
445
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt'
446
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt'
447
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy'
448
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy'
449
+ |'skuId'
450
+ |'attributeId'
451
+ |'valueId'
452
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.id'
453
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdAt'
454
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt'
455
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdBy'
456
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy'
457
+ |'skuId'
458
+ |'attributeId'
459
+ |'valueId'
460
+ |'orders.items.categories.products.skus.attributes.value.id'
461
+ |'orders.items.categories.products.skus.attributes.value.createdAt'
462
+ |'orders.items.categories.products.skus.attributes.value.updatedAt'
463
+ |'orders.items.categories.products.skus.attributes.value.createdBy'
464
+ |'orders.items.categories.products.skus.attributes.value.updatedBy'
465
+ |'orders.items.categories.products.skus.attributes.value.name'
466
+ |'attributeId'
467
+ |'orders.items.categories.products.skus.attributes.value.attribute.id'
468
+ |'orders.items.categories.products.skus.attributes.value.attribute.createdAt'
469
+ |'orders.items.categories.products.skus.attributes.value.attribute.updatedAt'
470
+ |'orders.items.categories.products.skus.attributes.value.attribute.createdBy'
471
+ |'orders.items.categories.products.skus.attributes.value.attribute.updatedBy'
472
+ |'orders.items.categories.products.skus.attributes.value.attribute.name'
473
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.id'
474
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.createdAt'
475
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.updatedAt'
476
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.createdBy'
477
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.updatedBy'
478
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.name'
479
+ |'attributeId'
480
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.id'
481
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt'
482
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt'
483
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy'
484
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy'
485
+ |'skuId'
486
+ |'attributeId'
487
+ |'valueId'
488
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.id'
489
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdAt'
490
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt'
491
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdBy'
492
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy'
493
+ |'skuId'
494
+ |'attributeId'
495
+ |'valueId'
496
+ |'orders.items.categories.products.skus.orderItems.id'
497
+ |'orders.items.categories.products.skus.orderItems.createdAt'
498
+ |'orders.items.categories.products.skus.orderItems.updatedAt'
499
+ |'orders.items.categories.products.skus.orderItems.createdBy'
500
+ |'orders.items.categories.products.skus.orderItems.updatedBy'
501
+ |'orders.items.categories.products.skus.orderItems.productName'
502
+ |'orders.items.categories.products.skus.orderItems.quantity'
503
+ |'orders.items.categories.products.skus.orderItems.price'
504
+ |'orderId'
505
+ |'skuId',
506
+ UserRule>;
507
+
508
+ /**
509
+ * OrderByField
510
+ */
511
+ declare type UserOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "married" | "age" | "gender";
512
+
513
+ /**
514
+ * 静态类型
515
+ */
516
+ export interface UserStaticTypes {
517
+ /**
518
+ * id 类型
519
+ */
520
+ idType: UUID;
521
+ /**
522
+ * 查询选项
523
+ */
524
+ getOptions: UUID;
525
+ /**
526
+ * 查询选项
527
+ */
528
+ findOneOrFailOptions: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>;
529
+ /**
530
+ * 查询选项
531
+ */
532
+ findOptions: FindOptions<typeof User,UserRuleGroup,UserOrderByField>;
533
+ /**
534
+ * 查询选项
535
+ */
536
+ findOneOptions: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>;
537
+ /**
538
+ * 查询选项
539
+ */
540
+ findAllOptions: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>;
541
+ /**
542
+ * 查询选项
543
+ */
544
+ findByCursorOptions: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>;
545
+ /**
546
+ * 查询选项
547
+ */
548
+ countOptions: CountOptions<typeof User,UserRuleGroup>;
549
+ }
550
+
551
+ /**
552
+ * 初始化数据
553
+ */
554
+ export interface UserInitData {
555
+ /**
556
+ * 姓名
557
+ */
558
+ name?: string;
559
+ /**
560
+ * 已婚
561
+ */
562
+ married?: boolean;
563
+ /**
564
+ * 年龄
565
+ */
566
+ age?: number;
567
+ /**
568
+ * 性别
569
+ * @default '男'
570
+ */
571
+ gender?: string | null;
572
+ /**
573
+ * 身份证 id
574
+ */
575
+ idCardId?: UUID | null;
576
+ }
577
+
578
+ /**
579
+ * 用户表
580
+ */
581
+ export declare class User extends EntityBase implements IEntity {
582
+ static [ENTITY_STATIC_TYPES]: UserStaticTypes;
583
+ /**
584
+ * 身份证
585
+ */
586
+ readonly idCard$: RelationEntityObservable<typeof IdCard>;
587
+ /**
588
+ * 订单
589
+ */
590
+ readonly orders$: RelationEntitiesObservable<Order>;
591
+ /**
592
+ * 年龄
593
+ */
594
+ age: number;
595
+ /**
596
+ * 性别
597
+ * @default '男'
598
+ */
599
+ gender?: string | null;
600
+ /**
601
+ * 身份证 id
602
+ */
603
+ idCardId?: UUID | null;
604
+ /**
605
+ * 已婚
606
+ */
607
+ married: boolean;
608
+ /**
609
+ * 姓名
610
+ */
611
+ name: string;
612
+ /**
613
+ * 初始化数据
614
+ * @param initData 初始化数据
615
+ */
616
+ constructor(initData?: UserInitData);
617
+ /**
618
+ * 统计实体数量
619
+ * @param options 查询选项
620
+ * @example
621
+ * User.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
622
+ */
623
+ static count(options: CountOptions<typeof User,UserRuleGroup>): Observable<number>;
624
+ /**
625
+ * 查询多个实体
626
+ * @param options 查询选项
627
+ * @example
628
+ * User.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
629
+ */
630
+ static find(options: FindOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
631
+ /**
632
+ * 查询所有实体
633
+ * @param options 查询选项
634
+ * @example
635
+ * User.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
636
+ */
637
+ static findAll(options: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
638
+ /**
639
+ * 游标分页查询
640
+ * @param options 查询选项
641
+ * @example
642
+ * User.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
643
+ */
644
+ static findByCursor(options: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
645
+ /**
646
+ * 查询单个实体,未找到时返回 undefined
647
+ * @param options 查询选项
648
+ * @example
649
+ * User.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
650
+ */
651
+ static findOne(options: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User | undefined>;
652
+ /**
653
+ * 查询单个实体,未找到时抛出错误
654
+ * @param options 查询选项
655
+ * @example
656
+ * User.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
657
+ */
658
+ static findOneOrFail(options: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User>;
659
+ /**
660
+ * 根据 ID 获取单个实体
661
+ * @param options 查询选项
662
+ * @example
663
+ * User.get('123').subscribe(entity => console.log(entity));
664
+ */
665
+ static get(options: UUID): Observable<User>;
666
+ /**
667
+ * 删除
668
+ */
669
+ remove(): Promise<User>;
670
+ /**
671
+ * 重置数据
672
+ */
673
+ reset(): void;
674
+ /**
675
+ * 保存
676
+ */
677
+ save(): Promise<User>;
678
+ }
679
+