@dakkitor/api-contracts 1.1.20 → 1.1.22
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 +5228 -384
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +4729 -439
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +7 -42
- package/dist/collaborations/collaborations.contract.d.ts +379 -379
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +2 -4
- package/dist/index.d.ts +54 -33101
- package/dist/index.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.d.ts +1270 -400
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +8 -13
- package/dist/workers/workers.contract.d.ts +418 -418
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +5 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings.contract.d.ts","sourceRoot":"","sources":["../../contracts/bookings/bookings.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"bookings.contract.d.ts","sourceRoot":"","sources":["../../contracts/bookings/bookings.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,mBAAmB,ukBAyBM,CAAC;AAEvC,eAAO,MAAM,2BAA2B,8DAEM,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;;EAKM,CAAC;AAIpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQM,CAAC;AAErC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EA2BM,CAAC;AAK5C,eAAO,MAAM,m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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFlC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bookingsContractRouter = exports.BookingArraySchema = exports.PaginatedBookingResponseSchema = exports.FilterBookingSchema = exports.UpdateBookingSchema = exports.CreateBookingSchema = exports.BookingSchema = exports.
|
|
3
|
+
exports.bookingsContractRouter = exports.BookingArraySchema = exports.PaginatedBookingResponseSchema = exports.FilterBookingSchema = exports.UpdateBookingSchema = exports.CreateBookingSchema = exports.BookingSchema = exports.BookingWorkerSchema = exports.FilterJobInBookingSchema = exports.BookingItemSchema = exports.BookingPaySchema = exports.BookingSortableFieldsSchema = exports.BookingStatusSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const core_1 = require("@ts-rest/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -8,6 +8,9 @@ const common_schemas_1 = require("../common/common-schemas");
|
|
|
8
8
|
const error_schemas_1 = require("../common/error-schemas");
|
|
9
9
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
10
10
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
11
|
+
const jobs_contract_1 = require("../jobs/jobs.contract");
|
|
12
|
+
const users_contract_1 = require("../users/users.contract");
|
|
13
|
+
const workers_contract_1 = require("../workers/workers.contract");
|
|
11
14
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
12
15
|
// Enum Schemas
|
|
13
16
|
exports.BookingStatusSchema = zod_1.z
|
|
@@ -91,44 +94,6 @@ exports.BookingWorkerSchema = zod_1.z.object({
|
|
|
91
94
|
firstName: zod_1.z.string(),
|
|
92
95
|
lastName: zod_1.z.string(),
|
|
93
96
|
});
|
|
94
|
-
// Job-related schemas for BookingJobSchema (defined locally to avoid circular imports)
|
|
95
|
-
const BookingJobStatusSchema = zod_1.z.enum([
|
|
96
|
-
'CANCELED',
|
|
97
|
-
'FILLED',
|
|
98
|
-
'AVAILABLE',
|
|
99
|
-
'NOT_AVAILABLE',
|
|
100
|
-
]);
|
|
101
|
-
const BookingJobPaySchema = zod_1.z.object({
|
|
102
|
-
rateUnit: common_schemas_1.RateUnitSchema.describe('The unit for the pay rate'),
|
|
103
|
-
rate: zod_1.z.coerce.number().min(1).describe('The pay rate'),
|
|
104
|
-
rateMax: zod_1.z.coerce
|
|
105
|
-
.number()
|
|
106
|
-
.min(1)
|
|
107
|
-
.optional()
|
|
108
|
-
.nullable()
|
|
109
|
-
.describe('The maximum pay rate (for a range)'),
|
|
110
|
-
receivedRate: zod_1.z.coerce.number().min(1).describe('The received pay rate'),
|
|
111
|
-
});
|
|
112
|
-
exports.BookingJobSchema = zod_1.z.object({
|
|
113
|
-
id: zod_1.z.string().uuid(),
|
|
114
|
-
description: zod_1.z.string(),
|
|
115
|
-
numberOfPositions: zod_1.z.number().int().min(1).describe('Number of Positions'),
|
|
116
|
-
workHours: zod_1.z.coerce.number().nullable().optional().describe('Work Hours'),
|
|
117
|
-
status: BookingJobStatusSchema.describe('Job Status'),
|
|
118
|
-
pay: BookingJobPaySchema.describe('Job Pay'),
|
|
119
|
-
location: common_schemas_1.LocationDetailsSchema.nullable()
|
|
120
|
-
.optional()
|
|
121
|
-
.describe('Job Location'),
|
|
122
|
-
tradeId: zod_1.z.string().uuid().describe('Trade ID'),
|
|
123
|
-
createdAt: zod_1.z
|
|
124
|
-
.union([zod_1.z.string(), zod_1.z.date()])
|
|
125
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
126
|
-
.describe('Creation Date'),
|
|
127
|
-
updatedAt: zod_1.z
|
|
128
|
-
.union([zod_1.z.string(), zod_1.z.date()])
|
|
129
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
130
|
-
.describe('Last Update Date'),
|
|
131
|
-
});
|
|
132
97
|
// Main Schemas
|
|
133
98
|
exports.BookingSchema = zod_1.z
|
|
134
99
|
.object({
|
|
@@ -144,10 +109,10 @@ exports.BookingSchema = zod_1.z
|
|
|
144
109
|
.nullable()
|
|
145
110
|
.optional()
|
|
146
111
|
.describe('End Date'),
|
|
147
|
-
worker:
|
|
148
|
-
user:
|
|
112
|
+
worker: workers_contract_1.WorkerSchema.describe('Worker'),
|
|
113
|
+
user: users_contract_1.UserSchema.describe('User'),
|
|
149
114
|
pay: exports.BookingPaySchema.describe('Pay Information'),
|
|
150
|
-
job:
|
|
115
|
+
job: jobs_contract_1.JobSchema.describe('Job'),
|
|
151
116
|
userId: zod_1.z.string().uuid().describe('User ID'),
|
|
152
117
|
createdAt: zod_1.z
|
|
153
118
|
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|