@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/OrderItem.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
|
|
|
13
13
|
| NumberRules<OrderItem, 'quantity'>
|
|
14
14
|
| NumberRules<OrderItem, 'price'>
|
|
15
15
|
| UUIDRules<OrderItem, 'orderId'>
|
|
16
|
+
| UUIDRules<OrderItem, 'skuId'>
|
|
16
17
|
| RelationExistsRules<'order', OrderRuleGroup>
|
|
17
18
|
| RelationUUIDRules<'order.id', UUID>
|
|
18
19
|
| RelationDateRules<'order.createdAt', Date>
|
|
@@ -21,6 +22,7 @@ declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
|
|
|
21
22
|
| RelationStringRules<'order.updatedBy', string | null>
|
|
22
23
|
| RelationStringRules<'order.number', string>
|
|
23
24
|
| RelationNumberRules<'order.amount', number>
|
|
25
|
+
| RelationStringRules<'order.status', string | null>
|
|
24
26
|
| UUIDRules<Order, 'ownerId'>
|
|
25
27
|
| RelationUUIDRules<'order.owner.id', UUID>
|
|
26
28
|
| RelationDateRules<'order.owner.createdAt', Date>
|
|
@@ -55,13 +57,174 @@ declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
|
|
|
55
57
|
| RelationStringRules<'order.owner.orders.updatedBy', string | null>
|
|
56
58
|
| RelationStringRules<'order.owner.orders.number', string>
|
|
57
59
|
| RelationNumberRules<'order.owner.orders.amount', number>
|
|
60
|
+
| RelationStringRules<'order.owner.orders.status', string | null>
|
|
61
|
+
| RelationExistsRules<'sku', SKURuleGroup>
|
|
62
|
+
| RelationUUIDRules<'sku.id', UUID>
|
|
63
|
+
| RelationDateRules<'sku.createdAt', Date>
|
|
64
|
+
| RelationDateRules<'sku.updatedAt', Date>
|
|
65
|
+
| RelationStringRules<'sku.createdBy', string | null>
|
|
66
|
+
| RelationStringRules<'sku.updatedBy', string | null>
|
|
67
|
+
| RelationStringRules<'sku.code', string>
|
|
68
|
+
| RelationNumberRules<'sku.price', number>
|
|
69
|
+
| RelationNumberRules<'sku.stock', number>
|
|
70
|
+
| UUIDRules<SKU, 'productId'>
|
|
71
|
+
| RelationUUIDRules<'sku.attributes.id', UUID>
|
|
72
|
+
| RelationDateRules<'sku.attributes.createdAt', Date>
|
|
73
|
+
| RelationDateRules<'sku.attributes.updatedAt', Date>
|
|
74
|
+
| RelationStringRules<'sku.attributes.createdBy', string | null>
|
|
75
|
+
| RelationStringRules<'sku.attributes.updatedBy', string | null>
|
|
76
|
+
| UUIDRules<SKUAttributes, 'skuId'>
|
|
77
|
+
| UUIDRules<SKUAttributes, 'attributeId'>
|
|
78
|
+
| UUIDRules<SKUAttributes, 'valueId'>
|
|
79
|
+
| RelationUUIDRules<'sku.attributes.attribute.id', UUID>
|
|
80
|
+
| RelationDateRules<'sku.attributes.attribute.createdAt', Date>
|
|
81
|
+
| RelationDateRules<'sku.attributes.attribute.updatedAt', Date>
|
|
82
|
+
| RelationStringRules<'sku.attributes.attribute.createdBy', string | null>
|
|
83
|
+
| RelationStringRules<'sku.attributes.attribute.updatedBy', string | null>
|
|
84
|
+
| RelationStringRules<'sku.attributes.attribute.name', string>
|
|
85
|
+
| RelationUUIDRules<'sku.attributes.attribute.values.id', UUID>
|
|
86
|
+
| RelationDateRules<'sku.attributes.attribute.values.createdAt', Date>
|
|
87
|
+
| RelationDateRules<'sku.attributes.attribute.values.updatedAt', Date>
|
|
88
|
+
| RelationStringRules<'sku.attributes.attribute.values.createdBy', string | null>
|
|
89
|
+
| RelationStringRules<'sku.attributes.attribute.values.updatedBy', string | null>
|
|
90
|
+
| RelationStringRules<'sku.attributes.attribute.values.name', string>
|
|
91
|
+
| UUIDRules<AttributeValue, 'attributeId'>
|
|
92
|
+
| RelationUUIDRules<'sku.attributes.attribute.values.skuAttributeValues.id', UUID>
|
|
93
|
+
| RelationDateRules<'sku.attributes.attribute.values.skuAttributeValues.createdAt', Date>
|
|
94
|
+
| RelationDateRules<'sku.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
|
|
95
|
+
| RelationStringRules<'sku.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
|
|
96
|
+
| RelationStringRules<'sku.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
|
|
97
|
+
| RelationUUIDRules<'sku.attributes.attribute.skuAttributes.id', UUID>
|
|
98
|
+
| RelationDateRules<'sku.attributes.attribute.skuAttributes.createdAt', Date>
|
|
99
|
+
| RelationDateRules<'sku.attributes.attribute.skuAttributes.updatedAt', Date>
|
|
100
|
+
| RelationStringRules<'sku.attributes.attribute.skuAttributes.createdBy', string | null>
|
|
101
|
+
| RelationStringRules<'sku.attributes.attribute.skuAttributes.updatedBy', string | null>
|
|
102
|
+
| RelationUUIDRules<'sku.attributes.value.id', UUID>
|
|
103
|
+
| RelationDateRules<'sku.attributes.value.createdAt', Date>
|
|
104
|
+
| RelationDateRules<'sku.attributes.value.updatedAt', Date>
|
|
105
|
+
| RelationStringRules<'sku.attributes.value.createdBy', string | null>
|
|
106
|
+
| RelationStringRules<'sku.attributes.value.updatedBy', string | null>
|
|
107
|
+
| RelationStringRules<'sku.attributes.value.name', string>
|
|
108
|
+
| RelationUUIDRules<'sku.attributes.value.attribute.id', UUID>
|
|
109
|
+
| RelationDateRules<'sku.attributes.value.attribute.createdAt', Date>
|
|
110
|
+
| RelationDateRules<'sku.attributes.value.attribute.updatedAt', Date>
|
|
111
|
+
| RelationStringRules<'sku.attributes.value.attribute.createdBy', string | null>
|
|
112
|
+
| RelationStringRules<'sku.attributes.value.attribute.updatedBy', string | null>
|
|
113
|
+
| RelationStringRules<'sku.attributes.value.attribute.name', string>
|
|
114
|
+
| RelationUUIDRules<'sku.attributes.value.attribute.values.id', UUID>
|
|
115
|
+
| RelationDateRules<'sku.attributes.value.attribute.values.createdAt', Date>
|
|
116
|
+
| RelationDateRules<'sku.attributes.value.attribute.values.updatedAt', Date>
|
|
117
|
+
| RelationStringRules<'sku.attributes.value.attribute.values.createdBy', string | null>
|
|
118
|
+
| RelationStringRules<'sku.attributes.value.attribute.values.updatedBy', string | null>
|
|
119
|
+
| RelationStringRules<'sku.attributes.value.attribute.values.name', string>
|
|
120
|
+
| RelationUUIDRules<'sku.attributes.value.attribute.skuAttributes.id', UUID>
|
|
121
|
+
| RelationDateRules<'sku.attributes.value.attribute.skuAttributes.createdAt', Date>
|
|
122
|
+
| RelationDateRules<'sku.attributes.value.attribute.skuAttributes.updatedAt', Date>
|
|
123
|
+
| RelationStringRules<'sku.attributes.value.attribute.skuAttributes.createdBy', string | null>
|
|
124
|
+
| RelationStringRules<'sku.attributes.value.attribute.skuAttributes.updatedBy', string | null>
|
|
125
|
+
| RelationUUIDRules<'sku.attributes.value.skuAttributeValues.id', UUID>
|
|
126
|
+
| RelationDateRules<'sku.attributes.value.skuAttributeValues.createdAt', Date>
|
|
127
|
+
| RelationDateRules<'sku.attributes.value.skuAttributeValues.updatedAt', Date>
|
|
128
|
+
| RelationStringRules<'sku.attributes.value.skuAttributeValues.createdBy', string | null>
|
|
129
|
+
| RelationStringRules<'sku.attributes.value.skuAttributeValues.updatedBy', string | null>
|
|
130
|
+
| RelationUUIDRules<'sku.product.id', UUID>
|
|
131
|
+
| RelationDateRules<'sku.product.createdAt', Date>
|
|
132
|
+
| RelationDateRules<'sku.product.updatedAt', Date>
|
|
133
|
+
| RelationStringRules<'sku.product.createdBy', string | null>
|
|
134
|
+
| RelationStringRules<'sku.product.updatedBy', string | null>
|
|
135
|
+
| RelationStringRules<'sku.product.name', string>
|
|
136
|
+
| RelationStringRules<'sku.product.description', string | null>
|
|
137
|
+
| RelationUUIDRules<'sku.product.skus.id', UUID>
|
|
138
|
+
| RelationDateRules<'sku.product.skus.createdAt', Date>
|
|
139
|
+
| RelationDateRules<'sku.product.skus.updatedAt', Date>
|
|
140
|
+
| RelationStringRules<'sku.product.skus.createdBy', string | null>
|
|
141
|
+
| RelationStringRules<'sku.product.skus.updatedBy', string | null>
|
|
142
|
+
| RelationStringRules<'sku.product.skus.code', string>
|
|
143
|
+
| RelationNumberRules<'sku.product.skus.price', number>
|
|
144
|
+
| RelationNumberRules<'sku.product.skus.stock', number>
|
|
145
|
+
| RelationUUIDRules<'sku.product.categories.id', UUID>
|
|
146
|
+
| RelationDateRules<'sku.product.categories.createdAt', Date>
|
|
147
|
+
| RelationDateRules<'sku.product.categories.updatedAt', Date>
|
|
148
|
+
| RelationStringRules<'sku.product.categories.createdBy', string | null>
|
|
149
|
+
| RelationStringRules<'sku.product.categories.updatedBy', string | null>
|
|
150
|
+
| RelationStringRules<'sku.product.categories.name', string>
|
|
58
151
|
| RelationExistsRules<'categories', CategoryRuleGroup>
|
|
59
152
|
| RelationUUIDRules<'categories.id', UUID>
|
|
60
153
|
| RelationDateRules<'categories.createdAt', Date>
|
|
61
154
|
| RelationDateRules<'categories.updatedAt', Date>
|
|
62
155
|
| RelationStringRules<'categories.createdBy', string | null>
|
|
63
156
|
| RelationStringRules<'categories.updatedBy', string | null>
|
|
64
|
-
| RelationStringRules<'categories.name', string
|
|
157
|
+
| RelationStringRules<'categories.name', string>
|
|
158
|
+
| RelationUUIDRules<'categories.products.id', UUID>
|
|
159
|
+
| RelationDateRules<'categories.products.createdAt', Date>
|
|
160
|
+
| RelationDateRules<'categories.products.updatedAt', Date>
|
|
161
|
+
| RelationStringRules<'categories.products.createdBy', string | null>
|
|
162
|
+
| RelationStringRules<'categories.products.updatedBy', string | null>
|
|
163
|
+
| RelationStringRules<'categories.products.name', string>
|
|
164
|
+
| RelationStringRules<'categories.products.description', string | null>
|
|
165
|
+
| RelationUUIDRules<'categories.products.skus.id', UUID>
|
|
166
|
+
| RelationDateRules<'categories.products.skus.createdAt', Date>
|
|
167
|
+
| RelationDateRules<'categories.products.skus.updatedAt', Date>
|
|
168
|
+
| RelationStringRules<'categories.products.skus.createdBy', string | null>
|
|
169
|
+
| RelationStringRules<'categories.products.skus.updatedBy', string | null>
|
|
170
|
+
| RelationStringRules<'categories.products.skus.code', string>
|
|
171
|
+
| RelationNumberRules<'categories.products.skus.price', number>
|
|
172
|
+
| RelationNumberRules<'categories.products.skus.stock', number>
|
|
173
|
+
| RelationUUIDRules<'categories.products.skus.attributes.id', UUID>
|
|
174
|
+
| RelationDateRules<'categories.products.skus.attributes.createdAt', Date>
|
|
175
|
+
| RelationDateRules<'categories.products.skus.attributes.updatedAt', Date>
|
|
176
|
+
| RelationStringRules<'categories.products.skus.attributes.createdBy', string | null>
|
|
177
|
+
| RelationStringRules<'categories.products.skus.attributes.updatedBy', string | null>
|
|
178
|
+
| RelationUUIDRules<'categories.products.skus.attributes.attribute.id', UUID>
|
|
179
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.createdAt', Date>
|
|
180
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.updatedAt', Date>
|
|
181
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.createdBy', string | null>
|
|
182
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.updatedBy', string | null>
|
|
183
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.name', string>
|
|
184
|
+
| RelationUUIDRules<'categories.products.skus.attributes.attribute.values.id', UUID>
|
|
185
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.values.createdAt', Date>
|
|
186
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.values.updatedAt', Date>
|
|
187
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.values.createdBy', string | null>
|
|
188
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.values.updatedBy', string | null>
|
|
189
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.values.name', string>
|
|
190
|
+
| RelationUUIDRules<'categories.products.skus.attributes.attribute.values.skuAttributeValues.id', UUID>
|
|
191
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
|
|
192
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
|
|
193
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
|
|
194
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
|
|
195
|
+
| RelationUUIDRules<'categories.products.skus.attributes.attribute.skuAttributes.id', UUID>
|
|
196
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.skuAttributes.createdAt', Date>
|
|
197
|
+
| RelationDateRules<'categories.products.skus.attributes.attribute.skuAttributes.updatedAt', Date>
|
|
198
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.skuAttributes.createdBy', string | null>
|
|
199
|
+
| RelationStringRules<'categories.products.skus.attributes.attribute.skuAttributes.updatedBy', string | null>
|
|
200
|
+
| RelationUUIDRules<'categories.products.skus.attributes.value.id', UUID>
|
|
201
|
+
| RelationDateRules<'categories.products.skus.attributes.value.createdAt', Date>
|
|
202
|
+
| RelationDateRules<'categories.products.skus.attributes.value.updatedAt', Date>
|
|
203
|
+
| RelationStringRules<'categories.products.skus.attributes.value.createdBy', string | null>
|
|
204
|
+
| RelationStringRules<'categories.products.skus.attributes.value.updatedBy', string | null>
|
|
205
|
+
| RelationStringRules<'categories.products.skus.attributes.value.name', string>
|
|
206
|
+
| RelationUUIDRules<'categories.products.skus.attributes.value.attribute.id', UUID>
|
|
207
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.createdAt', Date>
|
|
208
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.updatedAt', Date>
|
|
209
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.createdBy', string | null>
|
|
210
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.updatedBy', string | null>
|
|
211
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.name', string>
|
|
212
|
+
| RelationUUIDRules<'categories.products.skus.attributes.value.attribute.values.id', UUID>
|
|
213
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.values.createdAt', Date>
|
|
214
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.values.updatedAt', Date>
|
|
215
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.values.createdBy', string | null>
|
|
216
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.values.updatedBy', string | null>
|
|
217
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.values.name', string>
|
|
218
|
+
| RelationUUIDRules<'categories.products.skus.attributes.value.attribute.skuAttributes.id', UUID>
|
|
219
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.skuAttributes.createdAt', Date>
|
|
220
|
+
| RelationDateRules<'categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
|
|
221
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
|
|
222
|
+
| RelationStringRules<'categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
|
|
223
|
+
| RelationUUIDRules<'categories.products.skus.attributes.value.skuAttributeValues.id', UUID>
|
|
224
|
+
| RelationDateRules<'categories.products.skus.attributes.value.skuAttributeValues.createdAt', Date>
|
|
225
|
+
| RelationDateRules<'categories.products.skus.attributes.value.skuAttributeValues.updatedAt', Date>
|
|
226
|
+
| RelationStringRules<'categories.products.skus.attributes.value.skuAttributeValues.createdBy', string | null>
|
|
227
|
+
| RelationStringRules<'categories.products.skus.attributes.value.skuAttributeValues.updatedBy', string | null>;
|
|
65
228
|
|
|
66
229
|
/**
|
|
67
230
|
* RuleGroupBase
|
|
@@ -76,6 +239,7 @@ export declare type OrderItemRuleGroup = RuleGroupBase<typeof OrderItem,
|
|
|
76
239
|
|'quantity'
|
|
77
240
|
|'price'
|
|
78
241
|
|'orderId'
|
|
242
|
+
|'skuId'
|
|
79
243
|
|'order'
|
|
80
244
|
|'order.id'
|
|
81
245
|
|'order.createdAt'
|
|
@@ -84,6 +248,7 @@ export declare type OrderItemRuleGroup = RuleGroupBase<typeof OrderItem,
|
|
|
84
248
|
|'order.updatedBy'
|
|
85
249
|
|'order.number'
|
|
86
250
|
|'order.amount'
|
|
251
|
+
|'order.status'
|
|
87
252
|
|'ownerId'
|
|
88
253
|
|'order.owner.id'
|
|
89
254
|
|'order.owner.createdAt'
|
|
@@ -119,14 +284,209 @@ export declare type OrderItemRuleGroup = RuleGroupBase<typeof OrderItem,
|
|
|
119
284
|
|'order.owner.orders.updatedBy'
|
|
120
285
|
|'order.owner.orders.number'
|
|
121
286
|
|'order.owner.orders.amount'
|
|
287
|
+
|'order.owner.orders.status'
|
|
122
288
|
|'ownerId'
|
|
289
|
+
|'sku'
|
|
290
|
+
|'sku.id'
|
|
291
|
+
|'sku.createdAt'
|
|
292
|
+
|'sku.updatedAt'
|
|
293
|
+
|'sku.createdBy'
|
|
294
|
+
|'sku.updatedBy'
|
|
295
|
+
|'sku.code'
|
|
296
|
+
|'sku.price'
|
|
297
|
+
|'sku.stock'
|
|
298
|
+
|'productId'
|
|
299
|
+
|'sku.attributes.id'
|
|
300
|
+
|'sku.attributes.createdAt'
|
|
301
|
+
|'sku.attributes.updatedAt'
|
|
302
|
+
|'sku.attributes.createdBy'
|
|
303
|
+
|'sku.attributes.updatedBy'
|
|
304
|
+
|'skuId'
|
|
305
|
+
|'attributeId'
|
|
306
|
+
|'valueId'
|
|
307
|
+
|'sku.attributes.attribute.id'
|
|
308
|
+
|'sku.attributes.attribute.createdAt'
|
|
309
|
+
|'sku.attributes.attribute.updatedAt'
|
|
310
|
+
|'sku.attributes.attribute.createdBy'
|
|
311
|
+
|'sku.attributes.attribute.updatedBy'
|
|
312
|
+
|'sku.attributes.attribute.name'
|
|
313
|
+
|'sku.attributes.attribute.values.id'
|
|
314
|
+
|'sku.attributes.attribute.values.createdAt'
|
|
315
|
+
|'sku.attributes.attribute.values.updatedAt'
|
|
316
|
+
|'sku.attributes.attribute.values.createdBy'
|
|
317
|
+
|'sku.attributes.attribute.values.updatedBy'
|
|
318
|
+
|'sku.attributes.attribute.values.name'
|
|
319
|
+
|'attributeId'
|
|
320
|
+
|'sku.attributes.attribute.values.skuAttributeValues.id'
|
|
321
|
+
|'sku.attributes.attribute.values.skuAttributeValues.createdAt'
|
|
322
|
+
|'sku.attributes.attribute.values.skuAttributeValues.updatedAt'
|
|
323
|
+
|'sku.attributes.attribute.values.skuAttributeValues.createdBy'
|
|
324
|
+
|'sku.attributes.attribute.values.skuAttributeValues.updatedBy'
|
|
325
|
+
|'skuId'
|
|
326
|
+
|'attributeId'
|
|
327
|
+
|'valueId'
|
|
328
|
+
|'sku.attributes.attribute.skuAttributes.id'
|
|
329
|
+
|'sku.attributes.attribute.skuAttributes.createdAt'
|
|
330
|
+
|'sku.attributes.attribute.skuAttributes.updatedAt'
|
|
331
|
+
|'sku.attributes.attribute.skuAttributes.createdBy'
|
|
332
|
+
|'sku.attributes.attribute.skuAttributes.updatedBy'
|
|
333
|
+
|'skuId'
|
|
334
|
+
|'attributeId'
|
|
335
|
+
|'valueId'
|
|
336
|
+
|'sku.attributes.value.id'
|
|
337
|
+
|'sku.attributes.value.createdAt'
|
|
338
|
+
|'sku.attributes.value.updatedAt'
|
|
339
|
+
|'sku.attributes.value.createdBy'
|
|
340
|
+
|'sku.attributes.value.updatedBy'
|
|
341
|
+
|'sku.attributes.value.name'
|
|
342
|
+
|'attributeId'
|
|
343
|
+
|'sku.attributes.value.attribute.id'
|
|
344
|
+
|'sku.attributes.value.attribute.createdAt'
|
|
345
|
+
|'sku.attributes.value.attribute.updatedAt'
|
|
346
|
+
|'sku.attributes.value.attribute.createdBy'
|
|
347
|
+
|'sku.attributes.value.attribute.updatedBy'
|
|
348
|
+
|'sku.attributes.value.attribute.name'
|
|
349
|
+
|'sku.attributes.value.attribute.values.id'
|
|
350
|
+
|'sku.attributes.value.attribute.values.createdAt'
|
|
351
|
+
|'sku.attributes.value.attribute.values.updatedAt'
|
|
352
|
+
|'sku.attributes.value.attribute.values.createdBy'
|
|
353
|
+
|'sku.attributes.value.attribute.values.updatedBy'
|
|
354
|
+
|'sku.attributes.value.attribute.values.name'
|
|
355
|
+
|'attributeId'
|
|
356
|
+
|'sku.attributes.value.attribute.skuAttributes.id'
|
|
357
|
+
|'sku.attributes.value.attribute.skuAttributes.createdAt'
|
|
358
|
+
|'sku.attributes.value.attribute.skuAttributes.updatedAt'
|
|
359
|
+
|'sku.attributes.value.attribute.skuAttributes.createdBy'
|
|
360
|
+
|'sku.attributes.value.attribute.skuAttributes.updatedBy'
|
|
361
|
+
|'skuId'
|
|
362
|
+
|'attributeId'
|
|
363
|
+
|'valueId'
|
|
364
|
+
|'sku.attributes.value.skuAttributeValues.id'
|
|
365
|
+
|'sku.attributes.value.skuAttributeValues.createdAt'
|
|
366
|
+
|'sku.attributes.value.skuAttributeValues.updatedAt'
|
|
367
|
+
|'sku.attributes.value.skuAttributeValues.createdBy'
|
|
368
|
+
|'sku.attributes.value.skuAttributeValues.updatedBy'
|
|
369
|
+
|'skuId'
|
|
370
|
+
|'attributeId'
|
|
371
|
+
|'valueId'
|
|
372
|
+
|'sku.product.id'
|
|
373
|
+
|'sku.product.createdAt'
|
|
374
|
+
|'sku.product.updatedAt'
|
|
375
|
+
|'sku.product.createdBy'
|
|
376
|
+
|'sku.product.updatedBy'
|
|
377
|
+
|'sku.product.name'
|
|
378
|
+
|'sku.product.description'
|
|
379
|
+
|'sku.product.skus.id'
|
|
380
|
+
|'sku.product.skus.createdAt'
|
|
381
|
+
|'sku.product.skus.updatedAt'
|
|
382
|
+
|'sku.product.skus.createdBy'
|
|
383
|
+
|'sku.product.skus.updatedBy'
|
|
384
|
+
|'sku.product.skus.code'
|
|
385
|
+
|'sku.product.skus.price'
|
|
386
|
+
|'sku.product.skus.stock'
|
|
387
|
+
|'productId'
|
|
388
|
+
|'sku.product.categories.id'
|
|
389
|
+
|'sku.product.categories.createdAt'
|
|
390
|
+
|'sku.product.categories.updatedAt'
|
|
391
|
+
|'sku.product.categories.createdBy'
|
|
392
|
+
|'sku.product.categories.updatedBy'
|
|
393
|
+
|'sku.product.categories.name'
|
|
123
394
|
|'categories'
|
|
124
395
|
|'categories.id'
|
|
125
396
|
|'categories.createdAt'
|
|
126
397
|
|'categories.updatedAt'
|
|
127
398
|
|'categories.createdBy'
|
|
128
399
|
|'categories.updatedBy'
|
|
129
|
-
|'categories.name'
|
|
400
|
+
|'categories.name'
|
|
401
|
+
|'categories.products.id'
|
|
402
|
+
|'categories.products.createdAt'
|
|
403
|
+
|'categories.products.updatedAt'
|
|
404
|
+
|'categories.products.createdBy'
|
|
405
|
+
|'categories.products.updatedBy'
|
|
406
|
+
|'categories.products.name'
|
|
407
|
+
|'categories.products.description'
|
|
408
|
+
|'categories.products.skus.id'
|
|
409
|
+
|'categories.products.skus.createdAt'
|
|
410
|
+
|'categories.products.skus.updatedAt'
|
|
411
|
+
|'categories.products.skus.createdBy'
|
|
412
|
+
|'categories.products.skus.updatedBy'
|
|
413
|
+
|'categories.products.skus.code'
|
|
414
|
+
|'categories.products.skus.price'
|
|
415
|
+
|'categories.products.skus.stock'
|
|
416
|
+
|'productId'
|
|
417
|
+
|'categories.products.skus.attributes.id'
|
|
418
|
+
|'categories.products.skus.attributes.createdAt'
|
|
419
|
+
|'categories.products.skus.attributes.updatedAt'
|
|
420
|
+
|'categories.products.skus.attributes.createdBy'
|
|
421
|
+
|'categories.products.skus.attributes.updatedBy'
|
|
422
|
+
|'skuId'
|
|
423
|
+
|'attributeId'
|
|
424
|
+
|'valueId'
|
|
425
|
+
|'categories.products.skus.attributes.attribute.id'
|
|
426
|
+
|'categories.products.skus.attributes.attribute.createdAt'
|
|
427
|
+
|'categories.products.skus.attributes.attribute.updatedAt'
|
|
428
|
+
|'categories.products.skus.attributes.attribute.createdBy'
|
|
429
|
+
|'categories.products.skus.attributes.attribute.updatedBy'
|
|
430
|
+
|'categories.products.skus.attributes.attribute.name'
|
|
431
|
+
|'categories.products.skus.attributes.attribute.values.id'
|
|
432
|
+
|'categories.products.skus.attributes.attribute.values.createdAt'
|
|
433
|
+
|'categories.products.skus.attributes.attribute.values.updatedAt'
|
|
434
|
+
|'categories.products.skus.attributes.attribute.values.createdBy'
|
|
435
|
+
|'categories.products.skus.attributes.attribute.values.updatedBy'
|
|
436
|
+
|'categories.products.skus.attributes.attribute.values.name'
|
|
437
|
+
|'attributeId'
|
|
438
|
+
|'categories.products.skus.attributes.attribute.values.skuAttributeValues.id'
|
|
439
|
+
|'categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt'
|
|
440
|
+
|'categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt'
|
|
441
|
+
|'categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy'
|
|
442
|
+
|'categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy'
|
|
443
|
+
|'skuId'
|
|
444
|
+
|'attributeId'
|
|
445
|
+
|'valueId'
|
|
446
|
+
|'categories.products.skus.attributes.attribute.skuAttributes.id'
|
|
447
|
+
|'categories.products.skus.attributes.attribute.skuAttributes.createdAt'
|
|
448
|
+
|'categories.products.skus.attributes.attribute.skuAttributes.updatedAt'
|
|
449
|
+
|'categories.products.skus.attributes.attribute.skuAttributes.createdBy'
|
|
450
|
+
|'categories.products.skus.attributes.attribute.skuAttributes.updatedBy'
|
|
451
|
+
|'skuId'
|
|
452
|
+
|'attributeId'
|
|
453
|
+
|'valueId'
|
|
454
|
+
|'categories.products.skus.attributes.value.id'
|
|
455
|
+
|'categories.products.skus.attributes.value.createdAt'
|
|
456
|
+
|'categories.products.skus.attributes.value.updatedAt'
|
|
457
|
+
|'categories.products.skus.attributes.value.createdBy'
|
|
458
|
+
|'categories.products.skus.attributes.value.updatedBy'
|
|
459
|
+
|'categories.products.skus.attributes.value.name'
|
|
460
|
+
|'attributeId'
|
|
461
|
+
|'categories.products.skus.attributes.value.attribute.id'
|
|
462
|
+
|'categories.products.skus.attributes.value.attribute.createdAt'
|
|
463
|
+
|'categories.products.skus.attributes.value.attribute.updatedAt'
|
|
464
|
+
|'categories.products.skus.attributes.value.attribute.createdBy'
|
|
465
|
+
|'categories.products.skus.attributes.value.attribute.updatedBy'
|
|
466
|
+
|'categories.products.skus.attributes.value.attribute.name'
|
|
467
|
+
|'categories.products.skus.attributes.value.attribute.values.id'
|
|
468
|
+
|'categories.products.skus.attributes.value.attribute.values.createdAt'
|
|
469
|
+
|'categories.products.skus.attributes.value.attribute.values.updatedAt'
|
|
470
|
+
|'categories.products.skus.attributes.value.attribute.values.createdBy'
|
|
471
|
+
|'categories.products.skus.attributes.value.attribute.values.updatedBy'
|
|
472
|
+
|'categories.products.skus.attributes.value.attribute.values.name'
|
|
473
|
+
|'attributeId'
|
|
474
|
+
|'categories.products.skus.attributes.value.attribute.skuAttributes.id'
|
|
475
|
+
|'categories.products.skus.attributes.value.attribute.skuAttributes.createdAt'
|
|
476
|
+
|'categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt'
|
|
477
|
+
|'categories.products.skus.attributes.value.attribute.skuAttributes.createdBy'
|
|
478
|
+
|'categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy'
|
|
479
|
+
|'skuId'
|
|
480
|
+
|'attributeId'
|
|
481
|
+
|'valueId'
|
|
482
|
+
|'categories.products.skus.attributes.value.skuAttributeValues.id'
|
|
483
|
+
|'categories.products.skus.attributes.value.skuAttributeValues.createdAt'
|
|
484
|
+
|'categories.products.skus.attributes.value.skuAttributeValues.updatedAt'
|
|
485
|
+
|'categories.products.skus.attributes.value.skuAttributeValues.createdBy'
|
|
486
|
+
|'categories.products.skus.attributes.value.skuAttributeValues.updatedBy'
|
|
487
|
+
|'skuId'
|
|
488
|
+
|'attributeId'
|
|
489
|
+
|'valueId',
|
|
130
490
|
OrderItemRule>;
|
|
131
491
|
|
|
132
492
|
/**
|
|
@@ -192,6 +552,10 @@ export interface OrderItemInitData {
|
|
|
192
552
|
* 所属订单 id
|
|
193
553
|
*/
|
|
194
554
|
orderId?: UUID;
|
|
555
|
+
/**
|
|
556
|
+
* 关联SKU id
|
|
557
|
+
*/
|
|
558
|
+
skuId?: UUID | null;
|
|
195
559
|
}
|
|
196
560
|
|
|
197
561
|
/**
|
|
@@ -207,6 +571,10 @@ export declare class OrderItem extends EntityBase implements IEntity {
|
|
|
207
571
|
* 所属订单
|
|
208
572
|
*/
|
|
209
573
|
readonly order$: RelationEntityObservable<typeof Order>;
|
|
574
|
+
/**
|
|
575
|
+
* 关联SKU
|
|
576
|
+
*/
|
|
577
|
+
readonly sku$: RelationEntityObservable<typeof SKU>;
|
|
210
578
|
/**
|
|
211
579
|
* 所属订单 id
|
|
212
580
|
*/
|
|
@@ -223,6 +591,10 @@ export declare class OrderItem extends EntityBase implements IEntity {
|
|
|
223
591
|
* 数量
|
|
224
592
|
*/
|
|
225
593
|
quantity: number;
|
|
594
|
+
/**
|
|
595
|
+
* 关联SKU id
|
|
596
|
+
*/
|
|
597
|
+
skuId?: UUID | null;
|
|
226
598
|
/**
|
|
227
599
|
* 初始化数据
|
|
228
600
|
* @param initData 初始化数据
|
package/dist/shop/OrderItem.js
CHANGED
|
@@ -4,6 +4,7 @@ OrderItem = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "OrderItem",
|
|
7
|
+
namespace: "shop",
|
|
7
8
|
tableName: "order_item",
|
|
8
9
|
displayName: "订单项目",
|
|
9
10
|
properties: [
|
|
@@ -33,25 +34,36 @@ OrderItem = __decorateClass(
|
|
|
33
34
|
kind: RelationKind.MANY_TO_ONE,
|
|
34
35
|
mappedEntity: "Order",
|
|
35
36
|
mappedProperty: "items",
|
|
36
|
-
mappedNamespace: "
|
|
37
|
+
mappedNamespace: "shop",
|
|
37
38
|
onDelete: "RESTRICT",
|
|
38
39
|
onUpdate: "RESTRICT",
|
|
39
40
|
columnName: "orderId"
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
name: "sku",
|
|
44
|
+
displayName: "关联SKU",
|
|
45
|
+
kind: RelationKind.MANY_TO_ONE,
|
|
46
|
+
mappedEntity: "SKU",
|
|
47
|
+
mappedProperty: "orderItems",
|
|
48
|
+
nullable: true,
|
|
49
|
+
mappedNamespace: "shop",
|
|
50
|
+
onDelete: "SET NULL",
|
|
51
|
+
onUpdate: "RESTRICT",
|
|
52
|
+
columnName: "skuId"
|
|
53
|
+
},
|
|
41
54
|
{
|
|
42
55
|
name: "categories",
|
|
43
56
|
displayName: "分类",
|
|
44
57
|
kind: RelationKind.MANY_TO_MANY,
|
|
45
58
|
mappedEntity: "Category",
|
|
46
59
|
mappedProperty: "orderItems",
|
|
47
|
-
mappedNamespace: "
|
|
60
|
+
mappedNamespace: "shop",
|
|
48
61
|
onDelete: "RESTRICT",
|
|
49
62
|
onUpdate: "RESTRICT",
|
|
50
63
|
columnName: "categoriesId"
|
|
51
64
|
}
|
|
52
65
|
],
|
|
53
66
|
repository: "Repository",
|
|
54
|
-
namespace: "public",
|
|
55
67
|
indexes: [],
|
|
56
68
|
computedProperties: [],
|
|
57
69
|
extends: [
|