@voyantjs/resources 0.28.3 → 0.30.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/routes.d.ts +7 -7
- package/dist/schema.d.ts +1 -1
- package/dist/service.d.ts +6 -6
- package/dist/validation.d.ts +10 -10
- package/package.json +6 -6
package/dist/routes.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
37
37
|
input: {};
|
|
38
38
|
output: {
|
|
39
39
|
data: {
|
|
40
|
-
id: string;
|
|
41
40
|
name: string;
|
|
41
|
+
id: string;
|
|
42
42
|
createdAt: string;
|
|
43
43
|
updatedAt: string;
|
|
44
44
|
notes: string | null;
|
|
@@ -232,8 +232,8 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
232
232
|
input: {};
|
|
233
233
|
output: {
|
|
234
234
|
data: {
|
|
235
|
-
id: string;
|
|
236
235
|
name: string;
|
|
236
|
+
id: string;
|
|
237
237
|
createdAt: string;
|
|
238
238
|
updatedAt: string;
|
|
239
239
|
notes: string | null;
|
|
@@ -845,7 +845,7 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
845
845
|
poolId: string | null;
|
|
846
846
|
resourceId: string | null;
|
|
847
847
|
bookingId: string | null;
|
|
848
|
-
status: "
|
|
848
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
849
849
|
assignedAt: string;
|
|
850
850
|
assignedBy: string | null;
|
|
851
851
|
releasedAt: string | null;
|
|
@@ -866,7 +866,7 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
866
866
|
output: {
|
|
867
867
|
data: {
|
|
868
868
|
id: string;
|
|
869
|
-
status: "
|
|
869
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
870
870
|
notes: string | null;
|
|
871
871
|
bookingId: string | null;
|
|
872
872
|
poolId: string | null;
|
|
@@ -892,7 +892,7 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
892
892
|
poolId: string | null;
|
|
893
893
|
resourceId: string | null;
|
|
894
894
|
bookingId: string | null;
|
|
895
|
-
status: "
|
|
895
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
896
896
|
assignedAt: string;
|
|
897
897
|
assignedBy: string | null;
|
|
898
898
|
releasedAt: string | null;
|
|
@@ -952,7 +952,7 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
952
952
|
poolId: string | null;
|
|
953
953
|
resourceId: string | null;
|
|
954
954
|
bookingId: string | null;
|
|
955
|
-
status: "
|
|
955
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
956
956
|
assignedAt: string;
|
|
957
957
|
assignedBy: string | null;
|
|
958
958
|
releasedAt: string | null;
|
|
@@ -989,7 +989,7 @@ export declare const resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
989
989
|
poolId: string | null;
|
|
990
990
|
resourceId: string | null;
|
|
991
991
|
bookingId: string | null;
|
|
992
|
-
status: "
|
|
992
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
993
993
|
assignedAt: string;
|
|
994
994
|
assignedBy: string | null;
|
|
995
995
|
releasedAt: string | null;
|
package/dist/schema.d.ts
CHANGED
|
@@ -701,7 +701,7 @@ export declare const resourceSlotAssignments: import("drizzle-orm/pg-core").PgTa
|
|
|
701
701
|
tableName: "resource_slot_assignments";
|
|
702
702
|
dataType: "string";
|
|
703
703
|
columnType: "PgEnumColumn";
|
|
704
|
-
data: "
|
|
704
|
+
data: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
705
705
|
driverParam: string;
|
|
706
706
|
notNull: true;
|
|
707
707
|
hasDefault: true;
|
package/dist/service.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export declare const resourcesService: {
|
|
|
51
51
|
updatedAt: Date;
|
|
52
52
|
} | null>;
|
|
53
53
|
createResource(db: PostgresJsDatabase, data: CreateResourceInput): Promise<{
|
|
54
|
-
id: string;
|
|
55
54
|
name: string;
|
|
55
|
+
id: string;
|
|
56
56
|
createdAt: Date;
|
|
57
57
|
updatedAt: Date;
|
|
58
58
|
notes: string | null;
|
|
@@ -107,8 +107,8 @@ export declare const resourcesService: {
|
|
|
107
107
|
updatedAt: Date;
|
|
108
108
|
} | null>;
|
|
109
109
|
createPool(db: PostgresJsDatabase, data: CreateResourcePoolInput): Promise<{
|
|
110
|
-
id: string;
|
|
111
110
|
name: string;
|
|
111
|
+
id: string;
|
|
112
112
|
createdAt: Date;
|
|
113
113
|
updatedAt: Date;
|
|
114
114
|
notes: string | null;
|
|
@@ -270,7 +270,7 @@ export declare const resourcesService: {
|
|
|
270
270
|
poolId: string | null;
|
|
271
271
|
resourceId: string | null;
|
|
272
272
|
bookingId: string | null;
|
|
273
|
-
status: "
|
|
273
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
274
274
|
assignedAt: Date;
|
|
275
275
|
assignedBy: string | null;
|
|
276
276
|
releasedAt: Date | null;
|
|
@@ -286,7 +286,7 @@ export declare const resourcesService: {
|
|
|
286
286
|
poolId: string | null;
|
|
287
287
|
resourceId: string | null;
|
|
288
288
|
bookingId: string | null;
|
|
289
|
-
status: "
|
|
289
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
290
290
|
assignedAt: Date;
|
|
291
291
|
assignedBy: string | null;
|
|
292
292
|
releasedAt: Date | null;
|
|
@@ -294,7 +294,7 @@ export declare const resourcesService: {
|
|
|
294
294
|
} | null>;
|
|
295
295
|
createSlotAssignment(db: PostgresJsDatabase, data: CreateResourceSlotAssignmentInput): Promise<{
|
|
296
296
|
id: string;
|
|
297
|
-
status: "
|
|
297
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
298
298
|
notes: string | null;
|
|
299
299
|
bookingId: string | null;
|
|
300
300
|
poolId: string | null;
|
|
@@ -310,7 +310,7 @@ export declare const resourcesService: {
|
|
|
310
310
|
poolId: string | null;
|
|
311
311
|
resourceId: string | null;
|
|
312
312
|
bookingId: string | null;
|
|
313
|
-
status: "
|
|
313
|
+
status: "completed" | "cancelled" | "reserved" | "assigned" | "released";
|
|
314
314
|
assignedAt: Date;
|
|
315
315
|
assignedBy: string | null;
|
|
316
316
|
releasedAt: Date | null;
|
package/dist/validation.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export declare const resourceAllocationModeSchema: z.ZodEnum<{
|
|
|
12
12
|
exclusive: "exclusive";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const resourceAssignmentStatusSchema: z.ZodEnum<{
|
|
15
|
+
completed: "completed";
|
|
16
|
+
cancelled: "cancelled";
|
|
15
17
|
reserved: "reserved";
|
|
16
18
|
assigned: "assigned";
|
|
17
19
|
released: "released";
|
|
18
|
-
cancelled: "cancelled";
|
|
19
|
-
completed: "completed";
|
|
20
20
|
}>;
|
|
21
21
|
export declare const resourceCoreSchema: z.ZodObject<{
|
|
22
22
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -245,11 +245,11 @@ export declare const resourceSlotAssignmentCoreSchema: z.ZodObject<{
|
|
|
245
245
|
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
246
|
bookingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
status: z.ZodDefault<z.ZodEnum<{
|
|
248
|
+
completed: "completed";
|
|
249
|
+
cancelled: "cancelled";
|
|
248
250
|
reserved: "reserved";
|
|
249
251
|
assigned: "assigned";
|
|
250
252
|
released: "released";
|
|
251
|
-
cancelled: "cancelled";
|
|
252
|
-
completed: "completed";
|
|
253
253
|
}>>;
|
|
254
254
|
assignedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
255
255
|
releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -261,11 +261,11 @@ export declare const insertResourceSlotAssignmentSchema: z.ZodObject<{
|
|
|
261
261
|
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
262
|
bookingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
263
|
status: z.ZodDefault<z.ZodEnum<{
|
|
264
|
+
completed: "completed";
|
|
265
|
+
cancelled: "cancelled";
|
|
264
266
|
reserved: "reserved";
|
|
265
267
|
assigned: "assigned";
|
|
266
268
|
released: "released";
|
|
267
|
-
cancelled: "cancelled";
|
|
268
|
-
completed: "completed";
|
|
269
269
|
}>>;
|
|
270
270
|
assignedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
271
|
releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -277,11 +277,11 @@ export declare const updateResourceSlotAssignmentSchema: z.ZodObject<{
|
|
|
277
277
|
resourceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
278
278
|
bookingId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
279
279
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
280
|
+
completed: "completed";
|
|
281
|
+
cancelled: "cancelled";
|
|
280
282
|
reserved: "reserved";
|
|
281
283
|
assigned: "assigned";
|
|
282
284
|
released: "released";
|
|
283
|
-
cancelled: "cancelled";
|
|
284
|
-
completed: "completed";
|
|
285
285
|
}>>>;
|
|
286
286
|
assignedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
287
287
|
releasedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -295,11 +295,11 @@ export declare const resourceSlotAssignmentListQuerySchema: z.ZodObject<{
|
|
|
295
295
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
296
296
|
bookingId: z.ZodOptional<z.ZodString>;
|
|
297
297
|
status: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
completed: "completed";
|
|
299
|
+
cancelled: "cancelled";
|
|
298
300
|
reserved: "reserved";
|
|
299
301
|
assigned: "assigned";
|
|
300
302
|
released: "released";
|
|
301
|
-
cancelled: "cancelled";
|
|
302
|
-
completed: "completed";
|
|
303
303
|
}>>;
|
|
304
304
|
}, z.core.$strip>;
|
|
305
305
|
export declare const resourceCloseoutCoreSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/resources",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/core": "0.
|
|
33
|
-
"@voyantjs/db": "0.
|
|
34
|
-
"@voyantjs/hono": "0.
|
|
32
|
+
"@voyantjs/core": "0.30.0",
|
|
33
|
+
"@voyantjs/db": "0.30.0",
|
|
34
|
+
"@voyantjs/hono": "0.30.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^6.0.2",
|
|
38
|
-
"@voyantjs/availability": "0.
|
|
39
|
-
"@voyantjs/products": "0.
|
|
38
|
+
"@voyantjs/availability": "0.30.0",
|
|
39
|
+
"@voyantjs/products": "0.30.0",
|
|
40
40
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|