@contractspec/example.marketplace 1.62.0 → 2.1.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/browser/docs/index.js +1 -1
- package/dist/browser/docs/marketplace.docblock.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +10 -10
- package/dist/browser/marketplace.capability.js +4 -1
- package/dist/browser/marketplace.feature.js +1 -1
- package/dist/browser/order/index.js +2 -2
- package/dist/browser/order/order.event.js +1 -1
- package/dist/browser/order/order.operations.js +1 -1
- package/dist/browser/order/order.presentation.js +4 -1
- package/dist/browser/payout/index.js +2 -2
- package/dist/browser/payout/payout.event.js +1 -1
- package/dist/browser/payout/payout.operations.js +1 -1
- package/dist/browser/payout/payout.presentation.js +4 -1
- package/dist/browser/product/index.js +2 -2
- package/dist/browser/product/product.event.js +1 -1
- package/dist/browser/product/product.operations.js +1 -1
- package/dist/browser/product/product.presentation.js +4 -1
- package/dist/browser/review/index.js +2 -2
- package/dist/browser/review/review.event.js +1 -1
- package/dist/browser/review/review.operations.js +1 -1
- package/dist/browser/review/review.presentation.js +4 -1
- package/dist/browser/store/index.js +2 -2
- package/dist/browser/store/store.event.js +1 -1
- package/dist/browser/store/store.operations.js +1 -1
- package/dist/browser/store/store.presentation.js +4 -1
- package/dist/browser/tests/operations.test-spec.js +1 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/marketplace.docblock.d.ts +0 -1
- package/dist/docs/marketplace.docblock.js +1 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/order.d.ts +0 -1
- package/dist/entities/payout.d.ts +0 -1
- package/dist/entities/product.d.ts +0 -1
- package/dist/entities/review.d.ts +0 -1
- package/dist/entities/store.d.ts +0 -1
- package/dist/example.d.ts +1 -2
- package/dist/example.js +1 -1
- package/dist/handlers/index.d.ts +0 -1
- package/dist/handlers/marketplace.handlers.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10 -10
- package/dist/marketplace.capability.d.ts +3 -4
- package/dist/marketplace.capability.js +4 -1
- package/dist/marketplace.feature.d.ts +1 -2
- package/dist/marketplace.feature.js +1 -1
- package/dist/node/docs/index.js +1 -1
- package/dist/node/docs/marketplace.docblock.js +1 -1
- package/dist/node/example.js +1 -1
- package/dist/node/index.js +10 -10
- package/dist/node/marketplace.capability.js +4 -1
- package/dist/node/marketplace.feature.js +1 -1
- package/dist/node/order/index.js +2 -2
- package/dist/node/order/order.event.js +1 -1
- package/dist/node/order/order.operations.js +1 -1
- package/dist/node/order/order.presentation.js +4 -1
- package/dist/node/payout/index.js +2 -2
- package/dist/node/payout/payout.event.js +1 -1
- package/dist/node/payout/payout.operations.js +1 -1
- package/dist/node/payout/payout.presentation.js +4 -1
- package/dist/node/product/index.js +2 -2
- package/dist/node/product/product.event.js +1 -1
- package/dist/node/product/product.operations.js +1 -1
- package/dist/node/product/product.presentation.js +4 -1
- package/dist/node/review/index.js +2 -2
- package/dist/node/review/review.event.js +1 -1
- package/dist/node/review/review.operations.js +1 -1
- package/dist/node/review/review.presentation.js +4 -1
- package/dist/node/store/index.js +2 -2
- package/dist/node/store/store.event.js +1 -1
- package/dist/node/store/store.operations.js +1 -1
- package/dist/node/store/store.presentation.js +4 -1
- package/dist/node/tests/operations.test-spec.js +1 -1
- package/dist/order/index.d.ts +0 -1
- package/dist/order/index.js +2 -2
- package/dist/order/order.enum.d.ts +0 -1
- package/dist/order/order.event.d.ts +5 -6
- package/dist/order/order.event.js +1 -1
- package/dist/order/order.operations.d.ts +2 -3
- package/dist/order/order.operations.js +1 -1
- package/dist/order/order.presentation.d.ts +3 -4
- package/dist/order/order.presentation.js +4 -1
- package/dist/order/order.schema.d.ts +0 -1
- package/dist/payout/index.d.ts +0 -1
- package/dist/payout/index.js +2 -2
- package/dist/payout/payout.enum.d.ts +0 -1
- package/dist/payout/payout.event.d.ts +2 -3
- package/dist/payout/payout.event.js +1 -1
- package/dist/payout/payout.operations.d.ts +1 -2
- package/dist/payout/payout.operations.js +1 -1
- package/dist/payout/payout.presentation.d.ts +2 -3
- package/dist/payout/payout.presentation.js +4 -1
- package/dist/payout/payout.schema.d.ts +0 -1
- package/dist/product/index.d.ts +0 -1
- package/dist/product/index.js +2 -2
- package/dist/product/product.enum.d.ts +0 -1
- package/dist/product/product.event.d.ts +3 -4
- package/dist/product/product.event.js +1 -1
- package/dist/product/product.operations.d.ts +2 -3
- package/dist/product/product.operations.js +1 -1
- package/dist/product/product.presentation.d.ts +3 -4
- package/dist/product/product.presentation.js +4 -1
- package/dist/product/product.schema.d.ts +0 -1
- package/dist/review/index.d.ts +0 -1
- package/dist/review/index.js +2 -2
- package/dist/review/review.enum.d.ts +0 -1
- package/dist/review/review.event.d.ts +2 -3
- package/dist/review/review.event.js +1 -1
- package/dist/review/review.operations.d.ts +2 -3
- package/dist/review/review.operations.js +1 -1
- package/dist/review/review.presentation.d.ts +2 -3
- package/dist/review/review.presentation.js +4 -1
- package/dist/review/review.schema.d.ts +0 -1
- package/dist/seeders/index.d.ts +0 -1
- package/dist/store/index.d.ts +0 -1
- package/dist/store/index.js +2 -2
- package/dist/store/store.enum.d.ts +0 -1
- package/dist/store/store.event.d.ts +2 -3
- package/dist/store/store.event.js +1 -1
- package/dist/store/store.operations.d.ts +1 -2
- package/dist/store/store.operations.js +1 -1
- package/dist/store/store.presentation.d.ts +2 -3
- package/dist/store/store.presentation.js +4 -1
- package/dist/store/store.schema.d.ts +0 -1
- package/dist/tests/operations.test-spec.d.ts +5 -6
- package/dist/tests/operations.test-spec.js +1 -1
- package/dist/ui/MarketplaceDashboard.d.ts +0 -1
- package/dist/ui/hooks/index.d.ts +0 -1
- package/dist/ui/hooks/useMarketplaceData.d.ts +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/renderers/index.d.ts +0 -1
- package/dist/ui/renderers/marketplace.markdown.d.ts +1 -2
- package/package.json +8 -8
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/marketplace.docblock.d.ts.map +0 -1
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/order.d.ts.map +0 -1
- package/dist/entities/payout.d.ts.map +0 -1
- package/dist/entities/product.d.ts.map +0 -1
- package/dist/entities/review.d.ts.map +0 -1
- package/dist/entities/store.d.ts.map +0 -1
- package/dist/example.d.ts.map +0 -1
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/marketplace.handlers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/marketplace.capability.d.ts.map +0 -1
- package/dist/marketplace.feature.d.ts.map +0 -1
- package/dist/order/index.d.ts.map +0 -1
- package/dist/order/order.enum.d.ts.map +0 -1
- package/dist/order/order.event.d.ts.map +0 -1
- package/dist/order/order.operations.d.ts.map +0 -1
- package/dist/order/order.presentation.d.ts.map +0 -1
- package/dist/order/order.schema.d.ts.map +0 -1
- package/dist/payout/index.d.ts.map +0 -1
- package/dist/payout/payout.enum.d.ts.map +0 -1
- package/dist/payout/payout.event.d.ts.map +0 -1
- package/dist/payout/payout.operations.d.ts.map +0 -1
- package/dist/payout/payout.presentation.d.ts.map +0 -1
- package/dist/payout/payout.schema.d.ts.map +0 -1
- package/dist/product/index.d.ts.map +0 -1
- package/dist/product/product.enum.d.ts.map +0 -1
- package/dist/product/product.event.d.ts.map +0 -1
- package/dist/product/product.operations.d.ts.map +0 -1
- package/dist/product/product.presentation.d.ts.map +0 -1
- package/dist/product/product.schema.d.ts.map +0 -1
- package/dist/review/index.d.ts.map +0 -1
- package/dist/review/review.enum.d.ts.map +0 -1
- package/dist/review/review.event.d.ts.map +0 -1
- package/dist/review/review.operations.d.ts.map +0 -1
- package/dist/review/review.presentation.d.ts.map +0 -1
- package/dist/review/review.schema.d.ts.map +0 -1
- package/dist/seeders/index.d.ts.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/store.enum.d.ts.map +0 -1
- package/dist/store/store.event.d.ts.map +0 -1
- package/dist/store/store.operations.d.ts.map +0 -1
- package/dist/store/store.presentation.d.ts.map +0 -1
- package/dist/store/store.schema.d.ts.map +0 -1
- package/dist/tests/operations.test-spec.d.ts.map +0 -1
- package/dist/ui/MarketplaceDashboard.d.ts.map +0 -1
- package/dist/ui/hooks/index.d.ts.map +0 -1
- package/dist/ui/hooks/useMarketplaceData.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/renderers/index.d.ts.map +0 -1
- package/dist/ui/renderers/marketplace.markdown.d.ts.map +0 -1
package/dist/browser/example.js
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -340,7 +340,7 @@ var CreateStoreInputModel = defineSchemaModel({
|
|
|
340
340
|
});
|
|
341
341
|
|
|
342
342
|
// src/store/store.operations.ts
|
|
343
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
343
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
344
344
|
var OWNERS = ["@example.marketplace"];
|
|
345
345
|
var CreateStoreContract = defineCommand({
|
|
346
346
|
meta: {
|
|
@@ -387,7 +387,7 @@ var CreateStoreContract = defineCommand({
|
|
|
387
387
|
|
|
388
388
|
// src/store/store.event.ts
|
|
389
389
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
390
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
390
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
391
391
|
var StoreCreatedPayload = defineSchemaModel2({
|
|
392
392
|
name: "StoreCreatedEventPayload",
|
|
393
393
|
fields: {
|
|
@@ -516,7 +516,7 @@ var ListProductsOutputModel = defineSchemaModel3({
|
|
|
516
516
|
import {
|
|
517
517
|
defineCommand as defineCommand2,
|
|
518
518
|
defineQuery
|
|
519
|
-
} from "@contractspec/lib.contracts/operations";
|
|
519
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
520
520
|
var OWNERS2 = ["@example.marketplace"];
|
|
521
521
|
var CreateProductContract = defineCommand2({
|
|
522
522
|
meta: {
|
|
@@ -603,7 +603,7 @@ var ListProductsContract = defineQuery({
|
|
|
603
603
|
|
|
604
604
|
// src/product/product.event.ts
|
|
605
605
|
import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
|
|
606
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
606
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
607
607
|
var ProductCreatedPayload = defineSchemaModel4({
|
|
608
608
|
name: "ProductCreatedEventPayload",
|
|
609
609
|
fields: {
|
|
@@ -745,7 +745,7 @@ var UpdateOrderStatusInputModel = defineSchemaModel5({
|
|
|
745
745
|
});
|
|
746
746
|
|
|
747
747
|
// src/order/order.operations.ts
|
|
748
|
-
import { defineCommand as defineCommand3 } from "@contractspec/lib.contracts/operations";
|
|
748
|
+
import { defineCommand as defineCommand3 } from "@contractspec/lib.contracts-spec/operations";
|
|
749
749
|
var OWNERS3 = ["@example.marketplace"];
|
|
750
750
|
var CreateOrderContract = defineCommand3({
|
|
751
751
|
meta: {
|
|
@@ -841,7 +841,7 @@ var UpdateOrderStatusContract = defineCommand3({
|
|
|
841
841
|
|
|
842
842
|
// src/order/order.event.ts
|
|
843
843
|
import { ScalarTypeEnum as ScalarTypeEnum6, defineSchemaModel as defineSchemaModel6 } from "@contractspec/lib.schema";
|
|
844
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
844
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
845
845
|
var OrderCreatedPayload = defineSchemaModel6({
|
|
846
846
|
name: "OrderCreatedEventPayload",
|
|
847
847
|
fields: {
|
|
@@ -1021,7 +1021,7 @@ var ListPayoutsOutputModel = defineSchemaModel7({
|
|
|
1021
1021
|
});
|
|
1022
1022
|
|
|
1023
1023
|
// src/payout/payout.operations.ts
|
|
1024
|
-
import { defineQuery as defineQuery2 } from "@contractspec/lib.contracts/operations";
|
|
1024
|
+
import { defineQuery as defineQuery2 } from "@contractspec/lib.contracts-spec/operations";
|
|
1025
1025
|
var OWNERS4 = ["@example.marketplace"];
|
|
1026
1026
|
var ListPayoutsContract = defineQuery2({
|
|
1027
1027
|
meta: {
|
|
@@ -1057,7 +1057,7 @@ var ListPayoutsContract = defineQuery2({
|
|
|
1057
1057
|
|
|
1058
1058
|
// src/payout/payout.event.ts
|
|
1059
1059
|
import { ScalarTypeEnum as ScalarTypeEnum8, defineSchemaModel as defineSchemaModel8 } from "@contractspec/lib.schema";
|
|
1060
|
-
import { defineEvent as defineEvent4 } from "@contractspec/lib.contracts";
|
|
1060
|
+
import { defineEvent as defineEvent4 } from "@contractspec/lib.contracts-spec";
|
|
1061
1061
|
var PayoutCreatedPayload = defineSchemaModel8({
|
|
1062
1062
|
name: "PayoutCreatedEventPayload",
|
|
1063
1063
|
fields: {
|
|
@@ -1179,7 +1179,7 @@ var ListReviewsOutputModel = defineSchemaModel9({
|
|
|
1179
1179
|
import {
|
|
1180
1180
|
defineCommand as defineCommand4,
|
|
1181
1181
|
defineQuery as defineQuery3
|
|
1182
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1182
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1183
1183
|
var OWNERS5 = ["@example.marketplace"];
|
|
1184
1184
|
var CreateReviewContract = defineCommand4({
|
|
1185
1185
|
meta: {
|
|
@@ -1257,7 +1257,7 @@ var ListReviewsContract = defineQuery3({
|
|
|
1257
1257
|
|
|
1258
1258
|
// src/review/review.event.ts
|
|
1259
1259
|
import { ScalarTypeEnum as ScalarTypeEnum10, defineSchemaModel as defineSchemaModel10 } from "@contractspec/lib.schema";
|
|
1260
|
-
import { defineEvent as defineEvent5 } from "@contractspec/lib.contracts";
|
|
1260
|
+
import { defineEvent as defineEvent5 } from "@contractspec/lib.contracts-spec";
|
|
1261
1261
|
var ReviewCreatedPayload = defineSchemaModel10({
|
|
1262
1262
|
name: "ReviewCreatedEventPayload",
|
|
1263
1263
|
fields: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/marketplace.capability.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
defineCapability,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var MarketplaceCapability = defineCapability({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "marketplace",
|
|
@@ -73,7 +73,7 @@ var UpdateOrderStatusInputModel = defineSchemaModel({
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// src/order/order.operations.ts
|
|
76
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
76
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
77
77
|
var OWNERS = ["@example.marketplace"];
|
|
78
78
|
var CreateOrderContract = defineCommand({
|
|
79
79
|
meta: {
|
|
@@ -169,7 +169,7 @@ var UpdateOrderStatusContract = defineCommand({
|
|
|
169
169
|
|
|
170
170
|
// src/order/order.event.ts
|
|
171
171
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
172
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
172
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
173
173
|
var OrderCreatedPayload = defineSchemaModel2({
|
|
174
174
|
name: "OrderCreatedEventPayload",
|
|
175
175
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/order/order.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var OrderCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "OrderCreatedEventPayload",
|
|
6
6
|
fields: {
|
|
@@ -73,7 +73,7 @@ var UpdateOrderStatusInputModel = defineSchemaModel({
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// src/order/order.operations.ts
|
|
76
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
76
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
77
77
|
var OWNERS = ["@example.marketplace"];
|
|
78
78
|
var CreateOrderContract = defineCommand({
|
|
79
79
|
meta: {
|
|
@@ -73,7 +73,10 @@ var UpdateOrderStatusInputModel = defineSchemaModel({
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// src/order/order.presentation.ts
|
|
76
|
-
import {
|
|
76
|
+
import {
|
|
77
|
+
definePresentation,
|
|
78
|
+
StabilityEnum
|
|
79
|
+
} from "@contractspec/lib.contracts-spec";
|
|
77
80
|
var OrderListPresentation = definePresentation({
|
|
78
81
|
meta: {
|
|
79
82
|
key: "marketplace.order.list",
|
|
@@ -56,7 +56,7 @@ var ListPayoutsOutputModel = defineSchemaModel({
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
// src/payout/payout.operations.ts
|
|
59
|
-
import { defineQuery } from "@contractspec/lib.contracts/operations";
|
|
59
|
+
import { defineQuery } from "@contractspec/lib.contracts-spec/operations";
|
|
60
60
|
var OWNERS = ["@example.marketplace"];
|
|
61
61
|
var ListPayoutsContract = defineQuery({
|
|
62
62
|
meta: {
|
|
@@ -92,7 +92,7 @@ var ListPayoutsContract = defineQuery({
|
|
|
92
92
|
|
|
93
93
|
// src/payout/payout.event.ts
|
|
94
94
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
95
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
95
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
96
96
|
var PayoutCreatedPayload = defineSchemaModel2({
|
|
97
97
|
name: "PayoutCreatedEventPayload",
|
|
98
98
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/payout/payout.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var PayoutCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "PayoutCreatedEventPayload",
|
|
6
6
|
fields: {
|
|
@@ -56,7 +56,7 @@ var ListPayoutsOutputModel = defineSchemaModel({
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
// src/payout/payout.operations.ts
|
|
59
|
-
import { defineQuery } from "@contractspec/lib.contracts/operations";
|
|
59
|
+
import { defineQuery } from "@contractspec/lib.contracts-spec/operations";
|
|
60
60
|
var OWNERS = ["@example.marketplace"];
|
|
61
61
|
var ListPayoutsContract = defineQuery({
|
|
62
62
|
meta: {
|
|
@@ -56,7 +56,10 @@ var ListPayoutsOutputModel = defineSchemaModel({
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
// src/payout/payout.presentation.ts
|
|
59
|
-
import {
|
|
59
|
+
import {
|
|
60
|
+
definePresentation,
|
|
61
|
+
StabilityEnum
|
|
62
|
+
} from "@contractspec/lib.contracts-spec";
|
|
60
63
|
var PayoutListPresentation = definePresentation({
|
|
61
64
|
meta: {
|
|
62
65
|
key: "marketplace.payout.viewList",
|
|
@@ -81,7 +81,7 @@ var ListProductsOutputModel = defineSchemaModel({
|
|
|
81
81
|
import {
|
|
82
82
|
defineCommand,
|
|
83
83
|
defineQuery
|
|
84
|
-
} from "@contractspec/lib.contracts/operations";
|
|
84
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
85
85
|
var OWNERS = ["@example.marketplace"];
|
|
86
86
|
var CreateProductContract = defineCommand({
|
|
87
87
|
meta: {
|
|
@@ -168,7 +168,7 @@ var ListProductsContract = defineQuery({
|
|
|
168
168
|
|
|
169
169
|
// src/product/product.event.ts
|
|
170
170
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
171
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
171
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
172
172
|
var ProductCreatedPayload = defineSchemaModel2({
|
|
173
173
|
name: "ProductCreatedEventPayload",
|
|
174
174
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/product/product.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var ProductCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "ProductCreatedEventPayload",
|
|
6
6
|
fields: {
|
|
@@ -81,7 +81,7 @@ var ListProductsOutputModel = defineSchemaModel({
|
|
|
81
81
|
import {
|
|
82
82
|
defineCommand,
|
|
83
83
|
defineQuery
|
|
84
|
-
} from "@contractspec/lib.contracts/operations";
|
|
84
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
85
85
|
var OWNERS = ["@example.marketplace"];
|
|
86
86
|
var CreateProductContract = defineCommand({
|
|
87
87
|
meta: {
|
|
@@ -78,7 +78,10 @@ var ListProductsOutputModel = defineSchemaModel({
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
// src/product/product.presentation.ts
|
|
81
|
-
import {
|
|
81
|
+
import {
|
|
82
|
+
definePresentation,
|
|
83
|
+
StabilityEnum
|
|
84
|
+
} from "@contractspec/lib.contracts-spec";
|
|
82
85
|
var ProductCatalogPresentation = definePresentation({
|
|
83
86
|
meta: {
|
|
84
87
|
key: "marketplace.product.catalog",
|
|
@@ -71,7 +71,7 @@ var ListReviewsOutputModel = defineSchemaModel({
|
|
|
71
71
|
import {
|
|
72
72
|
defineCommand,
|
|
73
73
|
defineQuery
|
|
74
|
-
} from "@contractspec/lib.contracts/operations";
|
|
74
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
75
75
|
var OWNERS = ["@example.marketplace"];
|
|
76
76
|
var CreateReviewContract = defineCommand({
|
|
77
77
|
meta: {
|
|
@@ -149,7 +149,7 @@ var ListReviewsContract = defineQuery({
|
|
|
149
149
|
|
|
150
150
|
// src/review/review.event.ts
|
|
151
151
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
152
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
152
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
153
153
|
var ReviewCreatedPayload = defineSchemaModel2({
|
|
154
154
|
name: "ReviewCreatedEventPayload",
|
|
155
155
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/review/review.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var ReviewCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "ReviewCreatedEventPayload",
|
|
6
6
|
fields: {
|
|
@@ -71,7 +71,7 @@ var ListReviewsOutputModel = defineSchemaModel({
|
|
|
71
71
|
import {
|
|
72
72
|
defineCommand,
|
|
73
73
|
defineQuery
|
|
74
|
-
} from "@contractspec/lib.contracts/operations";
|
|
74
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
75
75
|
var OWNERS = ["@example.marketplace"];
|
|
76
76
|
var CreateReviewContract = defineCommand({
|
|
77
77
|
meta: {
|
|
@@ -68,7 +68,10 @@ var ListReviewsOutputModel = defineSchemaModel({
|
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// src/review/review.presentation.ts
|
|
71
|
-
import {
|
|
71
|
+
import {
|
|
72
|
+
definePresentation,
|
|
73
|
+
StabilityEnum
|
|
74
|
+
} from "@contractspec/lib.contracts-spec";
|
|
72
75
|
var ReviewListPresentation = definePresentation({
|
|
73
76
|
meta: {
|
|
74
77
|
key: "marketplace.review.viewList",
|
|
@@ -39,7 +39,7 @@ var CreateStoreInputModel = defineSchemaModel({
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// src/store/store.operations.ts
|
|
42
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
42
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
43
43
|
var OWNERS = ["@example.marketplace"];
|
|
44
44
|
var CreateStoreContract = defineCommand({
|
|
45
45
|
meta: {
|
|
@@ -86,7 +86,7 @@ var CreateStoreContract = defineCommand({
|
|
|
86
86
|
|
|
87
87
|
// src/store/store.event.ts
|
|
88
88
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
89
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
89
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
90
90
|
var StoreCreatedPayload = defineSchemaModel2({
|
|
91
91
|
name: "StoreCreatedEventPayload",
|
|
92
92
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/store/store.event.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var StoreCreatedPayload = defineSchemaModel({
|
|
5
5
|
name: "StoreCreatedEventPayload",
|
|
6
6
|
fields: {
|
|
@@ -39,7 +39,7 @@ var CreateStoreInputModel = defineSchemaModel({
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// src/store/store.operations.ts
|
|
42
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
42
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
43
43
|
var OWNERS = ["@example.marketplace"];
|
|
44
44
|
var CreateStoreContract = defineCommand({
|
|
45
45
|
meta: {
|
|
@@ -39,7 +39,10 @@ var CreateStoreInputModel = defineSchemaModel({
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// src/store/store.presentation.ts
|
|
42
|
-
import {
|
|
42
|
+
import {
|
|
43
|
+
definePresentation,
|
|
44
|
+
StabilityEnum
|
|
45
|
+
} from "@contractspec/lib.contracts-spec";
|
|
43
46
|
var StoreProfilePresentation = definePresentation({
|
|
44
47
|
meta: {
|
|
45
48
|
key: "marketplace.store.profile",
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
package/dist/entities/index.d.ts
CHANGED
|
@@ -301,4 +301,3 @@ export declare const marketplaceEntities: (import("@contractspec/lib.schema").En
|
|
|
301
301
|
review: import("@contractspec/lib.schema").EntityRelationField;
|
|
302
302
|
}>)[];
|
|
303
303
|
export declare const marketplaceSchemaContribution: ModuleSchemaContribution;
|
|
304
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/entities/order.d.ts
CHANGED
package/dist/entities/store.d.ts
CHANGED
package/dist/example.d.ts
CHANGED
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -341,7 +341,7 @@ var CreateStoreInputModel = defineSchemaModel({
|
|
|
341
341
|
});
|
|
342
342
|
|
|
343
343
|
// src/store/store.operations.ts
|
|
344
|
-
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
344
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec/operations";
|
|
345
345
|
var OWNERS = ["@example.marketplace"];
|
|
346
346
|
var CreateStoreContract = defineCommand({
|
|
347
347
|
meta: {
|
|
@@ -388,7 +388,7 @@ var CreateStoreContract = defineCommand({
|
|
|
388
388
|
|
|
389
389
|
// src/store/store.event.ts
|
|
390
390
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
391
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
391
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
392
392
|
var StoreCreatedPayload = defineSchemaModel2({
|
|
393
393
|
name: "StoreCreatedEventPayload",
|
|
394
394
|
fields: {
|
|
@@ -517,7 +517,7 @@ var ListProductsOutputModel = defineSchemaModel3({
|
|
|
517
517
|
import {
|
|
518
518
|
defineCommand as defineCommand2,
|
|
519
519
|
defineQuery
|
|
520
|
-
} from "@contractspec/lib.contracts/operations";
|
|
520
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
521
521
|
var OWNERS2 = ["@example.marketplace"];
|
|
522
522
|
var CreateProductContract = defineCommand2({
|
|
523
523
|
meta: {
|
|
@@ -604,7 +604,7 @@ var ListProductsContract = defineQuery({
|
|
|
604
604
|
|
|
605
605
|
// src/product/product.event.ts
|
|
606
606
|
import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
|
|
607
|
-
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
|
|
607
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
608
608
|
var ProductCreatedPayload = defineSchemaModel4({
|
|
609
609
|
name: "ProductCreatedEventPayload",
|
|
610
610
|
fields: {
|
|
@@ -746,7 +746,7 @@ var UpdateOrderStatusInputModel = defineSchemaModel5({
|
|
|
746
746
|
});
|
|
747
747
|
|
|
748
748
|
// src/order/order.operations.ts
|
|
749
|
-
import { defineCommand as defineCommand3 } from "@contractspec/lib.contracts/operations";
|
|
749
|
+
import { defineCommand as defineCommand3 } from "@contractspec/lib.contracts-spec/operations";
|
|
750
750
|
var OWNERS3 = ["@example.marketplace"];
|
|
751
751
|
var CreateOrderContract = defineCommand3({
|
|
752
752
|
meta: {
|
|
@@ -842,7 +842,7 @@ var UpdateOrderStatusContract = defineCommand3({
|
|
|
842
842
|
|
|
843
843
|
// src/order/order.event.ts
|
|
844
844
|
import { ScalarTypeEnum as ScalarTypeEnum6, defineSchemaModel as defineSchemaModel6 } from "@contractspec/lib.schema";
|
|
845
|
-
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
|
|
845
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
846
846
|
var OrderCreatedPayload = defineSchemaModel6({
|
|
847
847
|
name: "OrderCreatedEventPayload",
|
|
848
848
|
fields: {
|
|
@@ -1022,7 +1022,7 @@ var ListPayoutsOutputModel = defineSchemaModel7({
|
|
|
1022
1022
|
});
|
|
1023
1023
|
|
|
1024
1024
|
// src/payout/payout.operations.ts
|
|
1025
|
-
import { defineQuery as defineQuery2 } from "@contractspec/lib.contracts/operations";
|
|
1025
|
+
import { defineQuery as defineQuery2 } from "@contractspec/lib.contracts-spec/operations";
|
|
1026
1026
|
var OWNERS4 = ["@example.marketplace"];
|
|
1027
1027
|
var ListPayoutsContract = defineQuery2({
|
|
1028
1028
|
meta: {
|
|
@@ -1058,7 +1058,7 @@ var ListPayoutsContract = defineQuery2({
|
|
|
1058
1058
|
|
|
1059
1059
|
// src/payout/payout.event.ts
|
|
1060
1060
|
import { ScalarTypeEnum as ScalarTypeEnum8, defineSchemaModel as defineSchemaModel8 } from "@contractspec/lib.schema";
|
|
1061
|
-
import { defineEvent as defineEvent4 } from "@contractspec/lib.contracts";
|
|
1061
|
+
import { defineEvent as defineEvent4 } from "@contractspec/lib.contracts-spec";
|
|
1062
1062
|
var PayoutCreatedPayload = defineSchemaModel8({
|
|
1063
1063
|
name: "PayoutCreatedEventPayload",
|
|
1064
1064
|
fields: {
|
|
@@ -1180,7 +1180,7 @@ var ListReviewsOutputModel = defineSchemaModel9({
|
|
|
1180
1180
|
import {
|
|
1181
1181
|
defineCommand as defineCommand4,
|
|
1182
1182
|
defineQuery as defineQuery3
|
|
1183
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1183
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1184
1184
|
var OWNERS5 = ["@example.marketplace"];
|
|
1185
1185
|
var CreateReviewContract = defineCommand4({
|
|
1186
1186
|
meta: {
|
|
@@ -1258,7 +1258,7 @@ var ListReviewsContract = defineQuery3({
|
|
|
1258
1258
|
|
|
1259
1259
|
// src/review/review.event.ts
|
|
1260
1260
|
import { ScalarTypeEnum as ScalarTypeEnum10, defineSchemaModel as defineSchemaModel10 } from "@contractspec/lib.schema";
|
|
1261
|
-
import { defineEvent as defineEvent5 } from "@contractspec/lib.contracts";
|
|
1261
|
+
import { defineEvent as defineEvent5 } from "@contractspec/lib.contracts-spec";
|
|
1262
1262
|
var ReviewCreatedPayload = defineSchemaModel10({
|
|
1263
1263
|
name: "ReviewCreatedEventPayload",
|
|
1264
1264
|
fields: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const MarketplaceCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
2
|
-
export declare const EcommerceCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
3
|
-
export declare const PaymentsCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
4
|
-
//# sourceMappingURL=marketplace.capability.d.ts.map
|
|
1
|
+
export declare const MarketplaceCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
2
|
+
export declare const EcommerceCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
3
|
+
export declare const PaymentsCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/marketplace.capability.ts
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
defineCapability,
|
|
5
|
+
StabilityEnum
|
|
6
|
+
} from "@contractspec/lib.contracts-spec";
|
|
4
7
|
var MarketplaceCapability = defineCapability({
|
|
5
8
|
meta: {
|
|
6
9
|
key: "marketplace",
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* Marketplace feature module that bundles multi-vendor marketplace
|
|
3
3
|
* capabilities including stores, products, orders, payouts, and reviews.
|
|
4
4
|
*/
|
|
5
|
-
export declare const MarketplaceFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
|
|
6
|
-
//# sourceMappingURL=marketplace.feature.d.ts.map
|
|
5
|
+
export declare const MarketplaceFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
|
package/dist/node/docs/index.js
CHANGED