@contractspec/example.marketplace 1.50.0 → 1.52.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/index.d.ts +296 -296
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/product.d.ts.map +1 -1
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/entities/store.d.ts.map +1 -1
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/marketplace.capability.d.ts +4 -4
- package/dist/marketplace.capability.d.ts.map +1 -1
- package/dist/marketplace.feature.d.ts +2 -2
- package/dist/marketplace.feature.d.ts.map +1 -1
- package/dist/order/order.event.d.ts +6 -6
- package/dist/order/order.operations.d.ts +3 -3
- 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 +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.d.ts.map +1 -1
- 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.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/review/review.schema.d.ts.map +1 -1
- 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.operations.d.ts.map +1 -1
- 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,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema669 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_schema669.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Review type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ReviewTypeEnum:
|
|
11
|
+
declare const ReviewTypeEnum: _contractspec_lib_schema669.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_schema669.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema669.EntityScalarField;
|
|
17
|
+
type: _contractspec_lib_schema669.EntityEnumField;
|
|
18
|
+
productId: _contractspec_lib_schema669.EntityScalarField;
|
|
19
|
+
storeId: _contractspec_lib_schema669.EntityScalarField;
|
|
20
|
+
orderId: _contractspec_lib_schema669.EntityScalarField;
|
|
21
|
+
orderItemId: _contractspec_lib_schema669.EntityScalarField;
|
|
22
|
+
authorId: _contractspec_lib_schema669.EntityScalarField;
|
|
23
|
+
rating: _contractspec_lib_schema669.EntityScalarField;
|
|
24
|
+
title: _contractspec_lib_schema669.EntityScalarField;
|
|
25
|
+
content: _contractspec_lib_schema669.EntityScalarField;
|
|
26
|
+
isVerifiedPurchase: _contractspec_lib_schema669.EntityScalarField;
|
|
27
|
+
status: _contractspec_lib_schema669.EntityEnumField;
|
|
28
|
+
hasMedia: _contractspec_lib_schema669.EntityScalarField;
|
|
29
|
+
helpfulCount: _contractspec_lib_schema669.EntityScalarField;
|
|
30
|
+
notHelpfulCount: _contractspec_lib_schema669.EntityScalarField;
|
|
31
|
+
moderatedBy: _contractspec_lib_schema669.EntityScalarField;
|
|
32
|
+
moderatedAt: _contractspec_lib_schema669.EntityScalarField;
|
|
33
|
+
moderationNote: _contractspec_lib_schema669.EntityScalarField;
|
|
34
|
+
hasResponse: _contractspec_lib_schema669.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema669.EntityScalarField;
|
|
36
|
+
updatedAt: _contractspec_lib_schema669.EntityScalarField;
|
|
37
|
+
product: _contractspec_lib_schema669.EntityRelationField;
|
|
38
|
+
store: _contractspec_lib_schema669.EntityRelationField;
|
|
39
|
+
responses: _contractspec_lib_schema669.EntityRelationField;
|
|
40
|
+
votes: _contractspec_lib_schema669.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_schema669.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema669.EntityScalarField;
|
|
47
|
+
reviewId: _contractspec_lib_schema669.EntityScalarField;
|
|
48
|
+
authorId: _contractspec_lib_schema669.EntityScalarField;
|
|
49
|
+
content: _contractspec_lib_schema669.EntityScalarField;
|
|
50
|
+
createdAt: _contractspec_lib_schema669.EntityScalarField;
|
|
51
|
+
updatedAt: _contractspec_lib_schema669.EntityScalarField;
|
|
52
|
+
review: _contractspec_lib_schema669.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_schema669.EntitySpec<{
|
|
58
|
+
id: _contractspec_lib_schema669.EntityScalarField;
|
|
59
|
+
reviewId: _contractspec_lib_schema669.EntityScalarField;
|
|
60
|
+
userId: _contractspec_lib_schema669.EntityScalarField;
|
|
61
|
+
isHelpful: _contractspec_lib_schema669.EntityScalarField;
|
|
62
|
+
createdAt: _contractspec_lib_schema669.EntityScalarField;
|
|
63
|
+
review: _contractspec_lib_schema669.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_schema669.EntitySpec<{
|
|
69
|
+
id: _contractspec_lib_schema669.EntityScalarField;
|
|
70
|
+
reviewId: _contractspec_lib_schema669.EntityScalarField;
|
|
71
|
+
reporterId: _contractspec_lib_schema669.EntityScalarField;
|
|
72
|
+
reason: _contractspec_lib_schema669.EntityScalarField;
|
|
73
|
+
details: _contractspec_lib_schema669.EntityScalarField;
|
|
74
|
+
status: _contractspec_lib_schema669.EntityScalarField;
|
|
75
|
+
resolvedBy: _contractspec_lib_schema669.EntityScalarField;
|
|
76
|
+
resolvedAt: _contractspec_lib_schema669.EntityScalarField;
|
|
77
|
+
resolution: _contractspec_lib_schema669.EntityScalarField;
|
|
78
|
+
createdAt: _contractspec_lib_schema669.EntityScalarField;
|
|
79
|
+
review: _contractspec_lib_schema669.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_schema746 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_schema746.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Store type enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const StoreTypeEnum:
|
|
11
|
+
declare const StoreTypeEnum: _contractspec_lib_schema746.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_schema746.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema746.EntityScalarField;
|
|
17
|
+
name: _contractspec_lib_schema746.EntityScalarField;
|
|
18
|
+
slug: _contractspec_lib_schema746.EntityScalarField;
|
|
19
|
+
description: _contractspec_lib_schema746.EntityScalarField;
|
|
20
|
+
status: _contractspec_lib_schema746.EntityEnumField;
|
|
21
|
+
type: _contractspec_lib_schema746.EntityEnumField;
|
|
22
|
+
ownerId: _contractspec_lib_schema746.EntityScalarField;
|
|
23
|
+
organizationId: _contractspec_lib_schema746.EntityScalarField;
|
|
24
|
+
logoFileId: _contractspec_lib_schema746.EntityScalarField;
|
|
25
|
+
bannerFileId: _contractspec_lib_schema746.EntityScalarField;
|
|
26
|
+
email: _contractspec_lib_schema746.EntityScalarField;
|
|
27
|
+
phone: _contractspec_lib_schema746.EntityScalarField;
|
|
28
|
+
website: _contractspec_lib_schema746.EntityScalarField;
|
|
29
|
+
country: _contractspec_lib_schema746.EntityScalarField;
|
|
30
|
+
currency: _contractspec_lib_schema746.EntityScalarField;
|
|
31
|
+
timezone: _contractspec_lib_schema746.EntityScalarField;
|
|
32
|
+
commissionRate: _contractspec_lib_schema746.EntityScalarField;
|
|
33
|
+
isVerified: _contractspec_lib_schema746.EntityScalarField;
|
|
34
|
+
verifiedAt: _contractspec_lib_schema746.EntityScalarField;
|
|
35
|
+
settings: _contractspec_lib_schema746.EntityScalarField;
|
|
36
|
+
metadata: _contractspec_lib_schema746.EntityScalarField;
|
|
37
|
+
totalProducts: _contractspec_lib_schema746.EntityScalarField;
|
|
38
|
+
totalOrders: _contractspec_lib_schema746.EntityScalarField;
|
|
39
|
+
totalRevenue: _contractspec_lib_schema746.EntityScalarField;
|
|
40
|
+
averageRating: _contractspec_lib_schema746.EntityScalarField;
|
|
41
|
+
createdAt: _contractspec_lib_schema746.EntityScalarField;
|
|
42
|
+
updatedAt: _contractspec_lib_schema746.EntityScalarField;
|
|
43
|
+
products: _contractspec_lib_schema746.EntityRelationField;
|
|
44
|
+
orders: _contractspec_lib_schema746.EntityRelationField;
|
|
45
|
+
payouts: _contractspec_lib_schema746.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_schema746.EntitySpec<{
|
|
51
|
+
id: _contractspec_lib_schema746.EntityScalarField;
|
|
52
|
+
storeId: _contractspec_lib_schema746.EntityScalarField;
|
|
53
|
+
categoryId: _contractspec_lib_schema746.EntityScalarField;
|
|
54
|
+
isPrimary: _contractspec_lib_schema746.EntityScalarField;
|
|
55
|
+
createdAt: _contractspec_lib_schema746.EntityScalarField;
|
|
56
|
+
store: _contractspec_lib_schema746.EntityRelationField;
|
|
57
57
|
}>;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { StoreCategoryEntity, StoreEntity, StoreStatusEnum, StoreTypeEnum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","names":[],"sources":["../../src/entities/store.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,eAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"store.d.ts","names":[],"sources":["../../src/entities/store.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,eAKX,EAAA,2BAAA,CAL0B,aAK1B;AAKF;AAUA;;cAVa,eAKX,2BAAA,CALwB;;;;cAUb,yCAAW;MA8EtB,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;8DA9EsB;EAAA,SAAA,+CAAA;EAmFX,SAAA,+CAkBX;EAAA,QAAA,iDAAA;;;;;;;AAlB8B,cAAnB,mBAAmB,8BAAA,UAAA,CAAA;MAkB9B,2BAAA,CAAA"}
|
package/dist/example.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/example.d.ts
|
|
4
|
-
declare const example:
|
|
4
|
+
declare const example: _contractspec_lib_contracts0.ExampleSpec;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { example as default };
|
|
7
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAoCJ,
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAoCJ,4BAAA,CApCW"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.capability.d.ts","names":[],"sources":["../src/marketplace.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,uBAUX,
|
|
1
|
+
{"version":3,"file":"marketplace.capability.d.ts","names":[],"sources":["../src/marketplace.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,uBAUX,4BAAA,CAVgC;cAYrB,qBAUX,4BAAA,CAV8B;cAYnB,oBAUX,4BAAA,CAV6B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/marketplace.feature.d.ts
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as _contractspec_lib_contracts41 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_contracts8.FeatureModuleSpec;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { MarketplaceFeature };
|
|
12
12
|
//# sourceMappingURL=marketplace.feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.feature.d.ts","names":[],"sources":["../src/marketplace.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;cAAa,oBAqKX,
|
|
1
|
+
{"version":3,"file":"marketplace.feature.d.ts","names":[],"sources":["../src/marketplace.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;cAAa,oBAqKX,4BAAA,CArK6B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent:
|
|
5
|
+
declare const OrderCreatedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
7
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
@@ -36,7 +36,7 @@ declare const OrderCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contrac
|
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent:
|
|
39
|
+
declare const OrderPaidEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
41
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
@@ -58,7 +58,7 @@ declare const OrderPaidEvent: _contractspec_lib_contracts0.EventSpec<_contractsp
|
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent:
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
63
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
@@ -84,7 +84,7 @@ declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_c
|
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent:
|
|
87
|
+
declare const OrderShippedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
89
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
@@ -110,7 +110,7 @@ declare const OrderShippedEvent: _contractspec_lib_contracts0.EventSpec<_contrac
|
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent:
|
|
113
|
+
declare const OrderCompletedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
115
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema37 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new order.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateOrderContract:
|
|
8
|
+
declare const CreateOrderContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema37.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
10
|
type: _contractspec_lib_schema37.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
@@ -186,7 +186,7 @@ declare const CreateOrderContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
186
186
|
/**
|
|
187
187
|
* Update order status.
|
|
188
188
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract:
|
|
189
|
+
declare const UpdateOrderStatusContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema37.SchemaModel<{
|
|
190
190
|
orderId: {
|
|
191
191
|
type: _contractspec_lib_schema37.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts11 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.presentation.d.ts
|
|
4
|
-
declare const OrderListPresentation:
|
|
5
|
-
declare const OrderDetailPresentation:
|
|
6
|
-
declare const CheckoutPresentation:
|
|
4
|
+
declare const OrderListPresentation: _contractspec_lib_contracts11.PresentationSpec;
|
|
5
|
+
declare const OrderDetailPresentation: _contractspec_lib_contracts11.PresentationSpec;
|
|
6
|
+
declare const CheckoutPresentation: _contractspec_lib_contracts11.PresentationSpec;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
9
9
|
//# sourceMappingURL=order.presentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.presentation.d.ts","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAuBX,
|
|
1
|
+
{"version":3,"file":"order.presentation.d.ts","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAuBX,6BAAA,CAvBgC;cAyBrB,yBAwBX,6BAAA,CAxBkC;cA0BvB,sBAuBX,6BAAA,CAvB+B"}
|
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema420 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/order/order.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An order item.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrderItemModel:
|
|
7
|
+
declare const OrderItemModel: _contractspec_lib_schema420.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
productId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
productName: {
|
|
17
|
-
type:
|
|
17
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
unitPrice: {
|
|
21
|
-
type:
|
|
21
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
quantity: {
|
|
25
|
-
type:
|
|
25
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
subtotal: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
34
|
* An order.
|
|
35
35
|
*/
|
|
36
|
-
declare const OrderModel:
|
|
36
|
+
declare const OrderModel: _contractspec_lib_schema420.SchemaModel<{
|
|
37
37
|
id: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
orderNumber: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
buyerId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
storeId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
status: {
|
|
54
|
-
type:
|
|
54
|
+
type: _contractspec_lib_schema420.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
subtotal: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
shippingTotal: {
|
|
62
|
-
type:
|
|
62
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
taxTotal: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
total: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
currency: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
items: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema420.SchemaModel<{
|
|
79
79
|
id: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
productId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
productName: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
unitPrice: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
quantity: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
subtotal: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema420.FieldType<number, number>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
@@ -105,58 +105,58 @@ declare const OrderModel: _contractspec_lib_schema125.SchemaModel<{
|
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
createdAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema420.FieldType<Date, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>;
|
|
112
112
|
/**
|
|
113
113
|
* Input for creating an order.
|
|
114
114
|
*/
|
|
115
|
-
declare const CreateOrderInputModel:
|
|
115
|
+
declare const CreateOrderInputModel: _contractspec_lib_schema420.SchemaModel<{
|
|
116
116
|
storeId: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
items: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema420.FieldType<unknown, unknown>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
description: string;
|
|
124
124
|
};
|
|
125
125
|
shippingAddress: {
|
|
126
|
-
type:
|
|
126
|
+
type: _contractspec_lib_schema420.FieldType<unknown, unknown>;
|
|
127
127
|
isOptional: true;
|
|
128
128
|
};
|
|
129
129
|
billingAddress: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema420.FieldType<unknown, unknown>;
|
|
131
131
|
isOptional: true;
|
|
132
132
|
};
|
|
133
133
|
buyerNote: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Input for updating order status.
|
|
140
140
|
*/
|
|
141
|
-
declare const UpdateOrderStatusInputModel:
|
|
141
|
+
declare const UpdateOrderStatusInputModel: _contractspec_lib_schema420.SchemaModel<{
|
|
142
142
|
orderId: {
|
|
143
|
-
type:
|
|
143
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
status: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema420.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
trackingNumber: {
|
|
151
|
-
type:
|
|
151
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
152
152
|
isOptional: true;
|
|
153
153
|
};
|
|
154
154
|
trackingUrl: {
|
|
155
|
-
type:
|
|
155
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
156
156
|
isOptional: true;
|
|
157
157
|
};
|
|
158
158
|
note: {
|
|
159
|
-
type:
|
|
159
|
+
type: _contractspec_lib_schema420.FieldType<string, string>;
|
|
160
160
|
isOptional: true;
|
|
161
161
|
};
|
|
162
162
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema599 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_schema599.EnumType<[string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PayoutStatusEnum };
|
|
10
10
|
//# sourceMappingURL=payout.enum.d.ts.map
|