@voyantjs/identity 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 CHANGED
@@ -14,7 +14,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
14
14
  id: string;
15
15
  entityType: string;
16
16
  entityId: string;
17
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
17
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
18
18
  name: string;
19
19
  title: string | null;
20
20
  email: string | null;
@@ -41,20 +41,20 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
41
41
  input: {};
42
42
  output: {
43
43
  data: {
44
+ metadata: {
45
+ [x: string]: import("hono/utils/types").JSONValue;
46
+ } | null;
44
47
  id: string;
45
48
  name: string;
49
+ createdAt: string;
50
+ updatedAt: string;
46
51
  email: string | null;
52
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
53
+ notes: string | null;
47
54
  phone: string | null;
48
55
  entityType: string;
49
56
  entityId: string;
50
57
  isPrimary: boolean;
51
- notes: string | null;
52
- metadata: {
53
- [x: string]: import("hono/utils/types").JSONValue;
54
- } | null;
55
- createdAt: string;
56
- updatedAt: string;
57
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
58
58
  title: string | null;
59
59
  } | null;
60
60
  };
@@ -86,7 +86,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
86
86
  id: string;
87
87
  entityType: string;
88
88
  entityId: string;
89
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
89
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
90
90
  name: string;
91
91
  title: string | null;
92
92
  email: string | null;
@@ -128,7 +128,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
128
128
  id: string;
129
129
  entityType: string;
130
130
  entityId: string;
131
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
131
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
132
132
  name: string;
133
133
  title: string | null;
134
134
  email: string | null;
@@ -181,7 +181,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
181
181
  id: string;
182
182
  entityType: string;
183
183
  entityId: string;
184
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
184
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
185
185
  label: string | null;
186
186
  value: string;
187
187
  normalizedValue: string | null;
@@ -208,19 +208,19 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
208
208
  output: {
209
209
  data: {
210
210
  value: string;
211
+ metadata: {
212
+ [x: string]: import("hono/utils/types").JSONValue;
213
+ } | null;
211
214
  id: string;
215
+ createdAt: string;
216
+ updatedAt: string;
217
+ notes: string | null;
212
218
  entityType: string;
213
219
  entityId: string;
214
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
220
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
215
221
  label: string | null;
216
222
  normalizedValue: string | null;
217
223
  isPrimary: boolean;
218
- notes: string | null;
219
- metadata: {
220
- [x: string]: import("hono/utils/types").JSONValue;
221
- } | null;
222
- createdAt: string;
223
- updatedAt: string;
224
224
  } | null;
225
225
  };
226
226
  outputFormat: "json";
@@ -251,7 +251,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
251
251
  id: string;
252
252
  entityType: string;
253
253
  entityId: string;
254
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
254
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
255
255
  label: string | null;
256
256
  value: string;
257
257
  normalizedValue: string | null;
@@ -292,7 +292,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
292
292
  id: string;
293
293
  entityType: string;
294
294
  entityId: string;
295
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
295
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
296
296
  label: string | null;
297
297
  value: string;
298
298
  normalizedValue: string | null;
@@ -344,7 +344,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
344
344
  id: string;
345
345
  entityType: string;
346
346
  entityId: string;
347
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
347
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
348
348
  fullText: string | null;
349
349
  line1: string | null;
350
350
  line2: string | null;
@@ -377,17 +377,18 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
377
377
  input: {};
378
378
  output: {
379
379
  data: {
380
- id: string;
381
- entityType: string;
382
- entityId: string;
383
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
384
- isPrimary: boolean;
385
- notes: string | null;
386
380
  metadata: {
387
381
  [x: string]: import("hono/utils/types").JSONValue;
388
382
  } | null;
383
+ id: string;
389
384
  createdAt: string;
390
385
  updatedAt: string;
386
+ notes: string | null;
387
+ timezone: string | null;
388
+ entityType: string;
389
+ entityId: string;
390
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
391
+ isPrimary: boolean;
391
392
  fullText: string | null;
392
393
  line1: string | null;
393
394
  line2: string | null;
@@ -397,7 +398,6 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
397
398
  country: string | null;
398
399
  latitude: number | null;
399
400
  longitude: number | null;
400
- timezone: string | null;
401
401
  } | null;
402
402
  };
403
403
  outputFormat: "json";
@@ -428,7 +428,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
428
428
  id: string;
429
429
  entityType: string;
430
430
  entityId: string;
431
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
431
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
432
432
  fullText: string | null;
433
433
  line1: string | null;
434
434
  line2: string | null;
@@ -476,7 +476,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
476
476
  id: string;
477
477
  entityType: string;
478
478
  entityId: string;
479
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
479
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
480
480
  fullText: string | null;
481
481
  line1: string | null;
482
482
  line2: string | null;
@@ -541,7 +541,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
541
541
  id: string;
542
542
  entityType: string;
543
543
  entityId: string;
544
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
544
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
545
545
  label: string | null;
546
546
  value: string;
547
547
  normalizedValue: string | null;
@@ -571,19 +571,19 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
571
571
  output: {
572
572
  data: {
573
573
  value: string;
574
+ metadata: {
575
+ [x: string]: import("hono/utils/types").JSONValue;
576
+ } | null;
574
577
  id: string;
578
+ createdAt: string;
579
+ updatedAt: string;
580
+ notes: string | null;
575
581
  entityType: string;
576
582
  entityId: string;
577
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
583
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
578
584
  label: string | null;
579
585
  normalizedValue: string | null;
580
586
  isPrimary: boolean;
581
- notes: string | null;
582
- metadata: {
583
- [x: string]: import("hono/utils/types").JSONValue;
584
- } | null;
585
- createdAt: string;
586
- updatedAt: string;
587
587
  } | null;
588
588
  };
589
589
  outputFormat: "json";
@@ -605,7 +605,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
605
605
  id: string;
606
606
  entityType: string;
607
607
  entityId: string;
608
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
608
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
609
609
  fullText: string | null;
610
610
  line1: string | null;
611
611
  line2: string | null;
@@ -641,17 +641,18 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
641
641
  };
642
642
  output: {
643
643
  data: {
644
- id: string;
645
- entityType: string;
646
- entityId: string;
647
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
648
- isPrimary: boolean;
649
- notes: string | null;
650
644
  metadata: {
651
645
  [x: string]: import("hono/utils/types").JSONValue;
652
646
  } | null;
647
+ id: string;
653
648
  createdAt: string;
654
649
  updatedAt: string;
650
+ notes: string | null;
651
+ timezone: string | null;
652
+ entityType: string;
653
+ entityId: string;
654
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
655
+ isPrimary: boolean;
655
656
  fullText: string | null;
656
657
  line1: string | null;
657
658
  line2: string | null;
@@ -661,7 +662,6 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
661
662
  country: string | null;
662
663
  latitude: number | null;
663
664
  longitude: number | null;
664
- timezone: string | null;
665
665
  } | null;
666
666
  };
667
667
  outputFormat: "json";
@@ -683,7 +683,7 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
683
683
  id: string;
684
684
  entityType: string;
685
685
  entityId: string;
686
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
686
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
687
687
  name: string;
688
688
  title: string | null;
689
689
  email: string | null;
@@ -713,20 +713,20 @@ export declare const identityRoutes: import("hono/hono-base").HonoBase<Env, {
713
713
  };
714
714
  output: {
715
715
  data: {
716
+ metadata: {
717
+ [x: string]: import("hono/utils/types").JSONValue;
718
+ } | null;
716
719
  id: string;
717
720
  name: string;
721
+ createdAt: string;
722
+ updatedAt: string;
718
723
  email: string | null;
724
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
725
+ notes: string | null;
719
726
  phone: string | null;
720
727
  entityType: string;
721
728
  entityId: string;
722
729
  isPrimary: boolean;
723
- notes: string | null;
724
- metadata: {
725
- [x: string]: import("hono/utils/types").JSONValue;
726
- } | null;
727
- createdAt: string;
728
- updatedAt: string;
729
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
730
730
  title: string | null;
731
731
  } | null;
732
732
  };
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAmBjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAkLvB,CAAA;AAEJ,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAmBjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA8KvB,CAAA;AAEJ,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
package/dist/routes.js CHANGED
@@ -1,14 +1,15 @@
1
+ import { parseJsonBody, parseQuery } from "@voyantjs/hono";
1
2
  import { Hono } from "hono";
2
3
  import { identityService } from "./service.js";
3
4
  import { addressListQuerySchema, contactPointListQuerySchema, insertAddressForEntitySchema, insertAddressSchema, insertContactPointForEntitySchema, insertContactPointSchema, insertNamedContactForEntitySchema, insertNamedContactSchema, namedContactListQuerySchema, updateAddressSchema, updateContactPointSchema, updateNamedContactSchema, } from "./validation.js";
4
5
  export const identityRoutes = new Hono()
5
6
  .get("/named-contacts", async (c) => {
6
- const query = namedContactListQuerySchema.parse(Object.fromEntries(new URL(c.req.url).searchParams));
7
+ const query = parseQuery(c, namedContactListQuerySchema);
7
8
  return c.json(await identityService.listNamedContacts(c.get("db"), query));
8
9
  })
9
10
  .post("/named-contacts", async (c) => {
10
11
  return c.json({
11
- data: await identityService.createNamedContact(c.get("db"), insertNamedContactSchema.parse(await c.req.json())),
12
+ data: await identityService.createNamedContact(c.get("db"), await parseJsonBody(c, insertNamedContactSchema)),
12
13
  }, 201);
13
14
  })
14
15
  .get("/named-contacts/:id", async (c) => {
@@ -18,7 +19,7 @@ export const identityRoutes = new Hono()
18
19
  return c.json({ data: row });
19
20
  })
20
21
  .patch("/named-contacts/:id", async (c) => {
21
- const row = await identityService.updateNamedContact(c.get("db"), c.req.param("id"), updateNamedContactSchema.parse(await c.req.json()));
22
+ const row = await identityService.updateNamedContact(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateNamedContactSchema));
22
23
  if (!row)
23
24
  return c.json({ error: "Named contact not found" }, 404);
24
25
  return c.json({ data: row });
@@ -30,12 +31,12 @@ export const identityRoutes = new Hono()
30
31
  return c.json({ success: true });
31
32
  })
32
33
  .get("/contact-points", async (c) => {
33
- const query = contactPointListQuerySchema.parse(Object.fromEntries(new URL(c.req.url).searchParams));
34
+ const query = parseQuery(c, contactPointListQuerySchema);
34
35
  return c.json(await identityService.listContactPoints(c.get("db"), query));
35
36
  })
36
37
  .post("/contact-points", async (c) => {
37
38
  return c.json({
38
- data: await identityService.createContactPoint(c.get("db"), insertContactPointSchema.parse(await c.req.json())),
39
+ data: await identityService.createContactPoint(c.get("db"), await parseJsonBody(c, insertContactPointSchema)),
39
40
  }, 201);
40
41
  })
41
42
  .get("/contact-points/:id", async (c) => {
@@ -45,7 +46,7 @@ export const identityRoutes = new Hono()
45
46
  return c.json({ data: row });
46
47
  })
47
48
  .patch("/contact-points/:id", async (c) => {
48
- const row = await identityService.updateContactPoint(c.get("db"), c.req.param("id"), updateContactPointSchema.parse(await c.req.json()));
49
+ const row = await identityService.updateContactPoint(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateContactPointSchema));
49
50
  if (!row)
50
51
  return c.json({ error: "Contact point not found" }, 404);
51
52
  return c.json({ data: row });
@@ -57,12 +58,12 @@ export const identityRoutes = new Hono()
57
58
  return c.json({ success: true });
58
59
  })
59
60
  .get("/addresses", async (c) => {
60
- const query = addressListQuerySchema.parse(Object.fromEntries(new URL(c.req.url).searchParams));
61
+ const query = parseQuery(c, addressListQuerySchema);
61
62
  return c.json(await identityService.listAddresses(c.get("db"), query));
62
63
  })
63
64
  .post("/addresses", async (c) => {
64
65
  return c.json({
65
- data: await identityService.createAddress(c.get("db"), insertAddressSchema.parse(await c.req.json())),
66
+ data: await identityService.createAddress(c.get("db"), await parseJsonBody(c, insertAddressSchema)),
66
67
  }, 201);
67
68
  })
68
69
  .get("/addresses/:id", async (c) => {
@@ -72,7 +73,7 @@ export const identityRoutes = new Hono()
72
73
  return c.json({ data: row });
73
74
  })
74
75
  .patch("/addresses/:id", async (c) => {
75
- const row = await identityService.updateAddress(c.get("db"), c.req.param("id"), updateAddressSchema.parse(await c.req.json()));
76
+ const row = await identityService.updateAddress(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateAddressSchema));
76
77
  if (!row)
77
78
  return c.json({ error: "Address not found" }, 404);
78
79
  return c.json({ data: row });
@@ -91,7 +92,7 @@ export const identityRoutes = new Hono()
91
92
  })
92
93
  .post("/entities/:entityType/:entityId/contact-points", async (c) => {
93
94
  const params = c.req.param();
94
- const body = insertContactPointForEntitySchema.parse(await c.req.json());
95
+ const body = await parseJsonBody(c, insertContactPointForEntitySchema);
95
96
  return c.json({
96
97
  data: await identityService.createContactPoint(c.get("db"), {
97
98
  ...body,
@@ -108,7 +109,7 @@ export const identityRoutes = new Hono()
108
109
  })
109
110
  .post("/entities/:entityType/:entityId/addresses", async (c) => {
110
111
  const params = c.req.param();
111
- const body = insertAddressForEntitySchema.parse(await c.req.json());
112
+ const body = await parseJsonBody(c, insertAddressForEntitySchema);
112
113
  return c.json({
113
114
  data: await identityService.createAddress(c.get("db"), {
114
115
  ...body,
@@ -125,7 +126,7 @@ export const identityRoutes = new Hono()
125
126
  })
126
127
  .post("/entities/:entityType/:entityId/named-contacts", async (c) => {
127
128
  const params = c.req.param();
128
- const body = insertNamedContactForEntitySchema.parse(await c.req.json());
129
+ const body = await parseJsonBody(c, insertNamedContactForEntitySchema);
129
130
  return c.json({
130
131
  data: await identityService.createNamedContact(c.get("db"), {
131
132
  ...body,
package/dist/schema.d.ts CHANGED
@@ -61,7 +61,7 @@ export declare const identityContactPoints: import("drizzle-orm/pg-core").PgTabl
61
61
  tableName: "identity_contact_points";
62
62
  dataType: "string";
63
63
  columnType: "PgEnumColumn";
64
- data: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
64
+ data: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
65
65
  driverParam: string;
66
66
  notNull: true;
67
67
  hasDefault: false;
@@ -274,7 +274,7 @@ export declare const identityAddresses: import("drizzle-orm/pg-core").PgTableWit
274
274
  tableName: "identity_addresses";
275
275
  dataType: "string";
276
276
  columnType: "PgEnumColumn";
277
- data: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
277
+ data: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
278
278
  driverParam: string;
279
279
  notNull: true;
280
280
  hasDefault: true;
@@ -606,7 +606,7 @@ export declare const identityNamedContacts: import("drizzle-orm/pg-core").PgTabl
606
606
  tableName: "identity_named_contacts";
607
607
  dataType: "string";
608
608
  columnType: "PgEnumColumn";
609
- data: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
609
+ data: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
610
610
  driverParam: string;
611
611
  notNull: true;
612
612
  hasDefault: true;
package/dist/service.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare const identityService: {
16
16
  id: string;
17
17
  entityType: string;
18
18
  entityId: string;
19
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
19
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
20
20
  label: string | null;
21
21
  value: string;
22
22
  normalizedValue: string | null;
@@ -34,7 +34,7 @@ export declare const identityService: {
34
34
  id: string;
35
35
  entityType: string;
36
36
  entityId: string;
37
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
37
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
38
38
  label: string | null;
39
39
  value: string;
40
40
  normalizedValue: string | null;
@@ -48,7 +48,7 @@ export declare const identityService: {
48
48
  id: string;
49
49
  entityType: string;
50
50
  entityId: string;
51
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
51
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
52
52
  label: string | null;
53
53
  value: string;
54
54
  normalizedValue: string | null;
@@ -60,23 +60,23 @@ export declare const identityService: {
60
60
  } | null>;
61
61
  createContactPoint(db: PostgresJsDatabase, data: CreateContactPointInput): Promise<{
62
62
  value: string;
63
+ metadata: Record<string, unknown> | null;
63
64
  id: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ notes: string | null;
64
68
  entityType: string;
65
69
  entityId: string;
66
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
70
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
67
71
  label: string | null;
68
72
  normalizedValue: string | null;
69
73
  isPrimary: boolean;
70
- notes: string | null;
71
- metadata: Record<string, unknown> | null;
72
- createdAt: Date;
73
- updatedAt: Date;
74
74
  } | null>;
75
75
  updateContactPoint(db: PostgresJsDatabase, id: string, data: UpdateContactPointInput): Promise<{
76
76
  id: string;
77
77
  entityType: string;
78
78
  entityId: string;
79
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
79
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
80
80
  label: string | null;
81
81
  value: string;
82
82
  normalizedValue: string | null;
@@ -94,7 +94,7 @@ export declare const identityService: {
94
94
  id: string;
95
95
  entityType: string;
96
96
  entityId: string;
97
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
97
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
98
98
  fullText: string | null;
99
99
  line1: string | null;
100
100
  line2: string | null;
@@ -119,7 +119,7 @@ export declare const identityService: {
119
119
  id: string;
120
120
  entityType: string;
121
121
  entityId: string;
122
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
122
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
123
123
  fullText: string | null;
124
124
  line1: string | null;
125
125
  line2: string | null;
@@ -140,7 +140,7 @@ export declare const identityService: {
140
140
  id: string;
141
141
  entityType: string;
142
142
  entityId: string;
143
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
143
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
144
144
  fullText: string | null;
145
145
  line1: string | null;
146
146
  line2: string | null;
@@ -158,15 +158,16 @@ export declare const identityService: {
158
158
  updatedAt: Date;
159
159
  } | null>;
160
160
  createAddress(db: PostgresJsDatabase, data: CreateAddressInput): Promise<{
161
+ metadata: Record<string, unknown> | null;
161
162
  id: string;
163
+ createdAt: Date;
164
+ updatedAt: Date;
165
+ notes: string | null;
166
+ timezone: string | null;
162
167
  entityType: string;
163
168
  entityId: string;
164
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
169
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
165
170
  isPrimary: boolean;
166
- notes: string | null;
167
- metadata: Record<string, unknown> | null;
168
- createdAt: Date;
169
- updatedAt: Date;
170
171
  fullText: string | null;
171
172
  line1: string | null;
172
173
  line2: string | null;
@@ -176,13 +177,12 @@ export declare const identityService: {
176
177
  country: string | null;
177
178
  latitude: number | null;
178
179
  longitude: number | null;
179
- timezone: string | null;
180
180
  } | null>;
181
181
  updateAddress(db: PostgresJsDatabase, id: string, data: UpdateAddressInput): Promise<{
182
182
  id: string;
183
183
  entityType: string;
184
184
  entityId: string;
185
- label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
185
+ label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
186
186
  fullText: string | null;
187
187
  line1: string | null;
188
188
  line2: string | null;
@@ -207,7 +207,7 @@ export declare const identityService: {
207
207
  id: string;
208
208
  entityType: string;
209
209
  entityId: string;
210
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
210
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
211
211
  name: string;
212
212
  title: string | null;
213
213
  email: string | null;
@@ -226,7 +226,7 @@ export declare const identityService: {
226
226
  id: string;
227
227
  entityType: string;
228
228
  entityId: string;
229
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
229
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
230
230
  name: string;
231
231
  title: string | null;
232
232
  email: string | null;
@@ -241,7 +241,7 @@ export declare const identityService: {
241
241
  id: string;
242
242
  entityType: string;
243
243
  entityId: string;
244
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
244
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
245
245
  name: string;
246
246
  title: string | null;
247
247
  email: string | null;
@@ -253,25 +253,25 @@ export declare const identityService: {
253
253
  updatedAt: Date;
254
254
  } | null>;
255
255
  createNamedContact(db: PostgresJsDatabase, data: CreateNamedContactInput): Promise<{
256
+ metadata: Record<string, unknown> | null;
256
257
  id: string;
257
258
  name: string;
259
+ createdAt: Date;
260
+ updatedAt: Date;
258
261
  email: string | null;
262
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
263
+ notes: string | null;
259
264
  phone: string | null;
260
265
  entityType: string;
261
266
  entityId: string;
262
267
  isPrimary: boolean;
263
- notes: string | null;
264
- metadata: Record<string, unknown> | null;
265
- createdAt: Date;
266
- updatedAt: Date;
267
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
268
268
  title: string | null;
269
269
  } | null>;
270
270
  updateNamedContact(db: PostgresJsDatabase, id: string, data: UpdateNamedContactInput): Promise<{
271
271
  id: string;
272
272
  entityType: string;
273
273
  entityId: string;
274
- role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
274
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
275
275
  name: string;
276
276
  title: string | null;
277
277
  email: string | null;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const contactPointKindSchema: z.ZodEnum<{
3
3
  email: "email";
4
+ other: "other";
4
5
  phone: "phone";
5
6
  mobile: "mobile";
6
7
  whatsapp: "whatsapp";
@@ -8,21 +9,20 @@ export declare const contactPointKindSchema: z.ZodEnum<{
8
9
  sms: "sms";
9
10
  fax: "fax";
10
11
  social: "social";
11
- other: "other";
12
12
  }>;
13
13
  export declare const addressLabelSchema: z.ZodEnum<{
14
- other: "other";
14
+ service: "service";
15
15
  primary: "primary";
16
+ other: "other";
16
17
  billing: "billing";
17
18
  shipping: "shipping";
18
19
  mailing: "mailing";
19
20
  meeting: "meeting";
20
- service: "service";
21
21
  legal: "legal";
22
22
  }>;
23
23
  export declare const namedContactRoleSchema: z.ZodEnum<{
24
- other: "other";
25
24
  primary: "primary";
25
+ other: "other";
26
26
  legal: "legal";
27
27
  general: "general";
28
28
  reservations: "reservations";
@@ -37,6 +37,7 @@ export declare const insertContactPointSchema: z.ZodObject<{
37
37
  entityId: z.ZodString;
38
38
  kind: z.ZodEnum<{
39
39
  email: "email";
40
+ other: "other";
40
41
  phone: "phone";
41
42
  mobile: "mobile";
42
43
  whatsapp: "whatsapp";
@@ -44,7 +45,6 @@ export declare const insertContactPointSchema: z.ZodObject<{
44
45
  sms: "sms";
45
46
  fax: "fax";
46
47
  social: "social";
47
- other: "other";
48
48
  }>;
49
49
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  value: z.ZodString;
@@ -58,6 +58,7 @@ export declare const updateContactPointSchema: z.ZodObject<{
58
58
  entityId: z.ZodOptional<z.ZodString>;
59
59
  kind: z.ZodOptional<z.ZodEnum<{
60
60
  email: "email";
61
+ other: "other";
61
62
  phone: "phone";
62
63
  mobile: "mobile";
63
64
  whatsapp: "whatsapp";
@@ -65,7 +66,6 @@ export declare const updateContactPointSchema: z.ZodObject<{
65
66
  sms: "sms";
66
67
  fax: "fax";
67
68
  social: "social";
68
- other: "other";
69
69
  }>>;
70
70
  label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
71
71
  value: z.ZodOptional<z.ZodString>;
@@ -76,8 +76,11 @@ export declare const updateContactPointSchema: z.ZodObject<{
76
76
  }, z.core.$strip>;
77
77
  export declare const insertContactPointForEntitySchema: z.ZodObject<{
78
78
  value: z.ZodString;
79
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
80
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
81
  kind: z.ZodEnum<{
80
82
  email: "email";
83
+ other: "other";
81
84
  phone: "phone";
82
85
  mobile: "mobile";
83
86
  whatsapp: "whatsapp";
@@ -85,13 +88,10 @@ export declare const insertContactPointForEntitySchema: z.ZodObject<{
85
88
  sms: "sms";
86
89
  fax: "fax";
87
90
  social: "social";
88
- other: "other";
89
91
  }>;
90
92
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
93
  normalizedValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
94
  isPrimary: z.ZodDefault<z.ZodBoolean>;
93
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
95
95
  }, z.core.$strip>;
96
96
  export declare const contactPointListQuerySchema: z.ZodObject<{
97
97
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -100,6 +100,7 @@ export declare const contactPointListQuerySchema: z.ZodObject<{
100
100
  entityId: z.ZodOptional<z.ZodString>;
101
101
  kind: z.ZodOptional<z.ZodEnum<{
102
102
  email: "email";
103
+ other: "other";
103
104
  phone: "phone";
104
105
  mobile: "mobile";
105
106
  whatsapp: "whatsapp";
@@ -107,7 +108,6 @@ export declare const contactPointListQuerySchema: z.ZodObject<{
107
108
  sms: "sms";
108
109
  fax: "fax";
109
110
  social: "social";
110
- other: "other";
111
111
  }>>;
112
112
  isPrimary: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
113
113
  0: "0";
@@ -122,6 +122,7 @@ export declare const selectContactPointSchema: z.ZodObject<{
122
122
  entityId: z.ZodString;
123
123
  kind: z.ZodEnum<{
124
124
  email: "email";
125
+ other: "other";
125
126
  phone: "phone";
126
127
  mobile: "mobile";
127
128
  whatsapp: "whatsapp";
@@ -129,7 +130,6 @@ export declare const selectContactPointSchema: z.ZodObject<{
129
130
  sms: "sms";
130
131
  fax: "fax";
131
132
  social: "social";
132
- other: "other";
133
133
  }>;
134
134
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
135
  value: z.ZodString;
@@ -149,13 +149,13 @@ export declare const insertAddressSchema: z.ZodObject<{
149
149
  entityType: z.ZodString;
150
150
  entityId: z.ZodString;
151
151
  label: z.ZodDefault<z.ZodEnum<{
152
- other: "other";
152
+ service: "service";
153
153
  primary: "primary";
154
+ other: "other";
154
155
  billing: "billing";
155
156
  shipping: "shipping";
156
157
  mailing: "mailing";
157
158
  meeting: "meeting";
158
- service: "service";
159
159
  legal: "legal";
160
160
  }>>;
161
161
  fullText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -176,13 +176,13 @@ export declare const updateAddressSchema: z.ZodObject<{
176
176
  entityType: z.ZodOptional<z.ZodString>;
177
177
  entityId: z.ZodOptional<z.ZodString>;
178
178
  label: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
179
- other: "other";
179
+ service: "service";
180
180
  primary: "primary";
181
+ other: "other";
181
182
  billing: "billing";
182
183
  shipping: "shipping";
183
184
  mailing: "mailing";
184
185
  meeting: "meeting";
185
- service: "service";
186
186
  legal: "legal";
187
187
  }>>>;
188
188
  fullText: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -200,19 +200,20 @@ export declare const updateAddressSchema: z.ZodObject<{
200
200
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
201
201
  }, z.core.$strip>;
202
202
  export declare const insertAddressForEntitySchema: z.ZodObject<{
203
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
204
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
206
  label: z.ZodDefault<z.ZodEnum<{
204
- other: "other";
207
+ service: "service";
205
208
  primary: "primary";
209
+ other: "other";
206
210
  billing: "billing";
207
211
  shipping: "shipping";
208
212
  mailing: "mailing";
209
213
  meeting: "meeting";
210
- service: "service";
211
214
  legal: "legal";
212
215
  }>>;
213
216
  isPrimary: z.ZodDefault<z.ZodBoolean>;
214
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
216
217
  fullText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
218
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
219
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -222,7 +223,6 @@ export declare const insertAddressForEntitySchema: z.ZodObject<{
222
223
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
224
  latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
225
  longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
225
- timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
226
  }, z.core.$strip>;
227
227
  export declare const addressListQuerySchema: z.ZodObject<{
228
228
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -230,13 +230,13 @@ export declare const addressListQuerySchema: z.ZodObject<{
230
230
  entityType: z.ZodOptional<z.ZodString>;
231
231
  entityId: z.ZodOptional<z.ZodString>;
232
232
  label: z.ZodOptional<z.ZodEnum<{
233
- other: "other";
233
+ service: "service";
234
234
  primary: "primary";
235
+ other: "other";
235
236
  billing: "billing";
236
237
  shipping: "shipping";
237
238
  mailing: "mailing";
238
239
  meeting: "meeting";
239
- service: "service";
240
240
  legal: "legal";
241
241
  }>>;
242
242
  isPrimary: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
@@ -251,13 +251,13 @@ export declare const selectAddressSchema: z.ZodObject<{
251
251
  entityType: z.ZodString;
252
252
  entityId: z.ZodString;
253
253
  label: z.ZodDefault<z.ZodEnum<{
254
- other: "other";
254
+ service: "service";
255
255
  primary: "primary";
256
+ other: "other";
256
257
  billing: "billing";
257
258
  shipping: "shipping";
258
259
  mailing: "mailing";
259
260
  meeting: "meeting";
260
- service: "service";
261
261
  legal: "legal";
262
262
  }>>;
263
263
  fullText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -285,8 +285,8 @@ export declare const insertNamedContactSchema: z.ZodObject<{
285
285
  entityType: z.ZodString;
286
286
  entityId: z.ZodString;
287
287
  role: z.ZodDefault<z.ZodEnum<{
288
- other: "other";
289
288
  primary: "primary";
289
+ other: "other";
290
290
  legal: "legal";
291
291
  general: "general";
292
292
  reservations: "reservations";
@@ -308,8 +308,8 @@ export declare const updateNamedContactSchema: z.ZodObject<{
308
308
  entityType: z.ZodOptional<z.ZodString>;
309
309
  entityId: z.ZodOptional<z.ZodString>;
310
310
  role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
311
- other: "other";
312
311
  primary: "primary";
312
+ other: "other";
313
313
  legal: "legal";
314
314
  general: "general";
315
315
  reservations: "reservations";
@@ -328,15 +328,12 @@ export declare const updateNamedContactSchema: z.ZodObject<{
328
328
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
329
329
  }, z.core.$strip>;
330
330
  export declare const insertNamedContactForEntitySchema: z.ZodObject<{
331
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
331
332
  name: z.ZodString;
332
333
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
- isPrimary: z.ZodDefault<z.ZodBoolean>;
335
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
336
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
337
334
  role: z.ZodDefault<z.ZodEnum<{
338
- other: "other";
339
335
  primary: "primary";
336
+ other: "other";
340
337
  legal: "legal";
341
338
  general: "general";
342
339
  reservations: "reservations";
@@ -346,6 +343,9 @@ export declare const insertNamedContactForEntitySchema: z.ZodObject<{
346
343
  emergency: "emergency";
347
344
  accounting: "accounting";
348
345
  }>>;
346
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
349
349
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
350
  }, z.core.$strip>;
351
351
  export declare const namedContactListQuerySchema: z.ZodObject<{
@@ -354,8 +354,8 @@ export declare const namedContactListQuerySchema: z.ZodObject<{
354
354
  entityType: z.ZodOptional<z.ZodString>;
355
355
  entityId: z.ZodOptional<z.ZodString>;
356
356
  role: z.ZodOptional<z.ZodEnum<{
357
- other: "other";
358
357
  primary: "primary";
358
+ other: "other";
359
359
  legal: "legal";
360
360
  general: "general";
361
361
  reservations: "reservations";
@@ -377,8 +377,8 @@ export declare const selectNamedContactSchema: z.ZodObject<{
377
377
  entityType: z.ZodString;
378
378
  entityId: z.ZodString;
379
379
  role: z.ZodDefault<z.ZodEnum<{
380
- other: "other";
381
380
  primary: "primary";
381
+ other: "other";
382
382
  legal: "legal";
383
383
  general: "general";
384
384
  reservations: "reservations";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/identity",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,9 +29,9 @@
29
29
  "drizzle-orm": "^0.45.2",
30
30
  "hono": "^4.12.10",
31
31
  "zod": "^4.3.6",
32
- "@voyantjs/core": "0.5.0",
33
- "@voyantjs/db": "0.5.0",
34
- "@voyantjs/hono": "0.5.0"
32
+ "@voyantjs/core": "0.6.0",
33
+ "@voyantjs/db": "0.6.0",
34
+ "@voyantjs/hono": "0.6.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^6.0.2",