@voyantjs/crm 0.25.0 → 0.26.1

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.
Files changed (40) hide show
  1. package/dist/index.d.ts +18 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +25 -6
  4. package/dist/route-runtime.d.ts +21 -0
  5. package/dist/route-runtime.d.ts.map +1 -0
  6. package/dist/route-runtime.js +28 -0
  7. package/dist/routes/accounts.d.ts +50 -2
  8. package/dist/routes/accounts.d.ts.map +1 -1
  9. package/dist/routes/index.d.ts +496 -2
  10. package/dist/routes/index.d.ts.map +1 -1
  11. package/dist/routes/index.js +2 -0
  12. package/dist/routes/person-documents.d.ts +458 -0
  13. package/dist/routes/person-documents.d.ts.map +1 -0
  14. package/dist/routes/person-documents.js +160 -0
  15. package/dist/schema-accounts.d.ts +367 -0
  16. package/dist/schema-accounts.d.ts.map +1 -1
  17. package/dist/schema-accounts.js +68 -2
  18. package/dist/schema-activities.js +2 -2
  19. package/dist/schema-relations.js +3 -3
  20. package/dist/schema-sales.js +2 -2
  21. package/dist/schema.d.ts +6 -6
  22. package/dist/schema.d.ts.map +1 -1
  23. package/dist/schema.js +6 -6
  24. package/dist/service/accounts-people.d.ts +49 -1
  25. package/dist/service/accounts-people.d.ts.map +1 -1
  26. package/dist/service/accounts-shared.d.ts +12 -0
  27. package/dist/service/accounts-shared.d.ts.map +1 -1
  28. package/dist/service/accounts-shared.js +4 -0
  29. package/dist/service/accounts.d.ts +49 -1
  30. package/dist/service/accounts.d.ts.map +1 -1
  31. package/dist/service/index.d.ts +1172 -1
  32. package/dist/service/index.d.ts.map +1 -1
  33. package/dist/service/index.js +3 -0
  34. package/dist/service/person-documents.d.ts +1188 -0
  35. package/dist/service/person-documents.d.ts.map +1 -0
  36. package/dist/service/person-documents.js +216 -0
  37. package/dist/validation.d.ts +168 -0
  38. package/dist/validation.d.ts.map +1 -1
  39. package/dist/validation.js +68 -0
  40. package/package.json +6 -5
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Identity-document types stored on `person_documents`. Open-ended via
3
+ * "other" so we don't force a schema migration for every regional
4
+ * variant; the structured fields cover the international shape.
5
+ */
6
+ export declare const personDocumentTypeEnum: import("drizzle-orm/pg-core").PgEnum<["passport", "id_card", "driver_license", "visa", "other"]>;
1
7
  export declare const organizations: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
8
  name: "organizations";
3
9
  schema: undefined;
@@ -625,6 +631,98 @@ export declare const people: import("drizzle-orm/pg-core").PgTableWithColumns<{
625
631
  identity: undefined;
626
632
  generated: undefined;
627
633
  }, {}, {}>;
634
+ accessibilityEncrypted: import("drizzle-orm/pg-core").PgColumn<{
635
+ name: "accessibility_encrypted";
636
+ tableName: "people";
637
+ dataType: "json";
638
+ columnType: "PgJsonb";
639
+ data: {
640
+ enc: string;
641
+ } | null;
642
+ driverParam: unknown;
643
+ notNull: false;
644
+ hasDefault: false;
645
+ isPrimaryKey: false;
646
+ isAutoincrement: false;
647
+ hasRuntimeDefault: false;
648
+ enumValues: undefined;
649
+ baseColumn: never;
650
+ identity: undefined;
651
+ generated: undefined;
652
+ }, {}, {
653
+ $type: {
654
+ enc: string;
655
+ } | null;
656
+ }>;
657
+ dietaryEncrypted: import("drizzle-orm/pg-core").PgColumn<{
658
+ name: "dietary_encrypted";
659
+ tableName: "people";
660
+ dataType: "json";
661
+ columnType: "PgJsonb";
662
+ data: {
663
+ enc: string;
664
+ } | null;
665
+ driverParam: unknown;
666
+ notNull: false;
667
+ hasDefault: false;
668
+ isPrimaryKey: false;
669
+ isAutoincrement: false;
670
+ hasRuntimeDefault: false;
671
+ enumValues: undefined;
672
+ baseColumn: never;
673
+ identity: undefined;
674
+ generated: undefined;
675
+ }, {}, {
676
+ $type: {
677
+ enc: string;
678
+ } | null;
679
+ }>;
680
+ loyaltyEncrypted: import("drizzle-orm/pg-core").PgColumn<{
681
+ name: "loyalty_encrypted";
682
+ tableName: "people";
683
+ dataType: "json";
684
+ columnType: "PgJsonb";
685
+ data: {
686
+ enc: string;
687
+ } | null;
688
+ driverParam: unknown;
689
+ notNull: false;
690
+ hasDefault: false;
691
+ isPrimaryKey: false;
692
+ isAutoincrement: false;
693
+ hasRuntimeDefault: false;
694
+ enumValues: undefined;
695
+ baseColumn: never;
696
+ identity: undefined;
697
+ generated: undefined;
698
+ }, {}, {
699
+ $type: {
700
+ enc: string;
701
+ } | null;
702
+ }>;
703
+ insuranceEncrypted: import("drizzle-orm/pg-core").PgColumn<{
704
+ name: "insurance_encrypted";
705
+ tableName: "people";
706
+ dataType: "json";
707
+ columnType: "PgJsonb";
708
+ data: {
709
+ enc: string;
710
+ } | null;
711
+ driverParam: unknown;
712
+ notNull: false;
713
+ hasDefault: false;
714
+ isPrimaryKey: false;
715
+ isAutoincrement: false;
716
+ hasRuntimeDefault: false;
717
+ enumValues: undefined;
718
+ baseColumn: never;
719
+ identity: undefined;
720
+ generated: undefined;
721
+ }, {}, {
722
+ $type: {
723
+ enc: string;
724
+ } | null;
725
+ }>;
628
726
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
629
727
  name: "created_at";
630
728
  tableName: "people";
@@ -865,6 +963,275 @@ export declare const personNotes: import("drizzle-orm/pg-core").PgTableWithColum
865
963
  }>;
866
964
  export type PersonNote = typeof personNotes.$inferSelect;
867
965
  export type NewPersonNote = typeof personNotes.$inferInsert;
966
+ /**
967
+ * Structured identity documents owned by a person. Replaces the
968
+ * single `documentsEncrypted` blob shape with a row per document so
969
+ * we can track type / expiry / issuing authority / attachment + run
970
+ * "expiring soon" sweeps without parsing JSON.
971
+ *
972
+ * `numberEncrypted` is the only field encrypted at rest — the rest
973
+ * is non-toxic identity metadata. `attachmentId` is a free-form key
974
+ * (typically an object-storage path) until a general media table
975
+ * exists; FK is intentionally deferred.
976
+ *
977
+ * Booking-traveler rows snapshot the primary passport at create time;
978
+ * this table remains the source of truth for next-trip pre-fill.
979
+ */
980
+ export declare const personDocuments: import("drizzle-orm/pg-core").PgTableWithColumns<{
981
+ name: "person_documents";
982
+ schema: undefined;
983
+ columns: {
984
+ id: import("drizzle-orm/pg-core").PgColumn<{
985
+ name: string;
986
+ tableName: "person_documents";
987
+ dataType: "string";
988
+ columnType: "PgText";
989
+ data: string;
990
+ driverParam: string;
991
+ notNull: true;
992
+ hasDefault: true;
993
+ isPrimaryKey: true;
994
+ isAutoincrement: false;
995
+ hasRuntimeDefault: true;
996
+ enumValues: [string, ...string[]];
997
+ baseColumn: never;
998
+ identity: undefined;
999
+ generated: undefined;
1000
+ }, {}, {}>;
1001
+ personId: import("drizzle-orm/pg-core").PgColumn<{
1002
+ name: string;
1003
+ tableName: "person_documents";
1004
+ dataType: "string";
1005
+ columnType: "PgText";
1006
+ data: string;
1007
+ driverParam: string;
1008
+ notNull: true;
1009
+ hasDefault: false;
1010
+ isPrimaryKey: false;
1011
+ isAutoincrement: false;
1012
+ hasRuntimeDefault: false;
1013
+ enumValues: [string, ...string[]];
1014
+ baseColumn: never;
1015
+ identity: undefined;
1016
+ generated: undefined;
1017
+ }, {}, {}>;
1018
+ type: import("drizzle-orm/pg-core").PgColumn<{
1019
+ name: "type";
1020
+ tableName: "person_documents";
1021
+ dataType: "string";
1022
+ columnType: "PgEnumColumn";
1023
+ data: "passport" | "visa" | "other" | "id_card" | "driver_license";
1024
+ driverParam: string;
1025
+ notNull: true;
1026
+ hasDefault: false;
1027
+ isPrimaryKey: false;
1028
+ isAutoincrement: false;
1029
+ hasRuntimeDefault: false;
1030
+ enumValues: ["passport", "id_card", "driver_license", "visa", "other"];
1031
+ baseColumn: never;
1032
+ identity: undefined;
1033
+ generated: undefined;
1034
+ }, {}, {}>;
1035
+ numberEncrypted: import("drizzle-orm/pg-core").PgColumn<{
1036
+ name: "number_encrypted";
1037
+ tableName: "person_documents";
1038
+ dataType: "json";
1039
+ columnType: "PgJsonb";
1040
+ data: {
1041
+ enc: string;
1042
+ } | null;
1043
+ driverParam: unknown;
1044
+ notNull: false;
1045
+ hasDefault: false;
1046
+ isPrimaryKey: false;
1047
+ isAutoincrement: false;
1048
+ hasRuntimeDefault: false;
1049
+ enumValues: undefined;
1050
+ baseColumn: never;
1051
+ identity: undefined;
1052
+ generated: undefined;
1053
+ }, {}, {
1054
+ $type: {
1055
+ enc: string;
1056
+ } | null;
1057
+ }>;
1058
+ issuingAuthority: import("drizzle-orm/pg-core").PgColumn<{
1059
+ name: "issuing_authority";
1060
+ tableName: "person_documents";
1061
+ dataType: "string";
1062
+ columnType: "PgText";
1063
+ data: string;
1064
+ driverParam: string;
1065
+ notNull: false;
1066
+ hasDefault: false;
1067
+ isPrimaryKey: false;
1068
+ isAutoincrement: false;
1069
+ hasRuntimeDefault: false;
1070
+ enumValues: [string, ...string[]];
1071
+ baseColumn: never;
1072
+ identity: undefined;
1073
+ generated: undefined;
1074
+ }, {}, {}>;
1075
+ issuingCountry: import("drizzle-orm/pg-core").PgColumn<{
1076
+ name: "issuing_country";
1077
+ tableName: "person_documents";
1078
+ dataType: "string";
1079
+ columnType: "PgText";
1080
+ data: string;
1081
+ driverParam: string;
1082
+ notNull: false;
1083
+ hasDefault: false;
1084
+ isPrimaryKey: false;
1085
+ isAutoincrement: false;
1086
+ hasRuntimeDefault: false;
1087
+ enumValues: [string, ...string[]];
1088
+ baseColumn: never;
1089
+ identity: undefined;
1090
+ generated: undefined;
1091
+ }, {}, {}>;
1092
+ issueDate: import("drizzle-orm/pg-core").PgColumn<{
1093
+ name: "issue_date";
1094
+ tableName: "person_documents";
1095
+ dataType: "string";
1096
+ columnType: "PgDateString";
1097
+ data: string;
1098
+ driverParam: string;
1099
+ notNull: false;
1100
+ hasDefault: false;
1101
+ isPrimaryKey: false;
1102
+ isAutoincrement: false;
1103
+ hasRuntimeDefault: false;
1104
+ enumValues: undefined;
1105
+ baseColumn: never;
1106
+ identity: undefined;
1107
+ generated: undefined;
1108
+ }, {}, {}>;
1109
+ expiryDate: import("drizzle-orm/pg-core").PgColumn<{
1110
+ name: "expiry_date";
1111
+ tableName: "person_documents";
1112
+ dataType: "string";
1113
+ columnType: "PgDateString";
1114
+ data: string;
1115
+ driverParam: string;
1116
+ notNull: false;
1117
+ hasDefault: false;
1118
+ isPrimaryKey: false;
1119
+ isAutoincrement: false;
1120
+ hasRuntimeDefault: false;
1121
+ enumValues: undefined;
1122
+ baseColumn: never;
1123
+ identity: undefined;
1124
+ generated: undefined;
1125
+ }, {}, {}>;
1126
+ attachmentId: import("drizzle-orm/pg-core").PgColumn<{
1127
+ name: "attachment_id";
1128
+ tableName: "person_documents";
1129
+ dataType: "string";
1130
+ columnType: "PgText";
1131
+ data: string;
1132
+ driverParam: string;
1133
+ notNull: false;
1134
+ hasDefault: false;
1135
+ isPrimaryKey: false;
1136
+ isAutoincrement: false;
1137
+ hasRuntimeDefault: false;
1138
+ enumValues: [string, ...string[]];
1139
+ baseColumn: never;
1140
+ identity: undefined;
1141
+ generated: undefined;
1142
+ }, {}, {}>;
1143
+ isPrimary: import("drizzle-orm/pg-core").PgColumn<{
1144
+ name: "is_primary";
1145
+ tableName: "person_documents";
1146
+ dataType: "boolean";
1147
+ columnType: "PgBoolean";
1148
+ data: boolean;
1149
+ driverParam: boolean;
1150
+ notNull: true;
1151
+ hasDefault: true;
1152
+ isPrimaryKey: false;
1153
+ isAutoincrement: false;
1154
+ hasRuntimeDefault: false;
1155
+ enumValues: undefined;
1156
+ baseColumn: never;
1157
+ identity: undefined;
1158
+ generated: undefined;
1159
+ }, {}, {}>;
1160
+ notes: import("drizzle-orm/pg-core").PgColumn<{
1161
+ name: "notes";
1162
+ tableName: "person_documents";
1163
+ dataType: "string";
1164
+ columnType: "PgText";
1165
+ data: string;
1166
+ driverParam: string;
1167
+ notNull: false;
1168
+ hasDefault: false;
1169
+ isPrimaryKey: false;
1170
+ isAutoincrement: false;
1171
+ hasRuntimeDefault: false;
1172
+ enumValues: [string, ...string[]];
1173
+ baseColumn: never;
1174
+ identity: undefined;
1175
+ generated: undefined;
1176
+ }, {}, {}>;
1177
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
1178
+ name: "metadata";
1179
+ tableName: "person_documents";
1180
+ dataType: "json";
1181
+ columnType: "PgJsonb";
1182
+ data: Record<string, unknown>;
1183
+ driverParam: unknown;
1184
+ notNull: false;
1185
+ hasDefault: false;
1186
+ isPrimaryKey: false;
1187
+ isAutoincrement: false;
1188
+ hasRuntimeDefault: false;
1189
+ enumValues: undefined;
1190
+ baseColumn: never;
1191
+ identity: undefined;
1192
+ generated: undefined;
1193
+ }, {}, {
1194
+ $type: Record<string, unknown>;
1195
+ }>;
1196
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1197
+ name: "created_at";
1198
+ tableName: "person_documents";
1199
+ dataType: "date";
1200
+ columnType: "PgTimestamp";
1201
+ data: Date;
1202
+ driverParam: string;
1203
+ notNull: true;
1204
+ hasDefault: true;
1205
+ isPrimaryKey: false;
1206
+ isAutoincrement: false;
1207
+ hasRuntimeDefault: false;
1208
+ enumValues: undefined;
1209
+ baseColumn: never;
1210
+ identity: undefined;
1211
+ generated: undefined;
1212
+ }, {}, {}>;
1213
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1214
+ name: "updated_at";
1215
+ tableName: "person_documents";
1216
+ dataType: "date";
1217
+ columnType: "PgTimestamp";
1218
+ data: Date;
1219
+ driverParam: string;
1220
+ notNull: true;
1221
+ hasDefault: true;
1222
+ isPrimaryKey: false;
1223
+ isAutoincrement: false;
1224
+ hasRuntimeDefault: false;
1225
+ enumValues: undefined;
1226
+ baseColumn: never;
1227
+ identity: undefined;
1228
+ generated: undefined;
1229
+ }, {}, {}>;
1230
+ };
1231
+ dialect: "pg";
1232
+ }>;
1233
+ export type PersonDocument = typeof personDocuments.$inferSelect;
1234
+ export type NewPersonDocument = typeof personDocuments.$inferInsert;
868
1235
  /**
869
1236
  * Saved payment methods on file for a person. Stores processor-issued
870
1237
  * tokens (never raw card numbers) so the booking flow can charge the
@@ -1 +1 @@
1
- {"version":3,"file":"schema-accounts.d.ts","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timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
3
- import { communicationChannelEnum, communicationDirectionEnum, recordStatusEnum, relationTypeEnum, } from "./schema-shared";
2
+ import { sql } from "drizzle-orm";
3
+ import { boolean, date, index, integer, jsonb, pgEnum, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
4
+ import { communicationChannelEnum, communicationDirectionEnum, recordStatusEnum, relationTypeEnum, } from "./schema-shared.js";
5
+ /**
6
+ * Identity-document types stored on `person_documents`. Open-ended via
7
+ * "other" so we don't force a schema migration for every regional
8
+ * variant; the structured fields cover the international shape.
9
+ */
10
+ export const personDocumentTypeEnum = pgEnum("person_document_type", [
11
+ "passport",
12
+ "id_card",
13
+ "driver_license",
14
+ "visa",
15
+ "other",
16
+ ]);
4
17
  export const organizations = pgTable("organizations", {
5
18
  id: typeId("organizations"),
6
19
  name: text("name").notNull(),
@@ -51,6 +64,20 @@ export const people = pgTable("people", {
51
64
  tags: jsonb("tags").$type().notNull().default([]),
52
65
  birthday: date("birthday"),
53
66
  notes: text("notes"),
67
+ /**
68
+ * Encrypted PII slots — canonical store for person-level travel
69
+ * preferences. Documents live in their own structured table
70
+ * (`person_documents`); these four are kept as KMS envelopes
71
+ * because their internal shape is small and rarely queried.
72
+ *
73
+ * Booking-traveler rows snapshot dietary/accessibility at create
74
+ * time; the person record remains the source of truth for
75
+ * pre-fill on subsequent bookings.
76
+ */
77
+ accessibilityEncrypted: jsonb("accessibility_encrypted").$type(),
78
+ dietaryEncrypted: jsonb("dietary_encrypted").$type(),
79
+ loyaltyEncrypted: jsonb("loyalty_encrypted").$type(),
80
+ insuranceEncrypted: jsonb("insurance_encrypted").$type(),
54
81
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
55
82
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
56
83
  archivedAt: timestamp("archived_at", { withTimezone: true }),
@@ -85,6 +112,45 @@ export const personNotes = pgTable("person_notes", {
85
112
  index("idx_person_notes_person").on(table.personId),
86
113
  index("idx_person_notes_person_created").on(table.personId, table.createdAt),
87
114
  ]);
115
+ /**
116
+ * Structured identity documents owned by a person. Replaces the
117
+ * single `documentsEncrypted` blob shape with a row per document so
118
+ * we can track type / expiry / issuing authority / attachment + run
119
+ * "expiring soon" sweeps without parsing JSON.
120
+ *
121
+ * `numberEncrypted` is the only field encrypted at rest — the rest
122
+ * is non-toxic identity metadata. `attachmentId` is a free-form key
123
+ * (typically an object-storage path) until a general media table
124
+ * exists; FK is intentionally deferred.
125
+ *
126
+ * Booking-traveler rows snapshot the primary passport at create time;
127
+ * this table remains the source of truth for next-trip pre-fill.
128
+ */
129
+ export const personDocuments = pgTable("person_documents", {
130
+ id: typeId("person_documents"),
131
+ personId: typeIdRef("person_id")
132
+ .notNull()
133
+ .references(() => people.id, { onDelete: "cascade" }),
134
+ type: personDocumentTypeEnum("type").notNull(),
135
+ numberEncrypted: jsonb("number_encrypted").$type(),
136
+ issuingAuthority: text("issuing_authority"),
137
+ issuingCountry: text("issuing_country"),
138
+ issueDate: date("issue_date"),
139
+ expiryDate: date("expiry_date"),
140
+ attachmentId: text("attachment_id"),
141
+ isPrimary: boolean("is_primary").notNull().default(false),
142
+ notes: text("notes"),
143
+ metadata: jsonb("metadata").$type(),
144
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
145
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
146
+ }, (table) => [
147
+ index("idx_person_documents_person").on(table.personId),
148
+ index("idx_person_documents_person_type").on(table.personId, table.type),
149
+ index("idx_person_documents_expiry").on(table.expiryDate),
150
+ uniqueIndex("uidx_person_documents_primary_per_type")
151
+ .on(table.personId, table.type)
152
+ .where(sql `${table.isPrimary} = true`),
153
+ ]);
88
154
  /**
89
155
  * Saved payment methods on file for a person. Stores processor-issued
90
156
  * tokens (never raw card numbers) so the booking flow can charge the
@@ -1,7 +1,7 @@
1
1
  import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
2
2
  import { boolean, date, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
3
- import { people } from "./schema-accounts";
4
- import { activityLinkRoleEnum, activityStatusEnum, activityTypeEnum, customFieldTypeEnum, entityTypeEnum, } from "./schema-shared";
3
+ import { people } from "./schema-accounts.js";
4
+ import { activityLinkRoleEnum, activityStatusEnum, activityTypeEnum, customFieldTypeEnum, entityTypeEnum, } from "./schema-shared.js";
5
5
  export const activities = pgTable("activities", {
6
6
  id: typeId("activities"),
7
7
  subject: text("subject").notNull(),
@@ -1,7 +1,7 @@
1
1
  import { relations } from "drizzle-orm";
2
- import { communicationLog, organizationNotes, organizations, people, personNotes, segmentMembers, segments, } from "./schema-accounts";
3
- import { activities, activityLinks, activityParticipants, customFieldDefinitions, customFieldValues, } from "./schema-activities";
4
- import { opportunities, opportunityParticipants, opportunityProducts, pipelines, quoteLines, quotes, stages, } from "./schema-sales";
2
+ import { communicationLog, organizationNotes, organizations, people, personNotes, segmentMembers, segments, } from "./schema-accounts.js";
3
+ import { activities, activityLinks, activityParticipants, customFieldDefinitions, customFieldValues, } from "./schema-activities.js";
4
+ import { opportunities, opportunityParticipants, opportunityProducts, pipelines, quoteLines, quotes, stages, } from "./schema-sales.js";
5
5
  export const organizationsRelations = relations(organizations, ({ many }) => ({
6
6
  people: many(people),
7
7
  opportunities: many(opportunities),
@@ -1,7 +1,7 @@
1
1
  import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
2
2
  import { boolean, date, index, integer, jsonb, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
3
- import { organizations, people } from "./schema-accounts";
4
- import { entityTypeEnum, opportunityStatusEnum, participantRoleEnum, quoteStatusEnum, } from "./schema-shared";
3
+ import { organizations, people } from "./schema-accounts.js";
4
+ import { entityTypeEnum, opportunityStatusEnum, participantRoleEnum, quoteStatusEnum, } from "./schema-shared.js";
5
5
  export const pipelines = pgTable("pipelines", {
6
6
  id: typeId("pipelines"),
7
7
  entityType: entityTypeEnum("entity_type").notNull().default("opportunity"),
package/dist/schema.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { bookingCrmDetails } from "./booking-extension";
2
- export * from "./schema-accounts";
3
- export * from "./schema-activities";
4
- export * from "./schema-relations";
5
- export * from "./schema-sales";
6
- export * from "./schema-shared";
1
+ export { bookingCrmDetails } from "./booking-extension.js";
2
+ export * from "./schema-accounts.js";
3
+ export * from "./schema-activities.js";
4
+ export * from "./schema-relations.js";
5
+ export * from "./schema-sales.js";
6
+ export * from "./schema-shared.js";
7
7
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
package/dist/schema.js CHANGED
@@ -1,6 +1,6 @@
1
- export { bookingCrmDetails } from "./booking-extension";
2
- export * from "./schema-accounts";
3
- export * from "./schema-activities";
4
- export * from "./schema-relations";
5
- export * from "./schema-sales";
6
- export * from "./schema-shared";
1
+ export { bookingCrmDetails } from "./booking-extension.js";
2
+ export * from "./schema-accounts.js";
3
+ export * from "./schema-activities.js";
4
+ export * from "./schema-relations.js";
5
+ export * from "./schema-sales.js";
6
+ export * from "./schema-shared.js";
@@ -21,6 +21,18 @@ export declare const peopleAccountsService: {
21
21
  tags: string[];
22
22
  birthday: string | null;
23
23
  notes: string | null;
24
+ accessibilityEncrypted: {
25
+ enc: string;
26
+ } | null;
27
+ dietaryEncrypted: {
28
+ enc: string;
29
+ } | null;
30
+ loyaltyEncrypted: {
31
+ enc: string;
32
+ } | null;
33
+ insuranceEncrypted: {
34
+ enc: string;
35
+ } | null;
24
36
  createdAt: Date;
25
37
  updatedAt: Date;
26
38
  archivedAt: Date | null;
@@ -47,6 +59,18 @@ export declare const peopleAccountsService: {
47
59
  tags: string[];
48
60
  birthday: string | null;
49
61
  notes: string | null;
62
+ accessibilityEncrypted: {
63
+ enc: string;
64
+ } | null;
65
+ dietaryEncrypted: {
66
+ enc: string;
67
+ } | null;
68
+ loyaltyEncrypted: {
69
+ enc: string;
70
+ } | null;
71
+ insuranceEncrypted: {
72
+ enc: string;
73
+ } | null;
50
74
  createdAt: Date;
51
75
  updatedAt: Date;
52
76
  archivedAt: Date | null;
@@ -69,6 +93,18 @@ export declare const peopleAccountsService: {
69
93
  tags: string[];
70
94
  birthday: string | null;
71
95
  notes: string | null;
96
+ accessibilityEncrypted: {
97
+ enc: string;
98
+ } | null;
99
+ dietaryEncrypted: {
100
+ enc: string;
101
+ } | null;
102
+ loyaltyEncrypted: {
103
+ enc: string;
104
+ } | null;
105
+ insuranceEncrypted: {
106
+ enc: string;
107
+ } | null;
72
108
  createdAt: Date;
73
109
  updatedAt: Date;
74
110
  archivedAt: Date | null;
@@ -91,6 +127,18 @@ export declare const peopleAccountsService: {
91
127
  tags: string[];
92
128
  birthday: string | null;
93
129
  notes: string | null;
130
+ accessibilityEncrypted: {
131
+ enc: string;
132
+ } | null;
133
+ dietaryEncrypted: {
134
+ enc: string;
135
+ } | null;
136
+ loyaltyEncrypted: {
137
+ enc: string;
138
+ } | null;
139
+ insuranceEncrypted: {
140
+ enc: string;
141
+ } | null;
94
142
  createdAt: Date;
95
143
  updatedAt: Date;
96
144
  archivedAt: Date | null;
@@ -171,6 +219,7 @@ export declare const peopleAccountsService: {
171
219
  updatedAt: Date;
172
220
  notes: string | null;
173
221
  timezone: string | null;
222
+ region: string | null;
174
223
  entityType: string;
175
224
  entityId: string;
176
225
  label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
@@ -179,7 +228,6 @@ export declare const peopleAccountsService: {
179
228
  line1: string | null;
180
229
  line2: string | null;
181
230
  city: string | null;
182
- region: string | null;
183
231
  postalCode: string | null;
184
232
  country: string | null;
185
233
  latitude: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"accounts-people.d.ts","sourceRoot":"","sources":["../../src/service/accounts-people.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAWjE,OAAO,KAAK,EACV,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EAIvB,KAAK,eAAe,EAIpB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAA;AAG7B,eAAO,MAAM,qBAAqB;mBACX,kBAAkB,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAsCvC,kBAAkB,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;qBAO/B,kBAAkB,QAAQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;qBAgB3C,kBAAkB,MAAM,MAAM,QAAQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;qBAkBvD,kBAAkB,MAAM,MAAM;;;2BAO/C,kBAAkB,cACV,cAAc,GAAG,QAAQ,YAC3B,MAAM;;;;;;;;;;;;;;4BAUZ,kBAAkB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