@contractspec/example.marketplace 1.46.1 → 1.48.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 (113) hide show
  1. package/dist/entities/index.d.ts +296 -296
  2. package/dist/entities/index.js.map +1 -1
  3. package/dist/entities/order.d.ts +78 -78
  4. package/dist/entities/payout.d.ts +65 -65
  5. package/dist/entities/product.d.ts +70 -70
  6. package/dist/entities/review.d.ts +56 -56
  7. package/dist/entities/store.d.ts +41 -41
  8. package/dist/entities/store.d.ts.map +1 -1
  9. package/dist/example.d.ts +2 -2
  10. package/dist/example.d.ts.map +1 -1
  11. package/dist/example.js +4 -2
  12. package/dist/example.js.map +1 -1
  13. package/dist/handlers/index.d.ts +2 -0
  14. package/dist/handlers/index.js +3 -0
  15. package/dist/handlers/marketplace.handlers.d.ts +155 -0
  16. package/dist/handlers/marketplace.handlers.d.ts.map +1 -0
  17. package/dist/handlers/marketplace.handlers.js +329 -0
  18. package/dist/handlers/marketplace.handlers.js.map +1 -0
  19. package/dist/index.d.ts +6 -1
  20. package/dist/index.js +6 -1
  21. package/dist/marketplace.capability.d.ts +9 -0
  22. package/dist/marketplace.capability.d.ts.map +1 -0
  23. package/dist/marketplace.capability.js +34 -0
  24. package/dist/marketplace.capability.js.map +1 -0
  25. package/dist/marketplace.feature.d.ts +2 -2
  26. package/dist/marketplace.feature.d.ts.map +1 -1
  27. package/dist/marketplace.feature.js +7 -2
  28. package/dist/marketplace.feature.js.map +1 -1
  29. package/dist/order/order.enum.d.ts +2 -2
  30. package/dist/order/order.enum.d.ts.map +1 -1
  31. package/dist/order/order.event.d.ts +39 -39
  32. package/dist/order/order.event.d.ts.map +1 -1
  33. package/dist/order/order.event.js +1 -1
  34. package/dist/order/order.operations.d.ts +90 -90
  35. package/dist/order/order.presentation.d.ts +4 -4
  36. package/dist/order/order.presentation.d.ts.map +1 -1
  37. package/dist/order/order.presentation.js +7 -7
  38. package/dist/order/order.presentation.js.map +1 -1
  39. package/dist/order/order.schema.d.ts +39 -39
  40. package/dist/payout/payout.enum.d.ts +2 -2
  41. package/dist/payout/payout.enum.d.ts.map +1 -1
  42. package/dist/payout/payout.event.d.ts +17 -17
  43. package/dist/payout/payout.event.d.ts.map +1 -1
  44. package/dist/payout/payout.event.js +1 -1
  45. package/dist/payout/payout.operations.d.ts +24 -24
  46. package/dist/payout/payout.operations.d.ts.map +1 -1
  47. package/dist/payout/payout.presentation.d.ts +3 -3
  48. package/dist/payout/payout.presentation.d.ts.map +1 -1
  49. package/dist/payout/payout.presentation.js +5 -5
  50. package/dist/payout/payout.presentation.js.map +1 -1
  51. package/dist/payout/payout.schema.d.ts +37 -37
  52. package/dist/payout/payout.schema.d.ts.map +1 -1
  53. package/dist/product/product.enum.d.ts +2 -2
  54. package/dist/product/product.enum.d.ts.map +1 -1
  55. package/dist/product/product.event.d.ts +20 -20
  56. package/dist/product/product.event.d.ts.map +1 -1
  57. package/dist/product/product.event.js +1 -1
  58. package/dist/product/product.operations.d.ts +68 -68
  59. package/dist/product/product.operations.d.ts.map +1 -1
  60. package/dist/product/product.presentation.d.ts +4 -4
  61. package/dist/product/product.presentation.d.ts.map +1 -1
  62. package/dist/product/product.presentation.js +7 -7
  63. package/dist/product/product.presentation.js.map +1 -1
  64. package/dist/product/product.schema.d.ts +52 -52
  65. package/dist/review/review.enum.d.ts +2 -2
  66. package/dist/review/review.event.d.ts +15 -15
  67. package/dist/review/review.event.js +1 -1
  68. package/dist/review/review.operations.d.ts +59 -59
  69. package/dist/review/review.presentation.d.ts +3 -3
  70. package/dist/review/review.presentation.d.ts.map +1 -1
  71. package/dist/review/review.presentation.js +5 -5
  72. package/dist/review/review.presentation.js.map +1 -1
  73. package/dist/review/review.schema.d.ts +45 -45
  74. package/dist/review/review.schema.d.ts.map +1 -1
  75. package/dist/seeders/index.d.ts +10 -0
  76. package/dist/seeders/index.d.ts.map +1 -0
  77. package/dist/seeders/index.js +18 -0
  78. package/dist/seeders/index.js.map +1 -0
  79. package/dist/store/store.enum.d.ts +2 -2
  80. package/dist/store/store.enum.d.ts.map +1 -1
  81. package/dist/store/store.event.d.ts +14 -14
  82. package/dist/store/store.event.d.ts.map +1 -1
  83. package/dist/store/store.event.js +1 -1
  84. package/dist/store/store.operations.d.ts +33 -33
  85. package/dist/store/store.presentation.d.ts +3 -3
  86. package/dist/store/store.presentation.d.ts.map +1 -1
  87. package/dist/store/store.presentation.js +5 -5
  88. package/dist/store/store.presentation.js.map +1 -1
  89. package/dist/store/store.schema.d.ts +20 -20
  90. package/dist/store/store.schema.d.ts.map +1 -1
  91. package/dist/tests/operations.test-spec.d.ts +11 -0
  92. package/dist/tests/operations.test-spec.d.ts.map +1 -0
  93. package/dist/tests/operations.test-spec.js +152 -0
  94. package/dist/tests/operations.test-spec.js.map +1 -0
  95. package/dist/ui/MarketplaceDashboard.d.ts +7 -0
  96. package/dist/ui/MarketplaceDashboard.d.ts.map +1 -0
  97. package/dist/ui/MarketplaceDashboard.js +319 -0
  98. package/dist/ui/MarketplaceDashboard.js.map +1 -0
  99. package/dist/ui/hooks/index.d.ts +2 -0
  100. package/dist/ui/hooks/index.js +5 -0
  101. package/dist/ui/hooks/useMarketplaceData.d.ts +23 -0
  102. package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -0
  103. package/dist/ui/hooks/useMarketplaceData.js +64 -0
  104. package/dist/ui/hooks/useMarketplaceData.js.map +1 -0
  105. package/dist/ui/index.d.ts +6 -0
  106. package/dist/ui/index.js +6 -0
  107. package/dist/ui/renderers/index.d.ts +2 -0
  108. package/dist/ui/renderers/index.js +3 -0
  109. package/dist/ui/renderers/marketplace.markdown.d.ts +28 -0
  110. package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -0
  111. package/dist/ui/renderers/marketplace.markdown.js +244 -0
  112. package/dist/ui/renderers/marketplace.markdown.js.map +1 -0
  113. package/package.json +24 -8
@@ -1 +1 @@
1
- {"version":3,"file":"product.operations.d.ts","names":[],"sources":["../../src/product/product.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAgBa,oDAAqB,0CAAA;EAArB,OAAA,EAAA;IAkDX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;EAlDgC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,2BAAA,CAAA;;;;;;EAAA,CAAA;EAuDrB,IAAA,EAAA;IA8BX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;+CA9B+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAApB,mDAAoB,0CAAA;;UA8B/B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9B+B,2BAAA,CAAA"}
1
+ {"version":3,"file":"product.operations.d.ts","names":[],"sources":["../../src/product/product.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAgBa,qDAAqB,0CAAA;EAArB,OAAA,EAAA;IAkDX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;EAlDgC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,2BAAA,CAAA;;;;;;EAAA,CAAA;EAuDrB,IAAA,EAAA;IA8BX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;+CA9B+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAApB,oDAAoB,0CAAA;;UA8B/B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9B+B,2BAAA,CAAA"}
@@ -1,9 +1,9 @@
1
- import { PresentationSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts28 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/product/product.presentation.d.ts
4
- declare const ProductCatalogPresentation: PresentationSpec;
5
- declare const ProductDetailPresentation: PresentationSpec;
6
- declare const ProductEditorPresentation: PresentationSpec;
4
+ declare const ProductCatalogPresentation: _contractspec_lib_contracts28.PresentationSpec;
5
+ declare const ProductDetailPresentation: _contractspec_lib_contracts28.PresentationSpec;
6
+ declare const ProductEditorPresentation: _contractspec_lib_contracts28.PresentationSpec;
7
7
  //#endregion
8
8
  export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
9
9
  //# sourceMappingURL=product.presentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.presentation.d.ts","names":[],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":[],"mappings":";;;cAIa,4BAA4B;cAyB5B,2BAA2B;AAzB3B,cAkDA,yBAlD4B,EAkDD,gBA3BvC"}
1
+ {"version":3,"file":"product.presentation.d.ts","names":[],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,4BAuBX,6BAAA,CAvBqC;cAyB1B,2BAuBX,6BAAA,CAvBoC;cAyBzB,2BAuBX,6BAAA,CAvBoC"}
@@ -1,8 +1,8 @@
1
1
  import { ProductModel } from "./product.schema.js";
2
- import { StabilityEnum } from "@contractspec/lib.contracts";
2
+ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/product/product.presentation.ts
5
- const ProductCatalogPresentation = {
5
+ const ProductCatalogPresentation = definePresentation({
6
6
  meta: {
7
7
  key: "marketplace.product.catalog",
8
8
  version: "1.0.0",
@@ -27,8 +27,8 @@ const ProductCatalogPresentation = {
27
27
  },
28
28
  targets: ["react", "markdown"],
29
29
  policy: { flags: ["marketplace.products.enabled"] }
30
- };
31
- const ProductDetailPresentation = {
30
+ });
31
+ const ProductDetailPresentation = definePresentation({
32
32
  meta: {
33
33
  key: "marketplace.product.detail",
34
34
  version: "1.0.0",
@@ -53,8 +53,8 @@ const ProductDetailPresentation = {
53
53
  },
54
54
  targets: ["react", "markdown"],
55
55
  policy: { flags: ["marketplace.products.enabled"] }
56
- };
57
- const ProductEditorPresentation = {
56
+ });
57
+ const ProductEditorPresentation = definePresentation({
58
58
  meta: {
59
59
  key: "marketplace.product.editor",
60
60
  version: "1.0.0",
@@ -79,7 +79,7 @@ const ProductEditorPresentation = {
79
79
  },
80
80
  targets: ["react"],
81
81
  policy: { flags: ["marketplace.seller.enabled"] }
82
- };
82
+ });
83
83
 
84
84
  //#endregion
85
85
  export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
@@ -1 +1 @@
1
- {"version":3,"file":"product.presentation.js","names":["ProductCatalogPresentation: PresentationSpec","ProductDetailPresentation: PresentationSpec","ProductEditorPresentation: PresentationSpec"],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { ProductModel } from './product.schema';\n\nexport const ProductCatalogPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.product.catalog',\n version: '1.0.0',\n title: 'Product Catalog',\n description: 'Product catalog with search and filters',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'catalog'],\n stability: StabilityEnum.Experimental,\n goal: 'Enable users to browse and search for products.',\n context: 'The primary shopping interface.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductCatalog',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n};\n\nexport const ProductDetailPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.product.detail',\n version: '1.0.0',\n title: 'Product Details',\n description: 'Product detail page with images and reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide comprehensive information about a specific product.',\n context: 'Product showcase including images, descriptions, and ratings.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductDetail',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n};\n\nexport const ProductEditorPresentation: PresentationSpec = {\n meta: {\n key: 'marketplace.product.editor',\n version: '1.0.0',\n title: 'Product Editor',\n description: 'Product editor for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow sellers to create and modify product listings.',\n context: 'Management tool for store owners.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductEditor',\n props: ProductModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.seller.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAU;EAC3C,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,+BAA+B,EACxC;CACF;AAED,MAAaC,4BAA8C;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC1C,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,+BAA+B,EACxC;CACF;AAED,MAAaC,4BAA8C;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC1C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF"}
1
+ {"version":3,"file":"product.presentation.js","names":[],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { ProductModel } from './product.schema';\n\nexport const ProductCatalogPresentation = definePresentation({\n meta: {\n key: 'marketplace.product.catalog',\n version: '1.0.0',\n title: 'Product Catalog',\n description: 'Product catalog with search and filters',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'catalog'],\n stability: StabilityEnum.Experimental,\n goal: 'Enable users to browse and search for products.',\n context: 'The primary shopping interface.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductCatalog',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n});\n\nexport const ProductDetailPresentation = definePresentation({\n meta: {\n key: 'marketplace.product.detail',\n version: '1.0.0',\n title: 'Product Details',\n description: 'Product detail page with images and reviews',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide comprehensive information about a specific product.',\n context: 'Product showcase including images, descriptions, and ratings.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductDetail',\n props: ProductModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['marketplace.products.enabled'],\n },\n});\n\nexport const ProductEditorPresentation = definePresentation({\n meta: {\n key: 'marketplace.product.editor',\n version: '1.0.0',\n title: 'Product Editor',\n description: 'Product editor for sellers',\n domain: 'marketplace',\n owners: ['@marketplace-team'],\n tags: ['marketplace', 'product', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow sellers to create and modify product listings.',\n context: 'Management tool for store owners.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProductEditor',\n props: ProductModel,\n },\n targets: ['react'],\n policy: {\n flags: ['marketplace.seller.enabled'],\n },\n});\n"],"mappings":";;;;AAGA,MAAa,6BAA6B,mBAAmB;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAU;EAC3C,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,+BAA+B,EACxC;CACF,CAAC;AAEF,MAAa,4BAA4B,mBAAmB;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC1C,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,+BAA+B,EACxC;CACF,CAAC;AAEF,MAAa,4BAA4B,mBAAmB;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAW;GAAS;EAC1C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CAClB,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF,CAAC"}
@@ -1,143 +1,143 @@
1
- import * as _contractspec_lib_schema658 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema993 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/product/product.schema.d.ts
4
4
  /**
5
5
  * A product listing.
6
6
  */
7
- declare const ProductModel: _contractspec_lib_schema658.SchemaModel<{
7
+ declare const ProductModel: _contractspec_lib_schema993.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema658.FieldType<string, string>;
9
+ type: _contractspec_lib_schema993.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  storeId: {
13
- type: _contractspec_lib_schema658.FieldType<string, string>;
13
+ type: _contractspec_lib_schema993.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  name: {
17
- type: _contractspec_lib_schema658.FieldType<string, string>;
17
+ type: _contractspec_lib_schema993.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  slug: {
21
- type: _contractspec_lib_schema658.FieldType<string, string>;
21
+ type: _contractspec_lib_schema993.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  description: {
25
- type: _contractspec_lib_schema658.FieldType<string, string>;
25
+ type: _contractspec_lib_schema993.FieldType<string, string>;
26
26
  isOptional: true;
27
27
  };
28
28
  status: {
29
- type: _contractspec_lib_schema658.EnumType<[string, string, string, string, string, string]>;
29
+ type: _contractspec_lib_schema993.EnumType<[string, string, string, string, string, string]>;
30
30
  isOptional: false;
31
31
  };
32
32
  price: {
33
- type: _contractspec_lib_schema658.FieldType<number, number>;
33
+ type: _contractspec_lib_schema993.FieldType<number, number>;
34
34
  isOptional: false;
35
35
  };
36
36
  currency: {
37
- type: _contractspec_lib_schema658.FieldType<string, string>;
37
+ type: _contractspec_lib_schema993.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  quantity: {
41
- type: _contractspec_lib_schema658.FieldType<number, number>;
41
+ type: _contractspec_lib_schema993.FieldType<number, number>;
42
42
  isOptional: false;
43
43
  };
44
44
  categoryId: {
45
- type: _contractspec_lib_schema658.FieldType<string, string>;
45
+ type: _contractspec_lib_schema993.FieldType<string, string>;
46
46
  isOptional: true;
47
47
  };
48
48
  primaryImageId: {
49
- type: _contractspec_lib_schema658.FieldType<string, string>;
49
+ type: _contractspec_lib_schema993.FieldType<string, string>;
50
50
  isOptional: true;
51
51
  };
52
52
  averageRating: {
53
- type: _contractspec_lib_schema658.FieldType<number, number>;
53
+ type: _contractspec_lib_schema993.FieldType<number, number>;
54
54
  isOptional: false;
55
55
  };
56
56
  totalSold: {
57
- type: _contractspec_lib_schema658.FieldType<number, number>;
57
+ type: _contractspec_lib_schema993.FieldType<number, number>;
58
58
  isOptional: false;
59
59
  };
60
60
  createdAt: {
61
- type: _contractspec_lib_schema658.FieldType<Date, string>;
61
+ type: _contractspec_lib_schema993.FieldType<Date, string>;
62
62
  isOptional: false;
63
63
  };
64
64
  }>;
65
65
  /**
66
66
  * Input for creating a product.
67
67
  */
68
- declare const CreateProductInputModel: _contractspec_lib_schema658.SchemaModel<{
68
+ declare const CreateProductInputModel: _contractspec_lib_schema993.SchemaModel<{
69
69
  storeId: {
70
- type: _contractspec_lib_schema658.FieldType<string, string>;
70
+ type: _contractspec_lib_schema993.FieldType<string, string>;
71
71
  isOptional: false;
72
72
  };
73
73
  name: {
74
- type: _contractspec_lib_schema658.FieldType<string, string>;
74
+ type: _contractspec_lib_schema993.FieldType<string, string>;
75
75
  isOptional: false;
76
76
  };
77
77
  slug: {
78
- type: _contractspec_lib_schema658.FieldType<string, string>;
78
+ type: _contractspec_lib_schema993.FieldType<string, string>;
79
79
  isOptional: false;
80
80
  };
81
81
  description: {
82
- type: _contractspec_lib_schema658.FieldType<string, string>;
82
+ type: _contractspec_lib_schema993.FieldType<string, string>;
83
83
  isOptional: true;
84
84
  };
85
85
  price: {
86
- type: _contractspec_lib_schema658.FieldType<number, number>;
86
+ type: _contractspec_lib_schema993.FieldType<number, number>;
87
87
  isOptional: false;
88
88
  };
89
89
  currency: {
90
- type: _contractspec_lib_schema658.FieldType<string, string>;
90
+ type: _contractspec_lib_schema993.FieldType<string, string>;
91
91
  isOptional: true;
92
92
  };
93
93
  quantity: {
94
- type: _contractspec_lib_schema658.FieldType<number, number>;
94
+ type: _contractspec_lib_schema993.FieldType<number, number>;
95
95
  isOptional: true;
96
96
  };
97
97
  categoryId: {
98
- type: _contractspec_lib_schema658.FieldType<string, string>;
98
+ type: _contractspec_lib_schema993.FieldType<string, string>;
99
99
  isOptional: true;
100
100
  };
101
101
  sku: {
102
- type: _contractspec_lib_schema658.FieldType<string, string>;
102
+ type: _contractspec_lib_schema993.FieldType<string, string>;
103
103
  isOptional: true;
104
104
  };
105
105
  }>;
106
106
  /**
107
107
  * Input for listing products.
108
108
  */
109
- declare const ListProductsInputModel: _contractspec_lib_schema658.SchemaModel<{
109
+ declare const ListProductsInputModel: _contractspec_lib_schema993.SchemaModel<{
110
110
  storeId: {
111
- type: _contractspec_lib_schema658.FieldType<string, string>;
111
+ type: _contractspec_lib_schema993.FieldType<string, string>;
112
112
  isOptional: true;
113
113
  };
114
114
  categoryId: {
115
- type: _contractspec_lib_schema658.FieldType<string, string>;
115
+ type: _contractspec_lib_schema993.FieldType<string, string>;
116
116
  isOptional: true;
117
117
  };
118
118
  status: {
119
- type: _contractspec_lib_schema658.EnumType<[string, string, string, string, string, string]>;
119
+ type: _contractspec_lib_schema993.EnumType<[string, string, string, string, string, string]>;
120
120
  isOptional: true;
121
121
  };
122
122
  search: {
123
- type: _contractspec_lib_schema658.FieldType<string, string>;
123
+ type: _contractspec_lib_schema993.FieldType<string, string>;
124
124
  isOptional: true;
125
125
  };
126
126
  minPrice: {
127
- type: _contractspec_lib_schema658.FieldType<number, number>;
127
+ type: _contractspec_lib_schema993.FieldType<number, number>;
128
128
  isOptional: true;
129
129
  };
130
130
  maxPrice: {
131
- type: _contractspec_lib_schema658.FieldType<number, number>;
131
+ type: _contractspec_lib_schema993.FieldType<number, number>;
132
132
  isOptional: true;
133
133
  };
134
134
  limit: {
135
- type: _contractspec_lib_schema658.FieldType<number, number>;
135
+ type: _contractspec_lib_schema993.FieldType<number, number>;
136
136
  isOptional: true;
137
137
  defaultValue: number;
138
138
  };
139
139
  offset: {
140
- type: _contractspec_lib_schema658.FieldType<number, number>;
140
+ type: _contractspec_lib_schema993.FieldType<number, number>;
141
141
  isOptional: true;
142
142
  defaultValue: number;
143
143
  };
@@ -145,63 +145,63 @@ declare const ListProductsInputModel: _contractspec_lib_schema658.SchemaModel<{
145
145
  /**
146
146
  * Output for listing products.
147
147
  */
148
- declare const ListProductsOutputModel: _contractspec_lib_schema658.SchemaModel<{
148
+ declare const ListProductsOutputModel: _contractspec_lib_schema993.SchemaModel<{
149
149
  products: {
150
- type: _contractspec_lib_schema658.SchemaModel<{
150
+ type: _contractspec_lib_schema993.SchemaModel<{
151
151
  id: {
152
- type: _contractspec_lib_schema658.FieldType<string, string>;
152
+ type: _contractspec_lib_schema993.FieldType<string, string>;
153
153
  isOptional: false;
154
154
  };
155
155
  storeId: {
156
- type: _contractspec_lib_schema658.FieldType<string, string>;
156
+ type: _contractspec_lib_schema993.FieldType<string, string>;
157
157
  isOptional: false;
158
158
  };
159
159
  name: {
160
- type: _contractspec_lib_schema658.FieldType<string, string>;
160
+ type: _contractspec_lib_schema993.FieldType<string, string>;
161
161
  isOptional: false;
162
162
  };
163
163
  slug: {
164
- type: _contractspec_lib_schema658.FieldType<string, string>;
164
+ type: _contractspec_lib_schema993.FieldType<string, string>;
165
165
  isOptional: false;
166
166
  };
167
167
  description: {
168
- type: _contractspec_lib_schema658.FieldType<string, string>;
168
+ type: _contractspec_lib_schema993.FieldType<string, string>;
169
169
  isOptional: true;
170
170
  };
171
171
  status: {
172
- type: _contractspec_lib_schema658.EnumType<[string, string, string, string, string, string]>;
172
+ type: _contractspec_lib_schema993.EnumType<[string, string, string, string, string, string]>;
173
173
  isOptional: false;
174
174
  };
175
175
  price: {
176
- type: _contractspec_lib_schema658.FieldType<number, number>;
176
+ type: _contractspec_lib_schema993.FieldType<number, number>;
177
177
  isOptional: false;
178
178
  };
179
179
  currency: {
180
- type: _contractspec_lib_schema658.FieldType<string, string>;
180
+ type: _contractspec_lib_schema993.FieldType<string, string>;
181
181
  isOptional: false;
182
182
  };
183
183
  quantity: {
184
- type: _contractspec_lib_schema658.FieldType<number, number>;
184
+ type: _contractspec_lib_schema993.FieldType<number, number>;
185
185
  isOptional: false;
186
186
  };
187
187
  categoryId: {
188
- type: _contractspec_lib_schema658.FieldType<string, string>;
188
+ type: _contractspec_lib_schema993.FieldType<string, string>;
189
189
  isOptional: true;
190
190
  };
191
191
  primaryImageId: {
192
- type: _contractspec_lib_schema658.FieldType<string, string>;
192
+ type: _contractspec_lib_schema993.FieldType<string, string>;
193
193
  isOptional: true;
194
194
  };
195
195
  averageRating: {
196
- type: _contractspec_lib_schema658.FieldType<number, number>;
196
+ type: _contractspec_lib_schema993.FieldType<number, number>;
197
197
  isOptional: false;
198
198
  };
199
199
  totalSold: {
200
- type: _contractspec_lib_schema658.FieldType<number, number>;
200
+ type: _contractspec_lib_schema993.FieldType<number, number>;
201
201
  isOptional: false;
202
202
  };
203
203
  createdAt: {
204
- type: _contractspec_lib_schema658.FieldType<Date, string>;
204
+ type: _contractspec_lib_schema993.FieldType<Date, string>;
205
205
  isOptional: false;
206
206
  };
207
207
  }>;
@@ -209,7 +209,7 @@ declare const ListProductsOutputModel: _contractspec_lib_schema658.SchemaModel<{
209
209
  isOptional: false;
210
210
  };
211
211
  total: {
212
- type: _contractspec_lib_schema658.FieldType<number, number>;
212
+ type: _contractspec_lib_schema993.FieldType<number, number>;
213
213
  isOptional: false;
214
214
  };
215
215
  }>;
@@ -1,10 +1,10 @@
1
- import * as _contractspec_lib_schema955 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema838 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/review/review.enum.d.ts
4
4
  /**
5
5
  * Review status enum.
6
6
  */
7
- declare const ReviewStatusEnum: _contractspec_lib_schema955.EnumType<[string, string, string, string]>;
7
+ declare const ReviewStatusEnum: _contractspec_lib_schema838.EnumType<[string, string, string, string]>;
8
8
  //#endregion
9
9
  export { ReviewStatusEnum };
10
10
  //# sourceMappingURL=review.enum.d.ts.map
@@ -1,52 +1,52 @@
1
- import * as _contractspec_lib_schema956 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts10 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts22 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema857 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/review/review.event.d.ts
5
- declare const ReviewCreatedEvent: _contractspec_lib_contracts10.EventSpec<_contractspec_lib_schema956.SchemaModel<{
5
+ declare const ReviewCreatedEvent: _contractspec_lib_contracts22.EventSpec<_contractspec_lib_schema857.SchemaModel<{
6
6
  reviewId: {
7
- type: _contractspec_lib_schema956.FieldType<string, string>;
7
+ type: _contractspec_lib_schema857.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  productId: {
11
- type: _contractspec_lib_schema956.FieldType<string, string>;
11
+ type: _contractspec_lib_schema857.FieldType<string, string>;
12
12
  isOptional: true;
13
13
  };
14
14
  storeId: {
15
- type: _contractspec_lib_schema956.FieldType<string, string>;
15
+ type: _contractspec_lib_schema857.FieldType<string, string>;
16
16
  isOptional: true;
17
17
  };
18
18
  authorId: {
19
- type: _contractspec_lib_schema956.FieldType<string, string>;
19
+ type: _contractspec_lib_schema857.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  rating: {
23
- type: _contractspec_lib_schema956.FieldType<number, number>;
23
+ type: _contractspec_lib_schema857.FieldType<number, number>;
24
24
  isOptional: false;
25
25
  };
26
26
  isVerifiedPurchase: {
27
- type: _contractspec_lib_schema956.FieldType<boolean, boolean>;
27
+ type: _contractspec_lib_schema857.FieldType<boolean, boolean>;
28
28
  isOptional: false;
29
29
  };
30
30
  timestamp: {
31
- type: _contractspec_lib_schema956.FieldType<Date, string>;
31
+ type: _contractspec_lib_schema857.FieldType<Date, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  }>>;
35
- declare const ReviewRespondedEvent: _contractspec_lib_contracts10.EventSpec<_contractspec_lib_schema956.SchemaModel<{
35
+ declare const ReviewRespondedEvent: _contractspec_lib_contracts22.EventSpec<_contractspec_lib_schema857.SchemaModel<{
36
36
  reviewId: {
37
- type: _contractspec_lib_schema956.FieldType<string, string>;
37
+ type: _contractspec_lib_schema857.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  responseId: {
41
- type: _contractspec_lib_schema956.FieldType<string, string>;
41
+ type: _contractspec_lib_schema857.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  authorId: {
45
- type: _contractspec_lib_schema956.FieldType<string, string>;
45
+ type: _contractspec_lib_schema857.FieldType<string, string>;
46
46
  isOptional: false;
47
47
  };
48
48
  timestamp: {
49
- type: _contractspec_lib_schema956.FieldType<Date, string>;
49
+ type: _contractspec_lib_schema857.FieldType<Date, string>;
50
50
  isOptional: false;
51
51
  };
52
52
  }>>;
@@ -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/review/review.event.ts
5
5
  const ReviewCreatedPayload = defineSchemaModel({