@aiao/rxdb-test 0.0.2

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,1343 @@
1
+ import { BooleanRules, CountOptions, DateRules, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, GetOptions, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroup, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
2
+ import { Observable } from 'rxjs';
3
+
4
+ /** rule */
5
+ declare type UserRule =
6
+ | UUIDRules<User, 'id'>
7
+ | DateRules<User, 'createdAt'>
8
+ | DateRules<User, 'updatedAt'>
9
+ | DateRules<User, 'removedAt'>
10
+ | StringRules<User, 'createdBy'>
11
+ | StringRules<User, 'updatedBy'>
12
+ | StringRules<User, 'removedBy'>
13
+ | StringRules<User, 'name'>
14
+ | BooleanRules<User, 'married'>
15
+ | NumberRules<User, 'age'>
16
+ | StringRules<User, 'gender'>
17
+ | UUIDRules<User, 'idCardId'>
18
+ | RelationUUIDRules<'idCard.id', UUID>
19
+ | RelationDateRules<'idCard.createdAt', Date>
20
+ | RelationDateRules<'idCard.updatedAt', Date>
21
+ | RelationDateRules<'idCard.removedAt', Date | null>
22
+ | RelationStringRules<'idCard.createdBy', string | null>
23
+ | RelationStringRules<'idCard.updatedBy', string | null>
24
+ | RelationStringRules<'idCard.removedBy', string | null>
25
+ | RelationStringRules<'idCard.code', string>
26
+ | UUIDRules<IdCard, 'ownerId'>
27
+ | RelationUUIDRules<'orders.id', UUID>
28
+ | RelationDateRules<'orders.createdAt', Date>
29
+ | RelationDateRules<'orders.updatedAt', Date>
30
+ | RelationDateRules<'orders.removedAt', Date | null>
31
+ | RelationStringRules<'orders.createdBy', string | null>
32
+ | RelationStringRules<'orders.updatedBy', string | null>
33
+ | RelationStringRules<'orders.removedBy', string | null>
34
+ | RelationStringRules<'orders.number', string>
35
+ | RelationNumberRules<'orders.amount', number>
36
+ | UUIDRules<Order, 'ownerId'>
37
+ | RelationUUIDRules<'orders.items.id', UUID>
38
+ | RelationDateRules<'orders.items.createdAt', Date>
39
+ | RelationDateRules<'orders.items.updatedAt', Date>
40
+ | RelationDateRules<'orders.items.removedAt', Date | null>
41
+ | RelationStringRules<'orders.items.createdBy', string | null>
42
+ | RelationStringRules<'orders.items.updatedBy', string | null>
43
+ | RelationStringRules<'orders.items.removedBy', string | null>
44
+ | RelationStringRules<'orders.items.productName', string>
45
+ | RelationNumberRules<'orders.items.quantity', number>
46
+ | RelationNumberRules<'orders.items.price', number>
47
+ | UUIDRules<OrderItem, 'orderId'>;
48
+
49
+ /** RuleGroup */
50
+ export declare type UserRuleGroup = RuleGroup<User, keyof User, UserRule>;
51
+
52
+ /** OrderByField */
53
+ declare type UserOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name" | "married" | "age" | "gender";
54
+
55
+ /** rule */
56
+ declare type SKUAttributesRule =
57
+ | UUIDRules<SKUAttributes, 'id'>
58
+ | DateRules<SKUAttributes, 'createdAt'>
59
+ | DateRules<SKUAttributes, 'updatedAt'>
60
+ | DateRules<SKUAttributes, 'removedAt'>
61
+ | StringRules<SKUAttributes, 'createdBy'>
62
+ | StringRules<SKUAttributes, 'updatedBy'>
63
+ | StringRules<SKUAttributes, 'removedBy'>
64
+ | UUIDRules<SKUAttributes, 'skuId'>
65
+ | UUIDRules<SKUAttributes, 'attributeId'>
66
+ | UUIDRules<SKUAttributes, 'valueId'>
67
+ | RelationUUIDRules<'sku.id', UUID>
68
+ | RelationDateRules<'sku.createdAt', Date>
69
+ | RelationDateRules<'sku.updatedAt', Date>
70
+ | RelationDateRules<'sku.removedAt', Date | null>
71
+ | RelationStringRules<'sku.createdBy', string | null>
72
+ | RelationStringRules<'sku.updatedBy', string | null>
73
+ | RelationStringRules<'sku.removedBy', string | null>
74
+ | RelationStringRules<'sku.code', string>
75
+ | RelationNumberRules<'sku.price', any>
76
+ | RelationNumberRules<'sku.stock', any>
77
+ | UUIDRules<SKU, 'productId'>
78
+ | RelationUUIDRules<'sku.product.id', UUID>
79
+ | RelationDateRules<'sku.product.createdAt', Date>
80
+ | RelationDateRules<'sku.product.updatedAt', Date>
81
+ | RelationDateRules<'sku.product.removedAt', Date | null>
82
+ | RelationStringRules<'sku.product.createdBy', string | null>
83
+ | RelationStringRules<'sku.product.updatedBy', string | null>
84
+ | RelationStringRules<'sku.product.removedBy', string | null>
85
+ | RelationStringRules<'sku.product.name', string>
86
+ | RelationStringRules<'sku.product.description', string | null>
87
+ | RelationUUIDRules<'attribute.id', UUID>
88
+ | RelationDateRules<'attribute.createdAt', Date>
89
+ | RelationDateRules<'attribute.updatedAt', Date>
90
+ | RelationDateRules<'attribute.removedAt', Date | null>
91
+ | RelationStringRules<'attribute.createdBy', string | null>
92
+ | RelationStringRules<'attribute.updatedBy', string | null>
93
+ | RelationStringRules<'attribute.removedBy', string | null>
94
+ | RelationStringRules<'attribute.name', string>
95
+ | RelationUUIDRules<'attribute.values.id', UUID>
96
+ | RelationDateRules<'attribute.values.createdAt', Date>
97
+ | RelationDateRules<'attribute.values.updatedAt', Date>
98
+ | RelationDateRules<'attribute.values.removedAt', Date | null>
99
+ | RelationStringRules<'attribute.values.createdBy', string | null>
100
+ | RelationStringRules<'attribute.values.updatedBy', string | null>
101
+ | RelationStringRules<'attribute.values.removedBy', string | null>
102
+ | RelationStringRules<'attribute.values.name', string>
103
+ | UUIDRules<AttributeValue, 'attributeId'>
104
+ | RelationUUIDRules<'value.id', UUID>
105
+ | RelationDateRules<'value.createdAt', Date>
106
+ | RelationDateRules<'value.updatedAt', Date>
107
+ | RelationDateRules<'value.removedAt', Date | null>
108
+ | RelationStringRules<'value.createdBy', string | null>
109
+ | RelationStringRules<'value.updatedBy', string | null>
110
+ | RelationStringRules<'value.removedBy', string | null>
111
+ | RelationStringRules<'value.name', string>
112
+ | RelationUUIDRules<'value.attribute.id', UUID>
113
+ | RelationDateRules<'value.attribute.createdAt', Date>
114
+ | RelationDateRules<'value.attribute.updatedAt', Date>
115
+ | RelationDateRules<'value.attribute.removedAt', Date | null>
116
+ | RelationStringRules<'value.attribute.createdBy', string | null>
117
+ | RelationStringRules<'value.attribute.updatedBy', string | null>
118
+ | RelationStringRules<'value.attribute.removedBy', string | null>
119
+ | RelationStringRules<'value.attribute.name', string>;
120
+
121
+ /** RuleGroup */
122
+ export declare type SKUAttributesRuleGroup = RuleGroup<SKUAttributes, keyof SKUAttributes, SKUAttributesRule>;
123
+
124
+ /** OrderByField */
125
+ declare type SKUAttributesOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy";
126
+
127
+ /** rule */
128
+ declare type SKURule =
129
+ | UUIDRules<SKU, 'id'>
130
+ | DateRules<SKU, 'createdAt'>
131
+ | DateRules<SKU, 'updatedAt'>
132
+ | DateRules<SKU, 'removedAt'>
133
+ | StringRules<SKU, 'createdBy'>
134
+ | StringRules<SKU, 'updatedBy'>
135
+ | StringRules<SKU, 'removedBy'>
136
+ | StringRules<SKU, 'code'>
137
+ | NumberRules<SKU, 'price'>
138
+ | NumberRules<SKU, 'stock'>
139
+ | UUIDRules<SKU, 'productId'>
140
+ | RelationUUIDRules<'attributes.id', UUID>
141
+ | RelationDateRules<'attributes.createdAt', Date>
142
+ | RelationDateRules<'attributes.updatedAt', Date>
143
+ | RelationDateRules<'attributes.removedAt', Date | null>
144
+ | RelationStringRules<'attributes.createdBy', string | null>
145
+ | RelationStringRules<'attributes.updatedBy', string | null>
146
+ | RelationStringRules<'attributes.removedBy', string | null>
147
+ | UUIDRules<SKUAttributes, 'skuId'>
148
+ | UUIDRules<SKUAttributes, 'attributeId'>
149
+ | UUIDRules<SKUAttributes, 'valueId'>
150
+ | RelationUUIDRules<'attributes.attribute.id', UUID>
151
+ | RelationDateRules<'attributes.attribute.createdAt', Date>
152
+ | RelationDateRules<'attributes.attribute.updatedAt', Date>
153
+ | RelationDateRules<'attributes.attribute.removedAt', Date | null>
154
+ | RelationStringRules<'attributes.attribute.createdBy', string | null>
155
+ | RelationStringRules<'attributes.attribute.updatedBy', string | null>
156
+ | RelationStringRules<'attributes.attribute.removedBy', string | null>
157
+ | RelationStringRules<'attributes.attribute.name', string>
158
+ | RelationUUIDRules<'attributes.value.id', UUID>
159
+ | RelationDateRules<'attributes.value.createdAt', Date>
160
+ | RelationDateRules<'attributes.value.updatedAt', Date>
161
+ | RelationDateRules<'attributes.value.removedAt', Date | null>
162
+ | RelationStringRules<'attributes.value.createdBy', string | null>
163
+ | RelationStringRules<'attributes.value.updatedBy', string | null>
164
+ | RelationStringRules<'attributes.value.removedBy', string | null>
165
+ | RelationStringRules<'attributes.value.name', string>
166
+ | UUIDRules<AttributeValue, 'attributeId'>
167
+ | RelationUUIDRules<'product.id', UUID>
168
+ | RelationDateRules<'product.createdAt', Date>
169
+ | RelationDateRules<'product.updatedAt', Date>
170
+ | RelationDateRules<'product.removedAt', Date | null>
171
+ | RelationStringRules<'product.createdBy', string | null>
172
+ | RelationStringRules<'product.updatedBy', string | null>
173
+ | RelationStringRules<'product.removedBy', string | null>
174
+ | RelationStringRules<'product.name', string>
175
+ | RelationStringRules<'product.description', string | null>;
176
+
177
+ /** RuleGroup */
178
+ export declare type SKURuleGroup = RuleGroup<SKU, keyof SKU, SKURule>;
179
+
180
+ /** OrderByField */
181
+ declare type SKUOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "code" | "price" | "stock";
182
+
183
+ /** rule */
184
+ declare type ProductRule =
185
+ | UUIDRules<Product, 'id'>
186
+ | DateRules<Product, 'createdAt'>
187
+ | DateRules<Product, 'updatedAt'>
188
+ | DateRules<Product, 'removedAt'>
189
+ | StringRules<Product, 'createdBy'>
190
+ | StringRules<Product, 'updatedBy'>
191
+ | StringRules<Product, 'removedBy'>
192
+ | StringRules<Product, 'name'>
193
+ | StringRules<Product, 'description'>
194
+ | RelationUUIDRules<'skus.id', UUID>
195
+ | RelationDateRules<'skus.createdAt', Date>
196
+ | RelationDateRules<'skus.updatedAt', Date>
197
+ | RelationDateRules<'skus.removedAt', Date | null>
198
+ | RelationStringRules<'skus.createdBy', string | null>
199
+ | RelationStringRules<'skus.updatedBy', string | null>
200
+ | RelationStringRules<'skus.removedBy', string | null>
201
+ | RelationStringRules<'skus.code', string>
202
+ | RelationNumberRules<'skus.price', any>
203
+ | RelationNumberRules<'skus.stock', any>
204
+ | UUIDRules<SKU, 'productId'>
205
+ | RelationUUIDRules<'skus.attributes.id', UUID>
206
+ | RelationDateRules<'skus.attributes.createdAt', Date>
207
+ | RelationDateRules<'skus.attributes.updatedAt', Date>
208
+ | RelationDateRules<'skus.attributes.removedAt', Date | null>
209
+ | RelationStringRules<'skus.attributes.createdBy', string | null>
210
+ | RelationStringRules<'skus.attributes.updatedBy', string | null>
211
+ | RelationStringRules<'skus.attributes.removedBy', string | null>
212
+ | UUIDRules<SKUAttributes, 'skuId'>
213
+ | UUIDRules<SKUAttributes, 'attributeId'>
214
+ | UUIDRules<SKUAttributes, 'valueId'>;
215
+
216
+ /** RuleGroup */
217
+ export declare type ProductRuleGroup = RuleGroup<Product, keyof Product, ProductRule>;
218
+
219
+ /** OrderByField */
220
+ declare type ProductOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name" | "description";
221
+
222
+ /** rule */
223
+ declare type OrderItemRule =
224
+ | UUIDRules<OrderItem, 'id'>
225
+ | DateRules<OrderItem, 'createdAt'>
226
+ | DateRules<OrderItem, 'updatedAt'>
227
+ | DateRules<OrderItem, 'removedAt'>
228
+ | StringRules<OrderItem, 'createdBy'>
229
+ | StringRules<OrderItem, 'updatedBy'>
230
+ | StringRules<OrderItem, 'removedBy'>
231
+ | StringRules<OrderItem, 'productName'>
232
+ | NumberRules<OrderItem, 'quantity'>
233
+ | NumberRules<OrderItem, 'price'>
234
+ | UUIDRules<OrderItem, 'orderId'>
235
+ | RelationUUIDRules<'order.id', UUID>
236
+ | RelationDateRules<'order.createdAt', Date>
237
+ | RelationDateRules<'order.updatedAt', Date>
238
+ | RelationDateRules<'order.removedAt', Date | null>
239
+ | RelationStringRules<'order.createdBy', string | null>
240
+ | RelationStringRules<'order.updatedBy', string | null>
241
+ | RelationStringRules<'order.removedBy', string | null>
242
+ | RelationStringRules<'order.number', string>
243
+ | RelationNumberRules<'order.amount', number>
244
+ | UUIDRules<Order, 'ownerId'>
245
+ | RelationUUIDRules<'order.owner.id', UUID>
246
+ | RelationDateRules<'order.owner.createdAt', Date>
247
+ | RelationDateRules<'order.owner.updatedAt', Date>
248
+ | RelationDateRules<'order.owner.removedAt', Date | null>
249
+ | RelationStringRules<'order.owner.createdBy', string | null>
250
+ | RelationStringRules<'order.owner.updatedBy', string | null>
251
+ | RelationStringRules<'order.owner.removedBy', string | null>
252
+ | RelationStringRules<'order.owner.name', string>
253
+ | RelationBooleanRules<'order.owner.married', boolean>
254
+ | RelationNumberRules<'order.owner.age', number>
255
+ | RelationStringRules<'order.owner.gender', string | null>
256
+ | UUIDRules<User, 'idCardId'>
257
+ | RelationUUIDRules<'categories.id', UUID>
258
+ | RelationDateRules<'categories.createdAt', Date>
259
+ | RelationDateRules<'categories.updatedAt', Date>
260
+ | RelationDateRules<'categories.removedAt', Date | null>
261
+ | RelationStringRules<'categories.createdBy', string | null>
262
+ | RelationStringRules<'categories.updatedBy', string | null>
263
+ | RelationStringRules<'categories.removedBy', string | null>
264
+ | RelationStringRules<'categories.name', string>;
265
+
266
+ /** RuleGroup */
267
+ export declare type OrderItemRuleGroup = RuleGroup<OrderItem, keyof OrderItem, OrderItemRule>;
268
+
269
+ /** OrderByField */
270
+ declare type OrderItemOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "productName" | "quantity" | "price";
271
+
272
+ /** rule */
273
+ declare type OrderRule =
274
+ | UUIDRules<Order, 'id'>
275
+ | DateRules<Order, 'createdAt'>
276
+ | DateRules<Order, 'updatedAt'>
277
+ | DateRules<Order, 'removedAt'>
278
+ | StringRules<Order, 'createdBy'>
279
+ | StringRules<Order, 'updatedBy'>
280
+ | StringRules<Order, 'removedBy'>
281
+ | StringRules<Order, 'number'>
282
+ | NumberRules<Order, 'amount'>
283
+ | UUIDRules<Order, 'ownerId'>
284
+ | RelationUUIDRules<'owner.id', UUID>
285
+ | RelationDateRules<'owner.createdAt', Date>
286
+ | RelationDateRules<'owner.updatedAt', Date>
287
+ | RelationDateRules<'owner.removedAt', Date | null>
288
+ | RelationStringRules<'owner.createdBy', string | null>
289
+ | RelationStringRules<'owner.updatedBy', string | null>
290
+ | RelationStringRules<'owner.removedBy', string | null>
291
+ | RelationStringRules<'owner.name', string>
292
+ | RelationBooleanRules<'owner.married', boolean>
293
+ | RelationNumberRules<'owner.age', number>
294
+ | RelationStringRules<'owner.gender', string | null>
295
+ | UUIDRules<User, 'idCardId'>
296
+ | RelationUUIDRules<'owner.idCard.id', UUID>
297
+ | RelationDateRules<'owner.idCard.createdAt', Date>
298
+ | RelationDateRules<'owner.idCard.updatedAt', Date>
299
+ | RelationDateRules<'owner.idCard.removedAt', Date | null>
300
+ | RelationStringRules<'owner.idCard.createdBy', string | null>
301
+ | RelationStringRules<'owner.idCard.updatedBy', string | null>
302
+ | RelationStringRules<'owner.idCard.removedBy', string | null>
303
+ | RelationStringRules<'owner.idCard.code', string>
304
+ | UUIDRules<IdCard, 'ownerId'>
305
+ | RelationUUIDRules<'items.id', UUID>
306
+ | RelationDateRules<'items.createdAt', Date>
307
+ | RelationDateRules<'items.updatedAt', Date>
308
+ | RelationDateRules<'items.removedAt', Date | null>
309
+ | RelationStringRules<'items.createdBy', string | null>
310
+ | RelationStringRules<'items.updatedBy', string | null>
311
+ | RelationStringRules<'items.removedBy', string | null>
312
+ | RelationStringRules<'items.productName', string>
313
+ | RelationNumberRules<'items.quantity', number>
314
+ | RelationNumberRules<'items.price', number>
315
+ | UUIDRules<OrderItem, 'orderId'>
316
+ | RelationUUIDRules<'items.categories.id', UUID>
317
+ | RelationDateRules<'items.categories.createdAt', Date>
318
+ | RelationDateRules<'items.categories.updatedAt', Date>
319
+ | RelationDateRules<'items.categories.removedAt', Date | null>
320
+ | RelationStringRules<'items.categories.createdBy', string | null>
321
+ | RelationStringRules<'items.categories.updatedBy', string | null>
322
+ | RelationStringRules<'items.categories.removedBy', string | null>
323
+ | RelationStringRules<'items.categories.name', string>;
324
+
325
+ /** RuleGroup */
326
+ export declare type OrderRuleGroup = RuleGroup<Order, keyof Order, OrderRule>;
327
+
328
+ /** OrderByField */
329
+ declare type OrderOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "number" | "amount";
330
+
331
+ /** rule */
332
+ declare type IdCardRule =
333
+ | UUIDRules<IdCard, 'id'>
334
+ | DateRules<IdCard, 'createdAt'>
335
+ | DateRules<IdCard, 'updatedAt'>
336
+ | DateRules<IdCard, 'removedAt'>
337
+ | StringRules<IdCard, 'createdBy'>
338
+ | StringRules<IdCard, 'updatedBy'>
339
+ | StringRules<IdCard, 'removedBy'>
340
+ | StringRules<IdCard, 'code'>
341
+ | UUIDRules<IdCard, 'ownerId'>
342
+ | RelationUUIDRules<'owner.id', UUID>
343
+ | RelationDateRules<'owner.createdAt', Date>
344
+ | RelationDateRules<'owner.updatedAt', Date>
345
+ | RelationDateRules<'owner.removedAt', Date | null>
346
+ | RelationStringRules<'owner.createdBy', string | null>
347
+ | RelationStringRules<'owner.updatedBy', string | null>
348
+ | RelationStringRules<'owner.removedBy', string | null>
349
+ | RelationStringRules<'owner.name', string>
350
+ | RelationBooleanRules<'owner.married', boolean>
351
+ | RelationNumberRules<'owner.age', number>
352
+ | RelationStringRules<'owner.gender', string | null>
353
+ | UUIDRules<User, 'idCardId'>
354
+ | RelationUUIDRules<'owner.orders.id', UUID>
355
+ | RelationDateRules<'owner.orders.createdAt', Date>
356
+ | RelationDateRules<'owner.orders.updatedAt', Date>
357
+ | RelationDateRules<'owner.orders.removedAt', Date | null>
358
+ | RelationStringRules<'owner.orders.createdBy', string | null>
359
+ | RelationStringRules<'owner.orders.updatedBy', string | null>
360
+ | RelationStringRules<'owner.orders.removedBy', string | null>
361
+ | RelationStringRules<'owner.orders.number', string>
362
+ | RelationNumberRules<'owner.orders.amount', number>
363
+ | UUIDRules<Order, 'ownerId'>;
364
+
365
+ /** RuleGroup */
366
+ export declare type IdCardRuleGroup = RuleGroup<IdCard, keyof IdCard, IdCardRule>;
367
+
368
+ /** OrderByField */
369
+ declare type IdCardOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "code";
370
+
371
+ /** rule */
372
+ declare type CategoryRule =
373
+ | UUIDRules<Category, 'id'>
374
+ | DateRules<Category, 'createdAt'>
375
+ | DateRules<Category, 'updatedAt'>
376
+ | DateRules<Category, 'removedAt'>
377
+ | StringRules<Category, 'createdBy'>
378
+ | StringRules<Category, 'updatedBy'>
379
+ | StringRules<Category, 'removedBy'>
380
+ | StringRules<Category, 'name'>
381
+ | RelationUUIDRules<'orderItems.id', UUID>
382
+ | RelationDateRules<'orderItems.createdAt', Date>
383
+ | RelationDateRules<'orderItems.updatedAt', Date>
384
+ | RelationDateRules<'orderItems.removedAt', Date | null>
385
+ | RelationStringRules<'orderItems.createdBy', string | null>
386
+ | RelationStringRules<'orderItems.updatedBy', string | null>
387
+ | RelationStringRules<'orderItems.removedBy', string | null>
388
+ | RelationStringRules<'orderItems.productName', string>
389
+ | RelationNumberRules<'orderItems.quantity', number>
390
+ | RelationNumberRules<'orderItems.price', number>
391
+ | UUIDRules<OrderItem, 'orderId'>
392
+ | RelationUUIDRules<'orderItems.order.id', UUID>
393
+ | RelationDateRules<'orderItems.order.createdAt', Date>
394
+ | RelationDateRules<'orderItems.order.updatedAt', Date>
395
+ | RelationDateRules<'orderItems.order.removedAt', Date | null>
396
+ | RelationStringRules<'orderItems.order.createdBy', string | null>
397
+ | RelationStringRules<'orderItems.order.updatedBy', string | null>
398
+ | RelationStringRules<'orderItems.order.removedBy', string | null>
399
+ | RelationStringRules<'orderItems.order.number', string>
400
+ | RelationNumberRules<'orderItems.order.amount', number>
401
+ | UUIDRules<Order, 'ownerId'>;
402
+
403
+ /** RuleGroup */
404
+ export declare type CategoryRuleGroup = RuleGroup<Category, keyof Category, CategoryRule>;
405
+
406
+ /** OrderByField */
407
+ declare type CategoryOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
408
+
409
+ /** rule */
410
+ declare type AttributeValueRule =
411
+ | UUIDRules<AttributeValue, 'id'>
412
+ | DateRules<AttributeValue, 'createdAt'>
413
+ | DateRules<AttributeValue, 'updatedAt'>
414
+ | DateRules<AttributeValue, 'removedAt'>
415
+ | StringRules<AttributeValue, 'createdBy'>
416
+ | StringRules<AttributeValue, 'updatedBy'>
417
+ | StringRules<AttributeValue, 'removedBy'>
418
+ | StringRules<AttributeValue, 'name'>
419
+ | UUIDRules<AttributeValue, 'attributeId'>
420
+ | RelationUUIDRules<'attribute.id', UUID>
421
+ | RelationDateRules<'attribute.createdAt', Date>
422
+ | RelationDateRules<'attribute.updatedAt', Date>
423
+ | RelationDateRules<'attribute.removedAt', Date | null>
424
+ | RelationStringRules<'attribute.createdBy', string | null>
425
+ | RelationStringRules<'attribute.updatedBy', string | null>
426
+ | RelationStringRules<'attribute.removedBy', string | null>
427
+ | RelationStringRules<'attribute.name', string>
428
+ | RelationUUIDRules<'attribute.skuAttributes.id', UUID>
429
+ | RelationDateRules<'attribute.skuAttributes.createdAt', Date>
430
+ | RelationDateRules<'attribute.skuAttributes.updatedAt', Date>
431
+ | RelationDateRules<'attribute.skuAttributes.removedAt', Date | null>
432
+ | RelationStringRules<'attribute.skuAttributes.createdBy', string | null>
433
+ | RelationStringRules<'attribute.skuAttributes.updatedBy', string | null>
434
+ | RelationStringRules<'attribute.skuAttributes.removedBy', string | null>
435
+ | UUIDRules<SKUAttributes, 'skuId'>
436
+ | UUIDRules<SKUAttributes, 'attributeId'>
437
+ | UUIDRules<SKUAttributes, 'valueId'>
438
+ | RelationUUIDRules<'skuAttributeValues.id', UUID>
439
+ | RelationDateRules<'skuAttributeValues.createdAt', Date>
440
+ | RelationDateRules<'skuAttributeValues.updatedAt', Date>
441
+ | RelationDateRules<'skuAttributeValues.removedAt', Date | null>
442
+ | RelationStringRules<'skuAttributeValues.createdBy', string | null>
443
+ | RelationStringRules<'skuAttributeValues.updatedBy', string | null>
444
+ | RelationStringRules<'skuAttributeValues.removedBy', string | null>
445
+ | RelationUUIDRules<'skuAttributeValues.sku.id', UUID>
446
+ | RelationDateRules<'skuAttributeValues.sku.createdAt', Date>
447
+ | RelationDateRules<'skuAttributeValues.sku.updatedAt', Date>
448
+ | RelationDateRules<'skuAttributeValues.sku.removedAt', Date | null>
449
+ | RelationStringRules<'skuAttributeValues.sku.createdBy', string | null>
450
+ | RelationStringRules<'skuAttributeValues.sku.updatedBy', string | null>
451
+ | RelationStringRules<'skuAttributeValues.sku.removedBy', string | null>
452
+ | RelationStringRules<'skuAttributeValues.sku.code', string>
453
+ | RelationNumberRules<'skuAttributeValues.sku.price', any>
454
+ | RelationNumberRules<'skuAttributeValues.sku.stock', any>
455
+ | UUIDRules<SKU, 'productId'>
456
+ | RelationUUIDRules<'skuAttributeValues.attribute.id', UUID>
457
+ | RelationDateRules<'skuAttributeValues.attribute.createdAt', Date>
458
+ | RelationDateRules<'skuAttributeValues.attribute.updatedAt', Date>
459
+ | RelationDateRules<'skuAttributeValues.attribute.removedAt', Date | null>
460
+ | RelationStringRules<'skuAttributeValues.attribute.createdBy', string | null>
461
+ | RelationStringRules<'skuAttributeValues.attribute.updatedBy', string | null>
462
+ | RelationStringRules<'skuAttributeValues.attribute.removedBy', string | null>
463
+ | RelationStringRules<'skuAttributeValues.attribute.name', string>;
464
+
465
+ /** RuleGroup */
466
+ export declare type AttributeValueRuleGroup = RuleGroup<AttributeValue, keyof AttributeValue, AttributeValueRule>;
467
+
468
+ /** OrderByField */
469
+ declare type AttributeValueOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
470
+
471
+ /** rule */
472
+ declare type AttributeRule =
473
+ | UUIDRules<Attribute, 'id'>
474
+ | DateRules<Attribute, 'createdAt'>
475
+ | DateRules<Attribute, 'updatedAt'>
476
+ | DateRules<Attribute, 'removedAt'>
477
+ | StringRules<Attribute, 'createdBy'>
478
+ | StringRules<Attribute, 'updatedBy'>
479
+ | StringRules<Attribute, 'removedBy'>
480
+ | StringRules<Attribute, 'name'>
481
+ | RelationUUIDRules<'values.id', UUID>
482
+ | RelationDateRules<'values.createdAt', Date>
483
+ | RelationDateRules<'values.updatedAt', Date>
484
+ | RelationDateRules<'values.removedAt', Date | null>
485
+ | RelationStringRules<'values.createdBy', string | null>
486
+ | RelationStringRules<'values.updatedBy', string | null>
487
+ | RelationStringRules<'values.removedBy', string | null>
488
+ | RelationStringRules<'values.name', string>
489
+ | UUIDRules<AttributeValue, 'attributeId'>
490
+ | RelationUUIDRules<'values.skuAttributeValues.id', UUID>
491
+ | RelationDateRules<'values.skuAttributeValues.createdAt', Date>
492
+ | RelationDateRules<'values.skuAttributeValues.updatedAt', Date>
493
+ | RelationDateRules<'values.skuAttributeValues.removedAt', Date | null>
494
+ | RelationStringRules<'values.skuAttributeValues.createdBy', string | null>
495
+ | RelationStringRules<'values.skuAttributeValues.updatedBy', string | null>
496
+ | RelationStringRules<'values.skuAttributeValues.removedBy', string | null>
497
+ | UUIDRules<SKUAttributes, 'skuId'>
498
+ | UUIDRules<SKUAttributes, 'attributeId'>
499
+ | UUIDRules<SKUAttributes, 'valueId'>
500
+ | RelationUUIDRules<'skuAttributes.id', UUID>
501
+ | RelationDateRules<'skuAttributes.createdAt', Date>
502
+ | RelationDateRules<'skuAttributes.updatedAt', Date>
503
+ | RelationDateRules<'skuAttributes.removedAt', Date | null>
504
+ | RelationStringRules<'skuAttributes.createdBy', string | null>
505
+ | RelationStringRules<'skuAttributes.updatedBy', string | null>
506
+ | RelationStringRules<'skuAttributes.removedBy', string | null>
507
+ | RelationUUIDRules<'skuAttributes.sku.id', UUID>
508
+ | RelationDateRules<'skuAttributes.sku.createdAt', Date>
509
+ | RelationDateRules<'skuAttributes.sku.updatedAt', Date>
510
+ | RelationDateRules<'skuAttributes.sku.removedAt', Date | null>
511
+ | RelationStringRules<'skuAttributes.sku.createdBy', string | null>
512
+ | RelationStringRules<'skuAttributes.sku.updatedBy', string | null>
513
+ | RelationStringRules<'skuAttributes.sku.removedBy', string | null>
514
+ | RelationStringRules<'skuAttributes.sku.code', string>
515
+ | RelationNumberRules<'skuAttributes.sku.price', any>
516
+ | RelationNumberRules<'skuAttributes.sku.stock', any>
517
+ | UUIDRules<SKU, 'productId'>
518
+ | RelationUUIDRules<'skuAttributes.value.id', UUID>
519
+ | RelationDateRules<'skuAttributes.value.createdAt', Date>
520
+ | RelationDateRules<'skuAttributes.value.updatedAt', Date>
521
+ | RelationDateRules<'skuAttributes.value.removedAt', Date | null>
522
+ | RelationStringRules<'skuAttributes.value.createdBy', string | null>
523
+ | RelationStringRules<'skuAttributes.value.updatedBy', string | null>
524
+ | RelationStringRules<'skuAttributes.value.removedBy', string | null>
525
+ | RelationStringRules<'skuAttributes.value.name', string>;
526
+
527
+ /** RuleGroup */
528
+ export declare type AttributeRuleGroup = RuleGroup<Attribute, keyof Attribute, AttributeRule>;
529
+
530
+ /** OrderByField */
531
+ declare type AttributeOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
532
+
533
+ /** rxdb */
534
+ declare module "@aiao/rxdb" {
535
+ /** RxDB */
536
+ interface RxDB {
537
+ /** 用户表 */
538
+ User: typeof User;
539
+ /** SkuAttributes */
540
+ SKUAttributes: typeof SKUAttributes;
541
+ /** Sku */
542
+ SKU: typeof SKU;
543
+ /** Product */
544
+ Product: typeof Product;
545
+ /** 订单项目 */
546
+ OrderItem: typeof OrderItem;
547
+ /** 订单 */
548
+ Order: typeof Order;
549
+ /** 身份证 */
550
+ IdCard: typeof IdCard;
551
+ /** 产品分类 */
552
+ Category: typeof Category;
553
+ /** AttributeValue */
554
+ AttributeValue: typeof AttributeValue;
555
+ /** Attribute */
556
+ Attribute: typeof Attribute;
557
+ }
558
+ }
559
+
560
+ /** 初始化数据 */
561
+ export interface UserInitData {
562
+ /** 姓名 */
563
+ name?: string;
564
+ /** 已婚
565
+ @default false */
566
+ married?: boolean;
567
+ /** 年龄
568
+ @default 25 */
569
+ age?: number;
570
+ /** 性别
571
+ @default '男' */
572
+ gender?: string | null;
573
+ }
574
+
575
+ /** 初始化数据 */
576
+ export interface SKUAttributesInitData {
577
+ }
578
+
579
+ /** 初始化数据 */
580
+ export interface SKUInitData {
581
+ /** code */
582
+ code?: string;
583
+ /** price */
584
+ price?: any;
585
+ /** stock */
586
+ stock?: any;
587
+ }
588
+
589
+ /** 初始化数据 */
590
+ export interface ProductInitData {
591
+ /** name */
592
+ name?: string;
593
+ /** description */
594
+ description?: string | null;
595
+ }
596
+
597
+ /** 初始化数据 */
598
+ export interface OrderItemInitData {
599
+ /** 商品名称 */
600
+ productName?: string;
601
+ /** 数量 */
602
+ quantity?: number;
603
+ /** 单价 */
604
+ price?: number;
605
+ }
606
+
607
+ /** 初始化数据 */
608
+ export interface OrderInitData {
609
+ /** 订单号 */
610
+ number?: string;
611
+ /** 订单总金额 */
612
+ amount?: number;
613
+ }
614
+
615
+ /** 初始化数据 */
616
+ export interface IdCardInitData {
617
+ /** 身份证号码 */
618
+ code?: string;
619
+ }
620
+
621
+ /** 初始化数据 */
622
+ export interface CategoryInitData {
623
+ /** 分类名称 */
624
+ name?: string;
625
+ }
626
+
627
+ /** 初始化数据 */
628
+ export interface AttributeValueInitData {
629
+ /** name */
630
+ name?: string;
631
+ }
632
+
633
+ /** 初始化数据 */
634
+ export interface AttributeInitData {
635
+ /** name */
636
+ name?: string;
637
+ }
638
+
639
+ /**
640
+ * 用户表
641
+ */
642
+ export declare class User extends EntityBase {
643
+ /** idCard */
644
+ idCard$: RelationEntityObservable<IdCard | null>;
645
+ /** idCard id */
646
+ idCardId: UUID;
647
+ /** orders */
648
+ orders$: RelationEntitiesObservable<Order>;
649
+ /** 年龄
650
+ @default 25 */
651
+ age: number;
652
+ /** 性别
653
+ @default '男' */
654
+ gender?: string | null;
655
+ /** 已婚
656
+ @default false */
657
+ married: boolean;
658
+ /** 姓名 */
659
+ name: string;
660
+ /**
661
+ * 初始化数据
662
+ * @param initData 初始化数据
663
+ */
664
+ constructor(initData?: UserInitData);
665
+ /**
666
+ * 查询
667
+ * @param where 查询条件
668
+ * @param options 查询选项
669
+ */
670
+ static count(where: UserRuleGroup, options?: CountOptions): Observable<number>;
671
+ /**
672
+ * 查询
673
+ * @param where 查询条件
674
+ * @param options 查询选项
675
+ */
676
+ static find(where: UserRuleGroup, options?: FindOptions<UserOrderByField>): Observable<User[]>;
677
+ /**
678
+ * 查询
679
+ * @param where 查询条件
680
+ * @param options 查询选项
681
+ */
682
+ static findAll(where: UserRuleGroup, options?: FindAllOptions<UserOrderByField>): Observable<User[]>;
683
+ /**
684
+ * 查询
685
+ * @param where 查询条件
686
+ * @param options 查询选项
687
+ */
688
+ static findByCursor(where: UserRuleGroup, options?: FindByCursorOptions<UserOrderByField>): Observable<User[]>;
689
+ /**
690
+ * 查询
691
+ * @param where 查询条件
692
+ * @param options 查询选项
693
+ */
694
+ static findOne(where: UserRuleGroup, options?: FindOneOptions<UserOrderByField>): Observable<User | undefined>;
695
+ /**
696
+ * 查询
697
+ * @param where 查询条件
698
+ * @param options 查询选项
699
+ */
700
+ static findOneOrFail(where: UserRuleGroup, options?: FindOneOrFailOptions<UserOrderByField>): Observable<User>;
701
+ /**
702
+ * 查询
703
+ * @param id 实体的 id
704
+ * @param options 查询选项
705
+ */
706
+ static get(id: string, options?: GetOptions): Observable<User>;
707
+ /**
708
+ * 删除
709
+ */
710
+ remove(): Promise<User>;
711
+ /**
712
+ * 保存
713
+ */
714
+ save(): Promise<User>;
715
+ }
716
+
717
+ /**
718
+ * SkuAttributes
719
+ */
720
+ export declare class SKUAttributes extends EntityBase {
721
+ /** attribute */
722
+ attribute$: RelationEntityObservable<Attribute>;
723
+ /** attribute id */
724
+ attributeId: UUID;
725
+ /** sku */
726
+ sku$: RelationEntityObservable<SKU>;
727
+ /** sku id */
728
+ skuId: UUID;
729
+ /** value */
730
+ value$: RelationEntityObservable<AttributeValue>;
731
+ /** value id */
732
+ valueId: UUID;
733
+ /**
734
+ * 初始化数据
735
+ * @param initData 初始化数据
736
+ */
737
+ constructor(initData?: SKUAttributesInitData);
738
+ /**
739
+ * 查询
740
+ * @param where 查询条件
741
+ * @param options 查询选项
742
+ */
743
+ static count(where: SKUAttributesRuleGroup, options?: CountOptions): Observable<number>;
744
+ /**
745
+ * 查询
746
+ * @param where 查询条件
747
+ * @param options 查询选项
748
+ */
749
+ static find(where: SKUAttributesRuleGroup, options?: FindOptions<SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
750
+ /**
751
+ * 查询
752
+ * @param where 查询条件
753
+ * @param options 查询选项
754
+ */
755
+ static findAll(where: SKUAttributesRuleGroup, options?: FindAllOptions<SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
756
+ /**
757
+ * 查询
758
+ * @param where 查询条件
759
+ * @param options 查询选项
760
+ */
761
+ static findByCursor(where: SKUAttributesRuleGroup, options?: FindByCursorOptions<SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
762
+ /**
763
+ * 查询
764
+ * @param where 查询条件
765
+ * @param options 查询选项
766
+ */
767
+ static findOne(where: SKUAttributesRuleGroup, options?: FindOneOptions<SKUAttributesOrderByField>): Observable<SKUAttributes | undefined>;
768
+ /**
769
+ * 查询
770
+ * @param where 查询条件
771
+ * @param options 查询选项
772
+ */
773
+ static findOneOrFail(where: SKUAttributesRuleGroup, options?: FindOneOrFailOptions<SKUAttributesOrderByField>): Observable<SKUAttributes>;
774
+ /**
775
+ * 查询
776
+ * @param id 实体的 id
777
+ * @param options 查询选项
778
+ */
779
+ static get(id: string, options?: GetOptions): Observable<SKUAttributes>;
780
+ /**
781
+ * 删除
782
+ */
783
+ remove(): Promise<SKUAttributes>;
784
+ /**
785
+ * 保存
786
+ */
787
+ save(): Promise<SKUAttributes>;
788
+ }
789
+
790
+ /**
791
+ * Sku
792
+ */
793
+ export declare class SKU extends EntityBase {
794
+ /** attributes */
795
+ attributes$: RelationEntitiesObservable<SKUAttributes>;
796
+ /** product */
797
+ product$: RelationEntityObservable<Product>;
798
+ /** product id */
799
+ productId: UUID;
800
+ /** code */
801
+ code: string;
802
+ /** price */
803
+ price: any;
804
+ /** stock */
805
+ stock: any;
806
+ /**
807
+ * 初始化数据
808
+ * @param initData 初始化数据
809
+ */
810
+ constructor(initData?: SKUInitData);
811
+ /**
812
+ * 查询
813
+ * @param where 查询条件
814
+ * @param options 查询选项
815
+ */
816
+ static count(where: SKURuleGroup, options?: CountOptions): Observable<number>;
817
+ /**
818
+ * 查询
819
+ * @param where 查询条件
820
+ * @param options 查询选项
821
+ */
822
+ static find(where: SKURuleGroup, options?: FindOptions<SKUOrderByField>): Observable<SKU[]>;
823
+ /**
824
+ * 查询
825
+ * @param where 查询条件
826
+ * @param options 查询选项
827
+ */
828
+ static findAll(where: SKURuleGroup, options?: FindAllOptions<SKUOrderByField>): Observable<SKU[]>;
829
+ /**
830
+ * 查询
831
+ * @param where 查询条件
832
+ * @param options 查询选项
833
+ */
834
+ static findByCursor(where: SKURuleGroup, options?: FindByCursorOptions<SKUOrderByField>): Observable<SKU[]>;
835
+ /**
836
+ * 查询
837
+ * @param where 查询条件
838
+ * @param options 查询选项
839
+ */
840
+ static findOne(where: SKURuleGroup, options?: FindOneOptions<SKUOrderByField>): Observable<SKU | undefined>;
841
+ /**
842
+ * 查询
843
+ * @param where 查询条件
844
+ * @param options 查询选项
845
+ */
846
+ static findOneOrFail(where: SKURuleGroup, options?: FindOneOrFailOptions<SKUOrderByField>): Observable<SKU>;
847
+ /**
848
+ * 查询
849
+ * @param id 实体的 id
850
+ * @param options 查询选项
851
+ */
852
+ static get(id: string, options?: GetOptions): Observable<SKU>;
853
+ /**
854
+ * 删除
855
+ */
856
+ remove(): Promise<SKU>;
857
+ /**
858
+ * 保存
859
+ */
860
+ save(): Promise<SKU>;
861
+ }
862
+
863
+ /**
864
+ * Product
865
+ */
866
+ export declare class Product extends EntityBase {
867
+ /** skus */
868
+ skus$: RelationEntitiesObservable<SKU>;
869
+ /** description */
870
+ description?: string | null;
871
+ /** name */
872
+ name: string;
873
+ /**
874
+ * 初始化数据
875
+ * @param initData 初始化数据
876
+ */
877
+ constructor(initData?: ProductInitData);
878
+ /**
879
+ * 查询
880
+ * @param where 查询条件
881
+ * @param options 查询选项
882
+ */
883
+ static count(where: ProductRuleGroup, options?: CountOptions): Observable<number>;
884
+ /**
885
+ * 查询
886
+ * @param where 查询条件
887
+ * @param options 查询选项
888
+ */
889
+ static find(where: ProductRuleGroup, options?: FindOptions<ProductOrderByField>): Observable<Product[]>;
890
+ /**
891
+ * 查询
892
+ * @param where 查询条件
893
+ * @param options 查询选项
894
+ */
895
+ static findAll(where: ProductRuleGroup, options?: FindAllOptions<ProductOrderByField>): Observable<Product[]>;
896
+ /**
897
+ * 查询
898
+ * @param where 查询条件
899
+ * @param options 查询选项
900
+ */
901
+ static findByCursor(where: ProductRuleGroup, options?: FindByCursorOptions<ProductOrderByField>): Observable<Product[]>;
902
+ /**
903
+ * 查询
904
+ * @param where 查询条件
905
+ * @param options 查询选项
906
+ */
907
+ static findOne(where: ProductRuleGroup, options?: FindOneOptions<ProductOrderByField>): Observable<Product | undefined>;
908
+ /**
909
+ * 查询
910
+ * @param where 查询条件
911
+ * @param options 查询选项
912
+ */
913
+ static findOneOrFail(where: ProductRuleGroup, options?: FindOneOrFailOptions<ProductOrderByField>): Observable<Product>;
914
+ /**
915
+ * 查询
916
+ * @param id 实体的 id
917
+ * @param options 查询选项
918
+ */
919
+ static get(id: string, options?: GetOptions): Observable<Product>;
920
+ /**
921
+ * 删除
922
+ */
923
+ remove(): Promise<Product>;
924
+ /**
925
+ * 保存
926
+ */
927
+ save(): Promise<Product>;
928
+ }
929
+
930
+ /**
931
+ * 订单项目
932
+ */
933
+ export declare class OrderItem extends EntityBase {
934
+ /** categories */
935
+ categories$: RelationEntitiesObservable<Category>;
936
+ /** order */
937
+ order$: RelationEntityObservable<Order>;
938
+ /** order id */
939
+ orderId: UUID;
940
+ /** 单价 */
941
+ price: number;
942
+ /** 商品名称 */
943
+ productName: string;
944
+ /** 数量 */
945
+ quantity: number;
946
+ /**
947
+ * 初始化数据
948
+ * @param initData 初始化数据
949
+ */
950
+ constructor(initData?: OrderItemInitData);
951
+ /**
952
+ * 查询
953
+ * @param where 查询条件
954
+ * @param options 查询选项
955
+ */
956
+ static count(where: OrderItemRuleGroup, options?: CountOptions): Observable<number>;
957
+ /**
958
+ * 查询
959
+ * @param where 查询条件
960
+ * @param options 查询选项
961
+ */
962
+ static find(where: OrderItemRuleGroup, options?: FindOptions<OrderItemOrderByField>): Observable<OrderItem[]>;
963
+ /**
964
+ * 查询
965
+ * @param where 查询条件
966
+ * @param options 查询选项
967
+ */
968
+ static findAll(where: OrderItemRuleGroup, options?: FindAllOptions<OrderItemOrderByField>): Observable<OrderItem[]>;
969
+ /**
970
+ * 查询
971
+ * @param where 查询条件
972
+ * @param options 查询选项
973
+ */
974
+ static findByCursor(where: OrderItemRuleGroup, options?: FindByCursorOptions<OrderItemOrderByField>): Observable<OrderItem[]>;
975
+ /**
976
+ * 查询
977
+ * @param where 查询条件
978
+ * @param options 查询选项
979
+ */
980
+ static findOne(where: OrderItemRuleGroup, options?: FindOneOptions<OrderItemOrderByField>): Observable<OrderItem | undefined>;
981
+ /**
982
+ * 查询
983
+ * @param where 查询条件
984
+ * @param options 查询选项
985
+ */
986
+ static findOneOrFail(where: OrderItemRuleGroup, options?: FindOneOrFailOptions<OrderItemOrderByField>): Observable<OrderItem>;
987
+ /**
988
+ * 查询
989
+ * @param id 实体的 id
990
+ * @param options 查询选项
991
+ */
992
+ static get(id: string, options?: GetOptions): Observable<OrderItem>;
993
+ /**
994
+ * 删除
995
+ */
996
+ remove(): Promise<OrderItem>;
997
+ /**
998
+ * 保存
999
+ */
1000
+ save(): Promise<OrderItem>;
1001
+ }
1002
+
1003
+ /**
1004
+ * 订单
1005
+ */
1006
+ export declare class Order extends EntityBase {
1007
+ /** items */
1008
+ items$: RelationEntitiesObservable<OrderItem>;
1009
+ /** owner */
1010
+ owner$: RelationEntityObservable<User>;
1011
+ /** owner id */
1012
+ ownerId: UUID;
1013
+ /** 订单总金额 */
1014
+ amount: number;
1015
+ /** 订单号 */
1016
+ number: string;
1017
+ /**
1018
+ * 初始化数据
1019
+ * @param initData 初始化数据
1020
+ */
1021
+ constructor(initData?: OrderInitData);
1022
+ /**
1023
+ * 查询
1024
+ * @param where 查询条件
1025
+ * @param options 查询选项
1026
+ */
1027
+ static count(where: OrderRuleGroup, options?: CountOptions): Observable<number>;
1028
+ /**
1029
+ * 查询
1030
+ * @param where 查询条件
1031
+ * @param options 查询选项
1032
+ */
1033
+ static find(where: OrderRuleGroup, options?: FindOptions<OrderOrderByField>): Observable<Order[]>;
1034
+ /**
1035
+ * 查询
1036
+ * @param where 查询条件
1037
+ * @param options 查询选项
1038
+ */
1039
+ static findAll(where: OrderRuleGroup, options?: FindAllOptions<OrderOrderByField>): Observable<Order[]>;
1040
+ /**
1041
+ * 查询
1042
+ * @param where 查询条件
1043
+ * @param options 查询选项
1044
+ */
1045
+ static findByCursor(where: OrderRuleGroup, options?: FindByCursorOptions<OrderOrderByField>): Observable<Order[]>;
1046
+ /**
1047
+ * 查询
1048
+ * @param where 查询条件
1049
+ * @param options 查询选项
1050
+ */
1051
+ static findOne(where: OrderRuleGroup, options?: FindOneOptions<OrderOrderByField>): Observable<Order | undefined>;
1052
+ /**
1053
+ * 查询
1054
+ * @param where 查询条件
1055
+ * @param options 查询选项
1056
+ */
1057
+ static findOneOrFail(where: OrderRuleGroup, options?: FindOneOrFailOptions<OrderOrderByField>): Observable<Order>;
1058
+ /**
1059
+ * 查询
1060
+ * @param id 实体的 id
1061
+ * @param options 查询选项
1062
+ */
1063
+ static get(id: string, options?: GetOptions): Observable<Order>;
1064
+ /**
1065
+ * 删除
1066
+ */
1067
+ remove(): Promise<Order>;
1068
+ /**
1069
+ * 保存
1070
+ */
1071
+ save(): Promise<Order>;
1072
+ }
1073
+
1074
+ /**
1075
+ * 身份证
1076
+ */
1077
+ export declare class IdCard extends EntityBase {
1078
+ /** owner */
1079
+ owner$: RelationEntityObservable<User>;
1080
+ /** owner id */
1081
+ ownerId: UUID;
1082
+ /** 身份证号码 */
1083
+ code: string;
1084
+ /**
1085
+ * 初始化数据
1086
+ * @param initData 初始化数据
1087
+ */
1088
+ constructor(initData?: IdCardInitData);
1089
+ /**
1090
+ * 查询
1091
+ * @param where 查询条件
1092
+ * @param options 查询选项
1093
+ */
1094
+ static count(where: IdCardRuleGroup, options?: CountOptions): Observable<number>;
1095
+ /**
1096
+ * 查询
1097
+ * @param where 查询条件
1098
+ * @param options 查询选项
1099
+ */
1100
+ static find(where: IdCardRuleGroup, options?: FindOptions<IdCardOrderByField>): Observable<IdCard[]>;
1101
+ /**
1102
+ * 查询
1103
+ * @param where 查询条件
1104
+ * @param options 查询选项
1105
+ */
1106
+ static findAll(where: IdCardRuleGroup, options?: FindAllOptions<IdCardOrderByField>): Observable<IdCard[]>;
1107
+ /**
1108
+ * 查询
1109
+ * @param where 查询条件
1110
+ * @param options 查询选项
1111
+ */
1112
+ static findByCursor(where: IdCardRuleGroup, options?: FindByCursorOptions<IdCardOrderByField>): Observable<IdCard[]>;
1113
+ /**
1114
+ * 查询
1115
+ * @param where 查询条件
1116
+ * @param options 查询选项
1117
+ */
1118
+ static findOne(where: IdCardRuleGroup, options?: FindOneOptions<IdCardOrderByField>): Observable<IdCard | undefined>;
1119
+ /**
1120
+ * 查询
1121
+ * @param where 查询条件
1122
+ * @param options 查询选项
1123
+ */
1124
+ static findOneOrFail(where: IdCardRuleGroup, options?: FindOneOrFailOptions<IdCardOrderByField>): Observable<IdCard>;
1125
+ /**
1126
+ * 查询
1127
+ * @param id 实体的 id
1128
+ * @param options 查询选项
1129
+ */
1130
+ static get(id: string, options?: GetOptions): Observable<IdCard>;
1131
+ /**
1132
+ * 删除
1133
+ */
1134
+ remove(): Promise<IdCard>;
1135
+ /**
1136
+ * 保存
1137
+ */
1138
+ save(): Promise<IdCard>;
1139
+ }
1140
+
1141
+ /**
1142
+ * 产品分类
1143
+ */
1144
+ export declare class Category extends EntityBase {
1145
+ /** orderItems */
1146
+ orderItems$: RelationEntitiesObservable<OrderItem>;
1147
+ /** 分类名称 */
1148
+ name: string;
1149
+ /**
1150
+ * 初始化数据
1151
+ * @param initData 初始化数据
1152
+ */
1153
+ constructor(initData?: CategoryInitData);
1154
+ /**
1155
+ * 查询
1156
+ * @param where 查询条件
1157
+ * @param options 查询选项
1158
+ */
1159
+ static count(where: CategoryRuleGroup, options?: CountOptions): Observable<number>;
1160
+ /**
1161
+ * 查询
1162
+ * @param where 查询条件
1163
+ * @param options 查询选项
1164
+ */
1165
+ static find(where: CategoryRuleGroup, options?: FindOptions<CategoryOrderByField>): Observable<Category[]>;
1166
+ /**
1167
+ * 查询
1168
+ * @param where 查询条件
1169
+ * @param options 查询选项
1170
+ */
1171
+ static findAll(where: CategoryRuleGroup, options?: FindAllOptions<CategoryOrderByField>): Observable<Category[]>;
1172
+ /**
1173
+ * 查询
1174
+ * @param where 查询条件
1175
+ * @param options 查询选项
1176
+ */
1177
+ static findByCursor(where: CategoryRuleGroup, options?: FindByCursorOptions<CategoryOrderByField>): Observable<Category[]>;
1178
+ /**
1179
+ * 查询
1180
+ * @param where 查询条件
1181
+ * @param options 查询选项
1182
+ */
1183
+ static findOne(where: CategoryRuleGroup, options?: FindOneOptions<CategoryOrderByField>): Observable<Category | undefined>;
1184
+ /**
1185
+ * 查询
1186
+ * @param where 查询条件
1187
+ * @param options 查询选项
1188
+ */
1189
+ static findOneOrFail(where: CategoryRuleGroup, options?: FindOneOrFailOptions<CategoryOrderByField>): Observable<Category>;
1190
+ /**
1191
+ * 查询
1192
+ * @param id 实体的 id
1193
+ * @param options 查询选项
1194
+ */
1195
+ static get(id: string, options?: GetOptions): Observable<Category>;
1196
+ /**
1197
+ * 删除
1198
+ */
1199
+ remove(): Promise<Category>;
1200
+ /**
1201
+ * 保存
1202
+ */
1203
+ save(): Promise<Category>;
1204
+ }
1205
+
1206
+ /**
1207
+ * AttributeValue
1208
+ */
1209
+ export declare class AttributeValue extends EntityBase {
1210
+ /** attribute */
1211
+ attribute$: RelationEntityObservable<Attribute>;
1212
+ /** attribute id */
1213
+ attributeId: UUID;
1214
+ /** skuAttributeValues */
1215
+ skuAttributeValues$: RelationEntitiesObservable<SKUAttributes>;
1216
+ /** name */
1217
+ name: string;
1218
+ /**
1219
+ * 初始化数据
1220
+ * @param initData 初始化数据
1221
+ */
1222
+ constructor(initData?: AttributeValueInitData);
1223
+ /**
1224
+ * 查询
1225
+ * @param where 查询条件
1226
+ * @param options 查询选项
1227
+ */
1228
+ static count(where: AttributeValueRuleGroup, options?: CountOptions): Observable<number>;
1229
+ /**
1230
+ * 查询
1231
+ * @param where 查询条件
1232
+ * @param options 查询选项
1233
+ */
1234
+ static find(where: AttributeValueRuleGroup, options?: FindOptions<AttributeValueOrderByField>): Observable<AttributeValue[]>;
1235
+ /**
1236
+ * 查询
1237
+ * @param where 查询条件
1238
+ * @param options 查询选项
1239
+ */
1240
+ static findAll(where: AttributeValueRuleGroup, options?: FindAllOptions<AttributeValueOrderByField>): Observable<AttributeValue[]>;
1241
+ /**
1242
+ * 查询
1243
+ * @param where 查询条件
1244
+ * @param options 查询选项
1245
+ */
1246
+ static findByCursor(where: AttributeValueRuleGroup, options?: FindByCursorOptions<AttributeValueOrderByField>): Observable<AttributeValue[]>;
1247
+ /**
1248
+ * 查询
1249
+ * @param where 查询条件
1250
+ * @param options 查询选项
1251
+ */
1252
+ static findOne(where: AttributeValueRuleGroup, options?: FindOneOptions<AttributeValueOrderByField>): Observable<AttributeValue | undefined>;
1253
+ /**
1254
+ * 查询
1255
+ * @param where 查询条件
1256
+ * @param options 查询选项
1257
+ */
1258
+ static findOneOrFail(where: AttributeValueRuleGroup, options?: FindOneOrFailOptions<AttributeValueOrderByField>): Observable<AttributeValue>;
1259
+ /**
1260
+ * 查询
1261
+ * @param id 实体的 id
1262
+ * @param options 查询选项
1263
+ */
1264
+ static get(id: string, options?: GetOptions): Observable<AttributeValue>;
1265
+ /**
1266
+ * 删除
1267
+ */
1268
+ remove(): Promise<AttributeValue>;
1269
+ /**
1270
+ * 保存
1271
+ */
1272
+ save(): Promise<AttributeValue>;
1273
+ }
1274
+
1275
+ /**
1276
+ * Attribute
1277
+ */
1278
+ export declare class Attribute extends EntityBase {
1279
+ /** skuAttributes */
1280
+ skuAttributes$: RelationEntitiesObservable<SKUAttributes>;
1281
+ /** values */
1282
+ values$: RelationEntitiesObservable<AttributeValue>;
1283
+ /** name */
1284
+ name: string;
1285
+ /**
1286
+ * 初始化数据
1287
+ * @param initData 初始化数据
1288
+ */
1289
+ constructor(initData?: AttributeInitData);
1290
+ /**
1291
+ * 查询
1292
+ * @param where 查询条件
1293
+ * @param options 查询选项
1294
+ */
1295
+ static count(where: AttributeRuleGroup, options?: CountOptions): Observable<number>;
1296
+ /**
1297
+ * 查询
1298
+ * @param where 查询条件
1299
+ * @param options 查询选项
1300
+ */
1301
+ static find(where: AttributeRuleGroup, options?: FindOptions<AttributeOrderByField>): Observable<Attribute[]>;
1302
+ /**
1303
+ * 查询
1304
+ * @param where 查询条件
1305
+ * @param options 查询选项
1306
+ */
1307
+ static findAll(where: AttributeRuleGroup, options?: FindAllOptions<AttributeOrderByField>): Observable<Attribute[]>;
1308
+ /**
1309
+ * 查询
1310
+ * @param where 查询条件
1311
+ * @param options 查询选项
1312
+ */
1313
+ static findByCursor(where: AttributeRuleGroup, options?: FindByCursorOptions<AttributeOrderByField>): Observable<Attribute[]>;
1314
+ /**
1315
+ * 查询
1316
+ * @param where 查询条件
1317
+ * @param options 查询选项
1318
+ */
1319
+ static findOne(where: AttributeRuleGroup, options?: FindOneOptions<AttributeOrderByField>): Observable<Attribute | undefined>;
1320
+ /**
1321
+ * 查询
1322
+ * @param where 查询条件
1323
+ * @param options 查询选项
1324
+ */
1325
+ static findOneOrFail(where: AttributeRuleGroup, options?: FindOneOrFailOptions<AttributeOrderByField>): Observable<Attribute>;
1326
+ /**
1327
+ * 查询
1328
+ * @param id 实体的 id
1329
+ * @param options 查询选项
1330
+ */
1331
+ static get(id: string, options?: GetOptions): Observable<Attribute>;
1332
+ /**
1333
+ * 删除
1334
+ */
1335
+ remove(): Promise<Attribute>;
1336
+ /**
1337
+ * 保存
1338
+ */
1339
+ save(): Promise<Attribute>;
1340
+ }
1341
+
1342
+ export declare const ENTITIES: EntityType[];
1343
+