@contractspec/example.marketplace 1.46.1 → 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.
- package/dist/entities/index.d.ts +296 -296
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/entities/store.d.ts.map +1 -1
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +4 -2
- package/dist/example.js.map +1 -1
- package/dist/handlers/index.d.ts +2 -0
- package/dist/handlers/index.js +3 -0
- package/dist/handlers/marketplace.handlers.d.ts +155 -0
- package/dist/handlers/marketplace.handlers.d.ts.map +1 -0
- package/dist/handlers/marketplace.handlers.js +329 -0
- package/dist/handlers/marketplace.handlers.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/dist/marketplace.capability.d.ts +9 -0
- package/dist/marketplace.capability.d.ts.map +1 -0
- package/dist/marketplace.capability.js +34 -0
- package/dist/marketplace.capability.js.map +1 -0
- package/dist/marketplace.feature.d.ts +2 -2
- package/dist/marketplace.feature.d.ts.map +1 -1
- package/dist/marketplace.feature.js +7 -2
- package/dist/marketplace.feature.js.map +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.enum.d.ts.map +1 -1
- package/dist/order/order.event.d.ts +39 -39
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.event.js +1 -1
- package/dist/order/order.operations.d.ts +90 -90
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.presentation.d.ts +4 -4
- package/dist/order/order.presentation.d.ts.map +1 -1
- package/dist/order/order.presentation.js +7 -7
- package/dist/order/order.presentation.js.map +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.event.js +1 -1
- package/dist/payout/payout.operations.d.ts +24 -24
- package/dist/payout/payout.operations.d.ts.map +1 -1
- package/dist/payout/payout.presentation.d.ts +3 -3
- package/dist/payout/payout.presentation.d.ts.map +1 -1
- package/dist/payout/payout.presentation.js +5 -5
- package/dist/payout/payout.presentation.js.map +1 -1
- package/dist/payout/payout.schema.d.ts +37 -37
- package/dist/payout/payout.schema.d.ts.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.enum.d.ts.map +1 -1
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.event.d.ts.map +1 -1
- package/dist/product/product.event.js +1 -1
- package/dist/product/product.operations.d.ts +68 -68
- package/dist/product/product.operations.d.ts.map +1 -1
- package/dist/product/product.presentation.d.ts +4 -4
- package/dist/product/product.presentation.d.ts.map +1 -1
- package/dist/product/product.presentation.js +7 -7
- package/dist/product/product.presentation.js.map +1 -1
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.js +1 -1
- package/dist/review/review.operations.d.ts +59 -59
- package/dist/review/review.presentation.d.ts +3 -3
- package/dist/review/review.presentation.d.ts.map +1 -1
- package/dist/review/review.presentation.js +5 -5
- package/dist/review/review.presentation.js.map +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/seeders/index.d.ts +10 -0
- package/dist/seeders/index.d.ts.map +1 -0
- package/dist/seeders/index.js +18 -0
- package/dist/seeders/index.js.map +1 -0
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.event.js +1 -1
- package/dist/store/store.operations.d.ts +33 -33
- package/dist/store/store.operations.d.ts.map +1 -1
- package/dist/store/store.presentation.d.ts +3 -3
- package/dist/store/store.presentation.d.ts.map +1 -1
- package/dist/store/store.presentation.js +5 -5
- package/dist/store/store.presentation.js.map +1 -1
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/store/store.schema.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.d.ts +11 -0
- package/dist/tests/operations.test-spec.d.ts.map +1 -0
- package/dist/tests/operations.test-spec.js +152 -0
- package/dist/tests/operations.test-spec.js.map +1 -0
- package/dist/ui/MarketplaceDashboard.d.ts +7 -0
- package/dist/ui/MarketplaceDashboard.d.ts.map +1 -0
- package/dist/ui/MarketplaceDashboard.js +319 -0
- package/dist/ui/MarketplaceDashboard.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +2 -0
- package/dist/ui/hooks/index.js +5 -0
- package/dist/ui/hooks/useMarketplaceData.d.ts +23 -0
- package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -0
- package/dist/ui/hooks/useMarketplaceData.js +64 -0
- package/dist/ui/hooks/useMarketplaceData.js.map +1 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/index.js +6 -0
- package/dist/ui/renderers/index.d.ts +2 -0
- package/dist/ui/renderers/index.js +3 -0
- package/dist/ui/renderers/marketplace.markdown.d.ts +28 -0
- package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/marketplace.markdown.js +244 -0
- package/dist/ui/renderers/marketplace.markdown.js.map +1 -0
- 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,
|
|
1
|
+
{"version":3,"file":"product.operations.d.ts","names":[],"sources":["../../src/product/product.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAgBa,oDAAqB,yCAAA;EAArB,OAAA,EAAA;IAkDX,IAAA,EAAA,0BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;EAlDgC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,0BAAA,CAAA;;;;;;EAAA,CAAA;EAuDrB,IAAA,EAAA;IA8BX,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;8CA9B+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAApB,mDAAoB,yCAAA;;UA8B/B,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9B+B,0BAAA,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _contractspec_lib_contracts8 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_contracts8.PresentationSpec;
|
|
5
|
+
declare const ProductDetailPresentation: _contractspec_lib_contracts8.PresentationSpec;
|
|
6
|
+
declare const ProductEditorPresentation: _contractspec_lib_contracts8.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":";;;
|
|
1
|
+
{"version":3,"file":"product.presentation.d.ts","names":[],"sources":["../../src/product/product.presentation.ts"],"sourcesContent":[],"mappings":";;;cAGa,4BAuBX,4BAAA,CAvBqC;cAyB1B,2BAuBX,4BAAA,CAvBoC;cAyBzB,2BAuBX,4BAAA,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":[
|
|
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
|
|
1
|
+
import * as _contractspec_lib_schema268 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:
|
|
7
|
+
declare const ProductModel: _contractspec_lib_schema268.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
storeId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
|
-
type:
|
|
17
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
slug: {
|
|
21
|
-
type:
|
|
21
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
description: {
|
|
25
|
-
type:
|
|
25
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
26
26
|
isOptional: true;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema268.EnumType<[string, string, string, string, string, string]>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
price: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
currency: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
quantity: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
categoryId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
primaryImageId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
50
50
|
isOptional: true;
|
|
51
51
|
};
|
|
52
52
|
averageRating: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
totalSold: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
createdAt: {
|
|
61
|
-
type:
|
|
61
|
+
type: _contractspec_lib_schema268.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:
|
|
68
|
+
declare const CreateProductInputModel: _contractspec_lib_schema268.SchemaModel<{
|
|
69
69
|
storeId: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
name: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
slug: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
description: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
83
83
|
isOptional: true;
|
|
84
84
|
};
|
|
85
85
|
price: {
|
|
86
|
-
type:
|
|
86
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
currency: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
quantity: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
categoryId: {
|
|
98
|
-
type:
|
|
98
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
sku: {
|
|
102
|
-
type:
|
|
102
|
+
type: _contractspec_lib_schema268.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:
|
|
109
|
+
declare const ListProductsInputModel: _contractspec_lib_schema268.SchemaModel<{
|
|
110
110
|
storeId: {
|
|
111
|
-
type:
|
|
111
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
112
112
|
isOptional: true;
|
|
113
113
|
};
|
|
114
114
|
categoryId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
116
116
|
isOptional: true;
|
|
117
117
|
};
|
|
118
118
|
status: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema268.EnumType<[string, string, string, string, string, string]>;
|
|
120
120
|
isOptional: true;
|
|
121
121
|
};
|
|
122
122
|
search: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
124
124
|
isOptional: true;
|
|
125
125
|
};
|
|
126
126
|
minPrice: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
128
128
|
isOptional: true;
|
|
129
129
|
};
|
|
130
130
|
maxPrice: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
limit: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
136
136
|
isOptional: true;
|
|
137
137
|
defaultValue: number;
|
|
138
138
|
};
|
|
139
139
|
offset: {
|
|
140
|
-
type:
|
|
140
|
+
type: _contractspec_lib_schema268.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:
|
|
148
|
+
declare const ListProductsOutputModel: _contractspec_lib_schema268.SchemaModel<{
|
|
149
149
|
products: {
|
|
150
|
-
type:
|
|
150
|
+
type: _contractspec_lib_schema268.SchemaModel<{
|
|
151
151
|
id: {
|
|
152
|
-
type:
|
|
152
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
storeId: {
|
|
156
|
-
type:
|
|
156
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
name: {
|
|
160
|
-
type:
|
|
160
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
161
161
|
isOptional: false;
|
|
162
162
|
};
|
|
163
163
|
slug: {
|
|
164
|
-
type:
|
|
164
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
description: {
|
|
168
|
-
type:
|
|
168
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
169
169
|
isOptional: true;
|
|
170
170
|
};
|
|
171
171
|
status: {
|
|
172
|
-
type:
|
|
172
|
+
type: _contractspec_lib_schema268.EnumType<[string, string, string, string, string, string]>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
price: {
|
|
176
|
-
type:
|
|
176
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
currency: {
|
|
180
|
-
type:
|
|
180
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
quantity: {
|
|
184
|
-
type:
|
|
184
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
categoryId: {
|
|
188
|
-
type:
|
|
188
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
189
189
|
isOptional: true;
|
|
190
190
|
};
|
|
191
191
|
primaryImageId: {
|
|
192
|
-
type:
|
|
192
|
+
type: _contractspec_lib_schema268.FieldType<string, string>;
|
|
193
193
|
isOptional: true;
|
|
194
194
|
};
|
|
195
195
|
averageRating: {
|
|
196
|
-
type:
|
|
196
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
totalSold: {
|
|
200
|
-
type:
|
|
200
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
201
201
|
isOptional: false;
|
|
202
202
|
};
|
|
203
203
|
createdAt: {
|
|
204
|
-
type:
|
|
204
|
+
type: _contractspec_lib_schema268.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:
|
|
212
|
+
type: _contractspec_lib_schema268.FieldType<number, number>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema357 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:
|
|
7
|
+
declare const ReviewStatusEnum: _contractspec_lib_schema357.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
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts21 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema358 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/review/review.event.d.ts
|
|
5
|
-
declare const ReviewCreatedEvent:
|
|
5
|
+
declare const ReviewCreatedEvent: _contractspec_lib_contracts21.EventSpec<_contractspec_lib_schema358.SchemaModel<{
|
|
6
6
|
reviewId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
productId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
storeId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
16
16
|
isOptional: true;
|
|
17
17
|
};
|
|
18
18
|
authorId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
rating: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema358.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
isVerifiedPurchase: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema358.FieldType<boolean, boolean>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
timestamp: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema358.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const ReviewRespondedEvent:
|
|
35
|
+
declare const ReviewRespondedEvent: _contractspec_lib_contracts21.EventSpec<_contractspec_lib_schema358.SchemaModel<{
|
|
36
36
|
reviewId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
responseId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
authorId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema358.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
timestamp: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema358.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({
|