@aiao/rxdb-test 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/FileLarge.d.ts +339 -0
- package/dist/entities/FileLarge.js +77 -0
- package/dist/entities/FileNode.d.ts +335 -0
- package/dist/entities/FileNode.js +77 -0
- package/dist/entities/MenuLarge.d.ts +294 -0
- package/dist/entities/MenuLarge.js +41 -0
- package/dist/entities/MenuSimple.d.ts +290 -0
- package/dist/entities/MenuSimple.js +41 -0
- package/dist/entities/Todo.d.ts +165 -0
- package/dist/entities/Todo.js +34 -0
- package/dist/entities/TypeDemo.d.ts +264 -0
- package/dist/entities/TypeDemo.js +101 -0
- package/dist/entities/index.d.ts +14 -1655
- package/dist/entities/index.js +6 -360
- package/dist/graph/index.d.ts +1 -2
- package/dist/graph/index.js +1 -1
- package/dist/shop/Attribute.d.ts +359 -0
- package/dist/shop/Attribute.js +50 -0
- package/dist/shop/AttributeValue.d.ts +366 -0
- package/dist/shop/AttributeValue.js +51 -0
- package/dist/shop/Category.d.ts +280 -0
- package/dist/shop/Category.js +41 -0
- package/dist/shop/IdCard.d.ts +237 -0
- package/dist/shop/IdCard.js +43 -0
- package/dist/shop/Order.d.ts +270 -0
- package/dist/shop/Order.js +58 -0
- package/dist/shop/OrderItem.d.ts +293 -0
- package/dist/shop/OrderItem.js +64 -0
- package/dist/shop/Product.d.ts +321 -0
- package/dist/shop/Product.js +47 -0
- package/dist/shop/SKU.d.ts +343 -0
- package/dist/shop/SKU.js +63 -0
- package/dist/shop/SKUAttributes.d.ts +306 -0
- package/dist/shop/SKUAttributes.js +56 -0
- package/dist/shop/User.d.ts +269 -0
- package/dist/shop/User.js +74 -0
- package/dist/shop/index.d.ts +22 -2980
- package/dist/shop/index.js +10 -528
- package/dist/system/RxDBBranch.d.ts +396 -0
- package/dist/system/RxDBBranch.js +106 -0
- package/dist/system/RxDBChange.d.ts +361 -0
- package/dist/system/RxDBChange.js +123 -0
- package/dist/system/RxDBMigration.d.ts +167 -0
- package/dist/system/RxDBMigration.js +40 -0
- package/dist/system/RxDBSync.d.ts +339 -0
- package/dist/system/RxDBSync.js +122 -0
- package/dist/system/index.d.ts +9 -1240
- package/dist/system/index.js +4 -384
- package/package.json +3 -3
package/dist/shop/index.d.ts
CHANGED
|
@@ -1,1559 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
| UUIDRules<Order, 'ownerId'>
|
|
34
|
-
| RelationUUIDRules<'orders.items.id', UUID>
|
|
35
|
-
| RelationDateRules<'orders.items.createdAt', Date>
|
|
36
|
-
| RelationDateRules<'orders.items.updatedAt', Date>
|
|
37
|
-
| RelationStringRules<'orders.items.createdBy', string | null>
|
|
38
|
-
| RelationStringRules<'orders.items.updatedBy', string | null>
|
|
39
|
-
| RelationStringRules<'orders.items.productName', string>
|
|
40
|
-
| RelationNumberRules<'orders.items.quantity', number>
|
|
41
|
-
| RelationNumberRules<'orders.items.price', number>
|
|
42
|
-
| UUIDRules<OrderItem, 'orderId'>
|
|
43
|
-
| RelationUUIDRules<'orders.items.categories.id', UUID>
|
|
44
|
-
| RelationDateRules<'orders.items.categories.createdAt', Date>
|
|
45
|
-
| RelationDateRules<'orders.items.categories.updatedAt', Date>
|
|
46
|
-
| RelationStringRules<'orders.items.categories.createdBy', string | null>
|
|
47
|
-
| RelationStringRules<'orders.items.categories.updatedBy', string | null>
|
|
48
|
-
| RelationStringRules<'orders.items.categories.name', string>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* RuleGroupBase
|
|
52
|
-
*/
|
|
53
|
-
export declare type UserRuleGroup = RuleGroupBase<typeof User,
|
|
54
|
-
|'id'
|
|
55
|
-
|'createdAt'
|
|
56
|
-
|'updatedAt'
|
|
57
|
-
|'createdBy'
|
|
58
|
-
|'updatedBy'
|
|
59
|
-
|'name'
|
|
60
|
-
|'married'
|
|
61
|
-
|'age'
|
|
62
|
-
|'gender'
|
|
63
|
-
|'idCardId'
|
|
64
|
-
|'idCard'
|
|
65
|
-
|'idCard.id'
|
|
66
|
-
|'idCard.createdAt'
|
|
67
|
-
|'idCard.updatedAt'
|
|
68
|
-
|'idCard.createdBy'
|
|
69
|
-
|'idCard.updatedBy'
|
|
70
|
-
|'idCard.code'
|
|
71
|
-
|'ownerId'
|
|
72
|
-
|'orders'
|
|
73
|
-
|'orders.id'
|
|
74
|
-
|'orders.createdAt'
|
|
75
|
-
|'orders.updatedAt'
|
|
76
|
-
|'orders.createdBy'
|
|
77
|
-
|'orders.updatedBy'
|
|
78
|
-
|'orders.number'
|
|
79
|
-
|'orders.amount'
|
|
80
|
-
|'ownerId'
|
|
81
|
-
|'orders.items.id'
|
|
82
|
-
|'orders.items.createdAt'
|
|
83
|
-
|'orders.items.updatedAt'
|
|
84
|
-
|'orders.items.createdBy'
|
|
85
|
-
|'orders.items.updatedBy'
|
|
86
|
-
|'orders.items.productName'
|
|
87
|
-
|'orders.items.quantity'
|
|
88
|
-
|'orders.items.price'
|
|
89
|
-
|'orderId'
|
|
90
|
-
|'orders.items.categories.id'
|
|
91
|
-
|'orders.items.categories.createdAt'
|
|
92
|
-
|'orders.items.categories.updatedAt'
|
|
93
|
-
|'orders.items.categories.createdBy'
|
|
94
|
-
|'orders.items.categories.updatedBy'
|
|
95
|
-
|'orders.items.categories.name',
|
|
96
|
-
UserRule>;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* OrderByField
|
|
100
|
-
*/
|
|
101
|
-
declare type UserOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "married" | "age" | "gender";
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* rule
|
|
105
|
-
*/
|
|
106
|
-
declare type SKUAttributesRule = UUIDRules<SKUAttributes, 'id'>
|
|
107
|
-
| DateRules<SKUAttributes, 'createdAt'>
|
|
108
|
-
| DateRules<SKUAttributes, 'updatedAt'>
|
|
109
|
-
| StringRules<SKUAttributes, 'createdBy'>
|
|
110
|
-
| StringRules<SKUAttributes, 'updatedBy'>
|
|
111
|
-
| UUIDRules<SKUAttributes, 'skuId'>
|
|
112
|
-
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
113
|
-
| UUIDRules<SKUAttributes, 'valueId'>
|
|
114
|
-
| RelationExistsRules<'sku', SKURuleGroup>
|
|
115
|
-
| RelationUUIDRules<'sku.id', UUID>
|
|
116
|
-
| RelationDateRules<'sku.createdAt', Date>
|
|
117
|
-
| RelationDateRules<'sku.updatedAt', Date>
|
|
118
|
-
| RelationStringRules<'sku.createdBy', string | null>
|
|
119
|
-
| RelationStringRules<'sku.updatedBy', string | null>
|
|
120
|
-
| RelationStringRules<'sku.code', string>
|
|
121
|
-
| RelationNumberRules<'sku.price', number>
|
|
122
|
-
| RelationNumberRules<'sku.stock', number>
|
|
123
|
-
| UUIDRules<SKU, 'productId'>
|
|
124
|
-
| RelationUUIDRules<'sku.product.id', UUID>
|
|
125
|
-
| RelationDateRules<'sku.product.createdAt', Date>
|
|
126
|
-
| RelationDateRules<'sku.product.updatedAt', Date>
|
|
127
|
-
| RelationStringRules<'sku.product.createdBy', string | null>
|
|
128
|
-
| RelationStringRules<'sku.product.updatedBy', string | null>
|
|
129
|
-
| RelationStringRules<'sku.product.name', string>
|
|
130
|
-
| RelationStringRules<'sku.product.description', string | null>
|
|
131
|
-
| RelationUUIDRules<'sku.product.skus.id', UUID>
|
|
132
|
-
| RelationDateRules<'sku.product.skus.createdAt', Date>
|
|
133
|
-
| RelationDateRules<'sku.product.skus.updatedAt', Date>
|
|
134
|
-
| RelationStringRules<'sku.product.skus.createdBy', string | null>
|
|
135
|
-
| RelationStringRules<'sku.product.skus.updatedBy', string | null>
|
|
136
|
-
| RelationStringRules<'sku.product.skus.code', string>
|
|
137
|
-
| RelationNumberRules<'sku.product.skus.price', number>
|
|
138
|
-
| RelationNumberRules<'sku.product.skus.stock', number>
|
|
139
|
-
| RelationExistsRules<'attribute', AttributeRuleGroup>
|
|
140
|
-
| RelationUUIDRules<'attribute.id', UUID>
|
|
141
|
-
| RelationDateRules<'attribute.createdAt', Date>
|
|
142
|
-
| RelationDateRules<'attribute.updatedAt', Date>
|
|
143
|
-
| RelationStringRules<'attribute.createdBy', string | null>
|
|
144
|
-
| RelationStringRules<'attribute.updatedBy', string | null>
|
|
145
|
-
| RelationStringRules<'attribute.name', string>
|
|
146
|
-
| RelationUUIDRules<'attribute.values.id', UUID>
|
|
147
|
-
| RelationDateRules<'attribute.values.createdAt', Date>
|
|
148
|
-
| RelationDateRules<'attribute.values.updatedAt', Date>
|
|
149
|
-
| RelationStringRules<'attribute.values.createdBy', string | null>
|
|
150
|
-
| RelationStringRules<'attribute.values.updatedBy', string | null>
|
|
151
|
-
| RelationStringRules<'attribute.values.name', string>
|
|
152
|
-
| UUIDRules<AttributeValue, 'attributeId'>
|
|
153
|
-
| RelationExistsRules<'value', AttributeValueRuleGroup>
|
|
154
|
-
| RelationUUIDRules<'value.id', UUID>
|
|
155
|
-
| RelationDateRules<'value.createdAt', Date>
|
|
156
|
-
| RelationDateRules<'value.updatedAt', Date>
|
|
157
|
-
| RelationStringRules<'value.createdBy', string | null>
|
|
158
|
-
| RelationStringRules<'value.updatedBy', string | null>
|
|
159
|
-
| RelationStringRules<'value.name', string>
|
|
160
|
-
| RelationUUIDRules<'value.attribute.id', UUID>
|
|
161
|
-
| RelationDateRules<'value.attribute.createdAt', Date>
|
|
162
|
-
| RelationDateRules<'value.attribute.updatedAt', Date>
|
|
163
|
-
| RelationStringRules<'value.attribute.createdBy', string | null>
|
|
164
|
-
| RelationStringRules<'value.attribute.updatedBy', string | null>
|
|
165
|
-
| RelationStringRules<'value.attribute.name', string>
|
|
166
|
-
| RelationUUIDRules<'value.attribute.values.id', UUID>
|
|
167
|
-
| RelationDateRules<'value.attribute.values.createdAt', Date>
|
|
168
|
-
| RelationDateRules<'value.attribute.values.updatedAt', Date>
|
|
169
|
-
| RelationStringRules<'value.attribute.values.createdBy', string | null>
|
|
170
|
-
| RelationStringRules<'value.attribute.values.updatedBy', string | null>
|
|
171
|
-
| RelationStringRules<'value.attribute.values.name', string>;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* RuleGroupBase
|
|
175
|
-
*/
|
|
176
|
-
export declare type SKUAttributesRuleGroup = RuleGroupBase<typeof SKUAttributes,
|
|
177
|
-
|'id'
|
|
178
|
-
|'createdAt'
|
|
179
|
-
|'updatedAt'
|
|
180
|
-
|'createdBy'
|
|
181
|
-
|'updatedBy'
|
|
182
|
-
|'skuId'
|
|
183
|
-
|'attributeId'
|
|
184
|
-
|'valueId'
|
|
185
|
-
|'sku'
|
|
186
|
-
|'sku.id'
|
|
187
|
-
|'sku.createdAt'
|
|
188
|
-
|'sku.updatedAt'
|
|
189
|
-
|'sku.createdBy'
|
|
190
|
-
|'sku.updatedBy'
|
|
191
|
-
|'sku.code'
|
|
192
|
-
|'sku.price'
|
|
193
|
-
|'sku.stock'
|
|
194
|
-
|'productId'
|
|
195
|
-
|'sku.product.id'
|
|
196
|
-
|'sku.product.createdAt'
|
|
197
|
-
|'sku.product.updatedAt'
|
|
198
|
-
|'sku.product.createdBy'
|
|
199
|
-
|'sku.product.updatedBy'
|
|
200
|
-
|'sku.product.name'
|
|
201
|
-
|'sku.product.description'
|
|
202
|
-
|'sku.product.skus.id'
|
|
203
|
-
|'sku.product.skus.createdAt'
|
|
204
|
-
|'sku.product.skus.updatedAt'
|
|
205
|
-
|'sku.product.skus.createdBy'
|
|
206
|
-
|'sku.product.skus.updatedBy'
|
|
207
|
-
|'sku.product.skus.code'
|
|
208
|
-
|'sku.product.skus.price'
|
|
209
|
-
|'sku.product.skus.stock'
|
|
210
|
-
|'productId'
|
|
211
|
-
|'attribute'
|
|
212
|
-
|'attribute.id'
|
|
213
|
-
|'attribute.createdAt'
|
|
214
|
-
|'attribute.updatedAt'
|
|
215
|
-
|'attribute.createdBy'
|
|
216
|
-
|'attribute.updatedBy'
|
|
217
|
-
|'attribute.name'
|
|
218
|
-
|'attribute.values.id'
|
|
219
|
-
|'attribute.values.createdAt'
|
|
220
|
-
|'attribute.values.updatedAt'
|
|
221
|
-
|'attribute.values.createdBy'
|
|
222
|
-
|'attribute.values.updatedBy'
|
|
223
|
-
|'attribute.values.name'
|
|
224
|
-
|'attributeId'
|
|
225
|
-
|'value'
|
|
226
|
-
|'value.id'
|
|
227
|
-
|'value.createdAt'
|
|
228
|
-
|'value.updatedAt'
|
|
229
|
-
|'value.createdBy'
|
|
230
|
-
|'value.updatedBy'
|
|
231
|
-
|'value.name'
|
|
232
|
-
|'attributeId'
|
|
233
|
-
|'value.attribute.id'
|
|
234
|
-
|'value.attribute.createdAt'
|
|
235
|
-
|'value.attribute.updatedAt'
|
|
236
|
-
|'value.attribute.createdBy'
|
|
237
|
-
|'value.attribute.updatedBy'
|
|
238
|
-
|'value.attribute.name'
|
|
239
|
-
|'value.attribute.values.id'
|
|
240
|
-
|'value.attribute.values.createdAt'
|
|
241
|
-
|'value.attribute.values.updatedAt'
|
|
242
|
-
|'value.attribute.values.createdBy'
|
|
243
|
-
|'value.attribute.values.updatedBy'
|
|
244
|
-
|'value.attribute.values.name'
|
|
245
|
-
|'attributeId',
|
|
246
|
-
SKUAttributesRule>;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* OrderByField
|
|
250
|
-
*/
|
|
251
|
-
declare type SKUAttributesOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy";
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* rule
|
|
255
|
-
*/
|
|
256
|
-
declare type SKURule = UUIDRules<SKU, 'id'>
|
|
257
|
-
| DateRules<SKU, 'createdAt'>
|
|
258
|
-
| DateRules<SKU, 'updatedAt'>
|
|
259
|
-
| StringRules<SKU, 'createdBy'>
|
|
260
|
-
| StringRules<SKU, 'updatedBy'>
|
|
261
|
-
| StringRules<SKU, 'code'>
|
|
262
|
-
| NumberRules<SKU, 'price'>
|
|
263
|
-
| NumberRules<SKU, 'stock'>
|
|
264
|
-
| UUIDRules<SKU, 'productId'>
|
|
265
|
-
| RelationExistsRules<'attributes', SKUAttributesRuleGroup>
|
|
266
|
-
| RelationUUIDRules<'attributes.id', UUID>
|
|
267
|
-
| RelationDateRules<'attributes.createdAt', Date>
|
|
268
|
-
| RelationDateRules<'attributes.updatedAt', Date>
|
|
269
|
-
| RelationStringRules<'attributes.createdBy', string | null>
|
|
270
|
-
| RelationStringRules<'attributes.updatedBy', string | null>
|
|
271
|
-
| UUIDRules<SKUAttributes, 'skuId'>
|
|
272
|
-
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
273
|
-
| UUIDRules<SKUAttributes, 'valueId'>
|
|
274
|
-
| RelationUUIDRules<'attributes.attribute.id', UUID>
|
|
275
|
-
| RelationDateRules<'attributes.attribute.createdAt', Date>
|
|
276
|
-
| RelationDateRules<'attributes.attribute.updatedAt', Date>
|
|
277
|
-
| RelationStringRules<'attributes.attribute.createdBy', string | null>
|
|
278
|
-
| RelationStringRules<'attributes.attribute.updatedBy', string | null>
|
|
279
|
-
| RelationStringRules<'attributes.attribute.name', string>
|
|
280
|
-
| RelationUUIDRules<'attributes.attribute.values.id', UUID>
|
|
281
|
-
| RelationDateRules<'attributes.attribute.values.createdAt', Date>
|
|
282
|
-
| RelationDateRules<'attributes.attribute.values.updatedAt', Date>
|
|
283
|
-
| RelationStringRules<'attributes.attribute.values.createdBy', string | null>
|
|
284
|
-
| RelationStringRules<'attributes.attribute.values.updatedBy', string | null>
|
|
285
|
-
| RelationStringRules<'attributes.attribute.values.name', string>
|
|
286
|
-
| UUIDRules<AttributeValue, 'attributeId'>
|
|
287
|
-
| RelationUUIDRules<'attributes.attribute.values.skuAttributeValues.id', UUID>
|
|
288
|
-
| RelationDateRules<'attributes.attribute.values.skuAttributeValues.createdAt', Date>
|
|
289
|
-
| RelationDateRules<'attributes.attribute.values.skuAttributeValues.updatedAt', Date>
|
|
290
|
-
| RelationStringRules<'attributes.attribute.values.skuAttributeValues.createdBy', string | null>
|
|
291
|
-
| RelationStringRules<'attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
|
|
292
|
-
| RelationUUIDRules<'attributes.attribute.skuAttributes.id', UUID>
|
|
293
|
-
| RelationDateRules<'attributes.attribute.skuAttributes.createdAt', Date>
|
|
294
|
-
| RelationDateRules<'attributes.attribute.skuAttributes.updatedAt', Date>
|
|
295
|
-
| RelationStringRules<'attributes.attribute.skuAttributes.createdBy', string | null>
|
|
296
|
-
| RelationStringRules<'attributes.attribute.skuAttributes.updatedBy', string | null>
|
|
297
|
-
| RelationUUIDRules<'attributes.value.id', UUID>
|
|
298
|
-
| RelationDateRules<'attributes.value.createdAt', Date>
|
|
299
|
-
| RelationDateRules<'attributes.value.updatedAt', Date>
|
|
300
|
-
| RelationStringRules<'attributes.value.createdBy', string | null>
|
|
301
|
-
| RelationStringRules<'attributes.value.updatedBy', string | null>
|
|
302
|
-
| RelationStringRules<'attributes.value.name', string>
|
|
303
|
-
| RelationUUIDRules<'attributes.value.attribute.id', UUID>
|
|
304
|
-
| RelationDateRules<'attributes.value.attribute.createdAt', Date>
|
|
305
|
-
| RelationDateRules<'attributes.value.attribute.updatedAt', Date>
|
|
306
|
-
| RelationStringRules<'attributes.value.attribute.createdBy', string | null>
|
|
307
|
-
| RelationStringRules<'attributes.value.attribute.updatedBy', string | null>
|
|
308
|
-
| RelationStringRules<'attributes.value.attribute.name', string>
|
|
309
|
-
| RelationUUIDRules<'attributes.value.attribute.values.id', UUID>
|
|
310
|
-
| RelationDateRules<'attributes.value.attribute.values.createdAt', Date>
|
|
311
|
-
| RelationDateRules<'attributes.value.attribute.values.updatedAt', Date>
|
|
312
|
-
| RelationStringRules<'attributes.value.attribute.values.createdBy', string | null>
|
|
313
|
-
| RelationStringRules<'attributes.value.attribute.values.updatedBy', string | null>
|
|
314
|
-
| RelationStringRules<'attributes.value.attribute.values.name', string>
|
|
315
|
-
| RelationUUIDRules<'attributes.value.attribute.skuAttributes.id', UUID>
|
|
316
|
-
| RelationDateRules<'attributes.value.attribute.skuAttributes.createdAt', Date>
|
|
317
|
-
| RelationDateRules<'attributes.value.attribute.skuAttributes.updatedAt', Date>
|
|
318
|
-
| RelationStringRules<'attributes.value.attribute.skuAttributes.createdBy', string | null>
|
|
319
|
-
| RelationStringRules<'attributes.value.attribute.skuAttributes.updatedBy', string | null>
|
|
320
|
-
| RelationUUIDRules<'attributes.value.skuAttributeValues.id', UUID>
|
|
321
|
-
| RelationDateRules<'attributes.value.skuAttributeValues.createdAt', Date>
|
|
322
|
-
| RelationDateRules<'attributes.value.skuAttributeValues.updatedAt', Date>
|
|
323
|
-
| RelationStringRules<'attributes.value.skuAttributeValues.createdBy', string | null>
|
|
324
|
-
| RelationStringRules<'attributes.value.skuAttributeValues.updatedBy', string | null>
|
|
325
|
-
| RelationExistsRules<'product', ProductRuleGroup>
|
|
326
|
-
| RelationUUIDRules<'product.id', UUID>
|
|
327
|
-
| RelationDateRules<'product.createdAt', Date>
|
|
328
|
-
| RelationDateRules<'product.updatedAt', Date>
|
|
329
|
-
| RelationStringRules<'product.createdBy', string | null>
|
|
330
|
-
| RelationStringRules<'product.updatedBy', string | null>
|
|
331
|
-
| RelationStringRules<'product.name', string>
|
|
332
|
-
| RelationStringRules<'product.description', string | null>;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* RuleGroupBase
|
|
336
|
-
*/
|
|
337
|
-
export declare type SKURuleGroup = RuleGroupBase<typeof SKU,
|
|
338
|
-
|'id'
|
|
339
|
-
|'createdAt'
|
|
340
|
-
|'updatedAt'
|
|
341
|
-
|'createdBy'
|
|
342
|
-
|'updatedBy'
|
|
343
|
-
|'code'
|
|
344
|
-
|'price'
|
|
345
|
-
|'stock'
|
|
346
|
-
|'productId'
|
|
347
|
-
|'attributes'
|
|
348
|
-
|'attributes.id'
|
|
349
|
-
|'attributes.createdAt'
|
|
350
|
-
|'attributes.updatedAt'
|
|
351
|
-
|'attributes.createdBy'
|
|
352
|
-
|'attributes.updatedBy'
|
|
353
|
-
|'skuId'
|
|
354
|
-
|'attributeId'
|
|
355
|
-
|'valueId'
|
|
356
|
-
|'attributes.attribute.id'
|
|
357
|
-
|'attributes.attribute.createdAt'
|
|
358
|
-
|'attributes.attribute.updatedAt'
|
|
359
|
-
|'attributes.attribute.createdBy'
|
|
360
|
-
|'attributes.attribute.updatedBy'
|
|
361
|
-
|'attributes.attribute.name'
|
|
362
|
-
|'attributes.attribute.values.id'
|
|
363
|
-
|'attributes.attribute.values.createdAt'
|
|
364
|
-
|'attributes.attribute.values.updatedAt'
|
|
365
|
-
|'attributes.attribute.values.createdBy'
|
|
366
|
-
|'attributes.attribute.values.updatedBy'
|
|
367
|
-
|'attributes.attribute.values.name'
|
|
368
|
-
|'attributeId'
|
|
369
|
-
|'attributes.attribute.values.skuAttributeValues.id'
|
|
370
|
-
|'attributes.attribute.values.skuAttributeValues.createdAt'
|
|
371
|
-
|'attributes.attribute.values.skuAttributeValues.updatedAt'
|
|
372
|
-
|'attributes.attribute.values.skuAttributeValues.createdBy'
|
|
373
|
-
|'attributes.attribute.values.skuAttributeValues.updatedBy'
|
|
374
|
-
|'skuId'
|
|
375
|
-
|'attributeId'
|
|
376
|
-
|'valueId'
|
|
377
|
-
|'attributes.attribute.skuAttributes.id'
|
|
378
|
-
|'attributes.attribute.skuAttributes.createdAt'
|
|
379
|
-
|'attributes.attribute.skuAttributes.updatedAt'
|
|
380
|
-
|'attributes.attribute.skuAttributes.createdBy'
|
|
381
|
-
|'attributes.attribute.skuAttributes.updatedBy'
|
|
382
|
-
|'skuId'
|
|
383
|
-
|'attributeId'
|
|
384
|
-
|'valueId'
|
|
385
|
-
|'attributes.value.id'
|
|
386
|
-
|'attributes.value.createdAt'
|
|
387
|
-
|'attributes.value.updatedAt'
|
|
388
|
-
|'attributes.value.createdBy'
|
|
389
|
-
|'attributes.value.updatedBy'
|
|
390
|
-
|'attributes.value.name'
|
|
391
|
-
|'attributeId'
|
|
392
|
-
|'attributes.value.attribute.id'
|
|
393
|
-
|'attributes.value.attribute.createdAt'
|
|
394
|
-
|'attributes.value.attribute.updatedAt'
|
|
395
|
-
|'attributes.value.attribute.createdBy'
|
|
396
|
-
|'attributes.value.attribute.updatedBy'
|
|
397
|
-
|'attributes.value.attribute.name'
|
|
398
|
-
|'attributes.value.attribute.values.id'
|
|
399
|
-
|'attributes.value.attribute.values.createdAt'
|
|
400
|
-
|'attributes.value.attribute.values.updatedAt'
|
|
401
|
-
|'attributes.value.attribute.values.createdBy'
|
|
402
|
-
|'attributes.value.attribute.values.updatedBy'
|
|
403
|
-
|'attributes.value.attribute.values.name'
|
|
404
|
-
|'attributeId'
|
|
405
|
-
|'attributes.value.attribute.skuAttributes.id'
|
|
406
|
-
|'attributes.value.attribute.skuAttributes.createdAt'
|
|
407
|
-
|'attributes.value.attribute.skuAttributes.updatedAt'
|
|
408
|
-
|'attributes.value.attribute.skuAttributes.createdBy'
|
|
409
|
-
|'attributes.value.attribute.skuAttributes.updatedBy'
|
|
410
|
-
|'skuId'
|
|
411
|
-
|'attributeId'
|
|
412
|
-
|'valueId'
|
|
413
|
-
|'attributes.value.skuAttributeValues.id'
|
|
414
|
-
|'attributes.value.skuAttributeValues.createdAt'
|
|
415
|
-
|'attributes.value.skuAttributeValues.updatedAt'
|
|
416
|
-
|'attributes.value.skuAttributeValues.createdBy'
|
|
417
|
-
|'attributes.value.skuAttributeValues.updatedBy'
|
|
418
|
-
|'skuId'
|
|
419
|
-
|'attributeId'
|
|
420
|
-
|'valueId'
|
|
421
|
-
|'product'
|
|
422
|
-
|'product.id'
|
|
423
|
-
|'product.createdAt'
|
|
424
|
-
|'product.updatedAt'
|
|
425
|
-
|'product.createdBy'
|
|
426
|
-
|'product.updatedBy'
|
|
427
|
-
|'product.name'
|
|
428
|
-
|'product.description',
|
|
429
|
-
SKURule>;
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* OrderByField
|
|
433
|
-
*/
|
|
434
|
-
declare type SKUOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "code" | "price" | "stock";
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* rule
|
|
438
|
-
*/
|
|
439
|
-
declare type ProductRule = UUIDRules<Product, 'id'>
|
|
440
|
-
| DateRules<Product, 'createdAt'>
|
|
441
|
-
| DateRules<Product, 'updatedAt'>
|
|
442
|
-
| StringRules<Product, 'createdBy'>
|
|
443
|
-
| StringRules<Product, 'updatedBy'>
|
|
444
|
-
| StringRules<Product, 'name'>
|
|
445
|
-
| StringRules<Product, 'description'>
|
|
446
|
-
| RelationExistsRules<'skus', SKURuleGroup>
|
|
447
|
-
| RelationUUIDRules<'skus.id', UUID>
|
|
448
|
-
| RelationDateRules<'skus.createdAt', Date>
|
|
449
|
-
| RelationDateRules<'skus.updatedAt', Date>
|
|
450
|
-
| RelationStringRules<'skus.createdBy', string | null>
|
|
451
|
-
| RelationStringRules<'skus.updatedBy', string | null>
|
|
452
|
-
| RelationStringRules<'skus.code', string>
|
|
453
|
-
| RelationNumberRules<'skus.price', number>
|
|
454
|
-
| RelationNumberRules<'skus.stock', number>
|
|
455
|
-
| UUIDRules<SKU, 'productId'>
|
|
456
|
-
| RelationUUIDRules<'skus.attributes.id', UUID>
|
|
457
|
-
| RelationDateRules<'skus.attributes.createdAt', Date>
|
|
458
|
-
| RelationDateRules<'skus.attributes.updatedAt', Date>
|
|
459
|
-
| RelationStringRules<'skus.attributes.createdBy', string | null>
|
|
460
|
-
| RelationStringRules<'skus.attributes.updatedBy', string | null>
|
|
461
|
-
| UUIDRules<SKUAttributes, 'skuId'>
|
|
462
|
-
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
463
|
-
| UUIDRules<SKUAttributes, 'valueId'>
|
|
464
|
-
| RelationUUIDRules<'skus.attributes.attribute.id', UUID>
|
|
465
|
-
| RelationDateRules<'skus.attributes.attribute.createdAt', Date>
|
|
466
|
-
| RelationDateRules<'skus.attributes.attribute.updatedAt', Date>
|
|
467
|
-
| RelationStringRules<'skus.attributes.attribute.createdBy', string | null>
|
|
468
|
-
| RelationStringRules<'skus.attributes.attribute.updatedBy', string | null>
|
|
469
|
-
| RelationStringRules<'skus.attributes.attribute.name', string>
|
|
470
|
-
| RelationUUIDRules<'skus.attributes.attribute.values.id', UUID>
|
|
471
|
-
| RelationDateRules<'skus.attributes.attribute.values.createdAt', Date>
|
|
472
|
-
| RelationDateRules<'skus.attributes.attribute.values.updatedAt', Date>
|
|
473
|
-
| RelationStringRules<'skus.attributes.attribute.values.createdBy', string | null>
|
|
474
|
-
| RelationStringRules<'skus.attributes.attribute.values.updatedBy', string | null>
|
|
475
|
-
| RelationStringRules<'skus.attributes.attribute.values.name', string>
|
|
476
|
-
| UUIDRules<AttributeValue, 'attributeId'>
|
|
477
|
-
| RelationUUIDRules<'skus.attributes.attribute.values.skuAttributeValues.id', UUID>
|
|
478
|
-
| RelationDateRules<'skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
|
|
479
|
-
| RelationDateRules<'skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
|
|
480
|
-
| RelationStringRules<'skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
|
|
481
|
-
| RelationStringRules<'skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
|
|
482
|
-
| RelationUUIDRules<'skus.attributes.attribute.skuAttributes.id', UUID>
|
|
483
|
-
| RelationDateRules<'skus.attributes.attribute.skuAttributes.createdAt', Date>
|
|
484
|
-
| RelationDateRules<'skus.attributes.attribute.skuAttributes.updatedAt', Date>
|
|
485
|
-
| RelationStringRules<'skus.attributes.attribute.skuAttributes.createdBy', string | null>
|
|
486
|
-
| RelationStringRules<'skus.attributes.attribute.skuAttributes.updatedBy', string | null>
|
|
487
|
-
| RelationUUIDRules<'skus.attributes.value.id', UUID>
|
|
488
|
-
| RelationDateRules<'skus.attributes.value.createdAt', Date>
|
|
489
|
-
| RelationDateRules<'skus.attributes.value.updatedAt', Date>
|
|
490
|
-
| RelationStringRules<'skus.attributes.value.createdBy', string | null>
|
|
491
|
-
| RelationStringRules<'skus.attributes.value.updatedBy', string | null>
|
|
492
|
-
| RelationStringRules<'skus.attributes.value.name', string>
|
|
493
|
-
| RelationUUIDRules<'skus.attributes.value.attribute.id', UUID>
|
|
494
|
-
| RelationDateRules<'skus.attributes.value.attribute.createdAt', Date>
|
|
495
|
-
| RelationDateRules<'skus.attributes.value.attribute.updatedAt', Date>
|
|
496
|
-
| RelationStringRules<'skus.attributes.value.attribute.createdBy', string | null>
|
|
497
|
-
| RelationStringRules<'skus.attributes.value.attribute.updatedBy', string | null>
|
|
498
|
-
| RelationStringRules<'skus.attributes.value.attribute.name', string>
|
|
499
|
-
| RelationUUIDRules<'skus.attributes.value.attribute.values.id', UUID>
|
|
500
|
-
| RelationDateRules<'skus.attributes.value.attribute.values.createdAt', Date>
|
|
501
|
-
| RelationDateRules<'skus.attributes.value.attribute.values.updatedAt', Date>
|
|
502
|
-
| RelationStringRules<'skus.attributes.value.attribute.values.createdBy', string | null>
|
|
503
|
-
| RelationStringRules<'skus.attributes.value.attribute.values.updatedBy', string | null>
|
|
504
|
-
| RelationStringRules<'skus.attributes.value.attribute.values.name', string>
|
|
505
|
-
| RelationUUIDRules<'skus.attributes.value.attribute.skuAttributes.id', UUID>
|
|
506
|
-
| RelationDateRules<'skus.attributes.value.attribute.skuAttributes.createdAt', Date>
|
|
507
|
-
| RelationDateRules<'skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
|
|
508
|
-
| RelationStringRules<'skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
|
|
509
|
-
| RelationStringRules<'skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
|
|
510
|
-
| RelationUUIDRules<'skus.attributes.value.skuAttributeValues.id', UUID>
|
|
511
|
-
| RelationDateRules<'skus.attributes.value.skuAttributeValues.createdAt', Date>
|
|
512
|
-
| RelationDateRules<'skus.attributes.value.skuAttributeValues.updatedAt', Date>
|
|
513
|
-
| RelationStringRules<'skus.attributes.value.skuAttributeValues.createdBy', string | null>
|
|
514
|
-
| RelationStringRules<'skus.attributes.value.skuAttributeValues.updatedBy', string | null>;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* RuleGroupBase
|
|
518
|
-
*/
|
|
519
|
-
export declare type ProductRuleGroup = RuleGroupBase<typeof Product,
|
|
520
|
-
|'id'
|
|
521
|
-
|'createdAt'
|
|
522
|
-
|'updatedAt'
|
|
523
|
-
|'createdBy'
|
|
524
|
-
|'updatedBy'
|
|
525
|
-
|'name'
|
|
526
|
-
|'description'
|
|
527
|
-
|'skus'
|
|
528
|
-
|'skus.id'
|
|
529
|
-
|'skus.createdAt'
|
|
530
|
-
|'skus.updatedAt'
|
|
531
|
-
|'skus.createdBy'
|
|
532
|
-
|'skus.updatedBy'
|
|
533
|
-
|'skus.code'
|
|
534
|
-
|'skus.price'
|
|
535
|
-
|'skus.stock'
|
|
536
|
-
|'productId'
|
|
537
|
-
|'skus.attributes.id'
|
|
538
|
-
|'skus.attributes.createdAt'
|
|
539
|
-
|'skus.attributes.updatedAt'
|
|
540
|
-
|'skus.attributes.createdBy'
|
|
541
|
-
|'skus.attributes.updatedBy'
|
|
542
|
-
|'skuId'
|
|
543
|
-
|'attributeId'
|
|
544
|
-
|'valueId'
|
|
545
|
-
|'skus.attributes.attribute.id'
|
|
546
|
-
|'skus.attributes.attribute.createdAt'
|
|
547
|
-
|'skus.attributes.attribute.updatedAt'
|
|
548
|
-
|'skus.attributes.attribute.createdBy'
|
|
549
|
-
|'skus.attributes.attribute.updatedBy'
|
|
550
|
-
|'skus.attributes.attribute.name'
|
|
551
|
-
|'skus.attributes.attribute.values.id'
|
|
552
|
-
|'skus.attributes.attribute.values.createdAt'
|
|
553
|
-
|'skus.attributes.attribute.values.updatedAt'
|
|
554
|
-
|'skus.attributes.attribute.values.createdBy'
|
|
555
|
-
|'skus.attributes.attribute.values.updatedBy'
|
|
556
|
-
|'skus.attributes.attribute.values.name'
|
|
557
|
-
|'attributeId'
|
|
558
|
-
|'skus.attributes.attribute.values.skuAttributeValues.id'
|
|
559
|
-
|'skus.attributes.attribute.values.skuAttributeValues.createdAt'
|
|
560
|
-
|'skus.attributes.attribute.values.skuAttributeValues.updatedAt'
|
|
561
|
-
|'skus.attributes.attribute.values.skuAttributeValues.createdBy'
|
|
562
|
-
|'skus.attributes.attribute.values.skuAttributeValues.updatedBy'
|
|
563
|
-
|'skuId'
|
|
564
|
-
|'attributeId'
|
|
565
|
-
|'valueId'
|
|
566
|
-
|'skus.attributes.attribute.skuAttributes.id'
|
|
567
|
-
|'skus.attributes.attribute.skuAttributes.createdAt'
|
|
568
|
-
|'skus.attributes.attribute.skuAttributes.updatedAt'
|
|
569
|
-
|'skus.attributes.attribute.skuAttributes.createdBy'
|
|
570
|
-
|'skus.attributes.attribute.skuAttributes.updatedBy'
|
|
571
|
-
|'skuId'
|
|
572
|
-
|'attributeId'
|
|
573
|
-
|'valueId'
|
|
574
|
-
|'skus.attributes.value.id'
|
|
575
|
-
|'skus.attributes.value.createdAt'
|
|
576
|
-
|'skus.attributes.value.updatedAt'
|
|
577
|
-
|'skus.attributes.value.createdBy'
|
|
578
|
-
|'skus.attributes.value.updatedBy'
|
|
579
|
-
|'skus.attributes.value.name'
|
|
580
|
-
|'attributeId'
|
|
581
|
-
|'skus.attributes.value.attribute.id'
|
|
582
|
-
|'skus.attributes.value.attribute.createdAt'
|
|
583
|
-
|'skus.attributes.value.attribute.updatedAt'
|
|
584
|
-
|'skus.attributes.value.attribute.createdBy'
|
|
585
|
-
|'skus.attributes.value.attribute.updatedBy'
|
|
586
|
-
|'skus.attributes.value.attribute.name'
|
|
587
|
-
|'skus.attributes.value.attribute.values.id'
|
|
588
|
-
|'skus.attributes.value.attribute.values.createdAt'
|
|
589
|
-
|'skus.attributes.value.attribute.values.updatedAt'
|
|
590
|
-
|'skus.attributes.value.attribute.values.createdBy'
|
|
591
|
-
|'skus.attributes.value.attribute.values.updatedBy'
|
|
592
|
-
|'skus.attributes.value.attribute.values.name'
|
|
593
|
-
|'attributeId'
|
|
594
|
-
|'skus.attributes.value.attribute.skuAttributes.id'
|
|
595
|
-
|'skus.attributes.value.attribute.skuAttributes.createdAt'
|
|
596
|
-
|'skus.attributes.value.attribute.skuAttributes.updatedAt'
|
|
597
|
-
|'skus.attributes.value.attribute.skuAttributes.createdBy'
|
|
598
|
-
|'skus.attributes.value.attribute.skuAttributes.updatedBy'
|
|
599
|
-
|'skuId'
|
|
600
|
-
|'attributeId'
|
|
601
|
-
|'valueId'
|
|
602
|
-
|'skus.attributes.value.skuAttributeValues.id'
|
|
603
|
-
|'skus.attributes.value.skuAttributeValues.createdAt'
|
|
604
|
-
|'skus.attributes.value.skuAttributeValues.updatedAt'
|
|
605
|
-
|'skus.attributes.value.skuAttributeValues.createdBy'
|
|
606
|
-
|'skus.attributes.value.skuAttributeValues.updatedBy'
|
|
607
|
-
|'skuId'
|
|
608
|
-
|'attributeId'
|
|
609
|
-
|'valueId',
|
|
610
|
-
ProductRule>;
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* OrderByField
|
|
614
|
-
*/
|
|
615
|
-
declare type ProductOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name" | "description";
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* rule
|
|
619
|
-
*/
|
|
620
|
-
declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
|
|
621
|
-
| DateRules<OrderItem, 'createdAt'>
|
|
622
|
-
| DateRules<OrderItem, 'updatedAt'>
|
|
623
|
-
| StringRules<OrderItem, 'createdBy'>
|
|
624
|
-
| StringRules<OrderItem, 'updatedBy'>
|
|
625
|
-
| StringRules<OrderItem, 'productName'>
|
|
626
|
-
| NumberRules<OrderItem, 'quantity'>
|
|
627
|
-
| NumberRules<OrderItem, 'price'>
|
|
628
|
-
| UUIDRules<OrderItem, 'orderId'>
|
|
629
|
-
| RelationExistsRules<'order', OrderRuleGroup>
|
|
630
|
-
| RelationUUIDRules<'order.id', UUID>
|
|
631
|
-
| RelationDateRules<'order.createdAt', Date>
|
|
632
|
-
| RelationDateRules<'order.updatedAt', Date>
|
|
633
|
-
| RelationStringRules<'order.createdBy', string | null>
|
|
634
|
-
| RelationStringRules<'order.updatedBy', string | null>
|
|
635
|
-
| RelationStringRules<'order.number', string>
|
|
636
|
-
| RelationNumberRules<'order.amount', number>
|
|
637
|
-
| UUIDRules<Order, 'ownerId'>
|
|
638
|
-
| RelationUUIDRules<'order.owner.id', UUID>
|
|
639
|
-
| RelationDateRules<'order.owner.createdAt', Date>
|
|
640
|
-
| RelationDateRules<'order.owner.updatedAt', Date>
|
|
641
|
-
| RelationStringRules<'order.owner.createdBy', string | null>
|
|
642
|
-
| RelationStringRules<'order.owner.updatedBy', string | null>
|
|
643
|
-
| RelationStringRules<'order.owner.name', string>
|
|
644
|
-
| RelationBooleanRules<'order.owner.married', boolean>
|
|
645
|
-
| RelationNumberRules<'order.owner.age', number>
|
|
646
|
-
| RelationStringRules<'order.owner.gender', string | null>
|
|
647
|
-
| UUIDRules<User, 'idCardId'>
|
|
648
|
-
| RelationUUIDRules<'order.owner.idCard.id', UUID>
|
|
649
|
-
| RelationDateRules<'order.owner.idCard.createdAt', Date>
|
|
650
|
-
| RelationDateRules<'order.owner.idCard.updatedAt', Date>
|
|
651
|
-
| RelationStringRules<'order.owner.idCard.createdBy', string | null>
|
|
652
|
-
| RelationStringRules<'order.owner.idCard.updatedBy', string | null>
|
|
653
|
-
| RelationStringRules<'order.owner.idCard.code', string>
|
|
654
|
-
| UUIDRules<IdCard, 'ownerId'>
|
|
655
|
-
| RelationUUIDRules<'order.owner.idCard.owner.id', UUID>
|
|
656
|
-
| RelationDateRules<'order.owner.idCard.owner.createdAt', Date>
|
|
657
|
-
| RelationDateRules<'order.owner.idCard.owner.updatedAt', Date>
|
|
658
|
-
| RelationStringRules<'order.owner.idCard.owner.createdBy', string | null>
|
|
659
|
-
| RelationStringRules<'order.owner.idCard.owner.updatedBy', string | null>
|
|
660
|
-
| RelationStringRules<'order.owner.idCard.owner.name', string>
|
|
661
|
-
| RelationBooleanRules<'order.owner.idCard.owner.married', boolean>
|
|
662
|
-
| RelationNumberRules<'order.owner.idCard.owner.age', number>
|
|
663
|
-
| RelationStringRules<'order.owner.idCard.owner.gender', string | null>
|
|
664
|
-
| RelationUUIDRules<'order.owner.orders.id', UUID>
|
|
665
|
-
| RelationDateRules<'order.owner.orders.createdAt', Date>
|
|
666
|
-
| RelationDateRules<'order.owner.orders.updatedAt', Date>
|
|
667
|
-
| RelationStringRules<'order.owner.orders.createdBy', string | null>
|
|
668
|
-
| RelationStringRules<'order.owner.orders.updatedBy', string | null>
|
|
669
|
-
| RelationStringRules<'order.owner.orders.number', string>
|
|
670
|
-
| RelationNumberRules<'order.owner.orders.amount', number>
|
|
671
|
-
| RelationExistsRules<'categories', CategoryRuleGroup>
|
|
672
|
-
| RelationUUIDRules<'categories.id', UUID>
|
|
673
|
-
| RelationDateRules<'categories.createdAt', Date>
|
|
674
|
-
| RelationDateRules<'categories.updatedAt', Date>
|
|
675
|
-
| RelationStringRules<'categories.createdBy', string | null>
|
|
676
|
-
| RelationStringRules<'categories.updatedBy', string | null>
|
|
677
|
-
| RelationStringRules<'categories.name', string>;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* RuleGroupBase
|
|
681
|
-
*/
|
|
682
|
-
export declare type OrderItemRuleGroup = RuleGroupBase<typeof OrderItem,
|
|
683
|
-
|'id'
|
|
684
|
-
|'createdAt'
|
|
685
|
-
|'updatedAt'
|
|
686
|
-
|'createdBy'
|
|
687
|
-
|'updatedBy'
|
|
688
|
-
|'productName'
|
|
689
|
-
|'quantity'
|
|
690
|
-
|'price'
|
|
691
|
-
|'orderId'
|
|
692
|
-
|'order'
|
|
693
|
-
|'order.id'
|
|
694
|
-
|'order.createdAt'
|
|
695
|
-
|'order.updatedAt'
|
|
696
|
-
|'order.createdBy'
|
|
697
|
-
|'order.updatedBy'
|
|
698
|
-
|'order.number'
|
|
699
|
-
|'order.amount'
|
|
700
|
-
|'ownerId'
|
|
701
|
-
|'order.owner.id'
|
|
702
|
-
|'order.owner.createdAt'
|
|
703
|
-
|'order.owner.updatedAt'
|
|
704
|
-
|'order.owner.createdBy'
|
|
705
|
-
|'order.owner.updatedBy'
|
|
706
|
-
|'order.owner.name'
|
|
707
|
-
|'order.owner.married'
|
|
708
|
-
|'order.owner.age'
|
|
709
|
-
|'order.owner.gender'
|
|
710
|
-
|'idCardId'
|
|
711
|
-
|'order.owner.idCard.id'
|
|
712
|
-
|'order.owner.idCard.createdAt'
|
|
713
|
-
|'order.owner.idCard.updatedAt'
|
|
714
|
-
|'order.owner.idCard.createdBy'
|
|
715
|
-
|'order.owner.idCard.updatedBy'
|
|
716
|
-
|'order.owner.idCard.code'
|
|
717
|
-
|'ownerId'
|
|
718
|
-
|'order.owner.idCard.owner.id'
|
|
719
|
-
|'order.owner.idCard.owner.createdAt'
|
|
720
|
-
|'order.owner.idCard.owner.updatedAt'
|
|
721
|
-
|'order.owner.idCard.owner.createdBy'
|
|
722
|
-
|'order.owner.idCard.owner.updatedBy'
|
|
723
|
-
|'order.owner.idCard.owner.name'
|
|
724
|
-
|'order.owner.idCard.owner.married'
|
|
725
|
-
|'order.owner.idCard.owner.age'
|
|
726
|
-
|'order.owner.idCard.owner.gender'
|
|
727
|
-
|'idCardId'
|
|
728
|
-
|'order.owner.orders.id'
|
|
729
|
-
|'order.owner.orders.createdAt'
|
|
730
|
-
|'order.owner.orders.updatedAt'
|
|
731
|
-
|'order.owner.orders.createdBy'
|
|
732
|
-
|'order.owner.orders.updatedBy'
|
|
733
|
-
|'order.owner.orders.number'
|
|
734
|
-
|'order.owner.orders.amount'
|
|
735
|
-
|'ownerId'
|
|
736
|
-
|'categories'
|
|
737
|
-
|'categories.id'
|
|
738
|
-
|'categories.createdAt'
|
|
739
|
-
|'categories.updatedAt'
|
|
740
|
-
|'categories.createdBy'
|
|
741
|
-
|'categories.updatedBy'
|
|
742
|
-
|'categories.name',
|
|
743
|
-
OrderItemRule>;
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* OrderByField
|
|
747
|
-
*/
|
|
748
|
-
declare type OrderItemOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "productName" | "quantity" | "price";
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* rule
|
|
752
|
-
*/
|
|
753
|
-
declare type OrderRule = UUIDRules<Order, 'id'>
|
|
754
|
-
| DateRules<Order, 'createdAt'>
|
|
755
|
-
| DateRules<Order, 'updatedAt'>
|
|
756
|
-
| StringRules<Order, 'createdBy'>
|
|
757
|
-
| StringRules<Order, 'updatedBy'>
|
|
758
|
-
| StringRules<Order, 'number'>
|
|
759
|
-
| NumberRules<Order, 'amount'>
|
|
760
|
-
| UUIDRules<Order, 'ownerId'>
|
|
761
|
-
| RelationExistsRules<'owner', UserRuleGroup>
|
|
762
|
-
| RelationUUIDRules<'owner.id', UUID>
|
|
763
|
-
| RelationDateRules<'owner.createdAt', Date>
|
|
764
|
-
| RelationDateRules<'owner.updatedAt', Date>
|
|
765
|
-
| RelationStringRules<'owner.createdBy', string | null>
|
|
766
|
-
| RelationStringRules<'owner.updatedBy', string | null>
|
|
767
|
-
| RelationStringRules<'owner.name', string>
|
|
768
|
-
| RelationBooleanRules<'owner.married', boolean>
|
|
769
|
-
| RelationNumberRules<'owner.age', number>
|
|
770
|
-
| RelationStringRules<'owner.gender', string | null>
|
|
771
|
-
| UUIDRules<User, 'idCardId'>
|
|
772
|
-
| RelationUUIDRules<'owner.idCard.id', UUID>
|
|
773
|
-
| RelationDateRules<'owner.idCard.createdAt', Date>
|
|
774
|
-
| RelationDateRules<'owner.idCard.updatedAt', Date>
|
|
775
|
-
| RelationStringRules<'owner.idCard.createdBy', string | null>
|
|
776
|
-
| RelationStringRules<'owner.idCard.updatedBy', string | null>
|
|
777
|
-
| RelationStringRules<'owner.idCard.code', string>
|
|
778
|
-
| UUIDRules<IdCard, 'ownerId'>
|
|
779
|
-
| RelationUUIDRules<'owner.idCard.owner.id', UUID>
|
|
780
|
-
| RelationDateRules<'owner.idCard.owner.createdAt', Date>
|
|
781
|
-
| RelationDateRules<'owner.idCard.owner.updatedAt', Date>
|
|
782
|
-
| RelationStringRules<'owner.idCard.owner.createdBy', string | null>
|
|
783
|
-
| RelationStringRules<'owner.idCard.owner.updatedBy', string | null>
|
|
784
|
-
| RelationStringRules<'owner.idCard.owner.name', string>
|
|
785
|
-
| RelationBooleanRules<'owner.idCard.owner.married', boolean>
|
|
786
|
-
| RelationNumberRules<'owner.idCard.owner.age', number>
|
|
787
|
-
| RelationStringRules<'owner.idCard.owner.gender', string | null>
|
|
788
|
-
| RelationExistsRules<'items', OrderItemRuleGroup>
|
|
789
|
-
| RelationUUIDRules<'items.id', UUID>
|
|
790
|
-
| RelationDateRules<'items.createdAt', Date>
|
|
791
|
-
| RelationDateRules<'items.updatedAt', Date>
|
|
792
|
-
| RelationStringRules<'items.createdBy', string | null>
|
|
793
|
-
| RelationStringRules<'items.updatedBy', string | null>
|
|
794
|
-
| RelationStringRules<'items.productName', string>
|
|
795
|
-
| RelationNumberRules<'items.quantity', number>
|
|
796
|
-
| RelationNumberRules<'items.price', number>
|
|
797
|
-
| UUIDRules<OrderItem, 'orderId'>
|
|
798
|
-
| RelationUUIDRules<'items.categories.id', UUID>
|
|
799
|
-
| RelationDateRules<'items.categories.createdAt', Date>
|
|
800
|
-
| RelationDateRules<'items.categories.updatedAt', Date>
|
|
801
|
-
| RelationStringRules<'items.categories.createdBy', string | null>
|
|
802
|
-
| RelationStringRules<'items.categories.updatedBy', string | null>
|
|
803
|
-
| RelationStringRules<'items.categories.name', string>;
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* RuleGroupBase
|
|
807
|
-
*/
|
|
808
|
-
export declare type OrderRuleGroup = RuleGroupBase<typeof Order,
|
|
809
|
-
|'id'
|
|
810
|
-
|'createdAt'
|
|
811
|
-
|'updatedAt'
|
|
812
|
-
|'createdBy'
|
|
813
|
-
|'updatedBy'
|
|
814
|
-
|'number'
|
|
815
|
-
|'amount'
|
|
816
|
-
|'ownerId'
|
|
817
|
-
|'owner'
|
|
818
|
-
|'owner.id'
|
|
819
|
-
|'owner.createdAt'
|
|
820
|
-
|'owner.updatedAt'
|
|
821
|
-
|'owner.createdBy'
|
|
822
|
-
|'owner.updatedBy'
|
|
823
|
-
|'owner.name'
|
|
824
|
-
|'owner.married'
|
|
825
|
-
|'owner.age'
|
|
826
|
-
|'owner.gender'
|
|
827
|
-
|'idCardId'
|
|
828
|
-
|'owner.idCard.id'
|
|
829
|
-
|'owner.idCard.createdAt'
|
|
830
|
-
|'owner.idCard.updatedAt'
|
|
831
|
-
|'owner.idCard.createdBy'
|
|
832
|
-
|'owner.idCard.updatedBy'
|
|
833
|
-
|'owner.idCard.code'
|
|
834
|
-
|'ownerId'
|
|
835
|
-
|'owner.idCard.owner.id'
|
|
836
|
-
|'owner.idCard.owner.createdAt'
|
|
837
|
-
|'owner.idCard.owner.updatedAt'
|
|
838
|
-
|'owner.idCard.owner.createdBy'
|
|
839
|
-
|'owner.idCard.owner.updatedBy'
|
|
840
|
-
|'owner.idCard.owner.name'
|
|
841
|
-
|'owner.idCard.owner.married'
|
|
842
|
-
|'owner.idCard.owner.age'
|
|
843
|
-
|'owner.idCard.owner.gender'
|
|
844
|
-
|'idCardId'
|
|
845
|
-
|'items'
|
|
846
|
-
|'items.id'
|
|
847
|
-
|'items.createdAt'
|
|
848
|
-
|'items.updatedAt'
|
|
849
|
-
|'items.createdBy'
|
|
850
|
-
|'items.updatedBy'
|
|
851
|
-
|'items.productName'
|
|
852
|
-
|'items.quantity'
|
|
853
|
-
|'items.price'
|
|
854
|
-
|'orderId'
|
|
855
|
-
|'items.categories.id'
|
|
856
|
-
|'items.categories.createdAt'
|
|
857
|
-
|'items.categories.updatedAt'
|
|
858
|
-
|'items.categories.createdBy'
|
|
859
|
-
|'items.categories.updatedBy'
|
|
860
|
-
|'items.categories.name',
|
|
861
|
-
OrderRule>;
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* OrderByField
|
|
865
|
-
*/
|
|
866
|
-
declare type OrderOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "number" | "amount";
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* rule
|
|
870
|
-
*/
|
|
871
|
-
declare type IdCardRule = UUIDRules<IdCard, 'id'>
|
|
872
|
-
| DateRules<IdCard, 'createdAt'>
|
|
873
|
-
| DateRules<IdCard, 'updatedAt'>
|
|
874
|
-
| StringRules<IdCard, 'createdBy'>
|
|
875
|
-
| StringRules<IdCard, 'updatedBy'>
|
|
876
|
-
| StringRules<IdCard, 'code'>
|
|
877
|
-
| UUIDRules<IdCard, 'ownerId'>
|
|
878
|
-
| RelationExistsRules<'owner', UserRuleGroup>
|
|
879
|
-
| RelationUUIDRules<'owner.id', UUID>
|
|
880
|
-
| RelationDateRules<'owner.createdAt', Date>
|
|
881
|
-
| RelationDateRules<'owner.updatedAt', Date>
|
|
882
|
-
| RelationStringRules<'owner.createdBy', string | null>
|
|
883
|
-
| RelationStringRules<'owner.updatedBy', string | null>
|
|
884
|
-
| RelationStringRules<'owner.name', string>
|
|
885
|
-
| RelationBooleanRules<'owner.married', boolean>
|
|
886
|
-
| RelationNumberRules<'owner.age', number>
|
|
887
|
-
| RelationStringRules<'owner.gender', string | null>
|
|
888
|
-
| UUIDRules<User, 'idCardId'>
|
|
889
|
-
| RelationUUIDRules<'owner.orders.id', UUID>
|
|
890
|
-
| RelationDateRules<'owner.orders.createdAt', Date>
|
|
891
|
-
| RelationDateRules<'owner.orders.updatedAt', Date>
|
|
892
|
-
| RelationStringRules<'owner.orders.createdBy', string | null>
|
|
893
|
-
| RelationStringRules<'owner.orders.updatedBy', string | null>
|
|
894
|
-
| RelationStringRules<'owner.orders.number', string>
|
|
895
|
-
| RelationNumberRules<'owner.orders.amount', number>
|
|
896
|
-
| UUIDRules<Order, 'ownerId'>
|
|
897
|
-
| RelationUUIDRules<'owner.orders.items.id', UUID>
|
|
898
|
-
| RelationDateRules<'owner.orders.items.createdAt', Date>
|
|
899
|
-
| RelationDateRules<'owner.orders.items.updatedAt', Date>
|
|
900
|
-
| RelationStringRules<'owner.orders.items.createdBy', string | null>
|
|
901
|
-
| RelationStringRules<'owner.orders.items.updatedBy', string | null>
|
|
902
|
-
| RelationStringRules<'owner.orders.items.productName', string>
|
|
903
|
-
| RelationNumberRules<'owner.orders.items.quantity', number>
|
|
904
|
-
| RelationNumberRules<'owner.orders.items.price', number>
|
|
905
|
-
| UUIDRules<OrderItem, 'orderId'>
|
|
906
|
-
| RelationUUIDRules<'owner.orders.items.categories.id', UUID>
|
|
907
|
-
| RelationDateRules<'owner.orders.items.categories.createdAt', Date>
|
|
908
|
-
| RelationDateRules<'owner.orders.items.categories.updatedAt', Date>
|
|
909
|
-
| RelationStringRules<'owner.orders.items.categories.createdBy', string | null>
|
|
910
|
-
| RelationStringRules<'owner.orders.items.categories.updatedBy', string | null>
|
|
911
|
-
| RelationStringRules<'owner.orders.items.categories.name', string>;
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* RuleGroupBase
|
|
915
|
-
*/
|
|
916
|
-
export declare type IdCardRuleGroup = RuleGroupBase<typeof IdCard,
|
|
917
|
-
|'id'
|
|
918
|
-
|'createdAt'
|
|
919
|
-
|'updatedAt'
|
|
920
|
-
|'createdBy'
|
|
921
|
-
|'updatedBy'
|
|
922
|
-
|'code'
|
|
923
|
-
|'ownerId'
|
|
924
|
-
|'owner'
|
|
925
|
-
|'owner.id'
|
|
926
|
-
|'owner.createdAt'
|
|
927
|
-
|'owner.updatedAt'
|
|
928
|
-
|'owner.createdBy'
|
|
929
|
-
|'owner.updatedBy'
|
|
930
|
-
|'owner.name'
|
|
931
|
-
|'owner.married'
|
|
932
|
-
|'owner.age'
|
|
933
|
-
|'owner.gender'
|
|
934
|
-
|'idCardId'
|
|
935
|
-
|'owner.orders.id'
|
|
936
|
-
|'owner.orders.createdAt'
|
|
937
|
-
|'owner.orders.updatedAt'
|
|
938
|
-
|'owner.orders.createdBy'
|
|
939
|
-
|'owner.orders.updatedBy'
|
|
940
|
-
|'owner.orders.number'
|
|
941
|
-
|'owner.orders.amount'
|
|
942
|
-
|'ownerId'
|
|
943
|
-
|'owner.orders.items.id'
|
|
944
|
-
|'owner.orders.items.createdAt'
|
|
945
|
-
|'owner.orders.items.updatedAt'
|
|
946
|
-
|'owner.orders.items.createdBy'
|
|
947
|
-
|'owner.orders.items.updatedBy'
|
|
948
|
-
|'owner.orders.items.productName'
|
|
949
|
-
|'owner.orders.items.quantity'
|
|
950
|
-
|'owner.orders.items.price'
|
|
951
|
-
|'orderId'
|
|
952
|
-
|'owner.orders.items.categories.id'
|
|
953
|
-
|'owner.orders.items.categories.createdAt'
|
|
954
|
-
|'owner.orders.items.categories.updatedAt'
|
|
955
|
-
|'owner.orders.items.categories.createdBy'
|
|
956
|
-
|'owner.orders.items.categories.updatedBy'
|
|
957
|
-
|'owner.orders.items.categories.name',
|
|
958
|
-
IdCardRule>;
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* OrderByField
|
|
962
|
-
*/
|
|
963
|
-
declare type IdCardOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "code";
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* rule
|
|
967
|
-
*/
|
|
968
|
-
declare type CategoryRule = UUIDRules<Category, 'id'>
|
|
969
|
-
| DateRules<Category, 'createdAt'>
|
|
970
|
-
| DateRules<Category, 'updatedAt'>
|
|
971
|
-
| StringRules<Category, 'createdBy'>
|
|
972
|
-
| StringRules<Category, 'updatedBy'>
|
|
973
|
-
| StringRules<Category, 'name'>
|
|
974
|
-
| RelationExistsRules<'orderItems', OrderItemRuleGroup>
|
|
975
|
-
| RelationUUIDRules<'orderItems.id', UUID>
|
|
976
|
-
| RelationDateRules<'orderItems.createdAt', Date>
|
|
977
|
-
| RelationDateRules<'orderItems.updatedAt', Date>
|
|
978
|
-
| RelationStringRules<'orderItems.createdBy', string | null>
|
|
979
|
-
| RelationStringRules<'orderItems.updatedBy', string | null>
|
|
980
|
-
| RelationStringRules<'orderItems.productName', string>
|
|
981
|
-
| RelationNumberRules<'orderItems.quantity', number>
|
|
982
|
-
| RelationNumberRules<'orderItems.price', number>
|
|
983
|
-
| UUIDRules<OrderItem, 'orderId'>
|
|
984
|
-
| RelationUUIDRules<'orderItems.order.id', UUID>
|
|
985
|
-
| RelationDateRules<'orderItems.order.createdAt', Date>
|
|
986
|
-
| RelationDateRules<'orderItems.order.updatedAt', Date>
|
|
987
|
-
| RelationStringRules<'orderItems.order.createdBy', string | null>
|
|
988
|
-
| RelationStringRules<'orderItems.order.updatedBy', string | null>
|
|
989
|
-
| RelationStringRules<'orderItems.order.number', string>
|
|
990
|
-
| RelationNumberRules<'orderItems.order.amount', number>
|
|
991
|
-
| UUIDRules<Order, 'ownerId'>
|
|
992
|
-
| RelationUUIDRules<'orderItems.order.owner.id', UUID>
|
|
993
|
-
| RelationDateRules<'orderItems.order.owner.createdAt', Date>
|
|
994
|
-
| RelationDateRules<'orderItems.order.owner.updatedAt', Date>
|
|
995
|
-
| RelationStringRules<'orderItems.order.owner.createdBy', string | null>
|
|
996
|
-
| RelationStringRules<'orderItems.order.owner.updatedBy', string | null>
|
|
997
|
-
| RelationStringRules<'orderItems.order.owner.name', string>
|
|
998
|
-
| RelationBooleanRules<'orderItems.order.owner.married', boolean>
|
|
999
|
-
| RelationNumberRules<'orderItems.order.owner.age', number>
|
|
1000
|
-
| RelationStringRules<'orderItems.order.owner.gender', string | null>
|
|
1001
|
-
| UUIDRules<User, 'idCardId'>
|
|
1002
|
-
| RelationUUIDRules<'orderItems.order.owner.idCard.id', UUID>
|
|
1003
|
-
| RelationDateRules<'orderItems.order.owner.idCard.createdAt', Date>
|
|
1004
|
-
| RelationDateRules<'orderItems.order.owner.idCard.updatedAt', Date>
|
|
1005
|
-
| RelationStringRules<'orderItems.order.owner.idCard.createdBy', string | null>
|
|
1006
|
-
| RelationStringRules<'orderItems.order.owner.idCard.updatedBy', string | null>
|
|
1007
|
-
| RelationStringRules<'orderItems.order.owner.idCard.code', string>
|
|
1008
|
-
| UUIDRules<IdCard, 'ownerId'>
|
|
1009
|
-
| RelationUUIDRules<'orderItems.order.owner.idCard.owner.id', UUID>
|
|
1010
|
-
| RelationDateRules<'orderItems.order.owner.idCard.owner.createdAt', Date>
|
|
1011
|
-
| RelationDateRules<'orderItems.order.owner.idCard.owner.updatedAt', Date>
|
|
1012
|
-
| RelationStringRules<'orderItems.order.owner.idCard.owner.createdBy', string | null>
|
|
1013
|
-
| RelationStringRules<'orderItems.order.owner.idCard.owner.updatedBy', string | null>
|
|
1014
|
-
| RelationStringRules<'orderItems.order.owner.idCard.owner.name', string>
|
|
1015
|
-
| RelationBooleanRules<'orderItems.order.owner.idCard.owner.married', boolean>
|
|
1016
|
-
| RelationNumberRules<'orderItems.order.owner.idCard.owner.age', number>
|
|
1017
|
-
| RelationStringRules<'orderItems.order.owner.idCard.owner.gender', string | null>
|
|
1018
|
-
| RelationUUIDRules<'orderItems.order.owner.orders.id', UUID>
|
|
1019
|
-
| RelationDateRules<'orderItems.order.owner.orders.createdAt', Date>
|
|
1020
|
-
| RelationDateRules<'orderItems.order.owner.orders.updatedAt', Date>
|
|
1021
|
-
| RelationStringRules<'orderItems.order.owner.orders.createdBy', string | null>
|
|
1022
|
-
| RelationStringRules<'orderItems.order.owner.orders.updatedBy', string | null>
|
|
1023
|
-
| RelationStringRules<'orderItems.order.owner.orders.number', string>
|
|
1024
|
-
| RelationNumberRules<'orderItems.order.owner.orders.amount', number>
|
|
1025
|
-
| RelationUUIDRules<'orderItems.order.items.id', UUID>
|
|
1026
|
-
| RelationDateRules<'orderItems.order.items.createdAt', Date>
|
|
1027
|
-
| RelationDateRules<'orderItems.order.items.updatedAt', Date>
|
|
1028
|
-
| RelationStringRules<'orderItems.order.items.createdBy', string | null>
|
|
1029
|
-
| RelationStringRules<'orderItems.order.items.updatedBy', string | null>
|
|
1030
|
-
| RelationStringRules<'orderItems.order.items.productName', string>
|
|
1031
|
-
| RelationNumberRules<'orderItems.order.items.quantity', number>
|
|
1032
|
-
| RelationNumberRules<'orderItems.order.items.price', number>;
|
|
1033
|
-
|
|
1034
|
-
/**
|
|
1035
|
-
* RuleGroupBase
|
|
1036
|
-
*/
|
|
1037
|
-
export declare type CategoryRuleGroup = RuleGroupBase<typeof Category,
|
|
1038
|
-
|'id'
|
|
1039
|
-
|'createdAt'
|
|
1040
|
-
|'updatedAt'
|
|
1041
|
-
|'createdBy'
|
|
1042
|
-
|'updatedBy'
|
|
1043
|
-
|'name'
|
|
1044
|
-
|'orderItems'
|
|
1045
|
-
|'orderItems.id'
|
|
1046
|
-
|'orderItems.createdAt'
|
|
1047
|
-
|'orderItems.updatedAt'
|
|
1048
|
-
|'orderItems.createdBy'
|
|
1049
|
-
|'orderItems.updatedBy'
|
|
1050
|
-
|'orderItems.productName'
|
|
1051
|
-
|'orderItems.quantity'
|
|
1052
|
-
|'orderItems.price'
|
|
1053
|
-
|'orderId'
|
|
1054
|
-
|'orderItems.order.id'
|
|
1055
|
-
|'orderItems.order.createdAt'
|
|
1056
|
-
|'orderItems.order.updatedAt'
|
|
1057
|
-
|'orderItems.order.createdBy'
|
|
1058
|
-
|'orderItems.order.updatedBy'
|
|
1059
|
-
|'orderItems.order.number'
|
|
1060
|
-
|'orderItems.order.amount'
|
|
1061
|
-
|'ownerId'
|
|
1062
|
-
|'orderItems.order.owner.id'
|
|
1063
|
-
|'orderItems.order.owner.createdAt'
|
|
1064
|
-
|'orderItems.order.owner.updatedAt'
|
|
1065
|
-
|'orderItems.order.owner.createdBy'
|
|
1066
|
-
|'orderItems.order.owner.updatedBy'
|
|
1067
|
-
|'orderItems.order.owner.name'
|
|
1068
|
-
|'orderItems.order.owner.married'
|
|
1069
|
-
|'orderItems.order.owner.age'
|
|
1070
|
-
|'orderItems.order.owner.gender'
|
|
1071
|
-
|'idCardId'
|
|
1072
|
-
|'orderItems.order.owner.idCard.id'
|
|
1073
|
-
|'orderItems.order.owner.idCard.createdAt'
|
|
1074
|
-
|'orderItems.order.owner.idCard.updatedAt'
|
|
1075
|
-
|'orderItems.order.owner.idCard.createdBy'
|
|
1076
|
-
|'orderItems.order.owner.idCard.updatedBy'
|
|
1077
|
-
|'orderItems.order.owner.idCard.code'
|
|
1078
|
-
|'ownerId'
|
|
1079
|
-
|'orderItems.order.owner.idCard.owner.id'
|
|
1080
|
-
|'orderItems.order.owner.idCard.owner.createdAt'
|
|
1081
|
-
|'orderItems.order.owner.idCard.owner.updatedAt'
|
|
1082
|
-
|'orderItems.order.owner.idCard.owner.createdBy'
|
|
1083
|
-
|'orderItems.order.owner.idCard.owner.updatedBy'
|
|
1084
|
-
|'orderItems.order.owner.idCard.owner.name'
|
|
1085
|
-
|'orderItems.order.owner.idCard.owner.married'
|
|
1086
|
-
|'orderItems.order.owner.idCard.owner.age'
|
|
1087
|
-
|'orderItems.order.owner.idCard.owner.gender'
|
|
1088
|
-
|'idCardId'
|
|
1089
|
-
|'orderItems.order.owner.orders.id'
|
|
1090
|
-
|'orderItems.order.owner.orders.createdAt'
|
|
1091
|
-
|'orderItems.order.owner.orders.updatedAt'
|
|
1092
|
-
|'orderItems.order.owner.orders.createdBy'
|
|
1093
|
-
|'orderItems.order.owner.orders.updatedBy'
|
|
1094
|
-
|'orderItems.order.owner.orders.number'
|
|
1095
|
-
|'orderItems.order.owner.orders.amount'
|
|
1096
|
-
|'ownerId'
|
|
1097
|
-
|'orderItems.order.items.id'
|
|
1098
|
-
|'orderItems.order.items.createdAt'
|
|
1099
|
-
|'orderItems.order.items.updatedAt'
|
|
1100
|
-
|'orderItems.order.items.createdBy'
|
|
1101
|
-
|'orderItems.order.items.updatedBy'
|
|
1102
|
-
|'orderItems.order.items.productName'
|
|
1103
|
-
|'orderItems.order.items.quantity'
|
|
1104
|
-
|'orderItems.order.items.price'
|
|
1105
|
-
|'orderId',
|
|
1106
|
-
CategoryRule>;
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* OrderByField
|
|
1110
|
-
*/
|
|
1111
|
-
declare type CategoryOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name";
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* rule
|
|
1115
|
-
*/
|
|
1116
|
-
declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
1117
|
-
| DateRules<AttributeValue, 'createdAt'>
|
|
1118
|
-
| DateRules<AttributeValue, 'updatedAt'>
|
|
1119
|
-
| StringRules<AttributeValue, 'createdBy'>
|
|
1120
|
-
| StringRules<AttributeValue, 'updatedBy'>
|
|
1121
|
-
| StringRules<AttributeValue, 'name'>
|
|
1122
|
-
| UUIDRules<AttributeValue, 'attributeId'>
|
|
1123
|
-
| RelationExistsRules<'attribute', AttributeRuleGroup>
|
|
1124
|
-
| RelationUUIDRules<'attribute.id', UUID>
|
|
1125
|
-
| RelationDateRules<'attribute.createdAt', Date>
|
|
1126
|
-
| RelationDateRules<'attribute.updatedAt', Date>
|
|
1127
|
-
| RelationStringRules<'attribute.createdBy', string | null>
|
|
1128
|
-
| RelationStringRules<'attribute.updatedBy', string | null>
|
|
1129
|
-
| RelationStringRules<'attribute.name', string>
|
|
1130
|
-
| RelationUUIDRules<'attribute.skuAttributes.id', UUID>
|
|
1131
|
-
| RelationDateRules<'attribute.skuAttributes.createdAt', Date>
|
|
1132
|
-
| RelationDateRules<'attribute.skuAttributes.updatedAt', Date>
|
|
1133
|
-
| RelationStringRules<'attribute.skuAttributes.createdBy', string | null>
|
|
1134
|
-
| RelationStringRules<'attribute.skuAttributes.updatedBy', string | null>
|
|
1135
|
-
| UUIDRules<SKUAttributes, 'skuId'>
|
|
1136
|
-
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
1137
|
-
| UUIDRules<SKUAttributes, 'valueId'>
|
|
1138
|
-
| RelationUUIDRules<'attribute.skuAttributes.sku.id', UUID>
|
|
1139
|
-
| RelationDateRules<'attribute.skuAttributes.sku.createdAt', Date>
|
|
1140
|
-
| RelationDateRules<'attribute.skuAttributes.sku.updatedAt', Date>
|
|
1141
|
-
| RelationStringRules<'attribute.skuAttributes.sku.createdBy', string | null>
|
|
1142
|
-
| RelationStringRules<'attribute.skuAttributes.sku.updatedBy', string | null>
|
|
1143
|
-
| RelationStringRules<'attribute.skuAttributes.sku.code', string>
|
|
1144
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.price', number>
|
|
1145
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.stock', number>
|
|
1146
|
-
| UUIDRules<SKU, 'productId'>
|
|
1147
|
-
| RelationUUIDRules<'attribute.skuAttributes.sku.attributes.id', UUID>
|
|
1148
|
-
| RelationDateRules<'attribute.skuAttributes.sku.attributes.createdAt', Date>
|
|
1149
|
-
| RelationDateRules<'attribute.skuAttributes.sku.attributes.updatedAt', Date>
|
|
1150
|
-
| RelationStringRules<'attribute.skuAttributes.sku.attributes.createdBy', string | null>
|
|
1151
|
-
| RelationStringRules<'attribute.skuAttributes.sku.attributes.updatedBy', string | null>
|
|
1152
|
-
| RelationUUIDRules<'attribute.skuAttributes.sku.product.id', UUID>
|
|
1153
|
-
| RelationDateRules<'attribute.skuAttributes.sku.product.createdAt', Date>
|
|
1154
|
-
| RelationDateRules<'attribute.skuAttributes.sku.product.updatedAt', Date>
|
|
1155
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.createdBy', string | null>
|
|
1156
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.updatedBy', string | null>
|
|
1157
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.name', string>
|
|
1158
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.description', string | null>
|
|
1159
|
-
| RelationUUIDRules<'attribute.skuAttributes.sku.product.skus.id', UUID>
|
|
1160
|
-
| RelationDateRules<'attribute.skuAttributes.sku.product.skus.createdAt', Date>
|
|
1161
|
-
| RelationDateRules<'attribute.skuAttributes.sku.product.skus.updatedAt', Date>
|
|
1162
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.createdBy', string | null>
|
|
1163
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.updatedBy', string | null>
|
|
1164
|
-
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.code', string>
|
|
1165
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.price', number>
|
|
1166
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.stock', number>
|
|
1167
|
-
| RelationExistsRules<'skuAttributeValues', SKUAttributesRuleGroup>
|
|
1168
|
-
| RelationUUIDRules<'skuAttributeValues.id', UUID>
|
|
1169
|
-
| RelationDateRules<'skuAttributeValues.createdAt', Date>
|
|
1170
|
-
| RelationDateRules<'skuAttributeValues.updatedAt', Date>
|
|
1171
|
-
| RelationStringRules<'skuAttributeValues.createdBy', string | null>
|
|
1172
|
-
| RelationStringRules<'skuAttributeValues.updatedBy', string | null>
|
|
1173
|
-
| RelationUUIDRules<'skuAttributeValues.sku.id', UUID>
|
|
1174
|
-
| RelationDateRules<'skuAttributeValues.sku.createdAt', Date>
|
|
1175
|
-
| RelationDateRules<'skuAttributeValues.sku.updatedAt', Date>
|
|
1176
|
-
| RelationStringRules<'skuAttributeValues.sku.createdBy', string | null>
|
|
1177
|
-
| RelationStringRules<'skuAttributeValues.sku.updatedBy', string | null>
|
|
1178
|
-
| RelationStringRules<'skuAttributeValues.sku.code', string>
|
|
1179
|
-
| RelationNumberRules<'skuAttributeValues.sku.price', number>
|
|
1180
|
-
| RelationNumberRules<'skuAttributeValues.sku.stock', number>
|
|
1181
|
-
| RelationUUIDRules<'skuAttributeValues.sku.attributes.id', UUID>
|
|
1182
|
-
| RelationDateRules<'skuAttributeValues.sku.attributes.createdAt', Date>
|
|
1183
|
-
| RelationDateRules<'skuAttributeValues.sku.attributes.updatedAt', Date>
|
|
1184
|
-
| RelationStringRules<'skuAttributeValues.sku.attributes.createdBy', string | null>
|
|
1185
|
-
| RelationStringRules<'skuAttributeValues.sku.attributes.updatedBy', string | null>
|
|
1186
|
-
| RelationUUIDRules<'skuAttributeValues.sku.product.id', UUID>
|
|
1187
|
-
| RelationDateRules<'skuAttributeValues.sku.product.createdAt', Date>
|
|
1188
|
-
| RelationDateRules<'skuAttributeValues.sku.product.updatedAt', Date>
|
|
1189
|
-
| RelationStringRules<'skuAttributeValues.sku.product.createdBy', string | null>
|
|
1190
|
-
| RelationStringRules<'skuAttributeValues.sku.product.updatedBy', string | null>
|
|
1191
|
-
| RelationStringRules<'skuAttributeValues.sku.product.name', string>
|
|
1192
|
-
| RelationStringRules<'skuAttributeValues.sku.product.description', string | null>
|
|
1193
|
-
| RelationUUIDRules<'skuAttributeValues.sku.product.skus.id', UUID>
|
|
1194
|
-
| RelationDateRules<'skuAttributeValues.sku.product.skus.createdAt', Date>
|
|
1195
|
-
| RelationDateRules<'skuAttributeValues.sku.product.skus.updatedAt', Date>
|
|
1196
|
-
| RelationStringRules<'skuAttributeValues.sku.product.skus.createdBy', string | null>
|
|
1197
|
-
| RelationStringRules<'skuAttributeValues.sku.product.skus.updatedBy', string | null>
|
|
1198
|
-
| RelationStringRules<'skuAttributeValues.sku.product.skus.code', string>
|
|
1199
|
-
| RelationNumberRules<'skuAttributeValues.sku.product.skus.price', number>
|
|
1200
|
-
| RelationNumberRules<'skuAttributeValues.sku.product.skus.stock', number>
|
|
1201
|
-
| RelationUUIDRules<'skuAttributeValues.attribute.id', UUID>
|
|
1202
|
-
| RelationDateRules<'skuAttributeValues.attribute.createdAt', Date>
|
|
1203
|
-
| RelationDateRules<'skuAttributeValues.attribute.updatedAt', Date>
|
|
1204
|
-
| RelationStringRules<'skuAttributeValues.attribute.createdBy', string | null>
|
|
1205
|
-
| RelationStringRules<'skuAttributeValues.attribute.updatedBy', string | null>
|
|
1206
|
-
| RelationStringRules<'skuAttributeValues.attribute.name', string>
|
|
1207
|
-
| RelationUUIDRules<'skuAttributeValues.attribute.skuAttributes.id', UUID>
|
|
1208
|
-
| RelationDateRules<'skuAttributeValues.attribute.skuAttributes.createdAt', Date>
|
|
1209
|
-
| RelationDateRules<'skuAttributeValues.attribute.skuAttributes.updatedAt', Date>
|
|
1210
|
-
| RelationStringRules<'skuAttributeValues.attribute.skuAttributes.createdBy', string | null>
|
|
1211
|
-
| RelationStringRules<'skuAttributeValues.attribute.skuAttributes.updatedBy', string | null>;
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1214
|
-
* RuleGroupBase
|
|
1215
|
-
*/
|
|
1216
|
-
export declare type AttributeValueRuleGroup = RuleGroupBase<typeof AttributeValue,
|
|
1217
|
-
|'id'
|
|
1218
|
-
|'createdAt'
|
|
1219
|
-
|'updatedAt'
|
|
1220
|
-
|'createdBy'
|
|
1221
|
-
|'updatedBy'
|
|
1222
|
-
|'name'
|
|
1223
|
-
|'attributeId'
|
|
1224
|
-
|'attribute'
|
|
1225
|
-
|'attribute.id'
|
|
1226
|
-
|'attribute.createdAt'
|
|
1227
|
-
|'attribute.updatedAt'
|
|
1228
|
-
|'attribute.createdBy'
|
|
1229
|
-
|'attribute.updatedBy'
|
|
1230
|
-
|'attribute.name'
|
|
1231
|
-
|'attribute.skuAttributes.id'
|
|
1232
|
-
|'attribute.skuAttributes.createdAt'
|
|
1233
|
-
|'attribute.skuAttributes.updatedAt'
|
|
1234
|
-
|'attribute.skuAttributes.createdBy'
|
|
1235
|
-
|'attribute.skuAttributes.updatedBy'
|
|
1236
|
-
|'skuId'
|
|
1237
|
-
|'attributeId'
|
|
1238
|
-
|'valueId'
|
|
1239
|
-
|'attribute.skuAttributes.sku.id'
|
|
1240
|
-
|'attribute.skuAttributes.sku.createdAt'
|
|
1241
|
-
|'attribute.skuAttributes.sku.updatedAt'
|
|
1242
|
-
|'attribute.skuAttributes.sku.createdBy'
|
|
1243
|
-
|'attribute.skuAttributes.sku.updatedBy'
|
|
1244
|
-
|'attribute.skuAttributes.sku.code'
|
|
1245
|
-
|'attribute.skuAttributes.sku.price'
|
|
1246
|
-
|'attribute.skuAttributes.sku.stock'
|
|
1247
|
-
|'productId'
|
|
1248
|
-
|'attribute.skuAttributes.sku.attributes.id'
|
|
1249
|
-
|'attribute.skuAttributes.sku.attributes.createdAt'
|
|
1250
|
-
|'attribute.skuAttributes.sku.attributes.updatedAt'
|
|
1251
|
-
|'attribute.skuAttributes.sku.attributes.createdBy'
|
|
1252
|
-
|'attribute.skuAttributes.sku.attributes.updatedBy'
|
|
1253
|
-
|'skuId'
|
|
1254
|
-
|'attributeId'
|
|
1255
|
-
|'valueId'
|
|
1256
|
-
|'attribute.skuAttributes.sku.product.id'
|
|
1257
|
-
|'attribute.skuAttributes.sku.product.createdAt'
|
|
1258
|
-
|'attribute.skuAttributes.sku.product.updatedAt'
|
|
1259
|
-
|'attribute.skuAttributes.sku.product.createdBy'
|
|
1260
|
-
|'attribute.skuAttributes.sku.product.updatedBy'
|
|
1261
|
-
|'attribute.skuAttributes.sku.product.name'
|
|
1262
|
-
|'attribute.skuAttributes.sku.product.description'
|
|
1263
|
-
|'attribute.skuAttributes.sku.product.skus.id'
|
|
1264
|
-
|'attribute.skuAttributes.sku.product.skus.createdAt'
|
|
1265
|
-
|'attribute.skuAttributes.sku.product.skus.updatedAt'
|
|
1266
|
-
|'attribute.skuAttributes.sku.product.skus.createdBy'
|
|
1267
|
-
|'attribute.skuAttributes.sku.product.skus.updatedBy'
|
|
1268
|
-
|'attribute.skuAttributes.sku.product.skus.code'
|
|
1269
|
-
|'attribute.skuAttributes.sku.product.skus.price'
|
|
1270
|
-
|'attribute.skuAttributes.sku.product.skus.stock'
|
|
1271
|
-
|'productId'
|
|
1272
|
-
|'skuAttributeValues'
|
|
1273
|
-
|'skuAttributeValues.id'
|
|
1274
|
-
|'skuAttributeValues.createdAt'
|
|
1275
|
-
|'skuAttributeValues.updatedAt'
|
|
1276
|
-
|'skuAttributeValues.createdBy'
|
|
1277
|
-
|'skuAttributeValues.updatedBy'
|
|
1278
|
-
|'skuId'
|
|
1279
|
-
|'attributeId'
|
|
1280
|
-
|'valueId'
|
|
1281
|
-
|'skuAttributeValues.sku.id'
|
|
1282
|
-
|'skuAttributeValues.sku.createdAt'
|
|
1283
|
-
|'skuAttributeValues.sku.updatedAt'
|
|
1284
|
-
|'skuAttributeValues.sku.createdBy'
|
|
1285
|
-
|'skuAttributeValues.sku.updatedBy'
|
|
1286
|
-
|'skuAttributeValues.sku.code'
|
|
1287
|
-
|'skuAttributeValues.sku.price'
|
|
1288
|
-
|'skuAttributeValues.sku.stock'
|
|
1289
|
-
|'productId'
|
|
1290
|
-
|'skuAttributeValues.sku.attributes.id'
|
|
1291
|
-
|'skuAttributeValues.sku.attributes.createdAt'
|
|
1292
|
-
|'skuAttributeValues.sku.attributes.updatedAt'
|
|
1293
|
-
|'skuAttributeValues.sku.attributes.createdBy'
|
|
1294
|
-
|'skuAttributeValues.sku.attributes.updatedBy'
|
|
1295
|
-
|'skuId'
|
|
1296
|
-
|'attributeId'
|
|
1297
|
-
|'valueId'
|
|
1298
|
-
|'skuAttributeValues.sku.product.id'
|
|
1299
|
-
|'skuAttributeValues.sku.product.createdAt'
|
|
1300
|
-
|'skuAttributeValues.sku.product.updatedAt'
|
|
1301
|
-
|'skuAttributeValues.sku.product.createdBy'
|
|
1302
|
-
|'skuAttributeValues.sku.product.updatedBy'
|
|
1303
|
-
|'skuAttributeValues.sku.product.name'
|
|
1304
|
-
|'skuAttributeValues.sku.product.description'
|
|
1305
|
-
|'skuAttributeValues.sku.product.skus.id'
|
|
1306
|
-
|'skuAttributeValues.sku.product.skus.createdAt'
|
|
1307
|
-
|'skuAttributeValues.sku.product.skus.updatedAt'
|
|
1308
|
-
|'skuAttributeValues.sku.product.skus.createdBy'
|
|
1309
|
-
|'skuAttributeValues.sku.product.skus.updatedBy'
|
|
1310
|
-
|'skuAttributeValues.sku.product.skus.code'
|
|
1311
|
-
|'skuAttributeValues.sku.product.skus.price'
|
|
1312
|
-
|'skuAttributeValues.sku.product.skus.stock'
|
|
1313
|
-
|'productId'
|
|
1314
|
-
|'skuAttributeValues.attribute.id'
|
|
1315
|
-
|'skuAttributeValues.attribute.createdAt'
|
|
1316
|
-
|'skuAttributeValues.attribute.updatedAt'
|
|
1317
|
-
|'skuAttributeValues.attribute.createdBy'
|
|
1318
|
-
|'skuAttributeValues.attribute.updatedBy'
|
|
1319
|
-
|'skuAttributeValues.attribute.name'
|
|
1320
|
-
|'skuAttributeValues.attribute.skuAttributes.id'
|
|
1321
|
-
|'skuAttributeValues.attribute.skuAttributes.createdAt'
|
|
1322
|
-
|'skuAttributeValues.attribute.skuAttributes.updatedAt'
|
|
1323
|
-
|'skuAttributeValues.attribute.skuAttributes.createdBy'
|
|
1324
|
-
|'skuAttributeValues.attribute.skuAttributes.updatedBy'
|
|
1325
|
-
|'skuId'
|
|
1326
|
-
|'attributeId'
|
|
1327
|
-
|'valueId',
|
|
1328
|
-
AttributeValueRule>;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* OrderByField
|
|
1332
|
-
*/
|
|
1333
|
-
declare type AttributeValueOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name";
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* rule
|
|
1337
|
-
*/
|
|
1338
|
-
declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
1339
|
-
| DateRules<Attribute, 'createdAt'>
|
|
1340
|
-
| DateRules<Attribute, 'updatedAt'>
|
|
1341
|
-
| StringRules<Attribute, 'createdBy'>
|
|
1342
|
-
| StringRules<Attribute, 'updatedBy'>
|
|
1343
|
-
| StringRules<Attribute, 'name'>
|
|
1344
|
-
| RelationExistsRules<'values', AttributeValueRuleGroup>
|
|
1345
|
-
| RelationUUIDRules<'values.id', UUID>
|
|
1346
|
-
| RelationDateRules<'values.createdAt', Date>
|
|
1347
|
-
| RelationDateRules<'values.updatedAt', Date>
|
|
1348
|
-
| RelationStringRules<'values.createdBy', string | null>
|
|
1349
|
-
| RelationStringRules<'values.updatedBy', string | null>
|
|
1350
|
-
| RelationStringRules<'values.name', string>
|
|
1351
|
-
| UUIDRules<AttributeValue, 'attributeId'>
|
|
1352
|
-
| RelationUUIDRules<'values.skuAttributeValues.id', UUID>
|
|
1353
|
-
| RelationDateRules<'values.skuAttributeValues.createdAt', Date>
|
|
1354
|
-
| RelationDateRules<'values.skuAttributeValues.updatedAt', Date>
|
|
1355
|
-
| RelationStringRules<'values.skuAttributeValues.createdBy', string | null>
|
|
1356
|
-
| RelationStringRules<'values.skuAttributeValues.updatedBy', string | null>
|
|
1357
|
-
| UUIDRules<SKUAttributes, 'skuId'>
|
|
1358
|
-
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
1359
|
-
| UUIDRules<SKUAttributes, 'valueId'>
|
|
1360
|
-
| RelationUUIDRules<'values.skuAttributeValues.sku.id', UUID>
|
|
1361
|
-
| RelationDateRules<'values.skuAttributeValues.sku.createdAt', Date>
|
|
1362
|
-
| RelationDateRules<'values.skuAttributeValues.sku.updatedAt', Date>
|
|
1363
|
-
| RelationStringRules<'values.skuAttributeValues.sku.createdBy', string | null>
|
|
1364
|
-
| RelationStringRules<'values.skuAttributeValues.sku.updatedBy', string | null>
|
|
1365
|
-
| RelationStringRules<'values.skuAttributeValues.sku.code', string>
|
|
1366
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.price', number>
|
|
1367
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.stock', number>
|
|
1368
|
-
| UUIDRules<SKU, 'productId'>
|
|
1369
|
-
| RelationUUIDRules<'values.skuAttributeValues.sku.attributes.id', UUID>
|
|
1370
|
-
| RelationDateRules<'values.skuAttributeValues.sku.attributes.createdAt', Date>
|
|
1371
|
-
| RelationDateRules<'values.skuAttributeValues.sku.attributes.updatedAt', Date>
|
|
1372
|
-
| RelationStringRules<'values.skuAttributeValues.sku.attributes.createdBy', string | null>
|
|
1373
|
-
| RelationStringRules<'values.skuAttributeValues.sku.attributes.updatedBy', string | null>
|
|
1374
|
-
| RelationUUIDRules<'values.skuAttributeValues.sku.product.id', UUID>
|
|
1375
|
-
| RelationDateRules<'values.skuAttributeValues.sku.product.createdAt', Date>
|
|
1376
|
-
| RelationDateRules<'values.skuAttributeValues.sku.product.updatedAt', Date>
|
|
1377
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.createdBy', string | null>
|
|
1378
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.updatedBy', string | null>
|
|
1379
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.name', string>
|
|
1380
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.description', string | null>
|
|
1381
|
-
| RelationUUIDRules<'values.skuAttributeValues.sku.product.skus.id', UUID>
|
|
1382
|
-
| RelationDateRules<'values.skuAttributeValues.sku.product.skus.createdAt', Date>
|
|
1383
|
-
| RelationDateRules<'values.skuAttributeValues.sku.product.skus.updatedAt', Date>
|
|
1384
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.createdBy', string | null>
|
|
1385
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.updatedBy', string | null>
|
|
1386
|
-
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.code', string>
|
|
1387
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.price', number>
|
|
1388
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.stock', number>
|
|
1389
|
-
| RelationExistsRules<'skuAttributes', SKUAttributesRuleGroup>
|
|
1390
|
-
| RelationUUIDRules<'skuAttributes.id', UUID>
|
|
1391
|
-
| RelationDateRules<'skuAttributes.createdAt', Date>
|
|
1392
|
-
| RelationDateRules<'skuAttributes.updatedAt', Date>
|
|
1393
|
-
| RelationStringRules<'skuAttributes.createdBy', string | null>
|
|
1394
|
-
| RelationStringRules<'skuAttributes.updatedBy', string | null>
|
|
1395
|
-
| RelationUUIDRules<'skuAttributes.sku.id', UUID>
|
|
1396
|
-
| RelationDateRules<'skuAttributes.sku.createdAt', Date>
|
|
1397
|
-
| RelationDateRules<'skuAttributes.sku.updatedAt', Date>
|
|
1398
|
-
| RelationStringRules<'skuAttributes.sku.createdBy', string | null>
|
|
1399
|
-
| RelationStringRules<'skuAttributes.sku.updatedBy', string | null>
|
|
1400
|
-
| RelationStringRules<'skuAttributes.sku.code', string>
|
|
1401
|
-
| RelationNumberRules<'skuAttributes.sku.price', number>
|
|
1402
|
-
| RelationNumberRules<'skuAttributes.sku.stock', number>
|
|
1403
|
-
| RelationUUIDRules<'skuAttributes.sku.attributes.id', UUID>
|
|
1404
|
-
| RelationDateRules<'skuAttributes.sku.attributes.createdAt', Date>
|
|
1405
|
-
| RelationDateRules<'skuAttributes.sku.attributes.updatedAt', Date>
|
|
1406
|
-
| RelationStringRules<'skuAttributes.sku.attributes.createdBy', string | null>
|
|
1407
|
-
| RelationStringRules<'skuAttributes.sku.attributes.updatedBy', string | null>
|
|
1408
|
-
| RelationUUIDRules<'skuAttributes.sku.product.id', UUID>
|
|
1409
|
-
| RelationDateRules<'skuAttributes.sku.product.createdAt', Date>
|
|
1410
|
-
| RelationDateRules<'skuAttributes.sku.product.updatedAt', Date>
|
|
1411
|
-
| RelationStringRules<'skuAttributes.sku.product.createdBy', string | null>
|
|
1412
|
-
| RelationStringRules<'skuAttributes.sku.product.updatedBy', string | null>
|
|
1413
|
-
| RelationStringRules<'skuAttributes.sku.product.name', string>
|
|
1414
|
-
| RelationStringRules<'skuAttributes.sku.product.description', string | null>
|
|
1415
|
-
| RelationUUIDRules<'skuAttributes.sku.product.skus.id', UUID>
|
|
1416
|
-
| RelationDateRules<'skuAttributes.sku.product.skus.createdAt', Date>
|
|
1417
|
-
| RelationDateRules<'skuAttributes.sku.product.skus.updatedAt', Date>
|
|
1418
|
-
| RelationStringRules<'skuAttributes.sku.product.skus.createdBy', string | null>
|
|
1419
|
-
| RelationStringRules<'skuAttributes.sku.product.skus.updatedBy', string | null>
|
|
1420
|
-
| RelationStringRules<'skuAttributes.sku.product.skus.code', string>
|
|
1421
|
-
| RelationNumberRules<'skuAttributes.sku.product.skus.price', number>
|
|
1422
|
-
| RelationNumberRules<'skuAttributes.sku.product.skus.stock', number>
|
|
1423
|
-
| RelationUUIDRules<'skuAttributes.value.id', UUID>
|
|
1424
|
-
| RelationDateRules<'skuAttributes.value.createdAt', Date>
|
|
1425
|
-
| RelationDateRules<'skuAttributes.value.updatedAt', Date>
|
|
1426
|
-
| RelationStringRules<'skuAttributes.value.createdBy', string | null>
|
|
1427
|
-
| RelationStringRules<'skuAttributes.value.updatedBy', string | null>
|
|
1428
|
-
| RelationStringRules<'skuAttributes.value.name', string>
|
|
1429
|
-
| RelationUUIDRules<'skuAttributes.value.skuAttributeValues.id', UUID>
|
|
1430
|
-
| RelationDateRules<'skuAttributes.value.skuAttributeValues.createdAt', Date>
|
|
1431
|
-
| RelationDateRules<'skuAttributes.value.skuAttributeValues.updatedAt', Date>
|
|
1432
|
-
| RelationStringRules<'skuAttributes.value.skuAttributeValues.createdBy', string | null>
|
|
1433
|
-
| RelationStringRules<'skuAttributes.value.skuAttributeValues.updatedBy', string | null>;
|
|
1434
|
-
|
|
1435
|
-
/**
|
|
1436
|
-
* RuleGroupBase
|
|
1437
|
-
*/
|
|
1438
|
-
export declare type AttributeRuleGroup = RuleGroupBase<typeof Attribute,
|
|
1439
|
-
|'id'
|
|
1440
|
-
|'createdAt'
|
|
1441
|
-
|'updatedAt'
|
|
1442
|
-
|'createdBy'
|
|
1443
|
-
|'updatedBy'
|
|
1444
|
-
|'name'
|
|
1445
|
-
|'values'
|
|
1446
|
-
|'values.id'
|
|
1447
|
-
|'values.createdAt'
|
|
1448
|
-
|'values.updatedAt'
|
|
1449
|
-
|'values.createdBy'
|
|
1450
|
-
|'values.updatedBy'
|
|
1451
|
-
|'values.name'
|
|
1452
|
-
|'attributeId'
|
|
1453
|
-
|'values.skuAttributeValues.id'
|
|
1454
|
-
|'values.skuAttributeValues.createdAt'
|
|
1455
|
-
|'values.skuAttributeValues.updatedAt'
|
|
1456
|
-
|'values.skuAttributeValues.createdBy'
|
|
1457
|
-
|'values.skuAttributeValues.updatedBy'
|
|
1458
|
-
|'skuId'
|
|
1459
|
-
|'attributeId'
|
|
1460
|
-
|'valueId'
|
|
1461
|
-
|'values.skuAttributeValues.sku.id'
|
|
1462
|
-
|'values.skuAttributeValues.sku.createdAt'
|
|
1463
|
-
|'values.skuAttributeValues.sku.updatedAt'
|
|
1464
|
-
|'values.skuAttributeValues.sku.createdBy'
|
|
1465
|
-
|'values.skuAttributeValues.sku.updatedBy'
|
|
1466
|
-
|'values.skuAttributeValues.sku.code'
|
|
1467
|
-
|'values.skuAttributeValues.sku.price'
|
|
1468
|
-
|'values.skuAttributeValues.sku.stock'
|
|
1469
|
-
|'productId'
|
|
1470
|
-
|'values.skuAttributeValues.sku.attributes.id'
|
|
1471
|
-
|'values.skuAttributeValues.sku.attributes.createdAt'
|
|
1472
|
-
|'values.skuAttributeValues.sku.attributes.updatedAt'
|
|
1473
|
-
|'values.skuAttributeValues.sku.attributes.createdBy'
|
|
1474
|
-
|'values.skuAttributeValues.sku.attributes.updatedBy'
|
|
1475
|
-
|'skuId'
|
|
1476
|
-
|'attributeId'
|
|
1477
|
-
|'valueId'
|
|
1478
|
-
|'values.skuAttributeValues.sku.product.id'
|
|
1479
|
-
|'values.skuAttributeValues.sku.product.createdAt'
|
|
1480
|
-
|'values.skuAttributeValues.sku.product.updatedAt'
|
|
1481
|
-
|'values.skuAttributeValues.sku.product.createdBy'
|
|
1482
|
-
|'values.skuAttributeValues.sku.product.updatedBy'
|
|
1483
|
-
|'values.skuAttributeValues.sku.product.name'
|
|
1484
|
-
|'values.skuAttributeValues.sku.product.description'
|
|
1485
|
-
|'values.skuAttributeValues.sku.product.skus.id'
|
|
1486
|
-
|'values.skuAttributeValues.sku.product.skus.createdAt'
|
|
1487
|
-
|'values.skuAttributeValues.sku.product.skus.updatedAt'
|
|
1488
|
-
|'values.skuAttributeValues.sku.product.skus.createdBy'
|
|
1489
|
-
|'values.skuAttributeValues.sku.product.skus.updatedBy'
|
|
1490
|
-
|'values.skuAttributeValues.sku.product.skus.code'
|
|
1491
|
-
|'values.skuAttributeValues.sku.product.skus.price'
|
|
1492
|
-
|'values.skuAttributeValues.sku.product.skus.stock'
|
|
1493
|
-
|'productId'
|
|
1494
|
-
|'skuAttributes'
|
|
1495
|
-
|'skuAttributes.id'
|
|
1496
|
-
|'skuAttributes.createdAt'
|
|
1497
|
-
|'skuAttributes.updatedAt'
|
|
1498
|
-
|'skuAttributes.createdBy'
|
|
1499
|
-
|'skuAttributes.updatedBy'
|
|
1500
|
-
|'skuId'
|
|
1501
|
-
|'attributeId'
|
|
1502
|
-
|'valueId'
|
|
1503
|
-
|'skuAttributes.sku.id'
|
|
1504
|
-
|'skuAttributes.sku.createdAt'
|
|
1505
|
-
|'skuAttributes.sku.updatedAt'
|
|
1506
|
-
|'skuAttributes.sku.createdBy'
|
|
1507
|
-
|'skuAttributes.sku.updatedBy'
|
|
1508
|
-
|'skuAttributes.sku.code'
|
|
1509
|
-
|'skuAttributes.sku.price'
|
|
1510
|
-
|'skuAttributes.sku.stock'
|
|
1511
|
-
|'productId'
|
|
1512
|
-
|'skuAttributes.sku.attributes.id'
|
|
1513
|
-
|'skuAttributes.sku.attributes.createdAt'
|
|
1514
|
-
|'skuAttributes.sku.attributes.updatedAt'
|
|
1515
|
-
|'skuAttributes.sku.attributes.createdBy'
|
|
1516
|
-
|'skuAttributes.sku.attributes.updatedBy'
|
|
1517
|
-
|'skuId'
|
|
1518
|
-
|'attributeId'
|
|
1519
|
-
|'valueId'
|
|
1520
|
-
|'skuAttributes.sku.product.id'
|
|
1521
|
-
|'skuAttributes.sku.product.createdAt'
|
|
1522
|
-
|'skuAttributes.sku.product.updatedAt'
|
|
1523
|
-
|'skuAttributes.sku.product.createdBy'
|
|
1524
|
-
|'skuAttributes.sku.product.updatedBy'
|
|
1525
|
-
|'skuAttributes.sku.product.name'
|
|
1526
|
-
|'skuAttributes.sku.product.description'
|
|
1527
|
-
|'skuAttributes.sku.product.skus.id'
|
|
1528
|
-
|'skuAttributes.sku.product.skus.createdAt'
|
|
1529
|
-
|'skuAttributes.sku.product.skus.updatedAt'
|
|
1530
|
-
|'skuAttributes.sku.product.skus.createdBy'
|
|
1531
|
-
|'skuAttributes.sku.product.skus.updatedBy'
|
|
1532
|
-
|'skuAttributes.sku.product.skus.code'
|
|
1533
|
-
|'skuAttributes.sku.product.skus.price'
|
|
1534
|
-
|'skuAttributes.sku.product.skus.stock'
|
|
1535
|
-
|'productId'
|
|
1536
|
-
|'skuAttributes.value.id'
|
|
1537
|
-
|'skuAttributes.value.createdAt'
|
|
1538
|
-
|'skuAttributes.value.updatedAt'
|
|
1539
|
-
|'skuAttributes.value.createdBy'
|
|
1540
|
-
|'skuAttributes.value.updatedBy'
|
|
1541
|
-
|'skuAttributes.value.name'
|
|
1542
|
-
|'attributeId'
|
|
1543
|
-
|'skuAttributes.value.skuAttributeValues.id'
|
|
1544
|
-
|'skuAttributes.value.skuAttributeValues.createdAt'
|
|
1545
|
-
|'skuAttributes.value.skuAttributeValues.updatedAt'
|
|
1546
|
-
|'skuAttributes.value.skuAttributeValues.createdBy'
|
|
1547
|
-
|'skuAttributes.value.skuAttributeValues.updatedBy'
|
|
1548
|
-
|'skuId'
|
|
1549
|
-
|'attributeId'
|
|
1550
|
-
|'valueId',
|
|
1551
|
-
AttributeRule>;
|
|
1552
|
-
|
|
1553
|
-
/**
|
|
1554
|
-
* OrderByField
|
|
1555
|
-
*/
|
|
1556
|
-
declare type AttributeOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "name";
|
|
1
|
+
import { Attribute } from './Attribute.js';
|
|
2
|
+
import { AttributeValue } from './AttributeValue.js';
|
|
3
|
+
import { Category } from './Category.js';
|
|
4
|
+
import { IdCard } from './IdCard.js';
|
|
5
|
+
import { Order } from './Order.js';
|
|
6
|
+
import { OrderItem } from './OrderItem.js';
|
|
7
|
+
import { Product } from './Product.js';
|
|
8
|
+
import { SKU } from './SKU.js';
|
|
9
|
+
import { SKUAttributes } from './SKUAttributes.js';
|
|
10
|
+
import { User } from './User.js';
|
|
11
|
+
import { EntityType } from '@aiao/rxdb';
|
|
12
|
+
|
|
13
|
+
export * from './Attribute.js';
|
|
14
|
+
export * from './AttributeValue.js';
|
|
15
|
+
export * from './Category.js';
|
|
16
|
+
export * from './IdCard.js';
|
|
17
|
+
export * from './Order.js';
|
|
18
|
+
export * from './OrderItem.js';
|
|
19
|
+
export * from './Product.js';
|
|
20
|
+
export * from './SKU.js';
|
|
21
|
+
export * from './SKUAttributes.js';
|
|
22
|
+
export * from './User.js';
|
|
1557
23
|
|
|
1558
24
|
/**
|
|
1559
25
|
* rxdb
|
|
@@ -1606,1429 +72,5 @@ declare module "@aiao/rxdb" {
|
|
|
1606
72
|
}
|
|
1607
73
|
}
|
|
1608
74
|
|
|
1609
|
-
/**
|
|
1610
|
-
* 静态类型
|
|
1611
|
-
*/
|
|
1612
|
-
export interface UserStaticTypes {
|
|
1613
|
-
/**
|
|
1614
|
-
* id 类型
|
|
1615
|
-
*/
|
|
1616
|
-
idType: UUID;
|
|
1617
|
-
/**
|
|
1618
|
-
* 查询选项
|
|
1619
|
-
*/
|
|
1620
|
-
getOptions: UUID;
|
|
1621
|
-
/**
|
|
1622
|
-
* 查询选项
|
|
1623
|
-
*/
|
|
1624
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1625
|
-
/**
|
|
1626
|
-
* 查询选项
|
|
1627
|
-
*/
|
|
1628
|
-
findOptions: FindOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1629
|
-
/**
|
|
1630
|
-
* 查询选项
|
|
1631
|
-
*/
|
|
1632
|
-
findOneOptions: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1633
|
-
/**
|
|
1634
|
-
* 查询选项
|
|
1635
|
-
*/
|
|
1636
|
-
findAllOptions: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1637
|
-
/**
|
|
1638
|
-
* 查询选项
|
|
1639
|
-
*/
|
|
1640
|
-
findByCursorOptions: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1641
|
-
/**
|
|
1642
|
-
* 查询选项
|
|
1643
|
-
*/
|
|
1644
|
-
countOptions: CountOptions<typeof User,UserRuleGroup>;
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* 初始化数据
|
|
1649
|
-
*/
|
|
1650
|
-
export interface UserInitData {
|
|
1651
|
-
/**
|
|
1652
|
-
* 姓名
|
|
1653
|
-
*/
|
|
1654
|
-
name?: string;
|
|
1655
|
-
/**
|
|
1656
|
-
* 已婚
|
|
1657
|
-
*/
|
|
1658
|
-
married?: boolean;
|
|
1659
|
-
/**
|
|
1660
|
-
* 年龄
|
|
1661
|
-
*/
|
|
1662
|
-
age?: number;
|
|
1663
|
-
/**
|
|
1664
|
-
* 性别
|
|
1665
|
-
* @default '男'
|
|
1666
|
-
*/
|
|
1667
|
-
gender?: string | null;
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
/**
|
|
1671
|
-
* 静态类型
|
|
1672
|
-
*/
|
|
1673
|
-
export interface SKUAttributesStaticTypes {
|
|
1674
|
-
/**
|
|
1675
|
-
* id 类型
|
|
1676
|
-
*/
|
|
1677
|
-
idType: UUID;
|
|
1678
|
-
/**
|
|
1679
|
-
* 查询选项
|
|
1680
|
-
*/
|
|
1681
|
-
getOptions: UUID;
|
|
1682
|
-
/**
|
|
1683
|
-
* 查询选项
|
|
1684
|
-
*/
|
|
1685
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
1686
|
-
/**
|
|
1687
|
-
* 查询选项
|
|
1688
|
-
*/
|
|
1689
|
-
findOptions: FindOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
1690
|
-
/**
|
|
1691
|
-
* 查询选项
|
|
1692
|
-
*/
|
|
1693
|
-
findOneOptions: FindOneOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
1694
|
-
/**
|
|
1695
|
-
* 查询选项
|
|
1696
|
-
*/
|
|
1697
|
-
findAllOptions: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
1698
|
-
/**
|
|
1699
|
-
* 查询选项
|
|
1700
|
-
*/
|
|
1701
|
-
findByCursorOptions: FindByCursorOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
1702
|
-
/**
|
|
1703
|
-
* 查询选项
|
|
1704
|
-
*/
|
|
1705
|
-
countOptions: CountOptions<typeof SKUAttributes,SKUAttributesRuleGroup>;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
* 初始化数据
|
|
1710
|
-
*/
|
|
1711
|
-
export interface SKUAttributesInitData {
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/**
|
|
1715
|
-
* 静态类型
|
|
1716
|
-
*/
|
|
1717
|
-
export interface SKUStaticTypes {
|
|
1718
|
-
/**
|
|
1719
|
-
* id 类型
|
|
1720
|
-
*/
|
|
1721
|
-
idType: UUID;
|
|
1722
|
-
/**
|
|
1723
|
-
* 查询选项
|
|
1724
|
-
*/
|
|
1725
|
-
getOptions: UUID;
|
|
1726
|
-
/**
|
|
1727
|
-
* 查询选项
|
|
1728
|
-
*/
|
|
1729
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
1730
|
-
/**
|
|
1731
|
-
* 查询选项
|
|
1732
|
-
*/
|
|
1733
|
-
findOptions: FindOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
1734
|
-
/**
|
|
1735
|
-
* 查询选项
|
|
1736
|
-
*/
|
|
1737
|
-
findOneOptions: FindOneOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
1738
|
-
/**
|
|
1739
|
-
* 查询选项
|
|
1740
|
-
*/
|
|
1741
|
-
findAllOptions: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
1742
|
-
/**
|
|
1743
|
-
* 查询选项
|
|
1744
|
-
*/
|
|
1745
|
-
findByCursorOptions: FindByCursorOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
1746
|
-
/**
|
|
1747
|
-
* 查询选项
|
|
1748
|
-
*/
|
|
1749
|
-
countOptions: CountOptions<typeof SKU,SKURuleGroup>;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
/**
|
|
1753
|
-
* 初始化数据
|
|
1754
|
-
*/
|
|
1755
|
-
export interface SKUInitData {
|
|
1756
|
-
/**
|
|
1757
|
-
* SKU编码
|
|
1758
|
-
*/
|
|
1759
|
-
code?: string;
|
|
1760
|
-
/**
|
|
1761
|
-
* 价格
|
|
1762
|
-
*/
|
|
1763
|
-
price?: number;
|
|
1764
|
-
/**
|
|
1765
|
-
* 库存
|
|
1766
|
-
*/
|
|
1767
|
-
stock?: number;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
/**
|
|
1771
|
-
* 静态类型
|
|
1772
|
-
*/
|
|
1773
|
-
export interface ProductStaticTypes {
|
|
1774
|
-
/**
|
|
1775
|
-
* id 类型
|
|
1776
|
-
*/
|
|
1777
|
-
idType: UUID;
|
|
1778
|
-
/**
|
|
1779
|
-
* 查询选项
|
|
1780
|
-
*/
|
|
1781
|
-
getOptions: UUID;
|
|
1782
|
-
/**
|
|
1783
|
-
* 查询选项
|
|
1784
|
-
*/
|
|
1785
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
1786
|
-
/**
|
|
1787
|
-
* 查询选项
|
|
1788
|
-
*/
|
|
1789
|
-
findOptions: FindOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
1790
|
-
/**
|
|
1791
|
-
* 查询选项
|
|
1792
|
-
*/
|
|
1793
|
-
findOneOptions: FindOneOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
1794
|
-
/**
|
|
1795
|
-
* 查询选项
|
|
1796
|
-
*/
|
|
1797
|
-
findAllOptions: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
1798
|
-
/**
|
|
1799
|
-
* 查询选项
|
|
1800
|
-
*/
|
|
1801
|
-
findByCursorOptions: FindByCursorOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
1802
|
-
/**
|
|
1803
|
-
* 查询选项
|
|
1804
|
-
*/
|
|
1805
|
-
countOptions: CountOptions<typeof Product,ProductRuleGroup>;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* 初始化数据
|
|
1810
|
-
*/
|
|
1811
|
-
export interface ProductInitData {
|
|
1812
|
-
/**
|
|
1813
|
-
* 产品名称
|
|
1814
|
-
*/
|
|
1815
|
-
name?: string;
|
|
1816
|
-
/**
|
|
1817
|
-
* 产品描述
|
|
1818
|
-
*/
|
|
1819
|
-
description?: string | null;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
/**
|
|
1823
|
-
* 静态类型
|
|
1824
|
-
*/
|
|
1825
|
-
export interface OrderItemStaticTypes {
|
|
1826
|
-
/**
|
|
1827
|
-
* id 类型
|
|
1828
|
-
*/
|
|
1829
|
-
idType: UUID;
|
|
1830
|
-
/**
|
|
1831
|
-
* 查询选项
|
|
1832
|
-
*/
|
|
1833
|
-
getOptions: UUID;
|
|
1834
|
-
/**
|
|
1835
|
-
* 查询选项
|
|
1836
|
-
*/
|
|
1837
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
1838
|
-
/**
|
|
1839
|
-
* 查询选项
|
|
1840
|
-
*/
|
|
1841
|
-
findOptions: FindOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
1842
|
-
/**
|
|
1843
|
-
* 查询选项
|
|
1844
|
-
*/
|
|
1845
|
-
findOneOptions: FindOneOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
1846
|
-
/**
|
|
1847
|
-
* 查询选项
|
|
1848
|
-
*/
|
|
1849
|
-
findAllOptions: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
1850
|
-
/**
|
|
1851
|
-
* 查询选项
|
|
1852
|
-
*/
|
|
1853
|
-
findByCursorOptions: FindByCursorOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
1854
|
-
/**
|
|
1855
|
-
* 查询选项
|
|
1856
|
-
*/
|
|
1857
|
-
countOptions: CountOptions<typeof OrderItem,OrderItemRuleGroup>;
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
/**
|
|
1861
|
-
* 初始化数据
|
|
1862
|
-
*/
|
|
1863
|
-
export interface OrderItemInitData {
|
|
1864
|
-
/**
|
|
1865
|
-
* 商品名称
|
|
1866
|
-
*/
|
|
1867
|
-
productName?: string;
|
|
1868
|
-
/**
|
|
1869
|
-
* 数量
|
|
1870
|
-
*/
|
|
1871
|
-
quantity?: number;
|
|
1872
|
-
/**
|
|
1873
|
-
* 单价
|
|
1874
|
-
*/
|
|
1875
|
-
price?: number;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
/**
|
|
1879
|
-
* 静态类型
|
|
1880
|
-
*/
|
|
1881
|
-
export interface OrderStaticTypes {
|
|
1882
|
-
/**
|
|
1883
|
-
* id 类型
|
|
1884
|
-
*/
|
|
1885
|
-
idType: UUID;
|
|
1886
|
-
/**
|
|
1887
|
-
* 查询选项
|
|
1888
|
-
*/
|
|
1889
|
-
getOptions: UUID;
|
|
1890
|
-
/**
|
|
1891
|
-
* 查询选项
|
|
1892
|
-
*/
|
|
1893
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
1894
|
-
/**
|
|
1895
|
-
* 查询选项
|
|
1896
|
-
*/
|
|
1897
|
-
findOptions: FindOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
1898
|
-
/**
|
|
1899
|
-
* 查询选项
|
|
1900
|
-
*/
|
|
1901
|
-
findOneOptions: FindOneOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
1902
|
-
/**
|
|
1903
|
-
* 查询选项
|
|
1904
|
-
*/
|
|
1905
|
-
findAllOptions: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
1906
|
-
/**
|
|
1907
|
-
* 查询选项
|
|
1908
|
-
*/
|
|
1909
|
-
findByCursorOptions: FindByCursorOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
1910
|
-
/**
|
|
1911
|
-
* 查询选项
|
|
1912
|
-
*/
|
|
1913
|
-
countOptions: CountOptions<typeof Order,OrderRuleGroup>;
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
/**
|
|
1917
|
-
* 初始化数据
|
|
1918
|
-
*/
|
|
1919
|
-
export interface OrderInitData {
|
|
1920
|
-
/**
|
|
1921
|
-
* 订单号
|
|
1922
|
-
*/
|
|
1923
|
-
number?: string;
|
|
1924
|
-
/**
|
|
1925
|
-
* 订单总金额
|
|
1926
|
-
*/
|
|
1927
|
-
amount?: number;
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
/**
|
|
1931
|
-
* 静态类型
|
|
1932
|
-
*/
|
|
1933
|
-
export interface IdCardStaticTypes {
|
|
1934
|
-
/**
|
|
1935
|
-
* id 类型
|
|
1936
|
-
*/
|
|
1937
|
-
idType: UUID;
|
|
1938
|
-
/**
|
|
1939
|
-
* 查询选项
|
|
1940
|
-
*/
|
|
1941
|
-
getOptions: UUID;
|
|
1942
|
-
/**
|
|
1943
|
-
* 查询选项
|
|
1944
|
-
*/
|
|
1945
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
1946
|
-
/**
|
|
1947
|
-
* 查询选项
|
|
1948
|
-
*/
|
|
1949
|
-
findOptions: FindOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
1950
|
-
/**
|
|
1951
|
-
* 查询选项
|
|
1952
|
-
*/
|
|
1953
|
-
findOneOptions: FindOneOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
1954
|
-
/**
|
|
1955
|
-
* 查询选项
|
|
1956
|
-
*/
|
|
1957
|
-
findAllOptions: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
1958
|
-
/**
|
|
1959
|
-
* 查询选项
|
|
1960
|
-
*/
|
|
1961
|
-
findByCursorOptions: FindByCursorOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
1962
|
-
/**
|
|
1963
|
-
* 查询选项
|
|
1964
|
-
*/
|
|
1965
|
-
countOptions: CountOptions<typeof IdCard,IdCardRuleGroup>;
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
/**
|
|
1969
|
-
* 初始化数据
|
|
1970
|
-
*/
|
|
1971
|
-
export interface IdCardInitData {
|
|
1972
|
-
/**
|
|
1973
|
-
* 身份证号码
|
|
1974
|
-
*/
|
|
1975
|
-
code?: string;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
/**
|
|
1979
|
-
* 静态类型
|
|
1980
|
-
*/
|
|
1981
|
-
export interface CategoryStaticTypes {
|
|
1982
|
-
/**
|
|
1983
|
-
* id 类型
|
|
1984
|
-
*/
|
|
1985
|
-
idType: UUID;
|
|
1986
|
-
/**
|
|
1987
|
-
* 查询选项
|
|
1988
|
-
*/
|
|
1989
|
-
getOptions: UUID;
|
|
1990
|
-
/**
|
|
1991
|
-
* 查询选项
|
|
1992
|
-
*/
|
|
1993
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
1994
|
-
/**
|
|
1995
|
-
* 查询选项
|
|
1996
|
-
*/
|
|
1997
|
-
findOptions: FindOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
1998
|
-
/**
|
|
1999
|
-
* 查询选项
|
|
2000
|
-
*/
|
|
2001
|
-
findOneOptions: FindOneOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
2002
|
-
/**
|
|
2003
|
-
* 查询选项
|
|
2004
|
-
*/
|
|
2005
|
-
findAllOptions: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
2006
|
-
/**
|
|
2007
|
-
* 查询选项
|
|
2008
|
-
*/
|
|
2009
|
-
findByCursorOptions: FindByCursorOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
2010
|
-
/**
|
|
2011
|
-
* 查询选项
|
|
2012
|
-
*/
|
|
2013
|
-
countOptions: CountOptions<typeof Category,CategoryRuleGroup>;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
/**
|
|
2017
|
-
* 初始化数据
|
|
2018
|
-
*/
|
|
2019
|
-
export interface CategoryInitData {
|
|
2020
|
-
/**
|
|
2021
|
-
* 分类名称
|
|
2022
|
-
*/
|
|
2023
|
-
name?: string;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
/**
|
|
2027
|
-
* 静态类型
|
|
2028
|
-
*/
|
|
2029
|
-
export interface AttributeValueStaticTypes {
|
|
2030
|
-
/**
|
|
2031
|
-
* id 类型
|
|
2032
|
-
*/
|
|
2033
|
-
idType: UUID;
|
|
2034
|
-
/**
|
|
2035
|
-
* 查询选项
|
|
2036
|
-
*/
|
|
2037
|
-
getOptions: UUID;
|
|
2038
|
-
/**
|
|
2039
|
-
* 查询选项
|
|
2040
|
-
*/
|
|
2041
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2042
|
-
/**
|
|
2043
|
-
* 查询选项
|
|
2044
|
-
*/
|
|
2045
|
-
findOptions: FindOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2046
|
-
/**
|
|
2047
|
-
* 查询选项
|
|
2048
|
-
*/
|
|
2049
|
-
findOneOptions: FindOneOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2050
|
-
/**
|
|
2051
|
-
* 查询选项
|
|
2052
|
-
*/
|
|
2053
|
-
findAllOptions: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2054
|
-
/**
|
|
2055
|
-
* 查询选项
|
|
2056
|
-
*/
|
|
2057
|
-
findByCursorOptions: FindByCursorOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2058
|
-
/**
|
|
2059
|
-
* 查询选项
|
|
2060
|
-
*/
|
|
2061
|
-
countOptions: CountOptions<typeof AttributeValue,AttributeValueRuleGroup>;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
/**
|
|
2065
|
-
* 初始化数据
|
|
2066
|
-
*/
|
|
2067
|
-
export interface AttributeValueInitData {
|
|
2068
|
-
/**
|
|
2069
|
-
* 属性值名称
|
|
2070
|
-
*/
|
|
2071
|
-
name?: string;
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
/**
|
|
2075
|
-
* 静态类型
|
|
2076
|
-
*/
|
|
2077
|
-
export interface AttributeStaticTypes {
|
|
2078
|
-
/**
|
|
2079
|
-
* id 类型
|
|
2080
|
-
*/
|
|
2081
|
-
idType: UUID;
|
|
2082
|
-
/**
|
|
2083
|
-
* 查询选项
|
|
2084
|
-
*/
|
|
2085
|
-
getOptions: UUID;
|
|
2086
|
-
/**
|
|
2087
|
-
* 查询选项
|
|
2088
|
-
*/
|
|
2089
|
-
findOneOrFailOptions: FindOneOrFailOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2090
|
-
/**
|
|
2091
|
-
* 查询选项
|
|
2092
|
-
*/
|
|
2093
|
-
findOptions: FindOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2094
|
-
/**
|
|
2095
|
-
* 查询选项
|
|
2096
|
-
*/
|
|
2097
|
-
findOneOptions: FindOneOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2098
|
-
/**
|
|
2099
|
-
* 查询选项
|
|
2100
|
-
*/
|
|
2101
|
-
findAllOptions: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2102
|
-
/**
|
|
2103
|
-
* 查询选项
|
|
2104
|
-
*/
|
|
2105
|
-
findByCursorOptions: FindByCursorOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2106
|
-
/**
|
|
2107
|
-
* 查询选项
|
|
2108
|
-
*/
|
|
2109
|
-
countOptions: CountOptions<typeof Attribute,AttributeRuleGroup>;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
* 初始化数据
|
|
2114
|
-
*/
|
|
2115
|
-
export interface AttributeInitData {
|
|
2116
|
-
/**
|
|
2117
|
-
* 属性名称
|
|
2118
|
-
*/
|
|
2119
|
-
name?: string;
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
/**
|
|
2123
|
-
* 用户表
|
|
2124
|
-
*/
|
|
2125
|
-
export declare class User extends EntityBase implements IEntity {
|
|
2126
|
-
static [ENTITY_STATIC_TYPES]: UserStaticTypes;
|
|
2127
|
-
/**
|
|
2128
|
-
* 身份证
|
|
2129
|
-
*/
|
|
2130
|
-
readonly idCard$: RelationEntityObservable<typeof IdCard>;
|
|
2131
|
-
/**
|
|
2132
|
-
* 订单
|
|
2133
|
-
*/
|
|
2134
|
-
readonly orders$: RelationEntitiesObservable<Order>;
|
|
2135
|
-
/**
|
|
2136
|
-
* 年龄
|
|
2137
|
-
*/
|
|
2138
|
-
age: number;
|
|
2139
|
-
/**
|
|
2140
|
-
* 性别
|
|
2141
|
-
* @default '男'
|
|
2142
|
-
*/
|
|
2143
|
-
gender?: string | null;
|
|
2144
|
-
/**
|
|
2145
|
-
* 身份证 id
|
|
2146
|
-
*/
|
|
2147
|
-
idCardId?: UUID | null;
|
|
2148
|
-
/**
|
|
2149
|
-
* 已婚
|
|
2150
|
-
*/
|
|
2151
|
-
married: boolean;
|
|
2152
|
-
/**
|
|
2153
|
-
* 姓名
|
|
2154
|
-
*/
|
|
2155
|
-
name: string;
|
|
2156
|
-
/**
|
|
2157
|
-
* 初始化数据
|
|
2158
|
-
* @param initData 初始化数据
|
|
2159
|
-
*/
|
|
2160
|
-
constructor(initData?: UserInitData);
|
|
2161
|
-
/**
|
|
2162
|
-
* 统计实体数量
|
|
2163
|
-
* @param options 查询选项
|
|
2164
|
-
* @example
|
|
2165
|
-
* User.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2166
|
-
*/
|
|
2167
|
-
static count(options: CountOptions<typeof User,UserRuleGroup>): Observable<number>;
|
|
2168
|
-
/**
|
|
2169
|
-
* 查询多个实体
|
|
2170
|
-
* @param options 查询选项
|
|
2171
|
-
* @example
|
|
2172
|
-
* User.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2173
|
-
*/
|
|
2174
|
-
static find(options: FindOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
|
|
2175
|
-
/**
|
|
2176
|
-
* 查询所有实体
|
|
2177
|
-
* @param options 查询选项
|
|
2178
|
-
* @example
|
|
2179
|
-
* User.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2180
|
-
*/
|
|
2181
|
-
static findAll(options: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
|
|
2182
|
-
/**
|
|
2183
|
-
* 游标分页查询
|
|
2184
|
-
* @param options 查询选项
|
|
2185
|
-
* @example
|
|
2186
|
-
* User.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2187
|
-
*/
|
|
2188
|
-
static findByCursor(options: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
|
|
2189
|
-
/**
|
|
2190
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2191
|
-
* @param options 查询选项
|
|
2192
|
-
* @example
|
|
2193
|
-
* User.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2194
|
-
*/
|
|
2195
|
-
static findOne(options: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User | undefined>;
|
|
2196
|
-
/**
|
|
2197
|
-
* 查询单个实体,未找到时抛出错误
|
|
2198
|
-
* @param options 查询选项
|
|
2199
|
-
* @example
|
|
2200
|
-
* User.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2201
|
-
*/
|
|
2202
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User>;
|
|
2203
|
-
/**
|
|
2204
|
-
* 根据 ID 获取单个实体
|
|
2205
|
-
* @param options 查询选项
|
|
2206
|
-
* @example
|
|
2207
|
-
* User.get('123').subscribe(entity => console.log(entity));
|
|
2208
|
-
*/
|
|
2209
|
-
static get(options: UUID): Observable<User>;
|
|
2210
|
-
/**
|
|
2211
|
-
* 删除
|
|
2212
|
-
*/
|
|
2213
|
-
remove(): Promise<User>;
|
|
2214
|
-
/**
|
|
2215
|
-
* 重置数据
|
|
2216
|
-
*/
|
|
2217
|
-
reset(): void;
|
|
2218
|
-
/**
|
|
2219
|
-
* 保存
|
|
2220
|
-
*/
|
|
2221
|
-
save(): Promise<User>;
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
/**
|
|
2225
|
-
* SKU属性关联
|
|
2226
|
-
*/
|
|
2227
|
-
export declare class SKUAttributes extends EntityBase implements IEntity {
|
|
2228
|
-
static [ENTITY_STATIC_TYPES]: SKUAttributesStaticTypes;
|
|
2229
|
-
/**
|
|
2230
|
-
* 属性
|
|
2231
|
-
*/
|
|
2232
|
-
readonly attribute$: RelationEntityObservable<typeof Attribute>;
|
|
2233
|
-
/**
|
|
2234
|
-
* SKU
|
|
2235
|
-
*/
|
|
2236
|
-
readonly sku$: RelationEntityObservable<typeof SKU>;
|
|
2237
|
-
/**
|
|
2238
|
-
* 属性值
|
|
2239
|
-
*/
|
|
2240
|
-
readonly value$: RelationEntityObservable<typeof AttributeValue>;
|
|
2241
|
-
/**
|
|
2242
|
-
* 属性 id
|
|
2243
|
-
*/
|
|
2244
|
-
attributeId: UUID;
|
|
2245
|
-
/**
|
|
2246
|
-
* SKU id
|
|
2247
|
-
*/
|
|
2248
|
-
skuId: UUID;
|
|
2249
|
-
/**
|
|
2250
|
-
* 属性值 id
|
|
2251
|
-
*/
|
|
2252
|
-
valueId: UUID;
|
|
2253
|
-
/**
|
|
2254
|
-
* 初始化数据
|
|
2255
|
-
* @param initData 初始化数据
|
|
2256
|
-
*/
|
|
2257
|
-
constructor(initData?: SKUAttributesInitData);
|
|
2258
|
-
/**
|
|
2259
|
-
* 统计实体数量
|
|
2260
|
-
* @param options 查询选项
|
|
2261
|
-
* @example
|
|
2262
|
-
* SKUAttributes.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2263
|
-
*/
|
|
2264
|
-
static count(options: CountOptions<typeof SKUAttributes,SKUAttributesRuleGroup>): Observable<number>;
|
|
2265
|
-
/**
|
|
2266
|
-
* 查询多个实体
|
|
2267
|
-
* @param options 查询选项
|
|
2268
|
-
* @example
|
|
2269
|
-
* SKUAttributes.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2270
|
-
*/
|
|
2271
|
-
static find(options: FindOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
|
|
2272
|
-
/**
|
|
2273
|
-
* 查询所有实体
|
|
2274
|
-
* @param options 查询选项
|
|
2275
|
-
* @example
|
|
2276
|
-
* SKUAttributes.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2277
|
-
*/
|
|
2278
|
-
static findAll(options: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
|
|
2279
|
-
/**
|
|
2280
|
-
* 游标分页查询
|
|
2281
|
-
* @param options 查询选项
|
|
2282
|
-
* @example
|
|
2283
|
-
* SKUAttributes.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2284
|
-
*/
|
|
2285
|
-
static findByCursor(options: FindByCursorOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
|
|
2286
|
-
/**
|
|
2287
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2288
|
-
* @param options 查询选项
|
|
2289
|
-
* @example
|
|
2290
|
-
* SKUAttributes.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2291
|
-
*/
|
|
2292
|
-
static findOne(options: FindOneOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes | undefined>;
|
|
2293
|
-
/**
|
|
2294
|
-
* 查询单个实体,未找到时抛出错误
|
|
2295
|
-
* @param options 查询选项
|
|
2296
|
-
* @example
|
|
2297
|
-
* SKUAttributes.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2298
|
-
*/
|
|
2299
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes>;
|
|
2300
|
-
/**
|
|
2301
|
-
* 根据 ID 获取单个实体
|
|
2302
|
-
* @param options 查询选项
|
|
2303
|
-
* @example
|
|
2304
|
-
* SKUAttributes.get('123').subscribe(entity => console.log(entity));
|
|
2305
|
-
*/
|
|
2306
|
-
static get(options: UUID): Observable<SKUAttributes>;
|
|
2307
|
-
/**
|
|
2308
|
-
* 删除
|
|
2309
|
-
*/
|
|
2310
|
-
remove(): Promise<SKUAttributes>;
|
|
2311
|
-
/**
|
|
2312
|
-
* 重置数据
|
|
2313
|
-
*/
|
|
2314
|
-
reset(): void;
|
|
2315
|
-
/**
|
|
2316
|
-
* 保存
|
|
2317
|
-
*/
|
|
2318
|
-
save(): Promise<SKUAttributes>;
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* 库存单元
|
|
2323
|
-
*/
|
|
2324
|
-
export declare class SKU extends EntityBase implements IEntity {
|
|
2325
|
-
static [ENTITY_STATIC_TYPES]: SKUStaticTypes;
|
|
2326
|
-
/**
|
|
2327
|
-
* 属性列表
|
|
2328
|
-
*/
|
|
2329
|
-
readonly attributes$: RelationEntitiesObservable<SKUAttributes>;
|
|
2330
|
-
/**
|
|
2331
|
-
* 所属产品
|
|
2332
|
-
*/
|
|
2333
|
-
readonly product$: RelationEntityObservable<typeof Product>;
|
|
2334
|
-
/**
|
|
2335
|
-
* SKU编码
|
|
2336
|
-
*/
|
|
2337
|
-
code: string;
|
|
2338
|
-
/**
|
|
2339
|
-
* 价格
|
|
2340
|
-
*/
|
|
2341
|
-
price: number;
|
|
2342
|
-
/**
|
|
2343
|
-
* 所属产品 id
|
|
2344
|
-
*/
|
|
2345
|
-
productId: UUID;
|
|
2346
|
-
/**
|
|
2347
|
-
* 库存
|
|
2348
|
-
*/
|
|
2349
|
-
stock: number;
|
|
2350
|
-
/**
|
|
2351
|
-
* 初始化数据
|
|
2352
|
-
* @param initData 初始化数据
|
|
2353
|
-
*/
|
|
2354
|
-
constructor(initData?: SKUInitData);
|
|
2355
|
-
/**
|
|
2356
|
-
* 统计实体数量
|
|
2357
|
-
* @param options 查询选项
|
|
2358
|
-
* @example
|
|
2359
|
-
* SKU.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2360
|
-
*/
|
|
2361
|
-
static count(options: CountOptions<typeof SKU,SKURuleGroup>): Observable<number>;
|
|
2362
|
-
/**
|
|
2363
|
-
* 查询多个实体
|
|
2364
|
-
* @param options 查询选项
|
|
2365
|
-
* @example
|
|
2366
|
-
* SKU.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2367
|
-
*/
|
|
2368
|
-
static find(options: FindOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
|
|
2369
|
-
/**
|
|
2370
|
-
* 查询所有实体
|
|
2371
|
-
* @param options 查询选项
|
|
2372
|
-
* @example
|
|
2373
|
-
* SKU.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2374
|
-
*/
|
|
2375
|
-
static findAll(options: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
|
|
2376
|
-
/**
|
|
2377
|
-
* 游标分页查询
|
|
2378
|
-
* @param options 查询选项
|
|
2379
|
-
* @example
|
|
2380
|
-
* SKU.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2381
|
-
*/
|
|
2382
|
-
static findByCursor(options: FindByCursorOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
|
|
2383
|
-
/**
|
|
2384
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2385
|
-
* @param options 查询选项
|
|
2386
|
-
* @example
|
|
2387
|
-
* SKU.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2388
|
-
*/
|
|
2389
|
-
static findOne(options: FindOneOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU | undefined>;
|
|
2390
|
-
/**
|
|
2391
|
-
* 查询单个实体,未找到时抛出错误
|
|
2392
|
-
* @param options 查询选项
|
|
2393
|
-
* @example
|
|
2394
|
-
* SKU.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2395
|
-
*/
|
|
2396
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU>;
|
|
2397
|
-
/**
|
|
2398
|
-
* 根据 ID 获取单个实体
|
|
2399
|
-
* @param options 查询选项
|
|
2400
|
-
* @example
|
|
2401
|
-
* SKU.get('123').subscribe(entity => console.log(entity));
|
|
2402
|
-
*/
|
|
2403
|
-
static get(options: UUID): Observable<SKU>;
|
|
2404
|
-
/**
|
|
2405
|
-
* 删除
|
|
2406
|
-
*/
|
|
2407
|
-
remove(): Promise<SKU>;
|
|
2408
|
-
/**
|
|
2409
|
-
* 重置数据
|
|
2410
|
-
*/
|
|
2411
|
-
reset(): void;
|
|
2412
|
-
/**
|
|
2413
|
-
* 保存
|
|
2414
|
-
*/
|
|
2415
|
-
save(): Promise<SKU>;
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
/**
|
|
2419
|
-
* 产品
|
|
2420
|
-
*/
|
|
2421
|
-
export declare class Product extends EntityBase implements IEntity {
|
|
2422
|
-
static [ENTITY_STATIC_TYPES]: ProductStaticTypes;
|
|
2423
|
-
/**
|
|
2424
|
-
* SKU列表
|
|
2425
|
-
*/
|
|
2426
|
-
readonly skus$: RelationEntitiesObservable<SKU>;
|
|
2427
|
-
/**
|
|
2428
|
-
* 产品描述
|
|
2429
|
-
*/
|
|
2430
|
-
description?: string | null;
|
|
2431
|
-
/**
|
|
2432
|
-
* 产品名称
|
|
2433
|
-
*/
|
|
2434
|
-
name: string;
|
|
2435
|
-
/**
|
|
2436
|
-
* 初始化数据
|
|
2437
|
-
* @param initData 初始化数据
|
|
2438
|
-
*/
|
|
2439
|
-
constructor(initData?: ProductInitData);
|
|
2440
|
-
/**
|
|
2441
|
-
* 统计实体数量
|
|
2442
|
-
* @param options 查询选项
|
|
2443
|
-
* @example
|
|
2444
|
-
* Product.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2445
|
-
*/
|
|
2446
|
-
static count(options: CountOptions<typeof Product,ProductRuleGroup>): Observable<number>;
|
|
2447
|
-
/**
|
|
2448
|
-
* 查询多个实体
|
|
2449
|
-
* @param options 查询选项
|
|
2450
|
-
* @example
|
|
2451
|
-
* Product.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2452
|
-
*/
|
|
2453
|
-
static find(options: FindOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
|
|
2454
|
-
/**
|
|
2455
|
-
* 查询所有实体
|
|
2456
|
-
* @param options 查询选项
|
|
2457
|
-
* @example
|
|
2458
|
-
* Product.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2459
|
-
*/
|
|
2460
|
-
static findAll(options: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
|
|
2461
|
-
/**
|
|
2462
|
-
* 游标分页查询
|
|
2463
|
-
* @param options 查询选项
|
|
2464
|
-
* @example
|
|
2465
|
-
* Product.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2466
|
-
*/
|
|
2467
|
-
static findByCursor(options: FindByCursorOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
|
|
2468
|
-
/**
|
|
2469
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2470
|
-
* @param options 查询选项
|
|
2471
|
-
* @example
|
|
2472
|
-
* Product.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2473
|
-
*/
|
|
2474
|
-
static findOne(options: FindOneOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product | undefined>;
|
|
2475
|
-
/**
|
|
2476
|
-
* 查询单个实体,未找到时抛出错误
|
|
2477
|
-
* @param options 查询选项
|
|
2478
|
-
* @example
|
|
2479
|
-
* Product.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2480
|
-
*/
|
|
2481
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product>;
|
|
2482
|
-
/**
|
|
2483
|
-
* 根据 ID 获取单个实体
|
|
2484
|
-
* @param options 查询选项
|
|
2485
|
-
* @example
|
|
2486
|
-
* Product.get('123').subscribe(entity => console.log(entity));
|
|
2487
|
-
*/
|
|
2488
|
-
static get(options: UUID): Observable<Product>;
|
|
2489
|
-
/**
|
|
2490
|
-
* 删除
|
|
2491
|
-
*/
|
|
2492
|
-
remove(): Promise<Product>;
|
|
2493
|
-
/**
|
|
2494
|
-
* 重置数据
|
|
2495
|
-
*/
|
|
2496
|
-
reset(): void;
|
|
2497
|
-
/**
|
|
2498
|
-
* 保存
|
|
2499
|
-
*/
|
|
2500
|
-
save(): Promise<Product>;
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
/**
|
|
2504
|
-
* 订单项目
|
|
2505
|
-
*/
|
|
2506
|
-
export declare class OrderItem extends EntityBase implements IEntity {
|
|
2507
|
-
static [ENTITY_STATIC_TYPES]: OrderItemStaticTypes;
|
|
2508
|
-
/**
|
|
2509
|
-
* 分类
|
|
2510
|
-
*/
|
|
2511
|
-
readonly categories$: RelationEntitiesObservable<Category>;
|
|
2512
|
-
/**
|
|
2513
|
-
* 所属订单
|
|
2514
|
-
*/
|
|
2515
|
-
readonly order$: RelationEntityObservable<typeof Order>;
|
|
2516
|
-
/**
|
|
2517
|
-
* 所属订单 id
|
|
2518
|
-
*/
|
|
2519
|
-
orderId: UUID;
|
|
2520
|
-
/**
|
|
2521
|
-
* 单价
|
|
2522
|
-
*/
|
|
2523
|
-
price: number;
|
|
2524
|
-
/**
|
|
2525
|
-
* 商品名称
|
|
2526
|
-
*/
|
|
2527
|
-
productName: string;
|
|
2528
|
-
/**
|
|
2529
|
-
* 数量
|
|
2530
|
-
*/
|
|
2531
|
-
quantity: number;
|
|
2532
|
-
/**
|
|
2533
|
-
* 初始化数据
|
|
2534
|
-
* @param initData 初始化数据
|
|
2535
|
-
*/
|
|
2536
|
-
constructor(initData?: OrderItemInitData);
|
|
2537
|
-
/**
|
|
2538
|
-
* 统计实体数量
|
|
2539
|
-
* @param options 查询选项
|
|
2540
|
-
* @example
|
|
2541
|
-
* OrderItem.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2542
|
-
*/
|
|
2543
|
-
static count(options: CountOptions<typeof OrderItem,OrderItemRuleGroup>): Observable<number>;
|
|
2544
|
-
/**
|
|
2545
|
-
* 查询多个实体
|
|
2546
|
-
* @param options 查询选项
|
|
2547
|
-
* @example
|
|
2548
|
-
* OrderItem.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2549
|
-
*/
|
|
2550
|
-
static find(options: FindOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
|
|
2551
|
-
/**
|
|
2552
|
-
* 查询所有实体
|
|
2553
|
-
* @param options 查询选项
|
|
2554
|
-
* @example
|
|
2555
|
-
* OrderItem.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2556
|
-
*/
|
|
2557
|
-
static findAll(options: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
|
|
2558
|
-
/**
|
|
2559
|
-
* 游标分页查询
|
|
2560
|
-
* @param options 查询选项
|
|
2561
|
-
* @example
|
|
2562
|
-
* OrderItem.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2563
|
-
*/
|
|
2564
|
-
static findByCursor(options: FindByCursorOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
|
|
2565
|
-
/**
|
|
2566
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2567
|
-
* @param options 查询选项
|
|
2568
|
-
* @example
|
|
2569
|
-
* OrderItem.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2570
|
-
*/
|
|
2571
|
-
static findOne(options: FindOneOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem | undefined>;
|
|
2572
|
-
/**
|
|
2573
|
-
* 查询单个实体,未找到时抛出错误
|
|
2574
|
-
* @param options 查询选项
|
|
2575
|
-
* @example
|
|
2576
|
-
* OrderItem.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2577
|
-
*/
|
|
2578
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem>;
|
|
2579
|
-
/**
|
|
2580
|
-
* 根据 ID 获取单个实体
|
|
2581
|
-
* @param options 查询选项
|
|
2582
|
-
* @example
|
|
2583
|
-
* OrderItem.get('123').subscribe(entity => console.log(entity));
|
|
2584
|
-
*/
|
|
2585
|
-
static get(options: UUID): Observable<OrderItem>;
|
|
2586
|
-
/**
|
|
2587
|
-
* 删除
|
|
2588
|
-
*/
|
|
2589
|
-
remove(): Promise<OrderItem>;
|
|
2590
|
-
/**
|
|
2591
|
-
* 重置数据
|
|
2592
|
-
*/
|
|
2593
|
-
reset(): void;
|
|
2594
|
-
/**
|
|
2595
|
-
* 保存
|
|
2596
|
-
*/
|
|
2597
|
-
save(): Promise<OrderItem>;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
/**
|
|
2601
|
-
* 订单
|
|
2602
|
-
*/
|
|
2603
|
-
export declare class Order extends EntityBase implements IEntity {
|
|
2604
|
-
static [ENTITY_STATIC_TYPES]: OrderStaticTypes;
|
|
2605
|
-
/**
|
|
2606
|
-
* 订单项
|
|
2607
|
-
*/
|
|
2608
|
-
readonly items$: RelationEntitiesObservable<OrderItem>;
|
|
2609
|
-
/**
|
|
2610
|
-
* 所有者
|
|
2611
|
-
*/
|
|
2612
|
-
readonly owner$: RelationEntityObservable<typeof User>;
|
|
2613
|
-
/**
|
|
2614
|
-
* 订单总金额
|
|
2615
|
-
*/
|
|
2616
|
-
amount: number;
|
|
2617
|
-
/**
|
|
2618
|
-
* 订单号
|
|
2619
|
-
*/
|
|
2620
|
-
number: string;
|
|
2621
|
-
/**
|
|
2622
|
-
* 所有者 id
|
|
2623
|
-
*/
|
|
2624
|
-
ownerId: UUID;
|
|
2625
|
-
/**
|
|
2626
|
-
* 初始化数据
|
|
2627
|
-
* @param initData 初始化数据
|
|
2628
|
-
*/
|
|
2629
|
-
constructor(initData?: OrderInitData);
|
|
2630
|
-
/**
|
|
2631
|
-
* 统计实体数量
|
|
2632
|
-
* @param options 查询选项
|
|
2633
|
-
* @example
|
|
2634
|
-
* Order.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2635
|
-
*/
|
|
2636
|
-
static count(options: CountOptions<typeof Order,OrderRuleGroup>): Observable<number>;
|
|
2637
|
-
/**
|
|
2638
|
-
* 查询多个实体
|
|
2639
|
-
* @param options 查询选项
|
|
2640
|
-
* @example
|
|
2641
|
-
* Order.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2642
|
-
*/
|
|
2643
|
-
static find(options: FindOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
|
|
2644
|
-
/**
|
|
2645
|
-
* 查询所有实体
|
|
2646
|
-
* @param options 查询选项
|
|
2647
|
-
* @example
|
|
2648
|
-
* Order.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2649
|
-
*/
|
|
2650
|
-
static findAll(options: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
|
|
2651
|
-
/**
|
|
2652
|
-
* 游标分页查询
|
|
2653
|
-
* @param options 查询选项
|
|
2654
|
-
* @example
|
|
2655
|
-
* Order.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2656
|
-
*/
|
|
2657
|
-
static findByCursor(options: FindByCursorOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
|
|
2658
|
-
/**
|
|
2659
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2660
|
-
* @param options 查询选项
|
|
2661
|
-
* @example
|
|
2662
|
-
* Order.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2663
|
-
*/
|
|
2664
|
-
static findOne(options: FindOneOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order | undefined>;
|
|
2665
|
-
/**
|
|
2666
|
-
* 查询单个实体,未找到时抛出错误
|
|
2667
|
-
* @param options 查询选项
|
|
2668
|
-
* @example
|
|
2669
|
-
* Order.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2670
|
-
*/
|
|
2671
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order>;
|
|
2672
|
-
/**
|
|
2673
|
-
* 根据 ID 获取单个实体
|
|
2674
|
-
* @param options 查询选项
|
|
2675
|
-
* @example
|
|
2676
|
-
* Order.get('123').subscribe(entity => console.log(entity));
|
|
2677
|
-
*/
|
|
2678
|
-
static get(options: UUID): Observable<Order>;
|
|
2679
|
-
/**
|
|
2680
|
-
* 删除
|
|
2681
|
-
*/
|
|
2682
|
-
remove(): Promise<Order>;
|
|
2683
|
-
/**
|
|
2684
|
-
* 重置数据
|
|
2685
|
-
*/
|
|
2686
|
-
reset(): void;
|
|
2687
|
-
/**
|
|
2688
|
-
* 保存
|
|
2689
|
-
*/
|
|
2690
|
-
save(): Promise<Order>;
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
/**
|
|
2694
|
-
* 身份证
|
|
2695
|
-
*/
|
|
2696
|
-
export declare class IdCard extends EntityBase implements IEntity {
|
|
2697
|
-
static [ENTITY_STATIC_TYPES]: IdCardStaticTypes;
|
|
2698
|
-
/**
|
|
2699
|
-
* 持有人
|
|
2700
|
-
*/
|
|
2701
|
-
readonly owner$: RelationEntityObservable<typeof User>;
|
|
2702
|
-
/**
|
|
2703
|
-
* 身份证号码
|
|
2704
|
-
*/
|
|
2705
|
-
code: string;
|
|
2706
|
-
/**
|
|
2707
|
-
* 持有人 id
|
|
2708
|
-
*/
|
|
2709
|
-
ownerId: UUID;
|
|
2710
|
-
/**
|
|
2711
|
-
* 初始化数据
|
|
2712
|
-
* @param initData 初始化数据
|
|
2713
|
-
*/
|
|
2714
|
-
constructor(initData?: IdCardInitData);
|
|
2715
|
-
/**
|
|
2716
|
-
* 统计实体数量
|
|
2717
|
-
* @param options 查询选项
|
|
2718
|
-
* @example
|
|
2719
|
-
* IdCard.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2720
|
-
*/
|
|
2721
|
-
static count(options: CountOptions<typeof IdCard,IdCardRuleGroup>): Observable<number>;
|
|
2722
|
-
/**
|
|
2723
|
-
* 查询多个实体
|
|
2724
|
-
* @param options 查询选项
|
|
2725
|
-
* @example
|
|
2726
|
-
* IdCard.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2727
|
-
*/
|
|
2728
|
-
static find(options: FindOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
|
|
2729
|
-
/**
|
|
2730
|
-
* 查询所有实体
|
|
2731
|
-
* @param options 查询选项
|
|
2732
|
-
* @example
|
|
2733
|
-
* IdCard.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2734
|
-
*/
|
|
2735
|
-
static findAll(options: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
|
|
2736
|
-
/**
|
|
2737
|
-
* 游标分页查询
|
|
2738
|
-
* @param options 查询选项
|
|
2739
|
-
* @example
|
|
2740
|
-
* IdCard.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2741
|
-
*/
|
|
2742
|
-
static findByCursor(options: FindByCursorOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
|
|
2743
|
-
/**
|
|
2744
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2745
|
-
* @param options 查询选项
|
|
2746
|
-
* @example
|
|
2747
|
-
* IdCard.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2748
|
-
*/
|
|
2749
|
-
static findOne(options: FindOneOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard | undefined>;
|
|
2750
|
-
/**
|
|
2751
|
-
* 查询单个实体,未找到时抛出错误
|
|
2752
|
-
* @param options 查询选项
|
|
2753
|
-
* @example
|
|
2754
|
-
* IdCard.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2755
|
-
*/
|
|
2756
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard>;
|
|
2757
|
-
/**
|
|
2758
|
-
* 根据 ID 获取单个实体
|
|
2759
|
-
* @param options 查询选项
|
|
2760
|
-
* @example
|
|
2761
|
-
* IdCard.get('123').subscribe(entity => console.log(entity));
|
|
2762
|
-
*/
|
|
2763
|
-
static get(options: UUID): Observable<IdCard>;
|
|
2764
|
-
/**
|
|
2765
|
-
* 删除
|
|
2766
|
-
*/
|
|
2767
|
-
remove(): Promise<IdCard>;
|
|
2768
|
-
/**
|
|
2769
|
-
* 重置数据
|
|
2770
|
-
*/
|
|
2771
|
-
reset(): void;
|
|
2772
|
-
/**
|
|
2773
|
-
* 保存
|
|
2774
|
-
*/
|
|
2775
|
-
save(): Promise<IdCard>;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* 产品分类
|
|
2780
|
-
*/
|
|
2781
|
-
export declare class Category extends EntityBase implements IEntity {
|
|
2782
|
-
static [ENTITY_STATIC_TYPES]: CategoryStaticTypes;
|
|
2783
|
-
/**
|
|
2784
|
-
* 订单项
|
|
2785
|
-
*/
|
|
2786
|
-
readonly orderItems$: RelationEntitiesObservable<OrderItem>;
|
|
2787
|
-
/**
|
|
2788
|
-
* 分类名称
|
|
2789
|
-
*/
|
|
2790
|
-
name: string;
|
|
2791
|
-
/**
|
|
2792
|
-
* 初始化数据
|
|
2793
|
-
* @param initData 初始化数据
|
|
2794
|
-
*/
|
|
2795
|
-
constructor(initData?: CategoryInitData);
|
|
2796
|
-
/**
|
|
2797
|
-
* 统计实体数量
|
|
2798
|
-
* @param options 查询选项
|
|
2799
|
-
* @example
|
|
2800
|
-
* Category.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2801
|
-
*/
|
|
2802
|
-
static count(options: CountOptions<typeof Category,CategoryRuleGroup>): Observable<number>;
|
|
2803
|
-
/**
|
|
2804
|
-
* 查询多个实体
|
|
2805
|
-
* @param options 查询选项
|
|
2806
|
-
* @example
|
|
2807
|
-
* Category.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2808
|
-
*/
|
|
2809
|
-
static find(options: FindOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
|
|
2810
|
-
/**
|
|
2811
|
-
* 查询所有实体
|
|
2812
|
-
* @param options 查询选项
|
|
2813
|
-
* @example
|
|
2814
|
-
* Category.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2815
|
-
*/
|
|
2816
|
-
static findAll(options: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
|
|
2817
|
-
/**
|
|
2818
|
-
* 游标分页查询
|
|
2819
|
-
* @param options 查询选项
|
|
2820
|
-
* @example
|
|
2821
|
-
* Category.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2822
|
-
*/
|
|
2823
|
-
static findByCursor(options: FindByCursorOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
|
|
2824
|
-
/**
|
|
2825
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2826
|
-
* @param options 查询选项
|
|
2827
|
-
* @example
|
|
2828
|
-
* Category.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2829
|
-
*/
|
|
2830
|
-
static findOne(options: FindOneOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category | undefined>;
|
|
2831
|
-
/**
|
|
2832
|
-
* 查询单个实体,未找到时抛出错误
|
|
2833
|
-
* @param options 查询选项
|
|
2834
|
-
* @example
|
|
2835
|
-
* Category.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2836
|
-
*/
|
|
2837
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category>;
|
|
2838
|
-
/**
|
|
2839
|
-
* 根据 ID 获取单个实体
|
|
2840
|
-
* @param options 查询选项
|
|
2841
|
-
* @example
|
|
2842
|
-
* Category.get('123').subscribe(entity => console.log(entity));
|
|
2843
|
-
*/
|
|
2844
|
-
static get(options: UUID): Observable<Category>;
|
|
2845
|
-
/**
|
|
2846
|
-
* 删除
|
|
2847
|
-
*/
|
|
2848
|
-
remove(): Promise<Category>;
|
|
2849
|
-
/**
|
|
2850
|
-
* 重置数据
|
|
2851
|
-
*/
|
|
2852
|
-
reset(): void;
|
|
2853
|
-
/**
|
|
2854
|
-
* 保存
|
|
2855
|
-
*/
|
|
2856
|
-
save(): Promise<Category>;
|
|
2857
|
-
}
|
|
2858
|
-
|
|
2859
|
-
/**
|
|
2860
|
-
* 属性值
|
|
2861
|
-
*/
|
|
2862
|
-
export declare class AttributeValue extends EntityBase implements IEntity {
|
|
2863
|
-
static [ENTITY_STATIC_TYPES]: AttributeValueStaticTypes;
|
|
2864
|
-
/**
|
|
2865
|
-
* 所属属性
|
|
2866
|
-
*/
|
|
2867
|
-
readonly attribute$: RelationEntityObservable<typeof Attribute>;
|
|
2868
|
-
/**
|
|
2869
|
-
* SKU属性值关联
|
|
2870
|
-
*/
|
|
2871
|
-
readonly skuAttributeValues$: RelationEntitiesObservable<SKUAttributes>;
|
|
2872
|
-
/**
|
|
2873
|
-
* 所属属性 id
|
|
2874
|
-
*/
|
|
2875
|
-
attributeId: UUID;
|
|
2876
|
-
/**
|
|
2877
|
-
* 属性值名称
|
|
2878
|
-
*/
|
|
2879
|
-
name: string;
|
|
2880
|
-
/**
|
|
2881
|
-
* 初始化数据
|
|
2882
|
-
* @param initData 初始化数据
|
|
2883
|
-
*/
|
|
2884
|
-
constructor(initData?: AttributeValueInitData);
|
|
2885
|
-
/**
|
|
2886
|
-
* 统计实体数量
|
|
2887
|
-
* @param options 查询选项
|
|
2888
|
-
* @example
|
|
2889
|
-
* AttributeValue.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2890
|
-
*/
|
|
2891
|
-
static count(options: CountOptions<typeof AttributeValue,AttributeValueRuleGroup>): Observable<number>;
|
|
2892
|
-
/**
|
|
2893
|
-
* 查询多个实体
|
|
2894
|
-
* @param options 查询选项
|
|
2895
|
-
* @example
|
|
2896
|
-
* AttributeValue.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2897
|
-
*/
|
|
2898
|
-
static find(options: FindOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
|
|
2899
|
-
/**
|
|
2900
|
-
* 查询所有实体
|
|
2901
|
-
* @param options 查询选项
|
|
2902
|
-
* @example
|
|
2903
|
-
* AttributeValue.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2904
|
-
*/
|
|
2905
|
-
static findAll(options: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
|
|
2906
|
-
/**
|
|
2907
|
-
* 游标分页查询
|
|
2908
|
-
* @param options 查询选项
|
|
2909
|
-
* @example
|
|
2910
|
-
* AttributeValue.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2911
|
-
*/
|
|
2912
|
-
static findByCursor(options: FindByCursorOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
|
|
2913
|
-
/**
|
|
2914
|
-
* 查询单个实体,未找到时返回 undefined
|
|
2915
|
-
* @param options 查询选项
|
|
2916
|
-
* @example
|
|
2917
|
-
* AttributeValue.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2918
|
-
*/
|
|
2919
|
-
static findOne(options: FindOneOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue | undefined>;
|
|
2920
|
-
/**
|
|
2921
|
-
* 查询单个实体,未找到时抛出错误
|
|
2922
|
-
* @param options 查询选项
|
|
2923
|
-
* @example
|
|
2924
|
-
* AttributeValue.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
2925
|
-
*/
|
|
2926
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue>;
|
|
2927
|
-
/**
|
|
2928
|
-
* 根据 ID 获取单个实体
|
|
2929
|
-
* @param options 查询选项
|
|
2930
|
-
* @example
|
|
2931
|
-
* AttributeValue.get('123').subscribe(entity => console.log(entity));
|
|
2932
|
-
*/
|
|
2933
|
-
static get(options: UUID): Observable<AttributeValue>;
|
|
2934
|
-
/**
|
|
2935
|
-
* 删除
|
|
2936
|
-
*/
|
|
2937
|
-
remove(): Promise<AttributeValue>;
|
|
2938
|
-
/**
|
|
2939
|
-
* 重置数据
|
|
2940
|
-
*/
|
|
2941
|
-
reset(): void;
|
|
2942
|
-
/**
|
|
2943
|
-
* 保存
|
|
2944
|
-
*/
|
|
2945
|
-
save(): Promise<AttributeValue>;
|
|
2946
|
-
}
|
|
2947
|
-
|
|
2948
|
-
/**
|
|
2949
|
-
* 属性
|
|
2950
|
-
*/
|
|
2951
|
-
export declare class Attribute extends EntityBase implements IEntity {
|
|
2952
|
-
static [ENTITY_STATIC_TYPES]: AttributeStaticTypes;
|
|
2953
|
-
/**
|
|
2954
|
-
* SKU属性关联
|
|
2955
|
-
*/
|
|
2956
|
-
readonly skuAttributes$: RelationEntitiesObservable<SKUAttributes>;
|
|
2957
|
-
/**
|
|
2958
|
-
* 属性值列表
|
|
2959
|
-
*/
|
|
2960
|
-
readonly values$: RelationEntitiesObservable<AttributeValue>;
|
|
2961
|
-
/**
|
|
2962
|
-
* 属性名称
|
|
2963
|
-
*/
|
|
2964
|
-
name: string;
|
|
2965
|
-
/**
|
|
2966
|
-
* 初始化数据
|
|
2967
|
-
* @param initData 初始化数据
|
|
2968
|
-
*/
|
|
2969
|
-
constructor(initData?: AttributeInitData);
|
|
2970
|
-
/**
|
|
2971
|
-
* 统计实体数量
|
|
2972
|
-
* @param options 查询选项
|
|
2973
|
-
* @example
|
|
2974
|
-
* Attribute.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));
|
|
2975
|
-
*/
|
|
2976
|
-
static count(options: CountOptions<typeof Attribute,AttributeRuleGroup>): Observable<number>;
|
|
2977
|
-
/**
|
|
2978
|
-
* 查询多个实体
|
|
2979
|
-
* @param options 查询选项
|
|
2980
|
-
* @example
|
|
2981
|
-
* Attribute.find({ where: { combinator: 'and', rules: [] }] }).subscribe(list => console.log(list));
|
|
2982
|
-
*/
|
|
2983
|
-
static find(options: FindOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
|
|
2984
|
-
/**
|
|
2985
|
-
* 查询所有实体
|
|
2986
|
-
* @param options 查询选项
|
|
2987
|
-
* @example
|
|
2988
|
-
* Attribute.findAll({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2989
|
-
*/
|
|
2990
|
-
static findAll(options: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
|
|
2991
|
-
/**
|
|
2992
|
-
* 游标分页查询
|
|
2993
|
-
* @param options 查询选项
|
|
2994
|
-
* @example
|
|
2995
|
-
* Attribute.findByCursor({ where: { combinator: 'and', rules: [] } }).subscribe(list => console.log(list));
|
|
2996
|
-
*/
|
|
2997
|
-
static findByCursor(options: FindByCursorOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
|
|
2998
|
-
/**
|
|
2999
|
-
* 查询单个实体,未找到时返回 undefined
|
|
3000
|
-
* @param options 查询选项
|
|
3001
|
-
* @example
|
|
3002
|
-
* Attribute.findOne({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
3003
|
-
*/
|
|
3004
|
-
static findOne(options: FindOneOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute | undefined>;
|
|
3005
|
-
/**
|
|
3006
|
-
* 查询单个实体,未找到时抛出错误
|
|
3007
|
-
* @param options 查询选项
|
|
3008
|
-
* @example
|
|
3009
|
-
* Attribute.findOneOrFail({ where: { combinator: 'and', rules: [] } }).subscribe(entity => console.log(entity));
|
|
3010
|
-
*/
|
|
3011
|
-
static findOneOrFail(options: FindOneOrFailOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute>;
|
|
3012
|
-
/**
|
|
3013
|
-
* 根据 ID 获取单个实体
|
|
3014
|
-
* @param options 查询选项
|
|
3015
|
-
* @example
|
|
3016
|
-
* Attribute.get('123').subscribe(entity => console.log(entity));
|
|
3017
|
-
*/
|
|
3018
|
-
static get(options: UUID): Observable<Attribute>;
|
|
3019
|
-
/**
|
|
3020
|
-
* 删除
|
|
3021
|
-
*/
|
|
3022
|
-
remove(): Promise<Attribute>;
|
|
3023
|
-
/**
|
|
3024
|
-
* 重置数据
|
|
3025
|
-
*/
|
|
3026
|
-
reset(): void;
|
|
3027
|
-
/**
|
|
3028
|
-
* 保存
|
|
3029
|
-
*/
|
|
3030
|
-
save(): Promise<Attribute>;
|
|
3031
|
-
}
|
|
3032
|
-
|
|
3033
75
|
export declare const ENTITIES: EntityType[];
|
|
3034
76
|
|