@voyantjs/facilities 0.5.0 → 0.6.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 +59 -59
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +26 -25
- package/dist/schema.d.ts +4 -4
- package/dist/service-core.d.ts +10 -10
- package/dist/service-identity.d.ts +25 -25
- package/dist/service-operations.d.ts +6 -6
- package/dist/service-properties.d.ts +13 -13
- package/dist/validation.d.ts +25 -25
- package/package.json +5 -5
package/dist/routes.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
13
13
|
data: {
|
|
14
14
|
id: string;
|
|
15
15
|
parentFacilityId: string | null;
|
|
16
|
-
ownerType: "internal" | "supplier" | "
|
|
16
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
17
17
|
ownerId: string | null;
|
|
18
18
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
19
19
|
status: "active" | "inactive" | "archived";
|
|
@@ -57,18 +57,18 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
57
57
|
latitude: number | null;
|
|
58
58
|
longitude: number | null;
|
|
59
59
|
address: string | null;
|
|
60
|
-
name: string;
|
|
61
|
-
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
62
|
-
timezone: string | null;
|
|
63
60
|
id: string;
|
|
61
|
+
name: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
66
|
-
parentFacilityId: string | null;
|
|
67
|
-
ownerType: "internal" | "supplier" | "other" | "organization" | null;
|
|
68
|
-
ownerId: string | null;
|
|
69
64
|
status: "active" | "inactive" | "archived";
|
|
70
|
-
|
|
65
|
+
timezone: string | null;
|
|
71
66
|
description: string | null;
|
|
67
|
+
code: string | null;
|
|
68
|
+
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
69
|
+
parentFacilityId: string | null;
|
|
70
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
71
|
+
ownerId: string | null;
|
|
72
72
|
tags: string[];
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -99,7 +99,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
99
99
|
data: {
|
|
100
100
|
id: string;
|
|
101
101
|
parentFacilityId: string | null;
|
|
102
|
-
ownerType: "internal" | "supplier" | "
|
|
102
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
103
103
|
ownerId: string | null;
|
|
104
104
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
105
105
|
status: "active" | "inactive" | "archived";
|
|
@@ -157,7 +157,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
157
157
|
address: string | null;
|
|
158
158
|
id: string;
|
|
159
159
|
parentFacilityId: string | null;
|
|
160
|
-
ownerType: "internal" | "supplier" | "
|
|
160
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
161
161
|
ownerId: string | null;
|
|
162
162
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
163
163
|
status: "active" | "inactive" | "archived";
|
|
@@ -213,7 +213,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
213
213
|
id: string;
|
|
214
214
|
entityType: string;
|
|
215
215
|
entityId: string;
|
|
216
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
216
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
217
217
|
label: string | null;
|
|
218
218
|
value: string;
|
|
219
219
|
normalizedValue: string | null;
|
|
@@ -252,19 +252,19 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
252
252
|
output: {
|
|
253
253
|
data: {
|
|
254
254
|
value: string;
|
|
255
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
|
|
256
|
-
entityType: string;
|
|
257
|
-
entityId: string;
|
|
258
|
-
label: string | null;
|
|
259
|
-
normalizedValue: string | null;
|
|
260
|
-
isPrimary: boolean;
|
|
261
|
-
notes: string | null;
|
|
262
255
|
metadata: {
|
|
263
256
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
264
257
|
} | null;
|
|
265
258
|
id: string;
|
|
266
259
|
createdAt: string;
|
|
267
260
|
updatedAt: string;
|
|
261
|
+
notes: string | null;
|
|
262
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
263
|
+
entityType: string;
|
|
264
|
+
entityId: string;
|
|
265
|
+
label: string | null;
|
|
266
|
+
normalizedValue: string | null;
|
|
267
|
+
isPrimary: boolean;
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
270
|
outputFormat: "json";
|
|
@@ -295,7 +295,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
295
295
|
id: string;
|
|
296
296
|
entityType: string;
|
|
297
297
|
entityId: string;
|
|
298
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
298
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
299
299
|
label: string | null;
|
|
300
300
|
value: string;
|
|
301
301
|
normalizedValue: string | null;
|
|
@@ -351,7 +351,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
351
351
|
id: string;
|
|
352
352
|
entityType: string;
|
|
353
353
|
entityId: string;
|
|
354
|
-
label: "
|
|
354
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
355
355
|
fullText: string | null;
|
|
356
356
|
line1: string | null;
|
|
357
357
|
line2: string | null;
|
|
@@ -396,14 +396,18 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
396
396
|
};
|
|
397
397
|
output: {
|
|
398
398
|
data: {
|
|
399
|
-
entityType: string;
|
|
400
|
-
entityId: string;
|
|
401
|
-
label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
|
|
402
|
-
isPrimary: boolean;
|
|
403
|
-
notes: string | null;
|
|
404
399
|
metadata: {
|
|
405
400
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
406
401
|
} | null;
|
|
402
|
+
id: string;
|
|
403
|
+
createdAt: string;
|
|
404
|
+
updatedAt: string;
|
|
405
|
+
notes: string | null;
|
|
406
|
+
timezone: string | null;
|
|
407
|
+
entityType: string;
|
|
408
|
+
entityId: string;
|
|
409
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
410
|
+
isPrimary: boolean;
|
|
407
411
|
fullText: string | null;
|
|
408
412
|
line1: string | null;
|
|
409
413
|
line2: string | null;
|
|
@@ -413,10 +417,6 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
413
417
|
country: string | null;
|
|
414
418
|
latitude: number | null;
|
|
415
419
|
longitude: number | null;
|
|
416
|
-
timezone: string | null;
|
|
417
|
-
id: string;
|
|
418
|
-
createdAt: string;
|
|
419
|
-
updatedAt: string;
|
|
420
420
|
};
|
|
421
421
|
};
|
|
422
422
|
outputFormat: "json";
|
|
@@ -447,7 +447,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
447
447
|
id: string;
|
|
448
448
|
entityType: string;
|
|
449
449
|
entityId: string;
|
|
450
|
-
label: "
|
|
450
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
451
451
|
fullText: string | null;
|
|
452
452
|
line1: string | null;
|
|
453
453
|
line2: string | null;
|
|
@@ -506,7 +506,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
506
506
|
id: string;
|
|
507
507
|
entityType: string;
|
|
508
508
|
entityId: string;
|
|
509
|
-
role: "
|
|
509
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
510
510
|
name: string;
|
|
511
511
|
title: string | null;
|
|
512
512
|
email: string | null;
|
|
@@ -548,21 +548,21 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
548
548
|
};
|
|
549
549
|
output: {
|
|
550
550
|
data: {
|
|
551
|
+
metadata: {
|
|
552
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
553
|
+
} | null;
|
|
554
|
+
id: string;
|
|
551
555
|
name: string;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
updatedAt: string;
|
|
552
558
|
email: string | null;
|
|
559
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
560
|
+
notes: string | null;
|
|
553
561
|
phone: string | null;
|
|
554
562
|
entityType: string;
|
|
555
563
|
entityId: string;
|
|
556
564
|
isPrimary: boolean;
|
|
557
|
-
notes: string | null;
|
|
558
|
-
metadata: {
|
|
559
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
560
|
-
} | null;
|
|
561
|
-
role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
562
565
|
title: string | null;
|
|
563
|
-
id: string;
|
|
564
|
-
createdAt: string;
|
|
565
|
-
updatedAt: string;
|
|
566
566
|
};
|
|
567
567
|
};
|
|
568
568
|
outputFormat: "json";
|
|
@@ -593,7 +593,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
593
593
|
id: string;
|
|
594
594
|
entityType: string;
|
|
595
595
|
entityId: string;
|
|
596
|
-
role: "
|
|
596
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
597
597
|
name: string;
|
|
598
598
|
title: string | null;
|
|
599
599
|
email: string | null;
|
|
@@ -645,7 +645,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
645
645
|
data: {
|
|
646
646
|
id: string;
|
|
647
647
|
facilityId: string;
|
|
648
|
-
category: "
|
|
648
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
649
649
|
code: string | null;
|
|
650
650
|
name: string;
|
|
651
651
|
description: string | null;
|
|
@@ -684,14 +684,14 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
684
684
|
};
|
|
685
685
|
output: {
|
|
686
686
|
data: {
|
|
687
|
-
|
|
687
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
688
688
|
id: string;
|
|
689
|
+
name: string;
|
|
689
690
|
createdAt: string;
|
|
690
691
|
updatedAt: string;
|
|
691
|
-
code: string | null;
|
|
692
692
|
description: string | null;
|
|
693
|
+
code: string | null;
|
|
693
694
|
facilityId: string;
|
|
694
|
-
category: "other" | "service" | "amenity" | "accessibility" | "security" | "policy";
|
|
695
695
|
valueText: string | null;
|
|
696
696
|
highlighted: boolean;
|
|
697
697
|
sortOrder: number;
|
|
@@ -724,7 +724,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
724
724
|
data: {
|
|
725
725
|
id: string;
|
|
726
726
|
facilityId: string;
|
|
727
|
-
category: "
|
|
727
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
728
728
|
code: string | null;
|
|
729
729
|
name: string;
|
|
730
730
|
description: string | null;
|
|
@@ -812,10 +812,10 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
812
812
|
};
|
|
813
813
|
output: {
|
|
814
814
|
data: {
|
|
815
|
-
notes: string | null;
|
|
816
815
|
id: string;
|
|
817
816
|
createdAt: string;
|
|
818
817
|
updatedAt: string;
|
|
818
|
+
notes: string | null;
|
|
819
819
|
facilityId: string;
|
|
820
820
|
dayOfWeek: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | null;
|
|
821
821
|
validFrom: string | null;
|
|
@@ -1067,7 +1067,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1067
1067
|
data: {
|
|
1068
1068
|
id: string;
|
|
1069
1069
|
parentGroupId: string | null;
|
|
1070
|
-
groupType: "
|
|
1070
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
1071
1071
|
status: "active" | "inactive" | "archived";
|
|
1072
1072
|
name: string;
|
|
1073
1073
|
code: string | null;
|
|
@@ -1095,20 +1095,20 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1095
1095
|
input: {};
|
|
1096
1096
|
output: {
|
|
1097
1097
|
data: {
|
|
1098
|
-
name: string;
|
|
1099
|
-
website: string | null;
|
|
1100
|
-
notes: string | null;
|
|
1101
1098
|
metadata: {
|
|
1102
1099
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1103
1100
|
} | null;
|
|
1104
1101
|
id: string;
|
|
1102
|
+
name: string;
|
|
1105
1103
|
createdAt: string;
|
|
1106
1104
|
updatedAt: string;
|
|
1107
1105
|
status: "active" | "inactive" | "archived";
|
|
1106
|
+
notes: string | null;
|
|
1108
1107
|
code: string | null;
|
|
1108
|
+
website: string | null;
|
|
1109
1109
|
brandName: string | null;
|
|
1110
1110
|
parentGroupId: string | null;
|
|
1111
|
-
groupType: "
|
|
1111
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
1112
1112
|
legalName: string | null;
|
|
1113
1113
|
} | null;
|
|
1114
1114
|
};
|
|
@@ -1139,7 +1139,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1139
1139
|
data: {
|
|
1140
1140
|
id: string;
|
|
1141
1141
|
parentGroupId: string | null;
|
|
1142
|
-
groupType: "
|
|
1142
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
1143
1143
|
status: "active" | "inactive" | "archived";
|
|
1144
1144
|
name: string;
|
|
1145
1145
|
code: string | null;
|
|
@@ -1181,7 +1181,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1181
1181
|
data: {
|
|
1182
1182
|
id: string;
|
|
1183
1183
|
parentGroupId: string | null;
|
|
1184
|
-
groupType: "
|
|
1184
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
1185
1185
|
status: "active" | "inactive" | "archived";
|
|
1186
1186
|
name: string;
|
|
1187
1187
|
code: string | null;
|
|
@@ -1235,7 +1235,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1235
1235
|
id: string;
|
|
1236
1236
|
groupId: string;
|
|
1237
1237
|
propertyId: string;
|
|
1238
|
-
membershipRole: "
|
|
1238
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
1239
1239
|
isPrimary: boolean;
|
|
1240
1240
|
validFrom: string | null;
|
|
1241
1241
|
validTo: string | null;
|
|
@@ -1264,16 +1264,16 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1264
1264
|
input: {};
|
|
1265
1265
|
output: {
|
|
1266
1266
|
data: {
|
|
1267
|
-
isPrimary: boolean;
|
|
1268
|
-
notes: string | null;
|
|
1269
1267
|
id: string;
|
|
1270
1268
|
createdAt: string;
|
|
1271
1269
|
updatedAt: string;
|
|
1270
|
+
notes: string | null;
|
|
1271
|
+
isPrimary: boolean;
|
|
1272
1272
|
validFrom: string | null;
|
|
1273
1273
|
validTo: string | null;
|
|
1274
1274
|
groupId: string;
|
|
1275
1275
|
propertyId: string;
|
|
1276
|
-
membershipRole: "
|
|
1276
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
1277
1277
|
};
|
|
1278
1278
|
};
|
|
1279
1279
|
outputFormat: "json";
|
|
@@ -1304,7 +1304,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1304
1304
|
id: string;
|
|
1305
1305
|
groupId: string;
|
|
1306
1306
|
propertyId: string;
|
|
1307
|
-
membershipRole: "
|
|
1307
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
1308
1308
|
isPrimary: boolean;
|
|
1309
1309
|
validFrom: string | null;
|
|
1310
1310
|
validTo: string | null;
|
|
@@ -1341,7 +1341,7 @@ export declare const facilitiesRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1341
1341
|
id: string;
|
|
1342
1342
|
groupId: string;
|
|
1343
1343
|
propertyId: string;
|
|
1344
|
-
membershipRole: "
|
|
1344
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
1345
1345
|
isPrimary: boolean;
|
|
1346
1346
|
validFrom: string | null;
|
|
1347
1347
|
validTo: string | null;
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AA4BjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAwQzB,CAAA;AAEJ,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA"}
|
package/dist/routes.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { parseJsonBody, parseQuery } from "@voyantjs/hono";
|
|
1
2
|
import { insertAddressForEntitySchema, insertContactPointForEntitySchema, updateAddressSchema as updateIdentityAddressSchema, updateContactPointSchema as updateIdentityContactPointSchema, } from "@voyantjs/identity/validation";
|
|
2
3
|
import { Hono } from "hono";
|
|
3
4
|
import { facilitiesService } from "./service.js";
|
|
4
5
|
import { facilityContactListQuerySchema, facilityFeatureListQuerySchema, facilityListQuerySchema, facilityOperationScheduleListQuerySchema, insertFacilityContactSchema, insertFacilityFeatureSchema, insertFacilityOperationScheduleSchema, insertFacilitySchema, insertPropertyGroupMemberSchema, insertPropertyGroupSchema, insertPropertySchema, propertyGroupListQuerySchema, propertyGroupMemberListQuerySchema, propertyListQuerySchema, updateFacilityContactSchema, updateFacilityFeatureSchema, updateFacilityOperationScheduleSchema, updateFacilitySchema, updatePropertyGroupMemberSchema, updatePropertyGroupSchema, updatePropertySchema, } from "./validation.js";
|
|
5
6
|
export const facilitiesRoutes = new Hono()
|
|
6
7
|
.get("/facilities", async (c) => {
|
|
7
|
-
const query =
|
|
8
|
+
const query = await parseQuery(c, facilityListQuerySchema);
|
|
8
9
|
return c.json(await facilitiesService.listFacilities(c.get("db"), query));
|
|
9
10
|
})
|
|
10
11
|
.post("/facilities", async (c) => {
|
|
11
12
|
return c.json({
|
|
12
|
-
data: await facilitiesService.createFacility(c.get("db"),
|
|
13
|
+
data: await facilitiesService.createFacility(c.get("db"), await parseJsonBody(c, insertFacilitySchema)),
|
|
13
14
|
}, 201);
|
|
14
15
|
})
|
|
15
16
|
.get("/facilities/:id", async (c) => {
|
|
@@ -19,7 +20,7 @@ export const facilitiesRoutes = new Hono()
|
|
|
19
20
|
return c.json({ data: row });
|
|
20
21
|
})
|
|
21
22
|
.patch("/facilities/:id", async (c) => {
|
|
22
|
-
const row = await facilitiesService.updateFacility(c.get("db"), c.req.param("id"),
|
|
23
|
+
const row = await facilitiesService.updateFacility(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateFacilitySchema));
|
|
23
24
|
if (!row)
|
|
24
25
|
return c.json({ error: "Facility not found" }, 404);
|
|
25
26
|
return c.json({ data: row });
|
|
@@ -36,13 +37,13 @@ export const facilitiesRoutes = new Hono()
|
|
|
36
37
|
});
|
|
37
38
|
})
|
|
38
39
|
.post("/facilities/:id/contact-points", async (c) => {
|
|
39
|
-
const row = await facilitiesService.createContactPoint(c.get("db"), c.req.param("id"),
|
|
40
|
+
const row = await facilitiesService.createContactPoint(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertContactPointForEntitySchema));
|
|
40
41
|
if (!row)
|
|
41
42
|
return c.json({ error: "Facility not found" }, 404);
|
|
42
43
|
return c.json({ data: row }, 201);
|
|
43
44
|
})
|
|
44
45
|
.patch("/contact-points/:id", async (c) => {
|
|
45
|
-
const row = await facilitiesService.updateContactPoint(c.get("db"), c.req.param("id"),
|
|
46
|
+
const row = await facilitiesService.updateContactPoint(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateIdentityContactPointSchema));
|
|
46
47
|
if (!row)
|
|
47
48
|
return c.json({ error: "Contact point not found" }, 404);
|
|
48
49
|
return c.json({ data: row });
|
|
@@ -57,13 +58,13 @@ export const facilitiesRoutes = new Hono()
|
|
|
57
58
|
return c.json({ data: await facilitiesService.listAddresses(c.get("db"), c.req.param("id")) });
|
|
58
59
|
})
|
|
59
60
|
.post("/facilities/:id/addresses", async (c) => {
|
|
60
|
-
const row = await facilitiesService.createAddress(c.get("db"), c.req.param("id"),
|
|
61
|
+
const row = await facilitiesService.createAddress(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertAddressForEntitySchema));
|
|
61
62
|
if (!row)
|
|
62
63
|
return c.json({ error: "Facility not found" }, 404);
|
|
63
64
|
return c.json({ data: row }, 201);
|
|
64
65
|
})
|
|
65
66
|
.patch("/addresses/:id", async (c) => {
|
|
66
|
-
const row = await facilitiesService.updateAddress(c.get("db"), c.req.param("id"),
|
|
67
|
+
const row = await facilitiesService.updateAddress(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateIdentityAddressSchema));
|
|
67
68
|
if (!row)
|
|
68
69
|
return c.json({ error: "Address not found" }, 404);
|
|
69
70
|
return c.json({ data: row });
|
|
@@ -75,17 +76,17 @@ export const facilitiesRoutes = new Hono()
|
|
|
75
76
|
return c.json({ success: true });
|
|
76
77
|
})
|
|
77
78
|
.get("/facility-contacts", async (c) => {
|
|
78
|
-
const query =
|
|
79
|
+
const query = await parseQuery(c, facilityContactListQuerySchema);
|
|
79
80
|
return c.json(await facilitiesService.listFacilityContacts(c.get("db"), query));
|
|
80
81
|
})
|
|
81
82
|
.post("/facilities/:id/contacts", async (c) => {
|
|
82
|
-
const row = await facilitiesService.createFacilityContact(c.get("db"), c.req.param("id"),
|
|
83
|
+
const row = await facilitiesService.createFacilityContact(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertFacilityContactSchema));
|
|
83
84
|
if (!row)
|
|
84
85
|
return c.json({ error: "Facility not found" }, 404);
|
|
85
86
|
return c.json({ data: row }, 201);
|
|
86
87
|
})
|
|
87
88
|
.patch("/facility-contacts/:id", async (c) => {
|
|
88
|
-
const row = await facilitiesService.updateFacilityContact(c.get("db"), c.req.param("id"),
|
|
89
|
+
const row = await facilitiesService.updateFacilityContact(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateFacilityContactSchema));
|
|
89
90
|
if (!row)
|
|
90
91
|
return c.json({ error: "Facility contact not found" }, 404);
|
|
91
92
|
return c.json({ data: row });
|
|
@@ -97,17 +98,17 @@ export const facilitiesRoutes = new Hono()
|
|
|
97
98
|
return c.json({ success: true });
|
|
98
99
|
})
|
|
99
100
|
.get("/facility-features", async (c) => {
|
|
100
|
-
const query =
|
|
101
|
+
const query = await parseQuery(c, facilityFeatureListQuerySchema);
|
|
101
102
|
return c.json(await facilitiesService.listFacilityFeatures(c.get("db"), query));
|
|
102
103
|
})
|
|
103
104
|
.post("/facilities/:id/features", async (c) => {
|
|
104
|
-
const row = await facilitiesService.createFacilityFeature(c.get("db"), c.req.param("id"),
|
|
105
|
+
const row = await facilitiesService.createFacilityFeature(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertFacilityFeatureSchema));
|
|
105
106
|
if (!row)
|
|
106
107
|
return c.json({ error: "Facility not found" }, 404);
|
|
107
108
|
return c.json({ data: row }, 201);
|
|
108
109
|
})
|
|
109
110
|
.patch("/facility-features/:id", async (c) => {
|
|
110
|
-
const row = await facilitiesService.updateFacilityFeature(c.get("db"), c.req.param("id"),
|
|
111
|
+
const row = await facilitiesService.updateFacilityFeature(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateFacilityFeatureSchema));
|
|
111
112
|
if (!row)
|
|
112
113
|
return c.json({ error: "Facility feature not found" }, 404);
|
|
113
114
|
return c.json({ data: row });
|
|
@@ -119,17 +120,17 @@ export const facilitiesRoutes = new Hono()
|
|
|
119
120
|
return c.json({ success: true });
|
|
120
121
|
})
|
|
121
122
|
.get("/facility-operation-schedules", async (c) => {
|
|
122
|
-
const query =
|
|
123
|
+
const query = await parseQuery(c, facilityOperationScheduleListQuerySchema);
|
|
123
124
|
return c.json(await facilitiesService.listFacilityOperationSchedules(c.get("db"), query));
|
|
124
125
|
})
|
|
125
126
|
.post("/facilities/:id/operation-schedules", async (c) => {
|
|
126
|
-
const row = await facilitiesService.createFacilityOperationSchedule(c.get("db"), c.req.param("id"),
|
|
127
|
+
const row = await facilitiesService.createFacilityOperationSchedule(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertFacilityOperationScheduleSchema));
|
|
127
128
|
if (!row)
|
|
128
129
|
return c.json({ error: "Facility not found" }, 404);
|
|
129
130
|
return c.json({ data: row }, 201);
|
|
130
131
|
})
|
|
131
132
|
.patch("/facility-operation-schedules/:id", async (c) => {
|
|
132
|
-
const row = await facilitiesService.updateFacilityOperationSchedule(c.get("db"), c.req.param("id"),
|
|
133
|
+
const row = await facilitiesService.updateFacilityOperationSchedule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateFacilityOperationScheduleSchema));
|
|
133
134
|
if (!row)
|
|
134
135
|
return c.json({ error: "Facility operation schedule not found" }, 404);
|
|
135
136
|
return c.json({ data: row });
|
|
@@ -141,11 +142,11 @@ export const facilitiesRoutes = new Hono()
|
|
|
141
142
|
return c.json({ success: true });
|
|
142
143
|
})
|
|
143
144
|
.get("/properties", async (c) => {
|
|
144
|
-
const query =
|
|
145
|
+
const query = await parseQuery(c, propertyListQuerySchema);
|
|
145
146
|
return c.json(await facilitiesService.listProperties(c.get("db"), query));
|
|
146
147
|
})
|
|
147
148
|
.post("/properties", async (c) => {
|
|
148
|
-
const row = await facilitiesService.createProperty(c.get("db"),
|
|
149
|
+
const row = await facilitiesService.createProperty(c.get("db"), await parseJsonBody(c, insertPropertySchema));
|
|
149
150
|
if (!row)
|
|
150
151
|
return c.json({ error: "Facility not found" }, 404);
|
|
151
152
|
return c.json({ data: row }, 201);
|
|
@@ -157,7 +158,7 @@ export const facilitiesRoutes = new Hono()
|
|
|
157
158
|
return c.json({ data: row });
|
|
158
159
|
})
|
|
159
160
|
.patch("/properties/:id", async (c) => {
|
|
160
|
-
const row = await facilitiesService.updateProperty(c.get("db"), c.req.param("id"),
|
|
161
|
+
const row = await facilitiesService.updateProperty(c.get("db"), c.req.param("id"), await parseJsonBody(c, updatePropertySchema));
|
|
161
162
|
if (!row)
|
|
162
163
|
return c.json({ error: "Property not found" }, 404);
|
|
163
164
|
return c.json({ data: row });
|
|
@@ -169,11 +170,11 @@ export const facilitiesRoutes = new Hono()
|
|
|
169
170
|
return c.json({ success: true });
|
|
170
171
|
})
|
|
171
172
|
.get("/property-groups", async (c) => {
|
|
172
|
-
const query =
|
|
173
|
+
const query = await parseQuery(c, propertyGroupListQuerySchema);
|
|
173
174
|
return c.json(await facilitiesService.listPropertyGroups(c.get("db"), query));
|
|
174
175
|
})
|
|
175
176
|
.post("/property-groups", async (c) => {
|
|
176
|
-
const row = await facilitiesService.createPropertyGroup(c.get("db"),
|
|
177
|
+
const row = await facilitiesService.createPropertyGroup(c.get("db"), await parseJsonBody(c, insertPropertyGroupSchema));
|
|
177
178
|
return c.json({ data: row }, 201);
|
|
178
179
|
})
|
|
179
180
|
.get("/property-groups/:id", async (c) => {
|
|
@@ -183,7 +184,7 @@ export const facilitiesRoutes = new Hono()
|
|
|
183
184
|
return c.json({ data: row });
|
|
184
185
|
})
|
|
185
186
|
.patch("/property-groups/:id", async (c) => {
|
|
186
|
-
const row = await facilitiesService.updatePropertyGroup(c.get("db"), c.req.param("id"),
|
|
187
|
+
const row = await facilitiesService.updatePropertyGroup(c.get("db"), c.req.param("id"), await parseJsonBody(c, updatePropertyGroupSchema));
|
|
187
188
|
if (!row)
|
|
188
189
|
return c.json({ error: "Property group not found" }, 404);
|
|
189
190
|
return c.json({ data: row });
|
|
@@ -195,11 +196,11 @@ export const facilitiesRoutes = new Hono()
|
|
|
195
196
|
return c.json({ success: true });
|
|
196
197
|
})
|
|
197
198
|
.get("/property-group-members", async (c) => {
|
|
198
|
-
const query =
|
|
199
|
+
const query = await parseQuery(c, propertyGroupMemberListQuerySchema);
|
|
199
200
|
return c.json(await facilitiesService.listPropertyGroupMembers(c.get("db"), query));
|
|
200
201
|
})
|
|
201
202
|
.post("/property-group-members", async (c) => {
|
|
202
|
-
const row = await facilitiesService.createPropertyGroupMember(c.get("db"),
|
|
203
|
+
const row = await facilitiesService.createPropertyGroupMember(c.get("db"), await parseJsonBody(c, insertPropertyGroupMemberSchema));
|
|
203
204
|
if (!row)
|
|
204
205
|
return c.json({ error: "Property group or property not found" }, 404);
|
|
205
206
|
return c.json({ data: row }, 201);
|
|
@@ -211,7 +212,7 @@ export const facilitiesRoutes = new Hono()
|
|
|
211
212
|
return c.json({ data: row });
|
|
212
213
|
})
|
|
213
214
|
.patch("/property-group-members/:id", async (c) => {
|
|
214
|
-
const row = await facilitiesService.updatePropertyGroupMember(c.get("db"), c.req.param("id"),
|
|
215
|
+
const row = await facilitiesService.updatePropertyGroupMember(c.get("db"), c.req.param("id"), await parseJsonBody(c, updatePropertyGroupMemberSchema));
|
|
215
216
|
if (!row)
|
|
216
217
|
return c.json({ error: "Property group member not found" }, 404);
|
|
217
218
|
return c.json({ data: row });
|
package/dist/schema.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const facilities: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
51
51
|
tableName: "facilities";
|
|
52
52
|
dataType: "string";
|
|
53
53
|
columnType: "PgEnumColumn";
|
|
54
|
-
data: "internal" | "supplier" | "
|
|
54
|
+
data: "internal" | "supplier" | "organization" | "other";
|
|
55
55
|
driverParam: string;
|
|
56
56
|
notNull: false;
|
|
57
57
|
hasDefault: false;
|
|
@@ -281,7 +281,7 @@ export declare const facilityFeatures: import("drizzle-orm/pg-core").PgTableWith
|
|
|
281
281
|
tableName: "facility_features";
|
|
282
282
|
dataType: "string";
|
|
283
283
|
columnType: "PgEnumColumn";
|
|
284
|
-
data: "
|
|
284
|
+
data: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
285
285
|
driverParam: string;
|
|
286
286
|
notNull: true;
|
|
287
287
|
hasDefault: true;
|
|
@@ -897,7 +897,7 @@ export declare const propertyGroups: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
897
897
|
tableName: "property_groups";
|
|
898
898
|
dataType: "string";
|
|
899
899
|
columnType: "PgEnumColumn";
|
|
900
|
-
data: "
|
|
900
|
+
data: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
901
901
|
driverParam: string;
|
|
902
902
|
notNull: true;
|
|
903
903
|
hasDefault: true;
|
|
@@ -1144,7 +1144,7 @@ export declare const propertyGroupMembers: import("drizzle-orm/pg-core").PgTable
|
|
|
1144
1144
|
tableName: "property_group_members";
|
|
1145
1145
|
dataType: "string";
|
|
1146
1146
|
columnType: "PgEnumColumn";
|
|
1147
|
-
data: "
|
|
1147
|
+
data: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
1148
1148
|
driverParam: string;
|
|
1149
1149
|
notNull: true;
|
|
1150
1150
|
hasDefault: true;
|
package/dist/service-core.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare function listFacilities(db: PostgresJsDatabase, query: FacilityLi
|
|
|
4
4
|
data: ({
|
|
5
5
|
id: string;
|
|
6
6
|
parentFacilityId: string | null;
|
|
7
|
-
ownerType: "internal" | "supplier" | "
|
|
7
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
8
8
|
ownerId: string | null;
|
|
9
9
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
10
10
|
status: "active" | "inactive" | "archived";
|
|
@@ -33,7 +33,7 @@ export declare function listFacilities(db: PostgresJsDatabase, query: FacilityLi
|
|
|
33
33
|
export declare function getFacilityById(db: PostgresJsDatabase, id: string): Promise<({
|
|
34
34
|
id: string;
|
|
35
35
|
parentFacilityId: string | null;
|
|
36
|
-
ownerType: "internal" | "supplier" | "
|
|
36
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
37
37
|
ownerId: string | null;
|
|
38
38
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
39
39
|
status: "active" | "inactive" | "archived";
|
|
@@ -65,18 +65,18 @@ export declare function createFacility(db: PostgresJsDatabase, data: CreateFacil
|
|
|
65
65
|
latitude: number | null;
|
|
66
66
|
longitude: number | null;
|
|
67
67
|
address: string | null;
|
|
68
|
-
name: string;
|
|
69
|
-
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
70
|
-
timezone: string | null;
|
|
71
68
|
id: string;
|
|
69
|
+
name: string;
|
|
72
70
|
createdAt: Date;
|
|
73
71
|
updatedAt: Date;
|
|
74
|
-
parentFacilityId: string | null;
|
|
75
|
-
ownerType: "internal" | "supplier" | "other" | "organization" | null;
|
|
76
|
-
ownerId: string | null;
|
|
77
72
|
status: "active" | "inactive" | "archived";
|
|
78
|
-
|
|
73
|
+
timezone: string | null;
|
|
79
74
|
description: string | null;
|
|
75
|
+
code: string | null;
|
|
76
|
+
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
77
|
+
parentFacilityId: string | null;
|
|
78
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
79
|
+
ownerId: string | null;
|
|
80
80
|
tags: string[];
|
|
81
81
|
}>;
|
|
82
82
|
export declare function updateFacility(db: PostgresJsDatabase, id: string, data: UpdateFacilityInput): Promise<{
|
|
@@ -91,7 +91,7 @@ export declare function updateFacility(db: PostgresJsDatabase, id: string, data:
|
|
|
91
91
|
address: string | null;
|
|
92
92
|
id: string;
|
|
93
93
|
parentFacilityId: string | null;
|
|
94
|
-
ownerType: "internal" | "supplier" | "
|
|
94
|
+
ownerType: "internal" | "supplier" | "organization" | "other" | null;
|
|
95
95
|
ownerId: string | null;
|
|
96
96
|
kind: "other" | "property" | "hotel" | "resort" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction" | "restaurant";
|
|
97
97
|
status: "active" | "inactive" | "archived";
|
|
@@ -5,7 +5,7 @@ export declare function listContactPoints(db: PostgresJsDatabase, facilityId: st
|
|
|
5
5
|
id: string;
|
|
6
6
|
entityType: string;
|
|
7
7
|
entityId: string;
|
|
8
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
8
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
9
9
|
label: string | null;
|
|
10
10
|
value: string;
|
|
11
11
|
normalizedValue: string | null;
|
|
@@ -17,23 +17,23 @@ export declare function listContactPoints(db: PostgresJsDatabase, facilityId: st
|
|
|
17
17
|
}[]>;
|
|
18
18
|
export declare function createContactPoint(db: PostgresJsDatabase, facilityId: string, data: InsertContactPointForEntity): Promise<{
|
|
19
19
|
value: string;
|
|
20
|
-
|
|
20
|
+
metadata: Record<string, unknown> | null;
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
notes: string | null;
|
|
25
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
21
26
|
entityType: string;
|
|
22
27
|
entityId: string;
|
|
23
28
|
label: string | null;
|
|
24
29
|
normalizedValue: string | null;
|
|
25
30
|
isPrimary: boolean;
|
|
26
|
-
notes: string | null;
|
|
27
|
-
metadata: Record<string, unknown> | null;
|
|
28
|
-
id: string;
|
|
29
|
-
createdAt: Date;
|
|
30
|
-
updatedAt: Date;
|
|
31
31
|
} | null>;
|
|
32
32
|
export declare function updateContactPoint(db: PostgresJsDatabase, id: string, data: UpdateIdentityContactPoint): Promise<{
|
|
33
33
|
id: string;
|
|
34
34
|
entityType: string;
|
|
35
35
|
entityId: string;
|
|
36
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
36
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
37
37
|
label: string | null;
|
|
38
38
|
value: string;
|
|
39
39
|
normalizedValue: string | null;
|
|
@@ -50,7 +50,7 @@ export declare function listAddresses(db: PostgresJsDatabase, facilityId: string
|
|
|
50
50
|
id: string;
|
|
51
51
|
entityType: string;
|
|
52
52
|
entityId: string;
|
|
53
|
-
label: "
|
|
53
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
54
54
|
fullText: string | null;
|
|
55
55
|
line1: string | null;
|
|
56
56
|
line2: string | null;
|
|
@@ -68,12 +68,16 @@ export declare function listAddresses(db: PostgresJsDatabase, facilityId: string
|
|
|
68
68
|
updatedAt: Date;
|
|
69
69
|
}[]>;
|
|
70
70
|
export declare function createAddress(db: PostgresJsDatabase, facilityId: string, data: InsertAddressForEntity): Promise<{
|
|
71
|
+
metadata: Record<string, unknown> | null;
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
updatedAt: Date;
|
|
75
|
+
notes: string | null;
|
|
76
|
+
timezone: string | null;
|
|
71
77
|
entityType: string;
|
|
72
78
|
entityId: string;
|
|
73
|
-
label: "
|
|
79
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
74
80
|
isPrimary: boolean;
|
|
75
|
-
notes: string | null;
|
|
76
|
-
metadata: Record<string, unknown> | null;
|
|
77
81
|
fullText: string | null;
|
|
78
82
|
line1: string | null;
|
|
79
83
|
line2: string | null;
|
|
@@ -83,16 +87,12 @@ export declare function createAddress(db: PostgresJsDatabase, facilityId: string
|
|
|
83
87
|
country: string | null;
|
|
84
88
|
latitude: number | null;
|
|
85
89
|
longitude: number | null;
|
|
86
|
-
timezone: string | null;
|
|
87
|
-
id: string;
|
|
88
|
-
createdAt: Date;
|
|
89
|
-
updatedAt: Date;
|
|
90
90
|
} | null>;
|
|
91
91
|
export declare function updateAddress(db: PostgresJsDatabase, id: string, data: UpdateIdentityAddress): Promise<{
|
|
92
92
|
id: string;
|
|
93
93
|
entityType: string;
|
|
94
94
|
entityId: string;
|
|
95
|
-
label: "
|
|
95
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
96
96
|
fullText: string | null;
|
|
97
97
|
line1: string | null;
|
|
98
98
|
line2: string | null;
|
|
@@ -117,7 +117,7 @@ export declare function listFacilityContacts(db: PostgresJsDatabase, query: Faci
|
|
|
117
117
|
id: string;
|
|
118
118
|
entityType: string;
|
|
119
119
|
entityId: string;
|
|
120
|
-
role: "
|
|
120
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
121
121
|
name: string;
|
|
122
122
|
title: string | null;
|
|
123
123
|
email: string | null;
|
|
@@ -133,25 +133,25 @@ export declare function listFacilityContacts(db: PostgresJsDatabase, query: Faci
|
|
|
133
133
|
offset: number;
|
|
134
134
|
}>;
|
|
135
135
|
export declare function createFacilityContact(db: PostgresJsDatabase, facilityId: string, data: CreateFacilityContactInput): Promise<{
|
|
136
|
+
metadata: Record<string, unknown> | null;
|
|
137
|
+
id: string;
|
|
136
138
|
name: string;
|
|
139
|
+
createdAt: Date;
|
|
140
|
+
updatedAt: Date;
|
|
137
141
|
email: string | null;
|
|
142
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
143
|
+
notes: string | null;
|
|
138
144
|
phone: string | null;
|
|
139
145
|
entityType: string;
|
|
140
146
|
entityId: string;
|
|
141
147
|
isPrimary: boolean;
|
|
142
|
-
notes: string | null;
|
|
143
|
-
metadata: Record<string, unknown> | null;
|
|
144
|
-
role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
145
148
|
title: string | null;
|
|
146
|
-
id: string;
|
|
147
|
-
createdAt: Date;
|
|
148
|
-
updatedAt: Date;
|
|
149
149
|
} | null>;
|
|
150
150
|
export declare function updateFacilityContact(db: PostgresJsDatabase, id: string, data: UpdateFacilityContactInput): Promise<{
|
|
151
151
|
id: string;
|
|
152
152
|
entityType: string;
|
|
153
153
|
entityId: string;
|
|
154
|
-
role: "
|
|
154
|
+
role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
155
155
|
name: string;
|
|
156
156
|
title: string | null;
|
|
157
157
|
email: string | null;
|
|
@@ -4,7 +4,7 @@ export declare function listFacilityFeatures(db: PostgresJsDatabase, query: Faci
|
|
|
4
4
|
data: {
|
|
5
5
|
id: string;
|
|
6
6
|
facilityId: string;
|
|
7
|
-
category: "
|
|
7
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
8
8
|
code: string | null;
|
|
9
9
|
name: string;
|
|
10
10
|
description: string | null;
|
|
@@ -19,14 +19,14 @@ export declare function listFacilityFeatures(db: PostgresJsDatabase, query: Faci
|
|
|
19
19
|
offset: number;
|
|
20
20
|
}>;
|
|
21
21
|
export declare function createFacilityFeature(db: PostgresJsDatabase, facilityId: string, data: CreateFacilityFeatureInput): Promise<{
|
|
22
|
-
|
|
22
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
23
23
|
id: string;
|
|
24
|
+
name: string;
|
|
24
25
|
createdAt: Date;
|
|
25
26
|
updatedAt: Date;
|
|
26
|
-
code: string | null;
|
|
27
27
|
description: string | null;
|
|
28
|
+
code: string | null;
|
|
28
29
|
facilityId: string;
|
|
29
|
-
category: "other" | "service" | "amenity" | "accessibility" | "security" | "policy";
|
|
30
30
|
valueText: string | null;
|
|
31
31
|
highlighted: boolean;
|
|
32
32
|
sortOrder: number;
|
|
@@ -34,7 +34,7 @@ export declare function createFacilityFeature(db: PostgresJsDatabase, facilityId
|
|
|
34
34
|
export declare function updateFacilityFeature(db: PostgresJsDatabase, id: string, data: UpdateFacilityFeatureInput): Promise<{
|
|
35
35
|
id: string;
|
|
36
36
|
facilityId: string;
|
|
37
|
-
category: "
|
|
37
|
+
category: "service" | "other" | "accessibility" | "amenity" | "security" | "policy";
|
|
38
38
|
code: string | null;
|
|
39
39
|
name: string;
|
|
40
40
|
description: string | null;
|
|
@@ -66,10 +66,10 @@ export declare function listFacilityOperationSchedules(db: PostgresJsDatabase, q
|
|
|
66
66
|
offset: number;
|
|
67
67
|
}>;
|
|
68
68
|
export declare function createFacilityOperationSchedule(db: PostgresJsDatabase, facilityId: string, data: CreateFacilityOperationScheduleInput): Promise<{
|
|
69
|
-
notes: string | null;
|
|
70
69
|
id: string;
|
|
71
70
|
createdAt: Date;
|
|
72
71
|
updatedAt: Date;
|
|
72
|
+
notes: string | null;
|
|
73
73
|
facilityId: string;
|
|
74
74
|
dayOfWeek: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | null;
|
|
75
75
|
validFrom: string | null;
|
|
@@ -72,7 +72,7 @@ export declare function listPropertyGroups(db: PostgresJsDatabase, query: Proper
|
|
|
72
72
|
data: {
|
|
73
73
|
id: string;
|
|
74
74
|
parentGroupId: string | null;
|
|
75
|
-
groupType: "
|
|
75
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
76
76
|
status: "active" | "inactive" | "archived";
|
|
77
77
|
name: string;
|
|
78
78
|
code: string | null;
|
|
@@ -91,7 +91,7 @@ export declare function listPropertyGroups(db: PostgresJsDatabase, query: Proper
|
|
|
91
91
|
export declare function getPropertyGroupById(db: PostgresJsDatabase, id: string): Promise<{
|
|
92
92
|
id: string;
|
|
93
93
|
parentGroupId: string | null;
|
|
94
|
-
groupType: "
|
|
94
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
95
95
|
status: "active" | "inactive" | "archived";
|
|
96
96
|
name: string;
|
|
97
97
|
code: string | null;
|
|
@@ -104,24 +104,24 @@ export declare function getPropertyGroupById(db: PostgresJsDatabase, id: string)
|
|
|
104
104
|
updatedAt: Date;
|
|
105
105
|
} | null>;
|
|
106
106
|
export declare function createPropertyGroup(db: PostgresJsDatabase, data: CreatePropertyGroupInput): Promise<{
|
|
107
|
-
name: string;
|
|
108
|
-
website: string | null;
|
|
109
|
-
notes: string | null;
|
|
110
107
|
metadata: Record<string, unknown> | null;
|
|
111
108
|
id: string;
|
|
109
|
+
name: string;
|
|
112
110
|
createdAt: Date;
|
|
113
111
|
updatedAt: Date;
|
|
114
112
|
status: "active" | "inactive" | "archived";
|
|
113
|
+
notes: string | null;
|
|
115
114
|
code: string | null;
|
|
115
|
+
website: string | null;
|
|
116
116
|
brandName: string | null;
|
|
117
117
|
parentGroupId: string | null;
|
|
118
|
-
groupType: "
|
|
118
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
119
119
|
legalName: string | null;
|
|
120
120
|
} | null>;
|
|
121
121
|
export declare function updatePropertyGroup(db: PostgresJsDatabase, id: string, data: UpdatePropertyGroupInput): Promise<{
|
|
122
122
|
id: string;
|
|
123
123
|
parentGroupId: string | null;
|
|
124
|
-
groupType: "
|
|
124
|
+
groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
|
|
125
125
|
status: "active" | "inactive" | "archived";
|
|
126
126
|
name: string;
|
|
127
127
|
code: string | null;
|
|
@@ -141,7 +141,7 @@ export declare function listPropertyGroupMembers(db: PostgresJsDatabase, query:
|
|
|
141
141
|
id: string;
|
|
142
142
|
groupId: string;
|
|
143
143
|
propertyId: string;
|
|
144
|
-
membershipRole: "
|
|
144
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
145
145
|
isPrimary: boolean;
|
|
146
146
|
validFrom: string | null;
|
|
147
147
|
validTo: string | null;
|
|
@@ -157,7 +157,7 @@ export declare function getPropertyGroupMemberById(db: PostgresJsDatabase, id: s
|
|
|
157
157
|
id: string;
|
|
158
158
|
groupId: string;
|
|
159
159
|
propertyId: string;
|
|
160
|
-
membershipRole: "
|
|
160
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
161
161
|
isPrimary: boolean;
|
|
162
162
|
validFrom: string | null;
|
|
163
163
|
validTo: string | null;
|
|
@@ -166,22 +166,22 @@ export declare function getPropertyGroupMemberById(db: PostgresJsDatabase, id: s
|
|
|
166
166
|
updatedAt: Date;
|
|
167
167
|
} | null>;
|
|
168
168
|
export declare function createPropertyGroupMember(db: PostgresJsDatabase, data: CreatePropertyGroupMemberInput): Promise<{
|
|
169
|
-
isPrimary: boolean;
|
|
170
|
-
notes: string | null;
|
|
171
169
|
id: string;
|
|
172
170
|
createdAt: Date;
|
|
173
171
|
updatedAt: Date;
|
|
172
|
+
notes: string | null;
|
|
173
|
+
isPrimary: boolean;
|
|
174
174
|
validFrom: string | null;
|
|
175
175
|
validTo: string | null;
|
|
176
176
|
groupId: string;
|
|
177
177
|
propertyId: string;
|
|
178
|
-
membershipRole: "
|
|
178
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
179
179
|
} | null>;
|
|
180
180
|
export declare function updatePropertyGroupMember(db: PostgresJsDatabase, id: string, data: UpdatePropertyGroupMemberInput): Promise<{
|
|
181
181
|
id: string;
|
|
182
182
|
groupId: string;
|
|
183
183
|
propertyId: string;
|
|
184
|
-
membershipRole: "
|
|
184
|
+
membershipRole: "member" | "other" | "flagship" | "managed" | "franchise";
|
|
185
185
|
isPrimary: boolean;
|
|
186
186
|
validFrom: string | null;
|
|
187
187
|
validTo: string | null;
|
package/dist/validation.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export declare const facilityStatusSchema: z.ZodEnum<{
|
|
|
24
24
|
export declare const facilityOwnerTypeSchema: z.ZodEnum<{
|
|
25
25
|
internal: "internal";
|
|
26
26
|
supplier: "supplier";
|
|
27
|
-
other: "other";
|
|
28
27
|
organization: "organization";
|
|
28
|
+
other: "other";
|
|
29
29
|
}>;
|
|
30
30
|
export declare const facilityContactRoleSchema: z.ZodEnum<{
|
|
31
31
|
other: "other";
|
|
@@ -37,10 +37,10 @@ export declare const facilityContactRoleSchema: z.ZodEnum<{
|
|
|
37
37
|
emergency: "emergency";
|
|
38
38
|
}>;
|
|
39
39
|
export declare const facilityFeatureCategorySchema: z.ZodEnum<{
|
|
40
|
-
other: "other";
|
|
41
40
|
service: "service";
|
|
42
|
-
|
|
41
|
+
other: "other";
|
|
43
42
|
accessibility: "accessibility";
|
|
43
|
+
amenity: "amenity";
|
|
44
44
|
security: "security";
|
|
45
45
|
policy: "policy";
|
|
46
46
|
}>;
|
|
@@ -64,8 +64,8 @@ export declare const propertyTypeSchema: z.ZodEnum<{
|
|
|
64
64
|
hostel: "hostel";
|
|
65
65
|
}>;
|
|
66
66
|
export declare const propertyGroupTypeSchema: z.ZodEnum<{
|
|
67
|
-
other: "other";
|
|
68
67
|
brand: "brand";
|
|
68
|
+
other: "other";
|
|
69
69
|
chain: "chain";
|
|
70
70
|
management_company: "management_company";
|
|
71
71
|
collection: "collection";
|
|
@@ -78,8 +78,8 @@ export declare const propertyGroupStatusSchema: z.ZodEnum<{
|
|
|
78
78
|
archived: "archived";
|
|
79
79
|
}>;
|
|
80
80
|
export declare const propertyGroupMembershipRoleSchema: z.ZodEnum<{
|
|
81
|
-
other: "other";
|
|
82
81
|
member: "member";
|
|
82
|
+
other: "other";
|
|
83
83
|
flagship: "flagship";
|
|
84
84
|
managed: "managed";
|
|
85
85
|
franchise: "franchise";
|
|
@@ -89,8 +89,8 @@ export declare const facilityCoreSchema: z.ZodObject<{
|
|
|
89
89
|
ownerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
90
90
|
internal: "internal";
|
|
91
91
|
supplier: "supplier";
|
|
92
|
-
other: "other";
|
|
93
92
|
organization: "organization";
|
|
93
|
+
other: "other";
|
|
94
94
|
}>>>;
|
|
95
95
|
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
kind: z.ZodEnum<{
|
|
@@ -134,8 +134,8 @@ export declare const insertFacilitySchema: z.ZodObject<{
|
|
|
134
134
|
ownerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
135
135
|
internal: "internal";
|
|
136
136
|
supplier: "supplier";
|
|
137
|
-
other: "other";
|
|
138
137
|
organization: "organization";
|
|
138
|
+
other: "other";
|
|
139
139
|
}>>>;
|
|
140
140
|
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
141
|
kind: z.ZodEnum<{
|
|
@@ -179,8 +179,8 @@ export declare const updateFacilitySchema: z.ZodObject<{
|
|
|
179
179
|
ownerType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
180
180
|
internal: "internal";
|
|
181
181
|
supplier: "supplier";
|
|
182
|
-
other: "other";
|
|
183
182
|
organization: "organization";
|
|
183
|
+
other: "other";
|
|
184
184
|
}>>>>;
|
|
185
185
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
186
186
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -247,8 +247,8 @@ export declare const facilityListQuerySchema: z.ZodObject<{
|
|
|
247
247
|
ownerType: z.ZodOptional<z.ZodEnum<{
|
|
248
248
|
internal: "internal";
|
|
249
249
|
supplier: "supplier";
|
|
250
|
-
other: "other";
|
|
251
250
|
organization: "organization";
|
|
251
|
+
other: "other";
|
|
252
252
|
}>>;
|
|
253
253
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
254
254
|
parentFacilityId: z.ZodOptional<z.ZodString>;
|
|
@@ -319,10 +319,10 @@ export declare const facilityContactListQuerySchema: z.ZodObject<{
|
|
|
319
319
|
}, z.core.$strip>;
|
|
320
320
|
export declare const facilityFeatureCoreSchema: z.ZodObject<{
|
|
321
321
|
category: z.ZodDefault<z.ZodEnum<{
|
|
322
|
-
other: "other";
|
|
323
322
|
service: "service";
|
|
324
|
-
|
|
323
|
+
other: "other";
|
|
325
324
|
accessibility: "accessibility";
|
|
325
|
+
amenity: "amenity";
|
|
326
326
|
security: "security";
|
|
327
327
|
policy: "policy";
|
|
328
328
|
}>>;
|
|
@@ -335,10 +335,10 @@ export declare const facilityFeatureCoreSchema: z.ZodObject<{
|
|
|
335
335
|
}, z.core.$strip>;
|
|
336
336
|
export declare const insertFacilityFeatureSchema: z.ZodObject<{
|
|
337
337
|
category: z.ZodDefault<z.ZodEnum<{
|
|
338
|
-
other: "other";
|
|
339
338
|
service: "service";
|
|
340
|
-
|
|
339
|
+
other: "other";
|
|
341
340
|
accessibility: "accessibility";
|
|
341
|
+
amenity: "amenity";
|
|
342
342
|
security: "security";
|
|
343
343
|
policy: "policy";
|
|
344
344
|
}>>;
|
|
@@ -351,10 +351,10 @@ export declare const insertFacilityFeatureSchema: z.ZodObject<{
|
|
|
351
351
|
}, z.core.$strip>;
|
|
352
352
|
export declare const updateFacilityFeatureSchema: z.ZodObject<{
|
|
353
353
|
category: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
354
|
-
other: "other";
|
|
355
354
|
service: "service";
|
|
356
|
-
|
|
355
|
+
other: "other";
|
|
357
356
|
accessibility: "accessibility";
|
|
357
|
+
amenity: "amenity";
|
|
358
358
|
security: "security";
|
|
359
359
|
policy: "policy";
|
|
360
360
|
}>>>;
|
|
@@ -370,10 +370,10 @@ export declare const facilityFeatureListQuerySchema: z.ZodObject<{
|
|
|
370
370
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
371
371
|
facilityId: z.ZodOptional<z.ZodString>;
|
|
372
372
|
category: z.ZodOptional<z.ZodEnum<{
|
|
373
|
-
other: "other";
|
|
374
373
|
service: "service";
|
|
375
|
-
|
|
374
|
+
other: "other";
|
|
376
375
|
accessibility: "accessibility";
|
|
376
|
+
amenity: "amenity";
|
|
377
377
|
security: "security";
|
|
378
378
|
policy: "policy";
|
|
379
379
|
}>>;
|
|
@@ -526,8 +526,8 @@ export declare const propertyListQuerySchema: z.ZodObject<{
|
|
|
526
526
|
export declare const propertyGroupCoreSchema: z.ZodObject<{
|
|
527
527
|
parentGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
528
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
529
|
-
other: "other";
|
|
530
529
|
brand: "brand";
|
|
530
|
+
other: "other";
|
|
531
531
|
chain: "chain";
|
|
532
532
|
management_company: "management_company";
|
|
533
533
|
collection: "collection";
|
|
@@ -550,8 +550,8 @@ export declare const propertyGroupCoreSchema: z.ZodObject<{
|
|
|
550
550
|
export declare const insertPropertyGroupSchema: z.ZodObject<{
|
|
551
551
|
parentGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
552
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
553
|
-
other: "other";
|
|
554
553
|
brand: "brand";
|
|
554
|
+
other: "other";
|
|
555
555
|
chain: "chain";
|
|
556
556
|
management_company: "management_company";
|
|
557
557
|
collection: "collection";
|
|
@@ -574,8 +574,8 @@ export declare const insertPropertyGroupSchema: z.ZodObject<{
|
|
|
574
574
|
export declare const updatePropertyGroupSchema: z.ZodObject<{
|
|
575
575
|
parentGroupId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
576
576
|
groupType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
577
|
-
other: "other";
|
|
578
577
|
brand: "brand";
|
|
578
|
+
other: "other";
|
|
579
579
|
chain: "chain";
|
|
580
580
|
management_company: "management_company";
|
|
581
581
|
collection: "collection";
|
|
@@ -600,8 +600,8 @@ export declare const propertyGroupListQuerySchema: z.ZodObject<{
|
|
|
600
600
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
601
601
|
parentGroupId: z.ZodOptional<z.ZodString>;
|
|
602
602
|
groupType: z.ZodOptional<z.ZodEnum<{
|
|
603
|
-
other: "other";
|
|
604
603
|
brand: "brand";
|
|
604
|
+
other: "other";
|
|
605
605
|
chain: "chain";
|
|
606
606
|
management_company: "management_company";
|
|
607
607
|
collection: "collection";
|
|
@@ -619,8 +619,8 @@ export declare const propertyGroupMemberCoreSchema: z.ZodObject<{
|
|
|
619
619
|
groupId: z.ZodString;
|
|
620
620
|
propertyId: z.ZodString;
|
|
621
621
|
membershipRole: z.ZodDefault<z.ZodEnum<{
|
|
622
|
-
other: "other";
|
|
623
622
|
member: "member";
|
|
623
|
+
other: "other";
|
|
624
624
|
flagship: "flagship";
|
|
625
625
|
managed: "managed";
|
|
626
626
|
franchise: "franchise";
|
|
@@ -634,8 +634,8 @@ export declare const insertPropertyGroupMemberSchema: z.ZodObject<{
|
|
|
634
634
|
groupId: z.ZodString;
|
|
635
635
|
propertyId: z.ZodString;
|
|
636
636
|
membershipRole: z.ZodDefault<z.ZodEnum<{
|
|
637
|
-
other: "other";
|
|
638
637
|
member: "member";
|
|
638
|
+
other: "other";
|
|
639
639
|
flagship: "flagship";
|
|
640
640
|
managed: "managed";
|
|
641
641
|
franchise: "franchise";
|
|
@@ -649,8 +649,8 @@ export declare const updatePropertyGroupMemberSchema: z.ZodObject<{
|
|
|
649
649
|
groupId: z.ZodOptional<z.ZodString>;
|
|
650
650
|
propertyId: z.ZodOptional<z.ZodString>;
|
|
651
651
|
membershipRole: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
652
|
-
other: "other";
|
|
653
652
|
member: "member";
|
|
653
|
+
other: "other";
|
|
654
654
|
flagship: "flagship";
|
|
655
655
|
managed: "managed";
|
|
656
656
|
franchise: "franchise";
|
|
@@ -666,8 +666,8 @@ export declare const propertyGroupMemberListQuerySchema: z.ZodObject<{
|
|
|
666
666
|
groupId: z.ZodOptional<z.ZodString>;
|
|
667
667
|
propertyId: z.ZodOptional<z.ZodString>;
|
|
668
668
|
membershipRole: z.ZodOptional<z.ZodEnum<{
|
|
669
|
-
other: "other";
|
|
670
669
|
member: "member";
|
|
670
|
+
other: "other";
|
|
671
671
|
flagship: "flagship";
|
|
672
672
|
managed: "managed";
|
|
673
673
|
franchise: "franchise";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/facilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"hono": "^4.12.10",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@voyantjs/core": "0.
|
|
29
|
-
"@voyantjs/db": "0.
|
|
30
|
-
"@voyantjs/hono": "0.
|
|
31
|
-
"@voyantjs/identity": "0.
|
|
28
|
+
"@voyantjs/core": "0.6.0",
|
|
29
|
+
"@voyantjs/db": "0.6.0",
|
|
30
|
+
"@voyantjs/hono": "0.6.0",
|
|
31
|
+
"@voyantjs/identity": "0.6.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "^6.0.2",
|