@lssm/example.marketplace 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060433

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 (43) hide show
  1. package/dist/docs/index.d.ts +1 -0
  2. package/dist/docs/marketplace.docblock.d.ts +1 -0
  3. package/dist/entities/index.d.ts +308 -0
  4. package/dist/entities/order.d.ts +104 -0
  5. package/dist/entities/payout.d.ts +91 -0
  6. package/dist/entities/product.d.ts +92 -0
  7. package/dist/entities/review.d.ts +82 -0
  8. package/dist/entities/store.d.ts +59 -0
  9. package/dist/example.d.ts +39 -0
  10. package/dist/index.d.ts +26 -0
  11. package/dist/marketplace.feature.d.ts +11 -0
  12. package/dist/order/index.d.ts +5 -0
  13. package/dist/order/order.contracts.d.ts +367 -0
  14. package/dist/order/order.enum.d.ts +9 -0
  15. package/dist/order/order.event.d.ts +144 -0
  16. package/dist/order/order.presentation.d.ts +8 -0
  17. package/dist/order/order.schema.d.ts +164 -0
  18. package/dist/payout/index.d.ts +5 -0
  19. package/dist/payout/payout.contracts.d.ts +96 -0
  20. package/dist/payout/payout.enum.d.ts +9 -0
  21. package/dist/payout/payout.event.d.ts +62 -0
  22. package/dist/payout/payout.presentation.d.ts +7 -0
  23. package/dist/payout/payout.schema.d.ts +156 -0
  24. package/dist/product/index.d.ts +5 -0
  25. package/dist/product/product.contracts.d.ts +272 -0
  26. package/dist/product/product.enum.d.ts +9 -0
  27. package/dist/product/product.event.d.ts +72 -0
  28. package/dist/product/product.presentation.d.ts +8 -0
  29. package/dist/product/product.schema.d.ts +217 -0
  30. package/dist/review/index.d.ts +5 -0
  31. package/dist/review/review.contracts.d.ts +236 -0
  32. package/dist/review/review.enum.d.ts +9 -0
  33. package/dist/review/review.event.d.ts +54 -0
  34. package/dist/review/review.presentation.d.ts +7 -0
  35. package/dist/review/review.schema.d.ts +189 -0
  36. package/dist/store/index.d.ts +5 -0
  37. package/dist/store/store.contracts.d.ts +130 -0
  38. package/dist/store/store.enum.d.ts +9 -0
  39. package/dist/store/store.event.d.ts +50 -0
  40. package/dist/store/store.presentation.d.ts +7 -0
  41. package/dist/store/store.schema.d.ts +83 -0
  42. package/package.json +53 -53
  43. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,272 @@
1
+ import * as _lssm_lib_schema981 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts7 from "@lssm/lib.contracts";
3
+
4
+ //#region src/product/product.contracts.d.ts
5
+ /**
6
+ * Create a new product listing.
7
+ */
8
+ declare const CreateProductContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema981.SchemaModel<{
9
+ storeId: {
10
+ type: _lssm_lib_schema981.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ name: {
14
+ type: _lssm_lib_schema981.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ slug: {
18
+ type: _lssm_lib_schema981.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ description: {
22
+ type: _lssm_lib_schema981.FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ price: {
26
+ type: _lssm_lib_schema981.FieldType<number, number>;
27
+ isOptional: false;
28
+ };
29
+ currency: {
30
+ type: _lssm_lib_schema981.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ quantity: {
34
+ type: _lssm_lib_schema981.FieldType<number, number>;
35
+ isOptional: true;
36
+ };
37
+ categoryId: {
38
+ type: _lssm_lib_schema981.FieldType<string, string>;
39
+ isOptional: true;
40
+ };
41
+ sku: {
42
+ type: _lssm_lib_schema981.FieldType<string, string>;
43
+ isOptional: true;
44
+ };
45
+ }>, _lssm_lib_schema981.SchemaModel<{
46
+ id: {
47
+ type: _lssm_lib_schema981.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ storeId: {
51
+ type: _lssm_lib_schema981.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ name: {
55
+ type: _lssm_lib_schema981.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ slug: {
59
+ type: _lssm_lib_schema981.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ description: {
63
+ type: _lssm_lib_schema981.FieldType<string, string>;
64
+ isOptional: true;
65
+ };
66
+ status: {
67
+ type: _lssm_lib_schema981.EnumType<[string, string, string, string, string, string]>;
68
+ isOptional: false;
69
+ };
70
+ price: {
71
+ type: _lssm_lib_schema981.FieldType<number, number>;
72
+ isOptional: false;
73
+ };
74
+ currency: {
75
+ type: _lssm_lib_schema981.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ quantity: {
79
+ type: _lssm_lib_schema981.FieldType<number, number>;
80
+ isOptional: false;
81
+ };
82
+ categoryId: {
83
+ type: _lssm_lib_schema981.FieldType<string, string>;
84
+ isOptional: true;
85
+ };
86
+ primaryImageId: {
87
+ type: _lssm_lib_schema981.FieldType<string, string>;
88
+ isOptional: true;
89
+ };
90
+ averageRating: {
91
+ type: _lssm_lib_schema981.FieldType<number, number>;
92
+ isOptional: false;
93
+ };
94
+ totalSold: {
95
+ type: _lssm_lib_schema981.FieldType<number, number>;
96
+ isOptional: false;
97
+ };
98
+ createdAt: {
99
+ type: _lssm_lib_schema981.FieldType<Date, string>;
100
+ isOptional: false;
101
+ };
102
+ }>, {
103
+ name: string;
104
+ version: number;
105
+ when: string;
106
+ payload: _lssm_lib_schema981.SchemaModel<{
107
+ id: {
108
+ type: _lssm_lib_schema981.FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ storeId: {
112
+ type: _lssm_lib_schema981.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ name: {
116
+ type: _lssm_lib_schema981.FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ slug: {
120
+ type: _lssm_lib_schema981.FieldType<string, string>;
121
+ isOptional: false;
122
+ };
123
+ description: {
124
+ type: _lssm_lib_schema981.FieldType<string, string>;
125
+ isOptional: true;
126
+ };
127
+ status: {
128
+ type: _lssm_lib_schema981.EnumType<[string, string, string, string, string, string]>;
129
+ isOptional: false;
130
+ };
131
+ price: {
132
+ type: _lssm_lib_schema981.FieldType<number, number>;
133
+ isOptional: false;
134
+ };
135
+ currency: {
136
+ type: _lssm_lib_schema981.FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ quantity: {
140
+ type: _lssm_lib_schema981.FieldType<number, number>;
141
+ isOptional: false;
142
+ };
143
+ categoryId: {
144
+ type: _lssm_lib_schema981.FieldType<string, string>;
145
+ isOptional: true;
146
+ };
147
+ primaryImageId: {
148
+ type: _lssm_lib_schema981.FieldType<string, string>;
149
+ isOptional: true;
150
+ };
151
+ averageRating: {
152
+ type: _lssm_lib_schema981.FieldType<number, number>;
153
+ isOptional: false;
154
+ };
155
+ totalSold: {
156
+ type: _lssm_lib_schema981.FieldType<number, number>;
157
+ isOptional: false;
158
+ };
159
+ createdAt: {
160
+ type: _lssm_lib_schema981.FieldType<Date, string>;
161
+ isOptional: false;
162
+ };
163
+ }>;
164
+ }[]>;
165
+ /**
166
+ * List products with filters.
167
+ */
168
+ declare const ListProductsContract: _lssm_lib_contracts7.ContractSpec<_lssm_lib_schema981.SchemaModel<{
169
+ storeId: {
170
+ type: _lssm_lib_schema981.FieldType<string, string>;
171
+ isOptional: true;
172
+ };
173
+ categoryId: {
174
+ type: _lssm_lib_schema981.FieldType<string, string>;
175
+ isOptional: true;
176
+ };
177
+ status: {
178
+ type: _lssm_lib_schema981.EnumType<[string, string, string, string, string, string]>;
179
+ isOptional: true;
180
+ };
181
+ search: {
182
+ type: _lssm_lib_schema981.FieldType<string, string>;
183
+ isOptional: true;
184
+ };
185
+ minPrice: {
186
+ type: _lssm_lib_schema981.FieldType<number, number>;
187
+ isOptional: true;
188
+ };
189
+ maxPrice: {
190
+ type: _lssm_lib_schema981.FieldType<number, number>;
191
+ isOptional: true;
192
+ };
193
+ limit: {
194
+ type: _lssm_lib_schema981.FieldType<number, number>;
195
+ isOptional: true;
196
+ defaultValue: number;
197
+ };
198
+ offset: {
199
+ type: _lssm_lib_schema981.FieldType<number, number>;
200
+ isOptional: true;
201
+ defaultValue: number;
202
+ };
203
+ }>, _lssm_lib_schema981.SchemaModel<{
204
+ products: {
205
+ type: _lssm_lib_schema981.SchemaModel<{
206
+ id: {
207
+ type: _lssm_lib_schema981.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ storeId: {
211
+ type: _lssm_lib_schema981.FieldType<string, string>;
212
+ isOptional: false;
213
+ };
214
+ name: {
215
+ type: _lssm_lib_schema981.FieldType<string, string>;
216
+ isOptional: false;
217
+ };
218
+ slug: {
219
+ type: _lssm_lib_schema981.FieldType<string, string>;
220
+ isOptional: false;
221
+ };
222
+ description: {
223
+ type: _lssm_lib_schema981.FieldType<string, string>;
224
+ isOptional: true;
225
+ };
226
+ status: {
227
+ type: _lssm_lib_schema981.EnumType<[string, string, string, string, string, string]>;
228
+ isOptional: false;
229
+ };
230
+ price: {
231
+ type: _lssm_lib_schema981.FieldType<number, number>;
232
+ isOptional: false;
233
+ };
234
+ currency: {
235
+ type: _lssm_lib_schema981.FieldType<string, string>;
236
+ isOptional: false;
237
+ };
238
+ quantity: {
239
+ type: _lssm_lib_schema981.FieldType<number, number>;
240
+ isOptional: false;
241
+ };
242
+ categoryId: {
243
+ type: _lssm_lib_schema981.FieldType<string, string>;
244
+ isOptional: true;
245
+ };
246
+ primaryImageId: {
247
+ type: _lssm_lib_schema981.FieldType<string, string>;
248
+ isOptional: true;
249
+ };
250
+ averageRating: {
251
+ type: _lssm_lib_schema981.FieldType<number, number>;
252
+ isOptional: false;
253
+ };
254
+ totalSold: {
255
+ type: _lssm_lib_schema981.FieldType<number, number>;
256
+ isOptional: false;
257
+ };
258
+ createdAt: {
259
+ type: _lssm_lib_schema981.FieldType<Date, string>;
260
+ isOptional: false;
261
+ };
262
+ }>;
263
+ isArray: true;
264
+ isOptional: false;
265
+ };
266
+ total: {
267
+ type: _lssm_lib_schema981.FieldType<number, number>;
268
+ isOptional: false;
269
+ };
270
+ }>, undefined>;
271
+ //#endregion
272
+ export { CreateProductContract, ListProductsContract };
@@ -0,0 +1,9 @@
1
+ import * as _lssm_lib_schema885 from "@lssm/lib.schema";
2
+
3
+ //#region src/product/product.enum.d.ts
4
+ /**
5
+ * Product status enum.
6
+ */
7
+ declare const ProductStatusEnum: _lssm_lib_schema885.EnumType<[string, string, string, string, string, string]>;
8
+ //#endregion
9
+ export { ProductStatusEnum };
@@ -0,0 +1,72 @@
1
+ import * as _lssm_lib_schema1083 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
3
+
4
+ //#region src/product/product.event.d.ts
5
+ declare const ProductCreatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema1083.SchemaModel<{
6
+ productId: {
7
+ type: _lssm_lib_schema1083.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ storeId: {
11
+ type: _lssm_lib_schema1083.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ name: {
15
+ type: _lssm_lib_schema1083.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ price: {
19
+ type: _lssm_lib_schema1083.FieldType<number, number>;
20
+ isOptional: false;
21
+ };
22
+ currency: {
23
+ type: _lssm_lib_schema1083.FieldType<string, string>;
24
+ isOptional: false;
25
+ };
26
+ timestamp: {
27
+ type: _lssm_lib_schema1083.FieldType<Date, string>;
28
+ isOptional: false;
29
+ };
30
+ }>>;
31
+ declare const ProductPublishedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema1083.SchemaModel<{
32
+ productId: {
33
+ type: _lssm_lib_schema1083.FieldType<string, string>;
34
+ isOptional: false;
35
+ };
36
+ storeId: {
37
+ type: _lssm_lib_schema1083.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ timestamp: {
41
+ type: _lssm_lib_schema1083.FieldType<Date, string>;
42
+ isOptional: false;
43
+ };
44
+ }>>;
45
+ declare const InventoryUpdatedEvent: _lssm_lib_contracts11.EventSpec<_lssm_lib_schema1083.SchemaModel<{
46
+ productId: {
47
+ type: _lssm_lib_schema1083.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ variantId: {
51
+ type: _lssm_lib_schema1083.FieldType<string, string>;
52
+ isOptional: true;
53
+ };
54
+ previousQuantity: {
55
+ type: _lssm_lib_schema1083.FieldType<number, number>;
56
+ isOptional: false;
57
+ };
58
+ newQuantity: {
59
+ type: _lssm_lib_schema1083.FieldType<number, number>;
60
+ isOptional: false;
61
+ };
62
+ reason: {
63
+ type: _lssm_lib_schema1083.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ timestamp: {
67
+ type: _lssm_lib_schema1083.FieldType<Date, string>;
68
+ isOptional: false;
69
+ };
70
+ }>>;
71
+ //#endregion
72
+ export { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent };
@@ -0,0 +1,8 @@
1
+ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
2
+
3
+ //#region src/product/product.presentation.d.ts
4
+ declare const ProductCatalogPresentation: PresentationDescriptorV2;
5
+ declare const ProductDetailPresentation: PresentationDescriptorV2;
6
+ declare const ProductEditorPresentation: PresentationDescriptorV2;
7
+ //#endregion
8
+ export { ProductCatalogPresentation, ProductDetailPresentation, ProductEditorPresentation };
@@ -0,0 +1,217 @@
1
+ import * as _lssm_lib_schema834 from "@lssm/lib.schema";
2
+
3
+ //#region src/product/product.schema.d.ts
4
+ /**
5
+ * A product listing.
6
+ */
7
+ declare const ProductModel: _lssm_lib_schema834.SchemaModel<{
8
+ id: {
9
+ type: _lssm_lib_schema834.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ storeId: {
13
+ type: _lssm_lib_schema834.FieldType<string, string>;
14
+ isOptional: false;
15
+ };
16
+ name: {
17
+ type: _lssm_lib_schema834.FieldType<string, string>;
18
+ isOptional: false;
19
+ };
20
+ slug: {
21
+ type: _lssm_lib_schema834.FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ description: {
25
+ type: _lssm_lib_schema834.FieldType<string, string>;
26
+ isOptional: true;
27
+ };
28
+ status: {
29
+ type: _lssm_lib_schema834.EnumType<[string, string, string, string, string, string]>;
30
+ isOptional: false;
31
+ };
32
+ price: {
33
+ type: _lssm_lib_schema834.FieldType<number, number>;
34
+ isOptional: false;
35
+ };
36
+ currency: {
37
+ type: _lssm_lib_schema834.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ quantity: {
41
+ type: _lssm_lib_schema834.FieldType<number, number>;
42
+ isOptional: false;
43
+ };
44
+ categoryId: {
45
+ type: _lssm_lib_schema834.FieldType<string, string>;
46
+ isOptional: true;
47
+ };
48
+ primaryImageId: {
49
+ type: _lssm_lib_schema834.FieldType<string, string>;
50
+ isOptional: true;
51
+ };
52
+ averageRating: {
53
+ type: _lssm_lib_schema834.FieldType<number, number>;
54
+ isOptional: false;
55
+ };
56
+ totalSold: {
57
+ type: _lssm_lib_schema834.FieldType<number, number>;
58
+ isOptional: false;
59
+ };
60
+ createdAt: {
61
+ type: _lssm_lib_schema834.FieldType<Date, string>;
62
+ isOptional: false;
63
+ };
64
+ }>;
65
+ /**
66
+ * Input for creating a product.
67
+ */
68
+ declare const CreateProductInputModel: _lssm_lib_schema834.SchemaModel<{
69
+ storeId: {
70
+ type: _lssm_lib_schema834.FieldType<string, string>;
71
+ isOptional: false;
72
+ };
73
+ name: {
74
+ type: _lssm_lib_schema834.FieldType<string, string>;
75
+ isOptional: false;
76
+ };
77
+ slug: {
78
+ type: _lssm_lib_schema834.FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ description: {
82
+ type: _lssm_lib_schema834.FieldType<string, string>;
83
+ isOptional: true;
84
+ };
85
+ price: {
86
+ type: _lssm_lib_schema834.FieldType<number, number>;
87
+ isOptional: false;
88
+ };
89
+ currency: {
90
+ type: _lssm_lib_schema834.FieldType<string, string>;
91
+ isOptional: true;
92
+ };
93
+ quantity: {
94
+ type: _lssm_lib_schema834.FieldType<number, number>;
95
+ isOptional: true;
96
+ };
97
+ categoryId: {
98
+ type: _lssm_lib_schema834.FieldType<string, string>;
99
+ isOptional: true;
100
+ };
101
+ sku: {
102
+ type: _lssm_lib_schema834.FieldType<string, string>;
103
+ isOptional: true;
104
+ };
105
+ }>;
106
+ /**
107
+ * Input for listing products.
108
+ */
109
+ declare const ListProductsInputModel: _lssm_lib_schema834.SchemaModel<{
110
+ storeId: {
111
+ type: _lssm_lib_schema834.FieldType<string, string>;
112
+ isOptional: true;
113
+ };
114
+ categoryId: {
115
+ type: _lssm_lib_schema834.FieldType<string, string>;
116
+ isOptional: true;
117
+ };
118
+ status: {
119
+ type: _lssm_lib_schema834.EnumType<[string, string, string, string, string, string]>;
120
+ isOptional: true;
121
+ };
122
+ search: {
123
+ type: _lssm_lib_schema834.FieldType<string, string>;
124
+ isOptional: true;
125
+ };
126
+ minPrice: {
127
+ type: _lssm_lib_schema834.FieldType<number, number>;
128
+ isOptional: true;
129
+ };
130
+ maxPrice: {
131
+ type: _lssm_lib_schema834.FieldType<number, number>;
132
+ isOptional: true;
133
+ };
134
+ limit: {
135
+ type: _lssm_lib_schema834.FieldType<number, number>;
136
+ isOptional: true;
137
+ defaultValue: number;
138
+ };
139
+ offset: {
140
+ type: _lssm_lib_schema834.FieldType<number, number>;
141
+ isOptional: true;
142
+ defaultValue: number;
143
+ };
144
+ }>;
145
+ /**
146
+ * Output for listing products.
147
+ */
148
+ declare const ListProductsOutputModel: _lssm_lib_schema834.SchemaModel<{
149
+ products: {
150
+ type: _lssm_lib_schema834.SchemaModel<{
151
+ id: {
152
+ type: _lssm_lib_schema834.FieldType<string, string>;
153
+ isOptional: false;
154
+ };
155
+ storeId: {
156
+ type: _lssm_lib_schema834.FieldType<string, string>;
157
+ isOptional: false;
158
+ };
159
+ name: {
160
+ type: _lssm_lib_schema834.FieldType<string, string>;
161
+ isOptional: false;
162
+ };
163
+ slug: {
164
+ type: _lssm_lib_schema834.FieldType<string, string>;
165
+ isOptional: false;
166
+ };
167
+ description: {
168
+ type: _lssm_lib_schema834.FieldType<string, string>;
169
+ isOptional: true;
170
+ };
171
+ status: {
172
+ type: _lssm_lib_schema834.EnumType<[string, string, string, string, string, string]>;
173
+ isOptional: false;
174
+ };
175
+ price: {
176
+ type: _lssm_lib_schema834.FieldType<number, number>;
177
+ isOptional: false;
178
+ };
179
+ currency: {
180
+ type: _lssm_lib_schema834.FieldType<string, string>;
181
+ isOptional: false;
182
+ };
183
+ quantity: {
184
+ type: _lssm_lib_schema834.FieldType<number, number>;
185
+ isOptional: false;
186
+ };
187
+ categoryId: {
188
+ type: _lssm_lib_schema834.FieldType<string, string>;
189
+ isOptional: true;
190
+ };
191
+ primaryImageId: {
192
+ type: _lssm_lib_schema834.FieldType<string, string>;
193
+ isOptional: true;
194
+ };
195
+ averageRating: {
196
+ type: _lssm_lib_schema834.FieldType<number, number>;
197
+ isOptional: false;
198
+ };
199
+ totalSold: {
200
+ type: _lssm_lib_schema834.FieldType<number, number>;
201
+ isOptional: false;
202
+ };
203
+ createdAt: {
204
+ type: _lssm_lib_schema834.FieldType<Date, string>;
205
+ isOptional: false;
206
+ };
207
+ }>;
208
+ isArray: true;
209
+ isOptional: false;
210
+ };
211
+ total: {
212
+ type: _lssm_lib_schema834.FieldType<number, number>;
213
+ isOptional: false;
214
+ };
215
+ }>;
216
+ //#endregion
217
+ export { CreateProductInputModel, ListProductsInputModel, ListProductsOutputModel, ProductModel };
@@ -0,0 +1,5 @@
1
+ import { ReviewStatusEnum } from "./review.enum.js";
2
+ import { CreateReviewInputModel, ListReviewsInputModel, ListReviewsOutputModel, ReviewModel } from "./review.schema.js";
3
+ import { CreateReviewContract, ListReviewsContract } from "./review.contracts.js";
4
+ import { ReviewCreatedEvent, ReviewRespondedEvent } from "./review.event.js";
5
+ export { CreateReviewContract, CreateReviewInputModel, ListReviewsContract, ListReviewsInputModel, ListReviewsOutputModel, ReviewCreatedEvent, ReviewModel, ReviewRespondedEvent, ReviewStatusEnum };