@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,368 +1,362 @@
1
- import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema637 from "@contractspec/lib.schema";
3
-
4
- //#region src/order/order.operations.d.ts
5
1
  /**
6
2
  * Create a new order.
7
3
  */
8
- declare const CreateOrderContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema637.SchemaModel<{
9
- storeId: {
10
- type: _contractspec_lib_schema637.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- items: {
14
- type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
15
- isOptional: false;
16
- description: string;
17
- };
18
- shippingAddress: {
19
- type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
20
- isOptional: true;
21
- };
22
- billingAddress: {
23
- type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
24
- isOptional: true;
25
- };
26
- buyerNote: {
27
- type: _contractspec_lib_schema637.FieldType<string, string>;
28
- isOptional: true;
29
- };
30
- }>, _contractspec_lib_schema637.SchemaModel<{
31
- id: {
32
- type: _contractspec_lib_schema637.FieldType<string, string>;
33
- isOptional: false;
34
- };
35
- orderNumber: {
36
- type: _contractspec_lib_schema637.FieldType<string, string>;
37
- isOptional: false;
38
- };
39
- buyerId: {
40
- type: _contractspec_lib_schema637.FieldType<string, string>;
41
- isOptional: false;
42
- };
43
- storeId: {
44
- type: _contractspec_lib_schema637.FieldType<string, string>;
45
- isOptional: false;
46
- };
47
- status: {
48
- type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
49
- isOptional: false;
50
- };
51
- subtotal: {
52
- type: _contractspec_lib_schema637.FieldType<number, number>;
53
- isOptional: false;
54
- };
55
- shippingTotal: {
56
- type: _contractspec_lib_schema637.FieldType<number, number>;
57
- isOptional: false;
58
- };
59
- taxTotal: {
60
- type: _contractspec_lib_schema637.FieldType<number, number>;
61
- isOptional: false;
62
- };
63
- total: {
64
- type: _contractspec_lib_schema637.FieldType<number, number>;
65
- isOptional: false;
66
- };
67
- currency: {
68
- type: _contractspec_lib_schema637.FieldType<string, string>;
69
- isOptional: false;
70
- };
71
- items: {
72
- type: _contractspec_lib_schema637.SchemaModel<{
73
- id: {
74
- type: _contractspec_lib_schema637.FieldType<string, string>;
75
- isOptional: false;
76
- };
77
- productId: {
78
- type: _contractspec_lib_schema637.FieldType<string, string>;
79
- isOptional: false;
80
- };
81
- productName: {
82
- type: _contractspec_lib_schema637.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- unitPrice: {
86
- type: _contractspec_lib_schema637.FieldType<number, number>;
87
- isOptional: false;
88
- };
89
- quantity: {
90
- type: _contractspec_lib_schema637.FieldType<number, number>;
4
+ export declare const CreateOrderContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ storeId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
91
7
  isOptional: false;
92
- };
93
- subtotal: {
94
- type: _contractspec_lib_schema637.FieldType<number, number>;
8
+ };
9
+ items: {
10
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
95
11
  isOptional: false;
96
- };
97
- }>;
98
- isArray: true;
99
- isOptional: true;
100
- };
101
- createdAt: {
102
- type: _contractspec_lib_schema637.FieldType<Date, string>;
103
- isOptional: false;
104
- };
105
- }>, {
106
- key: string;
107
- version: string;
108
- when: string;
109
- payload: _contractspec_lib_schema637.SchemaModel<{
12
+ description: string;
13
+ };
14
+ shippingAddress: {
15
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
16
+ isOptional: true;
17
+ };
18
+ billingAddress: {
19
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
20
+ isOptional: true;
21
+ };
22
+ buyerNote: {
23
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
24
+ isOptional: true;
25
+ };
26
+ }>, import("@contractspec/lib.schema").SchemaModel<{
110
27
  id: {
111
- type: _contractspec_lib_schema637.FieldType<string, string>;
112
- isOptional: false;
28
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
29
+ isOptional: false;
113
30
  };
114
31
  orderNumber: {
115
- type: _contractspec_lib_schema637.FieldType<string, string>;
116
- isOptional: false;
32
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
33
+ isOptional: false;
117
34
  };
118
35
  buyerId: {
119
- type: _contractspec_lib_schema637.FieldType<string, string>;
120
- isOptional: false;
36
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
37
+ isOptional: false;
121
38
  };
122
39
  storeId: {
123
- type: _contractspec_lib_schema637.FieldType<string, string>;
124
- isOptional: false;
40
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
41
+ isOptional: false;
125
42
  };
126
43
  status: {
127
- type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
128
- isOptional: false;
44
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
45
+ isOptional: false;
129
46
  };
130
47
  subtotal: {
131
- type: _contractspec_lib_schema637.FieldType<number, number>;
132
- isOptional: false;
48
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
49
+ isOptional: false;
133
50
  };
134
51
  shippingTotal: {
135
- type: _contractspec_lib_schema637.FieldType<number, number>;
136
- isOptional: false;
52
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
53
+ isOptional: false;
137
54
  };
138
55
  taxTotal: {
139
- type: _contractspec_lib_schema637.FieldType<number, number>;
140
- isOptional: false;
56
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
57
+ isOptional: false;
141
58
  };
142
59
  total: {
143
- type: _contractspec_lib_schema637.FieldType<number, number>;
144
- isOptional: false;
60
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
61
+ isOptional: false;
145
62
  };
146
63
  currency: {
147
- type: _contractspec_lib_schema637.FieldType<string, string>;
148
- isOptional: false;
64
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
65
+ isOptional: false;
149
66
  };
150
67
  items: {
151
- type: _contractspec_lib_schema637.SchemaModel<{
68
+ type: import("@contractspec/lib.schema").SchemaModel<{
69
+ id: {
70
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
71
+ isOptional: false;
72
+ };
73
+ productId: {
74
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
75
+ isOptional: false;
76
+ };
77
+ productName: {
78
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ unitPrice: {
82
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
83
+ isOptional: false;
84
+ };
85
+ quantity: {
86
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
87
+ isOptional: false;
88
+ };
89
+ subtotal: {
90
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
91
+ isOptional: false;
92
+ };
93
+ }>;
94
+ isArray: true;
95
+ isOptional: true;
96
+ };
97
+ createdAt: {
98
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
99
+ isOptional: false;
100
+ };
101
+ }>, {
102
+ key: string;
103
+ version: string;
104
+ when: string;
105
+ payload: import("@contractspec/lib.schema").SchemaModel<{
152
106
  id: {
153
- type: _contractspec_lib_schema637.FieldType<string, string>;
154
- isOptional: false;
107
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
108
+ isOptional: false;
155
109
  };
156
- productId: {
157
- type: _contractspec_lib_schema637.FieldType<string, string>;
158
- isOptional: false;
110
+ orderNumber: {
111
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
112
+ isOptional: false;
159
113
  };
160
- productName: {
161
- type: _contractspec_lib_schema637.FieldType<string, string>;
162
- isOptional: false;
114
+ buyerId: {
115
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
116
+ isOptional: false;
163
117
  };
164
- unitPrice: {
165
- type: _contractspec_lib_schema637.FieldType<number, number>;
166
- isOptional: false;
118
+ storeId: {
119
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
120
+ isOptional: false;
167
121
  };
168
- quantity: {
169
- type: _contractspec_lib_schema637.FieldType<number, number>;
170
- isOptional: false;
122
+ status: {
123
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
124
+ isOptional: false;
171
125
  };
172
126
  subtotal: {
173
- type: _contractspec_lib_schema637.FieldType<number, number>;
174
- isOptional: false;
127
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
128
+ isOptional: false;
175
129
  };
176
- }>;
177
- isArray: true;
178
- isOptional: true;
179
- };
180
- createdAt: {
181
- type: _contractspec_lib_schema637.FieldType<Date, string>;
182
- isOptional: false;
183
- };
184
- }>;
130
+ shippingTotal: {
131
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
132
+ isOptional: false;
133
+ };
134
+ taxTotal: {
135
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
136
+ isOptional: false;
137
+ };
138
+ total: {
139
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
140
+ isOptional: false;
141
+ };
142
+ currency: {
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ items: {
147
+ type: import("@contractspec/lib.schema").SchemaModel<{
148
+ id: {
149
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
150
+ isOptional: false;
151
+ };
152
+ productId: {
153
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
154
+ isOptional: false;
155
+ };
156
+ productName: {
157
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
158
+ isOptional: false;
159
+ };
160
+ unitPrice: {
161
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
162
+ isOptional: false;
163
+ };
164
+ quantity: {
165
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
166
+ isOptional: false;
167
+ };
168
+ subtotal: {
169
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
170
+ isOptional: false;
171
+ };
172
+ }>;
173
+ isArray: true;
174
+ isOptional: true;
175
+ };
176
+ createdAt: {
177
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
178
+ isOptional: false;
179
+ };
180
+ }>;
185
181
  }[]>;
186
182
  /**
187
183
  * Update order status.
188
184
  */
189
- declare const UpdateOrderStatusContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema637.SchemaModel<{
190
- orderId: {
191
- type: _contractspec_lib_schema637.FieldType<string, string>;
192
- isOptional: false;
193
- };
194
- status: {
195
- type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
196
- isOptional: false;
197
- };
198
- trackingNumber: {
199
- type: _contractspec_lib_schema637.FieldType<string, string>;
200
- isOptional: true;
201
- };
202
- trackingUrl: {
203
- type: _contractspec_lib_schema637.FieldType<string, string>;
204
- isOptional: true;
205
- };
206
- note: {
207
- type: _contractspec_lib_schema637.FieldType<string, string>;
208
- isOptional: true;
209
- };
210
- }>, _contractspec_lib_schema637.SchemaModel<{
211
- id: {
212
- type: _contractspec_lib_schema637.FieldType<string, string>;
213
- isOptional: false;
214
- };
215
- orderNumber: {
216
- type: _contractspec_lib_schema637.FieldType<string, string>;
217
- isOptional: false;
218
- };
219
- buyerId: {
220
- type: _contractspec_lib_schema637.FieldType<string, string>;
221
- isOptional: false;
222
- };
223
- storeId: {
224
- type: _contractspec_lib_schema637.FieldType<string, string>;
225
- isOptional: false;
226
- };
227
- status: {
228
- type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
229
- isOptional: false;
230
- };
231
- subtotal: {
232
- type: _contractspec_lib_schema637.FieldType<number, number>;
233
- isOptional: false;
234
- };
235
- shippingTotal: {
236
- type: _contractspec_lib_schema637.FieldType<number, number>;
237
- isOptional: false;
238
- };
239
- taxTotal: {
240
- type: _contractspec_lib_schema637.FieldType<number, number>;
241
- isOptional: false;
242
- };
243
- total: {
244
- type: _contractspec_lib_schema637.FieldType<number, number>;
245
- isOptional: false;
246
- };
247
- currency: {
248
- type: _contractspec_lib_schema637.FieldType<string, string>;
249
- isOptional: false;
250
- };
251
- items: {
252
- type: _contractspec_lib_schema637.SchemaModel<{
253
- id: {
254
- type: _contractspec_lib_schema637.FieldType<string, string>;
185
+ export declare const UpdateOrderStatusContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
186
+ orderId: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
255
188
  isOptional: false;
256
- };
257
- productId: {
258
- type: _contractspec_lib_schema637.FieldType<string, string>;
259
- isOptional: false;
260
- };
261
- productName: {
262
- type: _contractspec_lib_schema637.FieldType<string, string>;
263
- isOptional: false;
264
- };
265
- unitPrice: {
266
- type: _contractspec_lib_schema637.FieldType<number, number>;
267
- isOptional: false;
268
- };
269
- quantity: {
270
- type: _contractspec_lib_schema637.FieldType<number, number>;
271
- isOptional: false;
272
- };
273
- subtotal: {
274
- type: _contractspec_lib_schema637.FieldType<number, number>;
189
+ };
190
+ status: {
191
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
275
192
  isOptional: false;
276
- };
277
- }>;
278
- isArray: true;
279
- isOptional: true;
280
- };
281
- createdAt: {
282
- type: _contractspec_lib_schema637.FieldType<Date, string>;
283
- isOptional: false;
284
- };
285
- }>, {
286
- key: string;
287
- version: string;
288
- when: string;
289
- payload: _contractspec_lib_schema637.SchemaModel<{
193
+ };
194
+ trackingNumber: {
195
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
196
+ isOptional: true;
197
+ };
198
+ trackingUrl: {
199
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
200
+ isOptional: true;
201
+ };
202
+ note: {
203
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
204
+ isOptional: true;
205
+ };
206
+ }>, import("@contractspec/lib.schema").SchemaModel<{
290
207
  id: {
291
- type: _contractspec_lib_schema637.FieldType<string, string>;
292
- isOptional: false;
208
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
209
+ isOptional: false;
293
210
  };
294
211
  orderNumber: {
295
- type: _contractspec_lib_schema637.FieldType<string, string>;
296
- isOptional: false;
212
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
213
+ isOptional: false;
297
214
  };
298
215
  buyerId: {
299
- type: _contractspec_lib_schema637.FieldType<string, string>;
300
- isOptional: false;
216
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
217
+ isOptional: false;
301
218
  };
302
219
  storeId: {
303
- type: _contractspec_lib_schema637.FieldType<string, string>;
304
- isOptional: false;
220
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
221
+ isOptional: false;
305
222
  };
306
223
  status: {
307
- type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
308
- isOptional: false;
224
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
225
+ isOptional: false;
309
226
  };
310
227
  subtotal: {
311
- type: _contractspec_lib_schema637.FieldType<number, number>;
312
- isOptional: false;
228
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
229
+ isOptional: false;
313
230
  };
314
231
  shippingTotal: {
315
- type: _contractspec_lib_schema637.FieldType<number, number>;
316
- isOptional: false;
232
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
233
+ isOptional: false;
317
234
  };
318
235
  taxTotal: {
319
- type: _contractspec_lib_schema637.FieldType<number, number>;
320
- isOptional: false;
236
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
237
+ isOptional: false;
321
238
  };
322
239
  total: {
323
- type: _contractspec_lib_schema637.FieldType<number, number>;
324
- isOptional: false;
240
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
241
+ isOptional: false;
325
242
  };
326
243
  currency: {
327
- type: _contractspec_lib_schema637.FieldType<string, string>;
328
- isOptional: false;
244
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
245
+ isOptional: false;
329
246
  };
330
247
  items: {
331
- type: _contractspec_lib_schema637.SchemaModel<{
248
+ type: import("@contractspec/lib.schema").SchemaModel<{
249
+ id: {
250
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
251
+ isOptional: false;
252
+ };
253
+ productId: {
254
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
255
+ isOptional: false;
256
+ };
257
+ productName: {
258
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
259
+ isOptional: false;
260
+ };
261
+ unitPrice: {
262
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
263
+ isOptional: false;
264
+ };
265
+ quantity: {
266
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
267
+ isOptional: false;
268
+ };
269
+ subtotal: {
270
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
271
+ isOptional: false;
272
+ };
273
+ }>;
274
+ isArray: true;
275
+ isOptional: true;
276
+ };
277
+ createdAt: {
278
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
279
+ isOptional: false;
280
+ };
281
+ }>, {
282
+ key: string;
283
+ version: string;
284
+ when: string;
285
+ payload: import("@contractspec/lib.schema").SchemaModel<{
332
286
  id: {
333
- type: _contractspec_lib_schema637.FieldType<string, string>;
334
- isOptional: false;
287
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
288
+ isOptional: false;
335
289
  };
336
- productId: {
337
- type: _contractspec_lib_schema637.FieldType<string, string>;
338
- isOptional: false;
290
+ orderNumber: {
291
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
292
+ isOptional: false;
339
293
  };
340
- productName: {
341
- type: _contractspec_lib_schema637.FieldType<string, string>;
342
- isOptional: false;
294
+ buyerId: {
295
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
296
+ isOptional: false;
343
297
  };
344
- unitPrice: {
345
- type: _contractspec_lib_schema637.FieldType<number, number>;
346
- isOptional: false;
298
+ storeId: {
299
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
300
+ isOptional: false;
347
301
  };
348
- quantity: {
349
- type: _contractspec_lib_schema637.FieldType<number, number>;
350
- isOptional: false;
302
+ status: {
303
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
304
+ isOptional: false;
351
305
  };
352
306
  subtotal: {
353
- type: _contractspec_lib_schema637.FieldType<number, number>;
354
- isOptional: false;
307
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
308
+ isOptional: false;
355
309
  };
356
- }>;
357
- isArray: true;
358
- isOptional: true;
359
- };
360
- createdAt: {
361
- type: _contractspec_lib_schema637.FieldType<Date, string>;
362
- isOptional: false;
363
- };
364
- }>;
310
+ shippingTotal: {
311
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
312
+ isOptional: false;
313
+ };
314
+ taxTotal: {
315
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
316
+ isOptional: false;
317
+ };
318
+ total: {
319
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
320
+ isOptional: false;
321
+ };
322
+ currency: {
323
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
324
+ isOptional: false;
325
+ };
326
+ items: {
327
+ type: import("@contractspec/lib.schema").SchemaModel<{
328
+ id: {
329
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
330
+ isOptional: false;
331
+ };
332
+ productId: {
333
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
334
+ isOptional: false;
335
+ };
336
+ productName: {
337
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
338
+ isOptional: false;
339
+ };
340
+ unitPrice: {
341
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
342
+ isOptional: false;
343
+ };
344
+ quantity: {
345
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
346
+ isOptional: false;
347
+ };
348
+ subtotal: {
349
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
350
+ isOptional: false;
351
+ };
352
+ }>;
353
+ isArray: true;
354
+ isOptional: true;
355
+ };
356
+ createdAt: {
357
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
358
+ isOptional: false;
359
+ };
360
+ }>;
365
361
  }[]>;
366
- //#endregion
367
- export { CreateOrderContract, UpdateOrderStatusContract };
368
362
  //# sourceMappingURL=order.operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order.operations.d.ts","names":[],"sources":["../../src/order/order.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,kDAAmB,0CAAA;EAAnB,OAAA,EAAA;IA4CX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;IA5C8B,WAAA,EAAA,MAAA;;;;;;;;;;;;;;;;UAAA,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;+CAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAiDnB,CAAA;EA6CX,QAAA,EAAA;;;;;+CA7CoC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,GAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAzB,wDAAyB,0CAAA;;UA6CpC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UA7CoC,2BAAA,CAAA"}
1
+ {"version":3,"file":"order.operations.d.ts","sourceRoot":"","sources":["../../src/order/order.operations.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4C9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CpC,CAAC"}