@contractspec/example.marketplace 1.44.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.
Files changed (152) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +141 -0
  3. package/dist/docs/index.d.ts +1 -0
  4. package/dist/docs/index.js +1 -0
  5. package/dist/docs/marketplace.docblock.d.ts +1 -0
  6. package/dist/docs/marketplace.docblock.js +115 -0
  7. package/dist/docs/marketplace.docblock.js.map +1 -0
  8. package/dist/entities/index.d.ts +309 -0
  9. package/dist/entities/index.d.ts.map +1 -0
  10. package/dist/entities/index.js +46 -0
  11. package/dist/entities/index.js.map +1 -0
  12. package/dist/entities/order.d.ts +105 -0
  13. package/dist/entities/order.d.ts.map +1 -0
  14. package/dist/entities/order.js +173 -0
  15. package/dist/entities/order.js.map +1 -0
  16. package/dist/entities/payout.d.ts +92 -0
  17. package/dist/entities/payout.d.ts.map +1 -0
  18. package/dist/entities/payout.js +162 -0
  19. package/dist/entities/payout.js.map +1 -0
  20. package/dist/entities/product.d.ts +93 -0
  21. package/dist/entities/product.d.ts.map +1 -0
  22. package/dist/entities/product.js +161 -0
  23. package/dist/entities/product.js.map +1 -0
  24. package/dist/entities/review.d.ts +83 -0
  25. package/dist/entities/review.d.ts.map +1 -0
  26. package/dist/entities/review.js +152 -0
  27. package/dist/entities/review.js.map +1 -0
  28. package/dist/entities/store.d.ts +60 -0
  29. package/dist/entities/store.d.ts.map +1 -0
  30. package/dist/entities/store.js +110 -0
  31. package/dist/entities/store.js.map +1 -0
  32. package/dist/example.d.ts +40 -0
  33. package/dist/example.d.ts.map +1 -0
  34. package/dist/example.js +51 -0
  35. package/dist/example.js.map +1 -0
  36. package/dist/index.d.ts +26 -0
  37. package/dist/index.js +27 -0
  38. package/dist/marketplace.feature.d.ts +12 -0
  39. package/dist/marketplace.feature.d.ts.map +1 -0
  40. package/dist/marketplace.feature.js +310 -0
  41. package/dist/marketplace.feature.js.map +1 -0
  42. package/dist/order/index.d.ts +5 -0
  43. package/dist/order/index.js +6 -0
  44. package/dist/order/order.enum.d.ts +10 -0
  45. package/dist/order/order.enum.d.ts.map +1 -0
  46. package/dist/order/order.enum.js +22 -0
  47. package/dist/order/order.enum.js.map +1 -0
  48. package/dist/order/order.event.d.ts +145 -0
  49. package/dist/order/order.event.d.ts.map +1 -0
  50. package/dist/order/order.event.js +216 -0
  51. package/dist/order/order.event.js.map +1 -0
  52. package/dist/order/order.operations.d.ts +368 -0
  53. package/dist/order/order.operations.d.ts.map +1 -0
  54. package/dist/order/order.operations.js +119 -0
  55. package/dist/order/order.operations.js.map +1 -0
  56. package/dist/order/order.presentation.d.ts +9 -0
  57. package/dist/order/order.presentation.d.ts.map +1 -0
  58. package/dist/order/order.presentation.js +86 -0
  59. package/dist/order/order.presentation.js.map +1 -0
  60. package/dist/order/order.schema.d.ts +165 -0
  61. package/dist/order/order.schema.d.ts.map +1 -0
  62. package/dist/order/order.schema.js +155 -0
  63. package/dist/order/order.schema.js.map +1 -0
  64. package/dist/payout/index.d.ts +5 -0
  65. package/dist/payout/index.js +6 -0
  66. package/dist/payout/payout.enum.d.ts +10 -0
  67. package/dist/payout/payout.enum.d.ts.map +1 -0
  68. package/dist/payout/payout.enum.js +17 -0
  69. package/dist/payout/payout.enum.js.map +1 -0
  70. package/dist/payout/payout.event.d.ts +63 -0
  71. package/dist/payout/payout.event.d.ts.map +1 -0
  72. package/dist/payout/payout.event.js +92 -0
  73. package/dist/payout/payout.event.js.map +1 -0
  74. package/dist/payout/payout.operations.d.ts +97 -0
  75. package/dist/payout/payout.operations.d.ts.map +1 -0
  76. package/dist/payout/payout.operations.js +53 -0
  77. package/dist/payout/payout.operations.js.map +1 -0
  78. package/dist/payout/payout.presentation.d.ts +8 -0
  79. package/dist/payout/payout.presentation.d.ts.map +1 -0
  80. package/dist/payout/payout.presentation.js +60 -0
  81. package/dist/payout/payout.presentation.js.map +1 -0
  82. package/dist/payout/payout.schema.d.ts +157 -0
  83. package/dist/payout/payout.schema.d.ts.map +1 -0
  84. package/dist/payout/payout.schema.js +116 -0
  85. package/dist/payout/payout.schema.js.map +1 -0
  86. package/dist/product/index.d.ts +5 -0
  87. package/dist/product/index.js +6 -0
  88. package/dist/product/product.enum.d.ts +10 -0
  89. package/dist/product/product.enum.d.ts.map +1 -0
  90. package/dist/product/product.enum.js +18 -0
  91. package/dist/product/product.enum.js.map +1 -0
  92. package/dist/product/product.event.d.ts +73 -0
  93. package/dist/product/product.event.d.ts.map +1 -0
  94. package/dist/product/product.event.js +120 -0
  95. package/dist/product/product.event.js.map +1 -0
  96. package/dist/product/product.operations.d.ts +273 -0
  97. package/dist/product/product.operations.d.ts.map +1 -0
  98. package/dist/product/product.operations.js +108 -0
  99. package/dist/product/product.operations.js.map +1 -0
  100. package/dist/product/product.presentation.d.ts +9 -0
  101. package/dist/product/product.presentation.d.ts.map +1 -0
  102. package/dist/product/product.presentation.js +86 -0
  103. package/dist/product/product.presentation.js.map +1 -0
  104. package/dist/product/product.schema.d.ts +218 -0
  105. package/dist/product/product.schema.d.ts.map +1 -0
  106. package/dist/product/product.schema.js +176 -0
  107. package/dist/product/product.schema.js.map +1 -0
  108. package/dist/review/index.d.ts +5 -0
  109. package/dist/review/index.js +6 -0
  110. package/dist/review/review.enum.d.ts +10 -0
  111. package/dist/review/review.enum.d.ts.map +1 -0
  112. package/dist/review/review.enum.js +16 -0
  113. package/dist/review/review.enum.js.map +1 -0
  114. package/dist/review/review.event.d.ts +55 -0
  115. package/dist/review/review.event.d.ts.map +1 -0
  116. package/dist/review/review.event.js +84 -0
  117. package/dist/review/review.event.js.map +1 -0
  118. package/dist/review/review.operations.d.ts +237 -0
  119. package/dist/review/review.operations.d.ts.map +1 -0
  120. package/dist/review/review.operations.js +106 -0
  121. package/dist/review/review.operations.js.map +1 -0
  122. package/dist/review/review.presentation.d.ts +8 -0
  123. package/dist/review/review.presentation.d.ts.map +1 -0
  124. package/dist/review/review.presentation.js +60 -0
  125. package/dist/review/review.presentation.js.map +1 -0
  126. package/dist/review/review.schema.d.ts +190 -0
  127. package/dist/review/review.schema.d.ts.map +1 -0
  128. package/dist/review/review.schema.js +156 -0
  129. package/dist/review/review.schema.js.map +1 -0
  130. package/dist/store/index.d.ts +5 -0
  131. package/dist/store/index.js +6 -0
  132. package/dist/store/store.enum.d.ts +10 -0
  133. package/dist/store/store.enum.d.ts.map +1 -0
  134. package/dist/store/store.enum.js +16 -0
  135. package/dist/store/store.enum.js.map +1 -0
  136. package/dist/store/store.event.d.ts +51 -0
  137. package/dist/store/store.event.d.ts.map +1 -0
  138. package/dist/store/store.event.js +80 -0
  139. package/dist/store/store.event.js.map +1 -0
  140. package/dist/store/store.operations.d.ts +131 -0
  141. package/dist/store/store.operations.d.ts.map +1 -0
  142. package/dist/store/store.operations.js +61 -0
  143. package/dist/store/store.operations.js.map +1 -0
  144. package/dist/store/store.presentation.d.ts +8 -0
  145. package/dist/store/store.presentation.d.ts.map +1 -0
  146. package/dist/store/store.presentation.js +60 -0
  147. package/dist/store/store.presentation.js.map +1 -0
  148. package/dist/store/store.schema.d.ts +84 -0
  149. package/dist/store/store.schema.d.ts.map +1 -0
  150. package/dist/store/store.schema.js +93 -0
  151. package/dist/store/store.schema.js.map +1 -0
  152. package/package.json +141 -0
@@ -0,0 +1,156 @@
1
+ import { ReviewStatusEnum } from "./review.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
+
4
+ //#region src/review/review.schema.ts
5
+ /**
6
+ * A customer review.
7
+ */
8
+ const ReviewModel = defineSchemaModel({
9
+ name: "ReviewModel",
10
+ description: "A customer review",
11
+ fields: {
12
+ id: {
13
+ type: ScalarTypeEnum.String_unsecure(),
14
+ isOptional: false
15
+ },
16
+ productId: {
17
+ type: ScalarTypeEnum.String_unsecure(),
18
+ isOptional: true
19
+ },
20
+ storeId: {
21
+ type: ScalarTypeEnum.String_unsecure(),
22
+ isOptional: true
23
+ },
24
+ authorId: {
25
+ type: ScalarTypeEnum.String_unsecure(),
26
+ isOptional: false
27
+ },
28
+ rating: {
29
+ type: ScalarTypeEnum.Int_unsecure(),
30
+ isOptional: false
31
+ },
32
+ title: {
33
+ type: ScalarTypeEnum.String_unsecure(),
34
+ isOptional: true
35
+ },
36
+ content: {
37
+ type: ScalarTypeEnum.String_unsecure(),
38
+ isOptional: true
39
+ },
40
+ status: {
41
+ type: ReviewStatusEnum,
42
+ isOptional: false
43
+ },
44
+ isVerifiedPurchase: {
45
+ type: ScalarTypeEnum.Boolean(),
46
+ isOptional: false
47
+ },
48
+ helpfulCount: {
49
+ type: ScalarTypeEnum.Int_unsecure(),
50
+ isOptional: false
51
+ },
52
+ hasResponse: {
53
+ type: ScalarTypeEnum.Boolean(),
54
+ isOptional: false
55
+ },
56
+ createdAt: {
57
+ type: ScalarTypeEnum.DateTime(),
58
+ isOptional: false
59
+ }
60
+ }
61
+ });
62
+ /**
63
+ * Input for creating a review.
64
+ */
65
+ const CreateReviewInputModel = defineSchemaModel({
66
+ name: "CreateReviewInput",
67
+ fields: {
68
+ productId: {
69
+ type: ScalarTypeEnum.String_unsecure(),
70
+ isOptional: true
71
+ },
72
+ storeId: {
73
+ type: ScalarTypeEnum.String_unsecure(),
74
+ isOptional: true
75
+ },
76
+ orderId: {
77
+ type: ScalarTypeEnum.String_unsecure(),
78
+ isOptional: true
79
+ },
80
+ rating: {
81
+ type: ScalarTypeEnum.Int_unsecure(),
82
+ isOptional: false
83
+ },
84
+ title: {
85
+ type: ScalarTypeEnum.String_unsecure(),
86
+ isOptional: true
87
+ },
88
+ content: {
89
+ type: ScalarTypeEnum.String_unsecure(),
90
+ isOptional: true
91
+ }
92
+ }
93
+ });
94
+ /**
95
+ * Input for listing reviews.
96
+ */
97
+ const ListReviewsInputModel = defineSchemaModel({
98
+ name: "ListReviewsInput",
99
+ fields: {
100
+ productId: {
101
+ type: ScalarTypeEnum.String_unsecure(),
102
+ isOptional: true
103
+ },
104
+ storeId: {
105
+ type: ScalarTypeEnum.String_unsecure(),
106
+ isOptional: true
107
+ },
108
+ status: {
109
+ type: ReviewStatusEnum,
110
+ isOptional: true
111
+ },
112
+ minRating: {
113
+ type: ScalarTypeEnum.Int_unsecure(),
114
+ isOptional: true
115
+ },
116
+ limit: {
117
+ type: ScalarTypeEnum.Int_unsecure(),
118
+ isOptional: true,
119
+ defaultValue: 20
120
+ },
121
+ offset: {
122
+ type: ScalarTypeEnum.Int_unsecure(),
123
+ isOptional: true,
124
+ defaultValue: 0
125
+ }
126
+ }
127
+ });
128
+ /**
129
+ * Output for listing reviews.
130
+ */
131
+ const ListReviewsOutputModel = defineSchemaModel({
132
+ name: "ListReviewsOutput",
133
+ fields: {
134
+ reviews: {
135
+ type: ReviewModel,
136
+ isArray: true,
137
+ isOptional: false
138
+ },
139
+ total: {
140
+ type: ScalarTypeEnum.Int_unsecure(),
141
+ isOptional: false
142
+ },
143
+ averageRating: {
144
+ type: ScalarTypeEnum.Float_unsecure(),
145
+ isOptional: false
146
+ },
147
+ ratingDistribution: {
148
+ type: ScalarTypeEnum.JSON(),
149
+ isOptional: false
150
+ }
151
+ }
152
+ });
153
+
154
+ //#endregion
155
+ export { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel };
156
+ //# sourceMappingURL=review.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.schema.js","names":[],"sources":["../../src/review/review.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport { ReviewStatusEnum } from './review.enum';\n\n/**\n * A customer review.\n */\nexport const ReviewModel = defineSchemaModel({\n name: 'ReviewModel',\n description: 'A customer review',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ReviewStatusEnum, isOptional: false },\n isVerifiedPurchase: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n helpfulCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasResponse: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a review.\n */\nexport const CreateReviewInputModel = defineSchemaModel({\n name: 'CreateReviewInput',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for listing reviews.\n */\nexport const ListReviewsInputModel = defineSchemaModel({\n name: 'ListReviewsInput',\n fields: {\n productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ReviewStatusEnum, isOptional: true },\n minRating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n});\n\n/**\n * Output for listing reviews.\n */\nexport const ListReviewsOutputModel = defineSchemaModel({\n name: 'ListReviewsOutput',\n fields: {\n reviews: { type: ReviewModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n averageRating: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n ratingDistribution: { type: ScalarTypeEnum.JSON(), isOptional: false },\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,cAAc,kBAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAClE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM;GAAkB,YAAY;GAAO;EACrD,oBAAoB;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAO;EACzE,cAAc;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACxE,aAAa;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAO;EAClE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,kBAAkB;CACtD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAClE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,kBAAkB;CACrD,MAAM;CACN,QAAQ;EACN,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE,QAAQ;GAAE,MAAM;GAAkB,YAAY;GAAM;EACpD,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACpE,OAAO;GACL,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,QAAQ;GACN,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACF;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,kBAAkB;CACtD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM;GAAa,SAAS;GAAM,YAAY;GAAO;EAChE,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACjE,eAAe;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAC3E,oBAAoB;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EACvE;CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { StoreStatusEnum } from "./store.enum.js";
2
+ import { CreateStoreInputModel, StoreModel } from "./store.schema.js";
3
+ import { CreateStoreContract } from "./store.operations.js";
4
+ import { StoreCreatedEvent, StoreStatusChangedEvent } from "./store.event.js";
5
+ export { CreateStoreContract, CreateStoreInputModel, StoreCreatedEvent, StoreModel, StoreStatusChangedEvent, StoreStatusEnum };
@@ -0,0 +1,6 @@
1
+ import { StoreStatusEnum } from "./store.enum.js";
2
+ import { CreateStoreInputModel, StoreModel } from "./store.schema.js";
3
+ import { CreateStoreContract } from "./store.operations.js";
4
+ import { StoreCreatedEvent, StoreStatusChangedEvent } from "./store.event.js";
5
+
6
+ export { CreateStoreContract, CreateStoreInputModel, StoreCreatedEvent, StoreModel, StoreStatusChangedEvent, StoreStatusEnum };
@@ -0,0 +1,10 @@
1
+ import * as _contractspec_lib_schema1107 from "@contractspec/lib.schema";
2
+
3
+ //#region src/store/store.enum.d.ts
4
+ /**
5
+ * Store status enum.
6
+ */
7
+ declare const StoreStatusEnum: _contractspec_lib_schema1107.EnumType<[string, string, string, string]>;
8
+ //#endregion
9
+ export { StoreStatusEnum };
10
+ //# sourceMappingURL=store.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.enum.d.ts","names":[],"sources":["../../src/store/store.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,eAKX,EAAA,4BAAA,CAL0B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { defineEnum } from "@contractspec/lib.schema";
2
+
3
+ //#region src/store/store.enum.ts
4
+ /**
5
+ * Store status enum.
6
+ */
7
+ const StoreStatusEnum = defineEnum("StoreStatus", [
8
+ "PENDING",
9
+ "ACTIVE",
10
+ "SUSPENDED",
11
+ "CLOSED"
12
+ ]);
13
+
14
+ //#endregion
15
+ export { StoreStatusEnum };
16
+ //# sourceMappingURL=store.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.enum.js","names":[],"sources":["../../src/store/store.enum.ts"],"sourcesContent":["import { defineEnum } from '@contractspec/lib.schema';\n\n/**\n * Store status enum.\n */\nexport const StoreStatusEnum = defineEnum('StoreStatus', [\n 'PENDING',\n 'ACTIVE',\n 'SUSPENDED',\n 'CLOSED',\n]);\n"],"mappings":";;;;;;AAKA,MAAa,kBAAkB,WAAW,eAAe;CACvD;CACA;CACA;CACA;CACD,CAAC"}
@@ -0,0 +1,51 @@
1
+ import * as _contractspec_lib_schema1108 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts18 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/store/store.event.d.ts
5
+ declare const StoreCreatedEvent: _contractspec_lib_contracts18.EventSpec<_contractspec_lib_schema1108.SchemaModel<{
6
+ storeId: {
7
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ name: {
11
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ slug: {
15
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ ownerId: {
19
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ timestamp: {
23
+ type: _contractspec_lib_schema1108.FieldType<Date, string>;
24
+ isOptional: false;
25
+ };
26
+ }>>;
27
+ declare const StoreStatusChangedEvent: _contractspec_lib_contracts18.EventSpec<_contractspec_lib_schema1108.SchemaModel<{
28
+ storeId: {
29
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
30
+ isOptional: false;
31
+ };
32
+ previousStatus: {
33
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
34
+ isOptional: false;
35
+ };
36
+ newStatus: {
37
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ reason: {
41
+ type: _contractspec_lib_schema1108.FieldType<string, string>;
42
+ isOptional: true;
43
+ };
44
+ timestamp: {
45
+ type: _contractspec_lib_schema1108.FieldType<Date, string>;
46
+ isOptional: false;
47
+ };
48
+ }>>;
49
+ //#endregion
50
+ export { StoreCreatedEvent, StoreStatusChangedEvent };
51
+ //# sourceMappingURL=store.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.event.d.ts","names":[],"sources":["../../src/store/store.event.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,mBAAiB,6BAAA,CAAA,uCAAA;;UAU5B,4BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;;;EAV4B,CAAA;EAAA,OAAA,EAAA;IAYjB,IAAA,wCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAVkC,cAAvB,uBAAuB,EAAA,6BAAA,CAAA,SAAA,8BAAA,WAAA,CAAA;EAAA,OAAA,EAAA;UAUlC,4BAAA,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
+ import { defineEvent } from "@contractspec/lib.contracts";
3
+
4
+ //#region src/store/store.event.ts
5
+ const StoreCreatedPayload = defineSchemaModel({
6
+ name: "StoreCreatedEventPayload",
7
+ fields: {
8
+ storeId: {
9
+ type: ScalarTypeEnum.String_unsecure(),
10
+ isOptional: false
11
+ },
12
+ name: {
13
+ type: ScalarTypeEnum.String_unsecure(),
14
+ isOptional: false
15
+ },
16
+ slug: {
17
+ type: ScalarTypeEnum.String_unsecure(),
18
+ isOptional: false
19
+ },
20
+ ownerId: {
21
+ type: ScalarTypeEnum.String_unsecure(),
22
+ isOptional: false
23
+ },
24
+ timestamp: {
25
+ type: ScalarTypeEnum.DateTime(),
26
+ isOptional: false
27
+ }
28
+ }
29
+ });
30
+ const StoreStatusChangedPayload = defineSchemaModel({
31
+ name: "StoreStatusChangedEventPayload",
32
+ fields: {
33
+ storeId: {
34
+ type: ScalarTypeEnum.String_unsecure(),
35
+ isOptional: false
36
+ },
37
+ previousStatus: {
38
+ type: ScalarTypeEnum.String_unsecure(),
39
+ isOptional: false
40
+ },
41
+ newStatus: {
42
+ type: ScalarTypeEnum.String_unsecure(),
43
+ isOptional: false
44
+ },
45
+ reason: {
46
+ type: ScalarTypeEnum.String_unsecure(),
47
+ isOptional: true
48
+ },
49
+ timestamp: {
50
+ type: ScalarTypeEnum.DateTime(),
51
+ isOptional: false
52
+ }
53
+ }
54
+ });
55
+ const StoreCreatedEvent = defineEvent({
56
+ meta: {
57
+ key: "marketplace.store.created",
58
+ version: 1,
59
+ description: "A new seller store has been created.",
60
+ stability: "experimental",
61
+ owners: ["@marketplace-team"],
62
+ tags: ["marketplace", "store"]
63
+ },
64
+ payload: StoreCreatedPayload
65
+ });
66
+ const StoreStatusChangedEvent = defineEvent({
67
+ meta: {
68
+ key: "marketplace.store.statusChanged",
69
+ version: 1,
70
+ description: "A store status has changed.",
71
+ stability: "experimental",
72
+ owners: ["@marketplace-team"],
73
+ tags: ["marketplace", "store"]
74
+ },
75
+ payload: StoreStatusChangedPayload
76
+ });
77
+
78
+ //#endregion
79
+ export { StoreCreatedEvent, StoreStatusChangedEvent };
80
+ //# sourceMappingURL=store.event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.event.js","names":[],"sources":["../../src/store/store.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\nconst StoreCreatedPayload = defineSchemaModel({\n name: 'StoreCreatedEventPayload',\n fields: {\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst StoreStatusChangedPayload = defineSchemaModel({\n name: 'StoreStatusChangedEventPayload',\n fields: {\n storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n previousStatus: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n newStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const StoreCreatedEvent = defineEvent({\n meta: {\n key: 'marketplace.store.created',\n version: 1,\n description: 'A new seller store has been created.',\n stability: 'experimental',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'store'],\n },\n payload: StoreCreatedPayload,\n});\n\nexport const StoreStatusChangedEvent = defineEvent({\n meta: {\n key: 'marketplace.store.statusChanged',\n version: 1,\n description: 'A store status has changed.',\n stability: 'experimental',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'store'],\n },\n payload: StoreStatusChangedPayload,\n});\n"],"mappings":";;;;AAGA,MAAM,sBAAsB,kBAAkB;CAC5C,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,4BAA4B,kBAAkB;CAClD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACpE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,QAAQ;EAC/B;CACD,SAAS;CACV,CAAC;AAEF,MAAa,0BAA0B,YAAY;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,QAAQ;EAC/B;CACD,SAAS;CACV,CAAC"}
@@ -0,0 +1,131 @@
1
+ import * as _contractspec_lib_schema1120 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts20 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/store/store.operations.d.ts
5
+ /**
6
+ * Create a new seller store.
7
+ */
8
+ declare const CreateStoreContract: _contractspec_lib_contracts20.OperationSpec<_contractspec_lib_schema1120.SchemaModel<{
9
+ name: {
10
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ slug: {
14
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ description: {
18
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ email: {
22
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ country: {
26
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ currency: {
30
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ }>, _contractspec_lib_schema1120.SchemaModel<{
34
+ id: {
35
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ name: {
39
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ slug: {
43
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ description: {
47
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
48
+ isOptional: true;
49
+ };
50
+ status: {
51
+ type: _contractspec_lib_schema1120.EnumType<[string, string, string, string]>;
52
+ isOptional: false;
53
+ };
54
+ ownerId: {
55
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ logoFileId: {
59
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
60
+ isOptional: true;
61
+ };
62
+ isVerified: {
63
+ type: _contractspec_lib_schema1120.FieldType<boolean, boolean>;
64
+ isOptional: false;
65
+ };
66
+ totalProducts: {
67
+ type: _contractspec_lib_schema1120.FieldType<number, number>;
68
+ isOptional: false;
69
+ };
70
+ averageRating: {
71
+ type: _contractspec_lib_schema1120.FieldType<number, number>;
72
+ isOptional: false;
73
+ };
74
+ createdAt: {
75
+ type: _contractspec_lib_schema1120.FieldType<Date, string>;
76
+ isOptional: false;
77
+ };
78
+ }>, {
79
+ key: string;
80
+ version: number;
81
+ when: string;
82
+ payload: _contractspec_lib_schema1120.SchemaModel<{
83
+ id: {
84
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ name: {
88
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ slug: {
92
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ description: {
96
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
97
+ isOptional: true;
98
+ };
99
+ status: {
100
+ type: _contractspec_lib_schema1120.EnumType<[string, string, string, string]>;
101
+ isOptional: false;
102
+ };
103
+ ownerId: {
104
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ logoFileId: {
108
+ type: _contractspec_lib_schema1120.FieldType<string, string>;
109
+ isOptional: true;
110
+ };
111
+ isVerified: {
112
+ type: _contractspec_lib_schema1120.FieldType<boolean, boolean>;
113
+ isOptional: false;
114
+ };
115
+ totalProducts: {
116
+ type: _contractspec_lib_schema1120.FieldType<number, number>;
117
+ isOptional: false;
118
+ };
119
+ averageRating: {
120
+ type: _contractspec_lib_schema1120.FieldType<number, number>;
121
+ isOptional: false;
122
+ };
123
+ createdAt: {
124
+ type: _contractspec_lib_schema1120.FieldType<Date, string>;
125
+ isOptional: false;
126
+ };
127
+ }>;
128
+ }[]>;
129
+ //#endregion
130
+ export { CreateStoreContract };
131
+ //# sourceMappingURL=store.operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.operations.d.ts","names":[],"sources":["../../src/store/store.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,mDAAmB,2CAAA;EAAnB,IAAA,EAAA;IAyCX,IAAA,EAAA,4BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAzC8B,WAAA,EAAA;;;;;;;;;;;;;;;;;;UAAA,4BAAA,CAAA;;;;;;;;gDAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA"}
@@ -0,0 +1,61 @@
1
+ import { CreateStoreInputModel, StoreModel } from "./store.schema.js";
2
+ import { defineCommand } from "@contractspec/lib.contracts/operations";
3
+
4
+ //#region src/store/store.operations.ts
5
+ const OWNERS = ["@example.marketplace"];
6
+ /**
7
+ * Create a new seller store.
8
+ */
9
+ const CreateStoreContract = defineCommand({
10
+ meta: {
11
+ key: "marketplace.store.create",
12
+ version: 1,
13
+ stability: "stable",
14
+ owners: [...OWNERS],
15
+ tags: [
16
+ "marketplace",
17
+ "store",
18
+ "create"
19
+ ],
20
+ description: "Create a new seller store.",
21
+ goal: "Allow users to become sellers on the marketplace.",
22
+ context: "Seller onboarding."
23
+ },
24
+ io: {
25
+ input: CreateStoreInputModel,
26
+ output: StoreModel
27
+ },
28
+ policy: { auth: "user" },
29
+ sideEffects: {
30
+ emits: [{
31
+ key: "marketplace.store.created",
32
+ version: 1,
33
+ when: "Store is created",
34
+ payload: StoreModel
35
+ }],
36
+ audit: ["marketplace.store.created"]
37
+ },
38
+ acceptance: {
39
+ scenarios: [{
40
+ key: "create-store-happy-path",
41
+ given: ["User is authenticated"],
42
+ when: ["User creates a new store"],
43
+ then: ["Store is created", "StoreCreated event is emitted"]
44
+ }],
45
+ examples: [{
46
+ key: "create-fashion-store",
47
+ input: {
48
+ name: "Fashion Boutique",
49
+ category: "clothing"
50
+ },
51
+ output: {
52
+ id: "store-123",
53
+ status: "active"
54
+ }
55
+ }]
56
+ }
57
+ });
58
+
59
+ //#endregion
60
+ export { CreateStoreContract };
61
+ //# sourceMappingURL=store.operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.operations.js","names":[],"sources":["../../src/store/store.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts/operations';\nimport { StoreModel, CreateStoreInputModel } from './store.schema';\n\nconst OWNERS = ['@example.marketplace'] as const;\n\n/**\n * Create a new seller store.\n */\nexport const CreateStoreContract = defineCommand({\n meta: {\n key: 'marketplace.store.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['marketplace', 'store', 'create'],\n description: 'Create a new seller store.',\n goal: 'Allow users to become sellers on the marketplace.',\n context: 'Seller onboarding.',\n },\n io: { input: CreateStoreInputModel, output: StoreModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'marketplace.store.created',\n version: 1,\n when: 'Store is created',\n payload: StoreModel,\n },\n ],\n audit: ['marketplace.store.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-store-happy-path',\n given: ['User is authenticated'],\n when: ['User creates a new store'],\n then: ['Store is created', 'StoreCreated event is emitted'],\n },\n ],\n examples: [\n {\n key: 'create-fashion-store',\n input: { name: 'Fashion Boutique', category: 'clothing' },\n output: { id: 'store-123', status: 'active' },\n },\n ],\n },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,uBAAuB;;;;AAKvC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAY;CACxD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,4BAA4B;EACrC;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,oBAAoB,gCAAgC;GAC5D,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,MAAM;IAAoB,UAAU;IAAY;GACzD,QAAQ;IAAE,IAAI;IAAa,QAAQ;IAAU;GAC9C,CACF;EACF;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PresentationSpec } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/store/store.presentation.d.ts
4
+ declare const StoreProfilePresentation: PresentationSpec;
5
+ declare const SellerDashboardPresentation: PresentationSpec;
6
+ //#endregion
7
+ export { SellerDashboardPresentation, StoreProfilePresentation };
8
+ //# sourceMappingURL=store.presentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.presentation.d.ts","names":[],"sources":["../../src/store/store.presentation.ts"],"sourcesContent":[],"mappings":";;;cAIa,0BAA0B;cAyB1B,6BAA6B"}
@@ -0,0 +1,60 @@
1
+ import { StoreModel } from "./store.schema.js";
2
+ import { StabilityEnum } from "@contractspec/lib.contracts";
3
+
4
+ //#region src/store/store.presentation.ts
5
+ const StoreProfilePresentation = {
6
+ meta: {
7
+ key: "marketplace.store.profile",
8
+ version: 1,
9
+ title: "Store Profile",
10
+ description: "Public store profile page",
11
+ domain: "marketplace",
12
+ owners: ["@marketplace-team"],
13
+ tags: [
14
+ "marketplace",
15
+ "store",
16
+ "profile"
17
+ ],
18
+ stability: StabilityEnum.Experimental,
19
+ goal: "Showcase a seller store with its products and reputation.",
20
+ context: "The public landing page for a marketplace seller."
21
+ },
22
+ source: {
23
+ type: "component",
24
+ framework: "react",
25
+ componentKey: "StoreProfile",
26
+ props: StoreModel
27
+ },
28
+ targets: ["react", "markdown"],
29
+ policy: { flags: ["marketplace.stores.enabled"] }
30
+ };
31
+ const SellerDashboardPresentation = {
32
+ meta: {
33
+ key: "marketplace.seller.dashboard",
34
+ version: 1,
35
+ title: "Seller Dashboard",
36
+ description: "Seller dashboard with sales and analytics",
37
+ domain: "marketplace",
38
+ owners: ["@marketplace-team"],
39
+ tags: [
40
+ "marketplace",
41
+ "seller",
42
+ "dashboard"
43
+ ],
44
+ stability: StabilityEnum.Experimental,
45
+ goal: "Provide sellers with an overview of their business performance.",
46
+ context: "The primary workspace for store owners."
47
+ },
48
+ source: {
49
+ type: "component",
50
+ framework: "react",
51
+ componentKey: "SellerDashboard",
52
+ props: StoreModel
53
+ },
54
+ targets: ["react"],
55
+ policy: { flags: ["marketplace.seller.enabled"] }
56
+ };
57
+
58
+ //#endregion
59
+ export { SellerDashboardPresentation, StoreProfilePresentation };
60
+ //# sourceMappingURL=store.presentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.presentation.js","names":["StoreProfilePresentation: PresentationSpec","SellerDashboardPresentation: PresentationSpec"],"sources":["../../src/store/store.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { StoreModel } from './store.schema';\n\nexport const StoreProfilePresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.store.profile',\n version: 1,\n title: 'Store Profile',\n description: 'Public store profile page',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'store', 'profile'],\n stability: StabilityEnum.Experimental,\n goal: 'Showcase a seller store with its products and reputation.',\n context: 'The public landing page for a marketplace seller.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'StoreProfile',\n props: StoreModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.stores.enabled'],\n },\n};\n\nexport const SellerDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.seller.dashboard',\n version: 1,\n title: 'Seller Dashboard',\n description: 'Seller dashboard with sales and analytics',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'seller', 'dashboard'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide sellers with an overview of their business performance.',\n context: 'The primary workspace for store owners.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SellerDashboard',\n props: StoreModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.seller.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAU;EACzC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF;AAED,MAAaC,8BAAgD;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAY;EAC5C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF"}