@lssm/example.marketplace 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
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/docs/index.d.ts +1 -0
- package/dist/docs/marketplace.docblock.d.ts +1 -0
- package/dist/entities/index.d.ts +308 -0
- package/dist/entities/order.d.ts +104 -0
- package/dist/entities/payout.d.ts +91 -0
- package/dist/entities/product.d.ts +92 -0
- package/dist/entities/review.d.ts +82 -0
- package/dist/entities/store.d.ts +59 -0
- package/dist/example.d.ts +39 -0
- package/dist/index.d.ts +26 -0
- package/dist/marketplace.feature.d.ts +11 -0
- package/dist/order/index.d.ts +5 -0
- package/dist/order/order.contracts.d.ts +367 -0
- package/dist/order/order.enum.d.ts +9 -0
- package/dist/order/order.event.d.ts +144 -0
- package/dist/order/order.presentation.d.ts +8 -0
- package/dist/order/order.schema.d.ts +164 -0
- package/dist/payout/index.d.ts +5 -0
- package/dist/payout/payout.contracts.d.ts +96 -0
- package/dist/payout/payout.enum.d.ts +9 -0
- package/dist/payout/payout.event.d.ts +62 -0
- package/dist/payout/payout.presentation.d.ts +7 -0
- package/dist/payout/payout.schema.d.ts +156 -0
- package/dist/product/index.d.ts +5 -0
- package/dist/product/product.contracts.d.ts +272 -0
- package/dist/product/product.enum.d.ts +9 -0
- package/dist/product/product.event.d.ts +72 -0
- package/dist/product/product.presentation.d.ts +8 -0
- package/dist/product/product.schema.d.ts +217 -0
- package/dist/review/index.d.ts +5 -0
- package/dist/review/review.contracts.d.ts +236 -0
- package/dist/review/review.enum.d.ts +9 -0
- package/dist/review/review.event.d.ts +54 -0
- package/dist/review/review.presentation.d.ts +7 -0
- package/dist/review/review.schema.d.ts +189 -0
- package/dist/store/index.d.ts +5 -0
- package/dist/store/store.contracts.d.ts +130 -0
- package/dist/store/store.enum.d.ts +9 -0
- package/dist/store/store.event.d.ts +50 -0
- package/dist/store/store.presentation.d.ts +7 -0
- package/dist/store/store.schema.d.ts +83 -0
- package/package.json +53 -53
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as _lssm_lib_schema955 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/order/order.event.d.ts
|
|
5
|
+
declare const OrderCreatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema955.SchemaModel<{
|
|
6
|
+
orderId: {
|
|
7
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
orderNumber: {
|
|
11
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
buyerId: {
|
|
15
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
storeId: {
|
|
19
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
total: {
|
|
23
|
+
type: _lssm_lib_schema955.FieldType<number, number>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
currency: {
|
|
27
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
itemCount: {
|
|
31
|
+
type: _lssm_lib_schema955.FieldType<number, number>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
timestamp: {
|
|
35
|
+
type: _lssm_lib_schema955.FieldType<Date, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
}>>;
|
|
39
|
+
declare const OrderPaidEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema955.SchemaModel<{
|
|
40
|
+
orderId: {
|
|
41
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
orderNumber: {
|
|
45
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
total: {
|
|
49
|
+
type: _lssm_lib_schema955.FieldType<number, number>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
paymentMethod: {
|
|
53
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
timestamp: {
|
|
57
|
+
type: _lssm_lib_schema955.FieldType<Date, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
}>>;
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema955.SchemaModel<{
|
|
62
|
+
orderId: {
|
|
63
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
orderNumber: {
|
|
67
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
previousStatus: {
|
|
71
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
newStatus: {
|
|
75
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
updatedBy: {
|
|
79
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
82
|
+
timestamp: {
|
|
83
|
+
type: _lssm_lib_schema955.FieldType<Date, string>;
|
|
84
|
+
isOptional: false;
|
|
85
|
+
};
|
|
86
|
+
}>>;
|
|
87
|
+
declare const OrderShippedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema955.SchemaModel<{
|
|
88
|
+
orderId: {
|
|
89
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
orderNumber: {
|
|
93
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
trackingNumber: {
|
|
97
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
trackingUrl: {
|
|
101
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
carrier: {
|
|
105
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
106
|
+
isOptional: true;
|
|
107
|
+
};
|
|
108
|
+
timestamp: {
|
|
109
|
+
type: _lssm_lib_schema955.FieldType<Date, string>;
|
|
110
|
+
isOptional: false;
|
|
111
|
+
};
|
|
112
|
+
}>>;
|
|
113
|
+
declare const OrderCompletedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema955.SchemaModel<{
|
|
114
|
+
orderId: {
|
|
115
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
orderNumber: {
|
|
119
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
buyerId: {
|
|
123
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
124
|
+
isOptional: false;
|
|
125
|
+
};
|
|
126
|
+
storeId: {
|
|
127
|
+
type: _lssm_lib_schema955.FieldType<string, string>;
|
|
128
|
+
isOptional: false;
|
|
129
|
+
};
|
|
130
|
+
total: {
|
|
131
|
+
type: _lssm_lib_schema955.FieldType<number, number>;
|
|
132
|
+
isOptional: false;
|
|
133
|
+
};
|
|
134
|
+
sellerPayout: {
|
|
135
|
+
type: _lssm_lib_schema955.FieldType<number, number>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
timestamp: {
|
|
139
|
+
type: _lssm_lib_schema955.FieldType<Date, string>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
}>>;
|
|
143
|
+
//#endregion
|
|
144
|
+
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/order/order.presentation.d.ts
|
|
4
|
+
declare const OrderListPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const OrderDetailPresentation: PresentationDescriptorV2;
|
|
6
|
+
declare const CheckoutPresentation: PresentationDescriptorV2;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { CheckoutPresentation, OrderDetailPresentation, OrderListPresentation };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as _lssm_lib_schema916 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/order/order.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* An order item.
|
|
6
|
+
*/
|
|
7
|
+
declare const OrderItemModel: _lssm_lib_schema916.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
productId: {
|
|
13
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
productName: {
|
|
17
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
unitPrice: {
|
|
21
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
quantity: {
|
|
25
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
subtotal: {
|
|
29
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* An order.
|
|
35
|
+
*/
|
|
36
|
+
declare const OrderModel: _lssm_lib_schema916.SchemaModel<{
|
|
37
|
+
id: {
|
|
38
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
39
|
+
isOptional: false;
|
|
40
|
+
};
|
|
41
|
+
orderNumber: {
|
|
42
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
buyerId: {
|
|
46
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
storeId: {
|
|
50
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
status: {
|
|
54
|
+
type: _lssm_lib_schema916.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
subtotal: {
|
|
58
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
59
|
+
isOptional: false;
|
|
60
|
+
};
|
|
61
|
+
shippingTotal: {
|
|
62
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
63
|
+
isOptional: false;
|
|
64
|
+
};
|
|
65
|
+
taxTotal: {
|
|
66
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
67
|
+
isOptional: false;
|
|
68
|
+
};
|
|
69
|
+
total: {
|
|
70
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
71
|
+
isOptional: false;
|
|
72
|
+
};
|
|
73
|
+
currency: {
|
|
74
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
75
|
+
isOptional: false;
|
|
76
|
+
};
|
|
77
|
+
items: {
|
|
78
|
+
type: _lssm_lib_schema916.SchemaModel<{
|
|
79
|
+
id: {
|
|
80
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
productId: {
|
|
84
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
85
|
+
isOptional: false;
|
|
86
|
+
};
|
|
87
|
+
productName: {
|
|
88
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
unitPrice: {
|
|
92
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
93
|
+
isOptional: false;
|
|
94
|
+
};
|
|
95
|
+
quantity: {
|
|
96
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
97
|
+
isOptional: false;
|
|
98
|
+
};
|
|
99
|
+
subtotal: {
|
|
100
|
+
type: _lssm_lib_schema916.FieldType<number, number>;
|
|
101
|
+
isOptional: false;
|
|
102
|
+
};
|
|
103
|
+
}>;
|
|
104
|
+
isArray: true;
|
|
105
|
+
isOptional: true;
|
|
106
|
+
};
|
|
107
|
+
createdAt: {
|
|
108
|
+
type: _lssm_lib_schema916.FieldType<Date, string>;
|
|
109
|
+
isOptional: false;
|
|
110
|
+
};
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* Input for creating an order.
|
|
114
|
+
*/
|
|
115
|
+
declare const CreateOrderInputModel: _lssm_lib_schema916.SchemaModel<{
|
|
116
|
+
storeId: {
|
|
117
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
118
|
+
isOptional: false;
|
|
119
|
+
};
|
|
120
|
+
items: {
|
|
121
|
+
type: _lssm_lib_schema916.FieldType<unknown, unknown>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
125
|
+
shippingAddress: {
|
|
126
|
+
type: _lssm_lib_schema916.FieldType<unknown, unknown>;
|
|
127
|
+
isOptional: true;
|
|
128
|
+
};
|
|
129
|
+
billingAddress: {
|
|
130
|
+
type: _lssm_lib_schema916.FieldType<unknown, unknown>;
|
|
131
|
+
isOptional: true;
|
|
132
|
+
};
|
|
133
|
+
buyerNote: {
|
|
134
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
135
|
+
isOptional: true;
|
|
136
|
+
};
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Input for updating order status.
|
|
140
|
+
*/
|
|
141
|
+
declare const UpdateOrderStatusInputModel: _lssm_lib_schema916.SchemaModel<{
|
|
142
|
+
orderId: {
|
|
143
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
status: {
|
|
147
|
+
type: _lssm_lib_schema916.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
148
|
+
isOptional: false;
|
|
149
|
+
};
|
|
150
|
+
trackingNumber: {
|
|
151
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
152
|
+
isOptional: true;
|
|
153
|
+
};
|
|
154
|
+
trackingUrl: {
|
|
155
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
156
|
+
isOptional: true;
|
|
157
|
+
};
|
|
158
|
+
note: {
|
|
159
|
+
type: _lssm_lib_schema916.FieldType<string, string>;
|
|
160
|
+
isOptional: true;
|
|
161
|
+
};
|
|
162
|
+
}>;
|
|
163
|
+
//#endregion
|
|
164
|
+
export { CreateOrderInputModel, OrderItemModel, OrderModel, UpdateOrderStatusInputModel };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PayoutStatusEnum } from "./payout.enum.js";
|
|
2
|
+
import { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel } from "./payout.schema.js";
|
|
3
|
+
import { ListPayoutsContract } from "./payout.contracts.js";
|
|
4
|
+
import { PayoutCreatedEvent, PayoutPaidEvent } from "./payout.event.js";
|
|
5
|
+
export { ListPayoutsContract, ListPayoutsInputModel, ListPayoutsOutputModel, PayoutCreatedEvent, PayoutModel, PayoutPaidEvent, PayoutStatusEnum };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as _lssm_lib_schema843 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/payout/payout.contracts.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* List payouts for a store.
|
|
7
|
+
*/
|
|
8
|
+
declare const ListPayoutsContract: _lssm_lib_contracts11.ContractSpec<_lssm_lib_schema843.SchemaModel<{
|
|
9
|
+
storeId: {
|
|
10
|
+
type: _lssm_lib_schema843.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
status: {
|
|
14
|
+
type: _lssm_lib_schema843.EnumType<[string, string, string, string, string]>;
|
|
15
|
+
isOptional: true;
|
|
16
|
+
};
|
|
17
|
+
limit: {
|
|
18
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
defaultValue: number;
|
|
21
|
+
};
|
|
22
|
+
offset: {
|
|
23
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
24
|
+
isOptional: true;
|
|
25
|
+
defaultValue: number;
|
|
26
|
+
};
|
|
27
|
+
}>, _lssm_lib_schema843.SchemaModel<{
|
|
28
|
+
payouts: {
|
|
29
|
+
type: _lssm_lib_schema843.SchemaModel<{
|
|
30
|
+
id: {
|
|
31
|
+
type: _lssm_lib_schema843.FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
payoutNumber: {
|
|
35
|
+
type: _lssm_lib_schema843.FieldType<string, string>;
|
|
36
|
+
isOptional: false;
|
|
37
|
+
};
|
|
38
|
+
storeId: {
|
|
39
|
+
type: _lssm_lib_schema843.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
status: {
|
|
43
|
+
type: _lssm_lib_schema843.EnumType<[string, string, string, string, string]>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
grossAmount: {
|
|
47
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
platformFees: {
|
|
51
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
netAmount: {
|
|
55
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
56
|
+
isOptional: false;
|
|
57
|
+
};
|
|
58
|
+
currency: {
|
|
59
|
+
type: _lssm_lib_schema843.FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
periodStart: {
|
|
63
|
+
type: _lssm_lib_schema843.FieldType<Date, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
periodEnd: {
|
|
67
|
+
type: _lssm_lib_schema843.FieldType<Date, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
orderCount: {
|
|
71
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
createdAt: {
|
|
75
|
+
type: _lssm_lib_schema843.FieldType<Date, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
paidAt: {
|
|
79
|
+
type: _lssm_lib_schema843.FieldType<Date, string>;
|
|
80
|
+
isOptional: true;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
isArray: true;
|
|
84
|
+
isOptional: false;
|
|
85
|
+
};
|
|
86
|
+
total: {
|
|
87
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
88
|
+
isOptional: false;
|
|
89
|
+
};
|
|
90
|
+
totalPending: {
|
|
91
|
+
type: _lssm_lib_schema843.FieldType<number, number>;
|
|
92
|
+
isOptional: false;
|
|
93
|
+
};
|
|
94
|
+
}>, undefined>;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { ListPayoutsContract };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as _lssm_lib_schema954 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/payout/payout.enum.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Payout status enum.
|
|
6
|
+
*/
|
|
7
|
+
declare const PayoutStatusEnum: _lssm_lib_schema954.EnumType<[string, string, string, string, string]>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PayoutStatusEnum };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/payout/payout.event.d.ts
|
|
5
|
+
declare const PayoutCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
|
+
payoutId: {
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
payoutNumber: {
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
storeId: {
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
netAmount: {
|
|
19
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
currency: {
|
|
23
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
orderCount: {
|
|
27
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
timestamp: {
|
|
31
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
}>>;
|
|
35
|
+
declare const PayoutPaidEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
36
|
+
payoutId: {
|
|
37
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
payoutNumber: {
|
|
41
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
storeId: {
|
|
45
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
netAmount: {
|
|
49
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
paymentReference: {
|
|
53
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
54
|
+
isOptional: true;
|
|
55
|
+
};
|
|
56
|
+
timestamp: {
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
}>>;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { PayoutCreatedEvent, PayoutPaidEvent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/payout/payout.presentation.d.ts
|
|
4
|
+
declare const PayoutListPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const PayoutDetailPresentation: PresentationDescriptorV2;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { PayoutDetailPresentation, PayoutListPresentation };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as _lssm_lib_schema686 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/payout/payout.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A payout to seller.
|
|
6
|
+
*/
|
|
7
|
+
declare const PayoutModel: _lssm_lib_schema686.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
payoutNumber: {
|
|
13
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
storeId: {
|
|
17
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
status: {
|
|
21
|
+
type: _lssm_lib_schema686.EnumType<[string, string, string, string, string]>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
grossAmount: {
|
|
25
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
platformFees: {
|
|
29
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
netAmount: {
|
|
33
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
currency: {
|
|
37
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
periodStart: {
|
|
41
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
periodEnd: {
|
|
45
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
orderCount: {
|
|
49
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
createdAt: {
|
|
53
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
paidAt: {
|
|
57
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
58
|
+
isOptional: true;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Input for listing payouts.
|
|
63
|
+
*/
|
|
64
|
+
declare const ListPayoutsInputModel: _lssm_lib_schema686.SchemaModel<{
|
|
65
|
+
storeId: {
|
|
66
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
67
|
+
isOptional: false;
|
|
68
|
+
};
|
|
69
|
+
status: {
|
|
70
|
+
type: _lssm_lib_schema686.EnumType<[string, string, string, string, string]>;
|
|
71
|
+
isOptional: true;
|
|
72
|
+
};
|
|
73
|
+
limit: {
|
|
74
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
75
|
+
isOptional: true;
|
|
76
|
+
defaultValue: number;
|
|
77
|
+
};
|
|
78
|
+
offset: {
|
|
79
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
80
|
+
isOptional: true;
|
|
81
|
+
defaultValue: number;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* Output for listing payouts.
|
|
86
|
+
*/
|
|
87
|
+
declare const ListPayoutsOutputModel: _lssm_lib_schema686.SchemaModel<{
|
|
88
|
+
payouts: {
|
|
89
|
+
type: _lssm_lib_schema686.SchemaModel<{
|
|
90
|
+
id: {
|
|
91
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
92
|
+
isOptional: false;
|
|
93
|
+
};
|
|
94
|
+
payoutNumber: {
|
|
95
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
96
|
+
isOptional: false;
|
|
97
|
+
};
|
|
98
|
+
storeId: {
|
|
99
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
100
|
+
isOptional: false;
|
|
101
|
+
};
|
|
102
|
+
status: {
|
|
103
|
+
type: _lssm_lib_schema686.EnumType<[string, string, string, string, string]>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
grossAmount: {
|
|
107
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
platformFees: {
|
|
111
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
netAmount: {
|
|
115
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
currency: {
|
|
119
|
+
type: _lssm_lib_schema686.FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
periodStart: {
|
|
123
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
124
|
+
isOptional: false;
|
|
125
|
+
};
|
|
126
|
+
periodEnd: {
|
|
127
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
128
|
+
isOptional: false;
|
|
129
|
+
};
|
|
130
|
+
orderCount: {
|
|
131
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
132
|
+
isOptional: false;
|
|
133
|
+
};
|
|
134
|
+
createdAt: {
|
|
135
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
paidAt: {
|
|
139
|
+
type: _lssm_lib_schema686.FieldType<Date, string>;
|
|
140
|
+
isOptional: true;
|
|
141
|
+
};
|
|
142
|
+
}>;
|
|
143
|
+
isArray: true;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
total: {
|
|
147
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
148
|
+
isOptional: false;
|
|
149
|
+
};
|
|
150
|
+
totalPending: {
|
|
151
|
+
type: _lssm_lib_schema686.FieldType<number, number>;
|
|
152
|
+
isOptional: false;
|
|
153
|
+
};
|
|
154
|
+
}>;
|
|
155
|
+
//#endregion
|
|
156
|
+
export { ListPayoutsInputModel, ListPayoutsOutputModel, PayoutModel };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProductStatusEnum } from "./product.enum.js";
|
|
2
|
+
import { CreateProductInputModel, ListProductsInputModel, ListProductsOutputModel, ProductModel } from "./product.schema.js";
|
|
3
|
+
import { CreateProductContract, ListProductsContract } from "./product.contracts.js";
|
|
4
|
+
import { InventoryUpdatedEvent, ProductCreatedEvent, ProductPublishedEvent } from "./product.event.js";
|
|
5
|
+
export { CreateProductContract, CreateProductInputModel, InventoryUpdatedEvent, ListProductsContract, ListProductsInputModel, ListProductsOutputModel, ProductCreatedEvent, ProductModel, ProductPublishedEvent, ProductStatusEnum };
|