@contractspec/example.marketplace 1.55.0 → 1.56.1
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/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/payout/payout.enum.d.ts +2 -2
- 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.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 +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.schema.d.ts +45 -45
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +13 -13
- 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
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema475 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_schema475.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Product type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ProductTypeEnum:
|
|
11
|
+
declare const ProductTypeEnum: _contractspec_lib_schema475.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_schema475.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema475.EntityScalarField;
|
|
17
|
+
storeId: _contractspec_lib_schema475.EntityScalarField;
|
|
18
|
+
name: _contractspec_lib_schema475.EntityScalarField;
|
|
19
|
+
slug: _contractspec_lib_schema475.EntityScalarField;
|
|
20
|
+
description: _contractspec_lib_schema475.EntityScalarField;
|
|
21
|
+
shortDescription: _contractspec_lib_schema475.EntityScalarField;
|
|
22
|
+
status: _contractspec_lib_schema475.EntityEnumField;
|
|
23
|
+
type: _contractspec_lib_schema475.EntityEnumField;
|
|
24
|
+
price: _contractspec_lib_schema475.EntityScalarField;
|
|
25
|
+
compareAtPrice: _contractspec_lib_schema475.EntityScalarField;
|
|
26
|
+
currency: _contractspec_lib_schema475.EntityScalarField;
|
|
27
|
+
sku: _contractspec_lib_schema475.EntityScalarField;
|
|
28
|
+
barcode: _contractspec_lib_schema475.EntityScalarField;
|
|
29
|
+
quantity: _contractspec_lib_schema475.EntityScalarField;
|
|
30
|
+
trackInventory: _contractspec_lib_schema475.EntityScalarField;
|
|
31
|
+
allowBackorder: _contractspec_lib_schema475.EntityScalarField;
|
|
32
|
+
lowStockThreshold: _contractspec_lib_schema475.EntityScalarField;
|
|
33
|
+
weight: _contractspec_lib_schema475.EntityScalarField;
|
|
34
|
+
weightUnit: _contractspec_lib_schema475.EntityScalarField;
|
|
35
|
+
categoryId: _contractspec_lib_schema475.EntityScalarField;
|
|
36
|
+
tags: _contractspec_lib_schema475.EntityScalarField;
|
|
37
|
+
primaryImageId: _contractspec_lib_schema475.EntityScalarField;
|
|
38
|
+
seoTitle: _contractspec_lib_schema475.EntityScalarField;
|
|
39
|
+
seoDescription: _contractspec_lib_schema475.EntityScalarField;
|
|
40
|
+
attributes: _contractspec_lib_schema475.EntityScalarField;
|
|
41
|
+
reviewCount: _contractspec_lib_schema475.EntityScalarField;
|
|
42
|
+
averageRating: _contractspec_lib_schema475.EntityScalarField;
|
|
43
|
+
totalSold: _contractspec_lib_schema475.EntityScalarField;
|
|
44
|
+
createdAt: _contractspec_lib_schema475.EntityScalarField;
|
|
45
|
+
updatedAt: _contractspec_lib_schema475.EntityScalarField;
|
|
46
|
+
publishedAt: _contractspec_lib_schema475.EntityScalarField;
|
|
47
|
+
store: _contractspec_lib_schema475.EntityRelationField;
|
|
48
|
+
variants: _contractspec_lib_schema475.EntityRelationField;
|
|
49
|
+
orderItems: _contractspec_lib_schema475.EntityRelationField;
|
|
50
|
+
reviews: _contractspec_lib_schema475.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_schema475.EntitySpec<{
|
|
56
|
+
id: _contractspec_lib_schema475.EntityScalarField;
|
|
57
|
+
productId: _contractspec_lib_schema475.EntityScalarField;
|
|
58
|
+
name: _contractspec_lib_schema475.EntityScalarField;
|
|
59
|
+
options: _contractspec_lib_schema475.EntityScalarField;
|
|
60
|
+
price: _contractspec_lib_schema475.EntityScalarField;
|
|
61
|
+
compareAtPrice: _contractspec_lib_schema475.EntityScalarField;
|
|
62
|
+
sku: _contractspec_lib_schema475.EntityScalarField;
|
|
63
|
+
barcode: _contractspec_lib_schema475.EntityScalarField;
|
|
64
|
+
quantity: _contractspec_lib_schema475.EntityScalarField;
|
|
65
|
+
imageId: _contractspec_lib_schema475.EntityScalarField;
|
|
66
|
+
isActive: _contractspec_lib_schema475.EntityScalarField;
|
|
67
|
+
position: _contractspec_lib_schema475.EntityScalarField;
|
|
68
|
+
createdAt: _contractspec_lib_schema475.EntityScalarField;
|
|
69
|
+
updatedAt: _contractspec_lib_schema475.EntityScalarField;
|
|
70
|
+
product: _contractspec_lib_schema475.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_schema475.EntitySpec<{
|
|
76
|
+
id: _contractspec_lib_schema475.EntityScalarField;
|
|
77
|
+
name: _contractspec_lib_schema475.EntityScalarField;
|
|
78
|
+
slug: _contractspec_lib_schema475.EntityScalarField;
|
|
79
|
+
description: _contractspec_lib_schema475.EntityScalarField;
|
|
80
|
+
parentId: _contractspec_lib_schema475.EntityScalarField;
|
|
81
|
+
path: _contractspec_lib_schema475.EntityScalarField;
|
|
82
|
+
level: _contractspec_lib_schema475.EntityScalarField;
|
|
83
|
+
position: _contractspec_lib_schema475.EntityScalarField;
|
|
84
|
+
imageId: _contractspec_lib_schema475.EntityScalarField;
|
|
85
|
+
isActive: _contractspec_lib_schema475.EntityScalarField;
|
|
86
|
+
createdAt: _contractspec_lib_schema475.EntityScalarField;
|
|
87
|
+
updatedAt: _contractspec_lib_schema475.EntityScalarField;
|
|
88
|
+
parent: _contractspec_lib_schema475.EntityRelationField;
|
|
89
|
+
children: _contractspec_lib_schema475.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_schema544 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_schema544.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Review type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ReviewTypeEnum:
|
|
11
|
+
declare const ReviewTypeEnum: _contractspec_lib_schema544.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_schema544.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema544.EntityScalarField;
|
|
17
|
+
type: _contractspec_lib_schema544.EntityEnumField;
|
|
18
|
+
productId: _contractspec_lib_schema544.EntityScalarField;
|
|
19
|
+
storeId: _contractspec_lib_schema544.EntityScalarField;
|
|
20
|
+
orderId: _contractspec_lib_schema544.EntityScalarField;
|
|
21
|
+
orderItemId: _contractspec_lib_schema544.EntityScalarField;
|
|
22
|
+
authorId: _contractspec_lib_schema544.EntityScalarField;
|
|
23
|
+
rating: _contractspec_lib_schema544.EntityScalarField;
|
|
24
|
+
title: _contractspec_lib_schema544.EntityScalarField;
|
|
25
|
+
content: _contractspec_lib_schema544.EntityScalarField;
|
|
26
|
+
isVerifiedPurchase: _contractspec_lib_schema544.EntityScalarField;
|
|
27
|
+
status: _contractspec_lib_schema544.EntityEnumField;
|
|
28
|
+
hasMedia: _contractspec_lib_schema544.EntityScalarField;
|
|
29
|
+
helpfulCount: _contractspec_lib_schema544.EntityScalarField;
|
|
30
|
+
notHelpfulCount: _contractspec_lib_schema544.EntityScalarField;
|
|
31
|
+
moderatedBy: _contractspec_lib_schema544.EntityScalarField;
|
|
32
|
+
moderatedAt: _contractspec_lib_schema544.EntityScalarField;
|
|
33
|
+
moderationNote: _contractspec_lib_schema544.EntityScalarField;
|
|
34
|
+
hasResponse: _contractspec_lib_schema544.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema544.EntityScalarField;
|
|
36
|
+
updatedAt: _contractspec_lib_schema544.EntityScalarField;
|
|
37
|
+
product: _contractspec_lib_schema544.EntityRelationField;
|
|
38
|
+
store: _contractspec_lib_schema544.EntityRelationField;
|
|
39
|
+
responses: _contractspec_lib_schema544.EntityRelationField;
|
|
40
|
+
votes: _contractspec_lib_schema544.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_schema544.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema544.EntityScalarField;
|
|
47
|
+
reviewId: _contractspec_lib_schema544.EntityScalarField;
|
|
48
|
+
authorId: _contractspec_lib_schema544.EntityScalarField;
|
|
49
|
+
content: _contractspec_lib_schema544.EntityScalarField;
|
|
50
|
+
createdAt: _contractspec_lib_schema544.EntityScalarField;
|
|
51
|
+
updatedAt: _contractspec_lib_schema544.EntityScalarField;
|
|
52
|
+
review: _contractspec_lib_schema544.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_schema544.EntitySpec<{
|
|
58
|
+
id: _contractspec_lib_schema544.EntityScalarField;
|
|
59
|
+
reviewId: _contractspec_lib_schema544.EntityScalarField;
|
|
60
|
+
userId: _contractspec_lib_schema544.EntityScalarField;
|
|
61
|
+
isHelpful: _contractspec_lib_schema544.EntityScalarField;
|
|
62
|
+
createdAt: _contractspec_lib_schema544.EntityScalarField;
|
|
63
|
+
review: _contractspec_lib_schema544.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_schema544.EntitySpec<{
|
|
69
|
+
id: _contractspec_lib_schema544.EntityScalarField;
|
|
70
|
+
reviewId: _contractspec_lib_schema544.EntityScalarField;
|
|
71
|
+
reporterId: _contractspec_lib_schema544.EntityScalarField;
|
|
72
|
+
reason: _contractspec_lib_schema544.EntityScalarField;
|
|
73
|
+
details: _contractspec_lib_schema544.EntityScalarField;
|
|
74
|
+
status: _contractspec_lib_schema544.EntityScalarField;
|
|
75
|
+
resolvedBy: _contractspec_lib_schema544.EntityScalarField;
|
|
76
|
+
resolvedAt: _contractspec_lib_schema544.EntityScalarField;
|
|
77
|
+
resolution: _contractspec_lib_schema544.EntityScalarField;
|
|
78
|
+
createdAt: _contractspec_lib_schema544.EntityScalarField;
|
|
79
|
+
review: _contractspec_lib_schema544.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_schema435 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_schema435.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Store type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StoreTypeEnum:
|
|
11
|
+
declare const StoreTypeEnum: _contractspec_lib_schema435.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_schema435.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema435.EntityScalarField;
|
|
17
|
+
name: _contractspec_lib_schema435.EntityScalarField;
|
|
18
|
+
slug: _contractspec_lib_schema435.EntityScalarField;
|
|
19
|
+
description: _contractspec_lib_schema435.EntityScalarField;
|
|
20
|
+
status: _contractspec_lib_schema435.EntityEnumField;
|
|
21
|
+
type: _contractspec_lib_schema435.EntityEnumField;
|
|
22
|
+
ownerId: _contractspec_lib_schema435.EntityScalarField;
|
|
23
|
+
organizationId: _contractspec_lib_schema435.EntityScalarField;
|
|
24
|
+
logoFileId: _contractspec_lib_schema435.EntityScalarField;
|
|
25
|
+
bannerFileId: _contractspec_lib_schema435.EntityScalarField;
|
|
26
|
+
email: _contractspec_lib_schema435.EntityScalarField;
|
|
27
|
+
phone: _contractspec_lib_schema435.EntityScalarField;
|
|
28
|
+
website: _contractspec_lib_schema435.EntityScalarField;
|
|
29
|
+
country: _contractspec_lib_schema435.EntityScalarField;
|
|
30
|
+
currency: _contractspec_lib_schema435.EntityScalarField;
|
|
31
|
+
timezone: _contractspec_lib_schema435.EntityScalarField;
|
|
32
|
+
commissionRate: _contractspec_lib_schema435.EntityScalarField;
|
|
33
|
+
isVerified: _contractspec_lib_schema435.EntityScalarField;
|
|
34
|
+
verifiedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
35
|
+
settings: _contractspec_lib_schema435.EntityScalarField;
|
|
36
|
+
metadata: _contractspec_lib_schema435.EntityScalarField;
|
|
37
|
+
totalProducts: _contractspec_lib_schema435.EntityScalarField;
|
|
38
|
+
totalOrders: _contractspec_lib_schema435.EntityScalarField;
|
|
39
|
+
totalRevenue: _contractspec_lib_schema435.EntityScalarField;
|
|
40
|
+
averageRating: _contractspec_lib_schema435.EntityScalarField;
|
|
41
|
+
createdAt: _contractspec_lib_schema435.EntityScalarField;
|
|
42
|
+
updatedAt: _contractspec_lib_schema435.EntityScalarField;
|
|
43
|
+
products: _contractspec_lib_schema435.EntityRelationField;
|
|
44
|
+
orders: _contractspec_lib_schema435.EntityRelationField;
|
|
45
|
+
payouts: _contractspec_lib_schema435.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_schema435.EntitySpec<{
|
|
51
|
+
id: _contractspec_lib_schema435.EntityScalarField;
|
|
52
|
+
storeId: _contractspec_lib_schema435.EntityScalarField;
|
|
53
|
+
categoryId: _contractspec_lib_schema435.EntityScalarField;
|
|
54
|
+
isPrimary: _contractspec_lib_schema435.EntityScalarField;
|
|
55
|
+
createdAt: _contractspec_lib_schema435.EntityScalarField;
|
|
56
|
+
store: _contractspec_lib_schema435.EntityRelationField;
|
|
57
57
|
}>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
|
|
@@ -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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema725 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/payout/payout.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payout status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutStatusEnum:
|
|
7
|
+
declare const PayoutStatusEnum: _contractspec_lib_schema725.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PayoutStatusEnum };
|
|
10
10
|
//# sourceMappingURL=payout.enum.d.ts.map
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts14 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema764 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.event.d.ts
|
|
5
|
-
declare const PayoutCreatedEvent:
|
|
5
|
+
declare const PayoutCreatedEvent: _contractspec_lib_contracts14.EventSpec<_contractspec_lib_schema764.SchemaModel<{
|
|
6
6
|
payoutId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
payoutNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
storeId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
netAmount: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema764.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
currency: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
orderCount: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema764.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
timestamp: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema764.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const PayoutPaidEvent:
|
|
35
|
+
declare const PayoutPaidEvent: _contractspec_lib_contracts14.EventSpec<_contractspec_lib_schema764.SchemaModel<{
|
|
36
36
|
payoutId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
payoutNumber: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
storeId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
netAmount: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema764.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentReference: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema764.FieldType<string, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema764.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts16 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema779 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/payout/payout.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* List payouts for a store.
|
|
7
7
|
*/
|
|
8
|
-
declare const ListPayoutsContract:
|
|
8
|
+
declare const ListPayoutsContract: _contractspec_lib_contracts16.OperationSpec<_contractspec_lib_schema779.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema779.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
status: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema779.EnumType<[string, string, string, string, string]>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
limit: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
defaultValue: number;
|
|
21
21
|
};
|
|
22
22
|
offset: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
defaultValue: number;
|
|
26
26
|
};
|
|
27
|
-
}>,
|
|
27
|
+
}>, _contractspec_lib_schema779.SchemaModel<{
|
|
28
28
|
payouts: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema779.SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema779.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
payoutNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema779.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
storeId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema779.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema779.EnumType<[string, string, string, string, string]>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
grossAmount: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
platformFees: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
netAmount: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
currency: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema779.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
periodStart: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema779.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
periodEnd: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema779.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
orderCount: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
createdAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema779.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
paidAt: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema779.FieldType<Date, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const ListPayoutsContract: _contractspec_lib_contracts24.OperationSpec<_
|
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
total: {
|
|
87
|
-
type:
|
|
87
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
totalPending: {
|
|
91
|
-
type:
|
|
91
|
+
type: _contractspec_lib_schema779.FieldType<number, number>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
}>, undefined>;
|