@contractspec/example.marketplace 1.56.1 → 1.58.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 (302) hide show
  1. package/dist/browser/docs/index.js +103 -0
  2. package/dist/browser/docs/marketplace.docblock.js +103 -0
  3. package/dist/browser/entities/index.js +721 -0
  4. package/dist/browser/entities/order.js +167 -0
  5. package/dist/browser/entities/payout.js +142 -0
  6. package/dist/browser/entities/product.js +152 -0
  7. package/dist/browser/entities/review.js +129 -0
  8. package/dist/browser/entities/store.js +97 -0
  9. package/dist/browser/example.js +42 -0
  10. package/dist/browser/handlers/index.js +303 -0
  11. package/dist/browser/handlers/marketplace.handlers.js +303 -0
  12. package/dist/browser/index.js +2016 -0
  13. package/dist/browser/marketplace.capability.js +40 -0
  14. package/dist/browser/marketplace.feature.js +137 -0
  15. package/dist/browser/order/index.js +307 -0
  16. package/dist/browser/order/order.enum.js +17 -0
  17. package/dist/browser/order/order.event.js +131 -0
  18. package/dist/browser/order/order.operations.js +172 -0
  19. package/dist/browser/order/order.presentation.js +153 -0
  20. package/dist/browser/order/order.schema.js +79 -0
  21. package/dist/browser/payout/index.js +152 -0
  22. package/dist/browser/payout/payout.enum.js +12 -0
  23. package/dist/browser/payout/payout.event.js +55 -0
  24. package/dist/browser/payout/payout.operations.js +94 -0
  25. package/dist/browser/payout/payout.presentation.js +111 -0
  26. package/dist/browser/payout/payout.schema.js +61 -0
  27. package/dist/browser/product/index.js +249 -0
  28. package/dist/browser/product/product.enum.js +13 -0
  29. package/dist/browser/product/product.event.js +74 -0
  30. package/dist/browser/product/product.operations.js +171 -0
  31. package/dist/browser/product/product.presentation.js +158 -0
  32. package/dist/browser/product/product.schema.js +84 -0
  33. package/dist/browser/review/index.js +206 -0
  34. package/dist/browser/review/review.enum.js +11 -0
  35. package/dist/browser/review/review.event.js +50 -0
  36. package/dist/browser/review/review.operations.js +152 -0
  37. package/dist/browser/review/review.presentation.js +123 -0
  38. package/dist/browser/review/review.schema.js +74 -0
  39. package/dist/browser/seeders/index.js +12 -0
  40. package/dist/browser/store/index.js +142 -0
  41. package/dist/browser/store/store.enum.js +11 -0
  42. package/dist/browser/store/store.event.js +52 -0
  43. package/dist/browser/store/store.operations.js +88 -0
  44. package/dist/browser/store/store.presentation.js +94 -0
  45. package/dist/browser/store/store.schema.js +43 -0
  46. package/dist/browser/tests/operations.test-spec.js +139 -0
  47. package/dist/browser/ui/MarketplaceDashboard.js +418 -0
  48. package/dist/browser/ui/hooks/index.js +59 -0
  49. package/dist/browser/ui/hooks/useMarketplaceData.js +56 -0
  50. package/dist/browser/ui/index.js +668 -0
  51. package/dist/browser/ui/renderers/index.js +248 -0
  52. package/dist/browser/ui/renderers/marketplace.markdown.js +248 -0
  53. package/dist/docs/index.d.ts +2 -1
  54. package/dist/docs/index.d.ts.map +1 -0
  55. package/dist/docs/index.js +104 -1
  56. package/dist/docs/marketplace.docblock.d.ts +2 -1
  57. package/dist/docs/marketplace.docblock.d.ts.map +1 -0
  58. package/dist/docs/marketplace.docblock.js +46 -57
  59. package/dist/entities/index.d.ts +302 -307
  60. package/dist/entities/index.d.ts.map +1 -1
  61. package/dist/entities/index.js +719 -43
  62. package/dist/entities/order.d.ts +77 -82
  63. package/dist/entities/order.d.ts.map +1 -1
  64. package/dist/entities/order.js +162 -167
  65. package/dist/entities/payout.d.ts +64 -69
  66. package/dist/entities/payout.d.ts.map +1 -1
  67. package/dist/entities/payout.js +137 -156
  68. package/dist/entities/product.d.ts +69 -74
  69. package/dist/entities/product.d.ts.map +1 -1
  70. package/dist/entities/product.js +148 -156
  71. package/dist/entities/review.d.ts +55 -60
  72. package/dist/entities/review.d.ts.map +1 -1
  73. package/dist/entities/review.js +124 -146
  74. package/dist/entities/store.d.ts +40 -45
  75. package/dist/entities/store.d.ts.map +1 -1
  76. package/dist/entities/store.js +94 -106
  77. package/dist/example.d.ts +2 -6
  78. package/dist/example.d.ts.map +1 -1
  79. package/dist/example.js +40 -55
  80. package/dist/handlers/index.d.ts +2 -2
  81. package/dist/handlers/index.d.ts.map +1 -0
  82. package/dist/handlers/index.js +304 -3
  83. package/dist/handlers/marketplace.handlers.d.ts +138 -138
  84. package/dist/handlers/marketplace.handlers.d.ts.map +1 -1
  85. package/dist/handlers/marketplace.handlers.js +284 -309
  86. package/dist/index.d.ts +13 -31
  87. package/dist/index.d.ts.map +1 -0
  88. package/dist/index.js +2017 -32
  89. package/dist/marketplace.capability.d.ts +3 -8
  90. package/dist/marketplace.capability.d.ts.map +1 -1
  91. package/dist/marketplace.capability.js +41 -34
  92. package/dist/marketplace.feature.d.ts +1 -7
  93. package/dist/marketplace.feature.d.ts.map +1 -1
  94. package/dist/marketplace.feature.js +136 -313
  95. package/dist/node/docs/index.js +103 -0
  96. package/dist/node/docs/marketplace.docblock.js +103 -0
  97. package/dist/node/entities/index.js +721 -0
  98. package/dist/node/entities/order.js +167 -0
  99. package/dist/node/entities/payout.js +142 -0
  100. package/dist/node/entities/product.js +152 -0
  101. package/dist/node/entities/review.js +129 -0
  102. package/dist/node/entities/store.js +97 -0
  103. package/dist/node/example.js +42 -0
  104. package/dist/node/handlers/index.js +303 -0
  105. package/dist/node/handlers/marketplace.handlers.js +303 -0
  106. package/dist/node/index.js +2016 -0
  107. package/dist/node/marketplace.capability.js +40 -0
  108. package/dist/node/marketplace.feature.js +137 -0
  109. package/dist/node/order/index.js +307 -0
  110. package/dist/node/order/order.enum.js +17 -0
  111. package/dist/node/order/order.event.js +131 -0
  112. package/dist/node/order/order.operations.js +172 -0
  113. package/dist/node/order/order.presentation.js +153 -0
  114. package/dist/node/order/order.schema.js +79 -0
  115. package/dist/node/payout/index.js +152 -0
  116. package/dist/node/payout/payout.enum.js +12 -0
  117. package/dist/node/payout/payout.event.js +55 -0
  118. package/dist/node/payout/payout.operations.js +94 -0
  119. package/dist/node/payout/payout.presentation.js +111 -0
  120. package/dist/node/payout/payout.schema.js +61 -0
  121. package/dist/node/product/index.js +249 -0
  122. package/dist/node/product/product.enum.js +13 -0
  123. package/dist/node/product/product.event.js +74 -0
  124. package/dist/node/product/product.operations.js +171 -0
  125. package/dist/node/product/product.presentation.js +158 -0
  126. package/dist/node/product/product.schema.js +84 -0
  127. package/dist/node/review/index.js +206 -0
  128. package/dist/node/review/review.enum.js +11 -0
  129. package/dist/node/review/review.event.js +50 -0
  130. package/dist/node/review/review.operations.js +152 -0
  131. package/dist/node/review/review.presentation.js +123 -0
  132. package/dist/node/review/review.schema.js +74 -0
  133. package/dist/node/seeders/index.js +12 -0
  134. package/dist/node/store/index.js +142 -0
  135. package/dist/node/store/store.enum.js +11 -0
  136. package/dist/node/store/store.event.js +52 -0
  137. package/dist/node/store/store.operations.js +88 -0
  138. package/dist/node/store/store.presentation.js +94 -0
  139. package/dist/node/store/store.schema.js +43 -0
  140. package/dist/node/tests/operations.test-spec.js +139 -0
  141. package/dist/node/ui/MarketplaceDashboard.js +418 -0
  142. package/dist/node/ui/hooks/index.js +59 -0
  143. package/dist/node/ui/hooks/useMarketplaceData.js +56 -0
  144. package/dist/node/ui/index.js +668 -0
  145. package/dist/node/ui/renderers/index.js +248 -0
  146. package/dist/node/ui/renderers/marketplace.markdown.js +248 -0
  147. package/dist/order/index.d.ts +8 -5
  148. package/dist/order/index.d.ts.map +1 -0
  149. package/dist/order/index.js +307 -5
  150. package/dist/order/order.enum.d.ts +1 -6
  151. package/dist/order/order.enum.d.ts.map +1 -1
  152. package/dist/order/order.enum.js +16 -20
  153. package/dist/order/order.event.d.ts +133 -139
  154. package/dist/order/order.event.d.ts.map +1 -1
  155. package/dist/order/order.event.js +121 -205
  156. package/dist/order/order.operations.d.ts +291 -297
  157. package/dist/order/order.operations.d.ts.map +1 -1
  158. package/dist/order/order.operations.js +169 -115
  159. package/dist/order/order.presentation.d.ts +3 -8
  160. package/dist/order/order.presentation.d.ts.map +1 -1
  161. package/dist/order/order.presentation.js +149 -81
  162. package/dist/order/order.schema.d.ts +143 -148
  163. package/dist/order/order.schema.d.ts.map +1 -1
  164. package/dist/order/order.schema.js +75 -150
  165. package/dist/payout/index.d.ts +8 -5
  166. package/dist/payout/index.d.ts.map +1 -0
  167. package/dist/payout/index.js +152 -5
  168. package/dist/payout/payout.enum.d.ts +1 -6
  169. package/dist/payout/payout.enum.d.ts.map +1 -1
  170. package/dist/payout/payout.enum.js +11 -15
  171. package/dist/payout/payout.event.d.ts +54 -60
  172. package/dist/payout/payout.event.d.ts.map +1 -1
  173. package/dist/payout/payout.event.js +51 -87
  174. package/dist/payout/payout.operations.d.ts +82 -88
  175. package/dist/payout/payout.operations.d.ts.map +1 -1
  176. package/dist/payout/payout.operations.js +92 -50
  177. package/dist/payout/payout.presentation.d.ts +2 -7
  178. package/dist/payout/payout.presentation.d.ts.map +1 -1
  179. package/dist/payout/payout.presentation.js +108 -56
  180. package/dist/payout/payout.schema.d.ts +139 -144
  181. package/dist/payout/payout.schema.d.ts.map +1 -1
  182. package/dist/payout/payout.schema.js +58 -112
  183. package/dist/product/index.d.ts +8 -5
  184. package/dist/product/index.d.ts.map +1 -0
  185. package/dist/product/index.js +249 -5
  186. package/dist/product/product.enum.d.ts +1 -6
  187. package/dist/product/product.enum.d.ts.map +1 -1
  188. package/dist/product/product.enum.js +12 -16
  189. package/dist/product/product.event.d.ts +63 -69
  190. package/dist/product/product.event.d.ts.map +1 -1
  191. package/dist/product/product.event.js +68 -113
  192. package/dist/product/product.operations.d.ts +225 -231
  193. package/dist/product/product.operations.d.ts.map +1 -1
  194. package/dist/product/product.operations.js +168 -104
  195. package/dist/product/product.presentation.d.ts +3 -8
  196. package/dist/product/product.presentation.d.ts.map +1 -1
  197. package/dist/product/product.presentation.js +154 -81
  198. package/dist/product/product.schema.d.ts +196 -201
  199. package/dist/product/product.schema.d.ts.map +1 -1
  200. package/dist/product/product.schema.js +80 -171
  201. package/dist/review/index.d.ts +8 -5
  202. package/dist/review/index.d.ts.map +1 -0
  203. package/dist/review/index.js +206 -5
  204. package/dist/review/review.enum.d.ts +1 -6
  205. package/dist/review/review.enum.d.ts.map +1 -1
  206. package/dist/review/review.enum.js +10 -14
  207. package/dist/review/review.event.d.ts +46 -52
  208. package/dist/review/review.event.d.ts.map +1 -1
  209. package/dist/review/review.event.js +46 -79
  210. package/dist/review/review.operations.d.ts +190 -196
  211. package/dist/review/review.operations.d.ts.map +1 -1
  212. package/dist/review/review.operations.js +149 -102
  213. package/dist/review/review.presentation.d.ts +2 -7
  214. package/dist/review/review.presentation.d.ts.map +1 -1
  215. package/dist/review/review.presentation.js +120 -56
  216. package/dist/review/review.schema.d.ts +164 -169
  217. package/dist/review/review.schema.d.ts.map +1 -1
  218. package/dist/review/review.schema.js +70 -151
  219. package/dist/seeders/index.d.ts +4 -8
  220. package/dist/seeders/index.d.ts.map +1 -1
  221. package/dist/seeders/index.js +11 -16
  222. package/dist/store/index.d.ts +8 -5
  223. package/dist/store/index.d.ts.map +1 -0
  224. package/dist/store/index.js +142 -5
  225. package/dist/store/store.enum.d.ts +1 -6
  226. package/dist/store/store.enum.d.ts.map +1 -1
  227. package/dist/store/store.enum.js +10 -14
  228. package/dist/store/store.event.d.ts +42 -48
  229. package/dist/store/store.event.d.ts.map +1 -1
  230. package/dist/store/store.event.js +48 -75
  231. package/dist/store/store.operations.d.ts +98 -104
  232. package/dist/store/store.operations.d.ts.map +1 -1
  233. package/dist/store/store.operations.js +86 -58
  234. package/dist/store/store.presentation.d.ts +2 -7
  235. package/dist/store/store.presentation.d.ts.map +1 -1
  236. package/dist/store/store.presentation.js +91 -56
  237. package/dist/store/store.schema.d.ts +70 -75
  238. package/dist/store/store.schema.d.ts.map +1 -1
  239. package/dist/store/store.schema.js +41 -90
  240. package/dist/tests/operations.test-spec.d.ts +5 -10
  241. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  242. package/dist/tests/operations.test-spec.js +134 -146
  243. package/dist/ui/MarketplaceDashboard.d.ts +1 -6
  244. package/dist/ui/MarketplaceDashboard.d.ts.map +1 -1
  245. package/dist/ui/MarketplaceDashboard.js +413 -313
  246. package/dist/ui/hooks/index.d.ts +2 -2
  247. package/dist/ui/hooks/index.d.ts.map +1 -0
  248. package/dist/ui/hooks/index.js +59 -4
  249. package/dist/ui/hooks/useMarketplaceData.d.ts +16 -20
  250. package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -1
  251. package/dist/ui/hooks/useMarketplaceData.js +53 -60
  252. package/dist/ui/index.d.ts +7 -6
  253. package/dist/ui/index.d.ts.map +1 -0
  254. package/dist/ui/index.js +668 -5
  255. package/dist/ui/renderers/index.d.ts +2 -2
  256. package/dist/ui/renderers/index.d.ts.map +1 -0
  257. package/dist/ui/renderers/index.js +249 -3
  258. package/dist/ui/renderers/marketplace.markdown.d.ts +13 -15
  259. package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -1
  260. package/dist/ui/renderers/marketplace.markdown.js +241 -236
  261. package/package.json +529 -110
  262. package/dist/docs/marketplace.docblock.js.map +0 -1
  263. package/dist/entities/index.js.map +0 -1
  264. package/dist/entities/order.js.map +0 -1
  265. package/dist/entities/payout.js.map +0 -1
  266. package/dist/entities/product.js.map +0 -1
  267. package/dist/entities/review.js.map +0 -1
  268. package/dist/entities/store.js.map +0 -1
  269. package/dist/example.js.map +0 -1
  270. package/dist/handlers/marketplace.handlers.js.map +0 -1
  271. package/dist/marketplace.capability.js.map +0 -1
  272. package/dist/marketplace.feature.js.map +0 -1
  273. package/dist/order/order.enum.js.map +0 -1
  274. package/dist/order/order.event.js.map +0 -1
  275. package/dist/order/order.operations.js.map +0 -1
  276. package/dist/order/order.presentation.js.map +0 -1
  277. package/dist/order/order.schema.js.map +0 -1
  278. package/dist/payout/payout.enum.js.map +0 -1
  279. package/dist/payout/payout.event.js.map +0 -1
  280. package/dist/payout/payout.operations.js.map +0 -1
  281. package/dist/payout/payout.presentation.js.map +0 -1
  282. package/dist/payout/payout.schema.js.map +0 -1
  283. package/dist/product/product.enum.js.map +0 -1
  284. package/dist/product/product.event.js.map +0 -1
  285. package/dist/product/product.operations.js.map +0 -1
  286. package/dist/product/product.presentation.js.map +0 -1
  287. package/dist/product/product.schema.js.map +0 -1
  288. package/dist/review/review.enum.js.map +0 -1
  289. package/dist/review/review.event.js.map +0 -1
  290. package/dist/review/review.operations.js.map +0 -1
  291. package/dist/review/review.presentation.js.map +0 -1
  292. package/dist/review/review.schema.js.map +0 -1
  293. package/dist/seeders/index.js.map +0 -1
  294. package/dist/store/store.enum.js.map +0 -1
  295. package/dist/store/store.event.js.map +0 -1
  296. package/dist/store/store.operations.js.map +0 -1
  297. package/dist/store/store.presentation.js.map +0 -1
  298. package/dist/store/store.schema.js.map +0 -1
  299. package/dist/tests/operations.test-spec.js.map +0 -1
  300. package/dist/ui/MarketplaceDashboard.js.map +0 -1
  301. package/dist/ui/hooks/useMarketplaceData.js.map +0 -1
  302. package/dist/ui/renderers/marketplace.markdown.js.map +0 -1
@@ -1,84 +1,51 @@
1
- import { defineEvent } from "@contractspec/lib.contracts";
1
+ // @bun
2
+ // src/review/review.event.ts
2
3
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
-
4
- //#region src/review/review.event.ts
5
- const ReviewCreatedPayload = defineSchemaModel({
6
- name: "ReviewCreatedEventPayload",
7
- fields: {
8
- reviewId: {
9
- type: ScalarTypeEnum.String_unsecure(),
10
- isOptional: false
11
- },
12
- productId: {
13
- type: ScalarTypeEnum.String_unsecure(),
14
- isOptional: true
15
- },
16
- storeId: {
17
- type: ScalarTypeEnum.String_unsecure(),
18
- isOptional: true
19
- },
20
- authorId: {
21
- type: ScalarTypeEnum.String_unsecure(),
22
- isOptional: false
23
- },
24
- rating: {
25
- type: ScalarTypeEnum.Int_unsecure(),
26
- isOptional: false
27
- },
28
- isVerifiedPurchase: {
29
- type: ScalarTypeEnum.Boolean(),
30
- isOptional: false
31
- },
32
- timestamp: {
33
- type: ScalarTypeEnum.DateTime(),
34
- isOptional: false
35
- }
36
- }
4
+ import { defineEvent } from "@contractspec/lib.contracts";
5
+ var ReviewCreatedPayload = defineSchemaModel({
6
+ name: "ReviewCreatedEventPayload",
7
+ fields: {
8
+ reviewId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
9
+ productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
10
+ storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
11
+ authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
12
+ rating: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
13
+ isVerifiedPurchase: { type: ScalarTypeEnum.Boolean(), isOptional: false },
14
+ timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false }
15
+ }
37
16
  });
38
- const ReviewRespondedPayload = defineSchemaModel({
39
- name: "ReviewRespondedEventPayload",
40
- fields: {
41
- reviewId: {
42
- type: ScalarTypeEnum.String_unsecure(),
43
- isOptional: false
44
- },
45
- responseId: {
46
- type: ScalarTypeEnum.String_unsecure(),
47
- isOptional: false
48
- },
49
- authorId: {
50
- type: ScalarTypeEnum.String_unsecure(),
51
- isOptional: false
52
- },
53
- timestamp: {
54
- type: ScalarTypeEnum.DateTime(),
55
- isOptional: false
56
- }
57
- }
17
+ var ReviewRespondedPayload = defineSchemaModel({
18
+ name: "ReviewRespondedEventPayload",
19
+ fields: {
20
+ reviewId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
21
+ responseId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
22
+ authorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
23
+ timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false }
24
+ }
58
25
  });
59
- const ReviewCreatedEvent = defineEvent({
60
- meta: {
61
- key: "marketplace.review.created",
62
- version: "1.0.0",
63
- description: "A review has been created.",
64
- stability: "experimental",
65
- owners: ["@marketplace-team"],
66
- tags: ["marketplace", "review"]
67
- },
68
- payload: ReviewCreatedPayload
26
+ var ReviewCreatedEvent = defineEvent({
27
+ meta: {
28
+ key: "marketplace.review.created",
29
+ version: "1.0.0",
30
+ description: "A review has been created.",
31
+ stability: "experimental",
32
+ owners: ["@marketplace-team"],
33
+ tags: ["marketplace", "review"]
34
+ },
35
+ payload: ReviewCreatedPayload
69
36
  });
70
- const ReviewRespondedEvent = defineEvent({
71
- meta: {
72
- key: "marketplace.review.responded",
73
- version: "1.0.0",
74
- description: "A seller has responded to a review.",
75
- stability: "experimental",
76
- owners: ["@marketplace-team"],
77
- tags: ["marketplace", "review"]
78
- },
79
- payload: ReviewRespondedPayload
37
+ var ReviewRespondedEvent = defineEvent({
38
+ meta: {
39
+ key: "marketplace.review.responded",
40
+ version: "1.0.0",
41
+ description: "A seller has responded to a review.",
42
+ stability: "experimental",
43
+ owners: ["@marketplace-team"],
44
+ tags: ["marketplace", "review"]
45
+ },
46
+ payload: ReviewRespondedPayload
80
47
  });
81
-
82
- //#endregion
83
- export { ReviewCreatedEvent, ReviewRespondedEvent };
84
- //# sourceMappingURL=review.event.js.map
48
+ export {
49
+ ReviewRespondedEvent,
50
+ ReviewCreatedEvent
51
+ };
@@ -1,237 +1,231 @@
1
- import * as _contractspec_lib_contracts24 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema922 from "@contractspec/lib.schema";
3
-
4
- //#region src/review/review.operations.d.ts
5
1
  /**
6
2
  * Create a product/store review.
7
3
  */
8
- declare const CreateReviewContract: _contractspec_lib_contracts24.OperationSpec<_contractspec_lib_schema922.SchemaModel<{
9
- productId: {
10
- type: _contractspec_lib_schema922.FieldType<string, string>;
11
- isOptional: true;
12
- };
13
- storeId: {
14
- type: _contractspec_lib_schema922.FieldType<string, string>;
15
- isOptional: true;
16
- };
17
- orderId: {
18
- type: _contractspec_lib_schema922.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- rating: {
22
- type: _contractspec_lib_schema922.FieldType<number, number>;
23
- isOptional: false;
24
- };
25
- title: {
26
- type: _contractspec_lib_schema922.FieldType<string, string>;
27
- isOptional: true;
28
- };
29
- content: {
30
- type: _contractspec_lib_schema922.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- }>, _contractspec_lib_schema922.SchemaModel<{
34
- id: {
35
- type: _contractspec_lib_schema922.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- productId: {
39
- type: _contractspec_lib_schema922.FieldType<string, string>;
40
- isOptional: true;
41
- };
42
- storeId: {
43
- type: _contractspec_lib_schema922.FieldType<string, string>;
44
- isOptional: true;
45
- };
46
- authorId: {
47
- type: _contractspec_lib_schema922.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- rating: {
51
- type: _contractspec_lib_schema922.FieldType<number, number>;
52
- isOptional: false;
53
- };
54
- title: {
55
- type: _contractspec_lib_schema922.FieldType<string, string>;
56
- isOptional: true;
57
- };
58
- content: {
59
- type: _contractspec_lib_schema922.FieldType<string, string>;
60
- isOptional: true;
61
- };
62
- status: {
63
- type: _contractspec_lib_schema922.EnumType<[string, string, string, string]>;
64
- isOptional: false;
65
- };
66
- isVerifiedPurchase: {
67
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
68
- isOptional: false;
69
- };
70
- helpfulCount: {
71
- type: _contractspec_lib_schema922.FieldType<number, number>;
72
- isOptional: false;
73
- };
74
- hasResponse: {
75
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
76
- isOptional: false;
77
- };
78
- createdAt: {
79
- type: _contractspec_lib_schema922.FieldType<Date, string>;
80
- isOptional: false;
81
- };
82
- }>, {
83
- key: string;
84
- version: string;
85
- when: string;
86
- payload: _contractspec_lib_schema922.SchemaModel<{
4
+ export declare const CreateReviewContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ productId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: true;
8
+ };
9
+ storeId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: true;
12
+ };
13
+ orderId: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: true;
16
+ };
17
+ rating: {
18
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
19
+ isOptional: false;
20
+ };
21
+ title: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ content: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ }>, import("@contractspec/lib.schema").SchemaModel<{
87
30
  id: {
88
- type: _contractspec_lib_schema922.FieldType<string, string>;
89
- isOptional: false;
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
90
33
  };
91
34
  productId: {
92
- type: _contractspec_lib_schema922.FieldType<string, string>;
93
- isOptional: true;
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: true;
94
37
  };
95
38
  storeId: {
96
- type: _contractspec_lib_schema922.FieldType<string, string>;
97
- isOptional: true;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: true;
98
41
  };
99
42
  authorId: {
100
- type: _contractspec_lib_schema922.FieldType<string, string>;
101
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
102
45
  };
103
46
  rating: {
104
- type: _contractspec_lib_schema922.FieldType<number, number>;
105
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
48
+ isOptional: false;
106
49
  };
107
50
  title: {
108
- type: _contractspec_lib_schema922.FieldType<string, string>;
109
- isOptional: true;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: true;
110
53
  };
111
54
  content: {
112
- type: _contractspec_lib_schema922.FieldType<string, string>;
113
- isOptional: true;
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
56
+ isOptional: true;
114
57
  };
115
58
  status: {
116
- type: _contractspec_lib_schema922.EnumType<[string, string, string, string]>;
117
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
60
+ isOptional: false;
118
61
  };
119
62
  isVerifiedPurchase: {
120
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
121
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
64
+ isOptional: false;
122
65
  };
123
66
  helpfulCount: {
124
- type: _contractspec_lib_schema922.FieldType<number, number>;
125
- isOptional: false;
67
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
68
+ isOptional: false;
126
69
  };
127
70
  hasResponse: {
128
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
129
- isOptional: false;
71
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
72
+ isOptional: false;
130
73
  };
131
74
  createdAt: {
132
- type: _contractspec_lib_schema922.FieldType<Date, string>;
133
- isOptional: false;
75
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
76
+ isOptional: false;
134
77
  };
135
- }>;
78
+ }>, {
79
+ key: string;
80
+ version: string;
81
+ when: string;
82
+ payload: import("@contractspec/lib.schema").SchemaModel<{
83
+ id: {
84
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ productId: {
88
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
89
+ isOptional: true;
90
+ };
91
+ storeId: {
92
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ authorId: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ rating: {
100
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
101
+ isOptional: false;
102
+ };
103
+ title: {
104
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
105
+ isOptional: true;
106
+ };
107
+ content: {
108
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
109
+ isOptional: true;
110
+ };
111
+ status: {
112
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
113
+ isOptional: false;
114
+ };
115
+ isVerifiedPurchase: {
116
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
117
+ isOptional: false;
118
+ };
119
+ helpfulCount: {
120
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
121
+ isOptional: false;
122
+ };
123
+ hasResponse: {
124
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
125
+ isOptional: false;
126
+ };
127
+ createdAt: {
128
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
129
+ isOptional: false;
130
+ };
131
+ }>;
136
132
  }[]>;
137
133
  /**
138
134
  * List reviews with filters.
139
135
  */
140
- declare const ListReviewsContract: _contractspec_lib_contracts24.OperationSpec<_contractspec_lib_schema922.SchemaModel<{
141
- productId: {
142
- type: _contractspec_lib_schema922.FieldType<string, string>;
143
- isOptional: true;
144
- };
145
- storeId: {
146
- type: _contractspec_lib_schema922.FieldType<string, string>;
147
- isOptional: true;
148
- };
149
- status: {
150
- type: _contractspec_lib_schema922.EnumType<[string, string, string, string]>;
151
- isOptional: true;
152
- };
153
- minRating: {
154
- type: _contractspec_lib_schema922.FieldType<number, number>;
155
- isOptional: true;
156
- };
157
- limit: {
158
- type: _contractspec_lib_schema922.FieldType<number, number>;
159
- isOptional: true;
160
- defaultValue: number;
161
- };
162
- offset: {
163
- type: _contractspec_lib_schema922.FieldType<number, number>;
164
- isOptional: true;
165
- defaultValue: number;
166
- };
167
- }>, _contractspec_lib_schema922.SchemaModel<{
168
- reviews: {
169
- type: _contractspec_lib_schema922.SchemaModel<{
170
- id: {
171
- type: _contractspec_lib_schema922.FieldType<string, string>;
172
- isOptional: false;
173
- };
174
- productId: {
175
- type: _contractspec_lib_schema922.FieldType<string, string>;
136
+ export declare const ListReviewsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
137
+ productId: {
138
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
176
139
  isOptional: true;
177
- };
178
- storeId: {
179
- type: _contractspec_lib_schema922.FieldType<string, string>;
140
+ };
141
+ storeId: {
142
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
180
143
  isOptional: true;
181
- };
182
- authorId: {
183
- type: _contractspec_lib_schema922.FieldType<string, string>;
184
- isOptional: false;
185
- };
186
- rating: {
187
- type: _contractspec_lib_schema922.FieldType<number, number>;
188
- isOptional: false;
189
- };
190
- title: {
191
- type: _contractspec_lib_schema922.FieldType<string, string>;
144
+ };
145
+ status: {
146
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
192
147
  isOptional: true;
193
- };
194
- content: {
195
- type: _contractspec_lib_schema922.FieldType<string, string>;
148
+ };
149
+ minRating: {
150
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
196
151
  isOptional: true;
197
- };
198
- status: {
199
- type: _contractspec_lib_schema922.EnumType<[string, string, string, string]>;
200
- isOptional: false;
201
- };
202
- isVerifiedPurchase: {
203
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
152
+ };
153
+ limit: {
154
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
155
+ isOptional: true;
156
+ defaultValue: number;
157
+ };
158
+ offset: {
159
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
160
+ isOptional: true;
161
+ defaultValue: number;
162
+ };
163
+ }>, import("@contractspec/lib.schema").SchemaModel<{
164
+ reviews: {
165
+ type: import("@contractspec/lib.schema").SchemaModel<{
166
+ id: {
167
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
168
+ isOptional: false;
169
+ };
170
+ productId: {
171
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
172
+ isOptional: true;
173
+ };
174
+ storeId: {
175
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
176
+ isOptional: true;
177
+ };
178
+ authorId: {
179
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
180
+ isOptional: false;
181
+ };
182
+ rating: {
183
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
184
+ isOptional: false;
185
+ };
186
+ title: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: true;
189
+ };
190
+ content: {
191
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
192
+ isOptional: true;
193
+ };
194
+ status: {
195
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
196
+ isOptional: false;
197
+ };
198
+ isVerifiedPurchase: {
199
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
200
+ isOptional: false;
201
+ };
202
+ helpfulCount: {
203
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
204
+ isOptional: false;
205
+ };
206
+ hasResponse: {
207
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
208
+ isOptional: false;
209
+ };
210
+ createdAt: {
211
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
212
+ isOptional: false;
213
+ };
214
+ }>;
215
+ isArray: true;
204
216
  isOptional: false;
205
- };
206
- helpfulCount: {
207
- type: _contractspec_lib_schema922.FieldType<number, number>;
217
+ };
218
+ total: {
219
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
208
220
  isOptional: false;
209
- };
210
- hasResponse: {
211
- type: _contractspec_lib_schema922.FieldType<boolean, boolean>;
221
+ };
222
+ averageRating: {
223
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
212
224
  isOptional: false;
213
- };
214
- createdAt: {
215
- type: _contractspec_lib_schema922.FieldType<Date, string>;
225
+ };
226
+ ratingDistribution: {
227
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
216
228
  isOptional: false;
217
- };
218
- }>;
219
- isArray: true;
220
- isOptional: false;
221
- };
222
- total: {
223
- type: _contractspec_lib_schema922.FieldType<number, number>;
224
- isOptional: false;
225
- };
226
- averageRating: {
227
- type: _contractspec_lib_schema922.FieldType<number, number>;
228
- isOptional: false;
229
- };
230
- ratingDistribution: {
231
- type: _contractspec_lib_schema922.FieldType<unknown, unknown>;
232
- isOptional: false;
233
- };
229
+ };
234
230
  }>, undefined>;
235
- //#endregion
236
- export { CreateReviewContract, ListReviewsContract };
237
231
  //# sourceMappingURL=review.operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"review.operations.d.ts","names":[],"sources":["../../src/review/review.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAgBa,oDAAoB,0CAAA;EAApB,SAAA,EAAA;IAyCX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAzC+B,OAAA,EAAA;;;;;;;;;;;;;;;;;;UAAA,2BAAA,CAAA;;;;;;;;;;;EAAA,QAAA,EAAA;IA8CpB,IAAA,uCA8BX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IA9B8B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;EAAA,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAnB,mDAAmB,0CAAA;;UA8B9B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9B8B,2BAAA,CAAA"}
1
+ {"version":3,"file":"review.operations.d.ts","sourceRoot":"","sources":["../../src/review/review.operations.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyC/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8B9B,CAAC"}