@voyantjs/crm 0.28.3 → 0.29.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/accounts.d.ts +2 -2
- package/dist/routes/activities.d.ts +4 -4
- package/dist/routes/custom-fields.d.ts +4 -4
- package/dist/routes/index.d.ts +20 -20
- package/dist/routes/person-relationships.d.ts +8 -8
- package/dist/routes/pipelines.d.ts +2 -2
- package/dist/schema-accounts.d.ts +2 -2
- package/dist/schema-activities.d.ts +2 -2
- package/dist/service/accounts-organizations.d.ts +1 -1
- package/dist/service/accounts-people.d.ts +1 -1
- package/dist/service/accounts.d.ts +2 -2
- package/dist/service/activities.d.ts +4 -4
- package/dist/service/custom-fields.d.ts +4 -4
- package/dist/service/index.d.ts +29 -29
- package/dist/service/person-relationships.d.ts +12 -12
- package/dist/service/pipelines.d.ts +2 -2
- package/dist/validation.d.ts +51 -51
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +9 -6
- package/package.json +6 -6
|
@@ -47,8 +47,8 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
47
47
|
data: {
|
|
48
48
|
source: string | null;
|
|
49
49
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
50
|
-
id: string;
|
|
51
50
|
name: string;
|
|
51
|
+
id: string;
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
status: "active" | "inactive" | "archived";
|
|
@@ -1138,8 +1138,8 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1138
1138
|
input: {};
|
|
1139
1139
|
output: {
|
|
1140
1140
|
data: {
|
|
1141
|
-
id: string;
|
|
1142
1141
|
name: string;
|
|
1142
|
+
id: string;
|
|
1143
1143
|
createdAt: string;
|
|
1144
1144
|
updatedAt: string;
|
|
1145
1145
|
description: string | null;
|
|
@@ -15,7 +15,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
15
15
|
subject: string;
|
|
16
16
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
17
17
|
ownerId: string | null;
|
|
18
|
-
status: "done" | "
|
|
18
|
+
status: "done" | "cancelled" | "planned";
|
|
19
19
|
dueAt: string | null;
|
|
20
20
|
completedAt: string | null;
|
|
21
21
|
location: string | null;
|
|
@@ -40,7 +40,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
40
40
|
id: string;
|
|
41
41
|
createdAt: string;
|
|
42
42
|
updatedAt: string;
|
|
43
|
-
status: "done" | "
|
|
43
|
+
status: "done" | "cancelled" | "planned";
|
|
44
44
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
45
45
|
description: string | null;
|
|
46
46
|
ownerId: string | null;
|
|
@@ -79,7 +79,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
79
79
|
subject: string;
|
|
80
80
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
81
81
|
ownerId: string | null;
|
|
82
|
-
status: "done" | "
|
|
82
|
+
status: "done" | "cancelled" | "planned";
|
|
83
83
|
dueAt: string | null;
|
|
84
84
|
completedAt: string | null;
|
|
85
85
|
location: string | null;
|
|
@@ -117,7 +117,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
117
117
|
subject: string;
|
|
118
118
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
119
119
|
ownerId: string | null;
|
|
120
|
-
status: "done" | "
|
|
120
|
+
status: "done" | "cancelled" | "planned";
|
|
121
121
|
dueAt: string | null;
|
|
122
122
|
completedAt: string | null;
|
|
123
123
|
location: string | null;
|
|
@@ -15,7 +15,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
15
15
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
16
16
|
key: string;
|
|
17
17
|
label: string;
|
|
18
|
-
fieldType: "boolean" | "json" | "
|
|
18
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
19
19
|
isRequired: boolean;
|
|
20
20
|
isSearchable: boolean;
|
|
21
21
|
options: {
|
|
@@ -49,7 +49,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
49
49
|
}[] | null;
|
|
50
50
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
51
51
|
label: string;
|
|
52
|
-
fieldType: "boolean" | "json" | "
|
|
52
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
53
53
|
isRequired: boolean;
|
|
54
54
|
isSearchable: boolean;
|
|
55
55
|
} | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
83
83
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
84
84
|
key: string;
|
|
85
85
|
label: string;
|
|
86
|
-
fieldType: "boolean" | "json" | "
|
|
86
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
87
87
|
isRequired: boolean;
|
|
88
88
|
isSearchable: boolean;
|
|
89
89
|
options: {
|
|
@@ -123,7 +123,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
123
123
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
124
124
|
key: string;
|
|
125
125
|
label: string;
|
|
126
|
-
fieldType: "boolean" | "json" | "
|
|
126
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
127
127
|
isRequired: boolean;
|
|
128
128
|
isSearchable: boolean;
|
|
129
129
|
options: {
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
47
47
|
data: {
|
|
48
48
|
source: string | null;
|
|
49
49
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
50
|
-
id: string;
|
|
51
50
|
name: string;
|
|
51
|
+
id: string;
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
status: "active" | "inactive" | "archived";
|
|
@@ -1138,8 +1138,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1138
1138
|
input: {};
|
|
1139
1139
|
output: {
|
|
1140
1140
|
data: {
|
|
1141
|
-
id: string;
|
|
1142
1141
|
name: string;
|
|
1142
|
+
id: string;
|
|
1143
1143
|
createdAt: string;
|
|
1144
1144
|
updatedAt: string;
|
|
1145
1145
|
description: string | null;
|
|
@@ -1809,8 +1809,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1809
1809
|
id: string;
|
|
1810
1810
|
fromPersonId: string;
|
|
1811
1811
|
toPersonId: string;
|
|
1812
|
-
kind: "partner" | "
|
|
1813
|
-
inverseKind: "partner" | "
|
|
1812
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1813
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1814
1814
|
startDate: string | null;
|
|
1815
1815
|
endDate: string | null;
|
|
1816
1816
|
isPrimary: boolean;
|
|
@@ -1856,11 +1856,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1856
1856
|
startDate: string | null;
|
|
1857
1857
|
endDate: string | null;
|
|
1858
1858
|
notes: string | null;
|
|
1859
|
-
kind: "partner" | "
|
|
1859
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1860
1860
|
isPrimary: boolean;
|
|
1861
1861
|
fromPersonId: string;
|
|
1862
1862
|
toPersonId: string;
|
|
1863
|
-
inverseKind: "partner" | "
|
|
1863
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1864
1864
|
};
|
|
1865
1865
|
};
|
|
1866
1866
|
outputFormat: "json";
|
|
@@ -1891,8 +1891,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1891
1891
|
id: string;
|
|
1892
1892
|
fromPersonId: string;
|
|
1893
1893
|
toPersonId: string;
|
|
1894
|
-
kind: "partner" | "
|
|
1895
|
-
inverseKind: "partner" | "
|
|
1894
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1895
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1896
1896
|
startDate: string | null;
|
|
1897
1897
|
endDate: string | null;
|
|
1898
1898
|
isPrimary: boolean;
|
|
@@ -1932,8 +1932,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1932
1932
|
id: string;
|
|
1933
1933
|
fromPersonId: string;
|
|
1934
1934
|
toPersonId: string;
|
|
1935
|
-
kind: "partner" | "
|
|
1936
|
-
inverseKind: "partner" | "
|
|
1935
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1936
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1937
1937
|
startDate: string | null;
|
|
1938
1938
|
endDate: string | null;
|
|
1939
1939
|
isPrimary: boolean;
|
|
@@ -2274,8 +2274,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2274
2274
|
input: {};
|
|
2275
2275
|
output: {
|
|
2276
2276
|
data: {
|
|
2277
|
-
id: string;
|
|
2278
2277
|
name: string;
|
|
2278
|
+
id: string;
|
|
2279
2279
|
createdAt: string;
|
|
2280
2280
|
updatedAt: string;
|
|
2281
2281
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
@@ -2412,8 +2412,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2412
2412
|
input: {};
|
|
2413
2413
|
output: {
|
|
2414
2414
|
data: {
|
|
2415
|
-
id: string;
|
|
2416
2415
|
name: string;
|
|
2416
|
+
id: string;
|
|
2417
2417
|
createdAt: string;
|
|
2418
2418
|
updatedAt: string;
|
|
2419
2419
|
sortOrder: number;
|
|
@@ -3188,7 +3188,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3188
3188
|
subject: string;
|
|
3189
3189
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
3190
3190
|
ownerId: string | null;
|
|
3191
|
-
status: "done" | "
|
|
3191
|
+
status: "done" | "cancelled" | "planned";
|
|
3192
3192
|
dueAt: string | null;
|
|
3193
3193
|
completedAt: string | null;
|
|
3194
3194
|
location: string | null;
|
|
@@ -3213,7 +3213,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3213
3213
|
id: string;
|
|
3214
3214
|
createdAt: string;
|
|
3215
3215
|
updatedAt: string;
|
|
3216
|
-
status: "done" | "
|
|
3216
|
+
status: "done" | "cancelled" | "planned";
|
|
3217
3217
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
3218
3218
|
description: string | null;
|
|
3219
3219
|
ownerId: string | null;
|
|
@@ -3252,7 +3252,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3252
3252
|
subject: string;
|
|
3253
3253
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
3254
3254
|
ownerId: string | null;
|
|
3255
|
-
status: "done" | "
|
|
3255
|
+
status: "done" | "cancelled" | "planned";
|
|
3256
3256
|
dueAt: string | null;
|
|
3257
3257
|
completedAt: string | null;
|
|
3258
3258
|
location: string | null;
|
|
@@ -3290,7 +3290,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3290
3290
|
subject: string;
|
|
3291
3291
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
3292
3292
|
ownerId: string | null;
|
|
3293
|
-
status: "done" | "
|
|
3293
|
+
status: "done" | "cancelled" | "planned";
|
|
3294
3294
|
dueAt: string | null;
|
|
3295
3295
|
completedAt: string | null;
|
|
3296
3296
|
location: string | null;
|
|
@@ -3477,7 +3477,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3477
3477
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
3478
3478
|
key: string;
|
|
3479
3479
|
label: string;
|
|
3480
|
-
fieldType: "boolean" | "json" | "
|
|
3480
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
3481
3481
|
isRequired: boolean;
|
|
3482
3482
|
isSearchable: boolean;
|
|
3483
3483
|
options: {
|
|
@@ -3511,7 +3511,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3511
3511
|
}[] | null;
|
|
3512
3512
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
3513
3513
|
label: string;
|
|
3514
|
-
fieldType: "boolean" | "json" | "
|
|
3514
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
3515
3515
|
isRequired: boolean;
|
|
3516
3516
|
isSearchable: boolean;
|
|
3517
3517
|
} | undefined;
|
|
@@ -3545,7 +3545,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3545
3545
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
3546
3546
|
key: string;
|
|
3547
3547
|
label: string;
|
|
3548
|
-
fieldType: "boolean" | "json" | "
|
|
3548
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
3549
3549
|
isRequired: boolean;
|
|
3550
3550
|
isSearchable: boolean;
|
|
3551
3551
|
options: {
|
|
@@ -3585,7 +3585,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3585
3585
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
3586
3586
|
key: string;
|
|
3587
3587
|
label: string;
|
|
3588
|
-
fieldType: "boolean" | "json" | "
|
|
3588
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
3589
3589
|
isRequired: boolean;
|
|
3590
3590
|
isSearchable: boolean;
|
|
3591
3591
|
options: {
|
|
@@ -18,8 +18,8 @@ export declare const personRelationshipRoutes: import("hono/hono-base").HonoBase
|
|
|
18
18
|
id: string;
|
|
19
19
|
fromPersonId: string;
|
|
20
20
|
toPersonId: string;
|
|
21
|
-
kind: "partner" | "
|
|
22
|
-
inverseKind: "partner" | "
|
|
21
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
22
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
23
23
|
startDate: string | null;
|
|
24
24
|
endDate: string | null;
|
|
25
25
|
isPrimary: boolean;
|
|
@@ -65,11 +65,11 @@ export declare const personRelationshipRoutes: import("hono/hono-base").HonoBase
|
|
|
65
65
|
startDate: string | null;
|
|
66
66
|
endDate: string | null;
|
|
67
67
|
notes: string | null;
|
|
68
|
-
kind: "partner" | "
|
|
68
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
69
69
|
isPrimary: boolean;
|
|
70
70
|
fromPersonId: string;
|
|
71
71
|
toPersonId: string;
|
|
72
|
-
inverseKind: "partner" | "
|
|
72
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
outputFormat: "json";
|
|
@@ -100,8 +100,8 @@ export declare const personRelationshipRoutes: import("hono/hono-base").HonoBase
|
|
|
100
100
|
id: string;
|
|
101
101
|
fromPersonId: string;
|
|
102
102
|
toPersonId: string;
|
|
103
|
-
kind: "partner" | "
|
|
104
|
-
inverseKind: "partner" | "
|
|
103
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
104
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
105
105
|
startDate: string | null;
|
|
106
106
|
endDate: string | null;
|
|
107
107
|
isPrimary: boolean;
|
|
@@ -141,8 +141,8 @@ export declare const personRelationshipRoutes: import("hono/hono-base").HonoBase
|
|
|
141
141
|
id: string;
|
|
142
142
|
fromPersonId: string;
|
|
143
143
|
toPersonId: string;
|
|
144
|
-
kind: "partner" | "
|
|
145
|
-
inverseKind: "partner" | "
|
|
144
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
145
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
146
146
|
startDate: string | null;
|
|
147
147
|
endDate: string | null;
|
|
148
148
|
isPrimary: boolean;
|
|
@@ -33,8 +33,8 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
33
33
|
input: {};
|
|
34
34
|
output: {
|
|
35
35
|
data: {
|
|
36
|
-
id: string;
|
|
37
36
|
name: string;
|
|
37
|
+
id: string;
|
|
38
38
|
createdAt: string;
|
|
39
39
|
updatedAt: string;
|
|
40
40
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
@@ -171,8 +171,8 @@ export declare const pipelineRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
171
171
|
input: {};
|
|
172
172
|
output: {
|
|
173
173
|
data: {
|
|
174
|
-
id: string;
|
|
175
174
|
name: string;
|
|
175
|
+
id: string;
|
|
176
176
|
createdAt: string;
|
|
177
177
|
updatedAt: string;
|
|
178
178
|
sortOrder: number;
|
|
@@ -1305,7 +1305,7 @@ export declare const personRelationships: import("drizzle-orm/pg-core").PgTableW
|
|
|
1305
1305
|
tableName: "person_relationships";
|
|
1306
1306
|
dataType: "string";
|
|
1307
1307
|
columnType: "PgEnumColumn";
|
|
1308
|
-
data: "partner" | "
|
|
1308
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1309
1309
|
driverParam: string;
|
|
1310
1310
|
notNull: true;
|
|
1311
1311
|
hasDefault: false;
|
|
@@ -1322,7 +1322,7 @@ export declare const personRelationships: import("drizzle-orm/pg-core").PgTableW
|
|
|
1322
1322
|
tableName: "person_relationships";
|
|
1323
1323
|
dataType: "string";
|
|
1324
1324
|
columnType: "PgEnumColumn";
|
|
1325
|
-
data: "partner" | "
|
|
1325
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1326
1326
|
driverParam: string;
|
|
1327
1327
|
notNull: false;
|
|
1328
1328
|
hasDefault: false;
|
|
@@ -75,7 +75,7 @@ export declare const activities: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
75
75
|
tableName: "activities";
|
|
76
76
|
dataType: "string";
|
|
77
77
|
columnType: "PgEnumColumn";
|
|
78
|
-
data: "done" | "
|
|
78
|
+
data: "done" | "cancelled" | "planned";
|
|
79
79
|
driverParam: string;
|
|
80
80
|
notNull: true;
|
|
81
81
|
hasDefault: true;
|
|
@@ -470,7 +470,7 @@ export declare const customFieldDefinitions: import("drizzle-orm/pg-core").PgTab
|
|
|
470
470
|
tableName: "custom_field_definitions";
|
|
471
471
|
dataType: "string";
|
|
472
472
|
columnType: "PgEnumColumn";
|
|
473
|
-
data: "boolean" | "json" | "
|
|
473
|
+
data: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
474
474
|
driverParam: string;
|
|
475
475
|
notNull: true;
|
|
476
476
|
hasDefault: false;
|
|
@@ -51,8 +51,8 @@ export declare const organizationAccountsService: {
|
|
|
51
51
|
createOrganization(db: PostgresJsDatabase, data: CreateOrganizationInput): Promise<{
|
|
52
52
|
source: string | null;
|
|
53
53
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
54
|
-
id: string;
|
|
55
54
|
name: string;
|
|
55
|
+
id: string;
|
|
56
56
|
createdAt: Date;
|
|
57
57
|
updatedAt: Date;
|
|
58
58
|
status: "active" | "inactive" | "archived";
|
|
@@ -1288,8 +1288,8 @@ export declare const peopleAccountsService: {
|
|
|
1288
1288
|
}, {}, {}>;
|
|
1289
1289
|
}>, "orderBy">;
|
|
1290
1290
|
createSegment(db: PostgresJsDatabase, data: CreateSegmentInput): Promise<{
|
|
1291
|
-
id: string;
|
|
1292
1291
|
name: string;
|
|
1292
|
+
id: string;
|
|
1293
1293
|
createdAt: Date;
|
|
1294
1294
|
updatedAt: Date;
|
|
1295
1295
|
description: string | null;
|
|
@@ -1285,8 +1285,8 @@ export declare const accountsService: {
|
|
|
1285
1285
|
}, {}, {}>;
|
|
1286
1286
|
}>, "orderBy">;
|
|
1287
1287
|
createSegment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateSegmentInput): Promise<{
|
|
1288
|
-
id: string;
|
|
1289
1288
|
name: string;
|
|
1289
|
+
id: string;
|
|
1290
1290
|
createdAt: Date;
|
|
1291
1291
|
updatedAt: Date;
|
|
1292
1292
|
description: string | null;
|
|
@@ -1358,8 +1358,8 @@ export declare const accountsService: {
|
|
|
1358
1358
|
createOrganization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateOrganizationInput): Promise<{
|
|
1359
1359
|
source: string | null;
|
|
1360
1360
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
1361
|
-
id: string;
|
|
1362
1361
|
name: string;
|
|
1362
|
+
id: string;
|
|
1363
1363
|
createdAt: Date;
|
|
1364
1364
|
updatedAt: Date;
|
|
1365
1365
|
status: "active" | "inactive" | "archived";
|
|
@@ -13,7 +13,7 @@ export declare const activitiesService: {
|
|
|
13
13
|
subject: string;
|
|
14
14
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
15
15
|
ownerId: string | null;
|
|
16
|
-
status: "done" | "
|
|
16
|
+
status: "done" | "cancelled" | "planned";
|
|
17
17
|
dueAt: Date | null;
|
|
18
18
|
completedAt: Date | null;
|
|
19
19
|
location: string | null;
|
|
@@ -30,7 +30,7 @@ export declare const activitiesService: {
|
|
|
30
30
|
subject: string;
|
|
31
31
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
32
32
|
ownerId: string | null;
|
|
33
|
-
status: "done" | "
|
|
33
|
+
status: "done" | "cancelled" | "planned";
|
|
34
34
|
dueAt: Date | null;
|
|
35
35
|
completedAt: Date | null;
|
|
36
36
|
location: string | null;
|
|
@@ -42,7 +42,7 @@ export declare const activitiesService: {
|
|
|
42
42
|
id: string;
|
|
43
43
|
createdAt: Date;
|
|
44
44
|
updatedAt: Date;
|
|
45
|
-
status: "done" | "
|
|
45
|
+
status: "done" | "cancelled" | "planned";
|
|
46
46
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
47
47
|
description: string | null;
|
|
48
48
|
ownerId: string | null;
|
|
@@ -56,7 +56,7 @@ export declare const activitiesService: {
|
|
|
56
56
|
subject: string;
|
|
57
57
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
58
58
|
ownerId: string | null;
|
|
59
|
-
status: "done" | "
|
|
59
|
+
status: "done" | "cancelled" | "planned";
|
|
60
60
|
dueAt: Date | null;
|
|
61
61
|
completedAt: Date | null;
|
|
62
62
|
location: string | null;
|
|
@@ -13,7 +13,7 @@ export declare const customFieldsService: {
|
|
|
13
13
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
14
14
|
key: string;
|
|
15
15
|
label: string;
|
|
16
|
-
fieldType: "boolean" | "json" | "
|
|
16
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
17
17
|
isRequired: boolean;
|
|
18
18
|
isSearchable: boolean;
|
|
19
19
|
options: {
|
|
@@ -32,7 +32,7 @@ export declare const customFieldsService: {
|
|
|
32
32
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
33
33
|
key: string;
|
|
34
34
|
label: string;
|
|
35
|
-
fieldType: "boolean" | "json" | "
|
|
35
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
36
36
|
isRequired: boolean;
|
|
37
37
|
isSearchable: boolean;
|
|
38
38
|
options: {
|
|
@@ -53,7 +53,7 @@ export declare const customFieldsService: {
|
|
|
53
53
|
}[] | null;
|
|
54
54
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
55
55
|
label: string;
|
|
56
|
-
fieldType: "boolean" | "json" | "
|
|
56
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
57
57
|
isRequired: boolean;
|
|
58
58
|
isSearchable: boolean;
|
|
59
59
|
} | undefined>;
|
|
@@ -62,7 +62,7 @@ export declare const customFieldsService: {
|
|
|
62
62
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
63
63
|
key: string;
|
|
64
64
|
label: string;
|
|
65
|
-
fieldType: "boolean" | "json" | "
|
|
65
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
66
66
|
isRequired: boolean;
|
|
67
67
|
isSearchable: boolean;
|
|
68
68
|
options: {
|
package/dist/service/index.d.ts
CHANGED
|
@@ -766,7 +766,7 @@ export declare const crmService: {
|
|
|
766
766
|
tableName: "person_relationships";
|
|
767
767
|
dataType: "string";
|
|
768
768
|
columnType: "PgEnumColumn";
|
|
769
|
-
data: "partner" | "
|
|
769
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
770
770
|
driverParam: string;
|
|
771
771
|
notNull: true;
|
|
772
772
|
hasDefault: false;
|
|
@@ -783,7 +783,7 @@ export declare const crmService: {
|
|
|
783
783
|
tableName: "person_relationships";
|
|
784
784
|
dataType: "string";
|
|
785
785
|
columnType: "PgEnumColumn";
|
|
786
|
-
data: "partner" | "
|
|
786
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
787
787
|
driverParam: string;
|
|
788
788
|
notNull: false;
|
|
789
789
|
hasDefault: false;
|
|
@@ -920,8 +920,8 @@ export declare const crmService: {
|
|
|
920
920
|
id: string;
|
|
921
921
|
fromPersonId: string;
|
|
922
922
|
toPersonId: string;
|
|
923
|
-
kind: "partner" | "
|
|
924
|
-
inverseKind: "partner" | "
|
|
923
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
924
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
925
925
|
startDate: string | null;
|
|
926
926
|
endDate: string | null;
|
|
927
927
|
isPrimary: boolean;
|
|
@@ -986,7 +986,7 @@ export declare const crmService: {
|
|
|
986
986
|
tableName: "person_relationships";
|
|
987
987
|
dataType: "string";
|
|
988
988
|
columnType: "PgEnumColumn";
|
|
989
|
-
data: "partner" | "
|
|
989
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
990
990
|
driverParam: string;
|
|
991
991
|
notNull: true;
|
|
992
992
|
hasDefault: false;
|
|
@@ -1003,7 +1003,7 @@ export declare const crmService: {
|
|
|
1003
1003
|
tableName: "person_relationships";
|
|
1004
1004
|
dataType: "string";
|
|
1005
1005
|
columnType: "PgEnumColumn";
|
|
1006
|
-
data: "partner" | "
|
|
1006
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1007
1007
|
driverParam: string;
|
|
1008
1008
|
notNull: false;
|
|
1009
1009
|
hasDefault: false;
|
|
@@ -1141,8 +1141,8 @@ export declare const crmService: {
|
|
|
1141
1141
|
id: string;
|
|
1142
1142
|
fromPersonId: string;
|
|
1143
1143
|
toPersonId: string;
|
|
1144
|
-
kind: "partner" | "
|
|
1145
|
-
inverseKind: "partner" | "
|
|
1144
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1145
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1146
1146
|
startDate: string | null;
|
|
1147
1147
|
endDate: string | null;
|
|
1148
1148
|
isPrimary: boolean;
|
|
@@ -1159,18 +1159,18 @@ export declare const crmService: {
|
|
|
1159
1159
|
startDate: string | null;
|
|
1160
1160
|
endDate: string | null;
|
|
1161
1161
|
notes: string | null;
|
|
1162
|
-
kind: "partner" | "
|
|
1162
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1163
1163
|
isPrimary: boolean;
|
|
1164
1164
|
fromPersonId: string;
|
|
1165
1165
|
toPersonId: string;
|
|
1166
|
-
inverseKind: "partner" | "
|
|
1166
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1167
1167
|
} | null>;
|
|
1168
1168
|
updatePersonRelationship(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./person-relationships.js").UpdatePersonRelationshipInput): Promise<{
|
|
1169
1169
|
id: string;
|
|
1170
1170
|
fromPersonId: string;
|
|
1171
1171
|
toPersonId: string;
|
|
1172
|
-
kind: "partner" | "
|
|
1173
|
-
inverseKind: "partner" | "
|
|
1172
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
1173
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
1174
1174
|
startDate: string | null;
|
|
1175
1175
|
endDate: string | null;
|
|
1176
1176
|
isPrimary: boolean;
|
|
@@ -2313,7 +2313,7 @@ export declare const crmService: {
|
|
|
2313
2313
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2314
2314
|
key: string;
|
|
2315
2315
|
label: string;
|
|
2316
|
-
fieldType: "boolean" | "json" | "
|
|
2316
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2317
2317
|
isRequired: boolean;
|
|
2318
2318
|
isSearchable: boolean;
|
|
2319
2319
|
options: {
|
|
@@ -2332,7 +2332,7 @@ export declare const crmService: {
|
|
|
2332
2332
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2333
2333
|
key: string;
|
|
2334
2334
|
label: string;
|
|
2335
|
-
fieldType: "boolean" | "json" | "
|
|
2335
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2336
2336
|
isRequired: boolean;
|
|
2337
2337
|
isSearchable: boolean;
|
|
2338
2338
|
options: {
|
|
@@ -2346,7 +2346,7 @@ export declare const crmService: {
|
|
|
2346
2346
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2347
2347
|
key: string;
|
|
2348
2348
|
label: string;
|
|
2349
|
-
fieldType: "boolean" | "json" | "
|
|
2349
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2350
2350
|
isRequired: boolean;
|
|
2351
2351
|
isSearchable: boolean;
|
|
2352
2352
|
options?: {
|
|
@@ -2364,7 +2364,7 @@ export declare const crmService: {
|
|
|
2364
2364
|
}[] | null;
|
|
2365
2365
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2366
2366
|
label: string;
|
|
2367
|
-
fieldType: "boolean" | "json" | "
|
|
2367
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2368
2368
|
isRequired: boolean;
|
|
2369
2369
|
isSearchable: boolean;
|
|
2370
2370
|
} | undefined>;
|
|
@@ -2372,7 +2372,7 @@ export declare const crmService: {
|
|
|
2372
2372
|
entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
|
|
2373
2373
|
key?: string | undefined;
|
|
2374
2374
|
label?: string | undefined;
|
|
2375
|
-
fieldType?: "boolean" | "json" | "
|
|
2375
|
+
fieldType?: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address" | undefined;
|
|
2376
2376
|
isRequired?: boolean | undefined;
|
|
2377
2377
|
isSearchable?: boolean | undefined;
|
|
2378
2378
|
options?: {
|
|
@@ -2384,7 +2384,7 @@ export declare const crmService: {
|
|
|
2384
2384
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2385
2385
|
key: string;
|
|
2386
2386
|
label: string;
|
|
2387
|
-
fieldType: "boolean" | "json" | "
|
|
2387
|
+
fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2388
2388
|
isRequired: boolean;
|
|
2389
2389
|
isSearchable: boolean;
|
|
2390
2390
|
options: {
|
|
@@ -2455,7 +2455,7 @@ export declare const crmService: {
|
|
|
2455
2455
|
limit: number;
|
|
2456
2456
|
offset: number;
|
|
2457
2457
|
ownerId?: string | undefined;
|
|
2458
|
-
status?: "done" | "
|
|
2458
|
+
status?: "done" | "cancelled" | "planned" | undefined;
|
|
2459
2459
|
type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
|
|
2460
2460
|
entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
|
|
2461
2461
|
entityId?: string | undefined;
|
|
@@ -2466,7 +2466,7 @@ export declare const crmService: {
|
|
|
2466
2466
|
subject: string;
|
|
2467
2467
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2468
2468
|
ownerId: string | null;
|
|
2469
|
-
status: "done" | "
|
|
2469
|
+
status: "done" | "cancelled" | "planned";
|
|
2470
2470
|
dueAt: Date | null;
|
|
2471
2471
|
completedAt: Date | null;
|
|
2472
2472
|
location: string | null;
|
|
@@ -2483,7 +2483,7 @@ export declare const crmService: {
|
|
|
2483
2483
|
subject: string;
|
|
2484
2484
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2485
2485
|
ownerId: string | null;
|
|
2486
|
-
status: "done" | "
|
|
2486
|
+
status: "done" | "cancelled" | "planned";
|
|
2487
2487
|
dueAt: Date | null;
|
|
2488
2488
|
completedAt: Date | null;
|
|
2489
2489
|
location: string | null;
|
|
@@ -2494,7 +2494,7 @@ export declare const crmService: {
|
|
|
2494
2494
|
createActivity(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: {
|
|
2495
2495
|
subject: string;
|
|
2496
2496
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2497
|
-
status: "done" | "
|
|
2497
|
+
status: "done" | "cancelled" | "planned";
|
|
2498
2498
|
ownerId?: string | null | undefined;
|
|
2499
2499
|
dueAt?: string | null | undefined;
|
|
2500
2500
|
completedAt?: string | null | undefined;
|
|
@@ -2504,7 +2504,7 @@ export declare const crmService: {
|
|
|
2504
2504
|
id: string;
|
|
2505
2505
|
createdAt: Date;
|
|
2506
2506
|
updatedAt: Date;
|
|
2507
|
-
status: "done" | "
|
|
2507
|
+
status: "done" | "cancelled" | "planned";
|
|
2508
2508
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2509
2509
|
description: string | null;
|
|
2510
2510
|
ownerId: string | null;
|
|
@@ -2517,7 +2517,7 @@ export declare const crmService: {
|
|
|
2517
2517
|
subject?: string | undefined;
|
|
2518
2518
|
type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
|
|
2519
2519
|
ownerId?: string | null | undefined;
|
|
2520
|
-
status?: "done" | "
|
|
2520
|
+
status?: "done" | "cancelled" | "planned" | undefined;
|
|
2521
2521
|
dueAt?: string | null | undefined;
|
|
2522
2522
|
completedAt?: string | null | undefined;
|
|
2523
2523
|
location?: string | null | undefined;
|
|
@@ -2527,7 +2527,7 @@ export declare const crmService: {
|
|
|
2527
2527
|
subject: string;
|
|
2528
2528
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2529
2529
|
ownerId: string | null;
|
|
2530
|
-
status: "done" | "
|
|
2530
|
+
status: "done" | "cancelled" | "planned";
|
|
2531
2531
|
dueAt: Date | null;
|
|
2532
2532
|
completedAt: Date | null;
|
|
2533
2533
|
location: string | null;
|
|
@@ -4386,8 +4386,8 @@ export declare const crmService: {
|
|
|
4386
4386
|
isDefault: boolean;
|
|
4387
4387
|
sortOrder: number;
|
|
4388
4388
|
}): Promise<{
|
|
4389
|
-
id: string;
|
|
4390
4389
|
name: string;
|
|
4390
|
+
id: string;
|
|
4391
4391
|
createdAt: Date;
|
|
4392
4392
|
updatedAt: Date;
|
|
4393
4393
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
@@ -4453,8 +4453,8 @@ export declare const crmService: {
|
|
|
4453
4453
|
isLost: boolean;
|
|
4454
4454
|
probability?: number | null | undefined;
|
|
4455
4455
|
}): Promise<{
|
|
4456
|
-
id: string;
|
|
4457
4456
|
name: string;
|
|
4457
|
+
id: string;
|
|
4458
4458
|
createdAt: Date;
|
|
4459
4459
|
updatedAt: Date;
|
|
4460
4460
|
sortOrder: number;
|
|
@@ -5773,8 +5773,8 @@ export declare const crmService: {
|
|
|
5773
5773
|
}, {}, {}>;
|
|
5774
5774
|
}>, "orderBy">;
|
|
5775
5775
|
createSegment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateSegmentInput): Promise<{
|
|
5776
|
-
id: string;
|
|
5777
5776
|
name: string;
|
|
5777
|
+
id: string;
|
|
5778
5778
|
createdAt: Date;
|
|
5779
5779
|
updatedAt: Date;
|
|
5780
5780
|
description: string | null;
|
|
@@ -5846,8 +5846,8 @@ export declare const crmService: {
|
|
|
5846
5846
|
createOrganization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateOrganizationInput): Promise<{
|
|
5847
5847
|
source: string | null;
|
|
5848
5848
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
5849
|
-
id: string;
|
|
5850
5849
|
name: string;
|
|
5850
|
+
id: string;
|
|
5851
5851
|
createdAt: Date;
|
|
5852
5852
|
updatedAt: Date;
|
|
5853
5853
|
status: "active" | "inactive" | "archived";
|
|
@@ -68,7 +68,7 @@ export declare const personRelationshipsService: {
|
|
|
68
68
|
tableName: "person_relationships";
|
|
69
69
|
dataType: "string";
|
|
70
70
|
columnType: "PgEnumColumn";
|
|
71
|
-
data: "partner" | "
|
|
71
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
72
72
|
driverParam: string;
|
|
73
73
|
notNull: true;
|
|
74
74
|
hasDefault: false;
|
|
@@ -85,7 +85,7 @@ export declare const personRelationshipsService: {
|
|
|
85
85
|
tableName: "person_relationships";
|
|
86
86
|
dataType: "string";
|
|
87
87
|
columnType: "PgEnumColumn";
|
|
88
|
-
data: "partner" | "
|
|
88
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
89
89
|
driverParam: string;
|
|
90
90
|
notNull: false;
|
|
91
91
|
hasDefault: false;
|
|
@@ -222,8 +222,8 @@ export declare const personRelationshipsService: {
|
|
|
222
222
|
id: string;
|
|
223
223
|
fromPersonId: string;
|
|
224
224
|
toPersonId: string;
|
|
225
|
-
kind: "partner" | "
|
|
226
|
-
inverseKind: "partner" | "
|
|
225
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
226
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
227
227
|
startDate: string | null;
|
|
228
228
|
endDate: string | null;
|
|
229
229
|
isPrimary: boolean;
|
|
@@ -288,7 +288,7 @@ export declare const personRelationshipsService: {
|
|
|
288
288
|
tableName: "person_relationships";
|
|
289
289
|
dataType: "string";
|
|
290
290
|
columnType: "PgEnumColumn";
|
|
291
|
-
data: "partner" | "
|
|
291
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
292
292
|
driverParam: string;
|
|
293
293
|
notNull: true;
|
|
294
294
|
hasDefault: false;
|
|
@@ -305,7 +305,7 @@ export declare const personRelationshipsService: {
|
|
|
305
305
|
tableName: "person_relationships";
|
|
306
306
|
dataType: "string";
|
|
307
307
|
columnType: "PgEnumColumn";
|
|
308
|
-
data: "partner" | "
|
|
308
|
+
data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
309
309
|
driverParam: string;
|
|
310
310
|
notNull: false;
|
|
311
311
|
hasDefault: false;
|
|
@@ -443,8 +443,8 @@ export declare const personRelationshipsService: {
|
|
|
443
443
|
id: string;
|
|
444
444
|
fromPersonId: string;
|
|
445
445
|
toPersonId: string;
|
|
446
|
-
kind: "partner" | "
|
|
447
|
-
inverseKind: "partner" | "
|
|
446
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
447
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
448
448
|
startDate: string | null;
|
|
449
449
|
endDate: string | null;
|
|
450
450
|
isPrimary: boolean;
|
|
@@ -475,18 +475,18 @@ export declare const personRelationshipsService: {
|
|
|
475
475
|
startDate: string | null;
|
|
476
476
|
endDate: string | null;
|
|
477
477
|
notes: string | null;
|
|
478
|
-
kind: "partner" | "
|
|
478
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
479
479
|
isPrimary: boolean;
|
|
480
480
|
fromPersonId: string;
|
|
481
481
|
toPersonId: string;
|
|
482
|
-
inverseKind: "partner" | "
|
|
482
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
483
483
|
} | null>;
|
|
484
484
|
updatePersonRelationship(db: PostgresJsDatabase, id: string, data: UpdatePersonRelationshipInput): Promise<{
|
|
485
485
|
id: string;
|
|
486
486
|
fromPersonId: string;
|
|
487
487
|
toPersonId: string;
|
|
488
|
-
kind: "partner" | "
|
|
489
|
-
inverseKind: "partner" | "
|
|
488
|
+
kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
|
|
489
|
+
inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
|
|
490
490
|
startDate: string | null;
|
|
491
491
|
endDate: string | null;
|
|
492
492
|
isPrimary: boolean;
|
|
@@ -32,8 +32,8 @@ export declare const pipelinesService: {
|
|
|
32
32
|
updatedAt: Date;
|
|
33
33
|
} | null>;
|
|
34
34
|
createPipeline(db: PostgresJsDatabase, data: CreatePipelineInput): Promise<{
|
|
35
|
-
id: string;
|
|
36
35
|
name: string;
|
|
36
|
+
id: string;
|
|
37
37
|
createdAt: Date;
|
|
38
38
|
updatedAt: Date;
|
|
39
39
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
@@ -82,8 +82,8 @@ export declare const pipelinesService: {
|
|
|
82
82
|
updatedAt: Date;
|
|
83
83
|
} | null>;
|
|
84
84
|
createStage(db: PostgresJsDatabase, data: CreateStageInput): Promise<{
|
|
85
|
-
id: string;
|
|
86
85
|
name: string;
|
|
86
|
+
id: string;
|
|
87
87
|
createdAt: Date;
|
|
88
88
|
updatedAt: Date;
|
|
89
89
|
sortOrder: number;
|
package/dist/validation.d.ts
CHANGED
|
@@ -53,8 +53,8 @@ export declare const activityTypeSchema: z.ZodEnum<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const activityStatusSchema: z.ZodEnum<{
|
|
55
55
|
done: "done";
|
|
56
|
-
planned: "planned";
|
|
57
56
|
cancelled: "cancelled";
|
|
57
|
+
planned: "planned";
|
|
58
58
|
}>;
|
|
59
59
|
export declare const participantRoleSchema: z.ZodEnum<{
|
|
60
60
|
other: "other";
|
|
@@ -70,10 +70,10 @@ export declare const activityLinkRoleSchema: z.ZodEnum<{
|
|
|
70
70
|
export declare const customFieldTypeSchema: z.ZodEnum<{
|
|
71
71
|
boolean: "boolean";
|
|
72
72
|
json: "json";
|
|
73
|
+
text: "text";
|
|
73
74
|
date: "date";
|
|
74
75
|
set: "set";
|
|
75
76
|
enum: "enum";
|
|
76
|
-
text: "text";
|
|
77
77
|
phone: "phone";
|
|
78
78
|
varchar: "varchar";
|
|
79
79
|
double: "double";
|
|
@@ -229,18 +229,18 @@ export declare const personCoreSchema: z.ZodObject<{
|
|
|
229
229
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
230
230
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
231
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
-
accessibilityEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
232
|
+
accessibilityEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
233
233
|
enc: z.ZodString;
|
|
234
|
-
}, z.core.$strip
|
|
235
|
-
dietaryEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
234
|
+
}, z.core.$strip>>>>;
|
|
235
|
+
dietaryEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
236
236
|
enc: z.ZodString;
|
|
237
|
-
}, z.core.$strip
|
|
238
|
-
loyaltyEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
237
|
+
}, z.core.$strip>>>>;
|
|
238
|
+
loyaltyEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
239
239
|
enc: z.ZodString;
|
|
240
|
-
}, z.core.$strip
|
|
241
|
-
insuranceEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
240
|
+
}, z.core.$strip>>>>;
|
|
241
|
+
insuranceEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
242
242
|
enc: z.ZodString;
|
|
243
|
-
}, z.core.$strip
|
|
243
|
+
}, z.core.$strip>>>>;
|
|
244
244
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
245
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
246
|
website: z.ZodPipe<z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -275,18 +275,18 @@ export declare const insertPersonSchema: z.ZodObject<{
|
|
|
275
275
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
276
276
|
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
277
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
-
accessibilityEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
278
|
+
accessibilityEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
279
279
|
enc: z.ZodString;
|
|
280
|
-
}, z.core.$strip
|
|
281
|
-
dietaryEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
280
|
+
}, z.core.$strip>>>>;
|
|
281
|
+
dietaryEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
282
282
|
enc: z.ZodString;
|
|
283
|
-
}, z.core.$strip
|
|
284
|
-
loyaltyEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
283
|
+
}, z.core.$strip>>>>;
|
|
284
|
+
loyaltyEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
285
285
|
enc: z.ZodString;
|
|
286
|
-
}, z.core.$strip
|
|
287
|
-
insuranceEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
286
|
+
}, z.core.$strip>>>>;
|
|
287
|
+
insuranceEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
288
288
|
enc: z.ZodString;
|
|
289
|
-
}, z.core.$strip
|
|
289
|
+
}, z.core.$strip>>>>;
|
|
290
290
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
291
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
292
|
website: z.ZodPipe<z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -321,18 +321,18 @@ export declare const updatePersonSchema: z.ZodObject<{
|
|
|
321
321
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
322
322
|
birthday: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
323
323
|
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
324
|
-
accessibilityEncrypted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
324
|
+
accessibilityEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
325
325
|
enc: z.ZodString;
|
|
326
|
-
}, z.core.$strip
|
|
327
|
-
dietaryEncrypted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
326
|
+
}, z.core.$strip>>>>>;
|
|
327
|
+
dietaryEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
328
328
|
enc: z.ZodString;
|
|
329
|
-
}, z.core.$strip
|
|
330
|
-
loyaltyEncrypted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
329
|
+
}, z.core.$strip>>>>>;
|
|
330
|
+
loyaltyEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
331
331
|
enc: z.ZodString;
|
|
332
|
-
}, z.core.$strip
|
|
333
|
-
insuranceEncrypted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
332
|
+
}, z.core.$strip>>>>>;
|
|
333
|
+
insuranceEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
334
334
|
enc: z.ZodString;
|
|
335
|
-
}, z.core.$strip
|
|
335
|
+
}, z.core.$strip>>>>>;
|
|
336
336
|
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
337
337
|
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
338
338
|
website: z.ZodOptional<z.ZodPipe<z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodLiteral<"">]>, z.ZodTransform<string | null, string | null | undefined>>>;
|
|
@@ -672,8 +672,8 @@ export declare const activityCoreSchema: z.ZodObject<{
|
|
|
672
672
|
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
673
|
status: z.ZodDefault<z.ZodEnum<{
|
|
674
674
|
done: "done";
|
|
675
|
-
planned: "planned";
|
|
676
675
|
cancelled: "cancelled";
|
|
676
|
+
planned: "planned";
|
|
677
677
|
}>>;
|
|
678
678
|
dueAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
679
679
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -693,8 +693,8 @@ export declare const insertActivitySchema: z.ZodObject<{
|
|
|
693
693
|
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
694
694
|
status: z.ZodDefault<z.ZodEnum<{
|
|
695
695
|
done: "done";
|
|
696
|
-
planned: "planned";
|
|
697
696
|
cancelled: "cancelled";
|
|
697
|
+
planned: "planned";
|
|
698
698
|
}>>;
|
|
699
699
|
dueAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
700
700
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -714,8 +714,8 @@ export declare const updateActivitySchema: z.ZodObject<{
|
|
|
714
714
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
715
715
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
716
716
|
done: "done";
|
|
717
|
-
planned: "planned";
|
|
718
717
|
cancelled: "cancelled";
|
|
718
|
+
planned: "planned";
|
|
719
719
|
}>>>;
|
|
720
720
|
dueAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
721
721
|
completedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -728,8 +728,8 @@ export declare const activityListQuerySchema: z.ZodObject<{
|
|
|
728
728
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
729
729
|
status: z.ZodOptional<z.ZodEnum<{
|
|
730
730
|
done: "done";
|
|
731
|
-
planned: "planned";
|
|
732
731
|
cancelled: "cancelled";
|
|
732
|
+
planned: "planned";
|
|
733
733
|
}>>;
|
|
734
734
|
type: z.ZodOptional<z.ZodEnum<{
|
|
735
735
|
email: "email";
|
|
@@ -780,10 +780,10 @@ export declare const customFieldDefinitionCoreSchema: z.ZodObject<{
|
|
|
780
780
|
fieldType: z.ZodEnum<{
|
|
781
781
|
boolean: "boolean";
|
|
782
782
|
json: "json";
|
|
783
|
+
text: "text";
|
|
783
784
|
date: "date";
|
|
784
785
|
set: "set";
|
|
785
786
|
enum: "enum";
|
|
786
|
-
text: "text";
|
|
787
787
|
phone: "phone";
|
|
788
788
|
varchar: "varchar";
|
|
789
789
|
double: "double";
|
|
@@ -810,10 +810,10 @@ export declare const insertCustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
810
810
|
fieldType: z.ZodEnum<{
|
|
811
811
|
boolean: "boolean";
|
|
812
812
|
json: "json";
|
|
813
|
+
text: "text";
|
|
813
814
|
date: "date";
|
|
814
815
|
set: "set";
|
|
815
816
|
enum: "enum";
|
|
816
|
-
text: "text";
|
|
817
817
|
phone: "phone";
|
|
818
818
|
varchar: "varchar";
|
|
819
819
|
double: "double";
|
|
@@ -840,10 +840,10 @@ export declare const updateCustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
840
840
|
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
841
841
|
boolean: "boolean";
|
|
842
842
|
json: "json";
|
|
843
|
+
text: "text";
|
|
843
844
|
date: "date";
|
|
844
845
|
set: "set";
|
|
845
846
|
enum: "enum";
|
|
846
|
-
text: "text";
|
|
847
847
|
phone: "phone";
|
|
848
848
|
varchar: "varchar";
|
|
849
849
|
double: "double";
|
|
@@ -913,9 +913,9 @@ export declare const personDocumentCoreSchema: z.ZodObject<{
|
|
|
913
913
|
id_card: "id_card";
|
|
914
914
|
driver_license: "driver_license";
|
|
915
915
|
}>;
|
|
916
|
-
numberEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
916
|
+
numberEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
917
917
|
enc: z.ZodString;
|
|
918
|
-
}, z.core.$strip
|
|
918
|
+
}, z.core.$strip>>>>;
|
|
919
919
|
issuingAuthority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
920
920
|
issuingCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
921
921
|
issueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -933,9 +933,9 @@ export declare const insertPersonDocumentSchema: z.ZodObject<{
|
|
|
933
933
|
id_card: "id_card";
|
|
934
934
|
driver_license: "driver_license";
|
|
935
935
|
}>;
|
|
936
|
-
numberEncrypted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
936
|
+
numberEncrypted: z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
937
937
|
enc: z.ZodString;
|
|
938
|
-
}, z.core.$strip
|
|
938
|
+
}, z.core.$strip>>>>;
|
|
939
939
|
issuingAuthority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
940
940
|
issuingCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
941
941
|
issueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -953,9 +953,9 @@ export declare const updatePersonDocumentSchema: z.ZodObject<{
|
|
|
953
953
|
id_card: "id_card";
|
|
954
954
|
driver_license: "driver_license";
|
|
955
955
|
}>>;
|
|
956
|
-
numberEncrypted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
956
|
+
numberEncrypted: z.ZodOptional<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
|
|
957
957
|
enc: z.ZodString;
|
|
958
|
-
}, z.core.$strip
|
|
958
|
+
}, z.core.$strip>>>>>;
|
|
959
959
|
issuingAuthority: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
960
960
|
issuingCountry: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
961
961
|
issueDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -1172,10 +1172,10 @@ export type CustomerSignalListQueryInput = z.infer<typeof customerSignalListQuer
|
|
|
1172
1172
|
export type ResolveCustomerSignalInput = z.infer<typeof resolveCustomerSignalSchema>;
|
|
1173
1173
|
export declare const personRelationshipKindSchema: z.ZodEnum<{
|
|
1174
1174
|
partner: "partner";
|
|
1175
|
-
other: "other";
|
|
1176
|
-
spouse: "spouse";
|
|
1177
1175
|
parent: "parent";
|
|
1178
1176
|
child: "child";
|
|
1177
|
+
other: "other";
|
|
1178
|
+
spouse: "spouse";
|
|
1179
1179
|
sibling: "sibling";
|
|
1180
1180
|
guardian: "guardian";
|
|
1181
1181
|
ward: "ward";
|
|
@@ -1187,10 +1187,10 @@ export declare const insertPersonRelationshipSchema: z.ZodObject<{
|
|
|
1187
1187
|
toPersonId: z.ZodString;
|
|
1188
1188
|
kind: z.ZodEnum<{
|
|
1189
1189
|
partner: "partner";
|
|
1190
|
-
other: "other";
|
|
1191
|
-
spouse: "spouse";
|
|
1192
1190
|
parent: "parent";
|
|
1193
1191
|
child: "child";
|
|
1192
|
+
other: "other";
|
|
1193
|
+
spouse: "spouse";
|
|
1194
1194
|
sibling: "sibling";
|
|
1195
1195
|
guardian: "guardian";
|
|
1196
1196
|
ward: "ward";
|
|
@@ -1200,10 +1200,10 @@ export declare const insertPersonRelationshipSchema: z.ZodObject<{
|
|
|
1200
1200
|
}>;
|
|
1201
1201
|
inverseKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1202
1202
|
partner: "partner";
|
|
1203
|
-
other: "other";
|
|
1204
|
-
spouse: "spouse";
|
|
1205
1203
|
parent: "parent";
|
|
1206
1204
|
child: "child";
|
|
1205
|
+
other: "other";
|
|
1206
|
+
spouse: "spouse";
|
|
1207
1207
|
sibling: "sibling";
|
|
1208
1208
|
guardian: "guardian";
|
|
1209
1209
|
ward: "ward";
|
|
@@ -1225,10 +1225,10 @@ export declare const updatePersonRelationshipSchema: z.ZodObject<{
|
|
|
1225
1225
|
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1226
1226
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1227
1227
|
partner: "partner";
|
|
1228
|
-
other: "other";
|
|
1229
|
-
spouse: "spouse";
|
|
1230
1228
|
parent: "parent";
|
|
1231
1229
|
child: "child";
|
|
1230
|
+
other: "other";
|
|
1231
|
+
spouse: "spouse";
|
|
1232
1232
|
sibling: "sibling";
|
|
1233
1233
|
guardian: "guardian";
|
|
1234
1234
|
ward: "ward";
|
|
@@ -1239,10 +1239,10 @@ export declare const updatePersonRelationshipSchema: z.ZodObject<{
|
|
|
1239
1239
|
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1240
1240
|
inverseKind: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1241
1241
|
partner: "partner";
|
|
1242
|
-
other: "other";
|
|
1243
|
-
spouse: "spouse";
|
|
1244
1242
|
parent: "parent";
|
|
1245
1243
|
child: "child";
|
|
1244
|
+
other: "other";
|
|
1245
|
+
spouse: "spouse";
|
|
1246
1246
|
sibling: "sibling";
|
|
1247
1247
|
guardian: "guardian";
|
|
1248
1248
|
ward: "ward";
|
|
@@ -1256,10 +1256,10 @@ export declare const personRelationshipListQuerySchema: z.ZodObject<{
|
|
|
1256
1256
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1257
1257
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1258
1258
|
partner: "partner";
|
|
1259
|
-
other: "other";
|
|
1260
|
-
spouse: "spouse";
|
|
1261
1259
|
parent: "parent";
|
|
1262
1260
|
child: "child";
|
|
1261
|
+
other: "other";
|
|
1262
|
+
spouse: "spouse";
|
|
1263
1263
|
sibling: "sibling";
|
|
1264
1264
|
guardian: "guardian";
|
|
1265
1265
|
ward: "ward";
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;EAA6C,CAAA;AAC5E,eAAO,MAAM,kBAAkB;;;;;EAAqD,CAAA;AACpF,eAAO,MAAM,0BAA0B;;;;;;;EAOrC,CAAA;AACF,eAAO,MAAM,4BAA4B;;;EAAkC,CAAA;AAC3E,eAAO,MAAM,uBAAuB;;;;;EAA8C,CAAA;AAClF,eAAO,MAAM,iBAAiB;;;;;;;EAO5B,CAAA;AACF,eAAO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pF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAIhG,eAAO,MAAM,sBAAsB;;iBAEjC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;iBAEjC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAA;AAIF,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAA;AAYF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;iBAA0B,CAAA;AACtE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;iBAAoC,CAAA;AAEhF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAC5F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE5F,eAAO,MAAM,4BAA4B;;iBAEvC,CAAA;AAIF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBAOvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBAKvC,CAAA;AAIF,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAA"}
|
package/dist/validation.js
CHANGED
|
@@ -113,11 +113,13 @@ export const personCoreSchema = z.object({
|
|
|
113
113
|
tags: z.array(z.string()).default([]),
|
|
114
114
|
birthday: z.string().date().nullable().optional(),
|
|
115
115
|
notes: z.string().nullable().optional(),
|
|
116
|
-
// Encrypted PII slots (canonical store; documents live in person_documents)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
// Encrypted PII slots (canonical store; documents live in person_documents).
|
|
117
|
+
// `z.lazy(() => …)` defers cross-package schema dereferencing until
|
|
118
|
+
// first parse — see #501 for the bundler chunk-init hazard otherwise.
|
|
119
|
+
accessibilityEncrypted: z.lazy(() => kmsEnvelopeSchema).optional(),
|
|
120
|
+
dietaryEncrypted: z.lazy(() => kmsEnvelopeSchema).optional(),
|
|
121
|
+
loyaltyEncrypted: z.lazy(() => kmsEnvelopeSchema).optional(),
|
|
122
|
+
insuranceEncrypted: z.lazy(() => kmsEnvelopeSchema).optional(),
|
|
121
123
|
// Inline identity fields — synced to identity module on create/update
|
|
122
124
|
email: z.string().email().nullable().optional(),
|
|
123
125
|
phone: z.string().nullable().optional(),
|
|
@@ -316,7 +318,8 @@ export const personDocumentTypeSchema = z.enum([
|
|
|
316
318
|
]);
|
|
317
319
|
export const personDocumentCoreSchema = z.object({
|
|
318
320
|
type: personDocumentTypeSchema,
|
|
319
|
-
|
|
321
|
+
// `z.lazy` for cross-package init-cycle protection — see #501.
|
|
322
|
+
numberEncrypted: z.lazy(() => kmsEnvelopeSchema).optional(),
|
|
320
323
|
issuingAuthority: z.string().nullable().optional(),
|
|
321
324
|
issuingCountry: z.string().nullable().optional(),
|
|
322
325
|
issueDate: z.string().date().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/crm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"drizzle-orm": "^0.45.2",
|
|
35
35
|
"hono": "^4.12.10",
|
|
36
36
|
"zod": "^4.3.6",
|
|
37
|
-
"@voyantjs/core": "0.
|
|
38
|
-
"@voyantjs/db": "0.
|
|
39
|
-
"@voyantjs/hono": "0.
|
|
40
|
-
"@voyantjs/identity": "0.
|
|
41
|
-
"@voyantjs/utils": "0.
|
|
37
|
+
"@voyantjs/core": "0.29.0",
|
|
38
|
+
"@voyantjs/db": "0.29.0",
|
|
39
|
+
"@voyantjs/hono": "0.29.0",
|
|
40
|
+
"@voyantjs/identity": "0.29.0",
|
|
41
|
+
"@voyantjs/utils": "0.29.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "^6.0.2",
|