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