@contractspec/example.marketplace 1.46.0 → 1.47.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 (116) hide show
  1. package/dist/entities/index.d.ts +296 -296
  2. package/dist/entities/index.d.ts.map +1 -1
  3. package/dist/entities/index.js.map +1 -1
  4. package/dist/entities/order.d.ts +78 -78
  5. package/dist/entities/payout.d.ts +65 -65
  6. package/dist/entities/product.d.ts +70 -70
  7. package/dist/entities/review.d.ts +56 -56
  8. package/dist/entities/store.d.ts +41 -41
  9. package/dist/entities/store.d.ts.map +1 -1
  10. package/dist/example.d.ts +2 -2
  11. package/dist/example.d.ts.map +1 -1
  12. package/dist/example.js +4 -2
  13. package/dist/example.js.map +1 -1
  14. package/dist/handlers/index.d.ts +2 -0
  15. package/dist/handlers/index.js +3 -0
  16. package/dist/handlers/marketplace.handlers.d.ts +155 -0
  17. package/dist/handlers/marketplace.handlers.d.ts.map +1 -0
  18. package/dist/handlers/marketplace.handlers.js +329 -0
  19. package/dist/handlers/marketplace.handlers.js.map +1 -0
  20. package/dist/index.d.ts +6 -1
  21. package/dist/index.js +6 -1
  22. package/dist/marketplace.capability.d.ts +9 -0
  23. package/dist/marketplace.capability.d.ts.map +1 -0
  24. package/dist/marketplace.capability.js +34 -0
  25. package/dist/marketplace.capability.js.map +1 -0
  26. package/dist/marketplace.feature.d.ts +2 -2
  27. package/dist/marketplace.feature.d.ts.map +1 -1
  28. package/dist/marketplace.feature.js +7 -2
  29. package/dist/marketplace.feature.js.map +1 -1
  30. package/dist/order/order.enum.d.ts +2 -2
  31. package/dist/order/order.enum.d.ts.map +1 -1
  32. package/dist/order/order.event.d.ts +39 -39
  33. package/dist/order/order.event.d.ts.map +1 -1
  34. package/dist/order/order.event.js +1 -1
  35. package/dist/order/order.operations.d.ts +90 -90
  36. package/dist/order/order.operations.d.ts.map +1 -1
  37. package/dist/order/order.presentation.d.ts +4 -4
  38. package/dist/order/order.presentation.d.ts.map +1 -1
  39. package/dist/order/order.presentation.js +7 -7
  40. package/dist/order/order.presentation.js.map +1 -1
  41. package/dist/order/order.schema.d.ts +39 -39
  42. package/dist/payout/payout.enum.d.ts +2 -2
  43. package/dist/payout/payout.enum.d.ts.map +1 -1
  44. package/dist/payout/payout.event.d.ts +17 -17
  45. package/dist/payout/payout.event.d.ts.map +1 -1
  46. package/dist/payout/payout.event.js +1 -1
  47. package/dist/payout/payout.operations.d.ts +24 -24
  48. package/dist/payout/payout.operations.d.ts.map +1 -1
  49. package/dist/payout/payout.presentation.d.ts +3 -3
  50. package/dist/payout/payout.presentation.d.ts.map +1 -1
  51. package/dist/payout/payout.presentation.js +5 -5
  52. package/dist/payout/payout.presentation.js.map +1 -1
  53. package/dist/payout/payout.schema.d.ts +37 -37
  54. package/dist/payout/payout.schema.d.ts.map +1 -1
  55. package/dist/product/product.enum.d.ts +2 -2
  56. package/dist/product/product.enum.d.ts.map +1 -1
  57. package/dist/product/product.event.d.ts +20 -20
  58. package/dist/product/product.event.js +1 -1
  59. package/dist/product/product.operations.d.ts +68 -68
  60. package/dist/product/product.operations.d.ts.map +1 -1
  61. package/dist/product/product.presentation.d.ts +4 -4
  62. package/dist/product/product.presentation.d.ts.map +1 -1
  63. package/dist/product/product.presentation.js +7 -7
  64. package/dist/product/product.presentation.js.map +1 -1
  65. package/dist/product/product.schema.d.ts +52 -52
  66. package/dist/review/review.enum.d.ts +2 -2
  67. package/dist/review/review.enum.d.ts.map +1 -1
  68. package/dist/review/review.event.d.ts +15 -15
  69. package/dist/review/review.event.d.ts.map +1 -1
  70. package/dist/review/review.event.js +1 -1
  71. package/dist/review/review.operations.d.ts +59 -59
  72. package/dist/review/review.presentation.d.ts +3 -3
  73. package/dist/review/review.presentation.d.ts.map +1 -1
  74. package/dist/review/review.presentation.js +5 -5
  75. package/dist/review/review.presentation.js.map +1 -1
  76. package/dist/review/review.schema.d.ts +45 -45
  77. package/dist/seeders/index.d.ts +10 -0
  78. package/dist/seeders/index.d.ts.map +1 -0
  79. package/dist/seeders/index.js +18 -0
  80. package/dist/seeders/index.js.map +1 -0
  81. package/dist/store/store.enum.d.ts +2 -2
  82. package/dist/store/store.enum.d.ts.map +1 -1
  83. package/dist/store/store.event.d.ts +14 -14
  84. package/dist/store/store.event.d.ts.map +1 -1
  85. package/dist/store/store.event.js +1 -1
  86. package/dist/store/store.operations.d.ts +33 -33
  87. package/dist/store/store.operations.d.ts.map +1 -1
  88. package/dist/store/store.presentation.d.ts +3 -3
  89. package/dist/store/store.presentation.d.ts.map +1 -1
  90. package/dist/store/store.presentation.js +5 -5
  91. package/dist/store/store.presentation.js.map +1 -1
  92. package/dist/store/store.schema.d.ts +20 -20
  93. package/dist/store/store.schema.d.ts.map +1 -1
  94. package/dist/tests/operations.test-spec.d.ts +11 -0
  95. package/dist/tests/operations.test-spec.d.ts.map +1 -0
  96. package/dist/tests/operations.test-spec.js +152 -0
  97. package/dist/tests/operations.test-spec.js.map +1 -0
  98. package/dist/ui/MarketplaceDashboard.d.ts +7 -0
  99. package/dist/ui/MarketplaceDashboard.d.ts.map +1 -0
  100. package/dist/ui/MarketplaceDashboard.js +319 -0
  101. package/dist/ui/MarketplaceDashboard.js.map +1 -0
  102. package/dist/ui/hooks/index.d.ts +2 -0
  103. package/dist/ui/hooks/index.js +5 -0
  104. package/dist/ui/hooks/useMarketplaceData.d.ts +23 -0
  105. package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -0
  106. package/dist/ui/hooks/useMarketplaceData.js +64 -0
  107. package/dist/ui/hooks/useMarketplaceData.js.map +1 -0
  108. package/dist/ui/index.d.ts +6 -0
  109. package/dist/ui/index.js +6 -0
  110. package/dist/ui/renderers/index.d.ts +2 -0
  111. package/dist/ui/renderers/index.js +3 -0
  112. package/dist/ui/renderers/marketplace.markdown.d.ts +28 -0
  113. package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -0
  114. package/dist/ui/renderers/marketplace.markdown.js +244 -0
  115. package/dist/ui/renderers/marketplace.markdown.js.map +1 -0
  116. package/package.json +24 -8
@@ -1,9 +1,9 @@
1
- import { PresentationSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts18 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/order/order.presentation.d.ts
4
- declare const OrderListPresentation: PresentationSpec;
5
- declare const OrderDetailPresentation: PresentationSpec;
6
- declare const CheckoutPresentation: PresentationSpec;
4
+ declare const OrderListPresentation: _contractspec_lib_contracts18.PresentationSpec;
5
+ declare const OrderDetailPresentation: _contractspec_lib_contracts18.PresentationSpec;
6
+ declare const CheckoutPresentation: _contractspec_lib_contracts18.PresentationSpec;
7
7
  //#endregion
8
8
  export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
9
9
  //# sourceMappingURL=order.presentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order.presentation.d.ts","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":[],"mappings":";;;cAIa,uBAAuB;cAyBvB,yBAAyB;AAzBzB,cAmDA,oBAnDuB,EAmDD,gBA5BlC"}
1
+ {"version":3,"file":"order.presentation.d.ts","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAuBX,6BAAA,CAvBgC;cAyBrB,yBAwBX,6BAAA,CAxBkC;cA0BvB,sBAuBX,6BAAA,CAvB+B"}
@@ -1,8 +1,8 @@
1
1
  import { OrderModel } from "./order.schema.js";
2
- import { StabilityEnum } from "@contractspec/lib.contracts";
2
+ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/order/order.presentation.ts
5
- const OrderListPresentation = {
5
+ const OrderListPresentation = definePresentation({
6
6
  meta: {
7
7
  key: "marketplace.order.list",
8
8
  version: "1.0.0",
@@ -27,8 +27,8 @@ const OrderListPresentation = {
27
27
  },
28
28
  targets: ["react", "markdown"],
29
29
  policy: { flags: ["marketplace.orders.enabled"] }
30
- };
31
- const OrderDetailPresentation = {
30
+ });
31
+ const OrderDetailPresentation = definePresentation({
32
32
  meta: {
33
33
  key: "marketplace.order.detail",
34
34
  version: "1.0.0",
@@ -53,8 +53,8 @@ const OrderDetailPresentation = {
53
53
  },
54
54
  targets: ["react", "markdown"],
55
55
  policy: { flags: ["marketplace.orders.enabled"] }
56
- };
57
- const CheckoutPresentation = {
56
+ });
57
+ const CheckoutPresentation = definePresentation({
58
58
  meta: {
59
59
  key: "marketplace.checkout",
60
60
  version: "1.0.0",
@@ -79,7 +79,7 @@ const CheckoutPresentation = {
79
79
  },
80
80
  targets: ["react"],
81
81
  policy: { flags: ["marketplace.checkout.enabled"] }
82
- };
82
+ });
83
83
 
84
84
  //#endregion
85
85
  export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
@@ -1 +1 @@
1
- {"version":3,"file":"order.presentation.js","names":["OrderListPresentation: PresentationSpec","OrderDetailPresentation: PresentationSpec","CheckoutPresentation: PresentationSpec"],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { OrderModel } from './order.schema';\n\nexport const OrderListPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.order.list',\n version: '1.0.0',\n title: 'Order List',\n description: 'List of orders with status and tracking',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a comprehensive view of all orders for the user.',\n context: 'Used in the buyer and seller dashboards to track order progress.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderList',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n};\n\nexport const OrderDetailPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.order.detail',\n version: '1.0.0',\n title: 'Order Details',\n description: 'Order detail with items and shipping info',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Display all details of a single order.',\n context:\n 'Accessed from the order list to see specific items, shipping, and payment details.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderDetail',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n};\n\nexport const CheckoutPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.checkout',\n version: '1.0.0',\n title: 'Checkout',\n description: 'Checkout flow with cart and payment',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'checkout', 'cart'],\n stability: StabilityEnum.Experimental,\n goal: 'Guide the user through the payment and order confirmation process.',\n context: 'The final stage of the purchasing journey.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'Checkout',\n props: OrderModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.checkout.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAO;EACtC,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,0BAA4C;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,WAAW,cAAc;EACzB,MAAM;EACN,SACE;EACH;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,uBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAY;GAAO;EACzC,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,+BAA+B,EACxC;CACF"}
1
+ {"version":3,"file":"order.presentation.js","names":[],"sources":["../../src/order/order.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { OrderModel } from './order.schema';\n\nexport const OrderListPresentation = definePresentation({\n meta: {\n key: 'marketplace.order.list',\n version: '1.0.0',\n title: 'Order List',\n description: 'List of orders with status and tracking',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a comprehensive view of all orders for the user.',\n context: 'Used in the buyer and seller dashboards to track order progress.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderList',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n});\n\nexport const OrderDetailPresentation = definePresentation({\n meta: {\n key: 'marketplace.order.detail',\n version: '1.0.0',\n title: 'Order Details',\n description: 'Order detail with items and shipping info',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'order', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Display all details of a single order.',\n context:\n 'Accessed from the order list to see specific items, shipping, and payment details.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'OrderDetail',\n props: OrderModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.orders.enabled'],\n },\n});\n\nexport const CheckoutPresentation = definePresentation({\n meta: {\n key: 'marketplace.checkout',\n version: '1.0.0',\n title: 'Checkout',\n description: 'Checkout flow with cart and payment',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'checkout', 'cart'],\n stability: StabilityEnum.Experimental,\n goal: 'Guide the user through the payment and order confirmation process.',\n context: 'The final stage of the purchasing journey.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'Checkout',\n props: OrderModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.checkout.enabled'],\n },\n});\n"],"mappings":";;;;AAGA,MAAa,wBAAwB,mBAAmB;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAO;EACtC,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,CAAC;AAEF,MAAa,0BAA0B,mBAAmB;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAS;GAAS;EACxC,WAAW,cAAc;EACzB,MAAM;EACN,SACE;EACH;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF,CAAC;AAEF,MAAa,uBAAuB,mBAAmB;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAY;GAAO;EACzC,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,+BAA+B,EACxC;CACF,CAAC"}
@@ -1,103 +1,103 @@
1
- import * as _contractspec_lib_schema744 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema319 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/order/order.schema.d.ts
4
4
  /**
5
5
  * An order item.
6
6
  */
7
- declare const OrderItemModel: _contractspec_lib_schema744.SchemaModel<{
7
+ declare const OrderItemModel: _contractspec_lib_schema319.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema744.FieldType<string, string>;
9
+ type: _contractspec_lib_schema319.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  productId: {
13
- type: _contractspec_lib_schema744.FieldType<string, string>;
13
+ type: _contractspec_lib_schema319.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  productName: {
17
- type: _contractspec_lib_schema744.FieldType<string, string>;
17
+ type: _contractspec_lib_schema319.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  unitPrice: {
21
- type: _contractspec_lib_schema744.FieldType<number, number>;
21
+ type: _contractspec_lib_schema319.FieldType<number, number>;
22
22
  isOptional: false;
23
23
  };
24
24
  quantity: {
25
- type: _contractspec_lib_schema744.FieldType<number, number>;
25
+ type: _contractspec_lib_schema319.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  subtotal: {
29
- type: _contractspec_lib_schema744.FieldType<number, number>;
29
+ type: _contractspec_lib_schema319.FieldType<number, number>;
30
30
  isOptional: false;
31
31
  };
32
32
  }>;
33
33
  /**
34
34
  * An order.
35
35
  */
36
- declare const OrderModel: _contractspec_lib_schema744.SchemaModel<{
36
+ declare const OrderModel: _contractspec_lib_schema319.SchemaModel<{
37
37
  id: {
38
- type: _contractspec_lib_schema744.FieldType<string, string>;
38
+ type: _contractspec_lib_schema319.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
41
  orderNumber: {
42
- type: _contractspec_lib_schema744.FieldType<string, string>;
42
+ type: _contractspec_lib_schema319.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  buyerId: {
46
- type: _contractspec_lib_schema744.FieldType<string, string>;
46
+ type: _contractspec_lib_schema319.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  storeId: {
50
- type: _contractspec_lib_schema744.FieldType<string, string>;
50
+ type: _contractspec_lib_schema319.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  status: {
54
- type: _contractspec_lib_schema744.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
54
+ type: _contractspec_lib_schema319.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
55
55
  isOptional: false;
56
56
  };
57
57
  subtotal: {
58
- type: _contractspec_lib_schema744.FieldType<number, number>;
58
+ type: _contractspec_lib_schema319.FieldType<number, number>;
59
59
  isOptional: false;
60
60
  };
61
61
  shippingTotal: {
62
- type: _contractspec_lib_schema744.FieldType<number, number>;
62
+ type: _contractspec_lib_schema319.FieldType<number, number>;
63
63
  isOptional: false;
64
64
  };
65
65
  taxTotal: {
66
- type: _contractspec_lib_schema744.FieldType<number, number>;
66
+ type: _contractspec_lib_schema319.FieldType<number, number>;
67
67
  isOptional: false;
68
68
  };
69
69
  total: {
70
- type: _contractspec_lib_schema744.FieldType<number, number>;
70
+ type: _contractspec_lib_schema319.FieldType<number, number>;
71
71
  isOptional: false;
72
72
  };
73
73
  currency: {
74
- type: _contractspec_lib_schema744.FieldType<string, string>;
74
+ type: _contractspec_lib_schema319.FieldType<string, string>;
75
75
  isOptional: false;
76
76
  };
77
77
  items: {
78
- type: _contractspec_lib_schema744.SchemaModel<{
78
+ type: _contractspec_lib_schema319.SchemaModel<{
79
79
  id: {
80
- type: _contractspec_lib_schema744.FieldType<string, string>;
80
+ type: _contractspec_lib_schema319.FieldType<string, string>;
81
81
  isOptional: false;
82
82
  };
83
83
  productId: {
84
- type: _contractspec_lib_schema744.FieldType<string, string>;
84
+ type: _contractspec_lib_schema319.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  productName: {
88
- type: _contractspec_lib_schema744.FieldType<string, string>;
88
+ type: _contractspec_lib_schema319.FieldType<string, string>;
89
89
  isOptional: false;
90
90
  };
91
91
  unitPrice: {
92
- type: _contractspec_lib_schema744.FieldType<number, number>;
92
+ type: _contractspec_lib_schema319.FieldType<number, number>;
93
93
  isOptional: false;
94
94
  };
95
95
  quantity: {
96
- type: _contractspec_lib_schema744.FieldType<number, number>;
96
+ type: _contractspec_lib_schema319.FieldType<number, number>;
97
97
  isOptional: false;
98
98
  };
99
99
  subtotal: {
100
- type: _contractspec_lib_schema744.FieldType<number, number>;
100
+ type: _contractspec_lib_schema319.FieldType<number, number>;
101
101
  isOptional: false;
102
102
  };
103
103
  }>;
@@ -105,58 +105,58 @@ declare const OrderModel: _contractspec_lib_schema744.SchemaModel<{
105
105
  isOptional: true;
106
106
  };
107
107
  createdAt: {
108
- type: _contractspec_lib_schema744.FieldType<Date, string>;
108
+ type: _contractspec_lib_schema319.FieldType<Date, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  }>;
112
112
  /**
113
113
  * Input for creating an order.
114
114
  */
115
- declare const CreateOrderInputModel: _contractspec_lib_schema744.SchemaModel<{
115
+ declare const CreateOrderInputModel: _contractspec_lib_schema319.SchemaModel<{
116
116
  storeId: {
117
- type: _contractspec_lib_schema744.FieldType<string, string>;
117
+ type: _contractspec_lib_schema319.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  items: {
121
- type: _contractspec_lib_schema744.FieldType<unknown, unknown>;
121
+ type: _contractspec_lib_schema319.FieldType<unknown, unknown>;
122
122
  isOptional: false;
123
123
  description: string;
124
124
  };
125
125
  shippingAddress: {
126
- type: _contractspec_lib_schema744.FieldType<unknown, unknown>;
126
+ type: _contractspec_lib_schema319.FieldType<unknown, unknown>;
127
127
  isOptional: true;
128
128
  };
129
129
  billingAddress: {
130
- type: _contractspec_lib_schema744.FieldType<unknown, unknown>;
130
+ type: _contractspec_lib_schema319.FieldType<unknown, unknown>;
131
131
  isOptional: true;
132
132
  };
133
133
  buyerNote: {
134
- type: _contractspec_lib_schema744.FieldType<string, string>;
134
+ type: _contractspec_lib_schema319.FieldType<string, string>;
135
135
  isOptional: true;
136
136
  };
137
137
  }>;
138
138
  /**
139
139
  * Input for updating order status.
140
140
  */
141
- declare const UpdateOrderStatusInputModel: _contractspec_lib_schema744.SchemaModel<{
141
+ declare const UpdateOrderStatusInputModel: _contractspec_lib_schema319.SchemaModel<{
142
142
  orderId: {
143
- type: _contractspec_lib_schema744.FieldType<string, string>;
143
+ type: _contractspec_lib_schema319.FieldType<string, string>;
144
144
  isOptional: false;
145
145
  };
146
146
  status: {
147
- type: _contractspec_lib_schema744.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
147
+ type: _contractspec_lib_schema319.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
148
148
  isOptional: false;
149
149
  };
150
150
  trackingNumber: {
151
- type: _contractspec_lib_schema744.FieldType<string, string>;
151
+ type: _contractspec_lib_schema319.FieldType<string, string>;
152
152
  isOptional: true;
153
153
  };
154
154
  trackingUrl: {
155
- type: _contractspec_lib_schema744.FieldType<string, string>;
155
+ type: _contractspec_lib_schema319.FieldType<string, string>;
156
156
  isOptional: true;
157
157
  };
158
158
  note: {
159
- type: _contractspec_lib_schema744.FieldType<string, string>;
159
+ type: _contractspec_lib_schema319.FieldType<string, string>;
160
160
  isOptional: true;
161
161
  };
162
162
  }>;
@@ -1,10 +1,10 @@
1
- import * as _contractspec_lib_schema783 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema1106 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/payout/payout.enum.d.ts
4
4
  /**
5
5
  * Payout status enum.
6
6
  */
7
- declare const PayoutStatusEnum: _contractspec_lib_schema783.EnumType<[string, string, string, string, string]>;
7
+ declare const PayoutStatusEnum: _contractspec_lib_schema1106.EnumType<[string, string, string, string, string]>;
8
8
  //#endregion
9
9
  export { PayoutStatusEnum };
10
10
  //# sourceMappingURL=payout.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payout.enum.d.ts","names":[],"sources":["../../src/payout/payout.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,gBAMX,EAAA,2BAAA,CAN2B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"payout.enum.d.ts","names":[],"sources":["../../src/payout/payout.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,gBAMX,EAAA,4BAAA,CAN2B,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -1,60 +1,60 @@
1
- import * as _contractspec_lib_schema784 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts6 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts41 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema1091 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/payout/payout.event.d.ts
5
- declare const PayoutCreatedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema784.SchemaModel<{
5
+ declare const PayoutCreatedEvent: _contractspec_lib_contracts41.EventSpec<_contractspec_lib_schema1091.SchemaModel<{
6
6
  payoutId: {
7
- type: _contractspec_lib_schema784.FieldType<string, string>;
7
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  payoutNumber: {
11
- type: _contractspec_lib_schema784.FieldType<string, string>;
11
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  storeId: {
15
- type: _contractspec_lib_schema784.FieldType<string, string>;
15
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  netAmount: {
19
- type: _contractspec_lib_schema784.FieldType<number, number>;
19
+ type: _contractspec_lib_schema1091.FieldType<number, number>;
20
20
  isOptional: false;
21
21
  };
22
22
  currency: {
23
- type: _contractspec_lib_schema784.FieldType<string, string>;
23
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  orderCount: {
27
- type: _contractspec_lib_schema784.FieldType<number, number>;
27
+ type: _contractspec_lib_schema1091.FieldType<number, number>;
28
28
  isOptional: false;
29
29
  };
30
30
  timestamp: {
31
- type: _contractspec_lib_schema784.FieldType<Date, string>;
31
+ type: _contractspec_lib_schema1091.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const PayoutPaidEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema784.SchemaModel<{
35
+ declare const PayoutPaidEvent: _contractspec_lib_contracts41.EventSpec<_contractspec_lib_schema1091.SchemaModel<{
36
36
  payoutId: {
37
- type: _contractspec_lib_schema784.FieldType<string, string>;
37
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  payoutNumber: {
41
- type: _contractspec_lib_schema784.FieldType<string, string>;
41
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  storeId: {
45
- type: _contractspec_lib_schema784.FieldType<string, string>;
45
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  netAmount: {
49
- type: _contractspec_lib_schema784.FieldType<number, number>;
49
+ type: _contractspec_lib_schema1091.FieldType<number, number>;
50
50
  isOptional: false;
51
51
  };
52
52
  paymentReference: {
53
- type: _contractspec_lib_schema784.FieldType<string, string>;
53
+ type: _contractspec_lib_schema1091.FieldType<string, string>;
54
54
  isOptional: true;
55
55
  };
56
56
  timestamp: {
57
- type: _contractspec_lib_schema784.FieldType<Date, string>;
57
+ type: _contractspec_lib_schema1091.FieldType<Date, string>;
58
58
  isOptional: false;
59
59
  };
60
60
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"payout.event.d.ts","names":[],"sources":["../../src/payout/payout.event.ts"],"sourcesContent":[],"mappings":";;;;cA+Ba,oBAAkB,4BAAA,CAAA,sCAAA;;UAU7B,2BAAA,CAAA;;EAVW,CAAA;EAUX,YAAA,EAAA;;;;;;;;;IAV6B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYlB,CAAA;EAUX,QAAA,EAAA;;;;;;;;EAV0B,SAAA,EAAA;IAAA,IAAA,uCAAA,KAAA,EAAA,MAAA,CAAA;;;;cAAf,iBAAe,4BAAA,CAAA,sCAAA;;UAU1B,2BAAA,CAAA"}
1
+ {"version":3,"file":"payout.event.d.ts","names":[],"sources":["../../src/payout/payout.event.ts"],"sourcesContent":[],"mappings":";;;;cA+Ba,oBAAkB,6BAAA,CAAA,uCAAA;;UAU7B,4BAAA,CAAA;;EAVW,CAAA;EAUX,YAAA,EAAA;;;;;;;;;IAV6B,IAAA,wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYlB,CAAA;EAUX,QAAA,EAAA;;;;;;;;EAV0B,SAAA,EAAA;IAAA,IAAA,wCAAA,KAAA,EAAA,MAAA,CAAA;;;;cAAf,iBAAe,6BAAA,CAAA,uCAAA;;UAU1B,4BAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
1
  import { defineEvent } from "@contractspec/lib.contracts";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/payout/payout.event.ts
5
5
  const PayoutCreatedPayload = defineSchemaModel({
@@ -1,82 +1,82 @@
1
- import * as _contractspec_lib_schema817 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts11 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts2 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/payout/payout.operations.d.ts
5
5
  /**
6
6
  * List payouts for a store.
7
7
  */
8
- declare const ListPayoutsContract: _contractspec_lib_contracts11.OperationSpec<_contractspec_lib_schema817.SchemaModel<{
8
+ declare const ListPayoutsContract: _contractspec_lib_contracts2.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
9
  storeId: {
10
- type: _contractspec_lib_schema817.FieldType<string, string>;
10
+ type: _contractspec_lib_schema0.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  status: {
14
- type: _contractspec_lib_schema817.EnumType<[string, string, string, string, string]>;
14
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
15
15
  isOptional: true;
16
16
  };
17
17
  limit: {
18
- type: _contractspec_lib_schema817.FieldType<number, number>;
18
+ type: _contractspec_lib_schema0.FieldType<number, number>;
19
19
  isOptional: true;
20
20
  defaultValue: number;
21
21
  };
22
22
  offset: {
23
- type: _contractspec_lib_schema817.FieldType<number, number>;
23
+ type: _contractspec_lib_schema0.FieldType<number, number>;
24
24
  isOptional: true;
25
25
  defaultValue: number;
26
26
  };
27
- }>, _contractspec_lib_schema817.SchemaModel<{
27
+ }>, _contractspec_lib_schema0.SchemaModel<{
28
28
  payouts: {
29
- type: _contractspec_lib_schema817.SchemaModel<{
29
+ type: _contractspec_lib_schema0.SchemaModel<{
30
30
  id: {
31
- type: _contractspec_lib_schema817.FieldType<string, string>;
31
+ type: _contractspec_lib_schema0.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  payoutNumber: {
35
- type: _contractspec_lib_schema817.FieldType<string, string>;
35
+ type: _contractspec_lib_schema0.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  storeId: {
39
- type: _contractspec_lib_schema817.FieldType<string, string>;
39
+ type: _contractspec_lib_schema0.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  status: {
43
- type: _contractspec_lib_schema817.EnumType<[string, string, string, string, string]>;
43
+ type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
44
44
  isOptional: false;
45
45
  };
46
46
  grossAmount: {
47
- type: _contractspec_lib_schema817.FieldType<number, number>;
47
+ type: _contractspec_lib_schema0.FieldType<number, number>;
48
48
  isOptional: false;
49
49
  };
50
50
  platformFees: {
51
- type: _contractspec_lib_schema817.FieldType<number, number>;
51
+ type: _contractspec_lib_schema0.FieldType<number, number>;
52
52
  isOptional: false;
53
53
  };
54
54
  netAmount: {
55
- type: _contractspec_lib_schema817.FieldType<number, number>;
55
+ type: _contractspec_lib_schema0.FieldType<number, number>;
56
56
  isOptional: false;
57
57
  };
58
58
  currency: {
59
- type: _contractspec_lib_schema817.FieldType<string, string>;
59
+ type: _contractspec_lib_schema0.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  periodStart: {
63
- type: _contractspec_lib_schema817.FieldType<Date, string>;
63
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
64
64
  isOptional: false;
65
65
  };
66
66
  periodEnd: {
67
- type: _contractspec_lib_schema817.FieldType<Date, string>;
67
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  orderCount: {
71
- type: _contractspec_lib_schema817.FieldType<number, number>;
71
+ type: _contractspec_lib_schema0.FieldType<number, number>;
72
72
  isOptional: false;
73
73
  };
74
74
  createdAt: {
75
- type: _contractspec_lib_schema817.FieldType<Date, string>;
75
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  paidAt: {
79
- type: _contractspec_lib_schema817.FieldType<Date, string>;
79
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
80
80
  isOptional: true;
81
81
  };
82
82
  }>;
@@ -84,11 +84,11 @@ declare const ListPayoutsContract: _contractspec_lib_contracts11.OperationSpec<_
84
84
  isOptional: false;
85
85
  };
86
86
  total: {
87
- type: _contractspec_lib_schema817.FieldType<number, number>;
87
+ type: _contractspec_lib_schema0.FieldType<number, number>;
88
88
  isOptional: false;
89
89
  };
90
90
  totalPending: {
91
- type: _contractspec_lib_schema817.FieldType<number, number>;
91
+ type: _contractspec_lib_schema0.FieldType<number, number>;
92
92
  isOptional: false;
93
93
  };
94
94
  }>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"payout.operations.d.ts","names":[],"sources":["../../src/payout/payout.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,mDAAmB,0CAAA;EAAnB,OAAA,EAAA;IA8BX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;8CA9B8B,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;cAAA,2BAAA,CAAA;;;;;yBAAA;MAAA,CAAA"}
1
+ {"version":3,"file":"payout.operations.d.ts","names":[],"sources":["../../src/payout/payout.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,kDAAmB,wCAAA;EAAnB,OAAA,EAAA;IA8BX,IAAA,EAAA,yBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;4CA9B8B,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;cAAA,yBAAA,CAAA;;;;;yBAAA;MAAA,CAAA"}
@@ -1,8 +1,8 @@
1
- import { PresentationSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/payout/payout.presentation.d.ts
4
- declare const PayoutListPresentation: PresentationSpec;
5
- declare const PayoutDetailPresentation: PresentationSpec;
4
+ declare const PayoutListPresentation: _contractspec_lib_contracts0.PresentationSpec;
5
+ declare const PayoutDetailPresentation: _contractspec_lib_contracts0.PresentationSpec;
6
6
  //#endregion
7
7
  export { PayoutDetailPresentation, PayoutListPresentation };
8
8
  //# sourceMappingURL=payout.presentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payout.presentation.d.ts","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":[],"mappings":";;;cAIa,wBAAwB;cAyBxB,0BAA0B"}
1
+ {"version":3,"file":"payout.presentation.d.ts","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,wBAuBX,4BAAA,CAvBiC;cAyBtB,0BAuBX,4BAAA,CAvBmC"}
@@ -1,8 +1,8 @@
1
1
  import { PayoutModel } from "./payout.schema.js";
2
- import { StabilityEnum } from "@contractspec/lib.contracts";
2
+ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/payout/payout.presentation.ts
5
- const PayoutListPresentation = {
5
+ const PayoutListPresentation = definePresentation({
6
6
  meta: {
7
7
  key: "marketplace.payout.list",
8
8
  version: "1.0.0",
@@ -27,8 +27,8 @@ const PayoutListPresentation = {
27
27
  },
28
28
  targets: ["react", "markdown"],
29
29
  policy: { flags: ["marketplace.payouts.enabled"] }
30
- };
31
- const PayoutDetailPresentation = {
30
+ });
31
+ const PayoutDetailPresentation = definePresentation({
32
32
  meta: {
33
33
  key: "marketplace.payout.detail",
34
34
  version: "1.0.0",
@@ -53,7 +53,7 @@ const PayoutDetailPresentation = {
53
53
  },
54
54
  targets: ["react", "markdown"],
55
55
  policy: { flags: ["marketplace.payouts.enabled"] }
56
- };
56
+ });
57
57
 
58
58
  //#endregion
59
59
  export { PayoutDetailPresentation, PayoutListPresentation };
@@ -1 +1 @@
1
- {"version":3,"file":"payout.presentation.js","names":["PayoutListPresentation: PresentationSpec","PayoutDetailPresentation: PresentationSpec"],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { PayoutModel } from './payout.schema';\n\nexport const PayoutListPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.payout.list',\n version: '1.0.0',\n title: 'Payout List',\n description: 'List of payouts for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show sellers their historical and pending payouts.',\n context: 'Financial dashboard for sellers.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutList',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n};\n\nexport const PayoutDetailPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.payout.detail',\n version: '1.0.0',\n title: 'Payout Details',\n description: 'Payout detail with breakdown',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show the breakdown of a specific payout including fees and orders.',\n context: 'Accessed from the payout list.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutDetail',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,yBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACvC,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,8BAA8B,EACvC;CACF;AAED,MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAS;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,8BAA8B,EACvC;CACF"}
1
+ {"version":3,"file":"payout.presentation.js","names":[],"sources":["../../src/payout/payout.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { PayoutModel } from './payout.schema';\n\nexport const PayoutListPresentation = definePresentation({\n meta: {\n key: 'marketplace.payout.list',\n version: '1.0.0',\n title: 'Payout List',\n description: 'List of payouts for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show sellers their historical and pending payouts.',\n context: 'Financial dashboard for sellers.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutList',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n});\n\nexport const PayoutDetailPresentation = definePresentation({\n meta: {\n key: 'marketplace.payout.detail',\n version: '1.0.0',\n title: 'Payout Details',\n description: 'Payout detail with breakdown',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'payout', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show the breakdown of a specific payout including fees and orders.',\n context: 'Accessed from the payout list.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'PayoutDetail',\n props: PayoutModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.payouts.enabled'],\n },\n});\n"],"mappings":";;;;AAGA,MAAa,yBAAyB,mBAAmB;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAO;EACvC,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,8BAA8B,EACvC;CACF,CAAC;AAEF,MAAa,2BAA2B,mBAAmB;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAS;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,8BAA8B,EACvC;CACF,CAAC"}