@dakkitor/api-contracts 1.1.78 → 1.1.79
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/actives/actives.contract.d.ts +2877 -2877
- package/dist/bookings/bookings.contract.d.ts +2469 -2469
- package/dist/workers/workers.contract.d.ts +202 -202
- package/dist/workers/workers.contract.js +3 -3
- package/package.json +1 -1
|
@@ -5,10 +5,10 @@ const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
|
5
5
|
const core_1 = require("@ts-rest/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
7
|
const common_schemas_1 = require("../common/common-schemas");
|
|
8
|
-
const curated_workers_contract_1 = require("../curated-workers/curated-workers.contract");
|
|
9
8
|
const error_schemas_1 = require("../common/error-schemas");
|
|
10
9
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
11
10
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
11
|
+
const curated_workers_contract_1 = require("../curated-workers/curated-workers.contract");
|
|
12
12
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
13
13
|
// --- Enums ---
|
|
14
14
|
exports.AvailabilitySchema = zod_1.z.enum([
|
|
@@ -36,7 +36,7 @@ exports.WorkerPhoneNumberSchema = zod_1.z
|
|
|
36
36
|
exports.CreateWorkerPhoneNumberSchema = zod_1.z
|
|
37
37
|
.object({
|
|
38
38
|
phoneNumber: zod_1.z.string(),
|
|
39
|
-
description: zod_1.z.string().max(100).optional(),
|
|
39
|
+
description: zod_1.z.string().max(100).nullable().optional(),
|
|
40
40
|
isPrimary: zod_1.z.boolean().default(false),
|
|
41
41
|
})
|
|
42
42
|
.openapi({ title: 'CreateWorkerPhoneNumber' });
|
|
@@ -44,7 +44,7 @@ exports.UpsertWorkerPhoneNumberSchema = zod_1.z
|
|
|
44
44
|
.object({
|
|
45
45
|
id: zod_1.z.string().uuid().optional(),
|
|
46
46
|
phoneNumber: zod_1.z.string().optional(),
|
|
47
|
-
description: zod_1.z.string().max(100).optional(),
|
|
47
|
+
description: zod_1.z.string().max(100).nullable().optional(),
|
|
48
48
|
isPrimary: zod_1.z.boolean().optional(),
|
|
49
49
|
})
|
|
50
50
|
.refine((data) => {
|