@voyantjs/crm 0.52.0 → 0.52.2
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/accounts.d.ts +4 -4
- package/dist/routes/index.d.ts +4 -4
- package/dist/schema-accounts.d.ts +2 -2
- package/dist/schema-accounts.js +1 -1
- package/dist/service/accounts-people.d.ts +4 -4
- package/dist/service/accounts-shared.d.ts +1 -1
- package/dist/service/accounts-shared.js +1 -1
- package/dist/service/accounts.d.ts +4 -4
- package/dist/service/index.d.ts +4 -4
- package/dist/service/index.d.ts.map +1 -1
- package/dist/service/person-documents.d.ts +1 -1
- package/dist/service/person-documents.js +3 -3
- package/dist/validation.d.ts +3 -3
- package/dist/validation.js +1 -1
- package/package.json +6 -6
|
@@ -454,7 +454,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
454
454
|
source: string | null;
|
|
455
455
|
sourceRef: string | null;
|
|
456
456
|
tags: string[];
|
|
457
|
-
|
|
457
|
+
dateOfBirth: string | null;
|
|
458
458
|
notes: string | null;
|
|
459
459
|
accessibilityEncrypted: {
|
|
460
460
|
enc: string;
|
|
@@ -504,7 +504,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
504
504
|
source: string | null;
|
|
505
505
|
sourceRef: string | null;
|
|
506
506
|
tags: string[];
|
|
507
|
-
|
|
507
|
+
dateOfBirth: string | null;
|
|
508
508
|
notes: string | null;
|
|
509
509
|
accessibilityEncrypted: {
|
|
510
510
|
enc: string;
|
|
@@ -566,7 +566,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
566
566
|
source: string | null;
|
|
567
567
|
sourceRef: string | null;
|
|
568
568
|
tags: string[];
|
|
569
|
-
|
|
569
|
+
dateOfBirth: string | null;
|
|
570
570
|
notes: string | null;
|
|
571
571
|
accessibilityEncrypted: {
|
|
572
572
|
enc: string;
|
|
@@ -628,7 +628,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
628
628
|
source: string | null;
|
|
629
629
|
sourceRef: string | null;
|
|
630
630
|
tags: string[];
|
|
631
|
-
|
|
631
|
+
dateOfBirth: string | null;
|
|
632
632
|
notes: string | null;
|
|
633
633
|
accessibilityEncrypted: {
|
|
634
634
|
enc: string;
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -454,7 +454,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
454
454
|
source: string | null;
|
|
455
455
|
sourceRef: string | null;
|
|
456
456
|
tags: string[];
|
|
457
|
-
|
|
457
|
+
dateOfBirth: string | null;
|
|
458
458
|
notes: string | null;
|
|
459
459
|
accessibilityEncrypted: {
|
|
460
460
|
enc: string;
|
|
@@ -504,7 +504,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
504
504
|
source: string | null;
|
|
505
505
|
sourceRef: string | null;
|
|
506
506
|
tags: string[];
|
|
507
|
-
|
|
507
|
+
dateOfBirth: string | null;
|
|
508
508
|
notes: string | null;
|
|
509
509
|
accessibilityEncrypted: {
|
|
510
510
|
enc: string;
|
|
@@ -566,7 +566,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
566
566
|
source: string | null;
|
|
567
567
|
sourceRef: string | null;
|
|
568
568
|
tags: string[];
|
|
569
|
-
|
|
569
|
+
dateOfBirth: string | null;
|
|
570
570
|
notes: string | null;
|
|
571
571
|
accessibilityEncrypted: {
|
|
572
572
|
enc: string;
|
|
@@ -628,7 +628,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
628
628
|
source: string | null;
|
|
629
629
|
sourceRef: string | null;
|
|
630
630
|
tags: string[];
|
|
631
|
-
|
|
631
|
+
dateOfBirth: string | null;
|
|
632
632
|
notes: string | null;
|
|
633
633
|
accessibilityEncrypted: {
|
|
634
634
|
enc: string;
|
|
@@ -606,8 +606,8 @@ export declare const people: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
606
606
|
}, {}, {
|
|
607
607
|
$type: string[];
|
|
608
608
|
}>;
|
|
609
|
-
|
|
610
|
-
name: "
|
|
609
|
+
dateOfBirth: import("drizzle-orm/pg-core").PgColumn<{
|
|
610
|
+
name: "date_of_birth";
|
|
611
611
|
tableName: "people";
|
|
612
612
|
dataType: "string";
|
|
613
613
|
columnType: "PgDateString";
|
package/dist/schema-accounts.js
CHANGED
|
@@ -83,7 +83,7 @@ export const people = pgTable("people", {
|
|
|
83
83
|
source: text("source"),
|
|
84
84
|
sourceRef: text("source_ref"),
|
|
85
85
|
tags: jsonb("tags").$type().notNull().default([]),
|
|
86
|
-
|
|
86
|
+
dateOfBirth: date("date_of_birth"),
|
|
87
87
|
notes: text("notes"),
|
|
88
88
|
/**
|
|
89
89
|
* Encrypted PII slots — canonical store for person-level travel
|
|
@@ -19,7 +19,7 @@ export declare const peopleAccountsService: {
|
|
|
19
19
|
source: string | null;
|
|
20
20
|
sourceRef: string | null;
|
|
21
21
|
tags: string[];
|
|
22
|
-
|
|
22
|
+
dateOfBirth: string | null;
|
|
23
23
|
notes: string | null;
|
|
24
24
|
accessibilityEncrypted: {
|
|
25
25
|
enc: string;
|
|
@@ -57,7 +57,7 @@ export declare const peopleAccountsService: {
|
|
|
57
57
|
source: string | null;
|
|
58
58
|
sourceRef: string | null;
|
|
59
59
|
tags: string[];
|
|
60
|
-
|
|
60
|
+
dateOfBirth: string | null;
|
|
61
61
|
notes: string | null;
|
|
62
62
|
accessibilityEncrypted: {
|
|
63
63
|
enc: string;
|
|
@@ -91,7 +91,7 @@ export declare const peopleAccountsService: {
|
|
|
91
91
|
source: string | null;
|
|
92
92
|
sourceRef: string | null;
|
|
93
93
|
tags: string[];
|
|
94
|
-
|
|
94
|
+
dateOfBirth: string | null;
|
|
95
95
|
notes: string | null;
|
|
96
96
|
accessibilityEncrypted: {
|
|
97
97
|
enc: string;
|
|
@@ -125,7 +125,7 @@ export declare const peopleAccountsService: {
|
|
|
125
125
|
source: string | null;
|
|
126
126
|
sourceRef: string | null;
|
|
127
127
|
tags: string[];
|
|
128
|
-
|
|
128
|
+
dateOfBirth: string | null;
|
|
129
129
|
notes: string | null;
|
|
130
130
|
accessibilityEncrypted: {
|
|
131
131
|
enc: string;
|
|
@@ -41,7 +41,7 @@ export declare function personBaseFields(data: CreatePersonInput | UpdatePersonI
|
|
|
41
41
|
source: string | null | undefined;
|
|
42
42
|
sourceRef: string | null | undefined;
|
|
43
43
|
tags: string[] | undefined;
|
|
44
|
-
|
|
44
|
+
dateOfBirth: string | null | undefined;
|
|
45
45
|
notes: string | null | undefined;
|
|
46
46
|
accessibilityEncrypted: {
|
|
47
47
|
enc: string;
|
|
@@ -28,7 +28,7 @@ export function personBaseFields(data) {
|
|
|
28
28
|
source: data.source,
|
|
29
29
|
sourceRef: data.sourceRef,
|
|
30
30
|
tags: data.tags,
|
|
31
|
-
|
|
31
|
+
dateOfBirth: data.dateOfBirth,
|
|
32
32
|
notes: data.notes,
|
|
33
33
|
accessibilityEncrypted: data.accessibilityEncrypted,
|
|
34
34
|
dietaryEncrypted: data.dietaryEncrypted,
|
|
@@ -16,7 +16,7 @@ export declare const accountsService: {
|
|
|
16
16
|
source: string | null;
|
|
17
17
|
sourceRef: string | null;
|
|
18
18
|
tags: string[];
|
|
19
|
-
|
|
19
|
+
dateOfBirth: string | null;
|
|
20
20
|
notes: string | null;
|
|
21
21
|
accessibilityEncrypted: {
|
|
22
22
|
enc: string;
|
|
@@ -54,7 +54,7 @@ export declare const accountsService: {
|
|
|
54
54
|
source: string | null;
|
|
55
55
|
sourceRef: string | null;
|
|
56
56
|
tags: string[];
|
|
57
|
-
|
|
57
|
+
dateOfBirth: string | null;
|
|
58
58
|
notes: string | null;
|
|
59
59
|
accessibilityEncrypted: {
|
|
60
60
|
enc: string;
|
|
@@ -88,7 +88,7 @@ export declare const accountsService: {
|
|
|
88
88
|
source: string | null;
|
|
89
89
|
sourceRef: string | null;
|
|
90
90
|
tags: string[];
|
|
91
|
-
|
|
91
|
+
dateOfBirth: string | null;
|
|
92
92
|
notes: string | null;
|
|
93
93
|
accessibilityEncrypted: {
|
|
94
94
|
enc: string;
|
|
@@ -122,7 +122,7 @@ export declare const accountsService: {
|
|
|
122
122
|
source: string | null;
|
|
123
123
|
sourceRef: string | null;
|
|
124
124
|
tags: string[];
|
|
125
|
-
|
|
125
|
+
dateOfBirth: string | null;
|
|
126
126
|
notes: string | null;
|
|
127
127
|
accessibilityEncrypted: {
|
|
128
128
|
enc: string;
|
package/dist/service/index.d.ts
CHANGED
|
@@ -4504,7 +4504,7 @@ export declare const crmService: {
|
|
|
4504
4504
|
source: string | null;
|
|
4505
4505
|
sourceRef: string | null;
|
|
4506
4506
|
tags: string[];
|
|
4507
|
-
|
|
4507
|
+
dateOfBirth: string | null;
|
|
4508
4508
|
notes: string | null;
|
|
4509
4509
|
accessibilityEncrypted: {
|
|
4510
4510
|
enc: string;
|
|
@@ -4542,7 +4542,7 @@ export declare const crmService: {
|
|
|
4542
4542
|
source: string | null;
|
|
4543
4543
|
sourceRef: string | null;
|
|
4544
4544
|
tags: string[];
|
|
4545
|
-
|
|
4545
|
+
dateOfBirth: string | null;
|
|
4546
4546
|
notes: string | null;
|
|
4547
4547
|
accessibilityEncrypted: {
|
|
4548
4548
|
enc: string;
|
|
@@ -4576,7 +4576,7 @@ export declare const crmService: {
|
|
|
4576
4576
|
source: string | null;
|
|
4577
4577
|
sourceRef: string | null;
|
|
4578
4578
|
tags: string[];
|
|
4579
|
-
|
|
4579
|
+
dateOfBirth: string | null;
|
|
4580
4580
|
notes: string | null;
|
|
4581
4581
|
accessibilityEncrypted: {
|
|
4582
4582
|
enc: string;
|
|
@@ -4610,7 +4610,7 @@ export declare const crmService: {
|
|
|
4610
4610
|
source: string | null;
|
|
4611
4611
|
sourceRef: string | null;
|
|
4612
4612
|
tags: string[];
|
|
4613
|
-
|
|
4613
|
+
dateOfBirth: string | null;
|
|
4614
4614
|
notes: string | null;
|
|
4615
4615
|
accessibilityEncrypted: {
|
|
4616
4616
|
enc: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAA4B,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"}
|
|
@@ -657,7 +657,7 @@ export declare const personDocumentsService: {
|
|
|
657
657
|
* Plaintext snapshot of the fields a booking-traveler creation
|
|
658
658
|
* pulls from a person record: dietary, accessibility, primary
|
|
659
659
|
* passport (number + expiry + country + authority + provenance id),
|
|
660
|
-
* and date-of-birth from `people.
|
|
660
|
+
* and date-of-birth from `people.dateOfBirth`.
|
|
661
661
|
*
|
|
662
662
|
* Caller passes a KMS provider so decryption happens in-process.
|
|
663
663
|
* Missing person → returns null. Missing document or blob → that
|
|
@@ -156,7 +156,7 @@ export const personDocumentsService = {
|
|
|
156
156
|
* Plaintext snapshot of the fields a booking-traveler creation
|
|
157
157
|
* pulls from a person record: dietary, accessibility, primary
|
|
158
158
|
* passport (number + expiry + country + authority + provenance id),
|
|
159
|
-
* and date-of-birth from `people.
|
|
159
|
+
* and date-of-birth from `people.dateOfBirth`.
|
|
160
160
|
*
|
|
161
161
|
* Caller passes a KMS provider so decryption happens in-process.
|
|
162
162
|
* Missing person → returns null. Missing document or blob → that
|
|
@@ -165,7 +165,7 @@ export const personDocumentsService = {
|
|
|
165
165
|
async loadPersonTravelSnapshot(db, personId, options) {
|
|
166
166
|
const [personRow] = await db
|
|
167
167
|
.select({
|
|
168
|
-
|
|
168
|
+
dateOfBirth: people.dateOfBirth,
|
|
169
169
|
accessibilityEncrypted: people.accessibilityEncrypted,
|
|
170
170
|
dietaryEncrypted: people.dietaryEncrypted,
|
|
171
171
|
})
|
|
@@ -186,7 +186,7 @@ export const personDocumentsService = {
|
|
|
186
186
|
passportNumber = decrypted?.number ?? null;
|
|
187
187
|
}
|
|
188
188
|
return {
|
|
189
|
-
dateOfBirth: personRow.
|
|
189
|
+
dateOfBirth: personRow.dateOfBirth ?? null,
|
|
190
190
|
dietaryRequirements: dietaryBlob?.text ?? null,
|
|
191
191
|
accessibilityNeeds: accessibilityBlob?.text ?? null,
|
|
192
192
|
passportNumber,
|
package/dist/validation.d.ts
CHANGED
|
@@ -227,7 +227,7 @@ export declare const personCoreSchema: z.ZodObject<{
|
|
|
227
227
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
228
|
sourceRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
229
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
230
|
-
|
|
230
|
+
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
231
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
232
|
accessibilityEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
233
233
|
enc: z.ZodString;
|
|
@@ -273,7 +273,7 @@ export declare const insertPersonSchema: z.ZodObject<{
|
|
|
273
273
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
274
|
sourceRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
275
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
276
|
-
|
|
276
|
+
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
277
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
278
|
accessibilityEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
279
279
|
enc: z.ZodString;
|
|
@@ -319,7 +319,7 @@ export declare const updatePersonSchema: z.ZodObject<{
|
|
|
319
319
|
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
320
320
|
sourceRef: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
321
321
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
322
|
-
|
|
322
|
+
dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
323
323
|
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
324
324
|
accessibilityEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
325
325
|
enc: z.ZodString;
|
package/dist/validation.js
CHANGED
|
@@ -111,7 +111,7 @@ export const personCoreSchema = z.object({
|
|
|
111
111
|
source: z.string().nullable().optional(),
|
|
112
112
|
sourceRef: z.string().nullable().optional(),
|
|
113
113
|
tags: z.array(z.string()).default([]),
|
|
114
|
-
|
|
114
|
+
dateOfBirth: z.string().date().nullable().optional(),
|
|
115
115
|
notes: z.string().nullable().optional(),
|
|
116
116
|
// Encrypted PII slots (canonical store; documents live in person_documents).
|
|
117
117
|
// `z.lazy(() => …)` defers cross-package schema dereferencing until
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/crm",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"drizzle-orm": "^0.45.2",
|
|
40
40
|
"hono": "^4.12.10",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@voyantjs/core": "0.52.
|
|
43
|
-
"@voyantjs/db": "0.52.
|
|
44
|
-
"@voyantjs/hono": "0.52.
|
|
45
|
-
"@voyantjs/identity": "0.52.
|
|
46
|
-
"@voyantjs/utils": "0.52.
|
|
42
|
+
"@voyantjs/core": "0.52.2",
|
|
43
|
+
"@voyantjs/db": "0.52.2",
|
|
44
|
+
"@voyantjs/hono": "0.52.2",
|
|
45
|
+
"@voyantjs/identity": "0.52.2",
|
|
46
|
+
"@voyantjs/utils": "0.52.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^6.0.2",
|