@voyantjs/crm 0.62.3 → 0.63.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/action-ledger-capabilities.d.ts +20 -0
- package/dist/action-ledger-capabilities.d.ts.map +1 -0
- package/dist/action-ledger-capabilities.js +16 -0
- package/dist/routes/accounts.d.ts +19 -19
- package/dist/routes/activities.d.ts +6 -6
- package/dist/routes/custom-fields.d.ts +7 -7
- package/dist/routes/customer-signals.d.ts +14 -14
- package/dist/routes/index.d.ts +112 -60
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/opportunities.d.ts +4 -4
- package/dist/routes/person-documents.d.ts +67 -7
- package/dist/routes/person-documents.d.ts.map +1 -1
- package/dist/routes/person-documents.js +80 -0
- package/dist/routes/person-relationships.d.ts +2 -2
- package/dist/routes/quotes.d.ts +2 -2
- package/dist/schema-activities.d.ts +4 -4
- package/dist/schema-signals.d.ts +2 -2
- package/dist/service/accounts-organizations.d.ts +3 -3
- package/dist/service/accounts-people.d.ts +10 -10
- package/dist/service/accounts.d.ts +13 -13
- package/dist/service/activities.d.ts +6 -6
- package/dist/service/custom-fields.d.ts +9 -9
- package/dist/service/customer-signals.d.ts +18 -18
- package/dist/service/index.d.ts +72 -65
- package/dist/service/index.d.ts.map +1 -1
- package/dist/service/opportunities.d.ts +4 -4
- package/dist/service/person-documents.d.ts +17 -4
- package/dist/service/person-documents.d.ts.map +1 -1
- package/dist/service/person-documents.js +16 -0
- package/dist/service/person-relationships.d.ts +3 -3
- package/dist/service/quotes.d.ts +2 -2
- package/dist/validation.d.ts +35 -35
- package/package.json +7 -6
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const PERSON_DOCUMENT_REVEAL_CAPABILITY: {
|
|
2
|
+
readonly id: "crm-pii:read:person-document";
|
|
3
|
+
readonly version: "v1";
|
|
4
|
+
readonly resource: "person_document";
|
|
5
|
+
readonly action: "read";
|
|
6
|
+
readonly risk: "high";
|
|
7
|
+
readonly ledgerPolicy: "required";
|
|
8
|
+
readonly approvalPolicy: "none";
|
|
9
|
+
readonly reversible: false;
|
|
10
|
+
readonly allowedActorTypes: readonly ["staff", "system"];
|
|
11
|
+
readonly requiredGrants: readonly [{
|
|
12
|
+
readonly resource: "crm-pii";
|
|
13
|
+
readonly action: "read";
|
|
14
|
+
}];
|
|
15
|
+
};
|
|
16
|
+
export declare const PERSON_DOCUMENT_REVEAL_ACTION_NAME = "crm.person_document.reveal";
|
|
17
|
+
export declare const PERSON_DOCUMENT_REVEAL_ACTION_VERSION = "v1";
|
|
18
|
+
export declare const PERSON_DOCUMENT_REVEAL_AUTHORIZATION_SOURCE: "scope";
|
|
19
|
+
export declare const PERSON_DOCUMENT_REVEAL_DECISION_POLICY: "scope_grant";
|
|
20
|
+
//# sourceMappingURL=action-ledger-capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-ledger-capabilities.d.ts","sourceRoot":"","sources":["../src/action-ledger-capabilities.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;CAWO,CAAA;AAErD,eAAO,MAAM,kCAAkC,+BAA+B,CAAA;AAC9E,eAAO,MAAM,qCAAqC,OAAO,CAAA;AACzD,eAAO,MAAM,2CAA2C,EAAG,OAAgB,CAAA;AAC3E,eAAO,MAAM,sCAAsC,EAAG,aAAsB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const PERSON_DOCUMENT_REVEAL_CAPABILITY = {
|
|
2
|
+
id: "crm-pii:read:person-document",
|
|
3
|
+
version: "v1",
|
|
4
|
+
resource: "person_document",
|
|
5
|
+
action: "read",
|
|
6
|
+
risk: "high",
|
|
7
|
+
ledgerPolicy: "required",
|
|
8
|
+
approvalPolicy: "none",
|
|
9
|
+
reversible: false,
|
|
10
|
+
allowedActorTypes: ["staff", "system"],
|
|
11
|
+
requiredGrants: [{ resource: "crm-pii", action: "read" }],
|
|
12
|
+
};
|
|
13
|
+
export const PERSON_DOCUMENT_REVEAL_ACTION_NAME = "crm.person_document.reveal";
|
|
14
|
+
export const PERSON_DOCUMENT_REVEAL_ACTION_VERSION = "v1";
|
|
15
|
+
export const PERSON_DOCUMENT_REVEAL_AUTHORIZATION_SOURCE = "scope";
|
|
16
|
+
export const PERSON_DOCUMENT_REVEAL_DECISION_POLICY = "scope_grant";
|
|
@@ -45,13 +45,13 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
45
45
|
input: {};
|
|
46
46
|
output: {
|
|
47
47
|
data: {
|
|
48
|
-
source: string | null;
|
|
49
|
-
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
50
48
|
name: string;
|
|
51
49
|
id: string;
|
|
50
|
+
status: "active" | "inactive" | "archived";
|
|
52
51
|
createdAt: string;
|
|
52
|
+
source: string | null;
|
|
53
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
53
54
|
updatedAt: string;
|
|
54
|
-
status: "active" | "inactive" | "archived";
|
|
55
55
|
notes: string | null;
|
|
56
56
|
website: string | null;
|
|
57
57
|
legalName: string | null;
|
|
@@ -228,12 +228,12 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
228
228
|
};
|
|
229
229
|
output: {
|
|
230
230
|
data: {
|
|
231
|
+
id: string;
|
|
232
|
+
createdAt: string;
|
|
231
233
|
value: string;
|
|
232
234
|
metadata: {
|
|
233
235
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
234
236
|
} | null;
|
|
235
|
-
id: string;
|
|
236
|
-
createdAt: string;
|
|
237
237
|
updatedAt: string;
|
|
238
238
|
notes: string | null;
|
|
239
239
|
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
@@ -261,7 +261,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
261
261
|
id: string;
|
|
262
262
|
entityType: string;
|
|
263
263
|
entityId: string;
|
|
264
|
-
label: "
|
|
264
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
265
265
|
fullText: string | null;
|
|
266
266
|
line1: string | null;
|
|
267
267
|
line2: string | null;
|
|
@@ -295,18 +295,18 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
295
295
|
};
|
|
296
296
|
output: {
|
|
297
297
|
data: {
|
|
298
|
+
id: string;
|
|
299
|
+
createdAt: string;
|
|
298
300
|
metadata: {
|
|
299
301
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
300
302
|
} | null;
|
|
301
|
-
id: string;
|
|
302
|
-
createdAt: string;
|
|
303
303
|
updatedAt: string;
|
|
304
304
|
notes: string | null;
|
|
305
305
|
timezone: string | null;
|
|
306
306
|
region: string | null;
|
|
307
307
|
entityType: string;
|
|
308
308
|
entityId: string;
|
|
309
|
-
label: "
|
|
309
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
310
310
|
isPrimary: boolean;
|
|
311
311
|
fullText: string | null;
|
|
312
312
|
line1: string | null;
|
|
@@ -365,8 +365,8 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
365
365
|
output: {
|
|
366
366
|
data: {
|
|
367
367
|
id: string;
|
|
368
|
-
createdAt: string;
|
|
369
368
|
organizationId: string;
|
|
369
|
+
createdAt: string;
|
|
370
370
|
authorId: string;
|
|
371
371
|
content: string;
|
|
372
372
|
};
|
|
@@ -720,12 +720,12 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
720
720
|
};
|
|
721
721
|
output: {
|
|
722
722
|
data: {
|
|
723
|
+
id: string;
|
|
724
|
+
createdAt: string;
|
|
723
725
|
value: string;
|
|
724
726
|
metadata: {
|
|
725
727
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
726
728
|
} | null;
|
|
727
|
-
id: string;
|
|
728
|
-
createdAt: string;
|
|
729
729
|
updatedAt: string;
|
|
730
730
|
notes: string | null;
|
|
731
731
|
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
@@ -753,7 +753,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
753
753
|
id: string;
|
|
754
754
|
entityType: string;
|
|
755
755
|
entityId: string;
|
|
756
|
-
label: "
|
|
756
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
757
757
|
fullText: string | null;
|
|
758
758
|
line1: string | null;
|
|
759
759
|
line2: string | null;
|
|
@@ -787,18 +787,18 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
787
787
|
};
|
|
788
788
|
output: {
|
|
789
789
|
data: {
|
|
790
|
+
id: string;
|
|
791
|
+
createdAt: string;
|
|
790
792
|
metadata: {
|
|
791
793
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
792
794
|
} | null;
|
|
793
|
-
id: string;
|
|
794
|
-
createdAt: string;
|
|
795
795
|
updatedAt: string;
|
|
796
796
|
notes: string | null;
|
|
797
797
|
timezone: string | null;
|
|
798
798
|
region: string | null;
|
|
799
799
|
entityType: string;
|
|
800
800
|
entityId: string;
|
|
801
|
-
label: "
|
|
801
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
802
802
|
isPrimary: boolean;
|
|
803
803
|
fullText: string | null;
|
|
804
804
|
line1: string | null;
|
|
@@ -1098,8 +1098,8 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1098
1098
|
output: {
|
|
1099
1099
|
data: {
|
|
1100
1100
|
id: string;
|
|
1101
|
-
createdAt: string;
|
|
1102
1101
|
organizationId: string | null;
|
|
1102
|
+
createdAt: string;
|
|
1103
1103
|
personId: string;
|
|
1104
1104
|
content: string | null;
|
|
1105
1105
|
channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
|
|
@@ -1140,9 +1140,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1140
1140
|
data: {
|
|
1141
1141
|
name: string;
|
|
1142
1142
|
id: string;
|
|
1143
|
+
description: string | null;
|
|
1143
1144
|
createdAt: string;
|
|
1144
1145
|
updatedAt: string;
|
|
1145
|
-
description: string | null;
|
|
1146
1146
|
conditions: {
|
|
1147
1147
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1148
1148
|
} | null;
|
|
@@ -1300,7 +1300,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1300
1300
|
id: string;
|
|
1301
1301
|
entityType: string;
|
|
1302
1302
|
entityId: string;
|
|
1303
|
-
label: "
|
|
1303
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
1304
1304
|
fullText: string | null;
|
|
1305
1305
|
line1: string | null;
|
|
1306
1306
|
line2: 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: "
|
|
18
|
+
status: "cancelled" | "done" | "planned";
|
|
19
19
|
dueAt: string | null;
|
|
20
20
|
completedAt: string | null;
|
|
21
21
|
location: string | null;
|
|
@@ -37,12 +37,12 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
37
37
|
input: {};
|
|
38
38
|
output: {
|
|
39
39
|
data: {
|
|
40
|
+
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
40
41
|
id: string;
|
|
42
|
+
description: string | null;
|
|
43
|
+
status: "cancelled" | "done" | "planned";
|
|
41
44
|
createdAt: string;
|
|
42
45
|
updatedAt: string;
|
|
43
|
-
status: "done" | "cancelled" | "planned";
|
|
44
|
-
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
45
|
-
description: string | null;
|
|
46
46
|
ownerId: string | null;
|
|
47
47
|
subject: string;
|
|
48
48
|
dueAt: 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: "
|
|
82
|
+
status: "cancelled" | "done" | "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: "
|
|
120
|
+
status: "cancelled" | "done" | "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" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
19
19
|
isRequired: boolean;
|
|
20
20
|
isSearchable: boolean;
|
|
21
21
|
options: {
|
|
@@ -39,17 +39,17 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
39
39
|
input: {};
|
|
40
40
|
output: {
|
|
41
41
|
data: {
|
|
42
|
-
key: string;
|
|
43
42
|
id: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
43
|
options: {
|
|
47
44
|
label: string;
|
|
48
45
|
value: string;
|
|
49
46
|
}[] | null;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
key: string;
|
|
49
|
+
updatedAt: string;
|
|
50
50
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
51
51
|
label: string;
|
|
52
|
-
fieldType: "boolean" | "json" | "
|
|
52
|
+
fieldType: "boolean" | "json" | "date" | "text" | "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" | "date" | "text" | "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" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
127
127
|
isRequired: boolean;
|
|
128
128
|
isSearchable: boolean;
|
|
129
129
|
options: {
|
|
@@ -15,9 +15,9 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
15
15
|
personId: string;
|
|
16
16
|
productId: string | null;
|
|
17
17
|
optionUnitId: string | null;
|
|
18
|
-
kind: "
|
|
18
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
19
19
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
20
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost"
|
|
20
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
21
21
|
priority: string;
|
|
22
22
|
notes: string | null;
|
|
23
23
|
tags: string[];
|
|
@@ -52,16 +52,16 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
52
52
|
input: {};
|
|
53
53
|
output: {
|
|
54
54
|
data: {
|
|
55
|
+
id: string;
|
|
56
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
57
|
+
createdAt: string;
|
|
55
58
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
56
59
|
metadata: {
|
|
57
60
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
58
61
|
} | null;
|
|
59
|
-
id: string;
|
|
60
|
-
createdAt: string;
|
|
61
62
|
updatedAt: string;
|
|
62
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
63
63
|
notes: string | null;
|
|
64
|
-
kind: "
|
|
64
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
65
65
|
tags: string[];
|
|
66
66
|
personId: string;
|
|
67
67
|
productId: string | null;
|
|
@@ -102,9 +102,9 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
102
102
|
personId: string;
|
|
103
103
|
productId: string | null;
|
|
104
104
|
optionUnitId: string | null;
|
|
105
|
-
kind: "
|
|
105
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
106
106
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
107
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost"
|
|
107
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
108
108
|
priority: string;
|
|
109
109
|
notes: string | null;
|
|
110
110
|
tags: string[];
|
|
@@ -148,9 +148,9 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
148
148
|
personId: string;
|
|
149
149
|
productId: string | null;
|
|
150
150
|
optionUnitId: string | null;
|
|
151
|
-
kind: "
|
|
151
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
152
152
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
153
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost"
|
|
153
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
154
154
|
priority: string;
|
|
155
155
|
notes: string | null;
|
|
156
156
|
tags: string[];
|
|
@@ -220,9 +220,9 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
220
220
|
personId: string;
|
|
221
221
|
productId: string | null;
|
|
222
222
|
optionUnitId: string | null;
|
|
223
|
-
kind: "
|
|
223
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
224
224
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
225
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost"
|
|
225
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
226
226
|
priority: string;
|
|
227
227
|
notes: string | null;
|
|
228
228
|
tags: string[];
|
|
@@ -255,9 +255,9 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
255
255
|
personId: string;
|
|
256
256
|
productId: string | null;
|
|
257
257
|
optionUnitId: string | null;
|
|
258
|
-
kind: "
|
|
258
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
259
259
|
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
260
|
-
status: "new" | "contacted" | "qualified" | "converted" | "lost"
|
|
260
|
+
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
261
261
|
priority: string;
|
|
262
262
|
notes: string | null;
|
|
263
263
|
tags: string[];
|