@aiao/rxdb-test 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -1
- package/dist/entities/TypeDemo.d.ts +75 -50
- package/dist/entities/TypeDemo.js +43 -7
- package/dist/shop/Attribute.d.ts +634 -1
- package/dist/shop/Attribute.js +3 -3
- package/dist/shop/AttributeValue.d.ts +634 -1
- package/dist/shop/AttributeValue.js +3 -3
- package/dist/shop/Category.d.ts +494 -2
- package/dist/shop/Category.js +13 -2
- package/dist/shop/IdCard.d.ts +412 -2
- package/dist/shop/IdCard.js +2 -2
- package/dist/shop/Order.d.ts +423 -3
- package/dist/shop/Order.js +11 -3
- package/dist/shop/OrderItem.d.ts +374 -2
- package/dist/shop/OrderItem.js +15 -3
- package/dist/shop/Product.d.ts +443 -3
- package/dist/shop/Product.js +13 -2
- package/dist/shop/SKU.d.ts +294 -3
- package/dist/shop/SKU.js +15 -4
- package/dist/shop/SKUAttributes.d.ts +320 -1
- package/dist/shop/SKUAttributes.js +5 -5
- package/dist/shop/User.d.ts +412 -2
- package/dist/shop/User.js +3 -3
- package/dist/shop/index.d.ts +30 -10
- package/package.json +3 -3
package/dist/shop/SKU.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, IEntity, ITreeEntity, NumberRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationExistsRules, RelationStringRules, RelationUUIDRules, RuleGroupBase, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
|
|
1
|
+
import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, IEntity, ITreeEntity, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationExistsRules, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupBase, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -73,6 +73,81 @@ declare type SKURule = UUIDRules<SKU, 'id'>
|
|
|
73
73
|
| RelationDateRules<'attributes.value.skuAttributeValues.updatedAt', Date>
|
|
74
74
|
| RelationStringRules<'attributes.value.skuAttributeValues.createdBy', string | null>
|
|
75
75
|
| RelationStringRules<'attributes.value.skuAttributeValues.updatedBy', string | null>
|
|
76
|
+
| RelationExistsRules<'orderItems', OrderItemRuleGroup>
|
|
77
|
+
| RelationUUIDRules<'orderItems.id', UUID>
|
|
78
|
+
| RelationDateRules<'orderItems.createdAt', Date>
|
|
79
|
+
| RelationDateRules<'orderItems.updatedAt', Date>
|
|
80
|
+
| RelationStringRules<'orderItems.createdBy', string | null>
|
|
81
|
+
| RelationStringRules<'orderItems.updatedBy', string | null>
|
|
82
|
+
| RelationStringRules<'orderItems.productName', string>
|
|
83
|
+
| RelationNumberRules<'orderItems.quantity', number>
|
|
84
|
+
| RelationNumberRules<'orderItems.price', number>
|
|
85
|
+
| UUIDRules<OrderItem, 'orderId'>
|
|
86
|
+
| UUIDRules<OrderItem, 'skuId'>
|
|
87
|
+
| RelationUUIDRules<'orderItems.order.id', UUID>
|
|
88
|
+
| RelationDateRules<'orderItems.order.createdAt', Date>
|
|
89
|
+
| RelationDateRules<'orderItems.order.updatedAt', Date>
|
|
90
|
+
| RelationStringRules<'orderItems.order.createdBy', string | null>
|
|
91
|
+
| RelationStringRules<'orderItems.order.updatedBy', string | null>
|
|
92
|
+
| RelationStringRules<'orderItems.order.number', string>
|
|
93
|
+
| RelationNumberRules<'orderItems.order.amount', number>
|
|
94
|
+
| RelationStringRules<'orderItems.order.status', string | null>
|
|
95
|
+
| UUIDRules<Order, 'ownerId'>
|
|
96
|
+
| RelationUUIDRules<'orderItems.order.owner.id', UUID>
|
|
97
|
+
| RelationDateRules<'orderItems.order.owner.createdAt', Date>
|
|
98
|
+
| RelationDateRules<'orderItems.order.owner.updatedAt', Date>
|
|
99
|
+
| RelationStringRules<'orderItems.order.owner.createdBy', string | null>
|
|
100
|
+
| RelationStringRules<'orderItems.order.owner.updatedBy', string | null>
|
|
101
|
+
| RelationStringRules<'orderItems.order.owner.name', string>
|
|
102
|
+
| RelationBooleanRules<'orderItems.order.owner.married', boolean>
|
|
103
|
+
| RelationNumberRules<'orderItems.order.owner.age', number>
|
|
104
|
+
| RelationStringRules<'orderItems.order.owner.gender', string | null>
|
|
105
|
+
| UUIDRules<User, 'idCardId'>
|
|
106
|
+
| RelationUUIDRules<'orderItems.order.owner.idCard.id', UUID>
|
|
107
|
+
| RelationDateRules<'orderItems.order.owner.idCard.createdAt', Date>
|
|
108
|
+
| RelationDateRules<'orderItems.order.owner.idCard.updatedAt', Date>
|
|
109
|
+
| RelationStringRules<'orderItems.order.owner.idCard.createdBy', string | null>
|
|
110
|
+
| RelationStringRules<'orderItems.order.owner.idCard.updatedBy', string | null>
|
|
111
|
+
| RelationStringRules<'orderItems.order.owner.idCard.code', string>
|
|
112
|
+
| UUIDRules<IdCard, 'ownerId'>
|
|
113
|
+
| RelationUUIDRules<'orderItems.order.owner.idCard.owner.id', UUID>
|
|
114
|
+
| RelationDateRules<'orderItems.order.owner.idCard.owner.createdAt', Date>
|
|
115
|
+
| RelationDateRules<'orderItems.order.owner.idCard.owner.updatedAt', Date>
|
|
116
|
+
| RelationStringRules<'orderItems.order.owner.idCard.owner.createdBy', string | null>
|
|
117
|
+
| RelationStringRules<'orderItems.order.owner.idCard.owner.updatedBy', string | null>
|
|
118
|
+
| RelationStringRules<'orderItems.order.owner.idCard.owner.name', string>
|
|
119
|
+
| RelationBooleanRules<'orderItems.order.owner.idCard.owner.married', boolean>
|
|
120
|
+
| RelationNumberRules<'orderItems.order.owner.idCard.owner.age', number>
|
|
121
|
+
| RelationStringRules<'orderItems.order.owner.idCard.owner.gender', string | null>
|
|
122
|
+
| RelationUUIDRules<'orderItems.order.owner.orders.id', UUID>
|
|
123
|
+
| RelationDateRules<'orderItems.order.owner.orders.createdAt', Date>
|
|
124
|
+
| RelationDateRules<'orderItems.order.owner.orders.updatedAt', Date>
|
|
125
|
+
| RelationStringRules<'orderItems.order.owner.orders.createdBy', string | null>
|
|
126
|
+
| RelationStringRules<'orderItems.order.owner.orders.updatedBy', string | null>
|
|
127
|
+
| RelationStringRules<'orderItems.order.owner.orders.number', string>
|
|
128
|
+
| RelationNumberRules<'orderItems.order.owner.orders.amount', number>
|
|
129
|
+
| RelationStringRules<'orderItems.order.owner.orders.status', string | null>
|
|
130
|
+
| RelationUUIDRules<'orderItems.order.items.id', UUID>
|
|
131
|
+
| RelationDateRules<'orderItems.order.items.createdAt', Date>
|
|
132
|
+
| RelationDateRules<'orderItems.order.items.updatedAt', Date>
|
|
133
|
+
| RelationStringRules<'orderItems.order.items.createdBy', string | null>
|
|
134
|
+
| RelationStringRules<'orderItems.order.items.updatedBy', string | null>
|
|
135
|
+
| RelationStringRules<'orderItems.order.items.productName', string>
|
|
136
|
+
| RelationNumberRules<'orderItems.order.items.quantity', number>
|
|
137
|
+
| RelationNumberRules<'orderItems.order.items.price', number>
|
|
138
|
+
| RelationUUIDRules<'orderItems.categories.id', UUID>
|
|
139
|
+
| RelationDateRules<'orderItems.categories.createdAt', Date>
|
|
140
|
+
| RelationDateRules<'orderItems.categories.updatedAt', Date>
|
|
141
|
+
| RelationStringRules<'orderItems.categories.createdBy', string | null>
|
|
142
|
+
| RelationStringRules<'orderItems.categories.updatedBy', string | null>
|
|
143
|
+
| RelationStringRules<'orderItems.categories.name', string>
|
|
144
|
+
| RelationUUIDRules<'orderItems.categories.products.id', UUID>
|
|
145
|
+
| RelationDateRules<'orderItems.categories.products.createdAt', Date>
|
|
146
|
+
| RelationDateRules<'orderItems.categories.products.updatedAt', Date>
|
|
147
|
+
| RelationStringRules<'orderItems.categories.products.createdBy', string | null>
|
|
148
|
+
| RelationStringRules<'orderItems.categories.products.updatedBy', string | null>
|
|
149
|
+
| RelationStringRules<'orderItems.categories.products.name', string>
|
|
150
|
+
| RelationStringRules<'orderItems.categories.products.description', string | null>
|
|
76
151
|
| RelationExistsRules<'product', ProductRuleGroup>
|
|
77
152
|
| RelationUUIDRules<'product.id', UUID>
|
|
78
153
|
| RelationDateRules<'product.createdAt', Date>
|
|
@@ -80,7 +155,69 @@ declare type SKURule = UUIDRules<SKU, 'id'>
|
|
|
80
155
|
| RelationStringRules<'product.createdBy', string | null>
|
|
81
156
|
| RelationStringRules<'product.updatedBy', string | null>
|
|
82
157
|
| RelationStringRules<'product.name', string>
|
|
83
|
-
| RelationStringRules<'product.description', string | null
|
|
158
|
+
| RelationStringRules<'product.description', string | null>
|
|
159
|
+
| RelationUUIDRules<'product.categories.id', UUID>
|
|
160
|
+
| RelationDateRules<'product.categories.createdAt', Date>
|
|
161
|
+
| RelationDateRules<'product.categories.updatedAt', Date>
|
|
162
|
+
| RelationStringRules<'product.categories.createdBy', string | null>
|
|
163
|
+
| RelationStringRules<'product.categories.updatedBy', string | null>
|
|
164
|
+
| RelationStringRules<'product.categories.name', string>
|
|
165
|
+
| RelationUUIDRules<'product.categories.orderItems.id', UUID>
|
|
166
|
+
| RelationDateRules<'product.categories.orderItems.createdAt', Date>
|
|
167
|
+
| RelationDateRules<'product.categories.orderItems.updatedAt', Date>
|
|
168
|
+
| RelationStringRules<'product.categories.orderItems.createdBy', string | null>
|
|
169
|
+
| RelationStringRules<'product.categories.orderItems.updatedBy', string | null>
|
|
170
|
+
| RelationStringRules<'product.categories.orderItems.productName', string>
|
|
171
|
+
| RelationNumberRules<'product.categories.orderItems.quantity', number>
|
|
172
|
+
| RelationNumberRules<'product.categories.orderItems.price', number>
|
|
173
|
+
| RelationUUIDRules<'product.categories.orderItems.order.id', UUID>
|
|
174
|
+
| RelationDateRules<'product.categories.orderItems.order.createdAt', Date>
|
|
175
|
+
| RelationDateRules<'product.categories.orderItems.order.updatedAt', Date>
|
|
176
|
+
| RelationStringRules<'product.categories.orderItems.order.createdBy', string | null>
|
|
177
|
+
| RelationStringRules<'product.categories.orderItems.order.updatedBy', string | null>
|
|
178
|
+
| RelationStringRules<'product.categories.orderItems.order.number', string>
|
|
179
|
+
| RelationNumberRules<'product.categories.orderItems.order.amount', number>
|
|
180
|
+
| RelationStringRules<'product.categories.orderItems.order.status', string | null>
|
|
181
|
+
| RelationUUIDRules<'product.categories.orderItems.order.owner.id', UUID>
|
|
182
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.createdAt', Date>
|
|
183
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.updatedAt', Date>
|
|
184
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.createdBy', string | null>
|
|
185
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.updatedBy', string | null>
|
|
186
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.name', string>
|
|
187
|
+
| RelationBooleanRules<'product.categories.orderItems.order.owner.married', boolean>
|
|
188
|
+
| RelationNumberRules<'product.categories.orderItems.order.owner.age', number>
|
|
189
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.gender', string | null>
|
|
190
|
+
| RelationUUIDRules<'product.categories.orderItems.order.owner.idCard.id', UUID>
|
|
191
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.idCard.createdAt', Date>
|
|
192
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.idCard.updatedAt', Date>
|
|
193
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.createdBy', string | null>
|
|
194
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.updatedBy', string | null>
|
|
195
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.code', string>
|
|
196
|
+
| RelationUUIDRules<'product.categories.orderItems.order.owner.idCard.owner.id', UUID>
|
|
197
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.idCard.owner.createdAt', Date>
|
|
198
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.idCard.owner.updatedAt', Date>
|
|
199
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.owner.createdBy', string | null>
|
|
200
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.owner.updatedBy', string | null>
|
|
201
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.owner.name', string>
|
|
202
|
+
| RelationBooleanRules<'product.categories.orderItems.order.owner.idCard.owner.married', boolean>
|
|
203
|
+
| RelationNumberRules<'product.categories.orderItems.order.owner.idCard.owner.age', number>
|
|
204
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.idCard.owner.gender', string | null>
|
|
205
|
+
| RelationUUIDRules<'product.categories.orderItems.order.owner.orders.id', UUID>
|
|
206
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.orders.createdAt', Date>
|
|
207
|
+
| RelationDateRules<'product.categories.orderItems.order.owner.orders.updatedAt', Date>
|
|
208
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.orders.createdBy', string | null>
|
|
209
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.orders.updatedBy', string | null>
|
|
210
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.orders.number', string>
|
|
211
|
+
| RelationNumberRules<'product.categories.orderItems.order.owner.orders.amount', number>
|
|
212
|
+
| RelationStringRules<'product.categories.orderItems.order.owner.orders.status', string | null>
|
|
213
|
+
| RelationUUIDRules<'product.categories.orderItems.order.items.id', UUID>
|
|
214
|
+
| RelationDateRules<'product.categories.orderItems.order.items.createdAt', Date>
|
|
215
|
+
| RelationDateRules<'product.categories.orderItems.order.items.updatedAt', Date>
|
|
216
|
+
| RelationStringRules<'product.categories.orderItems.order.items.createdBy', string | null>
|
|
217
|
+
| RelationStringRules<'product.categories.orderItems.order.items.updatedBy', string | null>
|
|
218
|
+
| RelationStringRules<'product.categories.orderItems.order.items.productName', string>
|
|
219
|
+
| RelationNumberRules<'product.categories.orderItems.order.items.quantity', number>
|
|
220
|
+
| RelationNumberRules<'product.categories.orderItems.order.items.price', number>;
|
|
84
221
|
|
|
85
222
|
/**
|
|
86
223
|
* RuleGroupBase
|
|
@@ -169,6 +306,85 @@ export declare type SKURuleGroup = RuleGroupBase<typeof SKU,
|
|
|
169
306
|
|'skuId'
|
|
170
307
|
|'attributeId'
|
|
171
308
|
|'valueId'
|
|
309
|
+
|'orderItems'
|
|
310
|
+
|'orderItems.id'
|
|
311
|
+
|'orderItems.createdAt'
|
|
312
|
+
|'orderItems.updatedAt'
|
|
313
|
+
|'orderItems.createdBy'
|
|
314
|
+
|'orderItems.updatedBy'
|
|
315
|
+
|'orderItems.productName'
|
|
316
|
+
|'orderItems.quantity'
|
|
317
|
+
|'orderItems.price'
|
|
318
|
+
|'orderId'
|
|
319
|
+
|'skuId'
|
|
320
|
+
|'orderItems.order.id'
|
|
321
|
+
|'orderItems.order.createdAt'
|
|
322
|
+
|'orderItems.order.updatedAt'
|
|
323
|
+
|'orderItems.order.createdBy'
|
|
324
|
+
|'orderItems.order.updatedBy'
|
|
325
|
+
|'orderItems.order.number'
|
|
326
|
+
|'orderItems.order.amount'
|
|
327
|
+
|'orderItems.order.status'
|
|
328
|
+
|'ownerId'
|
|
329
|
+
|'orderItems.order.owner.id'
|
|
330
|
+
|'orderItems.order.owner.createdAt'
|
|
331
|
+
|'orderItems.order.owner.updatedAt'
|
|
332
|
+
|'orderItems.order.owner.createdBy'
|
|
333
|
+
|'orderItems.order.owner.updatedBy'
|
|
334
|
+
|'orderItems.order.owner.name'
|
|
335
|
+
|'orderItems.order.owner.married'
|
|
336
|
+
|'orderItems.order.owner.age'
|
|
337
|
+
|'orderItems.order.owner.gender'
|
|
338
|
+
|'idCardId'
|
|
339
|
+
|'orderItems.order.owner.idCard.id'
|
|
340
|
+
|'orderItems.order.owner.idCard.createdAt'
|
|
341
|
+
|'orderItems.order.owner.idCard.updatedAt'
|
|
342
|
+
|'orderItems.order.owner.idCard.createdBy'
|
|
343
|
+
|'orderItems.order.owner.idCard.updatedBy'
|
|
344
|
+
|'orderItems.order.owner.idCard.code'
|
|
345
|
+
|'ownerId'
|
|
346
|
+
|'orderItems.order.owner.idCard.owner.id'
|
|
347
|
+
|'orderItems.order.owner.idCard.owner.createdAt'
|
|
348
|
+
|'orderItems.order.owner.idCard.owner.updatedAt'
|
|
349
|
+
|'orderItems.order.owner.idCard.owner.createdBy'
|
|
350
|
+
|'orderItems.order.owner.idCard.owner.updatedBy'
|
|
351
|
+
|'orderItems.order.owner.idCard.owner.name'
|
|
352
|
+
|'orderItems.order.owner.idCard.owner.married'
|
|
353
|
+
|'orderItems.order.owner.idCard.owner.age'
|
|
354
|
+
|'orderItems.order.owner.idCard.owner.gender'
|
|
355
|
+
|'idCardId'
|
|
356
|
+
|'orderItems.order.owner.orders.id'
|
|
357
|
+
|'orderItems.order.owner.orders.createdAt'
|
|
358
|
+
|'orderItems.order.owner.orders.updatedAt'
|
|
359
|
+
|'orderItems.order.owner.orders.createdBy'
|
|
360
|
+
|'orderItems.order.owner.orders.updatedBy'
|
|
361
|
+
|'orderItems.order.owner.orders.number'
|
|
362
|
+
|'orderItems.order.owner.orders.amount'
|
|
363
|
+
|'orderItems.order.owner.orders.status'
|
|
364
|
+
|'ownerId'
|
|
365
|
+
|'orderItems.order.items.id'
|
|
366
|
+
|'orderItems.order.items.createdAt'
|
|
367
|
+
|'orderItems.order.items.updatedAt'
|
|
368
|
+
|'orderItems.order.items.createdBy'
|
|
369
|
+
|'orderItems.order.items.updatedBy'
|
|
370
|
+
|'orderItems.order.items.productName'
|
|
371
|
+
|'orderItems.order.items.quantity'
|
|
372
|
+
|'orderItems.order.items.price'
|
|
373
|
+
|'orderId'
|
|
374
|
+
|'skuId'
|
|
375
|
+
|'orderItems.categories.id'
|
|
376
|
+
|'orderItems.categories.createdAt'
|
|
377
|
+
|'orderItems.categories.updatedAt'
|
|
378
|
+
|'orderItems.categories.createdBy'
|
|
379
|
+
|'orderItems.categories.updatedBy'
|
|
380
|
+
|'orderItems.categories.name'
|
|
381
|
+
|'orderItems.categories.products.id'
|
|
382
|
+
|'orderItems.categories.products.createdAt'
|
|
383
|
+
|'orderItems.categories.products.updatedAt'
|
|
384
|
+
|'orderItems.categories.products.createdBy'
|
|
385
|
+
|'orderItems.categories.products.updatedBy'
|
|
386
|
+
|'orderItems.categories.products.name'
|
|
387
|
+
|'orderItems.categories.products.description'
|
|
172
388
|
|'product'
|
|
173
389
|
|'product.id'
|
|
174
390
|
|'product.createdAt'
|
|
@@ -176,7 +392,78 @@ export declare type SKURuleGroup = RuleGroupBase<typeof SKU,
|
|
|
176
392
|
|'product.createdBy'
|
|
177
393
|
|'product.updatedBy'
|
|
178
394
|
|'product.name'
|
|
179
|
-
|'product.description'
|
|
395
|
+
|'product.description'
|
|
396
|
+
|'product.categories.id'
|
|
397
|
+
|'product.categories.createdAt'
|
|
398
|
+
|'product.categories.updatedAt'
|
|
399
|
+
|'product.categories.createdBy'
|
|
400
|
+
|'product.categories.updatedBy'
|
|
401
|
+
|'product.categories.name'
|
|
402
|
+
|'product.categories.orderItems.id'
|
|
403
|
+
|'product.categories.orderItems.createdAt'
|
|
404
|
+
|'product.categories.orderItems.updatedAt'
|
|
405
|
+
|'product.categories.orderItems.createdBy'
|
|
406
|
+
|'product.categories.orderItems.updatedBy'
|
|
407
|
+
|'product.categories.orderItems.productName'
|
|
408
|
+
|'product.categories.orderItems.quantity'
|
|
409
|
+
|'product.categories.orderItems.price'
|
|
410
|
+
|'orderId'
|
|
411
|
+
|'skuId'
|
|
412
|
+
|'product.categories.orderItems.order.id'
|
|
413
|
+
|'product.categories.orderItems.order.createdAt'
|
|
414
|
+
|'product.categories.orderItems.order.updatedAt'
|
|
415
|
+
|'product.categories.orderItems.order.createdBy'
|
|
416
|
+
|'product.categories.orderItems.order.updatedBy'
|
|
417
|
+
|'product.categories.orderItems.order.number'
|
|
418
|
+
|'product.categories.orderItems.order.amount'
|
|
419
|
+
|'product.categories.orderItems.order.status'
|
|
420
|
+
|'ownerId'
|
|
421
|
+
|'product.categories.orderItems.order.owner.id'
|
|
422
|
+
|'product.categories.orderItems.order.owner.createdAt'
|
|
423
|
+
|'product.categories.orderItems.order.owner.updatedAt'
|
|
424
|
+
|'product.categories.orderItems.order.owner.createdBy'
|
|
425
|
+
|'product.categories.orderItems.order.owner.updatedBy'
|
|
426
|
+
|'product.categories.orderItems.order.owner.name'
|
|
427
|
+
|'product.categories.orderItems.order.owner.married'
|
|
428
|
+
|'product.categories.orderItems.order.owner.age'
|
|
429
|
+
|'product.categories.orderItems.order.owner.gender'
|
|
430
|
+
|'idCardId'
|
|
431
|
+
|'product.categories.orderItems.order.owner.idCard.id'
|
|
432
|
+
|'product.categories.orderItems.order.owner.idCard.createdAt'
|
|
433
|
+
|'product.categories.orderItems.order.owner.idCard.updatedAt'
|
|
434
|
+
|'product.categories.orderItems.order.owner.idCard.createdBy'
|
|
435
|
+
|'product.categories.orderItems.order.owner.idCard.updatedBy'
|
|
436
|
+
|'product.categories.orderItems.order.owner.idCard.code'
|
|
437
|
+
|'ownerId'
|
|
438
|
+
|'product.categories.orderItems.order.owner.idCard.owner.id'
|
|
439
|
+
|'product.categories.orderItems.order.owner.idCard.owner.createdAt'
|
|
440
|
+
|'product.categories.orderItems.order.owner.idCard.owner.updatedAt'
|
|
441
|
+
|'product.categories.orderItems.order.owner.idCard.owner.createdBy'
|
|
442
|
+
|'product.categories.orderItems.order.owner.idCard.owner.updatedBy'
|
|
443
|
+
|'product.categories.orderItems.order.owner.idCard.owner.name'
|
|
444
|
+
|'product.categories.orderItems.order.owner.idCard.owner.married'
|
|
445
|
+
|'product.categories.orderItems.order.owner.idCard.owner.age'
|
|
446
|
+
|'product.categories.orderItems.order.owner.idCard.owner.gender'
|
|
447
|
+
|'idCardId'
|
|
448
|
+
|'product.categories.orderItems.order.owner.orders.id'
|
|
449
|
+
|'product.categories.orderItems.order.owner.orders.createdAt'
|
|
450
|
+
|'product.categories.orderItems.order.owner.orders.updatedAt'
|
|
451
|
+
|'product.categories.orderItems.order.owner.orders.createdBy'
|
|
452
|
+
|'product.categories.orderItems.order.owner.orders.updatedBy'
|
|
453
|
+
|'product.categories.orderItems.order.owner.orders.number'
|
|
454
|
+
|'product.categories.orderItems.order.owner.orders.amount'
|
|
455
|
+
|'product.categories.orderItems.order.owner.orders.status'
|
|
456
|
+
|'ownerId'
|
|
457
|
+
|'product.categories.orderItems.order.items.id'
|
|
458
|
+
|'product.categories.orderItems.order.items.createdAt'
|
|
459
|
+
|'product.categories.orderItems.order.items.updatedAt'
|
|
460
|
+
|'product.categories.orderItems.order.items.createdBy'
|
|
461
|
+
|'product.categories.orderItems.order.items.updatedBy'
|
|
462
|
+
|'product.categories.orderItems.order.items.productName'
|
|
463
|
+
|'product.categories.orderItems.order.items.quantity'
|
|
464
|
+
|'product.categories.orderItems.order.items.price'
|
|
465
|
+
|'orderId'
|
|
466
|
+
|'skuId',
|
|
180
467
|
SKURule>;
|
|
181
468
|
|
|
182
469
|
/**
|
|
@@ -253,6 +540,10 @@ export declare class SKU extends EntityBase implements IEntity {
|
|
|
253
540
|
* 属性列表
|
|
254
541
|
*/
|
|
255
542
|
readonly attributes$: RelationEntitiesObservable<SKUAttributes>;
|
|
543
|
+
/**
|
|
544
|
+
* 订单项
|
|
545
|
+
*/
|
|
546
|
+
readonly orderItems$: RelationEntitiesObservable<OrderItem>;
|
|
256
547
|
/**
|
|
257
548
|
* 所属产品
|
|
258
549
|
*/
|
package/dist/shop/SKU.js
CHANGED
|
@@ -4,6 +4,7 @@ SKU = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "SKU",
|
|
7
|
+
namespace: "shop",
|
|
7
8
|
tableName: "sku",
|
|
8
9
|
displayName: "库存单元",
|
|
9
10
|
properties: [
|
|
@@ -11,11 +12,12 @@ SKU = __decorateClass(
|
|
|
11
12
|
name: "code",
|
|
12
13
|
type: PropertyType.string,
|
|
13
14
|
displayName: "SKU编码",
|
|
15
|
+
unique: true,
|
|
14
16
|
columnName: "code"
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
19
|
name: "price",
|
|
18
|
-
type: PropertyType.
|
|
20
|
+
type: PropertyType.number,
|
|
19
21
|
displayName: "价格",
|
|
20
22
|
columnName: "price"
|
|
21
23
|
},
|
|
@@ -33,7 +35,17 @@ SKU = __decorateClass(
|
|
|
33
35
|
kind: RelationKind.ONE_TO_MANY,
|
|
34
36
|
mappedEntity: "SKUAttributes",
|
|
35
37
|
mappedProperty: "sku",
|
|
36
|
-
mappedNamespace: "
|
|
38
|
+
mappedNamespace: "shop",
|
|
39
|
+
onDelete: "CASCADE",
|
|
40
|
+
onUpdate: "RESTRICT"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "orderItems",
|
|
44
|
+
displayName: "订单项",
|
|
45
|
+
kind: RelationKind.ONE_TO_MANY,
|
|
46
|
+
mappedEntity: "OrderItem",
|
|
47
|
+
mappedProperty: "sku",
|
|
48
|
+
mappedNamespace: "shop",
|
|
37
49
|
onDelete: "CASCADE",
|
|
38
50
|
onUpdate: "RESTRICT"
|
|
39
51
|
},
|
|
@@ -43,14 +55,13 @@ SKU = __decorateClass(
|
|
|
43
55
|
kind: RelationKind.MANY_TO_ONE,
|
|
44
56
|
mappedEntity: "Product",
|
|
45
57
|
mappedProperty: "skus",
|
|
46
|
-
mappedNamespace: "
|
|
58
|
+
mappedNamespace: "shop",
|
|
47
59
|
onDelete: "RESTRICT",
|
|
48
60
|
onUpdate: "RESTRICT",
|
|
49
61
|
columnName: "productId"
|
|
50
62
|
}
|
|
51
63
|
],
|
|
52
64
|
repository: "Repository",
|
|
53
|
-
namespace: "public",
|
|
54
65
|
indexes: [],
|
|
55
66
|
computedProperties: [],
|
|
56
67
|
extends: [
|