@voyantjs/crm 0.81.7 → 0.81.8

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.
@@ -1625,11 +1625,12 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
1625
1625
  dateOfBirth: string | null;
1626
1626
  dietaryRequirements: string | null;
1627
1627
  accessibilityNeeds: string | null;
1628
- passportNumber: string | null;
1629
- passportExpiry: string | null;
1630
- passportIssuingCountry: string | null;
1631
- passportIssuingAuthority: string | null;
1632
- passportPersonDocumentId: string | null;
1628
+ documentType: import("../index.js").PersonDocumentType | null;
1629
+ documentNumber: string | null;
1630
+ documentExpiry: string | null;
1631
+ documentIssuingCountry: string | null;
1632
+ documentIssuingAuthority: string | null;
1633
+ documentPersonDocumentId: string | null;
1633
1634
  };
1634
1635
  };
1635
1636
  outputFormat: "json";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAajE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASU,CAAA;AAEhC,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAA"}
@@ -290,11 +290,12 @@ export declare const personDocumentRoutes: import("hono/hono-base").HonoBase<Env
290
290
  dateOfBirth: string | null;
291
291
  dietaryRequirements: string | null;
292
292
  accessibilityNeeds: string | null;
293
- passportNumber: string | null;
294
- passportExpiry: string | null;
295
- passportIssuingCountry: string | null;
296
- passportIssuingAuthority: string | null;
297
- passportPersonDocumentId: string | null;
293
+ documentType: import("../index.js").PersonDocumentType | null;
294
+ documentNumber: string | null;
295
+ documentExpiry: string | null;
296
+ documentIssuingCountry: string | null;
297
+ documentIssuingAuthority: string | null;
298
+ documentPersonDocumentId: string | null;
298
299
  };
299
300
  };
300
301
  outputFormat: "json";
@@ -1 +1 @@
1
- {"version":3,"file":"person-documents.d.ts","sourceRoot":"","sources":["../../src/routes/person-documents.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAIrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAsBjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,SAAS,CAAC,EAAE,eAAe,CAAA;QAC3B,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA3Bn9N,CAAA;AAED,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,mCAAmC,EACnC,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA"}
@@ -28,11 +28,12 @@ export interface PersonTravelSnapshot {
28
28
  dateOfBirth: string | null;
29
29
  dietaryRequirements: string | null;
30
30
  accessibilityNeeds: string | null;
31
- passportNumber: string | null;
32
- passportExpiry: string | null;
33
- passportIssuingCountry: string | null;
34
- passportIssuingAuthority: string | null;
35
- passportPersonDocumentId: string | null;
31
+ documentType: PersonDocumentType | null;
32
+ documentNumber: string | null;
33
+ documentExpiry: string | null;
34
+ documentIssuingCountry: string | null;
35
+ documentIssuingAuthority: string | null;
36
+ documentPersonDocumentId: string | null;
36
37
  }
37
38
  export type CreatePersonDocumentInput = z.infer<typeof insertPersonDocumentSchema>;
38
39
  export type UpdatePersonDocumentInput = z.infer<typeof updatePersonDocumentSchema>;
@@ -584,8 +585,7 @@ export declare const personDocumentsService: {
584
585
  } | null>;
585
586
  /**
586
587
  * Returns the primary document of a given type for a person, or
587
- * `null` if no primary is set. Used by booking-traveler create to
588
- * snapshot the person's passport.
588
+ * `null` if no primary is set.
589
589
  */
590
590
  getPrimaryPersonDocument(db: PostgresJsDatabase, personId: string, type: PersonDocumentType): Promise<{
591
591
  id: string;
@@ -668,8 +668,8 @@ export declare const personDocumentsService: {
668
668
  } | null>;
669
669
  /**
670
670
  * Plaintext snapshot of the fields a booking-traveler creation
671
- * pulls from a person record: dietary, accessibility, primary
672
- * passport (number + expiry + country + authority + provenance id),
671
+ * pulls from a person record: dietary, accessibility, primary identity
672
+ * document (type + number + expiry + country + authority + provenance id),
673
673
  * and date-of-birth from `people.dateOfBirth`.
674
674
  *
675
675
  * Caller passes a KMS provider so decryption happens in-process.
@@ -1 +1 @@
1
- {"version":3,"file":"person-documents.d.ts","sourceRoot":"","sources":["../../src/service/person-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EACV,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,kBAAkB,CAAA;AAEzB;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;iBAAiC,CAAA;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;iBAAmC,CAAA;AAEnF,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAA;CACxC;AAED,MAAM,MAAM,yBAAyB,GAAG,CAA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M,WACP;QAAE,GAAG,EAAE,WAAW,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAC7C,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA8DvC;;;;OAIG;oCAC6B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBnD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { decryptOptionalJsonEnvelope } from "@voyantjs/utils";
2
- import { and, asc, eq, gte, isNotNull, lte, sql } from "drizzle-orm";
2
+ import { and, asc, desc, eq, gte, isNotNull, lte, sql } from "drizzle-orm";
3
3
  import { z } from "zod";
4
4
  import { people, personDocuments } from "../schema.js";
5
5
  /**
@@ -86,8 +86,7 @@ export const personDocumentsService = {
86
86
  },
87
87
  /**
88
88
  * Returns the primary document of a given type for a person, or
89
- * `null` if no primary is set. Used by booking-traveler create to
90
- * snapshot the person's passport.
89
+ * `null` if no primary is set.
91
90
  */
92
91
  async getPrimaryPersonDocument(db, personId, type) {
93
92
  const [row] = await db
@@ -170,8 +169,8 @@ export const personDocumentsService = {
170
169
  },
171
170
  /**
172
171
  * Plaintext snapshot of the fields a booking-traveler creation
173
- * pulls from a person record: dietary, accessibility, primary
174
- * passport (number + expiry + country + authority + provenance id),
172
+ * pulls from a person record: dietary, accessibility, primary identity
173
+ * document (type + number + expiry + country + authority + provenance id),
175
174
  * and date-of-birth from `people.dateOfBirth`.
176
175
  *
177
176
  * Caller passes a KMS provider so decryption happens in-process.
@@ -191,25 +190,33 @@ export const personDocumentsService = {
191
190
  if (!personRow)
192
191
  return null;
193
192
  const keyRef = options.keyRef ?? { keyType: "people" };
194
- const [accessibilityBlob, dietaryBlob, primaryPassport] = await Promise.all([
193
+ const primaryDocumentPromise = db
194
+ .select()
195
+ .from(personDocuments)
196
+ .where(and(eq(personDocuments.personId, personId), eq(personDocuments.isPrimary, true)))
197
+ .orderBy(desc(personDocuments.updatedAt))
198
+ .limit(1);
199
+ const [accessibilityBlob, dietaryBlob, primaryDocuments] = await Promise.all([
195
200
  decryptOptionalJsonEnvelope(options.kms, keyRef, personRow.accessibilityEncrypted, personPiiBlobPlaintextSchema),
196
201
  decryptOptionalJsonEnvelope(options.kms, keyRef, personRow.dietaryEncrypted, personPiiBlobPlaintextSchema),
197
- personDocumentsService.getPrimaryPersonDocument(db, personId, "passport"),
202
+ primaryDocumentPromise,
198
203
  ]);
199
- let passportNumber = null;
200
- if (primaryPassport?.numberEncrypted) {
201
- const decrypted = await decryptOptionalJsonEnvelope(options.kms, keyRef, primaryPassport.numberEncrypted, personDocumentNumberPlaintextSchema);
202
- passportNumber = decrypted?.number ?? null;
204
+ const primaryDocument = primaryDocuments[0] ?? null;
205
+ let documentNumber = null;
206
+ if (primaryDocument?.numberEncrypted) {
207
+ const decrypted = await decryptOptionalJsonEnvelope(options.kms, keyRef, primaryDocument.numberEncrypted, personDocumentNumberPlaintextSchema);
208
+ documentNumber = decrypted?.number ?? null;
203
209
  }
204
210
  return {
205
211
  dateOfBirth: personRow.dateOfBirth ?? null,
206
212
  dietaryRequirements: dietaryBlob?.text ?? null,
207
213
  accessibilityNeeds: accessibilityBlob?.text ?? null,
208
- passportNumber,
209
- passportExpiry: primaryPassport?.expiryDate ?? null,
210
- passportIssuingCountry: primaryPassport?.issuingCountry ?? null,
211
- passportIssuingAuthority: primaryPassport?.issuingAuthority ?? null,
212
- passportPersonDocumentId: primaryPassport?.id ?? null,
214
+ documentType: primaryDocument?.type ?? null,
215
+ documentNumber,
216
+ documentExpiry: primaryDocument?.expiryDate ?? null,
217
+ documentIssuingCountry: primaryDocument?.issuingCountry ?? null,
218
+ documentIssuingAuthority: primaryDocument?.issuingAuthority ?? null,
219
+ documentPersonDocumentId: primaryDocument?.id ?? null,
213
220
  };
214
221
  },
215
222
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/crm",
3
- "version": "0.81.7",
3
+ "version": "0.81.8",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,12 +39,12 @@
39
39
  "drizzle-orm": "^0.45.2",
40
40
  "hono": "^4.12.10",
41
41
  "zod": "^4.3.6",
42
- "@voyantjs/action-ledger": "0.81.7",
43
- "@voyantjs/core": "0.81.7",
44
- "@voyantjs/db": "0.81.7",
45
- "@voyantjs/hono": "0.81.7",
46
- "@voyantjs/identity": "0.81.7",
47
- "@voyantjs/utils": "0.81.7"
42
+ "@voyantjs/action-ledger": "0.81.8",
43
+ "@voyantjs/core": "0.81.8",
44
+ "@voyantjs/db": "0.81.8",
45
+ "@voyantjs/hono": "0.81.8",
46
+ "@voyantjs/identity": "0.81.8",
47
+ "@voyantjs/utils": "0.81.8"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "^6.0.2",