@voyantjs/distribution 0.4.5 → 0.6.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/booking-extension.d.ts +6 -6
- package/dist/booking-extension.d.ts.map +1 -1
- package/dist/booking-extension.js +2 -1
- package/dist/routes.d.ts +77 -77
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +80 -79
- package/dist/schema-core.d.ts +4 -4
- package/dist/schema-finance.d.ts +1 -1
- package/dist/service.d.ts +66 -66
- package/dist/validation.d.ts +24 -24
- package/package.json +8 -8
package/dist/schema-finance.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ export declare const channelSettlementItems: import("drizzle-orm/pg-core").PgTab
|
|
|
356
356
|
tableName: "channel_settlement_items";
|
|
357
357
|
dataType: "string";
|
|
358
358
|
columnType: "PgEnumColumn";
|
|
359
|
-
data: "
|
|
359
|
+
data: "pending" | "void" | "paid" | "approved" | "disputed";
|
|
360
360
|
driverParam: string;
|
|
361
361
|
notNull: true;
|
|
362
362
|
hasDefault: true;
|
package/dist/service.d.ts
CHANGED
|
@@ -71,8 +71,8 @@ export declare const distributionService: {
|
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
description: string | null;
|
|
74
|
-
kind: "
|
|
75
|
-
status: "
|
|
74
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
75
|
+
status: "pending" | "active" | "archived" | "inactive";
|
|
76
76
|
metadata: Record<string, unknown> | null;
|
|
77
77
|
createdAt: Date;
|
|
78
78
|
updatedAt: Date;
|
|
@@ -85,8 +85,8 @@ export declare const distributionService: {
|
|
|
85
85
|
id: string;
|
|
86
86
|
name: string;
|
|
87
87
|
description: string | null;
|
|
88
|
-
kind: "
|
|
89
|
-
status: "
|
|
88
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
89
|
+
status: "pending" | "active" | "archived" | "inactive";
|
|
90
90
|
metadata: Record<string, unknown> | null;
|
|
91
91
|
createdAt: Date;
|
|
92
92
|
updatedAt: Date;
|
|
@@ -95,8 +95,8 @@ export declare const distributionService: {
|
|
|
95
95
|
id: string;
|
|
96
96
|
name: string;
|
|
97
97
|
description: string | null;
|
|
98
|
-
kind: "
|
|
99
|
-
status: "
|
|
98
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
99
|
+
status: "pending" | "active" | "archived" | "inactive";
|
|
100
100
|
metadata: Record<string, unknown> | null;
|
|
101
101
|
createdAt: Date;
|
|
102
102
|
updatedAt: Date;
|
|
@@ -105,8 +105,8 @@ export declare const distributionService: {
|
|
|
105
105
|
id: string;
|
|
106
106
|
name: string;
|
|
107
107
|
description: string | null;
|
|
108
|
-
kind: "
|
|
109
|
-
status: "
|
|
108
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
109
|
+
status: "pending" | "active" | "archived" | "inactive";
|
|
110
110
|
metadata: Record<string, unknown> | null;
|
|
111
111
|
createdAt: Date;
|
|
112
112
|
updatedAt: Date;
|
|
@@ -118,7 +118,7 @@ export declare const distributionService: {
|
|
|
118
118
|
id: string;
|
|
119
119
|
entityType: string;
|
|
120
120
|
entityId: string;
|
|
121
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
121
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
122
122
|
label: string | null;
|
|
123
123
|
value: string;
|
|
124
124
|
normalizedValue: string | null;
|
|
@@ -130,23 +130,23 @@ export declare const distributionService: {
|
|
|
130
130
|
}[] | null>;
|
|
131
131
|
createChannelContactPoint(db: PostgresJsDatabase, channelId: string, data: InsertContactPointForEntity): Promise<{
|
|
132
132
|
value: string;
|
|
133
|
+
metadata: Record<string, unknown> | null;
|
|
134
|
+
id: string;
|
|
133
135
|
createdAt: Date;
|
|
134
136
|
updatedAt: Date;
|
|
135
|
-
|
|
137
|
+
notes: string | null;
|
|
138
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
136
139
|
entityType: string;
|
|
137
140
|
entityId: string;
|
|
138
141
|
label: string | null;
|
|
139
142
|
normalizedValue: string | null;
|
|
140
143
|
isPrimary: boolean;
|
|
141
|
-
notes: string | null;
|
|
142
|
-
metadata: Record<string, unknown> | null;
|
|
143
|
-
id: string;
|
|
144
144
|
} | null>;
|
|
145
145
|
updateChannelContactPoint(db: PostgresJsDatabase, id: string, data: UpdateIdentityContactPoint): Promise<{
|
|
146
146
|
id: string;
|
|
147
147
|
entityType: string;
|
|
148
148
|
entityId: string;
|
|
149
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
149
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
150
150
|
label: string | null;
|
|
151
151
|
value: string;
|
|
152
152
|
normalizedValue: string | null;
|
|
@@ -175,19 +175,19 @@ export declare const distributionService: {
|
|
|
175
175
|
updatedAt: Date;
|
|
176
176
|
}[] | null>;
|
|
177
177
|
createChannelContact(db: PostgresJsDatabase, channelId: string, data: InsertNamedContactForEntity): Promise<{
|
|
178
|
+
metadata: Record<string, unknown> | null;
|
|
179
|
+
id: string;
|
|
178
180
|
name: string;
|
|
179
181
|
createdAt: Date;
|
|
180
182
|
updatedAt: Date;
|
|
181
183
|
email: string | null;
|
|
184
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
185
|
+
notes: string | null;
|
|
186
|
+
title: string | null;
|
|
182
187
|
phone: string | null;
|
|
183
188
|
entityType: string;
|
|
184
189
|
entityId: string;
|
|
185
190
|
isPrimary: boolean;
|
|
186
|
-
notes: string | null;
|
|
187
|
-
metadata: Record<string, unknown> | null;
|
|
188
|
-
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
189
|
-
title: string | null;
|
|
190
|
-
id: string;
|
|
191
191
|
} | null>;
|
|
192
192
|
updateChannelContact(db: PostgresJsDatabase, id: string, data: UpdateIdentityNamedContact): Promise<{
|
|
193
193
|
id: string;
|
|
@@ -215,7 +215,7 @@ export declare const distributionService: {
|
|
|
215
215
|
status: "draft" | "active" | "expired" | "terminated";
|
|
216
216
|
startsAt: string;
|
|
217
217
|
endsAt: string | null;
|
|
218
|
-
paymentOwner: "
|
|
218
|
+
paymentOwner: "split" | "operator" | "channel";
|
|
219
219
|
cancellationOwner: "operator" | "channel" | "mixed";
|
|
220
220
|
settlementTerms: string | null;
|
|
221
221
|
notes: string | null;
|
|
@@ -233,7 +233,7 @@ export declare const distributionService: {
|
|
|
233
233
|
status: "draft" | "active" | "expired" | "terminated";
|
|
234
234
|
startsAt: string;
|
|
235
235
|
endsAt: string | null;
|
|
236
|
-
paymentOwner: "
|
|
236
|
+
paymentOwner: "split" | "operator" | "channel";
|
|
237
237
|
cancellationOwner: "operator" | "channel" | "mixed";
|
|
238
238
|
settlementTerms: string | null;
|
|
239
239
|
notes: string | null;
|
|
@@ -241,12 +241,12 @@ export declare const distributionService: {
|
|
|
241
241
|
updatedAt: Date;
|
|
242
242
|
} | null>;
|
|
243
243
|
createContract(db: PostgresJsDatabase, data: CreateChannelContractInput): Promise<{
|
|
244
|
-
|
|
244
|
+
id: string;
|
|
245
245
|
createdAt: Date;
|
|
246
246
|
updatedAt: Date;
|
|
247
|
-
notes: string | null;
|
|
248
|
-
id: string;
|
|
249
247
|
status: "draft" | "active" | "expired" | "terminated";
|
|
248
|
+
notes: string | null;
|
|
249
|
+
paymentOwner: "split" | "operator" | "channel";
|
|
250
250
|
supplierId: string | null;
|
|
251
251
|
channelId: string;
|
|
252
252
|
startsAt: string;
|
|
@@ -261,7 +261,7 @@ export declare const distributionService: {
|
|
|
261
261
|
status: "draft" | "active" | "expired" | "terminated";
|
|
262
262
|
startsAt: string;
|
|
263
263
|
endsAt: string | null;
|
|
264
|
-
paymentOwner: "
|
|
264
|
+
paymentOwner: "split" | "operator" | "channel";
|
|
265
265
|
cancellationOwner: "operator" | "channel" | "mixed";
|
|
266
266
|
settlementTerms: string | null;
|
|
267
267
|
notes: string | null;
|
|
@@ -275,7 +275,7 @@ export declare const distributionService: {
|
|
|
275
275
|
data: {
|
|
276
276
|
id: string;
|
|
277
277
|
contractId: string;
|
|
278
|
-
scope: "
|
|
278
|
+
scope: "category" | "product" | "booking" | "rate";
|
|
279
279
|
productId: string | null;
|
|
280
280
|
externalRateId: string | null;
|
|
281
281
|
externalCategoryId: string | null;
|
|
@@ -294,7 +294,7 @@ export declare const distributionService: {
|
|
|
294
294
|
getCommissionRuleById(db: PostgresJsDatabase, id: string): Promise<{
|
|
295
295
|
id: string;
|
|
296
296
|
contractId: string;
|
|
297
|
-
scope: "
|
|
297
|
+
scope: "category" | "product" | "booking" | "rate";
|
|
298
298
|
productId: string | null;
|
|
299
299
|
externalRateId: string | null;
|
|
300
300
|
externalCategoryId: string | null;
|
|
@@ -307,15 +307,15 @@ export declare const distributionService: {
|
|
|
307
307
|
updatedAt: Date;
|
|
308
308
|
} | null>;
|
|
309
309
|
createCommissionRule(db: PostgresJsDatabase, data: CreateChannelCommissionRuleInput): Promise<{
|
|
310
|
+
id: string;
|
|
310
311
|
createdAt: Date;
|
|
311
312
|
updatedAt: Date;
|
|
312
|
-
|
|
313
|
+
scope: "category" | "product" | "booking" | "rate";
|
|
313
314
|
productId: string | null;
|
|
314
315
|
validFrom: string | null;
|
|
315
316
|
validTo: string | null;
|
|
316
317
|
amountCents: number | null;
|
|
317
318
|
contractId: string;
|
|
318
|
-
scope: "product" | "category" | "booking" | "rate";
|
|
319
319
|
externalRateId: string | null;
|
|
320
320
|
externalCategoryId: string | null;
|
|
321
321
|
commissionType: "fixed" | "percentage";
|
|
@@ -324,7 +324,7 @@ export declare const distributionService: {
|
|
|
324
324
|
updateCommissionRule(db: PostgresJsDatabase, id: string, data: UpdateChannelCommissionRuleInput): Promise<{
|
|
325
325
|
id: string;
|
|
326
326
|
contractId: string;
|
|
327
|
-
scope: "
|
|
327
|
+
scope: "category" | "product" | "booking" | "rate";
|
|
328
328
|
productId: string | null;
|
|
329
329
|
externalRateId: string | null;
|
|
330
330
|
externalCategoryId: string | null;
|
|
@@ -367,9 +367,9 @@ export declare const distributionService: {
|
|
|
367
367
|
updatedAt: Date;
|
|
368
368
|
} | null>;
|
|
369
369
|
createProductMapping(db: PostgresJsDatabase, data: CreateChannelProductMappingInput): Promise<{
|
|
370
|
+
id: string;
|
|
370
371
|
createdAt: Date;
|
|
371
372
|
updatedAt: Date;
|
|
372
|
-
id: string;
|
|
373
373
|
active: boolean;
|
|
374
374
|
productId: string;
|
|
375
375
|
channelId: string;
|
|
@@ -421,10 +421,10 @@ export declare const distributionService: {
|
|
|
421
421
|
updatedAt: Date;
|
|
422
422
|
} | null>;
|
|
423
423
|
createBookingLink(db: PostgresJsDatabase, data: CreateChannelBookingLinkInput): Promise<{
|
|
424
|
-
|
|
424
|
+
id: string;
|
|
425
425
|
createdAt: Date;
|
|
426
426
|
updatedAt: Date;
|
|
427
|
-
|
|
427
|
+
bookingId: string;
|
|
428
428
|
channelId: string;
|
|
429
429
|
externalBookingId: string | null;
|
|
430
430
|
externalReference: string | null;
|
|
@@ -477,8 +477,8 @@ export declare const distributionService: {
|
|
|
477
477
|
createdAt: Date;
|
|
478
478
|
} | null>;
|
|
479
479
|
createWebhookEvent(db: PostgresJsDatabase, data: CreateChannelWebhookEventInput): Promise<{
|
|
480
|
-
createdAt: Date;
|
|
481
480
|
id: string;
|
|
481
|
+
createdAt: Date;
|
|
482
482
|
status: "pending" | "processed" | "failed" | "ignored";
|
|
483
483
|
channelId: string;
|
|
484
484
|
eventType: string;
|
|
@@ -541,10 +541,10 @@ export declare const distributionService: {
|
|
|
541
541
|
updatedAt: Date;
|
|
542
542
|
} | null>;
|
|
543
543
|
createInventoryAllotment(db: PostgresJsDatabase, data: CreateChannelInventoryAllotmentInput): Promise<{
|
|
544
|
+
id: string;
|
|
544
545
|
createdAt: Date;
|
|
545
546
|
updatedAt: Date;
|
|
546
547
|
notes: string | null;
|
|
547
|
-
id: string;
|
|
548
548
|
active: boolean;
|
|
549
549
|
productId: string;
|
|
550
550
|
optionId: string | null;
|
|
@@ -609,9 +609,9 @@ export declare const distributionService: {
|
|
|
609
609
|
updatedAt: Date;
|
|
610
610
|
} | null>;
|
|
611
611
|
createInventoryAllotmentTarget(db: PostgresJsDatabase, data: CreateChannelInventoryAllotmentTargetInput): Promise<{
|
|
612
|
+
id: string;
|
|
612
613
|
createdAt: Date;
|
|
613
614
|
updatedAt: Date;
|
|
614
|
-
id: string;
|
|
615
615
|
active: boolean;
|
|
616
616
|
maxCapacity: number | null;
|
|
617
617
|
startTimeId: string | null;
|
|
@@ -667,10 +667,10 @@ export declare const distributionService: {
|
|
|
667
667
|
updatedAt: Date;
|
|
668
668
|
} | null>;
|
|
669
669
|
createInventoryReleaseRule(db: PostgresJsDatabase, data: CreateChannelInventoryReleaseRuleInput): Promise<{
|
|
670
|
+
id: string;
|
|
670
671
|
createdAt: Date;
|
|
671
672
|
updatedAt: Date;
|
|
672
673
|
notes: string | null;
|
|
673
|
-
id: string;
|
|
674
674
|
allotmentId: string;
|
|
675
675
|
releaseMode: "manual" | "automatic";
|
|
676
676
|
releaseDaysBeforeStart: number | null;
|
|
@@ -731,12 +731,12 @@ export declare const distributionService: {
|
|
|
731
731
|
updatedAt: Date;
|
|
732
732
|
} | null>;
|
|
733
733
|
createSettlementRun(db: PostgresJsDatabase, data: CreateChannelSettlementRunInput): Promise<{
|
|
734
|
-
createdAt: Date;
|
|
735
|
-
updatedAt: Date;
|
|
736
|
-
notes: string | null;
|
|
737
734
|
metadata: Record<string, unknown> | null;
|
|
738
735
|
id: string;
|
|
736
|
+
createdAt: Date;
|
|
737
|
+
updatedAt: Date;
|
|
739
738
|
status: "void" | "draft" | "open" | "posted" | "paid";
|
|
739
|
+
notes: string | null;
|
|
740
740
|
channelId: string;
|
|
741
741
|
contractId: string | null;
|
|
742
742
|
currencyCode: string | null;
|
|
@@ -774,7 +774,7 @@ export declare const distributionService: {
|
|
|
774
774
|
bookingLinkId: string | null;
|
|
775
775
|
bookingId: string | null;
|
|
776
776
|
commissionRuleId: string | null;
|
|
777
|
-
status: "
|
|
777
|
+
status: "pending" | "void" | "paid" | "approved" | "disputed";
|
|
778
778
|
grossAmountCents: number;
|
|
779
779
|
commissionAmountCents: number;
|
|
780
780
|
netRemittanceAmountCents: number;
|
|
@@ -795,7 +795,7 @@ export declare const distributionService: {
|
|
|
795
795
|
bookingLinkId: string | null;
|
|
796
796
|
bookingId: string | null;
|
|
797
797
|
commissionRuleId: string | null;
|
|
798
|
-
status: "
|
|
798
|
+
status: "pending" | "void" | "paid" | "approved" | "disputed";
|
|
799
799
|
grossAmountCents: number;
|
|
800
800
|
commissionAmountCents: number;
|
|
801
801
|
netRemittanceAmountCents: number;
|
|
@@ -807,12 +807,12 @@ export declare const distributionService: {
|
|
|
807
807
|
updatedAt: Date;
|
|
808
808
|
} | null>;
|
|
809
809
|
createSettlementItem(db: PostgresJsDatabase, data: CreateChannelSettlementItemInput): Promise<{
|
|
810
|
-
|
|
810
|
+
id: string;
|
|
811
811
|
createdAt: Date;
|
|
812
812
|
updatedAt: Date;
|
|
813
|
+
status: "pending" | "void" | "paid" | "approved" | "disputed";
|
|
813
814
|
notes: string | null;
|
|
814
|
-
|
|
815
|
-
status: "void" | "pending" | "paid" | "approved" | "disputed";
|
|
815
|
+
bookingId: string | null;
|
|
816
816
|
currencyCode: string | null;
|
|
817
817
|
paidAt: Date | null;
|
|
818
818
|
settlementRunId: string;
|
|
@@ -829,7 +829,7 @@ export declare const distributionService: {
|
|
|
829
829
|
bookingLinkId: string | null;
|
|
830
830
|
bookingId: string | null;
|
|
831
831
|
commissionRuleId: string | null;
|
|
832
|
-
status: "
|
|
832
|
+
status: "pending" | "void" | "paid" | "approved" | "disputed";
|
|
833
833
|
grossAmountCents: number;
|
|
834
834
|
commissionAmountCents: number;
|
|
835
835
|
netRemittanceAmountCents: number;
|
|
@@ -879,12 +879,12 @@ export declare const distributionService: {
|
|
|
879
879
|
updatedAt: Date;
|
|
880
880
|
} | null>;
|
|
881
881
|
createReconciliationRun(db: PostgresJsDatabase, data: CreateChannelReconciliationRunInput): Promise<{
|
|
882
|
-
createdAt: Date;
|
|
883
|
-
updatedAt: Date;
|
|
884
|
-
notes: string | null;
|
|
885
882
|
metadata: Record<string, unknown> | null;
|
|
886
883
|
id: string;
|
|
884
|
+
createdAt: Date;
|
|
885
|
+
updatedAt: Date;
|
|
887
886
|
status: "draft" | "archived" | "running" | "completed";
|
|
887
|
+
notes: string | null;
|
|
888
888
|
channelId: string;
|
|
889
889
|
contractId: string | null;
|
|
890
890
|
periodStart: string | null;
|
|
@@ -945,11 +945,11 @@ export declare const distributionService: {
|
|
|
945
945
|
updatedAt: Date;
|
|
946
946
|
} | null>;
|
|
947
947
|
createReconciliationItem(db: PostgresJsDatabase, data: CreateChannelReconciliationItemInput): Promise<{
|
|
948
|
-
|
|
948
|
+
id: string;
|
|
949
949
|
createdAt: Date;
|
|
950
950
|
updatedAt: Date;
|
|
951
951
|
notes: string | null;
|
|
952
|
-
|
|
952
|
+
bookingId: string | null;
|
|
953
953
|
externalBookingId: string | null;
|
|
954
954
|
bookingLinkId: string | null;
|
|
955
955
|
reconciliationRunId: string;
|
|
@@ -1011,12 +1011,12 @@ export declare const distributionService: {
|
|
|
1011
1011
|
updatedAt: Date;
|
|
1012
1012
|
} | null>;
|
|
1013
1013
|
createReleaseExecution(db: PostgresJsDatabase, data: CreateChannelInventoryReleaseExecutionInput): Promise<{
|
|
1014
|
-
createdAt: Date;
|
|
1015
|
-
updatedAt: Date;
|
|
1016
|
-
notes: string | null;
|
|
1017
1014
|
metadata: Record<string, unknown> | null;
|
|
1018
1015
|
id: string;
|
|
1016
|
+
createdAt: Date;
|
|
1017
|
+
updatedAt: Date;
|
|
1019
1018
|
status: "pending" | "failed" | "completed" | "skipped";
|
|
1019
|
+
notes: string | null;
|
|
1020
1020
|
slotId: string | null;
|
|
1021
1021
|
allotmentId: string;
|
|
1022
1022
|
releaseRuleId: string | null;
|
|
@@ -1081,11 +1081,11 @@ export declare const distributionService: {
|
|
|
1081
1081
|
updatedAt: Date;
|
|
1082
1082
|
} | null>;
|
|
1083
1083
|
createSettlementPolicy(db: PostgresJsDatabase, data: CreateChannelSettlementPolicyInput): Promise<{
|
|
1084
|
+
metadata: Record<string, unknown> | null;
|
|
1085
|
+
id: string;
|
|
1084
1086
|
createdAt: Date;
|
|
1085
1087
|
updatedAt: Date;
|
|
1086
1088
|
notes: string | null;
|
|
1087
|
-
metadata: Record<string, unknown> | null;
|
|
1088
|
-
id: string;
|
|
1089
1089
|
active: boolean;
|
|
1090
1090
|
channelId: string;
|
|
1091
1091
|
contractId: string | null;
|
|
@@ -1153,11 +1153,11 @@ export declare const distributionService: {
|
|
|
1153
1153
|
updatedAt: Date;
|
|
1154
1154
|
} | null>;
|
|
1155
1155
|
createReconciliationPolicy(db: PostgresJsDatabase, data: CreateChannelReconciliationPolicyInput): Promise<{
|
|
1156
|
+
metadata: Record<string, unknown> | null;
|
|
1157
|
+
id: string;
|
|
1156
1158
|
createdAt: Date;
|
|
1157
1159
|
updatedAt: Date;
|
|
1158
1160
|
notes: string | null;
|
|
1159
|
-
metadata: Record<string, unknown> | null;
|
|
1160
|
-
id: string;
|
|
1161
1161
|
active: boolean;
|
|
1162
1162
|
channelId: string;
|
|
1163
1163
|
contractId: string | null;
|
|
@@ -1217,11 +1217,11 @@ export declare const distributionService: {
|
|
|
1217
1217
|
updatedAt: Date;
|
|
1218
1218
|
} | null>;
|
|
1219
1219
|
createReleaseSchedule(db: PostgresJsDatabase, data: CreateChannelReleaseScheduleInput): Promise<{
|
|
1220
|
+
metadata: Record<string, unknown> | null;
|
|
1221
|
+
id: string;
|
|
1220
1222
|
createdAt: Date;
|
|
1221
1223
|
updatedAt: Date;
|
|
1222
1224
|
notes: string | null;
|
|
1223
|
-
metadata: Record<string, unknown> | null;
|
|
1224
|
-
id: string;
|
|
1225
1225
|
active: boolean;
|
|
1226
1226
|
releaseRuleId: string;
|
|
1227
1227
|
scheduleKind: "manual" | "daily" | "hourly";
|
|
@@ -1279,12 +1279,12 @@ export declare const distributionService: {
|
|
|
1279
1279
|
updatedAt: Date;
|
|
1280
1280
|
} | null>;
|
|
1281
1281
|
createRemittanceException(db: PostgresJsDatabase, data: CreateChannelRemittanceExceptionInput): Promise<{
|
|
1282
|
-
createdAt: Date;
|
|
1283
|
-
updatedAt: Date;
|
|
1284
|
-
notes: string | null;
|
|
1285
1282
|
metadata: Record<string, unknown> | null;
|
|
1286
1283
|
id: string;
|
|
1284
|
+
createdAt: Date;
|
|
1285
|
+
updatedAt: Date;
|
|
1287
1286
|
status: "open" | "ignored" | "resolved" | "investigating";
|
|
1287
|
+
notes: string | null;
|
|
1288
1288
|
channelId: string;
|
|
1289
1289
|
severity: "error" | "info" | "warning";
|
|
1290
1290
|
resolvedAt: Date | null;
|
|
@@ -1339,12 +1339,12 @@ export declare const distributionService: {
|
|
|
1339
1339
|
updatedAt: Date;
|
|
1340
1340
|
} | null>;
|
|
1341
1341
|
createSettlementApproval(db: PostgresJsDatabase, data: CreateChannelSettlementApprovalInput): Promise<{
|
|
1342
|
-
createdAt: Date;
|
|
1343
|
-
updatedAt: Date;
|
|
1344
|
-
notes: string | null;
|
|
1345
1342
|
metadata: Record<string, unknown> | null;
|
|
1346
1343
|
id: string;
|
|
1344
|
+
createdAt: Date;
|
|
1345
|
+
updatedAt: Date;
|
|
1347
1346
|
status: "pending" | "approved" | "rejected";
|
|
1347
|
+
notes: string | null;
|
|
1348
1348
|
settlementRunId: string;
|
|
1349
1349
|
approverUserId: string | null;
|
|
1350
1350
|
decidedAt: Date | null;
|