@contractspec/example.marketplace 1.56.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/docs/index.js +103 -0
- package/dist/browser/docs/marketplace.docblock.js +103 -0
- package/dist/browser/entities/index.js +721 -0
- package/dist/browser/entities/order.js +167 -0
- package/dist/browser/entities/payout.js +142 -0
- package/dist/browser/entities/product.js +152 -0
- package/dist/browser/entities/review.js +129 -0
- package/dist/browser/entities/store.js +97 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/index.js +303 -0
- package/dist/browser/handlers/marketplace.handlers.js +303 -0
- package/dist/browser/index.js +2016 -0
- package/dist/browser/marketplace.capability.js +40 -0
- package/dist/browser/marketplace.feature.js +137 -0
- package/dist/browser/order/index.js +307 -0
- package/dist/browser/order/order.enum.js +17 -0
- package/dist/browser/order/order.event.js +131 -0
- package/dist/browser/order/order.operations.js +172 -0
- package/dist/browser/order/order.presentation.js +153 -0
- package/dist/browser/order/order.schema.js +79 -0
- package/dist/browser/payout/index.js +152 -0
- package/dist/browser/payout/payout.enum.js +12 -0
- package/dist/browser/payout/payout.event.js +55 -0
- package/dist/browser/payout/payout.operations.js +94 -0
- package/dist/browser/payout/payout.presentation.js +111 -0
- package/dist/browser/payout/payout.schema.js +61 -0
- package/dist/browser/product/index.js +249 -0
- package/dist/browser/product/product.enum.js +13 -0
- package/dist/browser/product/product.event.js +74 -0
- package/dist/browser/product/product.operations.js +171 -0
- package/dist/browser/product/product.presentation.js +158 -0
- package/dist/browser/product/product.schema.js +84 -0
- package/dist/browser/review/index.js +206 -0
- package/dist/browser/review/review.enum.js +11 -0
- package/dist/browser/review/review.event.js +50 -0
- package/dist/browser/review/review.operations.js +152 -0
- package/dist/browser/review/review.presentation.js +123 -0
- package/dist/browser/review/review.schema.js +74 -0
- package/dist/browser/seeders/index.js +12 -0
- package/dist/browser/store/index.js +142 -0
- package/dist/browser/store/store.enum.js +11 -0
- package/dist/browser/store/store.event.js +52 -0
- package/dist/browser/store/store.operations.js +88 -0
- package/dist/browser/store/store.presentation.js +94 -0
- package/dist/browser/store/store.schema.js +43 -0
- package/dist/browser/tests/operations.test-spec.js +139 -0
- package/dist/browser/ui/MarketplaceDashboard.js +418 -0
- package/dist/browser/ui/hooks/index.js +59 -0
- package/dist/browser/ui/hooks/useMarketplaceData.js +56 -0
- package/dist/browser/ui/index.js +668 -0
- package/dist/browser/ui/renderers/index.js +248 -0
- package/dist/browser/ui/renderers/marketplace.markdown.js +248 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +104 -1
- package/dist/docs/marketplace.docblock.d.ts +2 -1
- package/dist/docs/marketplace.docblock.d.ts.map +1 -0
- package/dist/docs/marketplace.docblock.js +46 -57
- package/dist/entities/index.d.ts +302 -307
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +719 -43
- package/dist/entities/order.d.ts +77 -82
- package/dist/entities/order.d.ts.map +1 -1
- package/dist/entities/order.js +162 -167
- package/dist/entities/payout.d.ts +64 -69
- package/dist/entities/payout.d.ts.map +1 -1
- package/dist/entities/payout.js +137 -156
- package/dist/entities/product.d.ts +69 -74
- package/dist/entities/product.d.ts.map +1 -1
- package/dist/entities/product.js +148 -156
- package/dist/entities/review.d.ts +55 -60
- package/dist/entities/review.d.ts.map +1 -1
- package/dist/entities/review.js +124 -146
- package/dist/entities/store.d.ts +40 -45
- package/dist/entities/store.d.ts.map +1 -1
- package/dist/entities/store.js +94 -106
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +40 -55
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +304 -3
- package/dist/handlers/marketplace.handlers.d.ts +138 -138
- package/dist/handlers/marketplace.handlers.d.ts.map +1 -1
- package/dist/handlers/marketplace.handlers.js +284 -309
- package/dist/index.d.ts +13 -31
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2017 -32
- package/dist/marketplace.capability.d.ts +3 -8
- package/dist/marketplace.capability.d.ts.map +1 -1
- package/dist/marketplace.capability.js +41 -34
- package/dist/marketplace.feature.d.ts +1 -7
- package/dist/marketplace.feature.d.ts.map +1 -1
- package/dist/marketplace.feature.js +136 -313
- package/dist/node/docs/index.js +103 -0
- package/dist/node/docs/marketplace.docblock.js +103 -0
- package/dist/node/entities/index.js +721 -0
- package/dist/node/entities/order.js +167 -0
- package/dist/node/entities/payout.js +142 -0
- package/dist/node/entities/product.js +152 -0
- package/dist/node/entities/review.js +129 -0
- package/dist/node/entities/store.js +97 -0
- package/dist/node/example.js +42 -0
- package/dist/node/handlers/index.js +303 -0
- package/dist/node/handlers/marketplace.handlers.js +303 -0
- package/dist/node/index.js +2016 -0
- package/dist/node/marketplace.capability.js +40 -0
- package/dist/node/marketplace.feature.js +137 -0
- package/dist/node/order/index.js +307 -0
- package/dist/node/order/order.enum.js +17 -0
- package/dist/node/order/order.event.js +131 -0
- package/dist/node/order/order.operations.js +172 -0
- package/dist/node/order/order.presentation.js +153 -0
- package/dist/node/order/order.schema.js +79 -0
- package/dist/node/payout/index.js +152 -0
- package/dist/node/payout/payout.enum.js +12 -0
- package/dist/node/payout/payout.event.js +55 -0
- package/dist/node/payout/payout.operations.js +94 -0
- package/dist/node/payout/payout.presentation.js +111 -0
- package/dist/node/payout/payout.schema.js +61 -0
- package/dist/node/product/index.js +249 -0
- package/dist/node/product/product.enum.js +13 -0
- package/dist/node/product/product.event.js +74 -0
- package/dist/node/product/product.operations.js +171 -0
- package/dist/node/product/product.presentation.js +158 -0
- package/dist/node/product/product.schema.js +84 -0
- package/dist/node/review/index.js +206 -0
- package/dist/node/review/review.enum.js +11 -0
- package/dist/node/review/review.event.js +50 -0
- package/dist/node/review/review.operations.js +152 -0
- package/dist/node/review/review.presentation.js +123 -0
- package/dist/node/review/review.schema.js +74 -0
- package/dist/node/seeders/index.js +12 -0
- package/dist/node/store/index.js +142 -0
- package/dist/node/store/store.enum.js +11 -0
- package/dist/node/store/store.event.js +52 -0
- package/dist/node/store/store.operations.js +88 -0
- package/dist/node/store/store.presentation.js +94 -0
- package/dist/node/store/store.schema.js +43 -0
- package/dist/node/tests/operations.test-spec.js +139 -0
- package/dist/node/ui/MarketplaceDashboard.js +418 -0
- package/dist/node/ui/hooks/index.js +59 -0
- package/dist/node/ui/hooks/useMarketplaceData.js +56 -0
- package/dist/node/ui/index.js +668 -0
- package/dist/node/ui/renderers/index.js +248 -0
- package/dist/node/ui/renderers/marketplace.markdown.js +248 -0
- package/dist/order/index.d.ts +8 -5
- package/dist/order/index.d.ts.map +1 -0
- package/dist/order/index.js +307 -5
- package/dist/order/order.enum.d.ts +1 -6
- package/dist/order/order.enum.d.ts.map +1 -1
- package/dist/order/order.enum.js +16 -20
- package/dist/order/order.event.d.ts +133 -139
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.event.js +121 -205
- package/dist/order/order.operations.d.ts +291 -297
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.operations.js +169 -115
- package/dist/order/order.presentation.d.ts +3 -8
- package/dist/order/order.presentation.d.ts.map +1 -1
- package/dist/order/order.presentation.js +149 -81
- package/dist/order/order.schema.d.ts +143 -148
- package/dist/order/order.schema.d.ts.map +1 -1
- package/dist/order/order.schema.js +75 -150
- package/dist/payout/index.d.ts +8 -5
- package/dist/payout/index.d.ts.map +1 -0
- package/dist/payout/index.js +152 -5
- package/dist/payout/payout.enum.d.ts +1 -6
- package/dist/payout/payout.enum.d.ts.map +1 -1
- package/dist/payout/payout.enum.js +11 -15
- package/dist/payout/payout.event.d.ts +54 -60
- package/dist/payout/payout.event.d.ts.map +1 -1
- package/dist/payout/payout.event.js +51 -87
- package/dist/payout/payout.operations.d.ts +82 -88
- package/dist/payout/payout.operations.d.ts.map +1 -1
- package/dist/payout/payout.operations.js +92 -50
- package/dist/payout/payout.presentation.d.ts +2 -7
- package/dist/payout/payout.presentation.d.ts.map +1 -1
- package/dist/payout/payout.presentation.js +108 -56
- package/dist/payout/payout.schema.d.ts +139 -144
- package/dist/payout/payout.schema.d.ts.map +1 -1
- package/dist/payout/payout.schema.js +58 -112
- package/dist/product/index.d.ts +8 -5
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +249 -5
- package/dist/product/product.enum.d.ts +1 -6
- package/dist/product/product.enum.d.ts.map +1 -1
- package/dist/product/product.enum.js +12 -16
- package/dist/product/product.event.d.ts +63 -69
- package/dist/product/product.event.d.ts.map +1 -1
- package/dist/product/product.event.js +68 -113
- package/dist/product/product.operations.d.ts +225 -231
- package/dist/product/product.operations.d.ts.map +1 -1
- package/dist/product/product.operations.js +168 -104
- package/dist/product/product.presentation.d.ts +3 -8
- package/dist/product/product.presentation.d.ts.map +1 -1
- package/dist/product/product.presentation.js +154 -81
- package/dist/product/product.schema.d.ts +196 -201
- package/dist/product/product.schema.d.ts.map +1 -1
- package/dist/product/product.schema.js +80 -171
- package/dist/review/index.d.ts +8 -5
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/index.js +206 -5
- package/dist/review/review.enum.d.ts +1 -6
- package/dist/review/review.enum.d.ts.map +1 -1
- package/dist/review/review.enum.js +10 -14
- package/dist/review/review.event.d.ts +46 -52
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.event.js +46 -79
- package/dist/review/review.operations.d.ts +190 -196
- package/dist/review/review.operations.d.ts.map +1 -1
- package/dist/review/review.operations.js +149 -102
- package/dist/review/review.presentation.d.ts +2 -7
- package/dist/review/review.presentation.d.ts.map +1 -1
- package/dist/review/review.presentation.js +120 -56
- package/dist/review/review.schema.d.ts +164 -169
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/review/review.schema.js +70 -151
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +11 -16
- package/dist/store/index.d.ts +8 -5
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +142 -5
- package/dist/store/store.enum.d.ts +1 -6
- package/dist/store/store.enum.d.ts.map +1 -1
- package/dist/store/store.enum.js +10 -14
- package/dist/store/store.event.d.ts +42 -48
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.event.js +48 -75
- package/dist/store/store.operations.d.ts +98 -104
- package/dist/store/store.operations.d.ts.map +1 -1
- package/dist/store/store.operations.js +86 -58
- package/dist/store/store.presentation.d.ts +2 -7
- package/dist/store/store.presentation.d.ts.map +1 -1
- package/dist/store/store.presentation.js +91 -56
- package/dist/store/store.schema.d.ts +70 -75
- package/dist/store/store.schema.d.ts.map +1 -1
- package/dist/store/store.schema.js +41 -90
- package/dist/tests/operations.test-spec.d.ts +5 -10
- package/dist/tests/operations.test-spec.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.js +134 -146
- package/dist/ui/MarketplaceDashboard.d.ts +1 -6
- package/dist/ui/MarketplaceDashboard.d.ts.map +1 -1
- package/dist/ui/MarketplaceDashboard.js +413 -313
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +59 -4
- package/dist/ui/hooks/useMarketplaceData.d.ts +16 -20
- package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -1
- package/dist/ui/hooks/useMarketplaceData.js +53 -60
- package/dist/ui/index.d.ts +7 -6
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +668 -5
- package/dist/ui/renderers/index.d.ts +2 -2
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +249 -3
- package/dist/ui/renderers/marketplace.markdown.d.ts +13 -15
- package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/marketplace.markdown.js +241 -236
- package/package.json +529 -110
- package/dist/docs/marketplace.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/order.js.map +0 -1
- package/dist/entities/payout.js.map +0 -1
- package/dist/entities/product.js.map +0 -1
- package/dist/entities/review.js.map +0 -1
- package/dist/entities/store.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/marketplace.handlers.js.map +0 -1
- package/dist/marketplace.capability.js.map +0 -1
- package/dist/marketplace.feature.js.map +0 -1
- package/dist/order/order.enum.js.map +0 -1
- package/dist/order/order.event.js.map +0 -1
- package/dist/order/order.operations.js.map +0 -1
- package/dist/order/order.presentation.js.map +0 -1
- package/dist/order/order.schema.js.map +0 -1
- package/dist/payout/payout.enum.js.map +0 -1
- package/dist/payout/payout.event.js.map +0 -1
- package/dist/payout/payout.operations.js.map +0 -1
- package/dist/payout/payout.presentation.js.map +0 -1
- package/dist/payout/payout.schema.js.map +0 -1
- package/dist/product/product.enum.js.map +0 -1
- package/dist/product/product.event.js.map +0 -1
- package/dist/product/product.operations.js.map +0 -1
- package/dist/product/product.presentation.js.map +0 -1
- package/dist/product/product.schema.js.map +0 -1
- package/dist/review/review.enum.js.map +0 -1
- package/dist/review/review.event.js.map +0 -1
- package/dist/review/review.operations.js.map +0 -1
- package/dist/review/review.presentation.js.map +0 -1
- package/dist/review/review.schema.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/store/store.enum.js.map +0 -1
- package/dist/store/store.event.js.map +0 -1
- package/dist/store/store.operations.js.map +0 -1
- package/dist/store/store.presentation.js.map +0 -1
- package/dist/store/store.schema.js.map +0 -1
- package/dist/tests/operations.test-spec.js.map +0 -1
- package/dist/ui/MarketplaceDashboard.js.map +0 -1
- package/dist/ui/hooks/useMarketplaceData.js.map +0 -1
- package/dist/ui/renderers/marketplace.markdown.js.map +0 -1
|
@@ -1,273 +1,267 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts22 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as _contractspec_lib_schema856 from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/product/product.operations.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Create a new product listing.
|
|
7
3
|
*/
|
|
8
|
-
declare const CreateProductContract:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}>,
|
|
46
|
-
id: {
|
|
47
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
48
|
-
isOptional: false;
|
|
49
|
-
};
|
|
50
|
-
storeId: {
|
|
51
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
52
|
-
isOptional: false;
|
|
53
|
-
};
|
|
54
|
-
name: {
|
|
55
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
56
|
-
isOptional: false;
|
|
57
|
-
};
|
|
58
|
-
slug: {
|
|
59
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
60
|
-
isOptional: false;
|
|
61
|
-
};
|
|
62
|
-
description: {
|
|
63
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
64
|
-
isOptional: true;
|
|
65
|
-
};
|
|
66
|
-
status: {
|
|
67
|
-
type: _contractspec_lib_schema856.EnumType<[string, string, string, string, string, string]>;
|
|
68
|
-
isOptional: false;
|
|
69
|
-
};
|
|
70
|
-
price: {
|
|
71
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
72
|
-
isOptional: false;
|
|
73
|
-
};
|
|
74
|
-
currency: {
|
|
75
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
76
|
-
isOptional: false;
|
|
77
|
-
};
|
|
78
|
-
quantity: {
|
|
79
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
80
|
-
isOptional: false;
|
|
81
|
-
};
|
|
82
|
-
categoryId: {
|
|
83
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
84
|
-
isOptional: true;
|
|
85
|
-
};
|
|
86
|
-
primaryImageId: {
|
|
87
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
88
|
-
isOptional: true;
|
|
89
|
-
};
|
|
90
|
-
averageRating: {
|
|
91
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
92
|
-
isOptional: false;
|
|
93
|
-
};
|
|
94
|
-
totalSold: {
|
|
95
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
96
|
-
isOptional: false;
|
|
97
|
-
};
|
|
98
|
-
createdAt: {
|
|
99
|
-
type: _contractspec_lib_schema856.FieldType<Date, string>;
|
|
100
|
-
isOptional: false;
|
|
101
|
-
};
|
|
102
|
-
}>, {
|
|
103
|
-
key: string;
|
|
104
|
-
version: string;
|
|
105
|
-
when: string;
|
|
106
|
-
payload: _contractspec_lib_schema856.SchemaModel<{
|
|
4
|
+
export declare const CreateProductContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
storeId: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
name: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
slug: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
description: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
price: {
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
currency: {
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
quantity: {
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
categoryId: {
|
|
34
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
sku: {
|
|
38
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
39
|
+
isOptional: true;
|
|
40
|
+
};
|
|
41
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
107
42
|
id: {
|
|
108
|
-
|
|
109
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
110
45
|
};
|
|
111
46
|
storeId: {
|
|
112
|
-
|
|
113
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
114
49
|
};
|
|
115
50
|
name: {
|
|
116
|
-
|
|
117
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
118
53
|
};
|
|
119
54
|
slug: {
|
|
120
|
-
|
|
121
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
|
+
isOptional: false;
|
|
122
57
|
};
|
|
123
58
|
description: {
|
|
124
|
-
|
|
125
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: true;
|
|
126
61
|
};
|
|
127
62
|
status: {
|
|
128
|
-
|
|
129
|
-
|
|
63
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
|
|
64
|
+
isOptional: false;
|
|
130
65
|
};
|
|
131
66
|
price: {
|
|
132
|
-
|
|
133
|
-
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
68
|
+
isOptional: false;
|
|
134
69
|
};
|
|
135
70
|
currency: {
|
|
136
|
-
|
|
137
|
-
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
72
|
+
isOptional: false;
|
|
138
73
|
};
|
|
139
74
|
quantity: {
|
|
140
|
-
|
|
141
|
-
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
76
|
+
isOptional: false;
|
|
142
77
|
};
|
|
143
78
|
categoryId: {
|
|
144
|
-
|
|
145
|
-
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
80
|
+
isOptional: true;
|
|
146
81
|
};
|
|
147
82
|
primaryImageId: {
|
|
148
|
-
|
|
149
|
-
|
|
83
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
84
|
+
isOptional: true;
|
|
150
85
|
};
|
|
151
86
|
averageRating: {
|
|
152
|
-
|
|
153
|
-
|
|
87
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
88
|
+
isOptional: false;
|
|
154
89
|
};
|
|
155
90
|
totalSold: {
|
|
156
|
-
|
|
157
|
-
|
|
91
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
92
|
+
isOptional: false;
|
|
158
93
|
};
|
|
159
94
|
createdAt: {
|
|
160
|
-
|
|
161
|
-
|
|
95
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
96
|
+
isOptional: false;
|
|
162
97
|
};
|
|
163
|
-
|
|
98
|
+
}>, {
|
|
99
|
+
key: string;
|
|
100
|
+
version: string;
|
|
101
|
+
when: string;
|
|
102
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
103
|
+
id: {
|
|
104
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
105
|
+
isOptional: false;
|
|
106
|
+
};
|
|
107
|
+
storeId: {
|
|
108
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
name: {
|
|
112
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
slug: {
|
|
116
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
description: {
|
|
120
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
121
|
+
isOptional: true;
|
|
122
|
+
};
|
|
123
|
+
status: {
|
|
124
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
price: {
|
|
128
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
129
|
+
isOptional: false;
|
|
130
|
+
};
|
|
131
|
+
currency: {
|
|
132
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
133
|
+
isOptional: false;
|
|
134
|
+
};
|
|
135
|
+
quantity: {
|
|
136
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
137
|
+
isOptional: false;
|
|
138
|
+
};
|
|
139
|
+
categoryId: {
|
|
140
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
141
|
+
isOptional: true;
|
|
142
|
+
};
|
|
143
|
+
primaryImageId: {
|
|
144
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
145
|
+
isOptional: true;
|
|
146
|
+
};
|
|
147
|
+
averageRating: {
|
|
148
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
149
|
+
isOptional: false;
|
|
150
|
+
};
|
|
151
|
+
totalSold: {
|
|
152
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
153
|
+
isOptional: false;
|
|
154
|
+
};
|
|
155
|
+
createdAt: {
|
|
156
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
157
|
+
isOptional: false;
|
|
158
|
+
};
|
|
159
|
+
}>;
|
|
164
160
|
}[]>;
|
|
165
161
|
/**
|
|
166
162
|
* List products with filters.
|
|
167
163
|
*/
|
|
168
|
-
declare const ListProductsContract:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
isOptional: true;
|
|
172
|
-
};
|
|
173
|
-
categoryId: {
|
|
174
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
175
|
-
isOptional: true;
|
|
176
|
-
};
|
|
177
|
-
status: {
|
|
178
|
-
type: _contractspec_lib_schema856.EnumType<[string, string, string, string, string, string]>;
|
|
179
|
-
isOptional: true;
|
|
180
|
-
};
|
|
181
|
-
search: {
|
|
182
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
183
|
-
isOptional: true;
|
|
184
|
-
};
|
|
185
|
-
minPrice: {
|
|
186
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
187
|
-
isOptional: true;
|
|
188
|
-
};
|
|
189
|
-
maxPrice: {
|
|
190
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
191
|
-
isOptional: true;
|
|
192
|
-
};
|
|
193
|
-
limit: {
|
|
194
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
195
|
-
isOptional: true;
|
|
196
|
-
defaultValue: number;
|
|
197
|
-
};
|
|
198
|
-
offset: {
|
|
199
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
200
|
-
isOptional: true;
|
|
201
|
-
defaultValue: number;
|
|
202
|
-
};
|
|
203
|
-
}>, _contractspec_lib_schema856.SchemaModel<{
|
|
204
|
-
products: {
|
|
205
|
-
type: _contractspec_lib_schema856.SchemaModel<{
|
|
206
|
-
id: {
|
|
207
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
208
|
-
isOptional: false;
|
|
209
|
-
};
|
|
210
|
-
storeId: {
|
|
211
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
212
|
-
isOptional: false;
|
|
213
|
-
};
|
|
214
|
-
name: {
|
|
215
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
216
|
-
isOptional: false;
|
|
217
|
-
};
|
|
218
|
-
slug: {
|
|
219
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
220
|
-
isOptional: false;
|
|
221
|
-
};
|
|
222
|
-
description: {
|
|
223
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
164
|
+
export declare const ListProductsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
165
|
+
storeId: {
|
|
166
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
224
167
|
isOptional: true;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
type:
|
|
228
|
-
isOptional: false;
|
|
229
|
-
};
|
|
230
|
-
price: {
|
|
231
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
232
|
-
isOptional: false;
|
|
233
|
-
};
|
|
234
|
-
currency: {
|
|
235
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
236
|
-
isOptional: false;
|
|
237
|
-
};
|
|
238
|
-
quantity: {
|
|
239
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
240
|
-
isOptional: false;
|
|
241
|
-
};
|
|
242
|
-
categoryId: {
|
|
243
|
-
type: _contractspec_lib_schema856.FieldType<string, string>;
|
|
168
|
+
};
|
|
169
|
+
categoryId: {
|
|
170
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
244
171
|
isOptional: true;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
type:
|
|
172
|
+
};
|
|
173
|
+
status: {
|
|
174
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
|
|
248
175
|
isOptional: true;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
type:
|
|
252
|
-
isOptional:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
type:
|
|
176
|
+
};
|
|
177
|
+
search: {
|
|
178
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
179
|
+
isOptional: true;
|
|
180
|
+
};
|
|
181
|
+
minPrice: {
|
|
182
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
183
|
+
isOptional: true;
|
|
184
|
+
};
|
|
185
|
+
maxPrice: {
|
|
186
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
187
|
+
isOptional: true;
|
|
188
|
+
};
|
|
189
|
+
limit: {
|
|
190
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
191
|
+
isOptional: true;
|
|
192
|
+
defaultValue: number;
|
|
193
|
+
};
|
|
194
|
+
offset: {
|
|
195
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
defaultValue: number;
|
|
198
|
+
};
|
|
199
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
200
|
+
products: {
|
|
201
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
202
|
+
id: {
|
|
203
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
204
|
+
isOptional: false;
|
|
205
|
+
};
|
|
206
|
+
storeId: {
|
|
207
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
208
|
+
isOptional: false;
|
|
209
|
+
};
|
|
210
|
+
name: {
|
|
211
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
212
|
+
isOptional: false;
|
|
213
|
+
};
|
|
214
|
+
slug: {
|
|
215
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
216
|
+
isOptional: false;
|
|
217
|
+
};
|
|
218
|
+
description: {
|
|
219
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
220
|
+
isOptional: true;
|
|
221
|
+
};
|
|
222
|
+
status: {
|
|
223
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
|
|
224
|
+
isOptional: false;
|
|
225
|
+
};
|
|
226
|
+
price: {
|
|
227
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
228
|
+
isOptional: false;
|
|
229
|
+
};
|
|
230
|
+
currency: {
|
|
231
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
232
|
+
isOptional: false;
|
|
233
|
+
};
|
|
234
|
+
quantity: {
|
|
235
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
236
|
+
isOptional: false;
|
|
237
|
+
};
|
|
238
|
+
categoryId: {
|
|
239
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
240
|
+
isOptional: true;
|
|
241
|
+
};
|
|
242
|
+
primaryImageId: {
|
|
243
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
244
|
+
isOptional: true;
|
|
245
|
+
};
|
|
246
|
+
averageRating: {
|
|
247
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
248
|
+
isOptional: false;
|
|
249
|
+
};
|
|
250
|
+
totalSold: {
|
|
251
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
252
|
+
isOptional: false;
|
|
253
|
+
};
|
|
254
|
+
createdAt: {
|
|
255
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
256
|
+
isOptional: false;
|
|
257
|
+
};
|
|
258
|
+
}>;
|
|
259
|
+
isArray: true;
|
|
256
260
|
isOptional: false;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
type:
|
|
261
|
+
};
|
|
262
|
+
total: {
|
|
263
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
260
264
|
isOptional: false;
|
|
261
|
-
|
|
262
|
-
}>;
|
|
263
|
-
isArray: true;
|
|
264
|
-
isOptional: false;
|
|
265
|
-
};
|
|
266
|
-
total: {
|
|
267
|
-
type: _contractspec_lib_schema856.FieldType<number, number>;
|
|
268
|
-
isOptional: false;
|
|
269
|
-
};
|
|
265
|
+
};
|
|
270
266
|
}>, undefined>;
|
|
271
|
-
//#endregion
|
|
272
|
-
export { CreateProductContract, ListProductsContract };
|
|
273
267
|
//# sourceMappingURL=product.operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.operations.d.ts","
|
|
1
|
+
{"version":3,"file":"product.operations.d.ts","sourceRoot":"","sources":["../../src/product/product.operations.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8B/B,CAAC"}
|