@contractspec/example.marketplace 1.49.0 → 1.51.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/payout.d.ts +65 -65
- package/dist/entities/payout.d.ts.map +1 -1
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/review.d.ts.map +1 -1
- package/dist/entities/store.d.ts +41 -41
- package/dist/marketplace.capability.d.ts +4 -4
- package/dist/marketplace.feature.d.ts +2 -2
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.event.d.ts +38 -38
- package/dist/order/order.operations.d.ts +90 -90
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.presentation.d.ts +4 -4
- package/dist/order/order.presentation.d.ts.map +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.event.d.ts +16 -16
- package/dist/payout/payout.operations.d.ts +23 -23
- package/dist/payout/payout.presentation.d.ts +3 -3
- package/dist/payout/payout.schema.d.ts +37 -37
- 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/review/review.enum.d.ts +2 -2
- package/dist/review/review.enum.d.ts.map +1 -1
- package/dist/review/review.event.d.ts +14 -14
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.operations.d.ts +58 -58
- package/dist/review/review.operations.d.ts.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 +13 -13
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.operations.d.ts +33 -33
- package/dist/store/store.presentation.d.ts +3 -3
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/store/store.schema.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.d.ts +6 -6
- package/package.json +8 -8
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema371 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_schema371.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Payout schedule enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const PayoutScheduleEnum:
|
|
11
|
+
declare const PayoutScheduleEnum: _contractspec_lib_schema371.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_schema371.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema371.EntityScalarField;
|
|
17
|
+
storeId: _contractspec_lib_schema371.EntityScalarField;
|
|
18
|
+
payoutNumber: _contractspec_lib_schema371.EntityScalarField;
|
|
19
|
+
status: _contractspec_lib_schema371.EntityEnumField;
|
|
20
|
+
grossAmount: _contractspec_lib_schema371.EntityScalarField;
|
|
21
|
+
platformFees: _contractspec_lib_schema371.EntityScalarField;
|
|
22
|
+
otherDeductions: _contractspec_lib_schema371.EntityScalarField;
|
|
23
|
+
netAmount: _contractspec_lib_schema371.EntityScalarField;
|
|
24
|
+
currency: _contractspec_lib_schema371.EntityScalarField;
|
|
25
|
+
periodStart: _contractspec_lib_schema371.EntityScalarField;
|
|
26
|
+
periodEnd: _contractspec_lib_schema371.EntityScalarField;
|
|
27
|
+
paymentMethod: _contractspec_lib_schema371.EntityScalarField;
|
|
28
|
+
paymentReference: _contractspec_lib_schema371.EntityScalarField;
|
|
29
|
+
bankAccountId: _contractspec_lib_schema371.EntityScalarField;
|
|
30
|
+
bankAccountLast4: _contractspec_lib_schema371.EntityScalarField;
|
|
31
|
+
notes: _contractspec_lib_schema371.EntityScalarField;
|
|
32
|
+
failureReason: _contractspec_lib_schema371.EntityScalarField;
|
|
33
|
+
orderCount: _contractspec_lib_schema371.EntityScalarField;
|
|
34
|
+
createdAt: _contractspec_lib_schema371.EntityScalarField;
|
|
35
|
+
updatedAt: _contractspec_lib_schema371.EntityScalarField;
|
|
36
|
+
scheduledAt: _contractspec_lib_schema371.EntityScalarField;
|
|
37
|
+
processedAt: _contractspec_lib_schema371.EntityScalarField;
|
|
38
|
+
paidAt: _contractspec_lib_schema371.EntityScalarField;
|
|
39
|
+
store: _contractspec_lib_schema371.EntityRelationField;
|
|
40
|
+
items: _contractspec_lib_schema371.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_schema371.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema371.EntityScalarField;
|
|
47
|
+
payoutId: _contractspec_lib_schema371.EntityScalarField;
|
|
48
|
+
orderId: _contractspec_lib_schema371.EntityScalarField;
|
|
49
|
+
orderTotal: _contractspec_lib_schema371.EntityScalarField;
|
|
50
|
+
platformFee: _contractspec_lib_schema371.EntityScalarField;
|
|
51
|
+
netAmount: _contractspec_lib_schema371.EntityScalarField;
|
|
52
|
+
createdAt: _contractspec_lib_schema371.EntityScalarField;
|
|
53
|
+
payout: _contractspec_lib_schema371.EntityRelationField;
|
|
54
|
+
order: _contractspec_lib_schema371.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_schema371.EntitySpec<{
|
|
60
|
+
id: _contractspec_lib_schema371.EntityScalarField;
|
|
61
|
+
storeId: _contractspec_lib_schema371.EntityScalarField;
|
|
62
|
+
accountHolderName: _contractspec_lib_schema371.EntityScalarField;
|
|
63
|
+
accountType: _contractspec_lib_schema371.EntityScalarField;
|
|
64
|
+
bankName: _contractspec_lib_schema371.EntityScalarField;
|
|
65
|
+
last4: _contractspec_lib_schema371.EntityScalarField;
|
|
66
|
+
routingLast4: _contractspec_lib_schema371.EntityScalarField;
|
|
67
|
+
externalId: _contractspec_lib_schema371.EntityScalarField;
|
|
68
|
+
isDefault: _contractspec_lib_schema371.EntityScalarField;
|
|
69
|
+
isVerified: _contractspec_lib_schema371.EntityScalarField;
|
|
70
|
+
createdAt: _contractspec_lib_schema371.EntityScalarField;
|
|
71
|
+
updatedAt: _contractspec_lib_schema371.EntityScalarField;
|
|
72
|
+
verifiedAt: _contractspec_lib_schema371.EntityScalarField;
|
|
73
|
+
store: _contractspec_lib_schema371.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_schema371.EntitySpec<{
|
|
79
|
+
id: _contractspec_lib_schema371.EntityScalarField;
|
|
80
|
+
storeId: _contractspec_lib_schema371.EntityScalarField;
|
|
81
|
+
schedule: _contractspec_lib_schema371.EntityEnumField;
|
|
82
|
+
dayOfWeek: _contractspec_lib_schema371.EntityScalarField;
|
|
83
|
+
dayOfMonth: _contractspec_lib_schema371.EntityScalarField;
|
|
84
|
+
minimumPayout: _contractspec_lib_schema371.EntityScalarField;
|
|
85
|
+
defaultBankAccountId: _contractspec_lib_schema371.EntityScalarField;
|
|
86
|
+
createdAt: _contractspec_lib_schema371.EntityScalarField;
|
|
87
|
+
updatedAt: _contractspec_lib_schema371.EntityScalarField;
|
|
88
|
+
store: _contractspec_lib_schema371.EntityRelationField;
|
|
89
89
|
}>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { BankAccountEntity, PayoutEntity, PayoutItemEntity, PayoutScheduleEnum, PayoutSettingsEntity, PayoutStatusEnum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.d.ts","names":[],"sources":["../../src/entities/payout.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,gBAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"payout.d.ts","names":[],"sources":["../../src/entities/payout.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,gBAKX,EAAA,2BAAA,CAL2B,aAK3B;AAKF;AAUA;;cAVa,oBAKX,2BAAA,CAL6B;;;;cAUlB,0CAAY;MA6DvB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;0DA7DuB;EAAA,WAAA,+CAAA;EAkEZ,WAAA,+CAwBX;EAAA,MAAA,+CAAA;;;;;;;cAxBW,8CAAgB;MAwB3B,2BAAA,CAAA;yDAxB2B;EAAA,OAAA,+CAAA;EA6BhB,UAAA,+CAqCX;EAAA,WAAA,+CAAA;;;;;;;;;cArCW,+CAAiB;MAqC5B,2BAAA,CAAA;;;;yDArC4B;EAAA,KAAA,+CAAA;EA0CjB,YAAA,+CAsCX;EAAA,UAAA,+CAAA;;;;;;;;;;;AAtC+B,cAApB,oBAAoB,8BAAA,UAAA,CAAA;MAsC/B,2BAAA,CAAA"}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema435 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/product.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Product status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ProductStatusEnum:
|
|
7
|
+
declare const ProductStatusEnum: _contractspec_lib_schema435.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Product type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ProductTypeEnum:
|
|
11
|
+
declare const ProductTypeEnum: _contractspec_lib_schema435.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Product entity - an item for sale on the marketplace.
|
|
14
14
|
*/
|
|
15
|
-
declare const ProductEntity:
|
|
16
|
-
id:
|
|
17
|
-
storeId:
|
|
18
|
-
name:
|
|
19
|
-
slug:
|
|
20
|
-
description:
|
|
21
|
-
shortDescription:
|
|
22
|
-
status:
|
|
23
|
-
type:
|
|
24
|
-
price:
|
|
25
|
-
compareAtPrice:
|
|
26
|
-
currency:
|
|
27
|
-
sku:
|
|
28
|
-
barcode:
|
|
29
|
-
quantity:
|
|
30
|
-
trackInventory:
|
|
31
|
-
allowBackorder:
|
|
32
|
-
lowStockThreshold:
|
|
33
|
-
weight:
|
|
34
|
-
weightUnit:
|
|
35
|
-
categoryId:
|
|
36
|
-
tags:
|
|
37
|
-
primaryImageId:
|
|
38
|
-
seoTitle:
|
|
39
|
-
seoDescription:
|
|
40
|
-
attributes:
|
|
41
|
-
reviewCount:
|
|
42
|
-
averageRating:
|
|
43
|
-
totalSold:
|
|
44
|
-
createdAt:
|
|
45
|
-
updatedAt:
|
|
46
|
-
publishedAt:
|
|
47
|
-
store:
|
|
48
|
-
variants:
|
|
49
|
-
orderItems:
|
|
50
|
-
reviews:
|
|
15
|
+
declare const ProductEntity: _contractspec_lib_schema435.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema435.EntityScalarField;
|
|
17
|
+
storeId: _contractspec_lib_schema435.EntityScalarField;
|
|
18
|
+
name: _contractspec_lib_schema435.EntityScalarField;
|
|
19
|
+
slug: _contractspec_lib_schema435.EntityScalarField;
|
|
20
|
+
description: _contractspec_lib_schema435.EntityScalarField;
|
|
21
|
+
shortDescription: _contractspec_lib_schema435.EntityScalarField;
|
|
22
|
+
status: _contractspec_lib_schema435.EntityEnumField;
|
|
23
|
+
type: _contractspec_lib_schema435.EntityEnumField;
|
|
24
|
+
price: _contractspec_lib_schema435.EntityScalarField;
|
|
25
|
+
compareAtPrice: _contractspec_lib_schema435.EntityScalarField;
|
|
26
|
+
currency: _contractspec_lib_schema435.EntityScalarField;
|
|
27
|
+
sku: _contractspec_lib_schema435.EntityScalarField;
|
|
28
|
+
barcode: _contractspec_lib_schema435.EntityScalarField;
|
|
29
|
+
quantity: _contractspec_lib_schema435.EntityScalarField;
|
|
30
|
+
trackInventory: _contractspec_lib_schema435.EntityScalarField;
|
|
31
|
+
allowBackorder: _contractspec_lib_schema435.EntityScalarField;
|
|
32
|
+
lowStockThreshold: _contractspec_lib_schema435.EntityScalarField;
|
|
33
|
+
weight: _contractspec_lib_schema435.EntityScalarField;
|
|
34
|
+
weightUnit: _contractspec_lib_schema435.EntityScalarField;
|
|
35
|
+
categoryId: _contractspec_lib_schema435.EntityScalarField;
|
|
36
|
+
tags: _contractspec_lib_schema435.EntityScalarField;
|
|
37
|
+
primaryImageId: _contractspec_lib_schema435.EntityScalarField;
|
|
38
|
+
seoTitle: _contractspec_lib_schema435.EntityScalarField;
|
|
39
|
+
seoDescription: _contractspec_lib_schema435.EntityScalarField;
|
|
40
|
+
attributes: _contractspec_lib_schema435.EntityScalarField;
|
|
41
|
+
reviewCount: _contractspec_lib_schema435.EntityScalarField;
|
|
42
|
+
averageRating: _contractspec_lib_schema435.EntityScalarField;
|
|
43
|
+
totalSold: _contractspec_lib_schema435.EntityScalarField;
|
|
44
|
+
createdAt: _contractspec_lib_schema435.EntityScalarField;
|
|
45
|
+
updatedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
46
|
+
publishedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
47
|
+
store: _contractspec_lib_schema435.EntityRelationField;
|
|
48
|
+
variants: _contractspec_lib_schema435.EntityRelationField;
|
|
49
|
+
orderItems: _contractspec_lib_schema435.EntityRelationField;
|
|
50
|
+
reviews: _contractspec_lib_schema435.EntityRelationField;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Product variant entity - variations of a product (size, color, etc.).
|
|
54
54
|
*/
|
|
55
|
-
declare const ProductVariantEntity:
|
|
56
|
-
id:
|
|
57
|
-
productId:
|
|
58
|
-
name:
|
|
59
|
-
options:
|
|
60
|
-
price:
|
|
61
|
-
compareAtPrice:
|
|
62
|
-
sku:
|
|
63
|
-
barcode:
|
|
64
|
-
quantity:
|
|
65
|
-
imageId:
|
|
66
|
-
isActive:
|
|
67
|
-
position:
|
|
68
|
-
createdAt:
|
|
69
|
-
updatedAt:
|
|
70
|
-
product:
|
|
55
|
+
declare const ProductVariantEntity: _contractspec_lib_schema435.EntitySpec<{
|
|
56
|
+
id: _contractspec_lib_schema435.EntityScalarField;
|
|
57
|
+
productId: _contractspec_lib_schema435.EntityScalarField;
|
|
58
|
+
name: _contractspec_lib_schema435.EntityScalarField;
|
|
59
|
+
options: _contractspec_lib_schema435.EntityScalarField;
|
|
60
|
+
price: _contractspec_lib_schema435.EntityScalarField;
|
|
61
|
+
compareAtPrice: _contractspec_lib_schema435.EntityScalarField;
|
|
62
|
+
sku: _contractspec_lib_schema435.EntityScalarField;
|
|
63
|
+
barcode: _contractspec_lib_schema435.EntityScalarField;
|
|
64
|
+
quantity: _contractspec_lib_schema435.EntityScalarField;
|
|
65
|
+
imageId: _contractspec_lib_schema435.EntityScalarField;
|
|
66
|
+
isActive: _contractspec_lib_schema435.EntityScalarField;
|
|
67
|
+
position: _contractspec_lib_schema435.EntityScalarField;
|
|
68
|
+
createdAt: _contractspec_lib_schema435.EntityScalarField;
|
|
69
|
+
updatedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
70
|
+
product: _contractspec_lib_schema435.EntityRelationField;
|
|
71
71
|
}>;
|
|
72
72
|
/**
|
|
73
73
|
* Category entity - product categorization.
|
|
74
74
|
*/
|
|
75
|
-
declare const CategoryEntity:
|
|
76
|
-
id:
|
|
77
|
-
name:
|
|
78
|
-
slug:
|
|
79
|
-
description:
|
|
80
|
-
parentId:
|
|
81
|
-
path:
|
|
82
|
-
level:
|
|
83
|
-
position:
|
|
84
|
-
imageId:
|
|
85
|
-
isActive:
|
|
86
|
-
createdAt:
|
|
87
|
-
updatedAt:
|
|
88
|
-
parent:
|
|
89
|
-
children:
|
|
75
|
+
declare const CategoryEntity: _contractspec_lib_schema435.EntitySpec<{
|
|
76
|
+
id: _contractspec_lib_schema435.EntityScalarField;
|
|
77
|
+
name: _contractspec_lib_schema435.EntityScalarField;
|
|
78
|
+
slug: _contractspec_lib_schema435.EntityScalarField;
|
|
79
|
+
description: _contractspec_lib_schema435.EntityScalarField;
|
|
80
|
+
parentId: _contractspec_lib_schema435.EntityScalarField;
|
|
81
|
+
path: _contractspec_lib_schema435.EntityScalarField;
|
|
82
|
+
level: _contractspec_lib_schema435.EntityScalarField;
|
|
83
|
+
position: _contractspec_lib_schema435.EntityScalarField;
|
|
84
|
+
imageId: _contractspec_lib_schema435.EntityScalarField;
|
|
85
|
+
isActive: _contractspec_lib_schema435.EntityScalarField;
|
|
86
|
+
createdAt: _contractspec_lib_schema435.EntityScalarField;
|
|
87
|
+
updatedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
88
|
+
parent: _contractspec_lib_schema435.EntityRelationField;
|
|
89
|
+
children: _contractspec_lib_schema435.EntityRelationField;
|
|
90
90
|
}>;
|
|
91
91
|
//#endregion
|
|
92
92
|
export { CategoryEntity, ProductEntity, ProductStatusEnum, ProductTypeEnum, ProductVariantEntity };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema504 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_schema504.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Review type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ReviewTypeEnum:
|
|
11
|
+
declare const ReviewTypeEnum: _contractspec_lib_schema504.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_schema504.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema504.EntityScalarField;
|
|
17
|
+
type: _contractspec_lib_schema504.EntityEnumField;
|
|
18
|
+
productId: _contractspec_lib_schema504.EntityScalarField;
|
|
19
|
+
storeId: _contractspec_lib_schema504.EntityScalarField;
|
|
20
|
+
orderId: _contractspec_lib_schema504.EntityScalarField;
|
|
21
|
+
orderItemId: _contractspec_lib_schema504.EntityScalarField;
|
|
22
|
+
authorId: _contractspec_lib_schema504.EntityScalarField;
|
|
23
|
+
rating: _contractspec_lib_schema504.EntityScalarField;
|
|
24
|
+
title: _contractspec_lib_schema504.EntityScalarField;
|
|
25
|
+
content: _contractspec_lib_schema504.EntityScalarField;
|
|
26
|
+
isVerifiedPurchase: _contractspec_lib_schema504.EntityScalarField;
|
|
27
|
+
status: _contractspec_lib_schema504.EntityEnumField;
|
|
28
|
+
hasMedia: _contractspec_lib_schema504.EntityScalarField;
|
|
29
|
+
helpfulCount: _contractspec_lib_schema504.EntityScalarField;
|
|
30
|
+
notHelpfulCount: _contractspec_lib_schema504.EntityScalarField;
|
|
31
|
+
moderatedBy: _contractspec_lib_schema504.EntityScalarField;
|
|
32
|
+
moderatedAt: _contractspec_lib_schema504.EntityScalarField;
|
|
33
|
+
moderationNote: _contractspec_lib_schema504.EntityScalarField;
|
|
34
|
+
hasResponse: _contractspec_lib_schema504.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema504.EntityScalarField;
|
|
36
|
+
updatedAt: _contractspec_lib_schema504.EntityScalarField;
|
|
37
|
+
product: _contractspec_lib_schema504.EntityRelationField;
|
|
38
|
+
store: _contractspec_lib_schema504.EntityRelationField;
|
|
39
|
+
responses: _contractspec_lib_schema504.EntityRelationField;
|
|
40
|
+
votes: _contractspec_lib_schema504.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_schema504.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema504.EntityScalarField;
|
|
47
|
+
reviewId: _contractspec_lib_schema504.EntityScalarField;
|
|
48
|
+
authorId: _contractspec_lib_schema504.EntityScalarField;
|
|
49
|
+
content: _contractspec_lib_schema504.EntityScalarField;
|
|
50
|
+
createdAt: _contractspec_lib_schema504.EntityScalarField;
|
|
51
|
+
updatedAt: _contractspec_lib_schema504.EntityScalarField;
|
|
52
|
+
review: _contractspec_lib_schema504.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_schema504.EntitySpec<{
|
|
58
|
+
id: _contractspec_lib_schema504.EntityScalarField;
|
|
59
|
+
reviewId: _contractspec_lib_schema504.EntityScalarField;
|
|
60
|
+
userId: _contractspec_lib_schema504.EntityScalarField;
|
|
61
|
+
isHelpful: _contractspec_lib_schema504.EntityScalarField;
|
|
62
|
+
createdAt: _contractspec_lib_schema504.EntityScalarField;
|
|
63
|
+
review: _contractspec_lib_schema504.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_schema504.EntitySpec<{
|
|
69
|
+
id: _contractspec_lib_schema504.EntityScalarField;
|
|
70
|
+
reviewId: _contractspec_lib_schema504.EntityScalarField;
|
|
71
|
+
reporterId: _contractspec_lib_schema504.EntityScalarField;
|
|
72
|
+
reason: _contractspec_lib_schema504.EntityScalarField;
|
|
73
|
+
details: _contractspec_lib_schema504.EntityScalarField;
|
|
74
|
+
status: _contractspec_lib_schema504.EntityScalarField;
|
|
75
|
+
resolvedBy: _contractspec_lib_schema504.EntityScalarField;
|
|
76
|
+
resolvedAt: _contractspec_lib_schema504.EntityScalarField;
|
|
77
|
+
resolution: _contractspec_lib_schema504.EntityScalarField;
|
|
78
|
+
createdAt: _contractspec_lib_schema504.EntityScalarField;
|
|
79
|
+
review: _contractspec_lib_schema504.EntityRelationField;
|
|
80
80
|
}>;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { ReviewEntity, ReviewReportEntity, ReviewResponseEntity, ReviewStatusEnum, ReviewTypeEnum, ReviewVoteEntity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","names":[],"sources":["../../src/entities/review.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,gBAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"review.d.ts","names":[],"sources":["../../src/entities/review.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,gBAKX,EAAA,2BAAA,CAL2B,aAK3B;AAKF;AAUA;;cAVa,gBAKX,2BAAA,CALyB;;;;cAUd,0CAAY;MAgEvB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;0DAhEuB;EAAA,SAAA,+CAAA;EAqEZ,OAAA,iDAyBX;EAAA,KAAA,iDAAA;;;;;;;cAzBW,oBAAoB,8BAAA,UAAA,CAAA;EAAA,EAAA,EAyB/B,2BAAA,CAAA,iBAzB+B;EA8BpB,QAAA,+CAoBX;EAAA,QAAA,+CAAA;;;;;;;;AAKF;AA6BE,cAtDW,gBAsDX,8BAtD2B,UAsD3B,CAAA;MAlCA,2BAAA,CAAA;;;;;;;;;;cAKW,kBAAkB,8BAAA,UAAA,CAAA;EAAA,EAAA,EA6B7B,2BAAA,CAAA,iBA7B6B"}
|
package/dist/entities/store.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema559 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_schema559.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Store type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StoreTypeEnum:
|
|
11
|
+
declare const StoreTypeEnum: _contractspec_lib_schema559.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_schema559.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema559.EntityScalarField;
|
|
17
|
+
name: _contractspec_lib_schema559.EntityScalarField;
|
|
18
|
+
slug: _contractspec_lib_schema559.EntityScalarField;
|
|
19
|
+
description: _contractspec_lib_schema559.EntityScalarField;
|
|
20
|
+
status: _contractspec_lib_schema559.EntityEnumField;
|
|
21
|
+
type: _contractspec_lib_schema559.EntityEnumField;
|
|
22
|
+
ownerId: _contractspec_lib_schema559.EntityScalarField;
|
|
23
|
+
organizationId: _contractspec_lib_schema559.EntityScalarField;
|
|
24
|
+
logoFileId: _contractspec_lib_schema559.EntityScalarField;
|
|
25
|
+
bannerFileId: _contractspec_lib_schema559.EntityScalarField;
|
|
26
|
+
email: _contractspec_lib_schema559.EntityScalarField;
|
|
27
|
+
phone: _contractspec_lib_schema559.EntityScalarField;
|
|
28
|
+
website: _contractspec_lib_schema559.EntityScalarField;
|
|
29
|
+
country: _contractspec_lib_schema559.EntityScalarField;
|
|
30
|
+
currency: _contractspec_lib_schema559.EntityScalarField;
|
|
31
|
+
timezone: _contractspec_lib_schema559.EntityScalarField;
|
|
32
|
+
commissionRate: _contractspec_lib_schema559.EntityScalarField;
|
|
33
|
+
isVerified: _contractspec_lib_schema559.EntityScalarField;
|
|
34
|
+
verifiedAt: _contractspec_lib_schema559.EntityScalarField;
|
|
35
|
+
settings: _contractspec_lib_schema559.EntityScalarField;
|
|
36
|
+
metadata: _contractspec_lib_schema559.EntityScalarField;
|
|
37
|
+
totalProducts: _contractspec_lib_schema559.EntityScalarField;
|
|
38
|
+
totalOrders: _contractspec_lib_schema559.EntityScalarField;
|
|
39
|
+
totalRevenue: _contractspec_lib_schema559.EntityScalarField;
|
|
40
|
+
averageRating: _contractspec_lib_schema559.EntityScalarField;
|
|
41
|
+
createdAt: _contractspec_lib_schema559.EntityScalarField;
|
|
42
|
+
updatedAt: _contractspec_lib_schema559.EntityScalarField;
|
|
43
|
+
products: _contractspec_lib_schema559.EntityRelationField;
|
|
44
|
+
orders: _contractspec_lib_schema559.EntityRelationField;
|
|
45
|
+
payouts: _contractspec_lib_schema559.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_schema559.EntitySpec<{
|
|
51
|
+
id: _contractspec_lib_schema559.EntityScalarField;
|
|
52
|
+
storeId: _contractspec_lib_schema559.EntityScalarField;
|
|
53
|
+
categoryId: _contractspec_lib_schema559.EntityScalarField;
|
|
54
|
+
isPrimary: _contractspec_lib_schema559.EntityScalarField;
|
|
55
|
+
createdAt: _contractspec_lib_schema559.EntityScalarField;
|
|
56
|
+
store: _contractspec_lib_schema559.EntityRelationField;
|
|
57
57
|
}>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/marketplace.capability.d.ts
|
|
4
|
-
declare const MarketplaceCapability:
|
|
5
|
-
declare const EcommerceCapability:
|
|
6
|
-
declare const PaymentsCapability:
|
|
4
|
+
declare const MarketplaceCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
5
|
+
declare const EcommerceCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
6
|
+
declare const PaymentsCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { EcommerceCapability, MarketplaceCapability, PaymentsCapability };
|
|
9
9
|
//# sourceMappingURL=marketplace.capability.d.ts.map
|
|
@@ -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_contracts0 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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema599 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Order status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderStatusEnum:
|
|
7
|
+
declare const OrderStatusEnum: _contractspec_lib_schema599.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { OrderStatusEnum };
|
|
10
10
|
//# sourceMappingURL=order.enum.d.ts.map
|