@voyantjs/bookings 0.5.0 → 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/service.d.ts CHANGED
@@ -67,7 +67,7 @@ export declare const bookingsService: {
67
67
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
68
68
  personId: string | null;
69
69
  organizationId: string | null;
70
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
70
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
71
71
  externalBookingRef: string | null;
72
72
  communicationLanguage: string | null;
73
73
  sellCurrency: string;
@@ -104,7 +104,7 @@ export declare const bookingsService: {
104
104
  endDate: string | null;
105
105
  bookingNumber: string;
106
106
  personId: string | null;
107
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
107
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
108
108
  externalBookingRef: string | null;
109
109
  communicationLanguage: string | null;
110
110
  sellCurrency: string;
@@ -129,7 +129,7 @@ export declare const bookingsService: {
129
129
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
130
130
  personId: string | null;
131
131
  organizationId: string | null;
132
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
132
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
133
133
  externalBookingRef: string | null;
134
134
  communicationLanguage: string | null;
135
135
  sellCurrency: string;
@@ -162,7 +162,7 @@ export declare const bookingsService: {
162
162
  endDate: string | null;
163
163
  bookingNumber: string;
164
164
  personId: string | null;
165
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
165
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
166
166
  externalBookingRef: string | null;
167
167
  communicationLanguage: string | null;
168
168
  sellCurrency: string;
@@ -340,7 +340,7 @@ export declare const bookingsService: {
340
340
  tableName: "booking_allocations";
341
341
  dataType: "string";
342
342
  columnType: "PgEnumColumn";
343
- data: "unit" | "pickup" | "resource";
343
+ data: "resource" | "unit" | "pickup";
344
344
  driverParam: string;
345
345
  notNull: true;
346
346
  hasDefault: true;
@@ -483,7 +483,7 @@ export declare const bookingsService: {
483
483
  pricingCategoryId: string | null;
484
484
  availabilitySlotId: string | null;
485
485
  quantity: number;
486
- allocationType: "unit" | "pickup" | "resource";
486
+ allocationType: "resource" | "unit" | "pickup";
487
487
  status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
488
488
  holdExpiresAt: Date | null;
489
489
  confirmedAt: Date | null;
@@ -650,7 +650,7 @@ export declare const bookingsService: {
650
650
  tableName: "booking_allocations";
651
651
  dataType: "string";
652
652
  columnType: "PgEnumColumn";
653
- data: "unit" | "pickup" | "resource";
653
+ data: "resource" | "unit" | "pickup";
654
654
  driverParam: string;
655
655
  notNull: true;
656
656
  hasDefault: true;
@@ -802,7 +802,7 @@ export declare const bookingsService: {
802
802
  endDate: string | null;
803
803
  bookingNumber: string;
804
804
  personId: string | null;
805
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
805
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
806
806
  externalBookingRef: string | null;
807
807
  communicationLanguage: string | null;
808
808
  sellCurrency: string;
@@ -834,7 +834,7 @@ export declare const bookingsService: {
834
834
  endDate: string | null;
835
835
  bookingNumber: string;
836
836
  personId: string | null;
837
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
837
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
838
838
  externalBookingRef: string | null;
839
839
  communicationLanguage: string | null;
840
840
  sellCurrency: string;
@@ -859,7 +859,7 @@ export declare const bookingsService: {
859
859
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
860
860
  personId: string | null;
861
861
  organizationId: string | null;
862
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
862
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
863
863
  externalBookingRef: string | null;
864
864
  communicationLanguage: string | null;
865
865
  sellCurrency: string;
@@ -896,7 +896,7 @@ export declare const bookingsService: {
896
896
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
897
897
  personId: string | null;
898
898
  organizationId: string | null;
899
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
899
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
900
900
  externalBookingRef: string | null;
901
901
  communicationLanguage: string | null;
902
902
  sellCurrency: string;
@@ -930,7 +930,7 @@ export declare const bookingsService: {
930
930
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
931
931
  personId: string | null;
932
932
  organizationId: string | null;
933
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
933
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
934
934
  externalBookingRef: string | null;
935
935
  communicationLanguage: string | null;
936
936
  sellCurrency: string;
@@ -964,7 +964,7 @@ export declare const bookingsService: {
964
964
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
965
965
  personId: string | null;
966
966
  organizationId: string | null;
967
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
967
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
968
968
  externalBookingRef: string | null;
969
969
  communicationLanguage: string | null;
970
970
  sellCurrency: string;
@@ -1003,7 +1003,7 @@ export declare const bookingsService: {
1003
1003
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
1004
1004
  personId: string | null;
1005
1005
  organizationId: string | null;
1006
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1006
+ sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
1007
1007
  externalBookingRef: string | null;
1008
1008
  communicationLanguage: string | null;
1009
1009
  sellCurrency: string;
@@ -1763,7 +1763,7 @@ export declare const bookingsService: {
1763
1763
  tableName: "booking_items";
1764
1764
  dataType: "string";
1765
1765
  columnType: "PgEnumColumn";
1766
- data: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1766
+ data: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1767
1767
  driverParam: string;
1768
1768
  notNull: true;
1769
1769
  hasDefault: true;
@@ -2139,7 +2139,7 @@ export declare const bookingsService: {
2139
2139
  bookingId: string;
2140
2140
  title: string;
2141
2141
  description: string | null;
2142
- itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2142
+ itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2143
2143
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
2144
2144
  serviceDate: string | null;
2145
2145
  startsAt: Date | null;
@@ -2235,7 +2235,7 @@ export declare const bookingsService: {
2235
2235
  tableName: "booking_items";
2236
2236
  dataType: "string";
2237
2237
  columnType: "PgEnumColumn";
2238
- data: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2238
+ data: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2239
2239
  driverParam: string;
2240
2240
  notNull: true;
2241
2241
  hasDefault: true;
@@ -2618,12 +2618,12 @@ export declare const bookingsService: {
2618
2618
  createdAt: Date;
2619
2619
  updatedAt: Date;
2620
2620
  metadata: Record<string, unknown> | null;
2621
+ description: string | null;
2621
2622
  sellCurrency: string;
2622
2623
  bookingId: string;
2623
2624
  optionUnitId: string | null;
2624
2625
  title: string;
2625
- description: string | null;
2626
- itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2626
+ itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2627
2627
  serviceDate: string | null;
2628
2628
  quantity: number;
2629
2629
  unitSellAmountCents: number | null;
@@ -2640,7 +2640,7 @@ export declare const bookingsService: {
2640
2640
  bookingId: string;
2641
2641
  title: string;
2642
2642
  description: string | null;
2643
- itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2643
+ itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2644
2644
  status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
2645
2645
  serviceDate: string | null;
2646
2646
  startsAt: Date | null;
@@ -4214,8 +4214,8 @@ export declare const bookingsService: {
4214
4214
  recordRedemption(db: PostgresJsDatabase, bookingId: string, data: RecordBookingRedemptionInput, userId?: string): Promise<{
4215
4215
  id: string;
4216
4216
  createdAt: Date;
4217
- method: "other" | "manual" | "api" | "scan";
4218
4217
  metadata: Record<string, unknown> | null;
4218
+ method: "other" | "manual" | "api" | "scan";
4219
4219
  redeemedAt: Date;
4220
4220
  bookingId: string;
4221
4221
  participantId: string | null;
@@ -30,10 +30,10 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
30
30
  title: z.ZodString;
31
31
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  itemType: z.ZodDefault<z.ZodEnum<{
33
+ service: "service";
33
34
  other: "other";
34
35
  unit: "unit";
35
36
  extra: "extra";
36
- service: "service";
37
37
  fee: "fee";
38
38
  tax: "tax";
39
39
  discount: "discount";
@@ -57,9 +57,9 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
57
57
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
58
  availabilitySlotId: z.ZodString;
59
59
  allocationType: z.ZodDefault<z.ZodEnum<{
60
+ resource: "resource";
60
61
  unit: "unit";
61
62
  pickup: "pickup";
62
- resource: "resource";
63
63
  }>>;
64
64
  }, z.core.$strip>;
65
65
  export declare const publicCreateBookingSessionSchema: z.ZodObject<{
@@ -81,10 +81,10 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
81
81
  title: z.ZodString;
82
82
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  itemType: z.ZodDefault<z.ZodEnum<{
84
+ service: "service";
84
85
  other: "other";
85
86
  unit: "unit";
86
87
  extra: "extra";
87
- service: "service";
88
88
  fee: "fee";
89
89
  tax: "tax";
90
90
  discount: "discount";
@@ -108,9 +108,9 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
108
108
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
109
109
  availabilitySlotId: z.ZodString;
110
110
  allocationType: z.ZodDefault<z.ZodEnum<{
111
+ resource: "resource";
111
112
  unit: "unit";
112
113
  pickup: "pickup";
113
- resource: "resource";
114
114
  }>>;
115
115
  }, z.core.$strip>>;
116
116
  participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -268,10 +268,10 @@ export declare const publicBookingSessionItemSchema: z.ZodObject<{
268
268
  title: z.ZodString;
269
269
  description: z.ZodNullable<z.ZodString>;
270
270
  itemType: z.ZodEnum<{
271
+ service: "service";
271
272
  other: "other";
272
273
  unit: "unit";
273
274
  extra: "extra";
274
- service: "service";
275
275
  fee: "fee";
276
276
  tax: "tax";
277
277
  discount: "discount";
@@ -326,9 +326,9 @@ export declare const publicBookingSessionAllocationSchema: z.ZodObject<{
326
326
  availabilitySlotId: z.ZodNullable<z.ZodString>;
327
327
  quantity: z.ZodNumber;
328
328
  allocationType: z.ZodEnum<{
329
+ resource: "resource";
329
330
  unit: "unit";
330
331
  pickup: "pickup";
331
- resource: "resource";
332
332
  }>;
333
333
  status: z.ZodEnum<{
334
334
  cancelled: "cancelled";
@@ -406,10 +406,10 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
406
406
  title: z.ZodString;
407
407
  description: z.ZodNullable<z.ZodString>;
408
408
  itemType: z.ZodEnum<{
409
+ service: "service";
409
410
  other: "other";
410
411
  unit: "unit";
411
412
  extra: "extra";
412
- service: "service";
413
413
  fee: "fee";
414
414
  tax: "tax";
415
415
  discount: "discount";
@@ -464,9 +464,9 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
464
464
  availabilitySlotId: z.ZodNullable<z.ZodString>;
465
465
  quantity: z.ZodNumber;
466
466
  allocationType: z.ZodEnum<{
467
+ resource: "resource";
467
468
  unit: "unit";
468
469
  pickup: "pickup";
469
- resource: "resource";
470
470
  }>;
471
471
  status: z.ZodEnum<{
472
472
  cancelled: "cancelled";
@@ -617,10 +617,10 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
617
617
  title: z.ZodString;
618
618
  description: z.ZodNullable<z.ZodString>;
619
619
  itemType: z.ZodEnum<{
620
+ service: "service";
620
621
  other: "other";
621
622
  unit: "unit";
622
623
  extra: "extra";
623
- service: "service";
624
624
  fee: "fee";
625
625
  tax: "tax";
626
626
  discount: "discount";
@@ -675,9 +675,9 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
675
675
  availabilitySlotId: z.ZodNullable<z.ZodString>;
676
676
  quantity: z.ZodNumber;
677
677
  allocationType: z.ZodEnum<{
678
+ resource: "resource";
678
679
  unit: "unit";
679
680
  pickup: "pickup";
680
- resource: "resource";
681
681
  }>;
682
682
  status: z.ZodEnum<{
683
683
  cancelled: "cancelled";
@@ -806,10 +806,10 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
806
806
  title: z.ZodString;
807
807
  description: z.ZodNullable<z.ZodString>;
808
808
  itemType: z.ZodEnum<{
809
+ service: "service";
809
810
  other: "other";
810
811
  unit: "unit";
811
812
  extra: "extra";
812
- service: "service";
813
813
  fee: "fee";
814
814
  tax: "tax";
815
815
  discount: "discount";
@@ -16,11 +16,11 @@ export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
16
16
  }>;
17
17
  export declare const bookingSourceTypeSchema: z.ZodEnum<{
18
18
  internal: "internal";
19
+ reseller: "reseller";
19
20
  direct: "direct";
20
21
  manual: "manual";
21
22
  affiliate: "affiliate";
22
23
  ota: "ota";
23
- reseller: "reseller";
24
24
  api_partner: "api_partner";
25
25
  }>;
26
26
  export declare const bookingParticipantTypeSchema: z.ZodEnum<{
@@ -39,10 +39,10 @@ export declare const bookingTravelerCategorySchema: z.ZodEnum<{
39
39
  senior: "senior";
40
40
  }>;
41
41
  export declare const bookingItemTypeSchema: z.ZodEnum<{
42
+ service: "service";
42
43
  other: "other";
43
44
  unit: "unit";
44
45
  extra: "extra";
45
- service: "service";
46
46
  fee: "fee";
47
47
  tax: "tax";
48
48
  discount: "discount";
@@ -67,9 +67,9 @@ export declare const bookingItemParticipantRoleSchema: z.ZodEnum<{
67
67
  beneficiary: "beneficiary";
68
68
  }>;
69
69
  export declare const bookingAllocationTypeSchema: z.ZodEnum<{
70
+ resource: "resource";
70
71
  unit: "unit";
71
72
  pickup: "pickup";
72
- resource: "resource";
73
73
  }>;
74
74
  export declare const bookingAllocationStatusSchema: z.ZodEnum<{
75
75
  cancelled: "cancelled";
@@ -14,11 +14,11 @@ export declare const insertBookingSchema: z.ZodObject<{
14
14
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
15
  sourceType: z.ZodDefault<z.ZodEnum<{
16
16
  internal: "internal";
17
+ reseller: "reseller";
17
18
  direct: "direct";
18
19
  manual: "manual";
19
20
  affiliate: "affiliate";
20
21
  ota: "ota";
21
- reseller: "reseller";
22
22
  api_partner: "api_partner";
23
23
  }>>;
24
24
  externalBookingRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -56,11 +56,11 @@ export declare const updateBookingSchema: z.ZodObject<{
56
56
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
57
57
  sourceType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
58
58
  internal: "internal";
59
+ reseller: "reseller";
59
60
  direct: "direct";
60
61
  manual: "manual";
61
62
  affiliate: "affiliate";
62
63
  ota: "ota";
63
- reseller: "reseller";
64
64
  api_partner: "api_partner";
65
65
  }>>>;
66
66
  externalBookingRef: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -158,10 +158,10 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
158
158
  title: z.ZodString;
159
159
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
160
  itemType: z.ZodDefault<z.ZodEnum<{
161
+ service: "service";
161
162
  other: "other";
162
163
  unit: "unit";
163
164
  extra: "extra";
164
- service: "service";
165
165
  fee: "fee";
166
166
  tax: "tax";
167
167
  discount: "discount";
@@ -185,9 +185,9 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
185
185
  sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
186
186
  availabilitySlotId: z.ZodString;
187
187
  allocationType: z.ZodDefault<z.ZodEnum<{
188
+ resource: "resource";
188
189
  unit: "unit";
189
190
  pickup: "pickup";
190
- resource: "resource";
191
191
  }>>;
192
192
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
193
193
  }, z.core.$strip>;
@@ -199,11 +199,11 @@ export declare const reserveBookingSchema: z.ZodObject<{
199
199
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
200
200
  sourceType: z.ZodDefault<z.ZodEnum<{
201
201
  internal: "internal";
202
+ reseller: "reseller";
202
203
  direct: "direct";
203
204
  manual: "manual";
204
205
  affiliate: "affiliate";
205
206
  ota: "ota";
206
- reseller: "reseller";
207
207
  api_partner: "api_partner";
208
208
  }>>;
209
209
  externalBookingRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -223,10 +223,10 @@ export declare const reserveBookingSchema: z.ZodObject<{
223
223
  title: z.ZodString;
224
224
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
225
225
  itemType: z.ZodDefault<z.ZodEnum<{
226
+ service: "service";
226
227
  other: "other";
227
228
  unit: "unit";
228
229
  extra: "extra";
229
- service: "service";
230
230
  fee: "fee";
231
231
  tax: "tax";
232
232
  discount: "discount";
@@ -250,9 +250,9 @@ export declare const reserveBookingSchema: z.ZodObject<{
250
250
  sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
251
251
  availabilitySlotId: z.ZodString;
252
252
  allocationType: z.ZodDefault<z.ZodEnum<{
253
+ resource: "resource";
253
254
  unit: "unit";
254
255
  pickup: "pickup";
255
- resource: "resource";
256
256
  }>>;
257
257
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
258
258
  }, z.core.$strip>>;
@@ -278,11 +278,11 @@ export declare const reserveBookingFromTransactionSchema: z.ZodObject<{
278
278
  bookingNumber: z.ZodString;
279
279
  sourceType: z.ZodDefault<z.ZodEnum<{
280
280
  internal: "internal";
281
+ reseller: "reseller";
281
282
  direct: "direct";
282
283
  manual: "manual";
283
284
  affiliate: "affiliate";
284
285
  ota: "ota";
285
- reseller: "reseller";
286
286
  api_partner: "api_partner";
287
287
  }>>;
288
288
  holdMinutes: z.ZodDefault<z.ZodNumber>;
@@ -373,10 +373,10 @@ export declare const insertBookingItemSchema: z.ZodObject<{
373
373
  title: z.ZodString;
374
374
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
375
375
  itemType: z.ZodDefault<z.ZodEnum<{
376
+ service: "service";
376
377
  other: "other";
377
378
  unit: "unit";
378
379
  extra: "extra";
379
- service: "service";
380
380
  fee: "fee";
381
381
  tax: "tax";
382
382
  discount: "discount";
@@ -415,10 +415,10 @@ export declare const updateBookingItemSchema: z.ZodObject<{
415
415
  title: z.ZodOptional<z.ZodString>;
416
416
  description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
417
417
  itemType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
418
+ service: "service";
418
419
  other: "other";
419
420
  unit: "unit";
420
421
  extra: "extra";
421
- service: "service";
422
422
  fee: "fee";
423
423
  tax: "tax";
424
424
  discount: "discount";
@@ -462,9 +462,9 @@ export declare const insertBookingAllocationSchema: z.ZodObject<{
462
462
  availabilitySlotId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
463
  quantity: z.ZodDefault<z.ZodNumber>;
464
464
  allocationType: z.ZodDefault<z.ZodEnum<{
465
+ resource: "resource";
465
466
  unit: "unit";
466
467
  pickup: "pickup";
467
- resource: "resource";
468
468
  }>>;
469
469
  status: z.ZodDefault<z.ZodEnum<{
470
470
  cancelled: "cancelled";
@@ -488,9 +488,9 @@ export declare const updateBookingAllocationSchema: z.ZodObject<{
488
488
  availabilitySlotId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
489
489
  quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
490
490
  allocationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
491
+ resource: "resource";
491
492
  unit: "unit";
492
493
  pickup: "pickup";
493
- resource: "resource";
494
494
  }>>>;
495
495
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
496
496
  cancelled: "cancelled";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/bookings",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -49,14 +49,14 @@
49
49
  "drizzle-orm": "^0.45.2",
50
50
  "hono": "^4.12.10",
51
51
  "zod": "^4.3.6",
52
- "@voyantjs/core": "0.5.0",
53
- "@voyantjs/db": "0.5.0",
54
- "@voyantjs/hono": "0.5.0",
55
- "@voyantjs/utils": "0.5.0"
52
+ "@voyantjs/core": "0.6.0",
53
+ "@voyantjs/db": "0.6.0",
54
+ "@voyantjs/hono": "0.6.0",
55
+ "@voyantjs/utils": "0.6.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "typescript": "^6.0.2",
59
- "@voyantjs/products": "0.5.0",
59
+ "@voyantjs/products": "0.6.0",
60
60
  "@voyantjs/voyant-typescript-config": "0.1.0"
61
61
  },
62
62
  "files": [