@aiao/rxdb-test 0.0.4 → 0.0.6
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/index.d.ts +271 -26
- package/dist/entities/index.js +79 -2
- package/dist/shop/index.d.ts +147 -57
- package/dist/system/index.d.ts +59 -50
- package/package.json +3 -3
package/dist/shop/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindOneOptions, FindOneOrFailOptions, FindOptions,
|
|
1
|
+
import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindByCursorOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, IEntity, IEntityStaticType, ITreeEntity, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupBase, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -56,9 +56,9 @@ declare type UserRule = UUIDRules<User, 'id'>
|
|
|
56
56
|
| RelationStringRules<'orders.items.categories.name', string>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* RuleGroupBase
|
|
60
60
|
*/
|
|
61
|
-
export declare type UserRuleGroup =
|
|
61
|
+
export declare type UserRuleGroup = RuleGroupBase<typeof User,
|
|
62
62
|
|'id'
|
|
63
63
|
|'createdAt'
|
|
64
64
|
|'updatedAt'
|
|
@@ -137,8 +137,8 @@ declare type SKUAttributesRule = UUIDRules<SKUAttributes, 'id'>
|
|
|
137
137
|
| RelationStringRules<'sku.updatedBy', string | null>
|
|
138
138
|
| RelationStringRules<'sku.removedBy', string | null>
|
|
139
139
|
| RelationStringRules<'sku.code', string>
|
|
140
|
-
| RelationNumberRules<'sku.price',
|
|
141
|
-
| RelationNumberRules<'sku.stock',
|
|
140
|
+
| RelationNumberRules<'sku.price', number>
|
|
141
|
+
| RelationNumberRules<'sku.stock', number>
|
|
142
142
|
| UUIDRules<SKU, 'productId'>
|
|
143
143
|
| RelationUUIDRules<'sku.product.id', UUID>
|
|
144
144
|
| RelationDateRules<'sku.product.createdAt', Date>
|
|
@@ -157,8 +157,8 @@ declare type SKUAttributesRule = UUIDRules<SKUAttributes, 'id'>
|
|
|
157
157
|
| RelationStringRules<'sku.product.skus.updatedBy', string | null>
|
|
158
158
|
| RelationStringRules<'sku.product.skus.removedBy', string | null>
|
|
159
159
|
| RelationStringRules<'sku.product.skus.code', string>
|
|
160
|
-
| RelationNumberRules<'sku.product.skus.price',
|
|
161
|
-
| RelationNumberRules<'sku.product.skus.stock',
|
|
160
|
+
| RelationNumberRules<'sku.product.skus.price', number>
|
|
161
|
+
| RelationNumberRules<'sku.product.skus.stock', number>
|
|
162
162
|
| RelationUUIDRules<'attribute.id', UUID>
|
|
163
163
|
| RelationDateRules<'attribute.createdAt', Date>
|
|
164
164
|
| RelationDateRules<'attribute.updatedAt', Date>
|
|
@@ -202,9 +202,9 @@ declare type SKUAttributesRule = UUIDRules<SKUAttributes, 'id'>
|
|
|
202
202
|
| RelationStringRules<'value.attribute.values.name', string>;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
205
|
+
* RuleGroupBase
|
|
206
206
|
*/
|
|
207
|
-
export declare type SKUAttributesRuleGroup =
|
|
207
|
+
export declare type SKUAttributesRuleGroup = RuleGroupBase<typeof SKUAttributes,
|
|
208
208
|
|'id'
|
|
209
209
|
|'createdAt'
|
|
210
210
|
|'updatedAt'
|
|
@@ -400,9 +400,9 @@ declare type SKURule = UUIDRules<SKU, 'id'>
|
|
|
400
400
|
| RelationStringRules<'product.description', string | null>;
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
*
|
|
403
|
+
* RuleGroupBase
|
|
404
404
|
*/
|
|
405
|
-
export declare type SKURuleGroup =
|
|
405
|
+
export declare type SKURuleGroup = RuleGroupBase<typeof SKU,
|
|
406
406
|
|'id'
|
|
407
407
|
|'createdAt'
|
|
408
408
|
|'updatedAt'
|
|
@@ -543,8 +543,8 @@ declare type ProductRule = UUIDRules<Product, 'id'>
|
|
|
543
543
|
| RelationStringRules<'skus.updatedBy', string | null>
|
|
544
544
|
| RelationStringRules<'skus.removedBy', string | null>
|
|
545
545
|
| RelationStringRules<'skus.code', string>
|
|
546
|
-
| RelationNumberRules<'skus.price',
|
|
547
|
-
| RelationNumberRules<'skus.stock',
|
|
546
|
+
| RelationNumberRules<'skus.price', number>
|
|
547
|
+
| RelationNumberRules<'skus.stock', number>
|
|
548
548
|
| UUIDRules<SKU, 'productId'>
|
|
549
549
|
| RelationUUIDRules<'skus.attributes.id', UUID>
|
|
550
550
|
| RelationDateRules<'skus.attributes.createdAt', Date>
|
|
@@ -627,9 +627,9 @@ declare type ProductRule = UUIDRules<Product, 'id'>
|
|
|
627
627
|
| RelationStringRules<'skus.attributes.value.skuAttributeValues.removedBy', string | null>;
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
|
-
*
|
|
630
|
+
* RuleGroupBase
|
|
631
631
|
*/
|
|
632
|
-
export declare type ProductRuleGroup =
|
|
632
|
+
export declare type ProductRuleGroup = RuleGroupBase<typeof Product,
|
|
633
633
|
|'id'
|
|
634
634
|
|'createdAt'
|
|
635
635
|
|'updatedAt'
|
|
@@ -825,9 +825,9 @@ declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
|
|
|
825
825
|
| RelationStringRules<'categories.name', string>;
|
|
826
826
|
|
|
827
827
|
/**
|
|
828
|
-
*
|
|
828
|
+
* RuleGroupBase
|
|
829
829
|
*/
|
|
830
|
-
export declare type OrderItemRuleGroup =
|
|
830
|
+
export declare type OrderItemRuleGroup = RuleGroupBase<typeof OrderItem,
|
|
831
831
|
|'id'
|
|
832
832
|
|'createdAt'
|
|
833
833
|
|'updatedAt'
|
|
@@ -973,9 +973,9 @@ declare type OrderRule = UUIDRules<Order, 'id'>
|
|
|
973
973
|
| RelationStringRules<'items.categories.name', string>;
|
|
974
974
|
|
|
975
975
|
/**
|
|
976
|
-
*
|
|
976
|
+
* RuleGroupBase
|
|
977
977
|
*/
|
|
978
|
-
export declare type OrderRuleGroup =
|
|
978
|
+
export declare type OrderRuleGroup = RuleGroupBase<typeof Order,
|
|
979
979
|
|'id'
|
|
980
980
|
|'createdAt'
|
|
981
981
|
|'updatedAt'
|
|
@@ -1100,9 +1100,9 @@ declare type IdCardRule = UUIDRules<IdCard, 'id'>
|
|
|
1100
1100
|
| RelationStringRules<'owner.orders.items.categories.name', string>;
|
|
1101
1101
|
|
|
1102
1102
|
/**
|
|
1103
|
-
*
|
|
1103
|
+
* RuleGroupBase
|
|
1104
1104
|
*/
|
|
1105
|
-
export declare type IdCardRuleGroup =
|
|
1105
|
+
export declare type IdCardRuleGroup = RuleGroupBase<typeof IdCard,
|
|
1106
1106
|
|'id'
|
|
1107
1107
|
|'createdAt'
|
|
1108
1108
|
|'updatedAt'
|
|
@@ -1245,9 +1245,9 @@ declare type CategoryRule = UUIDRules<Category, 'id'>
|
|
|
1245
1245
|
| RelationNumberRules<'orderItems.order.items.price', number>;
|
|
1246
1246
|
|
|
1247
1247
|
/**
|
|
1248
|
-
*
|
|
1248
|
+
* RuleGroupBase
|
|
1249
1249
|
*/
|
|
1250
|
-
export declare type CategoryRuleGroup =
|
|
1250
|
+
export declare type CategoryRuleGroup = RuleGroupBase<typeof Category,
|
|
1251
1251
|
|'id'
|
|
1252
1252
|
|'createdAt'
|
|
1253
1253
|
|'updatedAt'
|
|
@@ -1376,8 +1376,8 @@ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
|
1376
1376
|
| RelationStringRules<'attribute.skuAttributes.sku.updatedBy', string | null>
|
|
1377
1377
|
| RelationStringRules<'attribute.skuAttributes.sku.removedBy', string | null>
|
|
1378
1378
|
| RelationStringRules<'attribute.skuAttributes.sku.code', string>
|
|
1379
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.price',
|
|
1380
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.stock',
|
|
1379
|
+
| RelationNumberRules<'attribute.skuAttributes.sku.price', number>
|
|
1380
|
+
| RelationNumberRules<'attribute.skuAttributes.sku.stock', number>
|
|
1381
1381
|
| UUIDRules<SKU, 'productId'>
|
|
1382
1382
|
| RelationUUIDRules<'attribute.skuAttributes.sku.attributes.id', UUID>
|
|
1383
1383
|
| RelationDateRules<'attribute.skuAttributes.sku.attributes.createdAt', Date>
|
|
@@ -1403,8 +1403,8 @@ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
|
1403
1403
|
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.updatedBy', string | null>
|
|
1404
1404
|
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.removedBy', string | null>
|
|
1405
1405
|
| RelationStringRules<'attribute.skuAttributes.sku.product.skus.code', string>
|
|
1406
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.price',
|
|
1407
|
-
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.stock',
|
|
1406
|
+
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.price', number>
|
|
1407
|
+
| RelationNumberRules<'attribute.skuAttributes.sku.product.skus.stock', number>
|
|
1408
1408
|
| RelationUUIDRules<'skuAttributeValues.id', UUID>
|
|
1409
1409
|
| RelationDateRules<'skuAttributeValues.createdAt', Date>
|
|
1410
1410
|
| RelationDateRules<'skuAttributeValues.updatedAt', Date>
|
|
@@ -1420,8 +1420,8 @@ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
|
1420
1420
|
| RelationStringRules<'skuAttributeValues.sku.updatedBy', string | null>
|
|
1421
1421
|
| RelationStringRules<'skuAttributeValues.sku.removedBy', string | null>
|
|
1422
1422
|
| RelationStringRules<'skuAttributeValues.sku.code', string>
|
|
1423
|
-
| RelationNumberRules<'skuAttributeValues.sku.price',
|
|
1424
|
-
| RelationNumberRules<'skuAttributeValues.sku.stock',
|
|
1423
|
+
| RelationNumberRules<'skuAttributeValues.sku.price', number>
|
|
1424
|
+
| RelationNumberRules<'skuAttributeValues.sku.stock', number>
|
|
1425
1425
|
| RelationUUIDRules<'skuAttributeValues.sku.attributes.id', UUID>
|
|
1426
1426
|
| RelationDateRules<'skuAttributeValues.sku.attributes.createdAt', Date>
|
|
1427
1427
|
| RelationDateRules<'skuAttributeValues.sku.attributes.updatedAt', Date>
|
|
@@ -1446,8 +1446,8 @@ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
|
1446
1446
|
| RelationStringRules<'skuAttributeValues.sku.product.skus.updatedBy', string | null>
|
|
1447
1447
|
| RelationStringRules<'skuAttributeValues.sku.product.skus.removedBy', string | null>
|
|
1448
1448
|
| RelationStringRules<'skuAttributeValues.sku.product.skus.code', string>
|
|
1449
|
-
| RelationNumberRules<'skuAttributeValues.sku.product.skus.price',
|
|
1450
|
-
| RelationNumberRules<'skuAttributeValues.sku.product.skus.stock',
|
|
1449
|
+
| RelationNumberRules<'skuAttributeValues.sku.product.skus.price', number>
|
|
1450
|
+
| RelationNumberRules<'skuAttributeValues.sku.product.skus.stock', number>
|
|
1451
1451
|
| RelationUUIDRules<'skuAttributeValues.attribute.id', UUID>
|
|
1452
1452
|
| RelationDateRules<'skuAttributeValues.attribute.createdAt', Date>
|
|
1453
1453
|
| RelationDateRules<'skuAttributeValues.attribute.updatedAt', Date>
|
|
@@ -1465,9 +1465,9 @@ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
|
|
|
1465
1465
|
| RelationStringRules<'skuAttributeValues.attribute.skuAttributes.removedBy', string | null>;
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
|
-
*
|
|
1468
|
+
* RuleGroupBase
|
|
1469
1469
|
*/
|
|
1470
|
-
export declare type AttributeValueRuleGroup =
|
|
1470
|
+
export declare type AttributeValueRuleGroup = RuleGroupBase<typeof AttributeValue,
|
|
1471
1471
|
|'id'
|
|
1472
1472
|
|'createdAt'
|
|
1473
1473
|
|'updatedAt'
|
|
@@ -1650,8 +1650,8 @@ declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
|
1650
1650
|
| RelationStringRules<'values.skuAttributeValues.sku.updatedBy', string | null>
|
|
1651
1651
|
| RelationStringRules<'values.skuAttributeValues.sku.removedBy', string | null>
|
|
1652
1652
|
| RelationStringRules<'values.skuAttributeValues.sku.code', string>
|
|
1653
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.price',
|
|
1654
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.stock',
|
|
1653
|
+
| RelationNumberRules<'values.skuAttributeValues.sku.price', number>
|
|
1654
|
+
| RelationNumberRules<'values.skuAttributeValues.sku.stock', number>
|
|
1655
1655
|
| UUIDRules<SKU, 'productId'>
|
|
1656
1656
|
| RelationUUIDRules<'values.skuAttributeValues.sku.attributes.id', UUID>
|
|
1657
1657
|
| RelationDateRules<'values.skuAttributeValues.sku.attributes.createdAt', Date>
|
|
@@ -1677,8 +1677,8 @@ declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
|
1677
1677
|
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.updatedBy', string | null>
|
|
1678
1678
|
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.removedBy', string | null>
|
|
1679
1679
|
| RelationStringRules<'values.skuAttributeValues.sku.product.skus.code', string>
|
|
1680
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.price',
|
|
1681
|
-
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.stock',
|
|
1680
|
+
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.price', number>
|
|
1681
|
+
| RelationNumberRules<'values.skuAttributeValues.sku.product.skus.stock', number>
|
|
1682
1682
|
| RelationUUIDRules<'skuAttributes.id', UUID>
|
|
1683
1683
|
| RelationDateRules<'skuAttributes.createdAt', Date>
|
|
1684
1684
|
| RelationDateRules<'skuAttributes.updatedAt', Date>
|
|
@@ -1694,8 +1694,8 @@ declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
|
1694
1694
|
| RelationStringRules<'skuAttributes.sku.updatedBy', string | null>
|
|
1695
1695
|
| RelationStringRules<'skuAttributes.sku.removedBy', string | null>
|
|
1696
1696
|
| RelationStringRules<'skuAttributes.sku.code', string>
|
|
1697
|
-
| RelationNumberRules<'skuAttributes.sku.price',
|
|
1698
|
-
| RelationNumberRules<'skuAttributes.sku.stock',
|
|
1697
|
+
| RelationNumberRules<'skuAttributes.sku.price', number>
|
|
1698
|
+
| RelationNumberRules<'skuAttributes.sku.stock', number>
|
|
1699
1699
|
| RelationUUIDRules<'skuAttributes.sku.attributes.id', UUID>
|
|
1700
1700
|
| RelationDateRules<'skuAttributes.sku.attributes.createdAt', Date>
|
|
1701
1701
|
| RelationDateRules<'skuAttributes.sku.attributes.updatedAt', Date>
|
|
@@ -1720,8 +1720,8 @@ declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
|
1720
1720
|
| RelationStringRules<'skuAttributes.sku.product.skus.updatedBy', string | null>
|
|
1721
1721
|
| RelationStringRules<'skuAttributes.sku.product.skus.removedBy', string | null>
|
|
1722
1722
|
| RelationStringRules<'skuAttributes.sku.product.skus.code', string>
|
|
1723
|
-
| RelationNumberRules<'skuAttributes.sku.product.skus.price',
|
|
1724
|
-
| RelationNumberRules<'skuAttributes.sku.product.skus.stock',
|
|
1723
|
+
| RelationNumberRules<'skuAttributes.sku.product.skus.price', number>
|
|
1724
|
+
| RelationNumberRules<'skuAttributes.sku.product.skus.stock', number>
|
|
1725
1725
|
| RelationUUIDRules<'skuAttributes.value.id', UUID>
|
|
1726
1726
|
| RelationDateRules<'skuAttributes.value.createdAt', Date>
|
|
1727
1727
|
| RelationDateRules<'skuAttributes.value.updatedAt', Date>
|
|
@@ -1739,9 +1739,9 @@ declare type AttributeRule = UUIDRules<Attribute, 'id'>
|
|
|
1739
1739
|
| RelationStringRules<'skuAttributes.value.skuAttributeValues.removedBy', string | null>;
|
|
1740
1740
|
|
|
1741
1741
|
/**
|
|
1742
|
-
*
|
|
1742
|
+
* RuleGroupBase
|
|
1743
1743
|
*/
|
|
1744
|
-
export declare type AttributeRuleGroup =
|
|
1744
|
+
export declare type AttributeRuleGroup = RuleGroupBase<typeof Attribute,
|
|
1745
1745
|
|'id'
|
|
1746
1746
|
|'createdAt'
|
|
1747
1747
|
|'updatedAt'
|
|
@@ -1966,6 +1966,10 @@ export interface UserStaticTypes {
|
|
|
1966
1966
|
* 查询选项
|
|
1967
1967
|
*/
|
|
1968
1968
|
findAllOptions: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1969
|
+
/**
|
|
1970
|
+
* 查询选项
|
|
1971
|
+
*/
|
|
1972
|
+
findByCursorOptions: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>;
|
|
1969
1973
|
/**
|
|
1970
1974
|
* 查询选项
|
|
1971
1975
|
*/
|
|
@@ -2023,6 +2027,10 @@ export interface SKUAttributesStaticTypes {
|
|
|
2023
2027
|
* 查询选项
|
|
2024
2028
|
*/
|
|
2025
2029
|
findAllOptions: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
2030
|
+
/**
|
|
2031
|
+
* 查询选项
|
|
2032
|
+
*/
|
|
2033
|
+
findByCursorOptions: FindByCursorOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
|
|
2026
2034
|
/**
|
|
2027
2035
|
* 查询选项
|
|
2028
2036
|
*/
|
|
@@ -2063,6 +2071,10 @@ export interface SKUStaticTypes {
|
|
|
2063
2071
|
* 查询选项
|
|
2064
2072
|
*/
|
|
2065
2073
|
findAllOptions: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
2074
|
+
/**
|
|
2075
|
+
* 查询选项
|
|
2076
|
+
*/
|
|
2077
|
+
findByCursorOptions: FindByCursorOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
|
|
2066
2078
|
/**
|
|
2067
2079
|
* 查询选项
|
|
2068
2080
|
*/
|
|
@@ -2080,11 +2092,11 @@ export interface SKUInitData {
|
|
|
2080
2092
|
/**
|
|
2081
2093
|
* price
|
|
2082
2094
|
*/
|
|
2083
|
-
price?:
|
|
2095
|
+
price?: number;
|
|
2084
2096
|
/**
|
|
2085
2097
|
* stock
|
|
2086
2098
|
*/
|
|
2087
|
-
stock?:
|
|
2099
|
+
stock?: number;
|
|
2088
2100
|
}
|
|
2089
2101
|
|
|
2090
2102
|
/**
|
|
@@ -2115,6 +2127,10 @@ export interface ProductStaticTypes {
|
|
|
2115
2127
|
* 查询选项
|
|
2116
2128
|
*/
|
|
2117
2129
|
findAllOptions: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
2130
|
+
/**
|
|
2131
|
+
* 查询选项
|
|
2132
|
+
*/
|
|
2133
|
+
findByCursorOptions: FindByCursorOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
|
|
2118
2134
|
/**
|
|
2119
2135
|
* 查询选项
|
|
2120
2136
|
*/
|
|
@@ -2163,6 +2179,10 @@ export interface OrderItemStaticTypes {
|
|
|
2163
2179
|
* 查询选项
|
|
2164
2180
|
*/
|
|
2165
2181
|
findAllOptions: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
2182
|
+
/**
|
|
2183
|
+
* 查询选项
|
|
2184
|
+
*/
|
|
2185
|
+
findByCursorOptions: FindByCursorOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
|
|
2166
2186
|
/**
|
|
2167
2187
|
* 查询选项
|
|
2168
2188
|
*/
|
|
@@ -2215,6 +2235,10 @@ export interface OrderStaticTypes {
|
|
|
2215
2235
|
* 查询选项
|
|
2216
2236
|
*/
|
|
2217
2237
|
findAllOptions: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
2238
|
+
/**
|
|
2239
|
+
* 查询选项
|
|
2240
|
+
*/
|
|
2241
|
+
findByCursorOptions: FindByCursorOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
|
|
2218
2242
|
/**
|
|
2219
2243
|
* 查询选项
|
|
2220
2244
|
*/
|
|
@@ -2263,6 +2287,10 @@ export interface IdCardStaticTypes {
|
|
|
2263
2287
|
* 查询选项
|
|
2264
2288
|
*/
|
|
2265
2289
|
findAllOptions: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
2290
|
+
/**
|
|
2291
|
+
* 查询选项
|
|
2292
|
+
*/
|
|
2293
|
+
findByCursorOptions: FindByCursorOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
|
|
2266
2294
|
/**
|
|
2267
2295
|
* 查询选项
|
|
2268
2296
|
*/
|
|
@@ -2307,6 +2335,10 @@ export interface CategoryStaticTypes {
|
|
|
2307
2335
|
* 查询选项
|
|
2308
2336
|
*/
|
|
2309
2337
|
findAllOptions: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
2338
|
+
/**
|
|
2339
|
+
* 查询选项
|
|
2340
|
+
*/
|
|
2341
|
+
findByCursorOptions: FindByCursorOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
|
|
2310
2342
|
/**
|
|
2311
2343
|
* 查询选项
|
|
2312
2344
|
*/
|
|
@@ -2351,6 +2383,10 @@ export interface AttributeValueStaticTypes {
|
|
|
2351
2383
|
* 查询选项
|
|
2352
2384
|
*/
|
|
2353
2385
|
findAllOptions: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2386
|
+
/**
|
|
2387
|
+
* 查询选项
|
|
2388
|
+
*/
|
|
2389
|
+
findByCursorOptions: FindByCursorOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
|
|
2354
2390
|
/**
|
|
2355
2391
|
* 查询选项
|
|
2356
2392
|
*/
|
|
@@ -2395,6 +2431,10 @@ export interface AttributeStaticTypes {
|
|
|
2395
2431
|
* 查询选项
|
|
2396
2432
|
*/
|
|
2397
2433
|
findAllOptions: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2434
|
+
/**
|
|
2435
|
+
* 查询选项
|
|
2436
|
+
*/
|
|
2437
|
+
findByCursorOptions: FindByCursorOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
|
|
2398
2438
|
/**
|
|
2399
2439
|
* 查询选项
|
|
2400
2440
|
*/
|
|
@@ -2415,6 +2455,7 @@ export interface AttributeInitData {
|
|
|
2415
2455
|
* 用户表
|
|
2416
2456
|
*/
|
|
2417
2457
|
export declare class User extends EntityBase implements IEntity, IEntityStaticType {
|
|
2458
|
+
static [ENTITY_STATIC_TYPES]: UserStaticTypes;
|
|
2418
2459
|
/**
|
|
2419
2460
|
* idCard
|
|
2420
2461
|
*/
|
|
@@ -2427,7 +2468,6 @@ export declare class User extends EntityBase implements IEntity, IEntityStaticTy
|
|
|
2427
2468
|
* orders
|
|
2428
2469
|
*/
|
|
2429
2470
|
orders$: RelationEntitiesObservable<Order>;
|
|
2430
|
-
[ENTITY_STATIC_TYPES]: UserStaticTypes;
|
|
2431
2471
|
/**
|
|
2432
2472
|
* 年龄
|
|
2433
2473
|
*/
|
|
@@ -2465,6 +2505,11 @@ export declare class User extends EntityBase implements IEntity, IEntityStaticTy
|
|
|
2465
2505
|
* @param options 查询选项
|
|
2466
2506
|
*/
|
|
2467
2507
|
static findAll(options: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
|
|
2508
|
+
/**
|
|
2509
|
+
* findByCursor 查询
|
|
2510
|
+
* @param options 查询选项
|
|
2511
|
+
*/
|
|
2512
|
+
static findByCursor(options: FindByCursorOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
|
|
2468
2513
|
/**
|
|
2469
2514
|
* findOne 查询
|
|
2470
2515
|
* @param options 查询选项
|
|
@@ -2498,6 +2543,7 @@ export declare class User extends EntityBase implements IEntity, IEntityStaticTy
|
|
|
2498
2543
|
* SKUAttributes
|
|
2499
2544
|
*/
|
|
2500
2545
|
export declare class SKUAttributes extends EntityBase implements IEntity, IEntityStaticType {
|
|
2546
|
+
static [ENTITY_STATIC_TYPES]: SKUAttributesStaticTypes;
|
|
2501
2547
|
/**
|
|
2502
2548
|
* attribute
|
|
2503
2549
|
*/
|
|
@@ -2522,7 +2568,6 @@ export declare class SKUAttributes extends EntityBase implements IEntity, IEntit
|
|
|
2522
2568
|
* value id
|
|
2523
2569
|
*/
|
|
2524
2570
|
valueId: UUID;
|
|
2525
|
-
[ENTITY_STATIC_TYPES]: SKUAttributesStaticTypes;
|
|
2526
2571
|
/**
|
|
2527
2572
|
* 初始化数据
|
|
2528
2573
|
* @param initData 初始化数据
|
|
@@ -2543,6 +2588,11 @@ export declare class SKUAttributes extends EntityBase implements IEntity, IEntit
|
|
|
2543
2588
|
* @param options 查询选项
|
|
2544
2589
|
*/
|
|
2545
2590
|
static findAll(options: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
|
|
2591
|
+
/**
|
|
2592
|
+
* findByCursor 查询
|
|
2593
|
+
* @param options 查询选项
|
|
2594
|
+
*/
|
|
2595
|
+
static findByCursor(options: FindByCursorOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
|
|
2546
2596
|
/**
|
|
2547
2597
|
* findOne 查询
|
|
2548
2598
|
* @param options 查询选项
|
|
@@ -2576,6 +2626,7 @@ export declare class SKUAttributes extends EntityBase implements IEntity, IEntit
|
|
|
2576
2626
|
* SKU
|
|
2577
2627
|
*/
|
|
2578
2628
|
export declare class SKU extends EntityBase implements IEntity, IEntityStaticType {
|
|
2629
|
+
static [ENTITY_STATIC_TYPES]: SKUStaticTypes;
|
|
2579
2630
|
/**
|
|
2580
2631
|
* attributes
|
|
2581
2632
|
*/
|
|
@@ -2588,7 +2639,6 @@ export declare class SKU extends EntityBase implements IEntity, IEntityStaticTyp
|
|
|
2588
2639
|
* product id
|
|
2589
2640
|
*/
|
|
2590
2641
|
productId: UUID;
|
|
2591
|
-
[ENTITY_STATIC_TYPES]: SKUStaticTypes;
|
|
2592
2642
|
/**
|
|
2593
2643
|
* code
|
|
2594
2644
|
*/
|
|
@@ -2596,11 +2646,11 @@ export declare class SKU extends EntityBase implements IEntity, IEntityStaticTyp
|
|
|
2596
2646
|
/**
|
|
2597
2647
|
* price
|
|
2598
2648
|
*/
|
|
2599
|
-
price:
|
|
2649
|
+
price: number;
|
|
2600
2650
|
/**
|
|
2601
2651
|
* stock
|
|
2602
2652
|
*/
|
|
2603
|
-
stock:
|
|
2653
|
+
stock: number;
|
|
2604
2654
|
/**
|
|
2605
2655
|
* 初始化数据
|
|
2606
2656
|
* @param initData 初始化数据
|
|
@@ -2621,6 +2671,11 @@ export declare class SKU extends EntityBase implements IEntity, IEntityStaticTyp
|
|
|
2621
2671
|
* @param options 查询选项
|
|
2622
2672
|
*/
|
|
2623
2673
|
static findAll(options: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
|
|
2674
|
+
/**
|
|
2675
|
+
* findByCursor 查询
|
|
2676
|
+
* @param options 查询选项
|
|
2677
|
+
*/
|
|
2678
|
+
static findByCursor(options: FindByCursorOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
|
|
2624
2679
|
/**
|
|
2625
2680
|
* findOne 查询
|
|
2626
2681
|
* @param options 查询选项
|
|
@@ -2654,11 +2709,11 @@ export declare class SKU extends EntityBase implements IEntity, IEntityStaticTyp
|
|
|
2654
2709
|
* Product
|
|
2655
2710
|
*/
|
|
2656
2711
|
export declare class Product extends EntityBase implements IEntity, IEntityStaticType {
|
|
2712
|
+
static [ENTITY_STATIC_TYPES]: ProductStaticTypes;
|
|
2657
2713
|
/**
|
|
2658
2714
|
* skus
|
|
2659
2715
|
*/
|
|
2660
2716
|
skus$: RelationEntitiesObservable<SKU>;
|
|
2661
|
-
[ENTITY_STATIC_TYPES]: ProductStaticTypes;
|
|
2662
2717
|
/**
|
|
2663
2718
|
* description
|
|
2664
2719
|
*/
|
|
@@ -2687,6 +2742,11 @@ export declare class Product extends EntityBase implements IEntity, IEntityStati
|
|
|
2687
2742
|
* @param options 查询选项
|
|
2688
2743
|
*/
|
|
2689
2744
|
static findAll(options: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
|
|
2745
|
+
/**
|
|
2746
|
+
* findByCursor 查询
|
|
2747
|
+
* @param options 查询选项
|
|
2748
|
+
*/
|
|
2749
|
+
static findByCursor(options: FindByCursorOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
|
|
2690
2750
|
/**
|
|
2691
2751
|
* findOne 查询
|
|
2692
2752
|
* @param options 查询选项
|
|
@@ -2720,6 +2780,7 @@ export declare class Product extends EntityBase implements IEntity, IEntityStati
|
|
|
2720
2780
|
* 订单项目
|
|
2721
2781
|
*/
|
|
2722
2782
|
export declare class OrderItem extends EntityBase implements IEntity, IEntityStaticType {
|
|
2783
|
+
static [ENTITY_STATIC_TYPES]: OrderItemStaticTypes;
|
|
2723
2784
|
/**
|
|
2724
2785
|
* categories
|
|
2725
2786
|
*/
|
|
@@ -2732,7 +2793,6 @@ export declare class OrderItem extends EntityBase implements IEntity, IEntitySta
|
|
|
2732
2793
|
* order id
|
|
2733
2794
|
*/
|
|
2734
2795
|
orderId: UUID;
|
|
2735
|
-
[ENTITY_STATIC_TYPES]: OrderItemStaticTypes;
|
|
2736
2796
|
/**
|
|
2737
2797
|
* 单价
|
|
2738
2798
|
*/
|
|
@@ -2765,6 +2825,11 @@ export declare class OrderItem extends EntityBase implements IEntity, IEntitySta
|
|
|
2765
2825
|
* @param options 查询选项
|
|
2766
2826
|
*/
|
|
2767
2827
|
static findAll(options: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
|
|
2828
|
+
/**
|
|
2829
|
+
* findByCursor 查询
|
|
2830
|
+
* @param options 查询选项
|
|
2831
|
+
*/
|
|
2832
|
+
static findByCursor(options: FindByCursorOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
|
|
2768
2833
|
/**
|
|
2769
2834
|
* findOne 查询
|
|
2770
2835
|
* @param options 查询选项
|
|
@@ -2798,6 +2863,7 @@ export declare class OrderItem extends EntityBase implements IEntity, IEntitySta
|
|
|
2798
2863
|
* 订单
|
|
2799
2864
|
*/
|
|
2800
2865
|
export declare class Order extends EntityBase implements IEntity, IEntityStaticType {
|
|
2866
|
+
static [ENTITY_STATIC_TYPES]: OrderStaticTypes;
|
|
2801
2867
|
/**
|
|
2802
2868
|
* items
|
|
2803
2869
|
*/
|
|
@@ -2810,7 +2876,6 @@ export declare class Order extends EntityBase implements IEntity, IEntityStaticT
|
|
|
2810
2876
|
* owner id
|
|
2811
2877
|
*/
|
|
2812
2878
|
ownerId: UUID;
|
|
2813
|
-
[ENTITY_STATIC_TYPES]: OrderStaticTypes;
|
|
2814
2879
|
/**
|
|
2815
2880
|
* 订单总金额
|
|
2816
2881
|
*/
|
|
@@ -2839,6 +2904,11 @@ export declare class Order extends EntityBase implements IEntity, IEntityStaticT
|
|
|
2839
2904
|
* @param options 查询选项
|
|
2840
2905
|
*/
|
|
2841
2906
|
static findAll(options: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
|
|
2907
|
+
/**
|
|
2908
|
+
* findByCursor 查询
|
|
2909
|
+
* @param options 查询选项
|
|
2910
|
+
*/
|
|
2911
|
+
static findByCursor(options: FindByCursorOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
|
|
2842
2912
|
/**
|
|
2843
2913
|
* findOne 查询
|
|
2844
2914
|
* @param options 查询选项
|
|
@@ -2872,6 +2942,7 @@ export declare class Order extends EntityBase implements IEntity, IEntityStaticT
|
|
|
2872
2942
|
* 身份证
|
|
2873
2943
|
*/
|
|
2874
2944
|
export declare class IdCard extends EntityBase implements IEntity, IEntityStaticType {
|
|
2945
|
+
static [ENTITY_STATIC_TYPES]: IdCardStaticTypes;
|
|
2875
2946
|
/**
|
|
2876
2947
|
* owner
|
|
2877
2948
|
*/
|
|
@@ -2880,7 +2951,6 @@ export declare class IdCard extends EntityBase implements IEntity, IEntityStatic
|
|
|
2880
2951
|
* owner id
|
|
2881
2952
|
*/
|
|
2882
2953
|
ownerId: UUID;
|
|
2883
|
-
[ENTITY_STATIC_TYPES]: IdCardStaticTypes;
|
|
2884
2954
|
/**
|
|
2885
2955
|
* 身份证号码
|
|
2886
2956
|
*/
|
|
@@ -2905,6 +2975,11 @@ export declare class IdCard extends EntityBase implements IEntity, IEntityStatic
|
|
|
2905
2975
|
* @param options 查询选项
|
|
2906
2976
|
*/
|
|
2907
2977
|
static findAll(options: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
|
|
2978
|
+
/**
|
|
2979
|
+
* findByCursor 查询
|
|
2980
|
+
* @param options 查询选项
|
|
2981
|
+
*/
|
|
2982
|
+
static findByCursor(options: FindByCursorOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
|
|
2908
2983
|
/**
|
|
2909
2984
|
* findOne 查询
|
|
2910
2985
|
* @param options 查询选项
|
|
@@ -2938,11 +3013,11 @@ export declare class IdCard extends EntityBase implements IEntity, IEntityStatic
|
|
|
2938
3013
|
* 产品分类
|
|
2939
3014
|
*/
|
|
2940
3015
|
export declare class Category extends EntityBase implements IEntity, IEntityStaticType {
|
|
3016
|
+
static [ENTITY_STATIC_TYPES]: CategoryStaticTypes;
|
|
2941
3017
|
/**
|
|
2942
3018
|
* orderItems
|
|
2943
3019
|
*/
|
|
2944
3020
|
orderItems$: RelationEntitiesObservable<OrderItem>;
|
|
2945
|
-
[ENTITY_STATIC_TYPES]: CategoryStaticTypes;
|
|
2946
3021
|
/**
|
|
2947
3022
|
* 分类名称
|
|
2948
3023
|
*/
|
|
@@ -2967,6 +3042,11 @@ export declare class Category extends EntityBase implements IEntity, IEntityStat
|
|
|
2967
3042
|
* @param options 查询选项
|
|
2968
3043
|
*/
|
|
2969
3044
|
static findAll(options: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
|
|
3045
|
+
/**
|
|
3046
|
+
* findByCursor 查询
|
|
3047
|
+
* @param options 查询选项
|
|
3048
|
+
*/
|
|
3049
|
+
static findByCursor(options: FindByCursorOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
|
|
2970
3050
|
/**
|
|
2971
3051
|
* findOne 查询
|
|
2972
3052
|
* @param options 查询选项
|
|
@@ -3000,6 +3080,7 @@ export declare class Category extends EntityBase implements IEntity, IEntityStat
|
|
|
3000
3080
|
* AttributeValue
|
|
3001
3081
|
*/
|
|
3002
3082
|
export declare class AttributeValue extends EntityBase implements IEntity, IEntityStaticType {
|
|
3083
|
+
static [ENTITY_STATIC_TYPES]: AttributeValueStaticTypes;
|
|
3003
3084
|
/**
|
|
3004
3085
|
* attribute
|
|
3005
3086
|
*/
|
|
@@ -3012,7 +3093,6 @@ export declare class AttributeValue extends EntityBase implements IEntity, IEnti
|
|
|
3012
3093
|
* skuAttributeValues
|
|
3013
3094
|
*/
|
|
3014
3095
|
skuAttributeValues$: RelationEntitiesObservable<SKUAttributes>;
|
|
3015
|
-
[ENTITY_STATIC_TYPES]: AttributeValueStaticTypes;
|
|
3016
3096
|
/**
|
|
3017
3097
|
* name
|
|
3018
3098
|
*/
|
|
@@ -3037,6 +3117,11 @@ export declare class AttributeValue extends EntityBase implements IEntity, IEnti
|
|
|
3037
3117
|
* @param options 查询选项
|
|
3038
3118
|
*/
|
|
3039
3119
|
static findAll(options: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
|
|
3120
|
+
/**
|
|
3121
|
+
* findByCursor 查询
|
|
3122
|
+
* @param options 查询选项
|
|
3123
|
+
*/
|
|
3124
|
+
static findByCursor(options: FindByCursorOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
|
|
3040
3125
|
/**
|
|
3041
3126
|
* findOne 查询
|
|
3042
3127
|
* @param options 查询选项
|
|
@@ -3070,6 +3155,7 @@ export declare class AttributeValue extends EntityBase implements IEntity, IEnti
|
|
|
3070
3155
|
* Attribute
|
|
3071
3156
|
*/
|
|
3072
3157
|
export declare class Attribute extends EntityBase implements IEntity, IEntityStaticType {
|
|
3158
|
+
static [ENTITY_STATIC_TYPES]: AttributeStaticTypes;
|
|
3073
3159
|
/**
|
|
3074
3160
|
* skuAttributes
|
|
3075
3161
|
*/
|
|
@@ -3078,7 +3164,6 @@ export declare class Attribute extends EntityBase implements IEntity, IEntitySta
|
|
|
3078
3164
|
* values
|
|
3079
3165
|
*/
|
|
3080
3166
|
values$: RelationEntitiesObservable<AttributeValue>;
|
|
3081
|
-
[ENTITY_STATIC_TYPES]: AttributeStaticTypes;
|
|
3082
3167
|
/**
|
|
3083
3168
|
* name
|
|
3084
3169
|
*/
|
|
@@ -3103,6 +3188,11 @@ export declare class Attribute extends EntityBase implements IEntity, IEntitySta
|
|
|
3103
3188
|
* @param options 查询选项
|
|
3104
3189
|
*/
|
|
3105
3190
|
static findAll(options: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
|
|
3191
|
+
/**
|
|
3192
|
+
* findByCursor 查询
|
|
3193
|
+
* @param options 查询选项
|
|
3194
|
+
*/
|
|
3195
|
+
static findByCursor(options: FindByCursorOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
|
|
3106
3196
|
/**
|
|
3107
3197
|
* findOne 查询
|
|
3108
3198
|
* @param options 查询选项
|