@dakkitor/api-contracts 1.1.14 → 1.1.15

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.
@@ -42,7 +42,7 @@ exports.BookingSortableFieldsSchema = zod_1.z
42
42
  // Nested Schemas
43
43
  exports.BookingPaySchema = zod_1.z
44
44
  .object({
45
- rate: zod_1.z.number().describe('Pay Rate'),
45
+ rate: zod_1.z.coerce.number().describe('Pay Rate'),
46
46
  unit: common_schemas_1.RateUnitSchema.describe('Pay Unit'),
47
47
  })
48
48
  .openapi({ title: 'BookingPay' });
@@ -93,7 +93,7 @@ exports.BookingWorkerSchema = zod_1.z.object({
93
93
  });
94
94
  exports.BookingJobSchema = zod_1.z.object({
95
95
  id: zod_1.z.string().uuid(),
96
- title: zod_1.z.string(),
96
+ description: zod_1.z.string(),
97
97
  });
98
98
  // Main Schemas
99
99
  exports.BookingSchema = zod_1.z
@@ -101,11 +101,11 @@ exports.BookingSchema = zod_1.z
101
101
  id: zod_1.z.string().uuid().describe('Booking ID'),
102
102
  status: exports.BookingStatusSchema.describe('Booking Status'),
103
103
  startDate: zod_1.z
104
- .union([zod_1.z.string().datetime(), zod_1.z.date()])
104
+ .union([zod_1.z.string(), zod_1.z.date()])
105
105
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
106
106
  .describe('Start Date'),
107
107
  endDate: zod_1.z
108
- .union([zod_1.z.string().datetime(), zod_1.z.date(), zod_1.z.null()])
108
+ .union([zod_1.z.string(), zod_1.z.date(), zod_1.z.null()])
109
109
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
110
110
  .nullable()
111
111
  .optional()