@dakkitor/api-contracts 1.1.12 → 1.1.13

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.
@@ -40,7 +40,7 @@ const PayRangeSchema = zod_1.z.object({
40
40
  });
41
41
  // Pay schema
42
42
  const PaySchema = zod_1.z.object({
43
- rate: zod_1.z.number().describe('Pay Rate'),
43
+ rate: zod_1.z.coerce.number().describe('Pay Rate'),
44
44
  unit: common_schemas_1.RateUnitSchema.describe('Pay Unit'),
45
45
  });
46
46
  const WorkerPaySchema = zod_1.z.object({
@@ -85,7 +85,7 @@ exports.ActiveSchema = zod_1.z
85
85
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
86
86
  .nullable()
87
87
  .describe('FA Status Updated At'),
88
- hoursWorked: zod_1.z.number().nullable().describe('Hours Worked'),
88
+ hoursWorked: zod_1.z.coerce.number().nullable().describe('Hours Worked'),
89
89
  hoursWorkedUpdatedAt: zod_1.z
90
90
  .union([zod_1.z.string().datetime(), zod_1.z.date(), zod_1.z.null()])
91
91
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",