@contractspec/example.marketplace 1.45.6 → 1.46.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/payout.d.ts +65 -65
- package/dist/order/order.event.d.ts +38 -38
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.operations.d.ts +89 -89
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.operations.d.ts +24 -24
- package/dist/payout/payout.operations.d.ts.map +1 -1
- package/dist/payout/payout.schema.d.ts +37 -37
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.operations.d.ts +67 -67
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.operations.d.ts +59 -59
- package/dist/review/review.operations.d.ts.map +1 -1
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +13 -13
- package/package.json +5 -5
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema516 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/payout.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payout status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const PayoutStatusEnum:
|
|
7
|
+
declare const PayoutStatusEnum: _contractspec_lib_schema516.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Payout schedule enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const PayoutScheduleEnum:
|
|
11
|
+
declare const PayoutScheduleEnum: _contractspec_lib_schema516.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Payout entity - payment to seller.
|
|
14
14
|
*/
|
|
15
|
-
declare const PayoutEntity:
|
|
16
|
-
id:
|
|
17
|
-
storeId:
|
|
18
|
-
payoutNumber:
|
|
19
|
-
status:
|
|
20
|
-
grossAmount:
|
|
21
|
-
platformFees:
|
|
22
|
-
otherDeductions:
|
|
23
|
-
netAmount:
|
|
24
|
-
currency:
|
|
25
|
-
periodStart:
|
|
26
|
-
periodEnd:
|
|
27
|
-
paymentMethod:
|
|
28
|
-
paymentReference:
|
|
29
|
-
bankAccountId:
|
|
30
|
-
bankAccountLast4:
|
|
31
|
-
notes:
|
|
32
|
-
failureReason:
|
|
33
|
-
orderCount:
|
|
34
|
-
createdAt:
|
|
35
|
-
updatedAt:
|
|
36
|
-
scheduledAt:
|
|
37
|
-
processedAt:
|
|
38
|
-
paidAt:
|
|
39
|
-
store:
|
|
40
|
-
items:
|
|
15
|
+
declare const PayoutEntity: _contractspec_lib_schema516.EntitySpec<{
|
|
16
|
+
id: _contractspec_lib_schema516.EntityScalarField;
|
|
17
|
+
storeId: _contractspec_lib_schema516.EntityScalarField;
|
|
18
|
+
payoutNumber: _contractspec_lib_schema516.EntityScalarField;
|
|
19
|
+
status: _contractspec_lib_schema516.EntityEnumField;
|
|
20
|
+
grossAmount: _contractspec_lib_schema516.EntityScalarField;
|
|
21
|
+
platformFees: _contractspec_lib_schema516.EntityScalarField;
|
|
22
|
+
otherDeductions: _contractspec_lib_schema516.EntityScalarField;
|
|
23
|
+
netAmount: _contractspec_lib_schema516.EntityScalarField;
|
|
24
|
+
currency: _contractspec_lib_schema516.EntityScalarField;
|
|
25
|
+
periodStart: _contractspec_lib_schema516.EntityScalarField;
|
|
26
|
+
periodEnd: _contractspec_lib_schema516.EntityScalarField;
|
|
27
|
+
paymentMethod: _contractspec_lib_schema516.EntityScalarField;
|
|
28
|
+
paymentReference: _contractspec_lib_schema516.EntityScalarField;
|
|
29
|
+
bankAccountId: _contractspec_lib_schema516.EntityScalarField;
|
|
30
|
+
bankAccountLast4: _contractspec_lib_schema516.EntityScalarField;
|
|
31
|
+
notes: _contractspec_lib_schema516.EntityScalarField;
|
|
32
|
+
failureReason: _contractspec_lib_schema516.EntityScalarField;
|
|
33
|
+
orderCount: _contractspec_lib_schema516.EntityScalarField;
|
|
34
|
+
createdAt: _contractspec_lib_schema516.EntityScalarField;
|
|
35
|
+
updatedAt: _contractspec_lib_schema516.EntityScalarField;
|
|
36
|
+
scheduledAt: _contractspec_lib_schema516.EntityScalarField;
|
|
37
|
+
processedAt: _contractspec_lib_schema516.EntityScalarField;
|
|
38
|
+
paidAt: _contractspec_lib_schema516.EntityScalarField;
|
|
39
|
+
store: _contractspec_lib_schema516.EntityRelationField;
|
|
40
|
+
items: _contractspec_lib_schema516.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Payout item entity - orders included in a payout.
|
|
44
44
|
*/
|
|
45
|
-
declare const PayoutItemEntity:
|
|
46
|
-
id:
|
|
47
|
-
payoutId:
|
|
48
|
-
orderId:
|
|
49
|
-
orderTotal:
|
|
50
|
-
platformFee:
|
|
51
|
-
netAmount:
|
|
52
|
-
createdAt:
|
|
53
|
-
payout:
|
|
54
|
-
order:
|
|
45
|
+
declare const PayoutItemEntity: _contractspec_lib_schema516.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema516.EntityScalarField;
|
|
47
|
+
payoutId: _contractspec_lib_schema516.EntityScalarField;
|
|
48
|
+
orderId: _contractspec_lib_schema516.EntityScalarField;
|
|
49
|
+
orderTotal: _contractspec_lib_schema516.EntityScalarField;
|
|
50
|
+
platformFee: _contractspec_lib_schema516.EntityScalarField;
|
|
51
|
+
netAmount: _contractspec_lib_schema516.EntityScalarField;
|
|
52
|
+
createdAt: _contractspec_lib_schema516.EntityScalarField;
|
|
53
|
+
payout: _contractspec_lib_schema516.EntityRelationField;
|
|
54
|
+
order: _contractspec_lib_schema516.EntityRelationField;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Bank account entity - seller payment destinations.
|
|
58
58
|
*/
|
|
59
|
-
declare const BankAccountEntity:
|
|
60
|
-
id:
|
|
61
|
-
storeId:
|
|
62
|
-
accountHolderName:
|
|
63
|
-
accountType:
|
|
64
|
-
bankName:
|
|
65
|
-
last4:
|
|
66
|
-
routingLast4:
|
|
67
|
-
externalId:
|
|
68
|
-
isDefault:
|
|
69
|
-
isVerified:
|
|
70
|
-
createdAt:
|
|
71
|
-
updatedAt:
|
|
72
|
-
verifiedAt:
|
|
73
|
-
store:
|
|
59
|
+
declare const BankAccountEntity: _contractspec_lib_schema516.EntitySpec<{
|
|
60
|
+
id: _contractspec_lib_schema516.EntityScalarField;
|
|
61
|
+
storeId: _contractspec_lib_schema516.EntityScalarField;
|
|
62
|
+
accountHolderName: _contractspec_lib_schema516.EntityScalarField;
|
|
63
|
+
accountType: _contractspec_lib_schema516.EntityScalarField;
|
|
64
|
+
bankName: _contractspec_lib_schema516.EntityScalarField;
|
|
65
|
+
last4: _contractspec_lib_schema516.EntityScalarField;
|
|
66
|
+
routingLast4: _contractspec_lib_schema516.EntityScalarField;
|
|
67
|
+
externalId: _contractspec_lib_schema516.EntityScalarField;
|
|
68
|
+
isDefault: _contractspec_lib_schema516.EntityScalarField;
|
|
69
|
+
isVerified: _contractspec_lib_schema516.EntityScalarField;
|
|
70
|
+
createdAt: _contractspec_lib_schema516.EntityScalarField;
|
|
71
|
+
updatedAt: _contractspec_lib_schema516.EntityScalarField;
|
|
72
|
+
verifiedAt: _contractspec_lib_schema516.EntityScalarField;
|
|
73
|
+
store: _contractspec_lib_schema516.EntityRelationField;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Payout settings entity - store payout configuration.
|
|
77
77
|
*/
|
|
78
|
-
declare const PayoutSettingsEntity:
|
|
79
|
-
id:
|
|
80
|
-
storeId:
|
|
81
|
-
schedule:
|
|
82
|
-
dayOfWeek:
|
|
83
|
-
dayOfMonth:
|
|
84
|
-
minimumPayout:
|
|
85
|
-
defaultBankAccountId:
|
|
86
|
-
createdAt:
|
|
87
|
-
updatedAt:
|
|
88
|
-
store:
|
|
78
|
+
declare const PayoutSettingsEntity: _contractspec_lib_schema516.EntitySpec<{
|
|
79
|
+
id: _contractspec_lib_schema516.EntityScalarField;
|
|
80
|
+
storeId: _contractspec_lib_schema516.EntityScalarField;
|
|
81
|
+
schedule: _contractspec_lib_schema516.EntityEnumField;
|
|
82
|
+
dayOfWeek: _contractspec_lib_schema516.EntityScalarField;
|
|
83
|
+
dayOfMonth: _contractspec_lib_schema516.EntityScalarField;
|
|
84
|
+
minimumPayout: _contractspec_lib_schema516.EntityScalarField;
|
|
85
|
+
defaultBankAccountId: _contractspec_lib_schema516.EntityScalarField;
|
|
86
|
+
createdAt: _contractspec_lib_schema516.EntityScalarField;
|
|
87
|
+
updatedAt: _contractspec_lib_schema516.EntityScalarField;
|
|
88
|
+
store: _contractspec_lib_schema516.EntityRelationField;
|
|
89
89
|
}>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { BankAccountEntity, PayoutEntity, PayoutItemEntity, PayoutScheduleEnum, PayoutSettingsEntity, PayoutStatusEnum };
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema19 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
5
|
+
declare const OrderCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema19.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orderNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
buyerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
storeId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
total: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema19.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
currency: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
itemCount: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema19.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
timestamp: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema19.FieldType<Date, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent: _contractspec_lib_contracts0.EventSpec<
|
|
39
|
+
declare const OrderPaidEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema19.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
orderNumber: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
total: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema19.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentMethod: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema19.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema19.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
orderNumber: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
previousStatus: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
newStatus: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
updatedBy: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
timestamp: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema19.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
87
|
+
declare const OrderShippedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema19.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orderNumber: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
trackingNumber: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
trackingUrl: {
|
|
101
|
-
type:
|
|
101
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
carrier: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
timestamp: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema19.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
113
|
+
declare const OrderCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema19.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
orderNumber: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
buyerId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
storeId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema19.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
total: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema19.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
sellerPayout: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema19.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
timestamp: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema19.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,4BAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,4BAAA,CAAA,qCAAA;;UAU5B,0BAAA,CAAA;;EAVW,CAAA;EAUX,WAAA,EAAA;;;;;;;;;8CAV4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,KAAA,EAAA;IAUX,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAVyB,SAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYd,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAtBW,gBAAc,4BAAA,CAAA,qCAAA;;IAYS,IAAA,EAFlC,0BAAA,CAAA,SAEkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYvB,CAAA;EAUX,WAAA,EAAA;;;;;;;;EAV4B,aAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYjB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAlCW,yBAAuB,4BAAA,CAAA,qCAAA;;UAUlC,0BAAA,CAAA,SAc8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;cAZnB,mBAAiB,4BAAA,CAAA,qCAAA;;UAU5B,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,qBAAmB,4BAAA,CAAA,qCAAA;;UAU9B,0BAAA,CAAA"}
|