@contractspec/example.marketplace 1.52.0 → 1.53.0
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/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/marketplace.feature.d.ts +2 -2
- package/dist/marketplace.feature.js +6 -6
- package/dist/marketplace.feature.js.map +1 -1
- package/dist/order/order.event.d.ts +6 -6
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.operations.d.ts +24 -24
- package/dist/payout/payout.presentation.d.ts +3 -3
- package/dist/payout/payout.presentation.js +1 -1
- package/dist/payout/payout.presentation.js.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.operations.d.ts +68 -68
- package/dist/product/product.presentation.d.ts +4 -4
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/product/product.schema.d.ts.map +1 -1
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.operations.d.ts +59 -59
- package/dist/review/review.presentation.d.ts +3 -3
- package/dist/review/review.presentation.js +1 -1
- package/dist/review/review.presentation.js.map +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.enum.d.ts.map +1 -1
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.operations.d.ts +33 -33
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/tests/operations.test-spec.d.ts +6 -6
- package/package.json +8 -8
package/dist/entities/order.d.ts
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema458 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/order.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Order status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderStatusEnum:
|
|
7
|
+
declare const OrderStatusEnum: _contractspec_lib_schema458.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Payment status enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const PaymentStatusEnum:
|
|
11
|
+
declare const PaymentStatusEnum: _contractspec_lib_schema458.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Order entity - a purchase transaction.
|
|
14
14
|
*/
|
|
15
|
-
declare const OrderEntity:
|
|
16
|
-
id:
|
|
17
|
-
orderNumber:
|
|
18
|
-
buyerId:
|
|
19
|
-
storeId:
|
|
20
|
-
status:
|
|
21
|
-
paymentStatus:
|
|
22
|
-
subtotal:
|
|
23
|
-
shippingTotal:
|
|
24
|
-
taxTotal:
|
|
25
|
-
discountTotal:
|
|
26
|
-
total:
|
|
27
|
-
currency:
|
|
28
|
-
platformFee:
|
|
29
|
-
sellerPayout:
|
|
30
|
-
shippingAddress:
|
|
31
|
-
billingAddress:
|
|
32
|
-
shippingMethod:
|
|
33
|
-
trackingNumber:
|
|
34
|
-
trackingUrl:
|
|
35
|
-
paymentMethod:
|
|
36
|
-
paymentIntentId:
|
|
37
|
-
buyerNote:
|
|
38
|
-
sellerNote:
|
|
39
|
-
internalNote:
|
|
40
|
-
createdAt:
|
|
41
|
-
updatedAt:
|
|
42
|
-
paidAt:
|
|
43
|
-
shippedAt:
|
|
44
|
-
deliveredAt:
|
|
45
|
-
completedAt:
|
|
46
|
-
cancelledAt:
|
|
47
|
-
store:
|
|
48
|
-
items:
|
|
49
|
-
refunds:
|
|
15
|
+
declare const OrderEntity: _contractspec_lib_schema458.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema458.EntityScalarField;
|
|
17
|
+
orderNumber: _contractspec_lib_schema458.EntityScalarField;
|
|
18
|
+
buyerId: _contractspec_lib_schema458.EntityScalarField;
|
|
19
|
+
storeId: _contractspec_lib_schema458.EntityScalarField;
|
|
20
|
+
status: _contractspec_lib_schema458.EntityEnumField;
|
|
21
|
+
paymentStatus: _contractspec_lib_schema458.EntityEnumField;
|
|
22
|
+
subtotal: _contractspec_lib_schema458.EntityScalarField;
|
|
23
|
+
shippingTotal: _contractspec_lib_schema458.EntityScalarField;
|
|
24
|
+
taxTotal: _contractspec_lib_schema458.EntityScalarField;
|
|
25
|
+
discountTotal: _contractspec_lib_schema458.EntityScalarField;
|
|
26
|
+
total: _contractspec_lib_schema458.EntityScalarField;
|
|
27
|
+
currency: _contractspec_lib_schema458.EntityScalarField;
|
|
28
|
+
platformFee: _contractspec_lib_schema458.EntityScalarField;
|
|
29
|
+
sellerPayout: _contractspec_lib_schema458.EntityScalarField;
|
|
30
|
+
shippingAddress: _contractspec_lib_schema458.EntityScalarField;
|
|
31
|
+
billingAddress: _contractspec_lib_schema458.EntityScalarField;
|
|
32
|
+
shippingMethod: _contractspec_lib_schema458.EntityScalarField;
|
|
33
|
+
trackingNumber: _contractspec_lib_schema458.EntityScalarField;
|
|
34
|
+
trackingUrl: _contractspec_lib_schema458.EntityScalarField;
|
|
35
|
+
paymentMethod: _contractspec_lib_schema458.EntityScalarField;
|
|
36
|
+
paymentIntentId: _contractspec_lib_schema458.EntityScalarField;
|
|
37
|
+
buyerNote: _contractspec_lib_schema458.EntityScalarField;
|
|
38
|
+
sellerNote: _contractspec_lib_schema458.EntityScalarField;
|
|
39
|
+
internalNote: _contractspec_lib_schema458.EntityScalarField;
|
|
40
|
+
createdAt: _contractspec_lib_schema458.EntityScalarField;
|
|
41
|
+
updatedAt: _contractspec_lib_schema458.EntityScalarField;
|
|
42
|
+
paidAt: _contractspec_lib_schema458.EntityScalarField;
|
|
43
|
+
shippedAt: _contractspec_lib_schema458.EntityScalarField;
|
|
44
|
+
deliveredAt: _contractspec_lib_schema458.EntityScalarField;
|
|
45
|
+
completedAt: _contractspec_lib_schema458.EntityScalarField;
|
|
46
|
+
cancelledAt: _contractspec_lib_schema458.EntityScalarField;
|
|
47
|
+
store: _contractspec_lib_schema458.EntityRelationField;
|
|
48
|
+
items: _contractspec_lib_schema458.EntityRelationField;
|
|
49
|
+
refunds: _contractspec_lib_schema458.EntityRelationField;
|
|
50
50
|
}>;
|
|
51
51
|
/**
|
|
52
52
|
* Order item entity - individual items in an order.
|
|
53
53
|
*/
|
|
54
|
-
declare const OrderItemEntity:
|
|
55
|
-
id:
|
|
56
|
-
orderId:
|
|
57
|
-
productId:
|
|
58
|
-
variantId:
|
|
59
|
-
productName:
|
|
60
|
-
variantName:
|
|
61
|
-
sku:
|
|
62
|
-
unitPrice:
|
|
63
|
-
quantity:
|
|
64
|
-
subtotal:
|
|
65
|
-
quantityFulfilled:
|
|
66
|
-
quantityRefunded:
|
|
67
|
-
createdAt:
|
|
68
|
-
updatedAt:
|
|
69
|
-
order:
|
|
70
|
-
product:
|
|
54
|
+
declare const OrderItemEntity: _contractspec_lib_schema458.EntitySpec<{
|
|
55
|
+
id: _contractspec_lib_schema458.EntityScalarField;
|
|
56
|
+
orderId: _contractspec_lib_schema458.EntityScalarField;
|
|
57
|
+
productId: _contractspec_lib_schema458.EntityScalarField;
|
|
58
|
+
variantId: _contractspec_lib_schema458.EntityScalarField;
|
|
59
|
+
productName: _contractspec_lib_schema458.EntityScalarField;
|
|
60
|
+
variantName: _contractspec_lib_schema458.EntityScalarField;
|
|
61
|
+
sku: _contractspec_lib_schema458.EntityScalarField;
|
|
62
|
+
unitPrice: _contractspec_lib_schema458.EntityScalarField;
|
|
63
|
+
quantity: _contractspec_lib_schema458.EntityScalarField;
|
|
64
|
+
subtotal: _contractspec_lib_schema458.EntityScalarField;
|
|
65
|
+
quantityFulfilled: _contractspec_lib_schema458.EntityScalarField;
|
|
66
|
+
quantityRefunded: _contractspec_lib_schema458.EntityScalarField;
|
|
67
|
+
createdAt: _contractspec_lib_schema458.EntityScalarField;
|
|
68
|
+
updatedAt: _contractspec_lib_schema458.EntityScalarField;
|
|
69
|
+
order: _contractspec_lib_schema458.EntityRelationField;
|
|
70
|
+
product: _contractspec_lib_schema458.EntityRelationField;
|
|
71
71
|
}>;
|
|
72
72
|
/**
|
|
73
73
|
* Refund entity - refund records for orders.
|
|
74
74
|
*/
|
|
75
|
-
declare const RefundEntity:
|
|
76
|
-
id:
|
|
77
|
-
orderId:
|
|
78
|
-
amount:
|
|
79
|
-
currency:
|
|
80
|
-
reason:
|
|
81
|
-
notes:
|
|
82
|
-
status:
|
|
83
|
-
refundId:
|
|
84
|
-
issuedBy:
|
|
85
|
-
createdAt:
|
|
86
|
-
processedAt:
|
|
87
|
-
order:
|
|
88
|
-
items:
|
|
75
|
+
declare const RefundEntity: _contractspec_lib_schema458.EntitySpec<{
|
|
76
|
+
id: _contractspec_lib_schema458.EntityScalarField;
|
|
77
|
+
orderId: _contractspec_lib_schema458.EntityScalarField;
|
|
78
|
+
amount: _contractspec_lib_schema458.EntityScalarField;
|
|
79
|
+
currency: _contractspec_lib_schema458.EntityScalarField;
|
|
80
|
+
reason: _contractspec_lib_schema458.EntityScalarField;
|
|
81
|
+
notes: _contractspec_lib_schema458.EntityScalarField;
|
|
82
|
+
status: _contractspec_lib_schema458.EntityScalarField;
|
|
83
|
+
refundId: _contractspec_lib_schema458.EntityScalarField;
|
|
84
|
+
issuedBy: _contractspec_lib_schema458.EntityScalarField;
|
|
85
|
+
createdAt: _contractspec_lib_schema458.EntityScalarField;
|
|
86
|
+
processedAt: _contractspec_lib_schema458.EntityScalarField;
|
|
87
|
+
order: _contractspec_lib_schema458.EntityRelationField;
|
|
88
|
+
items: _contractspec_lib_schema458.EntityRelationField;
|
|
89
89
|
}>;
|
|
90
90
|
/**
|
|
91
91
|
* Refund item entity - items being refunded.
|
|
92
92
|
*/
|
|
93
|
-
declare const RefundItemEntity:
|
|
94
|
-
id:
|
|
95
|
-
refundId:
|
|
96
|
-
orderItemId:
|
|
97
|
-
quantity:
|
|
98
|
-
amount:
|
|
99
|
-
createdAt:
|
|
100
|
-
refund:
|
|
101
|
-
orderItem:
|
|
93
|
+
declare const RefundItemEntity: _contractspec_lib_schema458.EntitySpec<{
|
|
94
|
+
id: _contractspec_lib_schema458.EntityScalarField;
|
|
95
|
+
refundId: _contractspec_lib_schema458.EntityScalarField;
|
|
96
|
+
orderItemId: _contractspec_lib_schema458.EntityScalarField;
|
|
97
|
+
quantity: _contractspec_lib_schema458.EntityScalarField;
|
|
98
|
+
amount: _contractspec_lib_schema458.EntityScalarField;
|
|
99
|
+
createdAt: _contractspec_lib_schema458.EntityScalarField;
|
|
100
|
+
refund: _contractspec_lib_schema458.EntityRelationField;
|
|
101
|
+
orderItem: _contractspec_lib_schema458.EntityRelationField;
|
|
102
102
|
}>;
|
|
103
103
|
//#endregion
|
|
104
104
|
export { OrderEntity, OrderItemEntity, OrderStatusEnum, PaymentStatusEnum, RefundEntity, RefundItemEntity };
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema535 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/payout.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payout status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutStatusEnum:
|
|
7
|
+
declare const PayoutStatusEnum: _contractspec_lib_schema535.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Payout schedule enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const PayoutScheduleEnum:
|
|
11
|
+
declare const PayoutScheduleEnum: _contractspec_lib_schema535.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Payout entity - payment to seller.
|
|
14
14
|
*/
|
|
15
|
-
declare const PayoutEntity:
|
|
16
|
-
id:
|
|
17
|
-
storeId:
|
|
18
|
-
payoutNumber:
|
|
19
|
-
status:
|
|
20
|
-
grossAmount:
|
|
21
|
-
platformFees:
|
|
22
|
-
otherDeductions:
|
|
23
|
-
netAmount:
|
|
24
|
-
currency:
|
|
25
|
-
periodStart:
|
|
26
|
-
periodEnd:
|
|
27
|
-
paymentMethod:
|
|
28
|
-
paymentReference:
|
|
29
|
-
bankAccountId:
|
|
30
|
-
bankAccountLast4:
|
|
31
|
-
notes:
|
|
32
|
-
failureReason:
|
|
33
|
-
orderCount:
|
|
34
|
-
createdAt:
|
|
35
|
-
updatedAt:
|
|
36
|
-
scheduledAt:
|
|
37
|
-
processedAt:
|
|
38
|
-
paidAt:
|
|
39
|
-
store:
|
|
40
|
-
items:
|
|
15
|
+
declare const PayoutEntity: _contractspec_lib_schema535.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema535.EntityScalarField;
|
|
17
|
+
storeId: _contractspec_lib_schema535.EntityScalarField;
|
|
18
|
+
payoutNumber: _contractspec_lib_schema535.EntityScalarField;
|
|
19
|
+
status: _contractspec_lib_schema535.EntityEnumField;
|
|
20
|
+
grossAmount: _contractspec_lib_schema535.EntityScalarField;
|
|
21
|
+
platformFees: _contractspec_lib_schema535.EntityScalarField;
|
|
22
|
+
otherDeductions: _contractspec_lib_schema535.EntityScalarField;
|
|
23
|
+
netAmount: _contractspec_lib_schema535.EntityScalarField;
|
|
24
|
+
currency: _contractspec_lib_schema535.EntityScalarField;
|
|
25
|
+
periodStart: _contractspec_lib_schema535.EntityScalarField;
|
|
26
|
+
periodEnd: _contractspec_lib_schema535.EntityScalarField;
|
|
27
|
+
paymentMethod: _contractspec_lib_schema535.EntityScalarField;
|
|
28
|
+
paymentReference: _contractspec_lib_schema535.EntityScalarField;
|
|
29
|
+
bankAccountId: _contractspec_lib_schema535.EntityScalarField;
|
|
30
|
+
bankAccountLast4: _contractspec_lib_schema535.EntityScalarField;
|
|
31
|
+
notes: _contractspec_lib_schema535.EntityScalarField;
|
|
32
|
+
failureReason: _contractspec_lib_schema535.EntityScalarField;
|
|
33
|
+
orderCount: _contractspec_lib_schema535.EntityScalarField;
|
|
34
|
+
createdAt: _contractspec_lib_schema535.EntityScalarField;
|
|
35
|
+
updatedAt: _contractspec_lib_schema535.EntityScalarField;
|
|
36
|
+
scheduledAt: _contractspec_lib_schema535.EntityScalarField;
|
|
37
|
+
processedAt: _contractspec_lib_schema535.EntityScalarField;
|
|
38
|
+
paidAt: _contractspec_lib_schema535.EntityScalarField;
|
|
39
|
+
store: _contractspec_lib_schema535.EntityRelationField;
|
|
40
|
+
items: _contractspec_lib_schema535.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Payout item entity - orders included in a payout.
|
|
44
44
|
*/
|
|
45
|
-
declare const PayoutItemEntity:
|
|
46
|
-
id:
|
|
47
|
-
payoutId:
|
|
48
|
-
orderId:
|
|
49
|
-
orderTotal:
|
|
50
|
-
platformFee:
|
|
51
|
-
netAmount:
|
|
52
|
-
createdAt:
|
|
53
|
-
payout:
|
|
54
|
-
order:
|
|
45
|
+
declare const PayoutItemEntity: _contractspec_lib_schema535.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema535.EntityScalarField;
|
|
47
|
+
payoutId: _contractspec_lib_schema535.EntityScalarField;
|
|
48
|
+
orderId: _contractspec_lib_schema535.EntityScalarField;
|
|
49
|
+
orderTotal: _contractspec_lib_schema535.EntityScalarField;
|
|
50
|
+
platformFee: _contractspec_lib_schema535.EntityScalarField;
|
|
51
|
+
netAmount: _contractspec_lib_schema535.EntityScalarField;
|
|
52
|
+
createdAt: _contractspec_lib_schema535.EntityScalarField;
|
|
53
|
+
payout: _contractspec_lib_schema535.EntityRelationField;
|
|
54
|
+
order: _contractspec_lib_schema535.EntityRelationField;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Bank account entity - seller payment destinations.
|
|
58
58
|
*/
|
|
59
|
-
declare const BankAccountEntity:
|
|
60
|
-
id:
|
|
61
|
-
storeId:
|
|
62
|
-
accountHolderName:
|
|
63
|
-
accountType:
|
|
64
|
-
bankName:
|
|
65
|
-
last4:
|
|
66
|
-
routingLast4:
|
|
67
|
-
externalId:
|
|
68
|
-
isDefault:
|
|
69
|
-
isVerified:
|
|
70
|
-
createdAt:
|
|
71
|
-
updatedAt:
|
|
72
|
-
verifiedAt:
|
|
73
|
-
store:
|
|
59
|
+
declare const BankAccountEntity: _contractspec_lib_schema535.EntitySpec<{
|
|
60
|
+
id: _contractspec_lib_schema535.EntityScalarField;
|
|
61
|
+
storeId: _contractspec_lib_schema535.EntityScalarField;
|
|
62
|
+
accountHolderName: _contractspec_lib_schema535.EntityScalarField;
|
|
63
|
+
accountType: _contractspec_lib_schema535.EntityScalarField;
|
|
64
|
+
bankName: _contractspec_lib_schema535.EntityScalarField;
|
|
65
|
+
last4: _contractspec_lib_schema535.EntityScalarField;
|
|
66
|
+
routingLast4: _contractspec_lib_schema535.EntityScalarField;
|
|
67
|
+
externalId: _contractspec_lib_schema535.EntityScalarField;
|
|
68
|
+
isDefault: _contractspec_lib_schema535.EntityScalarField;
|
|
69
|
+
isVerified: _contractspec_lib_schema535.EntityScalarField;
|
|
70
|
+
createdAt: _contractspec_lib_schema535.EntityScalarField;
|
|
71
|
+
updatedAt: _contractspec_lib_schema535.EntityScalarField;
|
|
72
|
+
verifiedAt: _contractspec_lib_schema535.EntityScalarField;
|
|
73
|
+
store: _contractspec_lib_schema535.EntityRelationField;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Payout settings entity - store payout configuration.
|
|
77
77
|
*/
|
|
78
|
-
declare const PayoutSettingsEntity:
|
|
79
|
-
id:
|
|
80
|
-
storeId:
|
|
81
|
-
schedule:
|
|
82
|
-
dayOfWeek:
|
|
83
|
-
dayOfMonth:
|
|
84
|
-
minimumPayout:
|
|
85
|
-
defaultBankAccountId:
|
|
86
|
-
createdAt:
|
|
87
|
-
updatedAt:
|
|
88
|
-
store:
|
|
78
|
+
declare const PayoutSettingsEntity: _contractspec_lib_schema535.EntitySpec<{
|
|
79
|
+
id: _contractspec_lib_schema535.EntityScalarField;
|
|
80
|
+
storeId: _contractspec_lib_schema535.EntityScalarField;
|
|
81
|
+
schedule: _contractspec_lib_schema535.EntityEnumField;
|
|
82
|
+
dayOfWeek: _contractspec_lib_schema535.EntityScalarField;
|
|
83
|
+
dayOfMonth: _contractspec_lib_schema535.EntityScalarField;
|
|
84
|
+
minimumPayout: _contractspec_lib_schema535.EntityScalarField;
|
|
85
|
+
defaultBankAccountId: _contractspec_lib_schema535.EntityScalarField;
|
|
86
|
+
createdAt: _contractspec_lib_schema535.EntityScalarField;
|
|
87
|
+
updatedAt: _contractspec_lib_schema535.EntityScalarField;
|
|
88
|
+
store: _contractspec_lib_schema535.EntityRelationField;
|
|
89
89
|
}>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { BankAccountEntity, PayoutEntity, PayoutItemEntity, PayoutScheduleEnum, PayoutSettingsEntity, PayoutStatusEnum };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema684 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/review.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Review status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ReviewStatusEnum:
|
|
7
|
+
declare const ReviewStatusEnum: _contractspec_lib_schema684.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Review type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ReviewTypeEnum:
|
|
11
|
+
declare const ReviewTypeEnum: _contractspec_lib_schema684.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Review entity - customer reviews and ratings.
|
|
14
14
|
*/
|
|
15
|
-
declare const ReviewEntity:
|
|
16
|
-
id:
|
|
17
|
-
type:
|
|
18
|
-
productId:
|
|
19
|
-
storeId:
|
|
20
|
-
orderId:
|
|
21
|
-
orderItemId:
|
|
22
|
-
authorId:
|
|
23
|
-
rating:
|
|
24
|
-
title:
|
|
25
|
-
content:
|
|
26
|
-
isVerifiedPurchase:
|
|
27
|
-
status:
|
|
28
|
-
hasMedia:
|
|
29
|
-
helpfulCount:
|
|
30
|
-
notHelpfulCount:
|
|
31
|
-
moderatedBy:
|
|
32
|
-
moderatedAt:
|
|
33
|
-
moderationNote:
|
|
34
|
-
hasResponse:
|
|
35
|
-
createdAt:
|
|
36
|
-
updatedAt:
|
|
37
|
-
product:
|
|
38
|
-
store:
|
|
39
|
-
responses:
|
|
40
|
-
votes:
|
|
15
|
+
declare const ReviewEntity: _contractspec_lib_schema684.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema684.EntityScalarField;
|
|
17
|
+
type: _contractspec_lib_schema684.EntityEnumField;
|
|
18
|
+
productId: _contractspec_lib_schema684.EntityScalarField;
|
|
19
|
+
storeId: _contractspec_lib_schema684.EntityScalarField;
|
|
20
|
+
orderId: _contractspec_lib_schema684.EntityScalarField;
|
|
21
|
+
orderItemId: _contractspec_lib_schema684.EntityScalarField;
|
|
22
|
+
authorId: _contractspec_lib_schema684.EntityScalarField;
|
|
23
|
+
rating: _contractspec_lib_schema684.EntityScalarField;
|
|
24
|
+
title: _contractspec_lib_schema684.EntityScalarField;
|
|
25
|
+
content: _contractspec_lib_schema684.EntityScalarField;
|
|
26
|
+
isVerifiedPurchase: _contractspec_lib_schema684.EntityScalarField;
|
|
27
|
+
status: _contractspec_lib_schema684.EntityEnumField;
|
|
28
|
+
hasMedia: _contractspec_lib_schema684.EntityScalarField;
|
|
29
|
+
helpfulCount: _contractspec_lib_schema684.EntityScalarField;
|
|
30
|
+
notHelpfulCount: _contractspec_lib_schema684.EntityScalarField;
|
|
31
|
+
moderatedBy: _contractspec_lib_schema684.EntityScalarField;
|
|
32
|
+
moderatedAt: _contractspec_lib_schema684.EntityScalarField;
|
|
33
|
+
moderationNote: _contractspec_lib_schema684.EntityScalarField;
|
|
34
|
+
hasResponse: _contractspec_lib_schema684.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema684.EntityScalarField;
|
|
36
|
+
updatedAt: _contractspec_lib_schema684.EntityScalarField;
|
|
37
|
+
product: _contractspec_lib_schema684.EntityRelationField;
|
|
38
|
+
store: _contractspec_lib_schema684.EntityRelationField;
|
|
39
|
+
responses: _contractspec_lib_schema684.EntityRelationField;
|
|
40
|
+
votes: _contractspec_lib_schema684.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Review response entity - seller responses to reviews.
|
|
44
44
|
*/
|
|
45
|
-
declare const ReviewResponseEntity:
|
|
46
|
-
id:
|
|
47
|
-
reviewId:
|
|
48
|
-
authorId:
|
|
49
|
-
content:
|
|
50
|
-
createdAt:
|
|
51
|
-
updatedAt:
|
|
52
|
-
review:
|
|
45
|
+
declare const ReviewResponseEntity: _contractspec_lib_schema684.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema684.EntityScalarField;
|
|
47
|
+
reviewId: _contractspec_lib_schema684.EntityScalarField;
|
|
48
|
+
authorId: _contractspec_lib_schema684.EntityScalarField;
|
|
49
|
+
content: _contractspec_lib_schema684.EntityScalarField;
|
|
50
|
+
createdAt: _contractspec_lib_schema684.EntityScalarField;
|
|
51
|
+
updatedAt: _contractspec_lib_schema684.EntityScalarField;
|
|
52
|
+
review: _contractspec_lib_schema684.EntityRelationField;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
55
|
* Review vote entity - helpfulness votes.
|
|
56
56
|
*/
|
|
57
|
-
declare const ReviewVoteEntity:
|
|
58
|
-
id:
|
|
59
|
-
reviewId:
|
|
60
|
-
userId:
|
|
61
|
-
isHelpful:
|
|
62
|
-
createdAt:
|
|
63
|
-
review:
|
|
57
|
+
declare const ReviewVoteEntity: _contractspec_lib_schema684.EntitySpec<{
|
|
58
|
+
id: _contractspec_lib_schema684.EntityScalarField;
|
|
59
|
+
reviewId: _contractspec_lib_schema684.EntityScalarField;
|
|
60
|
+
userId: _contractspec_lib_schema684.EntityScalarField;
|
|
61
|
+
isHelpful: _contractspec_lib_schema684.EntityScalarField;
|
|
62
|
+
createdAt: _contractspec_lib_schema684.EntityScalarField;
|
|
63
|
+
review: _contractspec_lib_schema684.EntityRelationField;
|
|
64
64
|
}>;
|
|
65
65
|
/**
|
|
66
66
|
* Review report entity - flagged reviews.
|
|
67
67
|
*/
|
|
68
|
-
declare const ReviewReportEntity:
|
|
69
|
-
id:
|
|
70
|
-
reviewId:
|
|
71
|
-
reporterId:
|
|
72
|
-
reason:
|
|
73
|
-
details:
|
|
74
|
-
status:
|
|
75
|
-
resolvedBy:
|
|
76
|
-
resolvedAt:
|
|
77
|
-
resolution:
|
|
78
|
-
createdAt:
|
|
79
|
-
review:
|
|
68
|
+
declare const ReviewReportEntity: _contractspec_lib_schema684.EntitySpec<{
|
|
69
|
+
id: _contractspec_lib_schema684.EntityScalarField;
|
|
70
|
+
reviewId: _contractspec_lib_schema684.EntityScalarField;
|
|
71
|
+
reporterId: _contractspec_lib_schema684.EntityScalarField;
|
|
72
|
+
reason: _contractspec_lib_schema684.EntityScalarField;
|
|
73
|
+
details: _contractspec_lib_schema684.EntityScalarField;
|
|
74
|
+
status: _contractspec_lib_schema684.EntityScalarField;
|
|
75
|
+
resolvedBy: _contractspec_lib_schema684.EntityScalarField;
|
|
76
|
+
resolvedAt: _contractspec_lib_schema684.EntityScalarField;
|
|
77
|
+
resolution: _contractspec_lib_schema684.EntityScalarField;
|
|
78
|
+
createdAt: _contractspec_lib_schema684.EntityScalarField;
|
|
79
|
+
review: _contractspec_lib_schema684.EntityRelationField;
|
|
80
80
|
}>;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { ReviewEntity, ReviewReportEntity, ReviewResponseEntity, ReviewStatusEnum, ReviewTypeEnum, ReviewVoteEntity };
|
package/dist/entities/store.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema761 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/store.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Store status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const StoreStatusEnum:
|
|
7
|
+
declare const StoreStatusEnum: _contractspec_lib_schema761.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Store type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StoreTypeEnum:
|
|
11
|
+
declare const StoreTypeEnum: _contractspec_lib_schema761.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Store entity - a seller's storefront on the marketplace.
|
|
14
14
|
*/
|
|
15
|
-
declare const StoreEntity:
|
|
16
|
-
id:
|
|
17
|
-
name:
|
|
18
|
-
slug:
|
|
19
|
-
description:
|
|
20
|
-
status:
|
|
21
|
-
type:
|
|
22
|
-
ownerId:
|
|
23
|
-
organizationId:
|
|
24
|
-
logoFileId:
|
|
25
|
-
bannerFileId:
|
|
26
|
-
email:
|
|
27
|
-
phone:
|
|
28
|
-
website:
|
|
29
|
-
country:
|
|
30
|
-
currency:
|
|
31
|
-
timezone:
|
|
32
|
-
commissionRate:
|
|
33
|
-
isVerified:
|
|
34
|
-
verifiedAt:
|
|
35
|
-
settings:
|
|
36
|
-
metadata:
|
|
37
|
-
totalProducts:
|
|
38
|
-
totalOrders:
|
|
39
|
-
totalRevenue:
|
|
40
|
-
averageRating:
|
|
41
|
-
createdAt:
|
|
42
|
-
updatedAt:
|
|
43
|
-
products:
|
|
44
|
-
orders:
|
|
45
|
-
payouts:
|
|
15
|
+
declare const StoreEntity: _contractspec_lib_schema761.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema761.EntityScalarField;
|
|
17
|
+
name: _contractspec_lib_schema761.EntityScalarField;
|
|
18
|
+
slug: _contractspec_lib_schema761.EntityScalarField;
|
|
19
|
+
description: _contractspec_lib_schema761.EntityScalarField;
|
|
20
|
+
status: _contractspec_lib_schema761.EntityEnumField;
|
|
21
|
+
type: _contractspec_lib_schema761.EntityEnumField;
|
|
22
|
+
ownerId: _contractspec_lib_schema761.EntityScalarField;
|
|
23
|
+
organizationId: _contractspec_lib_schema761.EntityScalarField;
|
|
24
|
+
logoFileId: _contractspec_lib_schema761.EntityScalarField;
|
|
25
|
+
bannerFileId: _contractspec_lib_schema761.EntityScalarField;
|
|
26
|
+
email: _contractspec_lib_schema761.EntityScalarField;
|
|
27
|
+
phone: _contractspec_lib_schema761.EntityScalarField;
|
|
28
|
+
website: _contractspec_lib_schema761.EntityScalarField;
|
|
29
|
+
country: _contractspec_lib_schema761.EntityScalarField;
|
|
30
|
+
currency: _contractspec_lib_schema761.EntityScalarField;
|
|
31
|
+
timezone: _contractspec_lib_schema761.EntityScalarField;
|
|
32
|
+
commissionRate: _contractspec_lib_schema761.EntityScalarField;
|
|
33
|
+
isVerified: _contractspec_lib_schema761.EntityScalarField;
|
|
34
|
+
verifiedAt: _contractspec_lib_schema761.EntityScalarField;
|
|
35
|
+
settings: _contractspec_lib_schema761.EntityScalarField;
|
|
36
|
+
metadata: _contractspec_lib_schema761.EntityScalarField;
|
|
37
|
+
totalProducts: _contractspec_lib_schema761.EntityScalarField;
|
|
38
|
+
totalOrders: _contractspec_lib_schema761.EntityScalarField;
|
|
39
|
+
totalRevenue: _contractspec_lib_schema761.EntityScalarField;
|
|
40
|
+
averageRating: _contractspec_lib_schema761.EntityScalarField;
|
|
41
|
+
createdAt: _contractspec_lib_schema761.EntityScalarField;
|
|
42
|
+
updatedAt: _contractspec_lib_schema761.EntityScalarField;
|
|
43
|
+
products: _contractspec_lib_schema761.EntityRelationField;
|
|
44
|
+
orders: _contractspec_lib_schema761.EntityRelationField;
|
|
45
|
+
payouts: _contractspec_lib_schema761.EntityRelationField;
|
|
46
46
|
}>;
|
|
47
47
|
/**
|
|
48
48
|
* Store category entity - categorization for stores.
|
|
49
49
|
*/
|
|
50
|
-
declare const StoreCategoryEntity:
|
|
51
|
-
id:
|
|
52
|
-
storeId:
|
|
53
|
-
categoryId:
|
|
54
|
-
isPrimary:
|
|
55
|
-
createdAt:
|
|
56
|
-
store:
|
|
50
|
+
declare const StoreCategoryEntity: _contractspec_lib_schema761.EntitySpec<{
|
|
51
|
+
id: _contractspec_lib_schema761.EntityScalarField;
|
|
52
|
+
storeId: _contractspec_lib_schema761.EntityScalarField;
|
|
53
|
+
categoryId: _contractspec_lib_schema761.EntityScalarField;
|
|
54
|
+
isPrimary: _contractspec_lib_schema761.EntityScalarField;
|
|
55
|
+
createdAt: _contractspec_lib_schema761.EntityScalarField;
|
|
56
|
+
store: _contractspec_lib_schema761.EntityRelationField;
|
|
57
57
|
}>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/marketplace.feature.d.ts
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
|
|
|
6
6
|
* Marketplace feature module that bundles multi-vendor marketplace
|
|
7
7
|
* capabilities including stores, products, orders, payouts, and reviews.
|
|
8
8
|
*/
|
|
9
|
-
declare const MarketplaceFeature:
|
|
9
|
+
declare const MarketplaceFeature: _contractspec_lib_contracts3.FeatureModuleSpec;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { MarketplaceFeature };
|
|
12
12
|
//# sourceMappingURL=marketplace.feature.d.ts.map
|