@ebowwa/crm 0.1.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/README.md +174 -0
- package/dist/cli/commands/activities.d.ts +11 -0
- package/dist/cli/commands/activities.d.ts.map +1 -0
- package/dist/cli/commands/activities.js +427 -0
- package/dist/cli/commands/activities.js.map +1 -0
- package/dist/cli/commands/contacts.d.ts +11 -0
- package/dist/cli/commands/contacts.d.ts.map +1 -0
- package/dist/cli/commands/contacts.js +458 -0
- package/dist/cli/commands/contacts.js.map +1 -0
- package/dist/cli/commands/deals.d.ts +11 -0
- package/dist/cli/commands/deals.d.ts.map +1 -0
- package/dist/cli/commands/deals.js +498 -0
- package/dist/cli/commands/deals.js.map +1 -0
- package/dist/cli/commands/media.d.ts +11 -0
- package/dist/cli/commands/media.d.ts.map +1 -0
- package/dist/cli/commands/media.js +417 -0
- package/dist/cli/commands/media.js.map +1 -0
- package/dist/cli/commands/search.d.ts +11 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +346 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/index.d.ts +13 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +173 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/repl.d.ts +15 -0
- package/dist/cli/repl.d.ts.map +1 -0
- package/dist/cli/repl.js +318 -0
- package/dist/cli/repl.js.map +1 -0
- package/dist/cli/utils/config.d.ts +91 -0
- package/dist/cli/utils/config.d.ts.map +1 -0
- package/dist/cli/utils/config.js +212 -0
- package/dist/cli/utils/config.js.map +1 -0
- package/dist/cli/utils/output.d.ts +136 -0
- package/dist/cli/utils/output.d.ts.map +1 -0
- package/dist/cli/utils/output.js +323 -0
- package/dist/cli/utils/output.js.map +1 -0
- package/dist/cli/utils/prompt.d.ts +81 -0
- package/dist/cli/utils/prompt.d.ts.map +1 -0
- package/dist/cli/utils/prompt.js +341 -0
- package/dist/cli/utils/prompt.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +32 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/schemas.d.ts +3050 -0
- package/dist/core/schemas.d.ts.map +1 -0
- package/dist/core/schemas.js +667 -0
- package/dist/core/schemas.js.map +1 -0
- package/dist/core/types.d.ts +597 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +8 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/index.d.ts +14 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +11 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/server.d.ts +13 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +18 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/storage/client.d.ts +109 -0
- package/dist/mcp/storage/client.d.ts.map +1 -0
- package/dist/mcp/storage/client.js +355 -0
- package/dist/mcp/storage/client.js.map +1 -0
- package/dist/mcp/storage/index.d.ts +7 -0
- package/dist/mcp/storage/index.d.ts.map +1 -0
- package/dist/mcp/storage/index.js +6 -0
- package/dist/mcp/storage/index.js.map +1 -0
- package/dist/mcp/storage/types.d.ts +44 -0
- package/dist/mcp/storage/types.d.ts.map +1 -0
- package/dist/mcp/storage/types.js +35 -0
- package/dist/mcp/storage/types.js.map +1 -0
- package/dist/mcp/tools/definitions.d.ts +16 -0
- package/dist/mcp/tools/definitions.d.ts.map +1 -0
- package/dist/mcp/tools/definitions.js +914 -0
- package/dist/mcp/tools/definitions.js.map +1 -0
- package/dist/mcp/tools/handlers.d.ts +50 -0
- package/dist/mcp/tools/handlers.d.ts.map +1 -0
- package/dist/mcp/tools/handlers.js +760 -0
- package/dist/mcp/tools/handlers.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +7 -0
- package/dist/mcp/tools/index.d.ts.map +1 -0
- package/dist/mcp/tools/index.js +6 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/types.d.ts +314 -0
- package/dist/mcp/tools/types.d.ts.map +1 -0
- package/dist/mcp/tools/types.js +5 -0
- package/dist/mcp/tools/types.js.map +1 -0
- package/dist/mcp/transports/stdio.d.ts +27 -0
- package/dist/mcp/transports/stdio.d.ts.map +1 -0
- package/dist/mcp/transports/stdio.js +237 -0
- package/dist/mcp/transports/stdio.js.map +1 -0
- package/dist/telemetry/index.d.ts +58 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +109 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/logger.d.ts +116 -0
- package/dist/telemetry/logger.d.ts.map +1 -0
- package/dist/telemetry/logger.js +256 -0
- package/dist/telemetry/logger.js.map +1 -0
- package/dist/telemetry/metrics.d.ts +115 -0
- package/dist/telemetry/metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics.js +292 -0
- package/dist/telemetry/metrics.js.map +1 -0
- package/dist/telemetry/tracer.d.ts +227 -0
- package/dist/telemetry/tracer.d.ts.map +1 -0
- package/dist/telemetry/tracer.js +355 -0
- package/dist/telemetry/tracer.js.map +1 -0
- package/dist/web/app.d.ts +2 -0
- package/dist/web/app.d.ts.map +1 -0
- package/dist/web/app.js +115 -0
- package/dist/web/app.js.map +1 -0
- package/dist/web/components/ContactList.d.ts +3 -0
- package/dist/web/components/ContactList.d.ts.map +1 -0
- package/dist/web/components/ContactList.js +262 -0
- package/dist/web/components/ContactList.js.map +1 -0
- package/dist/web/components/Dashboard.d.ts +3 -0
- package/dist/web/components/Dashboard.d.ts.map +1 -0
- package/dist/web/components/Dashboard.js +158 -0
- package/dist/web/components/Dashboard.js.map +1 -0
- package/dist/web/components/DealPipeline.d.ts +3 -0
- package/dist/web/components/DealPipeline.d.ts.map +1 -0
- package/dist/web/components/DealPipeline.js +306 -0
- package/dist/web/components/DealPipeline.js.map +1 -0
- package/dist/web/index.d.ts +2 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +269 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/types.d.ts +75 -0
- package/dist/web/types.d.ts.map +1 -0
- package/dist/web/types.js +3 -0
- package/dist/web/types.js.map +1 -0
- package/native/index.d.ts +571 -0
- package/native/index.js +687 -0
- package/package.json +105 -0
- package/src/cli/commands/activities.ts +543 -0
- package/src/cli/commands/contacts.ts +563 -0
- package/src/cli/commands/deals.ts +637 -0
- package/src/cli/commands/media.ts +521 -0
- package/src/cli/commands/search.ts +426 -0
- package/src/cli/index.ts +203 -0
- package/src/cli/repl.ts +379 -0
- package/src/cli/utils/config.ts +299 -0
- package/src/cli/utils/output.ts +386 -0
- package/src/cli/utils/prompt.ts +444 -0
- package/src/cli.ts +11 -0
- package/src/core/index.ts +184 -0
- package/src/core/schemas.ts +770 -0
- package/src/core/types.ts +969 -0
- package/src/index.ts +8 -0
- package/src/mcp/index.ts +17 -0
- package/src/mcp/server.ts +26 -0
- package/src/mcp/storage/client.ts +408 -0
- package/src/mcp/storage/index.ts +7 -0
- package/src/mcp/storage/types.ts +72 -0
- package/src/mcp/tools/definitions.ts +961 -0
- package/src/mcp/tools/handlers.ts +805 -0
- package/src/mcp/tools/index.ts +7 -0
- package/src/mcp/tools/types.ts +390 -0
- package/src/mcp/transports/stdio.ts +225 -0
- package/src/telemetry/index.ts +131 -0
- package/src/telemetry/logger.ts +318 -0
- package/src/telemetry/metrics.ts +393 -0
- package/src/telemetry/tracer.ts +487 -0
- package/src/web/api/activities.ts +41 -0
- package/src/web/api/contacts.ts +114 -0
- package/src/web/api/deals.ts +108 -0
- package/src/web/api/media.ts +98 -0
- package/src/web/app.tsx +143 -0
- package/src/web/components/ActivityFeed.tsx +195 -0
- package/src/web/components/ContactList.tsx +340 -0
- package/src/web/components/Dashboard.tsx +214 -0
- package/src/web/components/DealPipeline.tsx +405 -0
- package/src/web/components/MediaGallery.tsx +334 -0
- package/src/web/index.html +14 -0
- package/src/web/index.ts +326 -0
- package/src/web/styles/main.css +180 -0
- package/src/web/types.ts +311 -0
|
@@ -0,0 +1,3050 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod Validation Schemas for CRM System
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime validation for all CRM types.
|
|
5
|
+
* Import and use schemas to validate data at boundaries.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/** UUID validation */
|
|
9
|
+
export declare const uuidSchema: z.ZodString;
|
|
10
|
+
/** Timestamp validation (ISO 8601) */
|
|
11
|
+
export declare const timestampSchema: z.ZodString;
|
|
12
|
+
/** Metadata schema for flexible key-value objects */
|
|
13
|
+
export declare const metadataSchema: z.ZodType<Record<string, unknown>>;
|
|
14
|
+
export declare const phoneNumberTypeSchema: z.ZodEnum<["mobile", "home", "work", "other"]>;
|
|
15
|
+
export declare const emailTypeSchema: z.ZodEnum<["personal", "work", "other"]>;
|
|
16
|
+
export declare const addressTypeSchema: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
17
|
+
export declare const socialPlatformSchema: z.ZodEnum<["linkedin", "twitter", "facebook", "instagram", "github", "other"]>;
|
|
18
|
+
export declare const customFieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
19
|
+
export declare const contactSourceSchema: z.ZodEnum<["organic", "referral", "advertisement", "social_media", "email_campaign", "website", "event", "cold_outreach", "partner", "other"]>;
|
|
20
|
+
export declare const contactStatusSchema: z.ZodEnum<["lead", "prospect", "qualified", "customer", "churned", "archived"]>;
|
|
21
|
+
export declare const phoneNumberSchema: z.ZodObject<{
|
|
22
|
+
number: z.ZodString;
|
|
23
|
+
type: z.ZodEnum<["mobile", "home", "work", "other"]>;
|
|
24
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
number: string;
|
|
27
|
+
type: "mobile" | "home" | "work" | "other";
|
|
28
|
+
primary: boolean;
|
|
29
|
+
}, {
|
|
30
|
+
number: string;
|
|
31
|
+
type: "mobile" | "home" | "work" | "other";
|
|
32
|
+
primary?: boolean | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const emailSchema: z.ZodObject<{
|
|
35
|
+
email: z.ZodString;
|
|
36
|
+
type: z.ZodEnum<["personal", "work", "other"]>;
|
|
37
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
email: string;
|
|
40
|
+
type: "work" | "other" | "personal";
|
|
41
|
+
primary: boolean;
|
|
42
|
+
}, {
|
|
43
|
+
email: string;
|
|
44
|
+
type: "work" | "other" | "personal";
|
|
45
|
+
primary?: boolean | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const addressSchema: z.ZodObject<{
|
|
48
|
+
street: z.ZodString;
|
|
49
|
+
city: z.ZodString;
|
|
50
|
+
state: z.ZodString;
|
|
51
|
+
postalCode: z.ZodString;
|
|
52
|
+
country: z.ZodString;
|
|
53
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
56
|
+
street: string;
|
|
57
|
+
city: string;
|
|
58
|
+
state: string;
|
|
59
|
+
postalCode: string;
|
|
60
|
+
country: string;
|
|
61
|
+
}, {
|
|
62
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
63
|
+
street: string;
|
|
64
|
+
city: string;
|
|
65
|
+
state: string;
|
|
66
|
+
postalCode: string;
|
|
67
|
+
country: string;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const socialProfileSchema: z.ZodObject<{
|
|
70
|
+
platform: z.ZodEnum<["linkedin", "twitter", "facebook", "instagram", "github", "other"]>;
|
|
71
|
+
handle: z.ZodString;
|
|
72
|
+
url: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
75
|
+
handle: string;
|
|
76
|
+
url?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
79
|
+
handle: string;
|
|
80
|
+
url?: string | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export declare const customFieldSchema: z.ZodObject<{
|
|
83
|
+
key: z.ZodString;
|
|
84
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
85
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
value: string | number | boolean | Date | null;
|
|
88
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
89
|
+
key: string;
|
|
90
|
+
}, {
|
|
91
|
+
value: string | number | boolean | Date | null;
|
|
92
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
93
|
+
key: string;
|
|
94
|
+
}>;
|
|
95
|
+
export declare const contactSchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
99
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
100
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
101
|
+
email: z.ZodString;
|
|
102
|
+
type: z.ZodEnum<["personal", "work", "other"]>;
|
|
103
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
email: string;
|
|
106
|
+
type: "work" | "other" | "personal";
|
|
107
|
+
primary: boolean;
|
|
108
|
+
}, {
|
|
109
|
+
email: string;
|
|
110
|
+
type: "work" | "other" | "personal";
|
|
111
|
+
primary?: boolean | undefined;
|
|
112
|
+
}>, "many">>;
|
|
113
|
+
phones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
114
|
+
number: z.ZodString;
|
|
115
|
+
type: z.ZodEnum<["mobile", "home", "work", "other"]>;
|
|
116
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
number: string;
|
|
119
|
+
type: "mobile" | "home" | "work" | "other";
|
|
120
|
+
primary: boolean;
|
|
121
|
+
}, {
|
|
122
|
+
number: string;
|
|
123
|
+
type: "mobile" | "home" | "work" | "other";
|
|
124
|
+
primary?: boolean | undefined;
|
|
125
|
+
}>, "many">>;
|
|
126
|
+
addresses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
127
|
+
street: z.ZodString;
|
|
128
|
+
city: z.ZodString;
|
|
129
|
+
state: z.ZodString;
|
|
130
|
+
postalCode: z.ZodString;
|
|
131
|
+
country: z.ZodString;
|
|
132
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
135
|
+
street: string;
|
|
136
|
+
city: string;
|
|
137
|
+
state: string;
|
|
138
|
+
postalCode: string;
|
|
139
|
+
country: string;
|
|
140
|
+
}, {
|
|
141
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
142
|
+
street: string;
|
|
143
|
+
city: string;
|
|
144
|
+
state: string;
|
|
145
|
+
postalCode: string;
|
|
146
|
+
country: string;
|
|
147
|
+
}>, "many">>;
|
|
148
|
+
company: z.ZodOptional<z.ZodString>;
|
|
149
|
+
title: z.ZodOptional<z.ZodString>;
|
|
150
|
+
department: z.ZodOptional<z.ZodString>;
|
|
151
|
+
socialProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
152
|
+
platform: z.ZodEnum<["linkedin", "twitter", "facebook", "instagram", "github", "other"]>;
|
|
153
|
+
handle: z.ZodString;
|
|
154
|
+
url: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
157
|
+
handle: string;
|
|
158
|
+
url?: string | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
161
|
+
handle: string;
|
|
162
|
+
url?: string | undefined;
|
|
163
|
+
}>, "many">>;
|
|
164
|
+
website: z.ZodOptional<z.ZodString>;
|
|
165
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
166
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
167
|
+
key: z.ZodString;
|
|
168
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
169
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
value: string | number | boolean | Date | null;
|
|
172
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
173
|
+
key: string;
|
|
174
|
+
}, {
|
|
175
|
+
value: string | number | boolean | Date | null;
|
|
176
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
177
|
+
key: string;
|
|
178
|
+
}>, "many">>;
|
|
179
|
+
source: z.ZodOptional<z.ZodEnum<["organic", "referral", "advertisement", "social_media", "email_campaign", "website", "event", "cold_outreach", "partner", "other"]>>;
|
|
180
|
+
status: z.ZodDefault<z.ZodEnum<["lead", "prospect", "qualified", "customer", "churned", "archived"]>>;
|
|
181
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
183
|
+
preferredContact: z.ZodOptional<z.ZodEnum<["email", "phone", "sms", "none"]>>;
|
|
184
|
+
language: z.ZodOptional<z.ZodString>;
|
|
185
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
186
|
+
preferences: z.ZodOptional<z.ZodString>;
|
|
187
|
+
leadScore: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
doNotContact: z.ZodDefault<z.ZodBoolean>;
|
|
189
|
+
lastContactedAt: z.ZodOptional<z.ZodString>;
|
|
190
|
+
nextFollowUpAt: z.ZodOptional<z.ZodString>;
|
|
191
|
+
createdAt: z.ZodString;
|
|
192
|
+
updatedAt: z.ZodString;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
status: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived";
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
emails: {
|
|
198
|
+
email: string;
|
|
199
|
+
type: "work" | "other" | "personal";
|
|
200
|
+
primary: boolean;
|
|
201
|
+
}[];
|
|
202
|
+
phones: {
|
|
203
|
+
number: string;
|
|
204
|
+
type: "mobile" | "home" | "work" | "other";
|
|
205
|
+
primary: boolean;
|
|
206
|
+
}[];
|
|
207
|
+
addresses: {
|
|
208
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
209
|
+
street: string;
|
|
210
|
+
city: string;
|
|
211
|
+
state: string;
|
|
212
|
+
postalCode: string;
|
|
213
|
+
country: string;
|
|
214
|
+
}[];
|
|
215
|
+
socialProfiles: {
|
|
216
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
217
|
+
handle: string;
|
|
218
|
+
url?: string | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
tags: string[];
|
|
221
|
+
customFields: {
|
|
222
|
+
value: string | number | boolean | Date | null;
|
|
223
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
224
|
+
key: string;
|
|
225
|
+
}[];
|
|
226
|
+
doNotContact: boolean;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
website?: string | undefined;
|
|
230
|
+
company?: string | undefined;
|
|
231
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
232
|
+
firstName?: string | undefined;
|
|
233
|
+
lastName?: string | undefined;
|
|
234
|
+
title?: string | undefined;
|
|
235
|
+
department?: string | undefined;
|
|
236
|
+
ownerId?: string | undefined;
|
|
237
|
+
avatar?: string | undefined;
|
|
238
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
239
|
+
language?: string | undefined;
|
|
240
|
+
timezone?: string | undefined;
|
|
241
|
+
preferences?: string | undefined;
|
|
242
|
+
leadScore?: number | undefined;
|
|
243
|
+
lastContactedAt?: string | undefined;
|
|
244
|
+
nextFollowUpAt?: string | undefined;
|
|
245
|
+
}, {
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
createdAt: string;
|
|
249
|
+
updatedAt: string;
|
|
250
|
+
website?: string | undefined;
|
|
251
|
+
company?: string | undefined;
|
|
252
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
253
|
+
status?: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived" | undefined;
|
|
254
|
+
firstName?: string | undefined;
|
|
255
|
+
lastName?: string | undefined;
|
|
256
|
+
emails?: {
|
|
257
|
+
email: string;
|
|
258
|
+
type: "work" | "other" | "personal";
|
|
259
|
+
primary?: boolean | undefined;
|
|
260
|
+
}[] | undefined;
|
|
261
|
+
phones?: {
|
|
262
|
+
number: string;
|
|
263
|
+
type: "mobile" | "home" | "work" | "other";
|
|
264
|
+
primary?: boolean | undefined;
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
addresses?: {
|
|
267
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
268
|
+
street: string;
|
|
269
|
+
city: string;
|
|
270
|
+
state: string;
|
|
271
|
+
postalCode: string;
|
|
272
|
+
country: string;
|
|
273
|
+
}[] | undefined;
|
|
274
|
+
title?: string | undefined;
|
|
275
|
+
department?: string | undefined;
|
|
276
|
+
socialProfiles?: {
|
|
277
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
278
|
+
handle: string;
|
|
279
|
+
url?: string | undefined;
|
|
280
|
+
}[] | undefined;
|
|
281
|
+
tags?: string[] | undefined;
|
|
282
|
+
customFields?: {
|
|
283
|
+
value: string | number | boolean | Date | null;
|
|
284
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
285
|
+
key: string;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
ownerId?: string | undefined;
|
|
288
|
+
avatar?: string | undefined;
|
|
289
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
290
|
+
language?: string | undefined;
|
|
291
|
+
timezone?: string | undefined;
|
|
292
|
+
preferences?: string | undefined;
|
|
293
|
+
leadScore?: number | undefined;
|
|
294
|
+
doNotContact?: boolean | undefined;
|
|
295
|
+
lastContactedAt?: string | undefined;
|
|
296
|
+
nextFollowUpAt?: string | undefined;
|
|
297
|
+
}>;
|
|
298
|
+
export declare const createContactSchema: z.ZodObject<Omit<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
302
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
303
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
304
|
+
email: z.ZodString;
|
|
305
|
+
type: z.ZodEnum<["personal", "work", "other"]>;
|
|
306
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
email: string;
|
|
309
|
+
type: "work" | "other" | "personal";
|
|
310
|
+
primary: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
email: string;
|
|
313
|
+
type: "work" | "other" | "personal";
|
|
314
|
+
primary?: boolean | undefined;
|
|
315
|
+
}>, "many">>;
|
|
316
|
+
phones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
317
|
+
number: z.ZodString;
|
|
318
|
+
type: z.ZodEnum<["mobile", "home", "work", "other"]>;
|
|
319
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
320
|
+
}, "strip", z.ZodTypeAny, {
|
|
321
|
+
number: string;
|
|
322
|
+
type: "mobile" | "home" | "work" | "other";
|
|
323
|
+
primary: boolean;
|
|
324
|
+
}, {
|
|
325
|
+
number: string;
|
|
326
|
+
type: "mobile" | "home" | "work" | "other";
|
|
327
|
+
primary?: boolean | undefined;
|
|
328
|
+
}>, "many">>;
|
|
329
|
+
addresses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
330
|
+
street: z.ZodString;
|
|
331
|
+
city: z.ZodString;
|
|
332
|
+
state: z.ZodString;
|
|
333
|
+
postalCode: z.ZodString;
|
|
334
|
+
country: z.ZodString;
|
|
335
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
338
|
+
street: string;
|
|
339
|
+
city: string;
|
|
340
|
+
state: string;
|
|
341
|
+
postalCode: string;
|
|
342
|
+
country: string;
|
|
343
|
+
}, {
|
|
344
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
345
|
+
street: string;
|
|
346
|
+
city: string;
|
|
347
|
+
state: string;
|
|
348
|
+
postalCode: string;
|
|
349
|
+
country: string;
|
|
350
|
+
}>, "many">>;
|
|
351
|
+
company: z.ZodOptional<z.ZodString>;
|
|
352
|
+
title: z.ZodOptional<z.ZodString>;
|
|
353
|
+
department: z.ZodOptional<z.ZodString>;
|
|
354
|
+
socialProfiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
355
|
+
platform: z.ZodEnum<["linkedin", "twitter", "facebook", "instagram", "github", "other"]>;
|
|
356
|
+
handle: z.ZodString;
|
|
357
|
+
url: z.ZodOptional<z.ZodString>;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
360
|
+
handle: string;
|
|
361
|
+
url?: string | undefined;
|
|
362
|
+
}, {
|
|
363
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
364
|
+
handle: string;
|
|
365
|
+
url?: string | undefined;
|
|
366
|
+
}>, "many">>;
|
|
367
|
+
website: z.ZodOptional<z.ZodString>;
|
|
368
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
369
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
370
|
+
key: z.ZodString;
|
|
371
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
372
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
373
|
+
}, "strip", z.ZodTypeAny, {
|
|
374
|
+
value: string | number | boolean | Date | null;
|
|
375
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
376
|
+
key: string;
|
|
377
|
+
}, {
|
|
378
|
+
value: string | number | boolean | Date | null;
|
|
379
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
380
|
+
key: string;
|
|
381
|
+
}>, "many">>;
|
|
382
|
+
source: z.ZodOptional<z.ZodEnum<["organic", "referral", "advertisement", "social_media", "email_campaign", "website", "event", "cold_outreach", "partner", "other"]>>;
|
|
383
|
+
status: z.ZodDefault<z.ZodEnum<["lead", "prospect", "qualified", "customer", "churned", "archived"]>>;
|
|
384
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
385
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
386
|
+
preferredContact: z.ZodOptional<z.ZodEnum<["email", "phone", "sms", "none"]>>;
|
|
387
|
+
language: z.ZodOptional<z.ZodString>;
|
|
388
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
389
|
+
preferences: z.ZodOptional<z.ZodString>;
|
|
390
|
+
leadScore: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
doNotContact: z.ZodDefault<z.ZodBoolean>;
|
|
392
|
+
lastContactedAt: z.ZodOptional<z.ZodString>;
|
|
393
|
+
nextFollowUpAt: z.ZodOptional<z.ZodString>;
|
|
394
|
+
createdAt: z.ZodString;
|
|
395
|
+
updatedAt: z.ZodString;
|
|
396
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
397
|
+
status: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived";
|
|
398
|
+
name: string;
|
|
399
|
+
emails: {
|
|
400
|
+
email: string;
|
|
401
|
+
type: "work" | "other" | "personal";
|
|
402
|
+
primary: boolean;
|
|
403
|
+
}[];
|
|
404
|
+
phones: {
|
|
405
|
+
number: string;
|
|
406
|
+
type: "mobile" | "home" | "work" | "other";
|
|
407
|
+
primary: boolean;
|
|
408
|
+
}[];
|
|
409
|
+
addresses: {
|
|
410
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
411
|
+
street: string;
|
|
412
|
+
city: string;
|
|
413
|
+
state: string;
|
|
414
|
+
postalCode: string;
|
|
415
|
+
country: string;
|
|
416
|
+
}[];
|
|
417
|
+
socialProfiles: {
|
|
418
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
419
|
+
handle: string;
|
|
420
|
+
url?: string | undefined;
|
|
421
|
+
}[];
|
|
422
|
+
tags: string[];
|
|
423
|
+
customFields: {
|
|
424
|
+
value: string | number | boolean | Date | null;
|
|
425
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
426
|
+
key: string;
|
|
427
|
+
}[];
|
|
428
|
+
doNotContact: boolean;
|
|
429
|
+
website?: string | undefined;
|
|
430
|
+
company?: string | undefined;
|
|
431
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
432
|
+
firstName?: string | undefined;
|
|
433
|
+
lastName?: string | undefined;
|
|
434
|
+
title?: string | undefined;
|
|
435
|
+
department?: string | undefined;
|
|
436
|
+
ownerId?: string | undefined;
|
|
437
|
+
avatar?: string | undefined;
|
|
438
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
439
|
+
language?: string | undefined;
|
|
440
|
+
timezone?: string | undefined;
|
|
441
|
+
preferences?: string | undefined;
|
|
442
|
+
leadScore?: number | undefined;
|
|
443
|
+
lastContactedAt?: string | undefined;
|
|
444
|
+
nextFollowUpAt?: string | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
name: string;
|
|
447
|
+
website?: string | undefined;
|
|
448
|
+
company?: string | undefined;
|
|
449
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
450
|
+
status?: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived" | undefined;
|
|
451
|
+
firstName?: string | undefined;
|
|
452
|
+
lastName?: string | undefined;
|
|
453
|
+
emails?: {
|
|
454
|
+
email: string;
|
|
455
|
+
type: "work" | "other" | "personal";
|
|
456
|
+
primary?: boolean | undefined;
|
|
457
|
+
}[] | undefined;
|
|
458
|
+
phones?: {
|
|
459
|
+
number: string;
|
|
460
|
+
type: "mobile" | "home" | "work" | "other";
|
|
461
|
+
primary?: boolean | undefined;
|
|
462
|
+
}[] | undefined;
|
|
463
|
+
addresses?: {
|
|
464
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
465
|
+
street: string;
|
|
466
|
+
city: string;
|
|
467
|
+
state: string;
|
|
468
|
+
postalCode: string;
|
|
469
|
+
country: string;
|
|
470
|
+
}[] | undefined;
|
|
471
|
+
title?: string | undefined;
|
|
472
|
+
department?: string | undefined;
|
|
473
|
+
socialProfiles?: {
|
|
474
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
475
|
+
handle: string;
|
|
476
|
+
url?: string | undefined;
|
|
477
|
+
}[] | undefined;
|
|
478
|
+
tags?: string[] | undefined;
|
|
479
|
+
customFields?: {
|
|
480
|
+
value: string | number | boolean | Date | null;
|
|
481
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
482
|
+
key: string;
|
|
483
|
+
}[] | undefined;
|
|
484
|
+
ownerId?: string | undefined;
|
|
485
|
+
avatar?: string | undefined;
|
|
486
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
487
|
+
language?: string | undefined;
|
|
488
|
+
timezone?: string | undefined;
|
|
489
|
+
preferences?: string | undefined;
|
|
490
|
+
leadScore?: number | undefined;
|
|
491
|
+
doNotContact?: boolean | undefined;
|
|
492
|
+
lastContactedAt?: string | undefined;
|
|
493
|
+
nextFollowUpAt?: string | undefined;
|
|
494
|
+
}>;
|
|
495
|
+
export declare const updateContactSchema: z.ZodObject<{
|
|
496
|
+
website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
497
|
+
company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
498
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<["organic", "referral", "advertisement", "social_media", "email_campaign", "website", "event", "cold_outreach", "partner", "other"]>>>;
|
|
499
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["lead", "prospect", "qualified", "customer", "churned", "archived"]>>>;
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
name: z.ZodOptional<z.ZodString>;
|
|
502
|
+
firstName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
503
|
+
lastName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
504
|
+
emails: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
505
|
+
email: z.ZodString;
|
|
506
|
+
type: z.ZodEnum<["personal", "work", "other"]>;
|
|
507
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
email: string;
|
|
510
|
+
type: "work" | "other" | "personal";
|
|
511
|
+
primary: boolean;
|
|
512
|
+
}, {
|
|
513
|
+
email: string;
|
|
514
|
+
type: "work" | "other" | "personal";
|
|
515
|
+
primary?: boolean | undefined;
|
|
516
|
+
}>, "many">>>;
|
|
517
|
+
phones: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
518
|
+
number: z.ZodString;
|
|
519
|
+
type: z.ZodEnum<["mobile", "home", "work", "other"]>;
|
|
520
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
number: string;
|
|
523
|
+
type: "mobile" | "home" | "work" | "other";
|
|
524
|
+
primary: boolean;
|
|
525
|
+
}, {
|
|
526
|
+
number: string;
|
|
527
|
+
type: "mobile" | "home" | "work" | "other";
|
|
528
|
+
primary?: boolean | undefined;
|
|
529
|
+
}>, "many">>>;
|
|
530
|
+
addresses: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
531
|
+
street: z.ZodString;
|
|
532
|
+
city: z.ZodString;
|
|
533
|
+
state: z.ZodString;
|
|
534
|
+
postalCode: z.ZodString;
|
|
535
|
+
country: z.ZodString;
|
|
536
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
539
|
+
street: string;
|
|
540
|
+
city: string;
|
|
541
|
+
state: string;
|
|
542
|
+
postalCode: string;
|
|
543
|
+
country: string;
|
|
544
|
+
}, {
|
|
545
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
546
|
+
street: string;
|
|
547
|
+
city: string;
|
|
548
|
+
state: string;
|
|
549
|
+
postalCode: string;
|
|
550
|
+
country: string;
|
|
551
|
+
}>, "many">>>;
|
|
552
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
553
|
+
department: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
554
|
+
socialProfiles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
555
|
+
platform: z.ZodEnum<["linkedin", "twitter", "facebook", "instagram", "github", "other"]>;
|
|
556
|
+
handle: z.ZodString;
|
|
557
|
+
url: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
|
559
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
560
|
+
handle: string;
|
|
561
|
+
url?: string | undefined;
|
|
562
|
+
}, {
|
|
563
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
564
|
+
handle: string;
|
|
565
|
+
url?: string | undefined;
|
|
566
|
+
}>, "many">>>;
|
|
567
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
568
|
+
customFields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
569
|
+
key: z.ZodString;
|
|
570
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
571
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
value: string | number | boolean | Date | null;
|
|
574
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
575
|
+
key: string;
|
|
576
|
+
}, {
|
|
577
|
+
value: string | number | boolean | Date | null;
|
|
578
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
579
|
+
key: string;
|
|
580
|
+
}>, "many">>>;
|
|
581
|
+
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
582
|
+
avatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
583
|
+
preferredContact: z.ZodOptional<z.ZodOptional<z.ZodEnum<["email", "phone", "sms", "none"]>>>;
|
|
584
|
+
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
585
|
+
timezone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
586
|
+
preferences: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
587
|
+
leadScore: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
588
|
+
doNotContact: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
589
|
+
lastContactedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
590
|
+
nextFollowUpAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
591
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
592
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, "strip", z.ZodTypeAny, {
|
|
594
|
+
id: string;
|
|
595
|
+
website?: string | undefined;
|
|
596
|
+
company?: string | undefined;
|
|
597
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
598
|
+
status?: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived" | undefined;
|
|
599
|
+
name?: string | undefined;
|
|
600
|
+
firstName?: string | undefined;
|
|
601
|
+
lastName?: string | undefined;
|
|
602
|
+
emails?: {
|
|
603
|
+
email: string;
|
|
604
|
+
type: "work" | "other" | "personal";
|
|
605
|
+
primary: boolean;
|
|
606
|
+
}[] | undefined;
|
|
607
|
+
phones?: {
|
|
608
|
+
number: string;
|
|
609
|
+
type: "mobile" | "home" | "work" | "other";
|
|
610
|
+
primary: boolean;
|
|
611
|
+
}[] | undefined;
|
|
612
|
+
addresses?: {
|
|
613
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
614
|
+
street: string;
|
|
615
|
+
city: string;
|
|
616
|
+
state: string;
|
|
617
|
+
postalCode: string;
|
|
618
|
+
country: string;
|
|
619
|
+
}[] | undefined;
|
|
620
|
+
title?: string | undefined;
|
|
621
|
+
department?: string | undefined;
|
|
622
|
+
socialProfiles?: {
|
|
623
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
624
|
+
handle: string;
|
|
625
|
+
url?: string | undefined;
|
|
626
|
+
}[] | undefined;
|
|
627
|
+
tags?: string[] | undefined;
|
|
628
|
+
customFields?: {
|
|
629
|
+
value: string | number | boolean | Date | null;
|
|
630
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
631
|
+
key: string;
|
|
632
|
+
}[] | undefined;
|
|
633
|
+
ownerId?: string | undefined;
|
|
634
|
+
avatar?: string | undefined;
|
|
635
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
636
|
+
language?: string | undefined;
|
|
637
|
+
timezone?: string | undefined;
|
|
638
|
+
preferences?: string | undefined;
|
|
639
|
+
leadScore?: number | undefined;
|
|
640
|
+
doNotContact?: boolean | undefined;
|
|
641
|
+
lastContactedAt?: string | undefined;
|
|
642
|
+
nextFollowUpAt?: string | undefined;
|
|
643
|
+
createdAt?: string | undefined;
|
|
644
|
+
updatedAt?: string | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
id: string;
|
|
647
|
+
website?: string | undefined;
|
|
648
|
+
company?: string | undefined;
|
|
649
|
+
source?: "other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner" | undefined;
|
|
650
|
+
status?: "lead" | "prospect" | "qualified" | "customer" | "churned" | "archived" | undefined;
|
|
651
|
+
name?: string | undefined;
|
|
652
|
+
firstName?: string | undefined;
|
|
653
|
+
lastName?: string | undefined;
|
|
654
|
+
emails?: {
|
|
655
|
+
email: string;
|
|
656
|
+
type: "work" | "other" | "personal";
|
|
657
|
+
primary?: boolean | undefined;
|
|
658
|
+
}[] | undefined;
|
|
659
|
+
phones?: {
|
|
660
|
+
number: string;
|
|
661
|
+
type: "mobile" | "home" | "work" | "other";
|
|
662
|
+
primary?: boolean | undefined;
|
|
663
|
+
}[] | undefined;
|
|
664
|
+
addresses?: {
|
|
665
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
666
|
+
street: string;
|
|
667
|
+
city: string;
|
|
668
|
+
state: string;
|
|
669
|
+
postalCode: string;
|
|
670
|
+
country: string;
|
|
671
|
+
}[] | undefined;
|
|
672
|
+
title?: string | undefined;
|
|
673
|
+
department?: string | undefined;
|
|
674
|
+
socialProfiles?: {
|
|
675
|
+
platform: "other" | "linkedin" | "twitter" | "facebook" | "instagram" | "github";
|
|
676
|
+
handle: string;
|
|
677
|
+
url?: string | undefined;
|
|
678
|
+
}[] | undefined;
|
|
679
|
+
tags?: string[] | undefined;
|
|
680
|
+
customFields?: {
|
|
681
|
+
value: string | number | boolean | Date | null;
|
|
682
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
683
|
+
key: string;
|
|
684
|
+
}[] | undefined;
|
|
685
|
+
ownerId?: string | undefined;
|
|
686
|
+
avatar?: string | undefined;
|
|
687
|
+
preferredContact?: "email" | "phone" | "sms" | "none" | undefined;
|
|
688
|
+
language?: string | undefined;
|
|
689
|
+
timezone?: string | undefined;
|
|
690
|
+
preferences?: string | undefined;
|
|
691
|
+
leadScore?: number | undefined;
|
|
692
|
+
doNotContact?: boolean | undefined;
|
|
693
|
+
lastContactedAt?: string | undefined;
|
|
694
|
+
nextFollowUpAt?: string | undefined;
|
|
695
|
+
createdAt?: string | undefined;
|
|
696
|
+
updatedAt?: string | undefined;
|
|
697
|
+
}>;
|
|
698
|
+
export declare const dealStageSchema: z.ZodEnum<["prospecting", "qualification", "needs_analysis", "proposal", "negotiation", "closed_won", "closed_lost"]>;
|
|
699
|
+
export declare const dealPrioritySchema: z.ZodEnum<["low", "medium", "high", "urgent"]>;
|
|
700
|
+
export declare const currencySchema: z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>;
|
|
701
|
+
export declare const discountTypeSchema: z.ZodEnum<["percentage", "fixed"]>;
|
|
702
|
+
export declare const dealLineItemSchema: z.ZodObject<{
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
name: z.ZodString;
|
|
705
|
+
description: z.ZodOptional<z.ZodString>;
|
|
706
|
+
quantity: z.ZodNumber;
|
|
707
|
+
unitPrice: z.ZodNumber;
|
|
708
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
710
|
+
total: z.ZodNumber;
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
quantity: number;
|
|
715
|
+
unitPrice: number;
|
|
716
|
+
total: number;
|
|
717
|
+
description?: string | undefined;
|
|
718
|
+
discount?: number | undefined;
|
|
719
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
720
|
+
}, {
|
|
721
|
+
id: string;
|
|
722
|
+
name: string;
|
|
723
|
+
quantity: number;
|
|
724
|
+
unitPrice: number;
|
|
725
|
+
total: number;
|
|
726
|
+
description?: string | undefined;
|
|
727
|
+
discount?: number | undefined;
|
|
728
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
729
|
+
}>;
|
|
730
|
+
export declare const competitorSchema: z.ZodObject<{
|
|
731
|
+
name: z.ZodString;
|
|
732
|
+
strengths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
733
|
+
weaknesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
734
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
name: string;
|
|
737
|
+
notes?: string | undefined;
|
|
738
|
+
strengths?: string[] | undefined;
|
|
739
|
+
weaknesses?: string[] | undefined;
|
|
740
|
+
}, {
|
|
741
|
+
name: string;
|
|
742
|
+
notes?: string | undefined;
|
|
743
|
+
strengths?: string[] | undefined;
|
|
744
|
+
weaknesses?: string[] | undefined;
|
|
745
|
+
}>;
|
|
746
|
+
export declare const dealSchema: z.ZodObject<{
|
|
747
|
+
id: z.ZodString;
|
|
748
|
+
title: z.ZodString;
|
|
749
|
+
contactId: z.ZodString;
|
|
750
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
751
|
+
value: z.ZodNumber;
|
|
752
|
+
currency: z.ZodDefault<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>;
|
|
753
|
+
stage: z.ZodDefault<z.ZodEnum<["prospecting", "qualification", "needs_analysis", "proposal", "negotiation", "closed_won", "closed_lost"]>>;
|
|
754
|
+
probability: z.ZodDefault<z.ZodNumber>;
|
|
755
|
+
expectedClose: z.ZodString;
|
|
756
|
+
actualClose: z.ZodOptional<z.ZodString>;
|
|
757
|
+
priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "urgent"]>>;
|
|
758
|
+
lineItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
759
|
+
id: z.ZodString;
|
|
760
|
+
name: z.ZodString;
|
|
761
|
+
description: z.ZodOptional<z.ZodString>;
|
|
762
|
+
quantity: z.ZodNumber;
|
|
763
|
+
unitPrice: z.ZodNumber;
|
|
764
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
765
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
766
|
+
total: z.ZodNumber;
|
|
767
|
+
}, "strip", z.ZodTypeAny, {
|
|
768
|
+
id: string;
|
|
769
|
+
name: string;
|
|
770
|
+
quantity: number;
|
|
771
|
+
unitPrice: number;
|
|
772
|
+
total: number;
|
|
773
|
+
description?: string | undefined;
|
|
774
|
+
discount?: number | undefined;
|
|
775
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
776
|
+
}, {
|
|
777
|
+
id: string;
|
|
778
|
+
name: string;
|
|
779
|
+
quantity: number;
|
|
780
|
+
unitPrice: number;
|
|
781
|
+
total: number;
|
|
782
|
+
description?: string | undefined;
|
|
783
|
+
discount?: number | undefined;
|
|
784
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
785
|
+
}>, "many">>;
|
|
786
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
787
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
788
|
+
totalValue: z.ZodNumber;
|
|
789
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
790
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
791
|
+
competitors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
792
|
+
name: z.ZodString;
|
|
793
|
+
strengths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
794
|
+
weaknesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
795
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
name: string;
|
|
798
|
+
notes?: string | undefined;
|
|
799
|
+
strengths?: string[] | undefined;
|
|
800
|
+
weaknesses?: string[] | undefined;
|
|
801
|
+
}, {
|
|
802
|
+
name: string;
|
|
803
|
+
notes?: string | undefined;
|
|
804
|
+
strengths?: string[] | undefined;
|
|
805
|
+
weaknesses?: string[] | undefined;
|
|
806
|
+
}>, "many">>;
|
|
807
|
+
lossReason: z.ZodOptional<z.ZodString>;
|
|
808
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
809
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
810
|
+
source: z.ZodOptional<z.ZodString>;
|
|
811
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
812
|
+
key: z.ZodString;
|
|
813
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
814
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
value: string | number | boolean | Date | null;
|
|
817
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
818
|
+
key: string;
|
|
819
|
+
}, {
|
|
820
|
+
value: string | number | boolean | Date | null;
|
|
821
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
822
|
+
key: string;
|
|
823
|
+
}>, "many">>;
|
|
824
|
+
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
825
|
+
createdAt: z.ZodString;
|
|
826
|
+
updatedAt: z.ZodString;
|
|
827
|
+
}, "strip", z.ZodTypeAny, {
|
|
828
|
+
priority: "low" | "medium" | "high" | "urgent";
|
|
829
|
+
notes: string;
|
|
830
|
+
value: number;
|
|
831
|
+
id: string;
|
|
832
|
+
title: string;
|
|
833
|
+
tags: string[];
|
|
834
|
+
customFields: {
|
|
835
|
+
value: string | number | boolean | Date | null;
|
|
836
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
837
|
+
key: string;
|
|
838
|
+
}[];
|
|
839
|
+
createdAt: string;
|
|
840
|
+
updatedAt: string;
|
|
841
|
+
contactId: string;
|
|
842
|
+
currency: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN";
|
|
843
|
+
stage: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
|
|
844
|
+
probability: number;
|
|
845
|
+
expectedClose: string;
|
|
846
|
+
lineItems: {
|
|
847
|
+
id: string;
|
|
848
|
+
name: string;
|
|
849
|
+
quantity: number;
|
|
850
|
+
unitPrice: number;
|
|
851
|
+
total: number;
|
|
852
|
+
description?: string | undefined;
|
|
853
|
+
discount?: number | undefined;
|
|
854
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
855
|
+
}[];
|
|
856
|
+
totalValue: number;
|
|
857
|
+
competitors: {
|
|
858
|
+
name: string;
|
|
859
|
+
notes?: string | undefined;
|
|
860
|
+
strengths?: string[] | undefined;
|
|
861
|
+
weaknesses?: string[] | undefined;
|
|
862
|
+
}[];
|
|
863
|
+
source?: string | undefined;
|
|
864
|
+
ownerId?: string | undefined;
|
|
865
|
+
discount?: number | undefined;
|
|
866
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
867
|
+
companyId?: string | undefined;
|
|
868
|
+
actualClose?: string | undefined;
|
|
869
|
+
lossReason?: string | undefined;
|
|
870
|
+
nextSteps?: string[] | undefined;
|
|
871
|
+
lastActivityAt?: string | undefined;
|
|
872
|
+
}, {
|
|
873
|
+
value: number;
|
|
874
|
+
id: string;
|
|
875
|
+
title: string;
|
|
876
|
+
createdAt: string;
|
|
877
|
+
updatedAt: string;
|
|
878
|
+
contactId: string;
|
|
879
|
+
expectedClose: string;
|
|
880
|
+
totalValue: number;
|
|
881
|
+
source?: string | undefined;
|
|
882
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
883
|
+
notes?: string | undefined;
|
|
884
|
+
tags?: string[] | undefined;
|
|
885
|
+
customFields?: {
|
|
886
|
+
value: string | number | boolean | Date | null;
|
|
887
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
888
|
+
key: string;
|
|
889
|
+
}[] | undefined;
|
|
890
|
+
ownerId?: string | undefined;
|
|
891
|
+
discount?: number | undefined;
|
|
892
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
893
|
+
companyId?: string | undefined;
|
|
894
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
895
|
+
stage?: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
|
|
896
|
+
probability?: number | undefined;
|
|
897
|
+
actualClose?: string | undefined;
|
|
898
|
+
lineItems?: {
|
|
899
|
+
id: string;
|
|
900
|
+
name: string;
|
|
901
|
+
quantity: number;
|
|
902
|
+
unitPrice: number;
|
|
903
|
+
total: number;
|
|
904
|
+
description?: string | undefined;
|
|
905
|
+
discount?: number | undefined;
|
|
906
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
907
|
+
}[] | undefined;
|
|
908
|
+
competitors?: {
|
|
909
|
+
name: string;
|
|
910
|
+
notes?: string | undefined;
|
|
911
|
+
strengths?: string[] | undefined;
|
|
912
|
+
weaknesses?: string[] | undefined;
|
|
913
|
+
}[] | undefined;
|
|
914
|
+
lossReason?: string | undefined;
|
|
915
|
+
nextSteps?: string[] | undefined;
|
|
916
|
+
lastActivityAt?: string | undefined;
|
|
917
|
+
}>;
|
|
918
|
+
export declare const createDealSchema: z.ZodObject<Omit<{
|
|
919
|
+
id: z.ZodString;
|
|
920
|
+
title: z.ZodString;
|
|
921
|
+
contactId: z.ZodString;
|
|
922
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
923
|
+
value: z.ZodNumber;
|
|
924
|
+
currency: z.ZodDefault<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>;
|
|
925
|
+
stage: z.ZodDefault<z.ZodEnum<["prospecting", "qualification", "needs_analysis", "proposal", "negotiation", "closed_won", "closed_lost"]>>;
|
|
926
|
+
probability: z.ZodDefault<z.ZodNumber>;
|
|
927
|
+
expectedClose: z.ZodString;
|
|
928
|
+
actualClose: z.ZodOptional<z.ZodString>;
|
|
929
|
+
priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "urgent"]>>;
|
|
930
|
+
lineItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
931
|
+
id: z.ZodString;
|
|
932
|
+
name: z.ZodString;
|
|
933
|
+
description: z.ZodOptional<z.ZodString>;
|
|
934
|
+
quantity: z.ZodNumber;
|
|
935
|
+
unitPrice: z.ZodNumber;
|
|
936
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
937
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
938
|
+
total: z.ZodNumber;
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
940
|
+
id: string;
|
|
941
|
+
name: string;
|
|
942
|
+
quantity: number;
|
|
943
|
+
unitPrice: number;
|
|
944
|
+
total: number;
|
|
945
|
+
description?: string | undefined;
|
|
946
|
+
discount?: number | undefined;
|
|
947
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
948
|
+
}, {
|
|
949
|
+
id: string;
|
|
950
|
+
name: string;
|
|
951
|
+
quantity: number;
|
|
952
|
+
unitPrice: number;
|
|
953
|
+
total: number;
|
|
954
|
+
description?: string | undefined;
|
|
955
|
+
discount?: number | undefined;
|
|
956
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
957
|
+
}>, "many">>;
|
|
958
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
959
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
960
|
+
totalValue: z.ZodNumber;
|
|
961
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
962
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
963
|
+
competitors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
964
|
+
name: z.ZodString;
|
|
965
|
+
strengths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
966
|
+
weaknesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
967
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
968
|
+
}, "strip", z.ZodTypeAny, {
|
|
969
|
+
name: string;
|
|
970
|
+
notes?: string | undefined;
|
|
971
|
+
strengths?: string[] | undefined;
|
|
972
|
+
weaknesses?: string[] | undefined;
|
|
973
|
+
}, {
|
|
974
|
+
name: string;
|
|
975
|
+
notes?: string | undefined;
|
|
976
|
+
strengths?: string[] | undefined;
|
|
977
|
+
weaknesses?: string[] | undefined;
|
|
978
|
+
}>, "many">>;
|
|
979
|
+
lossReason: z.ZodOptional<z.ZodString>;
|
|
980
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
981
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
982
|
+
source: z.ZodOptional<z.ZodString>;
|
|
983
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
984
|
+
key: z.ZodString;
|
|
985
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
986
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
987
|
+
}, "strip", z.ZodTypeAny, {
|
|
988
|
+
value: string | number | boolean | Date | null;
|
|
989
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
990
|
+
key: string;
|
|
991
|
+
}, {
|
|
992
|
+
value: string | number | boolean | Date | null;
|
|
993
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
994
|
+
key: string;
|
|
995
|
+
}>, "many">>;
|
|
996
|
+
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
997
|
+
createdAt: z.ZodString;
|
|
998
|
+
updatedAt: z.ZodString;
|
|
999
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
1000
|
+
priority: "low" | "medium" | "high" | "urgent";
|
|
1001
|
+
notes: string;
|
|
1002
|
+
value: number;
|
|
1003
|
+
title: string;
|
|
1004
|
+
tags: string[];
|
|
1005
|
+
customFields: {
|
|
1006
|
+
value: string | number | boolean | Date | null;
|
|
1007
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1008
|
+
key: string;
|
|
1009
|
+
}[];
|
|
1010
|
+
contactId: string;
|
|
1011
|
+
currency: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN";
|
|
1012
|
+
stage: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost";
|
|
1013
|
+
probability: number;
|
|
1014
|
+
expectedClose: string;
|
|
1015
|
+
lineItems: {
|
|
1016
|
+
id: string;
|
|
1017
|
+
name: string;
|
|
1018
|
+
quantity: number;
|
|
1019
|
+
unitPrice: number;
|
|
1020
|
+
total: number;
|
|
1021
|
+
description?: string | undefined;
|
|
1022
|
+
discount?: number | undefined;
|
|
1023
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1024
|
+
}[];
|
|
1025
|
+
totalValue: number;
|
|
1026
|
+
competitors: {
|
|
1027
|
+
name: string;
|
|
1028
|
+
notes?: string | undefined;
|
|
1029
|
+
strengths?: string[] | undefined;
|
|
1030
|
+
weaknesses?: string[] | undefined;
|
|
1031
|
+
}[];
|
|
1032
|
+
source?: string | undefined;
|
|
1033
|
+
ownerId?: string | undefined;
|
|
1034
|
+
discount?: number | undefined;
|
|
1035
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1036
|
+
companyId?: string | undefined;
|
|
1037
|
+
actualClose?: string | undefined;
|
|
1038
|
+
lossReason?: string | undefined;
|
|
1039
|
+
nextSteps?: string[] | undefined;
|
|
1040
|
+
lastActivityAt?: string | undefined;
|
|
1041
|
+
}, {
|
|
1042
|
+
value: number;
|
|
1043
|
+
title: string;
|
|
1044
|
+
contactId: string;
|
|
1045
|
+
expectedClose: string;
|
|
1046
|
+
totalValue: number;
|
|
1047
|
+
source?: string | undefined;
|
|
1048
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
1049
|
+
notes?: string | undefined;
|
|
1050
|
+
tags?: string[] | undefined;
|
|
1051
|
+
customFields?: {
|
|
1052
|
+
value: string | number | boolean | Date | null;
|
|
1053
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1054
|
+
key: string;
|
|
1055
|
+
}[] | undefined;
|
|
1056
|
+
ownerId?: string | undefined;
|
|
1057
|
+
discount?: number | undefined;
|
|
1058
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1059
|
+
companyId?: string | undefined;
|
|
1060
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
1061
|
+
stage?: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
|
|
1062
|
+
probability?: number | undefined;
|
|
1063
|
+
actualClose?: string | undefined;
|
|
1064
|
+
lineItems?: {
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
quantity: number;
|
|
1068
|
+
unitPrice: number;
|
|
1069
|
+
total: number;
|
|
1070
|
+
description?: string | undefined;
|
|
1071
|
+
discount?: number | undefined;
|
|
1072
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1073
|
+
}[] | undefined;
|
|
1074
|
+
competitors?: {
|
|
1075
|
+
name: string;
|
|
1076
|
+
notes?: string | undefined;
|
|
1077
|
+
strengths?: string[] | undefined;
|
|
1078
|
+
weaknesses?: string[] | undefined;
|
|
1079
|
+
}[] | undefined;
|
|
1080
|
+
lossReason?: string | undefined;
|
|
1081
|
+
nextSteps?: string[] | undefined;
|
|
1082
|
+
lastActivityAt?: string | undefined;
|
|
1083
|
+
}>;
|
|
1084
|
+
export declare const updateDealSchema: z.ZodObject<{
|
|
1085
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1086
|
+
priority: z.ZodOptional<z.ZodDefault<z.ZodEnum<["low", "medium", "high", "urgent"]>>>;
|
|
1087
|
+
notes: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1088
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1089
|
+
id: z.ZodString;
|
|
1090
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1092
|
+
customFields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1093
|
+
key: z.ZodString;
|
|
1094
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
1095
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
1096
|
+
}, "strip", z.ZodTypeAny, {
|
|
1097
|
+
value: string | number | boolean | Date | null;
|
|
1098
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1099
|
+
key: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
value: string | number | boolean | Date | null;
|
|
1102
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1103
|
+
key: string;
|
|
1104
|
+
}>, "many">>>;
|
|
1105
|
+
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1106
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
discount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1109
|
+
discountType: z.ZodOptional<z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>>;
|
|
1110
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
companyId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1112
|
+
currency: z.ZodOptional<z.ZodDefault<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>>;
|
|
1113
|
+
stage: z.ZodOptional<z.ZodDefault<z.ZodEnum<["prospecting", "qualification", "needs_analysis", "proposal", "negotiation", "closed_won", "closed_lost"]>>>;
|
|
1114
|
+
probability: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1115
|
+
expectedClose: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
actualClose: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1117
|
+
lineItems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1118
|
+
id: z.ZodString;
|
|
1119
|
+
name: z.ZodString;
|
|
1120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
quantity: z.ZodNumber;
|
|
1122
|
+
unitPrice: z.ZodNumber;
|
|
1123
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
1124
|
+
discountType: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
1125
|
+
total: z.ZodNumber;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
id: string;
|
|
1128
|
+
name: string;
|
|
1129
|
+
quantity: number;
|
|
1130
|
+
unitPrice: number;
|
|
1131
|
+
total: number;
|
|
1132
|
+
description?: string | undefined;
|
|
1133
|
+
discount?: number | undefined;
|
|
1134
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1135
|
+
}, {
|
|
1136
|
+
id: string;
|
|
1137
|
+
name: string;
|
|
1138
|
+
quantity: number;
|
|
1139
|
+
unitPrice: number;
|
|
1140
|
+
total: number;
|
|
1141
|
+
description?: string | undefined;
|
|
1142
|
+
discount?: number | undefined;
|
|
1143
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1144
|
+
}>, "many">>>;
|
|
1145
|
+
totalValue: z.ZodOptional<z.ZodNumber>;
|
|
1146
|
+
competitors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1147
|
+
name: z.ZodString;
|
|
1148
|
+
strengths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1149
|
+
weaknesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1150
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
}, "strip", z.ZodTypeAny, {
|
|
1152
|
+
name: string;
|
|
1153
|
+
notes?: string | undefined;
|
|
1154
|
+
strengths?: string[] | undefined;
|
|
1155
|
+
weaknesses?: string[] | undefined;
|
|
1156
|
+
}, {
|
|
1157
|
+
name: string;
|
|
1158
|
+
notes?: string | undefined;
|
|
1159
|
+
strengths?: string[] | undefined;
|
|
1160
|
+
weaknesses?: string[] | undefined;
|
|
1161
|
+
}>, "many">>>;
|
|
1162
|
+
lossReason: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1163
|
+
nextSteps: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1164
|
+
lastActivityAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1165
|
+
}, "strip", z.ZodTypeAny, {
|
|
1166
|
+
id: string;
|
|
1167
|
+
source?: string | undefined;
|
|
1168
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
1169
|
+
notes?: string | undefined;
|
|
1170
|
+
value?: number | undefined;
|
|
1171
|
+
title?: string | undefined;
|
|
1172
|
+
tags?: string[] | undefined;
|
|
1173
|
+
customFields?: {
|
|
1174
|
+
value: string | number | boolean | Date | null;
|
|
1175
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1176
|
+
key: string;
|
|
1177
|
+
}[] | undefined;
|
|
1178
|
+
ownerId?: string | undefined;
|
|
1179
|
+
createdAt?: string | undefined;
|
|
1180
|
+
updatedAt?: string | undefined;
|
|
1181
|
+
discount?: number | undefined;
|
|
1182
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1183
|
+
contactId?: string | undefined;
|
|
1184
|
+
companyId?: string | undefined;
|
|
1185
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
1186
|
+
stage?: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
|
|
1187
|
+
probability?: number | undefined;
|
|
1188
|
+
expectedClose?: string | undefined;
|
|
1189
|
+
actualClose?: string | undefined;
|
|
1190
|
+
lineItems?: {
|
|
1191
|
+
id: string;
|
|
1192
|
+
name: string;
|
|
1193
|
+
quantity: number;
|
|
1194
|
+
unitPrice: number;
|
|
1195
|
+
total: number;
|
|
1196
|
+
description?: string | undefined;
|
|
1197
|
+
discount?: number | undefined;
|
|
1198
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1199
|
+
}[] | undefined;
|
|
1200
|
+
totalValue?: number | undefined;
|
|
1201
|
+
competitors?: {
|
|
1202
|
+
name: string;
|
|
1203
|
+
notes?: string | undefined;
|
|
1204
|
+
strengths?: string[] | undefined;
|
|
1205
|
+
weaknesses?: string[] | undefined;
|
|
1206
|
+
}[] | undefined;
|
|
1207
|
+
lossReason?: string | undefined;
|
|
1208
|
+
nextSteps?: string[] | undefined;
|
|
1209
|
+
lastActivityAt?: string | undefined;
|
|
1210
|
+
}, {
|
|
1211
|
+
id: string;
|
|
1212
|
+
source?: string | undefined;
|
|
1213
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
1214
|
+
notes?: string | undefined;
|
|
1215
|
+
value?: number | undefined;
|
|
1216
|
+
title?: string | undefined;
|
|
1217
|
+
tags?: string[] | undefined;
|
|
1218
|
+
customFields?: {
|
|
1219
|
+
value: string | number | boolean | Date | null;
|
|
1220
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1221
|
+
key: string;
|
|
1222
|
+
}[] | undefined;
|
|
1223
|
+
ownerId?: string | undefined;
|
|
1224
|
+
createdAt?: string | undefined;
|
|
1225
|
+
updatedAt?: string | undefined;
|
|
1226
|
+
discount?: number | undefined;
|
|
1227
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1228
|
+
contactId?: string | undefined;
|
|
1229
|
+
companyId?: string | undefined;
|
|
1230
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
1231
|
+
stage?: "prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost" | undefined;
|
|
1232
|
+
probability?: number | undefined;
|
|
1233
|
+
expectedClose?: string | undefined;
|
|
1234
|
+
actualClose?: string | undefined;
|
|
1235
|
+
lineItems?: {
|
|
1236
|
+
id: string;
|
|
1237
|
+
name: string;
|
|
1238
|
+
quantity: number;
|
|
1239
|
+
unitPrice: number;
|
|
1240
|
+
total: number;
|
|
1241
|
+
description?: string | undefined;
|
|
1242
|
+
discount?: number | undefined;
|
|
1243
|
+
discountType?: "percentage" | "fixed" | undefined;
|
|
1244
|
+
}[] | undefined;
|
|
1245
|
+
totalValue?: number | undefined;
|
|
1246
|
+
competitors?: {
|
|
1247
|
+
name: string;
|
|
1248
|
+
notes?: string | undefined;
|
|
1249
|
+
strengths?: string[] | undefined;
|
|
1250
|
+
weaknesses?: string[] | undefined;
|
|
1251
|
+
}[] | undefined;
|
|
1252
|
+
lossReason?: string | undefined;
|
|
1253
|
+
nextSteps?: string[] | undefined;
|
|
1254
|
+
lastActivityAt?: string | undefined;
|
|
1255
|
+
}>;
|
|
1256
|
+
export declare const activityTypeSchema: z.ZodEnum<["call", "email", "meeting", "task", "note", "sms", "video_call", "demo", "proposal_sent", "contract_sent", "follow_up", "social_media", "event", "other"]>;
|
|
1257
|
+
export declare const callOutcomeSchema: z.ZodEnum<["connected", "voicemail", "no_answer", "busy", "wrong_number", "disconnected"]>;
|
|
1258
|
+
export declare const meetingOutcomeSchema: z.ZodEnum<["completed", "rescheduled", "cancelled", "no_show"]>;
|
|
1259
|
+
export declare const emailStatusSchema: z.ZodEnum<["sent", "delivered", "opened", "clicked", "replied", "bounced", "unsubscribed"]>;
|
|
1260
|
+
export declare const taskStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "cancelled"]>;
|
|
1261
|
+
export declare const taskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
1262
|
+
export declare const callDirectionSchema: z.ZodEnum<["inbound", "outbound"]>;
|
|
1263
|
+
export declare const callMetadataSchema: z.ZodObject<{
|
|
1264
|
+
outcome: z.ZodEnum<["connected", "voicemail", "no_answer", "busy", "wrong_number", "disconnected"]>;
|
|
1265
|
+
recording: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
transcription: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
fromNumber: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
toNumber: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
direction: z.ZodEnum<["inbound", "outbound"]>;
|
|
1270
|
+
}, "strip", z.ZodTypeAny, {
|
|
1271
|
+
outcome: "connected" | "voicemail" | "no_answer" | "busy" | "wrong_number" | "disconnected";
|
|
1272
|
+
direction: "inbound" | "outbound";
|
|
1273
|
+
recording?: string | undefined;
|
|
1274
|
+
transcription?: string | undefined;
|
|
1275
|
+
fromNumber?: string | undefined;
|
|
1276
|
+
toNumber?: string | undefined;
|
|
1277
|
+
}, {
|
|
1278
|
+
outcome: "connected" | "voicemail" | "no_answer" | "busy" | "wrong_number" | "disconnected";
|
|
1279
|
+
direction: "inbound" | "outbound";
|
|
1280
|
+
recording?: string | undefined;
|
|
1281
|
+
transcription?: string | undefined;
|
|
1282
|
+
fromNumber?: string | undefined;
|
|
1283
|
+
toNumber?: string | undefined;
|
|
1284
|
+
}>;
|
|
1285
|
+
export declare const meetingMetadataSchema: z.ZodObject<{
|
|
1286
|
+
outcome: z.ZodEnum<["completed", "rescheduled", "cancelled", "no_show"]>;
|
|
1287
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
meetingUrl: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
calendarEventId: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1291
|
+
recording: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
}, "strip", z.ZodTypeAny, {
|
|
1294
|
+
outcome: "completed" | "rescheduled" | "cancelled" | "no_show";
|
|
1295
|
+
notes?: string | undefined;
|
|
1296
|
+
recording?: string | undefined;
|
|
1297
|
+
location?: string | undefined;
|
|
1298
|
+
meetingUrl?: string | undefined;
|
|
1299
|
+
calendarEventId?: string | undefined;
|
|
1300
|
+
attendees?: string[] | undefined;
|
|
1301
|
+
}, {
|
|
1302
|
+
outcome: "completed" | "rescheduled" | "cancelled" | "no_show";
|
|
1303
|
+
notes?: string | undefined;
|
|
1304
|
+
recording?: string | undefined;
|
|
1305
|
+
location?: string | undefined;
|
|
1306
|
+
meetingUrl?: string | undefined;
|
|
1307
|
+
calendarEventId?: string | undefined;
|
|
1308
|
+
attendees?: string[] | undefined;
|
|
1309
|
+
}>;
|
|
1310
|
+
export declare const emailMetadataSchema: z.ZodObject<{
|
|
1311
|
+
status: z.ZodEnum<["sent", "delivered", "opened", "clicked", "replied", "bounced", "unsubscribed"]>;
|
|
1312
|
+
subject: z.ZodString;
|
|
1313
|
+
from: z.ZodString;
|
|
1314
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
1315
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1316
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1317
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
trackingOpens: z.ZodDefault<z.ZodBoolean>;
|
|
1319
|
+
trackingClicks: z.ZodDefault<z.ZodBoolean>;
|
|
1320
|
+
}, "strip", z.ZodTypeAny, {
|
|
1321
|
+
status: "sent" | "delivered" | "opened" | "clicked" | "replied" | "bounced" | "unsubscribed";
|
|
1322
|
+
subject: string;
|
|
1323
|
+
from: string;
|
|
1324
|
+
to: string[];
|
|
1325
|
+
trackingOpens: boolean;
|
|
1326
|
+
trackingClicks: boolean;
|
|
1327
|
+
cc?: string[] | undefined;
|
|
1328
|
+
bcc?: string[] | undefined;
|
|
1329
|
+
templateId?: string | undefined;
|
|
1330
|
+
}, {
|
|
1331
|
+
status: "sent" | "delivered" | "opened" | "clicked" | "replied" | "bounced" | "unsubscribed";
|
|
1332
|
+
subject: string;
|
|
1333
|
+
from: string;
|
|
1334
|
+
to: string[];
|
|
1335
|
+
cc?: string[] | undefined;
|
|
1336
|
+
bcc?: string[] | undefined;
|
|
1337
|
+
templateId?: string | undefined;
|
|
1338
|
+
trackingOpens?: boolean | undefined;
|
|
1339
|
+
trackingClicks?: boolean | undefined;
|
|
1340
|
+
}>;
|
|
1341
|
+
export declare const checklistItemSchema: z.ZodObject<{
|
|
1342
|
+
item: z.ZodString;
|
|
1343
|
+
completed: z.ZodDefault<z.ZodBoolean>;
|
|
1344
|
+
}, "strip", z.ZodTypeAny, {
|
|
1345
|
+
completed: boolean;
|
|
1346
|
+
item: string;
|
|
1347
|
+
}, {
|
|
1348
|
+
item: string;
|
|
1349
|
+
completed?: boolean | undefined;
|
|
1350
|
+
}>;
|
|
1351
|
+
export declare const taskMetadataSchema: z.ZodObject<{
|
|
1352
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "cancelled"]>;
|
|
1353
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
reminderAt: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
priority: z.ZodEnum<["low", "medium", "high"]>;
|
|
1356
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
checklist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1358
|
+
item: z.ZodString;
|
|
1359
|
+
completed: z.ZodDefault<z.ZodBoolean>;
|
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
completed: boolean;
|
|
1362
|
+
item: string;
|
|
1363
|
+
}, {
|
|
1364
|
+
item: string;
|
|
1365
|
+
completed?: boolean | undefined;
|
|
1366
|
+
}>, "many">>;
|
|
1367
|
+
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
status: "completed" | "cancelled" | "pending" | "in_progress";
|
|
1369
|
+
priority: "low" | "medium" | "high";
|
|
1370
|
+
dueDate?: string | undefined;
|
|
1371
|
+
reminderAt?: string | undefined;
|
|
1372
|
+
assigneeId?: string | undefined;
|
|
1373
|
+
checklist?: {
|
|
1374
|
+
completed: boolean;
|
|
1375
|
+
item: string;
|
|
1376
|
+
}[] | undefined;
|
|
1377
|
+
}, {
|
|
1378
|
+
status: "completed" | "cancelled" | "pending" | "in_progress";
|
|
1379
|
+
priority: "low" | "medium" | "high";
|
|
1380
|
+
dueDate?: string | undefined;
|
|
1381
|
+
reminderAt?: string | undefined;
|
|
1382
|
+
assigneeId?: string | undefined;
|
|
1383
|
+
checklist?: {
|
|
1384
|
+
item: string;
|
|
1385
|
+
completed?: boolean | undefined;
|
|
1386
|
+
}[] | undefined;
|
|
1387
|
+
}>;
|
|
1388
|
+
export declare const activityMetadataSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1389
|
+
outcome: z.ZodEnum<["connected", "voicemail", "no_answer", "busy", "wrong_number", "disconnected"]>;
|
|
1390
|
+
recording: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
transcription: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
fromNumber: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
toNumber: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
direction: z.ZodEnum<["inbound", "outbound"]>;
|
|
1395
|
+
type: z.ZodLiteral<"call">;
|
|
1396
|
+
}, "strip", z.ZodTypeAny, {
|
|
1397
|
+
type: "call";
|
|
1398
|
+
outcome: "connected" | "voicemail" | "no_answer" | "busy" | "wrong_number" | "disconnected";
|
|
1399
|
+
direction: "inbound" | "outbound";
|
|
1400
|
+
recording?: string | undefined;
|
|
1401
|
+
transcription?: string | undefined;
|
|
1402
|
+
fromNumber?: string | undefined;
|
|
1403
|
+
toNumber?: string | undefined;
|
|
1404
|
+
}, {
|
|
1405
|
+
type: "call";
|
|
1406
|
+
outcome: "connected" | "voicemail" | "no_answer" | "busy" | "wrong_number" | "disconnected";
|
|
1407
|
+
direction: "inbound" | "outbound";
|
|
1408
|
+
recording?: string | undefined;
|
|
1409
|
+
transcription?: string | undefined;
|
|
1410
|
+
fromNumber?: string | undefined;
|
|
1411
|
+
toNumber?: string | undefined;
|
|
1412
|
+
}>, z.ZodObject<{
|
|
1413
|
+
outcome: z.ZodEnum<["completed", "rescheduled", "cancelled", "no_show"]>;
|
|
1414
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
meetingUrl: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
calendarEventId: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1418
|
+
recording: z.ZodOptional<z.ZodString>;
|
|
1419
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
type: z.ZodLiteral<"meeting">;
|
|
1421
|
+
}, "strip", z.ZodTypeAny, {
|
|
1422
|
+
type: "meeting";
|
|
1423
|
+
outcome: "completed" | "rescheduled" | "cancelled" | "no_show";
|
|
1424
|
+
notes?: string | undefined;
|
|
1425
|
+
recording?: string | undefined;
|
|
1426
|
+
location?: string | undefined;
|
|
1427
|
+
meetingUrl?: string | undefined;
|
|
1428
|
+
calendarEventId?: string | undefined;
|
|
1429
|
+
attendees?: string[] | undefined;
|
|
1430
|
+
}, {
|
|
1431
|
+
type: "meeting";
|
|
1432
|
+
outcome: "completed" | "rescheduled" | "cancelled" | "no_show";
|
|
1433
|
+
notes?: string | undefined;
|
|
1434
|
+
recording?: string | undefined;
|
|
1435
|
+
location?: string | undefined;
|
|
1436
|
+
meetingUrl?: string | undefined;
|
|
1437
|
+
calendarEventId?: string | undefined;
|
|
1438
|
+
attendees?: string[] | undefined;
|
|
1439
|
+
}>, z.ZodObject<{
|
|
1440
|
+
status: z.ZodEnum<["sent", "delivered", "opened", "clicked", "replied", "bounced", "unsubscribed"]>;
|
|
1441
|
+
subject: z.ZodString;
|
|
1442
|
+
from: z.ZodString;
|
|
1443
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
1444
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1445
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1446
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
trackingOpens: z.ZodDefault<z.ZodBoolean>;
|
|
1448
|
+
trackingClicks: z.ZodDefault<z.ZodBoolean>;
|
|
1449
|
+
type: z.ZodLiteral<"email">;
|
|
1450
|
+
}, "strip", z.ZodTypeAny, {
|
|
1451
|
+
status: "sent" | "delivered" | "opened" | "clicked" | "replied" | "bounced" | "unsubscribed";
|
|
1452
|
+
type: "email";
|
|
1453
|
+
subject: string;
|
|
1454
|
+
from: string;
|
|
1455
|
+
to: string[];
|
|
1456
|
+
trackingOpens: boolean;
|
|
1457
|
+
trackingClicks: boolean;
|
|
1458
|
+
cc?: string[] | undefined;
|
|
1459
|
+
bcc?: string[] | undefined;
|
|
1460
|
+
templateId?: string | undefined;
|
|
1461
|
+
}, {
|
|
1462
|
+
status: "sent" | "delivered" | "opened" | "clicked" | "replied" | "bounced" | "unsubscribed";
|
|
1463
|
+
type: "email";
|
|
1464
|
+
subject: string;
|
|
1465
|
+
from: string;
|
|
1466
|
+
to: string[];
|
|
1467
|
+
cc?: string[] | undefined;
|
|
1468
|
+
bcc?: string[] | undefined;
|
|
1469
|
+
templateId?: string | undefined;
|
|
1470
|
+
trackingOpens?: boolean | undefined;
|
|
1471
|
+
trackingClicks?: boolean | undefined;
|
|
1472
|
+
}>, z.ZodObject<{
|
|
1473
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "cancelled"]>;
|
|
1474
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
1475
|
+
reminderAt: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
priority: z.ZodEnum<["low", "medium", "high"]>;
|
|
1477
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
checklist: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1479
|
+
item: z.ZodString;
|
|
1480
|
+
completed: z.ZodDefault<z.ZodBoolean>;
|
|
1481
|
+
}, "strip", z.ZodTypeAny, {
|
|
1482
|
+
completed: boolean;
|
|
1483
|
+
item: string;
|
|
1484
|
+
}, {
|
|
1485
|
+
item: string;
|
|
1486
|
+
completed?: boolean | undefined;
|
|
1487
|
+
}>, "many">>;
|
|
1488
|
+
type: z.ZodLiteral<"task">;
|
|
1489
|
+
}, "strip", z.ZodTypeAny, {
|
|
1490
|
+
status: "completed" | "cancelled" | "pending" | "in_progress";
|
|
1491
|
+
priority: "low" | "medium" | "high";
|
|
1492
|
+
type: "task";
|
|
1493
|
+
dueDate?: string | undefined;
|
|
1494
|
+
reminderAt?: string | undefined;
|
|
1495
|
+
assigneeId?: string | undefined;
|
|
1496
|
+
checklist?: {
|
|
1497
|
+
completed: boolean;
|
|
1498
|
+
item: string;
|
|
1499
|
+
}[] | undefined;
|
|
1500
|
+
}, {
|
|
1501
|
+
status: "completed" | "cancelled" | "pending" | "in_progress";
|
|
1502
|
+
priority: "low" | "medium" | "high";
|
|
1503
|
+
type: "task";
|
|
1504
|
+
dueDate?: string | undefined;
|
|
1505
|
+
reminderAt?: string | undefined;
|
|
1506
|
+
assigneeId?: string | undefined;
|
|
1507
|
+
checklist?: {
|
|
1508
|
+
item: string;
|
|
1509
|
+
completed?: boolean | undefined;
|
|
1510
|
+
}[] | undefined;
|
|
1511
|
+
}>]>, z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>]>;
|
|
1512
|
+
export declare const activitySchema: z.ZodObject<{
|
|
1513
|
+
id: z.ZodString;
|
|
1514
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
type: z.ZodEnum<["call", "email", "meeting", "task", "note", "sms", "video_call", "demo", "proposal_sent", "contract_sent", "follow_up", "social_media", "event", "other"]>;
|
|
1517
|
+
title: z.ZodString;
|
|
1518
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1519
|
+
timestamp: z.ZodString;
|
|
1520
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1521
|
+
metadata: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
1522
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1524
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1525
|
+
key: z.ZodString;
|
|
1526
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
1527
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
1528
|
+
}, "strip", z.ZodTypeAny, {
|
|
1529
|
+
value: string | number | boolean | Date | null;
|
|
1530
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1531
|
+
key: string;
|
|
1532
|
+
}, {
|
|
1533
|
+
value: string | number | boolean | Date | null;
|
|
1534
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1535
|
+
key: string;
|
|
1536
|
+
}>, "many">>;
|
|
1537
|
+
createdAt: z.ZodString;
|
|
1538
|
+
updatedAt: z.ZodString;
|
|
1539
|
+
}, "strip", z.ZodTypeAny, {
|
|
1540
|
+
type: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up";
|
|
1541
|
+
id: string;
|
|
1542
|
+
title: string;
|
|
1543
|
+
tags: string[];
|
|
1544
|
+
customFields: {
|
|
1545
|
+
value: string | number | boolean | Date | null;
|
|
1546
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1547
|
+
key: string;
|
|
1548
|
+
}[];
|
|
1549
|
+
createdAt: string;
|
|
1550
|
+
updatedAt: string;
|
|
1551
|
+
description: string;
|
|
1552
|
+
timestamp: string;
|
|
1553
|
+
metadata: Record<string, unknown>;
|
|
1554
|
+
contactId?: string | undefined;
|
|
1555
|
+
dealId?: string | undefined;
|
|
1556
|
+
duration?: number | undefined;
|
|
1557
|
+
createdBy?: string | undefined;
|
|
1558
|
+
}, {
|
|
1559
|
+
type: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up";
|
|
1560
|
+
id: string;
|
|
1561
|
+
title: string;
|
|
1562
|
+
createdAt: string;
|
|
1563
|
+
updatedAt: string;
|
|
1564
|
+
timestamp: string;
|
|
1565
|
+
metadata: Record<string, unknown>;
|
|
1566
|
+
tags?: string[] | undefined;
|
|
1567
|
+
customFields?: {
|
|
1568
|
+
value: string | number | boolean | Date | null;
|
|
1569
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1570
|
+
key: string;
|
|
1571
|
+
}[] | undefined;
|
|
1572
|
+
description?: string | undefined;
|
|
1573
|
+
contactId?: string | undefined;
|
|
1574
|
+
dealId?: string | undefined;
|
|
1575
|
+
duration?: number | undefined;
|
|
1576
|
+
createdBy?: string | undefined;
|
|
1577
|
+
}>;
|
|
1578
|
+
export declare const createActivitySchema: z.ZodObject<Omit<{
|
|
1579
|
+
id: z.ZodString;
|
|
1580
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
type: z.ZodEnum<["call", "email", "meeting", "task", "note", "sms", "video_call", "demo", "proposal_sent", "contract_sent", "follow_up", "social_media", "event", "other"]>;
|
|
1583
|
+
title: z.ZodString;
|
|
1584
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1585
|
+
timestamp: z.ZodString;
|
|
1586
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1587
|
+
metadata: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
1588
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1589
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1590
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1591
|
+
key: z.ZodString;
|
|
1592
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
1593
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
1594
|
+
}, "strip", z.ZodTypeAny, {
|
|
1595
|
+
value: string | number | boolean | Date | null;
|
|
1596
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1597
|
+
key: string;
|
|
1598
|
+
}, {
|
|
1599
|
+
value: string | number | boolean | Date | null;
|
|
1600
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1601
|
+
key: string;
|
|
1602
|
+
}>, "many">>;
|
|
1603
|
+
createdAt: z.ZodString;
|
|
1604
|
+
updatedAt: z.ZodString;
|
|
1605
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
1606
|
+
type: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up";
|
|
1607
|
+
title: string;
|
|
1608
|
+
tags: string[];
|
|
1609
|
+
customFields: {
|
|
1610
|
+
value: string | number | boolean | Date | null;
|
|
1611
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1612
|
+
key: string;
|
|
1613
|
+
}[];
|
|
1614
|
+
description: string;
|
|
1615
|
+
timestamp: string;
|
|
1616
|
+
metadata: Record<string, unknown>;
|
|
1617
|
+
contactId?: string | undefined;
|
|
1618
|
+
dealId?: string | undefined;
|
|
1619
|
+
duration?: number | undefined;
|
|
1620
|
+
createdBy?: string | undefined;
|
|
1621
|
+
}, {
|
|
1622
|
+
type: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up";
|
|
1623
|
+
title: string;
|
|
1624
|
+
timestamp: string;
|
|
1625
|
+
metadata: Record<string, unknown>;
|
|
1626
|
+
tags?: string[] | undefined;
|
|
1627
|
+
customFields?: {
|
|
1628
|
+
value: string | number | boolean | Date | null;
|
|
1629
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1630
|
+
key: string;
|
|
1631
|
+
}[] | undefined;
|
|
1632
|
+
description?: string | undefined;
|
|
1633
|
+
contactId?: string | undefined;
|
|
1634
|
+
dealId?: string | undefined;
|
|
1635
|
+
duration?: number | undefined;
|
|
1636
|
+
createdBy?: string | undefined;
|
|
1637
|
+
}>;
|
|
1638
|
+
export declare const updateActivitySchema: z.ZodObject<{
|
|
1639
|
+
type: z.ZodOptional<z.ZodEnum<["call", "email", "meeting", "task", "note", "sms", "video_call", "demo", "proposal_sent", "contract_sent", "follow_up", "social_media", "event", "other"]>>;
|
|
1640
|
+
id: z.ZodString;
|
|
1641
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1643
|
+
customFields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1644
|
+
key: z.ZodString;
|
|
1645
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
1646
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
1647
|
+
}, "strip", z.ZodTypeAny, {
|
|
1648
|
+
value: string | number | boolean | Date | null;
|
|
1649
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1650
|
+
key: string;
|
|
1651
|
+
}, {
|
|
1652
|
+
value: string | number | boolean | Date | null;
|
|
1653
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1654
|
+
key: string;
|
|
1655
|
+
}>, "many">>>;
|
|
1656
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1659
|
+
contactId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1660
|
+
dealId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1661
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1662
|
+
duration: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1663
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
|
|
1664
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1665
|
+
}, "strip", z.ZodTypeAny, {
|
|
1666
|
+
id: string;
|
|
1667
|
+
type?: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up" | undefined;
|
|
1668
|
+
title?: string | undefined;
|
|
1669
|
+
tags?: string[] | undefined;
|
|
1670
|
+
customFields?: {
|
|
1671
|
+
value: string | number | boolean | Date | null;
|
|
1672
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1673
|
+
key: string;
|
|
1674
|
+
}[] | undefined;
|
|
1675
|
+
createdAt?: string | undefined;
|
|
1676
|
+
updatedAt?: string | undefined;
|
|
1677
|
+
description?: string | undefined;
|
|
1678
|
+
contactId?: string | undefined;
|
|
1679
|
+
dealId?: string | undefined;
|
|
1680
|
+
timestamp?: string | undefined;
|
|
1681
|
+
duration?: number | undefined;
|
|
1682
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1683
|
+
createdBy?: string | undefined;
|
|
1684
|
+
}, {
|
|
1685
|
+
id: string;
|
|
1686
|
+
type?: "other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up" | undefined;
|
|
1687
|
+
title?: string | undefined;
|
|
1688
|
+
tags?: string[] | undefined;
|
|
1689
|
+
customFields?: {
|
|
1690
|
+
value: string | number | boolean | Date | null;
|
|
1691
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
1692
|
+
key: string;
|
|
1693
|
+
}[] | undefined;
|
|
1694
|
+
createdAt?: string | undefined;
|
|
1695
|
+
updatedAt?: string | undefined;
|
|
1696
|
+
description?: string | undefined;
|
|
1697
|
+
contactId?: string | undefined;
|
|
1698
|
+
dealId?: string | undefined;
|
|
1699
|
+
timestamp?: string | undefined;
|
|
1700
|
+
duration?: number | undefined;
|
|
1701
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1702
|
+
createdBy?: string | undefined;
|
|
1703
|
+
}>;
|
|
1704
|
+
export declare const mediaTypeSchema: z.ZodEnum<["image", "video", "audio", "document", "spreadsheet", "presentation", "pdf", "archive", "other"]>;
|
|
1705
|
+
export declare const mimeTypeSchema: z.ZodString;
|
|
1706
|
+
export declare const mediaEntityTypeSchema: z.ZodEnum<["contact", "deal", "activity", "note", "company"]>;
|
|
1707
|
+
export declare const imageMetadataSchema: z.ZodObject<{
|
|
1708
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1710
|
+
orientation: z.ZodOptional<z.ZodEnum<["landscape", "portrait", "square"]>>;
|
|
1711
|
+
colorSpace: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
hasAlpha: z.ZodOptional<z.ZodBoolean>;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
width?: number | undefined;
|
|
1715
|
+
height?: number | undefined;
|
|
1716
|
+
orientation?: "landscape" | "portrait" | "square" | undefined;
|
|
1717
|
+
colorSpace?: string | undefined;
|
|
1718
|
+
hasAlpha?: boolean | undefined;
|
|
1719
|
+
}, {
|
|
1720
|
+
width?: number | undefined;
|
|
1721
|
+
height?: number | undefined;
|
|
1722
|
+
orientation?: "landscape" | "portrait" | "square" | undefined;
|
|
1723
|
+
colorSpace?: string | undefined;
|
|
1724
|
+
hasAlpha?: boolean | undefined;
|
|
1725
|
+
}>;
|
|
1726
|
+
export declare const videoMetadataSchema: z.ZodObject<{
|
|
1727
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1730
|
+
frameRate: z.ZodOptional<z.ZodNumber>;
|
|
1731
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
bitrate: z.ZodOptional<z.ZodNumber>;
|
|
1733
|
+
hasAudio: z.ZodOptional<z.ZodBoolean>;
|
|
1734
|
+
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
duration?: number | undefined;
|
|
1736
|
+
width?: number | undefined;
|
|
1737
|
+
height?: number | undefined;
|
|
1738
|
+
frameRate?: number | undefined;
|
|
1739
|
+
codec?: string | undefined;
|
|
1740
|
+
bitrate?: number | undefined;
|
|
1741
|
+
hasAudio?: boolean | undefined;
|
|
1742
|
+
}, {
|
|
1743
|
+
duration?: number | undefined;
|
|
1744
|
+
width?: number | undefined;
|
|
1745
|
+
height?: number | undefined;
|
|
1746
|
+
frameRate?: number | undefined;
|
|
1747
|
+
codec?: string | undefined;
|
|
1748
|
+
bitrate?: number | undefined;
|
|
1749
|
+
hasAudio?: boolean | undefined;
|
|
1750
|
+
}>;
|
|
1751
|
+
export declare const audioMetadataSchema: z.ZodObject<{
|
|
1752
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1753
|
+
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
1754
|
+
channels: z.ZodOptional<z.ZodNumber>;
|
|
1755
|
+
bitrate: z.ZodOptional<z.ZodNumber>;
|
|
1756
|
+
codec: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
}, "strip", z.ZodTypeAny, {
|
|
1758
|
+
duration?: number | undefined;
|
|
1759
|
+
codec?: string | undefined;
|
|
1760
|
+
bitrate?: number | undefined;
|
|
1761
|
+
sampleRate?: number | undefined;
|
|
1762
|
+
channels?: number | undefined;
|
|
1763
|
+
}, {
|
|
1764
|
+
duration?: number | undefined;
|
|
1765
|
+
codec?: string | undefined;
|
|
1766
|
+
bitrate?: number | undefined;
|
|
1767
|
+
sampleRate?: number | undefined;
|
|
1768
|
+
channels?: number | undefined;
|
|
1769
|
+
}>;
|
|
1770
|
+
export declare const documentMetadataSchema: z.ZodObject<{
|
|
1771
|
+
pageCount: z.ZodOptional<z.ZodNumber>;
|
|
1772
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1775
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1776
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
}, "strip", z.ZodTypeAny, {
|
|
1779
|
+
title?: string | undefined;
|
|
1780
|
+
createdAt?: string | undefined;
|
|
1781
|
+
subject?: string | undefined;
|
|
1782
|
+
pageCount?: number | undefined;
|
|
1783
|
+
author?: string | undefined;
|
|
1784
|
+
keywords?: string[] | undefined;
|
|
1785
|
+
modifiedAt?: string | undefined;
|
|
1786
|
+
}, {
|
|
1787
|
+
title?: string | undefined;
|
|
1788
|
+
createdAt?: string | undefined;
|
|
1789
|
+
subject?: string | undefined;
|
|
1790
|
+
pageCount?: number | undefined;
|
|
1791
|
+
author?: string | undefined;
|
|
1792
|
+
keywords?: string[] | undefined;
|
|
1793
|
+
modifiedAt?: string | undefined;
|
|
1794
|
+
}>;
|
|
1795
|
+
export declare const mediaSchema: z.ZodObject<{
|
|
1796
|
+
id: z.ZodString;
|
|
1797
|
+
entityType: z.ZodEnum<["contact", "deal", "activity", "note", "company"]>;
|
|
1798
|
+
entityId: z.ZodString;
|
|
1799
|
+
type: z.ZodEnum<["image", "video", "audio", "document", "spreadsheet", "presentation", "pdf", "archive", "other"]>;
|
|
1800
|
+
filename: z.ZodString;
|
|
1801
|
+
mimeType: z.ZodString;
|
|
1802
|
+
size: z.ZodNumber;
|
|
1803
|
+
url: z.ZodString;
|
|
1804
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
metadata: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
1806
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
1807
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1808
|
+
isPublic: z.ZodDefault<z.ZodBoolean>;
|
|
1809
|
+
downloadCount: z.ZodDefault<z.ZodNumber>;
|
|
1810
|
+
uploadedBy: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
createdAt: z.ZodString;
|
|
1813
|
+
}, "strip", z.ZodTypeAny, {
|
|
1814
|
+
type: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive";
|
|
1815
|
+
url: string;
|
|
1816
|
+
id: string;
|
|
1817
|
+
createdAt: string;
|
|
1818
|
+
metadata: Record<string, unknown>;
|
|
1819
|
+
entityType: "note" | "contact" | "deal" | "activity" | "company";
|
|
1820
|
+
entityId: string;
|
|
1821
|
+
filename: string;
|
|
1822
|
+
mimeType: string;
|
|
1823
|
+
size: number;
|
|
1824
|
+
isPublic: boolean;
|
|
1825
|
+
downloadCount: number;
|
|
1826
|
+
thumbnailUrl?: string | undefined;
|
|
1827
|
+
altText?: string | undefined;
|
|
1828
|
+
caption?: string | undefined;
|
|
1829
|
+
uploadedBy?: string | undefined;
|
|
1830
|
+
expiresAt?: string | undefined;
|
|
1831
|
+
}, {
|
|
1832
|
+
type: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive";
|
|
1833
|
+
url: string;
|
|
1834
|
+
id: string;
|
|
1835
|
+
createdAt: string;
|
|
1836
|
+
metadata: Record<string, unknown>;
|
|
1837
|
+
entityType: "note" | "contact" | "deal" | "activity" | "company";
|
|
1838
|
+
entityId: string;
|
|
1839
|
+
filename: string;
|
|
1840
|
+
mimeType: string;
|
|
1841
|
+
size: number;
|
|
1842
|
+
thumbnailUrl?: string | undefined;
|
|
1843
|
+
altText?: string | undefined;
|
|
1844
|
+
caption?: string | undefined;
|
|
1845
|
+
isPublic?: boolean | undefined;
|
|
1846
|
+
downloadCount?: number | undefined;
|
|
1847
|
+
uploadedBy?: string | undefined;
|
|
1848
|
+
expiresAt?: string | undefined;
|
|
1849
|
+
}>;
|
|
1850
|
+
export declare const createMediaSchema: z.ZodObject<Omit<{
|
|
1851
|
+
id: z.ZodString;
|
|
1852
|
+
entityType: z.ZodEnum<["contact", "deal", "activity", "note", "company"]>;
|
|
1853
|
+
entityId: z.ZodString;
|
|
1854
|
+
type: z.ZodEnum<["image", "video", "audio", "document", "spreadsheet", "presentation", "pdf", "archive", "other"]>;
|
|
1855
|
+
filename: z.ZodString;
|
|
1856
|
+
mimeType: z.ZodString;
|
|
1857
|
+
size: z.ZodNumber;
|
|
1858
|
+
url: z.ZodString;
|
|
1859
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
metadata: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
1861
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
isPublic: z.ZodDefault<z.ZodBoolean>;
|
|
1864
|
+
downloadCount: z.ZodDefault<z.ZodNumber>;
|
|
1865
|
+
uploadedBy: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
createdAt: z.ZodString;
|
|
1868
|
+
}, "id" | "createdAt" | "downloadCount">, "strip", z.ZodTypeAny, {
|
|
1869
|
+
type: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive";
|
|
1870
|
+
url: string;
|
|
1871
|
+
metadata: Record<string, unknown>;
|
|
1872
|
+
entityType: "note" | "contact" | "deal" | "activity" | "company";
|
|
1873
|
+
entityId: string;
|
|
1874
|
+
filename: string;
|
|
1875
|
+
mimeType: string;
|
|
1876
|
+
size: number;
|
|
1877
|
+
isPublic: boolean;
|
|
1878
|
+
thumbnailUrl?: string | undefined;
|
|
1879
|
+
altText?: string | undefined;
|
|
1880
|
+
caption?: string | undefined;
|
|
1881
|
+
uploadedBy?: string | undefined;
|
|
1882
|
+
expiresAt?: string | undefined;
|
|
1883
|
+
}, {
|
|
1884
|
+
type: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive";
|
|
1885
|
+
url: string;
|
|
1886
|
+
metadata: Record<string, unknown>;
|
|
1887
|
+
entityType: "note" | "contact" | "deal" | "activity" | "company";
|
|
1888
|
+
entityId: string;
|
|
1889
|
+
filename: string;
|
|
1890
|
+
mimeType: string;
|
|
1891
|
+
size: number;
|
|
1892
|
+
thumbnailUrl?: string | undefined;
|
|
1893
|
+
altText?: string | undefined;
|
|
1894
|
+
caption?: string | undefined;
|
|
1895
|
+
isPublic?: boolean | undefined;
|
|
1896
|
+
uploadedBy?: string | undefined;
|
|
1897
|
+
expiresAt?: string | undefined;
|
|
1898
|
+
}>;
|
|
1899
|
+
export declare const updateMediaSchema: z.ZodObject<{
|
|
1900
|
+
type: z.ZodOptional<z.ZodEnum<["image", "video", "audio", "document", "spreadsheet", "presentation", "pdf", "archive", "other"]>>;
|
|
1901
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
id: z.ZodString;
|
|
1903
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
|
|
1905
|
+
entityType: z.ZodOptional<z.ZodEnum<["contact", "deal", "activity", "note", "company"]>>;
|
|
1906
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1910
|
+
thumbnailUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1911
|
+
altText: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1912
|
+
caption: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1913
|
+
isPublic: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1914
|
+
downloadCount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1915
|
+
uploadedBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1916
|
+
expiresAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1917
|
+
}, "strip", z.ZodTypeAny, {
|
|
1918
|
+
id: string;
|
|
1919
|
+
type?: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive" | undefined;
|
|
1920
|
+
url?: string | undefined;
|
|
1921
|
+
createdAt?: string | undefined;
|
|
1922
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1923
|
+
entityType?: "note" | "contact" | "deal" | "activity" | "company" | undefined;
|
|
1924
|
+
entityId?: string | undefined;
|
|
1925
|
+
filename?: string | undefined;
|
|
1926
|
+
mimeType?: string | undefined;
|
|
1927
|
+
size?: number | undefined;
|
|
1928
|
+
thumbnailUrl?: string | undefined;
|
|
1929
|
+
altText?: string | undefined;
|
|
1930
|
+
caption?: string | undefined;
|
|
1931
|
+
isPublic?: boolean | undefined;
|
|
1932
|
+
downloadCount?: number | undefined;
|
|
1933
|
+
uploadedBy?: string | undefined;
|
|
1934
|
+
expiresAt?: string | undefined;
|
|
1935
|
+
}, {
|
|
1936
|
+
id: string;
|
|
1937
|
+
type?: "other" | "image" | "video" | "audio" | "document" | "spreadsheet" | "presentation" | "pdf" | "archive" | undefined;
|
|
1938
|
+
url?: string | undefined;
|
|
1939
|
+
createdAt?: string | undefined;
|
|
1940
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1941
|
+
entityType?: "note" | "contact" | "deal" | "activity" | "company" | undefined;
|
|
1942
|
+
entityId?: string | undefined;
|
|
1943
|
+
filename?: string | undefined;
|
|
1944
|
+
mimeType?: string | undefined;
|
|
1945
|
+
size?: number | undefined;
|
|
1946
|
+
thumbnailUrl?: string | undefined;
|
|
1947
|
+
altText?: string | undefined;
|
|
1948
|
+
caption?: string | undefined;
|
|
1949
|
+
isPublic?: boolean | undefined;
|
|
1950
|
+
downloadCount?: number | undefined;
|
|
1951
|
+
uploadedBy?: string | undefined;
|
|
1952
|
+
expiresAt?: string | undefined;
|
|
1953
|
+
}>;
|
|
1954
|
+
export declare const noteVisibilitySchema: z.ZodEnum<["private", "team", "public"]>;
|
|
1955
|
+
export declare const noteFormatSchema: z.ZodEnum<["plain", "markdown", "html"]>;
|
|
1956
|
+
export declare const noteSchema: z.ZodObject<{
|
|
1957
|
+
id: z.ZodString;
|
|
1958
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
1960
|
+
activityId: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
content: z.ZodString;
|
|
1962
|
+
format: z.ZodDefault<z.ZodEnum<["plain", "markdown", "html"]>>;
|
|
1963
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
visibility: z.ZodDefault<z.ZodEnum<["private", "team", "public"]>>;
|
|
1965
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
1967
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1968
|
+
mediaIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1969
|
+
createdAt: z.ZodString;
|
|
1970
|
+
updatedAt: z.ZodString;
|
|
1971
|
+
}, "strip", z.ZodTypeAny, {
|
|
1972
|
+
id: string;
|
|
1973
|
+
tags: string[];
|
|
1974
|
+
createdAt: string;
|
|
1975
|
+
updatedAt: string;
|
|
1976
|
+
content: string;
|
|
1977
|
+
format: "plain" | "markdown" | "html";
|
|
1978
|
+
visibility: "private" | "team" | "public";
|
|
1979
|
+
pinned: boolean;
|
|
1980
|
+
mediaIds: string[];
|
|
1981
|
+
title?: string | undefined;
|
|
1982
|
+
contactId?: string | undefined;
|
|
1983
|
+
dealId?: string | undefined;
|
|
1984
|
+
createdBy?: string | undefined;
|
|
1985
|
+
activityId?: string | undefined;
|
|
1986
|
+
}, {
|
|
1987
|
+
id: string;
|
|
1988
|
+
createdAt: string;
|
|
1989
|
+
updatedAt: string;
|
|
1990
|
+
content: string;
|
|
1991
|
+
title?: string | undefined;
|
|
1992
|
+
tags?: string[] | undefined;
|
|
1993
|
+
contactId?: string | undefined;
|
|
1994
|
+
dealId?: string | undefined;
|
|
1995
|
+
createdBy?: string | undefined;
|
|
1996
|
+
activityId?: string | undefined;
|
|
1997
|
+
format?: "plain" | "markdown" | "html" | undefined;
|
|
1998
|
+
visibility?: "private" | "team" | "public" | undefined;
|
|
1999
|
+
pinned?: boolean | undefined;
|
|
2000
|
+
mediaIds?: string[] | undefined;
|
|
2001
|
+
}>;
|
|
2002
|
+
export declare const createNoteSchema: z.ZodObject<Omit<{
|
|
2003
|
+
id: z.ZodString;
|
|
2004
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
activityId: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
content: z.ZodString;
|
|
2008
|
+
format: z.ZodDefault<z.ZodEnum<["plain", "markdown", "html"]>>;
|
|
2009
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
visibility: z.ZodDefault<z.ZodEnum<["private", "team", "public"]>>;
|
|
2011
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
2013
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2014
|
+
mediaIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2015
|
+
createdAt: z.ZodString;
|
|
2016
|
+
updatedAt: z.ZodString;
|
|
2017
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
2018
|
+
tags: string[];
|
|
2019
|
+
content: string;
|
|
2020
|
+
format: "plain" | "markdown" | "html";
|
|
2021
|
+
visibility: "private" | "team" | "public";
|
|
2022
|
+
pinned: boolean;
|
|
2023
|
+
mediaIds: string[];
|
|
2024
|
+
title?: string | undefined;
|
|
2025
|
+
contactId?: string | undefined;
|
|
2026
|
+
dealId?: string | undefined;
|
|
2027
|
+
createdBy?: string | undefined;
|
|
2028
|
+
activityId?: string | undefined;
|
|
2029
|
+
}, {
|
|
2030
|
+
content: string;
|
|
2031
|
+
title?: string | undefined;
|
|
2032
|
+
tags?: string[] | undefined;
|
|
2033
|
+
contactId?: string | undefined;
|
|
2034
|
+
dealId?: string | undefined;
|
|
2035
|
+
createdBy?: string | undefined;
|
|
2036
|
+
activityId?: string | undefined;
|
|
2037
|
+
format?: "plain" | "markdown" | "html" | undefined;
|
|
2038
|
+
visibility?: "private" | "team" | "public" | undefined;
|
|
2039
|
+
pinned?: boolean | undefined;
|
|
2040
|
+
mediaIds?: string[] | undefined;
|
|
2041
|
+
}>;
|
|
2042
|
+
export declare const updateNoteSchema: z.ZodObject<{
|
|
2043
|
+
id: z.ZodString;
|
|
2044
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2045
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2046
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
contactId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2049
|
+
dealId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2050
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2051
|
+
activityId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2052
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2053
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<["plain", "markdown", "html"]>>>;
|
|
2054
|
+
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["private", "team", "public"]>>>;
|
|
2055
|
+
pinned: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2056
|
+
mediaIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2057
|
+
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
id: string;
|
|
2059
|
+
title?: string | undefined;
|
|
2060
|
+
tags?: string[] | undefined;
|
|
2061
|
+
createdAt?: string | undefined;
|
|
2062
|
+
updatedAt?: string | undefined;
|
|
2063
|
+
contactId?: string | undefined;
|
|
2064
|
+
dealId?: string | undefined;
|
|
2065
|
+
createdBy?: string | undefined;
|
|
2066
|
+
activityId?: string | undefined;
|
|
2067
|
+
content?: string | undefined;
|
|
2068
|
+
format?: "plain" | "markdown" | "html" | undefined;
|
|
2069
|
+
visibility?: "private" | "team" | "public" | undefined;
|
|
2070
|
+
pinned?: boolean | undefined;
|
|
2071
|
+
mediaIds?: string[] | undefined;
|
|
2072
|
+
}, {
|
|
2073
|
+
id: string;
|
|
2074
|
+
title?: string | undefined;
|
|
2075
|
+
tags?: string[] | undefined;
|
|
2076
|
+
createdAt?: string | undefined;
|
|
2077
|
+
updatedAt?: string | undefined;
|
|
2078
|
+
contactId?: string | undefined;
|
|
2079
|
+
dealId?: string | undefined;
|
|
2080
|
+
createdBy?: string | undefined;
|
|
2081
|
+
activityId?: string | undefined;
|
|
2082
|
+
content?: string | undefined;
|
|
2083
|
+
format?: "plain" | "markdown" | "html" | undefined;
|
|
2084
|
+
visibility?: "private" | "team" | "public" | undefined;
|
|
2085
|
+
pinned?: boolean | undefined;
|
|
2086
|
+
mediaIds?: string[] | undefined;
|
|
2087
|
+
}>;
|
|
2088
|
+
export declare const tagCategorySchema: z.ZodEnum<["general", "industry", "source", "status", "priority", "product", "region", "custom"]>;
|
|
2089
|
+
export declare const tagSchema: z.ZodObject<{
|
|
2090
|
+
id: z.ZodString;
|
|
2091
|
+
name: z.ZodString;
|
|
2092
|
+
label: z.ZodString;
|
|
2093
|
+
color: z.ZodString;
|
|
2094
|
+
category: z.ZodDefault<z.ZodEnum<["general", "industry", "source", "status", "priority", "product", "region", "custom"]>>;
|
|
2095
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2096
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2097
|
+
usageCount: z.ZodDefault<z.ZodNumber>;
|
|
2098
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2099
|
+
createdAt: z.ZodString;
|
|
2100
|
+
updatedAt: z.ZodString;
|
|
2101
|
+
}, "strip", z.ZodTypeAny, {
|
|
2102
|
+
id: string;
|
|
2103
|
+
name: string;
|
|
2104
|
+
createdAt: string;
|
|
2105
|
+
updatedAt: string;
|
|
2106
|
+
label: string;
|
|
2107
|
+
color: string;
|
|
2108
|
+
category: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom";
|
|
2109
|
+
usageCount: number;
|
|
2110
|
+
description?: string | undefined;
|
|
2111
|
+
icon?: string | undefined;
|
|
2112
|
+
parentId?: string | undefined;
|
|
2113
|
+
}, {
|
|
2114
|
+
id: string;
|
|
2115
|
+
name: string;
|
|
2116
|
+
createdAt: string;
|
|
2117
|
+
updatedAt: string;
|
|
2118
|
+
label: string;
|
|
2119
|
+
color: string;
|
|
2120
|
+
description?: string | undefined;
|
|
2121
|
+
category?: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom" | undefined;
|
|
2122
|
+
icon?: string | undefined;
|
|
2123
|
+
usageCount?: number | undefined;
|
|
2124
|
+
parentId?: string | undefined;
|
|
2125
|
+
}>;
|
|
2126
|
+
export declare const createTagSchema: z.ZodObject<Omit<{
|
|
2127
|
+
id: z.ZodString;
|
|
2128
|
+
name: z.ZodString;
|
|
2129
|
+
label: z.ZodString;
|
|
2130
|
+
color: z.ZodString;
|
|
2131
|
+
category: z.ZodDefault<z.ZodEnum<["general", "industry", "source", "status", "priority", "product", "region", "custom"]>>;
|
|
2132
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
usageCount: z.ZodDefault<z.ZodNumber>;
|
|
2135
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
createdAt: z.ZodString;
|
|
2137
|
+
updatedAt: z.ZodString;
|
|
2138
|
+
}, "id" | "createdAt" | "updatedAt" | "usageCount">, "strip", z.ZodTypeAny, {
|
|
2139
|
+
name: string;
|
|
2140
|
+
label: string;
|
|
2141
|
+
color: string;
|
|
2142
|
+
category: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom";
|
|
2143
|
+
description?: string | undefined;
|
|
2144
|
+
icon?: string | undefined;
|
|
2145
|
+
parentId?: string | undefined;
|
|
2146
|
+
}, {
|
|
2147
|
+
name: string;
|
|
2148
|
+
label: string;
|
|
2149
|
+
color: string;
|
|
2150
|
+
description?: string | undefined;
|
|
2151
|
+
category?: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom" | undefined;
|
|
2152
|
+
icon?: string | undefined;
|
|
2153
|
+
parentId?: string | undefined;
|
|
2154
|
+
}>;
|
|
2155
|
+
export declare const updateTagSchema: z.ZodObject<{
|
|
2156
|
+
id: z.ZodString;
|
|
2157
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2158
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2161
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2163
|
+
category: z.ZodOptional<z.ZodDefault<z.ZodEnum<["general", "industry", "source", "status", "priority", "product", "region", "custom"]>>>;
|
|
2164
|
+
icon: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2165
|
+
usageCount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
2166
|
+
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2167
|
+
}, "strip", z.ZodTypeAny, {
|
|
2168
|
+
id: string;
|
|
2169
|
+
name?: string | undefined;
|
|
2170
|
+
createdAt?: string | undefined;
|
|
2171
|
+
updatedAt?: string | undefined;
|
|
2172
|
+
description?: string | undefined;
|
|
2173
|
+
label?: string | undefined;
|
|
2174
|
+
color?: string | undefined;
|
|
2175
|
+
category?: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom" | undefined;
|
|
2176
|
+
icon?: string | undefined;
|
|
2177
|
+
usageCount?: number | undefined;
|
|
2178
|
+
parentId?: string | undefined;
|
|
2179
|
+
}, {
|
|
2180
|
+
id: string;
|
|
2181
|
+
name?: string | undefined;
|
|
2182
|
+
createdAt?: string | undefined;
|
|
2183
|
+
updatedAt?: string | undefined;
|
|
2184
|
+
description?: string | undefined;
|
|
2185
|
+
label?: string | undefined;
|
|
2186
|
+
color?: string | undefined;
|
|
2187
|
+
category?: "general" | "industry" | "source" | "status" | "priority" | "product" | "region" | "custom" | undefined;
|
|
2188
|
+
icon?: string | undefined;
|
|
2189
|
+
usageCount?: number | undefined;
|
|
2190
|
+
parentId?: string | undefined;
|
|
2191
|
+
}>;
|
|
2192
|
+
export declare const companySizeSchema: z.ZodEnum<["sole_proprietor", "startup", "small", "medium", "large", "enterprise"]>;
|
|
2193
|
+
export declare const industrySchema: z.ZodEnum<["technology", "finance", "healthcare", "education", "retail", "manufacturing", "consulting", "marketing", "legal", "real_estate", "construction", "transportation", "hospitality", "energy", "telecommunications", "government", "non_profit", "other"]>;
|
|
2194
|
+
export declare const companySchema: z.ZodObject<{
|
|
2195
|
+
id: z.ZodString;
|
|
2196
|
+
name: z.ZodString;
|
|
2197
|
+
website: z.ZodOptional<z.ZodString>;
|
|
2198
|
+
industry: z.ZodOptional<z.ZodEnum<["technology", "finance", "healthcare", "education", "retail", "manufacturing", "consulting", "marketing", "legal", "real_estate", "construction", "transportation", "hospitality", "energy", "telecommunications", "government", "non_profit", "other"]>>;
|
|
2199
|
+
size: z.ZodOptional<z.ZodEnum<["sole_proprietor", "startup", "small", "medium", "large", "enterprise"]>>;
|
|
2200
|
+
employeeCount: z.ZodOptional<z.ZodNumber>;
|
|
2201
|
+
annualRevenue: z.ZodOptional<z.ZodNumber>;
|
|
2202
|
+
currency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>;
|
|
2203
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
2204
|
+
street: z.ZodString;
|
|
2205
|
+
city: z.ZodString;
|
|
2206
|
+
state: z.ZodString;
|
|
2207
|
+
postalCode: z.ZodString;
|
|
2208
|
+
country: z.ZodString;
|
|
2209
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
2210
|
+
}, "strip", z.ZodTypeAny, {
|
|
2211
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2212
|
+
street: string;
|
|
2213
|
+
city: string;
|
|
2214
|
+
state: string;
|
|
2215
|
+
postalCode: string;
|
|
2216
|
+
country: string;
|
|
2217
|
+
}, {
|
|
2218
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2219
|
+
street: string;
|
|
2220
|
+
city: string;
|
|
2221
|
+
state: string;
|
|
2222
|
+
postalCode: string;
|
|
2223
|
+
country: string;
|
|
2224
|
+
}>>;
|
|
2225
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
2226
|
+
emailDomain: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
linkedInUrl: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2229
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2230
|
+
key: z.ZodString;
|
|
2231
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
2232
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
2233
|
+
}, "strip", z.ZodTypeAny, {
|
|
2234
|
+
value: string | number | boolean | Date | null;
|
|
2235
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2236
|
+
key: string;
|
|
2237
|
+
}, {
|
|
2238
|
+
value: string | number | boolean | Date | null;
|
|
2239
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2240
|
+
key: string;
|
|
2241
|
+
}>, "many">>;
|
|
2242
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
createdAt: z.ZodString;
|
|
2245
|
+
updatedAt: z.ZodString;
|
|
2246
|
+
}, "strip", z.ZodTypeAny, {
|
|
2247
|
+
id: string;
|
|
2248
|
+
name: string;
|
|
2249
|
+
tags: string[];
|
|
2250
|
+
customFields: {
|
|
2251
|
+
value: string | number | boolean | Date | null;
|
|
2252
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2253
|
+
key: string;
|
|
2254
|
+
}[];
|
|
2255
|
+
createdAt: string;
|
|
2256
|
+
updatedAt: string;
|
|
2257
|
+
website?: string | undefined;
|
|
2258
|
+
phone?: string | undefined;
|
|
2259
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2260
|
+
notes?: string | undefined;
|
|
2261
|
+
ownerId?: string | undefined;
|
|
2262
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2263
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2264
|
+
employeeCount?: number | undefined;
|
|
2265
|
+
annualRevenue?: number | undefined;
|
|
2266
|
+
address?: {
|
|
2267
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2268
|
+
street: string;
|
|
2269
|
+
city: string;
|
|
2270
|
+
state: string;
|
|
2271
|
+
postalCode: string;
|
|
2272
|
+
country: string;
|
|
2273
|
+
} | undefined;
|
|
2274
|
+
emailDomain?: string | undefined;
|
|
2275
|
+
linkedInUrl?: string | undefined;
|
|
2276
|
+
}, {
|
|
2277
|
+
id: string;
|
|
2278
|
+
name: string;
|
|
2279
|
+
createdAt: string;
|
|
2280
|
+
updatedAt: string;
|
|
2281
|
+
website?: string | undefined;
|
|
2282
|
+
phone?: string | undefined;
|
|
2283
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2284
|
+
notes?: string | undefined;
|
|
2285
|
+
tags?: string[] | undefined;
|
|
2286
|
+
customFields?: {
|
|
2287
|
+
value: string | number | boolean | Date | null;
|
|
2288
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2289
|
+
key: string;
|
|
2290
|
+
}[] | undefined;
|
|
2291
|
+
ownerId?: string | undefined;
|
|
2292
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2293
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2294
|
+
employeeCount?: number | undefined;
|
|
2295
|
+
annualRevenue?: number | undefined;
|
|
2296
|
+
address?: {
|
|
2297
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2298
|
+
street: string;
|
|
2299
|
+
city: string;
|
|
2300
|
+
state: string;
|
|
2301
|
+
postalCode: string;
|
|
2302
|
+
country: string;
|
|
2303
|
+
} | undefined;
|
|
2304
|
+
emailDomain?: string | undefined;
|
|
2305
|
+
linkedInUrl?: string | undefined;
|
|
2306
|
+
}>;
|
|
2307
|
+
export declare const createCompanySchema: z.ZodObject<Omit<{
|
|
2308
|
+
id: z.ZodString;
|
|
2309
|
+
name: z.ZodString;
|
|
2310
|
+
website: z.ZodOptional<z.ZodString>;
|
|
2311
|
+
industry: z.ZodOptional<z.ZodEnum<["technology", "finance", "healthcare", "education", "retail", "manufacturing", "consulting", "marketing", "legal", "real_estate", "construction", "transportation", "hospitality", "energy", "telecommunications", "government", "non_profit", "other"]>>;
|
|
2312
|
+
size: z.ZodOptional<z.ZodEnum<["sole_proprietor", "startup", "small", "medium", "large", "enterprise"]>>;
|
|
2313
|
+
employeeCount: z.ZodOptional<z.ZodNumber>;
|
|
2314
|
+
annualRevenue: z.ZodOptional<z.ZodNumber>;
|
|
2315
|
+
currency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>;
|
|
2316
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
2317
|
+
street: z.ZodString;
|
|
2318
|
+
city: z.ZodString;
|
|
2319
|
+
state: z.ZodString;
|
|
2320
|
+
postalCode: z.ZodString;
|
|
2321
|
+
country: z.ZodString;
|
|
2322
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
2323
|
+
}, "strip", z.ZodTypeAny, {
|
|
2324
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2325
|
+
street: string;
|
|
2326
|
+
city: string;
|
|
2327
|
+
state: string;
|
|
2328
|
+
postalCode: string;
|
|
2329
|
+
country: string;
|
|
2330
|
+
}, {
|
|
2331
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2332
|
+
street: string;
|
|
2333
|
+
city: string;
|
|
2334
|
+
state: string;
|
|
2335
|
+
postalCode: string;
|
|
2336
|
+
country: string;
|
|
2337
|
+
}>>;
|
|
2338
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
2339
|
+
emailDomain: z.ZodOptional<z.ZodString>;
|
|
2340
|
+
linkedInUrl: z.ZodOptional<z.ZodString>;
|
|
2341
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2342
|
+
customFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2343
|
+
key: z.ZodString;
|
|
2344
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
2345
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
2346
|
+
}, "strip", z.ZodTypeAny, {
|
|
2347
|
+
value: string | number | boolean | Date | null;
|
|
2348
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2349
|
+
key: string;
|
|
2350
|
+
}, {
|
|
2351
|
+
value: string | number | boolean | Date | null;
|
|
2352
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2353
|
+
key: string;
|
|
2354
|
+
}>, "many">>;
|
|
2355
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2356
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2357
|
+
createdAt: z.ZodString;
|
|
2358
|
+
updatedAt: z.ZodString;
|
|
2359
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
2360
|
+
name: string;
|
|
2361
|
+
tags: string[];
|
|
2362
|
+
customFields: {
|
|
2363
|
+
value: string | number | boolean | Date | null;
|
|
2364
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2365
|
+
key: string;
|
|
2366
|
+
}[];
|
|
2367
|
+
website?: string | undefined;
|
|
2368
|
+
phone?: string | undefined;
|
|
2369
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2370
|
+
notes?: string | undefined;
|
|
2371
|
+
ownerId?: string | undefined;
|
|
2372
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2373
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2374
|
+
employeeCount?: number | undefined;
|
|
2375
|
+
annualRevenue?: number | undefined;
|
|
2376
|
+
address?: {
|
|
2377
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2378
|
+
street: string;
|
|
2379
|
+
city: string;
|
|
2380
|
+
state: string;
|
|
2381
|
+
postalCode: string;
|
|
2382
|
+
country: string;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
emailDomain?: string | undefined;
|
|
2385
|
+
linkedInUrl?: string | undefined;
|
|
2386
|
+
}, {
|
|
2387
|
+
name: string;
|
|
2388
|
+
website?: string | undefined;
|
|
2389
|
+
phone?: string | undefined;
|
|
2390
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2391
|
+
notes?: string | undefined;
|
|
2392
|
+
tags?: string[] | undefined;
|
|
2393
|
+
customFields?: {
|
|
2394
|
+
value: string | number | boolean | Date | null;
|
|
2395
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2396
|
+
key: string;
|
|
2397
|
+
}[] | undefined;
|
|
2398
|
+
ownerId?: string | undefined;
|
|
2399
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2400
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2401
|
+
employeeCount?: number | undefined;
|
|
2402
|
+
annualRevenue?: number | undefined;
|
|
2403
|
+
address?: {
|
|
2404
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2405
|
+
street: string;
|
|
2406
|
+
city: string;
|
|
2407
|
+
state: string;
|
|
2408
|
+
postalCode: string;
|
|
2409
|
+
country: string;
|
|
2410
|
+
} | undefined;
|
|
2411
|
+
emailDomain?: string | undefined;
|
|
2412
|
+
linkedInUrl?: string | undefined;
|
|
2413
|
+
}>;
|
|
2414
|
+
export declare const updateCompanySchema: z.ZodObject<{
|
|
2415
|
+
website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2416
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2417
|
+
industry: z.ZodOptional<z.ZodOptional<z.ZodEnum<["technology", "finance", "healthcare", "education", "retail", "manufacturing", "consulting", "marketing", "legal", "real_estate", "construction", "transportation", "hospitality", "energy", "telecommunications", "government", "non_profit", "other"]>>>;
|
|
2418
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2419
|
+
id: z.ZodString;
|
|
2420
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2422
|
+
customFields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2423
|
+
key: z.ZodString;
|
|
2424
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
2425
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "select", "multiselect"]>;
|
|
2426
|
+
}, "strip", z.ZodTypeAny, {
|
|
2427
|
+
value: string | number | boolean | Date | null;
|
|
2428
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2429
|
+
key: string;
|
|
2430
|
+
}, {
|
|
2431
|
+
value: string | number | boolean | Date | null;
|
|
2432
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2433
|
+
key: string;
|
|
2434
|
+
}>, "many">>>;
|
|
2435
|
+
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2436
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
2437
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2438
|
+
currency: z.ZodOptional<z.ZodOptional<z.ZodEnum<["USD", "EUR", "GBP", "CAD", "AUD", "JPY", "CNY", "INR", "BRL", "MXN"]>>>;
|
|
2439
|
+
size: z.ZodOptional<z.ZodOptional<z.ZodEnum<["sole_proprietor", "startup", "small", "medium", "large", "enterprise"]>>>;
|
|
2440
|
+
employeeCount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2441
|
+
annualRevenue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2442
|
+
address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2443
|
+
street: z.ZodString;
|
|
2444
|
+
city: z.ZodString;
|
|
2445
|
+
state: z.ZodString;
|
|
2446
|
+
postalCode: z.ZodString;
|
|
2447
|
+
country: z.ZodString;
|
|
2448
|
+
type: z.ZodEnum<["home", "work", "billing", "shipping", "other"]>;
|
|
2449
|
+
}, "strip", z.ZodTypeAny, {
|
|
2450
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2451
|
+
street: string;
|
|
2452
|
+
city: string;
|
|
2453
|
+
state: string;
|
|
2454
|
+
postalCode: string;
|
|
2455
|
+
country: string;
|
|
2456
|
+
}, {
|
|
2457
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2458
|
+
street: string;
|
|
2459
|
+
city: string;
|
|
2460
|
+
state: string;
|
|
2461
|
+
postalCode: string;
|
|
2462
|
+
country: string;
|
|
2463
|
+
}>>>;
|
|
2464
|
+
emailDomain: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2465
|
+
linkedInUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2466
|
+
}, "strip", z.ZodTypeAny, {
|
|
2467
|
+
id: string;
|
|
2468
|
+
website?: string | undefined;
|
|
2469
|
+
phone?: string | undefined;
|
|
2470
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2471
|
+
notes?: string | undefined;
|
|
2472
|
+
name?: string | undefined;
|
|
2473
|
+
tags?: string[] | undefined;
|
|
2474
|
+
customFields?: {
|
|
2475
|
+
value: string | number | boolean | Date | null;
|
|
2476
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2477
|
+
key: string;
|
|
2478
|
+
}[] | undefined;
|
|
2479
|
+
ownerId?: string | undefined;
|
|
2480
|
+
createdAt?: string | undefined;
|
|
2481
|
+
updatedAt?: string | undefined;
|
|
2482
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2483
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2484
|
+
employeeCount?: number | undefined;
|
|
2485
|
+
annualRevenue?: number | undefined;
|
|
2486
|
+
address?: {
|
|
2487
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2488
|
+
street: string;
|
|
2489
|
+
city: string;
|
|
2490
|
+
state: string;
|
|
2491
|
+
postalCode: string;
|
|
2492
|
+
country: string;
|
|
2493
|
+
} | undefined;
|
|
2494
|
+
emailDomain?: string | undefined;
|
|
2495
|
+
linkedInUrl?: string | undefined;
|
|
2496
|
+
}, {
|
|
2497
|
+
id: string;
|
|
2498
|
+
website?: string | undefined;
|
|
2499
|
+
phone?: string | undefined;
|
|
2500
|
+
industry?: "other" | "technology" | "finance" | "healthcare" | "education" | "retail" | "manufacturing" | "consulting" | "marketing" | "legal" | "real_estate" | "construction" | "transportation" | "hospitality" | "energy" | "telecommunications" | "government" | "non_profit" | undefined;
|
|
2501
|
+
notes?: string | undefined;
|
|
2502
|
+
name?: string | undefined;
|
|
2503
|
+
tags?: string[] | undefined;
|
|
2504
|
+
customFields?: {
|
|
2505
|
+
value: string | number | boolean | Date | null;
|
|
2506
|
+
type: "string" | "number" | "boolean" | "date" | "select" | "multiselect";
|
|
2507
|
+
key: string;
|
|
2508
|
+
}[] | undefined;
|
|
2509
|
+
ownerId?: string | undefined;
|
|
2510
|
+
createdAt?: string | undefined;
|
|
2511
|
+
updatedAt?: string | undefined;
|
|
2512
|
+
currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | undefined;
|
|
2513
|
+
size?: "medium" | "sole_proprietor" | "startup" | "small" | "large" | "enterprise" | undefined;
|
|
2514
|
+
employeeCount?: number | undefined;
|
|
2515
|
+
annualRevenue?: number | undefined;
|
|
2516
|
+
address?: {
|
|
2517
|
+
type: "home" | "work" | "other" | "billing" | "shipping";
|
|
2518
|
+
street: string;
|
|
2519
|
+
city: string;
|
|
2520
|
+
state: string;
|
|
2521
|
+
postalCode: string;
|
|
2522
|
+
country: string;
|
|
2523
|
+
} | undefined;
|
|
2524
|
+
emailDomain?: string | undefined;
|
|
2525
|
+
linkedInUrl?: string | undefined;
|
|
2526
|
+
}>;
|
|
2527
|
+
export declare const pipelineStageSchema: z.ZodObject<{
|
|
2528
|
+
id: z.ZodString;
|
|
2529
|
+
name: z.ZodString;
|
|
2530
|
+
order: z.ZodNumber;
|
|
2531
|
+
probability: z.ZodNumber;
|
|
2532
|
+
color: z.ZodString;
|
|
2533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
}, "strip", z.ZodTypeAny, {
|
|
2535
|
+
id: string;
|
|
2536
|
+
name: string;
|
|
2537
|
+
probability: number;
|
|
2538
|
+
color: string;
|
|
2539
|
+
order: number;
|
|
2540
|
+
description?: string | undefined;
|
|
2541
|
+
}, {
|
|
2542
|
+
id: string;
|
|
2543
|
+
name: string;
|
|
2544
|
+
probability: number;
|
|
2545
|
+
color: string;
|
|
2546
|
+
order: number;
|
|
2547
|
+
description?: string | undefined;
|
|
2548
|
+
}>;
|
|
2549
|
+
export declare const pipelineSchema: z.ZodObject<{
|
|
2550
|
+
id: z.ZodString;
|
|
2551
|
+
name: z.ZodString;
|
|
2552
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
2554
|
+
id: z.ZodString;
|
|
2555
|
+
name: z.ZodString;
|
|
2556
|
+
order: z.ZodNumber;
|
|
2557
|
+
probability: z.ZodNumber;
|
|
2558
|
+
color: z.ZodString;
|
|
2559
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
}, "strip", z.ZodTypeAny, {
|
|
2561
|
+
id: string;
|
|
2562
|
+
name: string;
|
|
2563
|
+
probability: number;
|
|
2564
|
+
color: string;
|
|
2565
|
+
order: number;
|
|
2566
|
+
description?: string | undefined;
|
|
2567
|
+
}, {
|
|
2568
|
+
id: string;
|
|
2569
|
+
name: string;
|
|
2570
|
+
probability: number;
|
|
2571
|
+
color: string;
|
|
2572
|
+
order: number;
|
|
2573
|
+
description?: string | undefined;
|
|
2574
|
+
}>, "many">;
|
|
2575
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
2576
|
+
createdAt: z.ZodString;
|
|
2577
|
+
updatedAt: z.ZodString;
|
|
2578
|
+
}, "strip", z.ZodTypeAny, {
|
|
2579
|
+
id: string;
|
|
2580
|
+
name: string;
|
|
2581
|
+
createdAt: string;
|
|
2582
|
+
updatedAt: string;
|
|
2583
|
+
stages: {
|
|
2584
|
+
id: string;
|
|
2585
|
+
name: string;
|
|
2586
|
+
probability: number;
|
|
2587
|
+
color: string;
|
|
2588
|
+
order: number;
|
|
2589
|
+
description?: string | undefined;
|
|
2590
|
+
}[];
|
|
2591
|
+
isDefault: boolean;
|
|
2592
|
+
description?: string | undefined;
|
|
2593
|
+
}, {
|
|
2594
|
+
id: string;
|
|
2595
|
+
name: string;
|
|
2596
|
+
createdAt: string;
|
|
2597
|
+
updatedAt: string;
|
|
2598
|
+
stages: {
|
|
2599
|
+
id: string;
|
|
2600
|
+
name: string;
|
|
2601
|
+
probability: number;
|
|
2602
|
+
color: string;
|
|
2603
|
+
order: number;
|
|
2604
|
+
description?: string | undefined;
|
|
2605
|
+
}[];
|
|
2606
|
+
description?: string | undefined;
|
|
2607
|
+
isDefault?: boolean | undefined;
|
|
2608
|
+
}>;
|
|
2609
|
+
export declare const sortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
|
|
2610
|
+
export declare const paginationSchema: z.ZodObject<{
|
|
2611
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
2612
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2613
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2614
|
+
}, "strip", z.ZodTypeAny, {
|
|
2615
|
+
page: number;
|
|
2616
|
+
limit: number;
|
|
2617
|
+
offset?: number | undefined;
|
|
2618
|
+
}, {
|
|
2619
|
+
page?: number | undefined;
|
|
2620
|
+
limit?: number | undefined;
|
|
2621
|
+
offset?: number | undefined;
|
|
2622
|
+
}>;
|
|
2623
|
+
export declare const dateRangeSchema: z.ZodEffects<z.ZodObject<{
|
|
2624
|
+
start: z.ZodString;
|
|
2625
|
+
end: z.ZodString;
|
|
2626
|
+
}, "strip", z.ZodTypeAny, {
|
|
2627
|
+
start: string;
|
|
2628
|
+
end: string;
|
|
2629
|
+
}, {
|
|
2630
|
+
start: string;
|
|
2631
|
+
end: string;
|
|
2632
|
+
}>, {
|
|
2633
|
+
start: string;
|
|
2634
|
+
end: string;
|
|
2635
|
+
}, {
|
|
2636
|
+
start: string;
|
|
2637
|
+
end: string;
|
|
2638
|
+
}>;
|
|
2639
|
+
export declare const contactFilterSchema: z.ZodObject<{
|
|
2640
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2641
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<["lead", "prospect", "qualified", "customer", "churned", "archived"]>, "many">>;
|
|
2642
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2643
|
+
source: z.ZodOptional<z.ZodArray<z.ZodEnum<["organic", "referral", "advertisement", "social_media", "email_campaign", "website", "event", "cold_outreach", "partner", "other"]>, "many">>;
|
|
2644
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
2646
|
+
createdAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2647
|
+
start: z.ZodString;
|
|
2648
|
+
end: z.ZodString;
|
|
2649
|
+
}, "strip", z.ZodTypeAny, {
|
|
2650
|
+
start: string;
|
|
2651
|
+
end: string;
|
|
2652
|
+
}, {
|
|
2653
|
+
start: string;
|
|
2654
|
+
end: string;
|
|
2655
|
+
}>, {
|
|
2656
|
+
start: string;
|
|
2657
|
+
end: string;
|
|
2658
|
+
}, {
|
|
2659
|
+
start: string;
|
|
2660
|
+
end: string;
|
|
2661
|
+
}>>;
|
|
2662
|
+
updatedAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2663
|
+
start: z.ZodString;
|
|
2664
|
+
end: z.ZodString;
|
|
2665
|
+
}, "strip", z.ZodTypeAny, {
|
|
2666
|
+
start: string;
|
|
2667
|
+
end: string;
|
|
2668
|
+
}, {
|
|
2669
|
+
start: string;
|
|
2670
|
+
end: string;
|
|
2671
|
+
}>, {
|
|
2672
|
+
start: string;
|
|
2673
|
+
end: string;
|
|
2674
|
+
}, {
|
|
2675
|
+
start: string;
|
|
2676
|
+
end: string;
|
|
2677
|
+
}>>;
|
|
2678
|
+
lastContactedAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2679
|
+
start: z.ZodString;
|
|
2680
|
+
end: z.ZodString;
|
|
2681
|
+
}, "strip", z.ZodTypeAny, {
|
|
2682
|
+
start: string;
|
|
2683
|
+
end: string;
|
|
2684
|
+
}, {
|
|
2685
|
+
start: string;
|
|
2686
|
+
end: string;
|
|
2687
|
+
}>, {
|
|
2688
|
+
start: string;
|
|
2689
|
+
end: string;
|
|
2690
|
+
}, {
|
|
2691
|
+
start: string;
|
|
2692
|
+
end: string;
|
|
2693
|
+
}>>;
|
|
2694
|
+
nextFollowUpAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2695
|
+
start: z.ZodString;
|
|
2696
|
+
end: z.ZodString;
|
|
2697
|
+
}, "strip", z.ZodTypeAny, {
|
|
2698
|
+
start: string;
|
|
2699
|
+
end: string;
|
|
2700
|
+
}, {
|
|
2701
|
+
start: string;
|
|
2702
|
+
end: string;
|
|
2703
|
+
}>, {
|
|
2704
|
+
start: string;
|
|
2705
|
+
end: string;
|
|
2706
|
+
}, {
|
|
2707
|
+
start: string;
|
|
2708
|
+
end: string;
|
|
2709
|
+
}>>;
|
|
2710
|
+
hasEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2711
|
+
hasPhone: z.ZodOptional<z.ZodBoolean>;
|
|
2712
|
+
leadScoreMin: z.ZodOptional<z.ZodNumber>;
|
|
2713
|
+
leadScoreMax: z.ZodOptional<z.ZodNumber>;
|
|
2714
|
+
doNotContact: z.ZodOptional<z.ZodBoolean>;
|
|
2715
|
+
}, "strip", z.ZodTypeAny, {
|
|
2716
|
+
source?: ("other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner")[] | undefined;
|
|
2717
|
+
status?: ("lead" | "prospect" | "qualified" | "customer" | "churned" | "archived")[] | undefined;
|
|
2718
|
+
search?: string | undefined;
|
|
2719
|
+
tags?: string[] | undefined;
|
|
2720
|
+
ownerId?: string | undefined;
|
|
2721
|
+
doNotContact?: boolean | undefined;
|
|
2722
|
+
lastContactedAt?: {
|
|
2723
|
+
start: string;
|
|
2724
|
+
end: string;
|
|
2725
|
+
} | undefined;
|
|
2726
|
+
nextFollowUpAt?: {
|
|
2727
|
+
start: string;
|
|
2728
|
+
end: string;
|
|
2729
|
+
} | undefined;
|
|
2730
|
+
createdAt?: {
|
|
2731
|
+
start: string;
|
|
2732
|
+
end: string;
|
|
2733
|
+
} | undefined;
|
|
2734
|
+
updatedAt?: {
|
|
2735
|
+
start: string;
|
|
2736
|
+
end: string;
|
|
2737
|
+
} | undefined;
|
|
2738
|
+
companyId?: string | undefined;
|
|
2739
|
+
hasEmail?: boolean | undefined;
|
|
2740
|
+
hasPhone?: boolean | undefined;
|
|
2741
|
+
leadScoreMin?: number | undefined;
|
|
2742
|
+
leadScoreMax?: number | undefined;
|
|
2743
|
+
}, {
|
|
2744
|
+
source?: ("other" | "organic" | "referral" | "advertisement" | "social_media" | "email_campaign" | "website" | "event" | "cold_outreach" | "partner")[] | undefined;
|
|
2745
|
+
status?: ("lead" | "prospect" | "qualified" | "customer" | "churned" | "archived")[] | undefined;
|
|
2746
|
+
search?: string | undefined;
|
|
2747
|
+
tags?: string[] | undefined;
|
|
2748
|
+
ownerId?: string | undefined;
|
|
2749
|
+
doNotContact?: boolean | undefined;
|
|
2750
|
+
lastContactedAt?: {
|
|
2751
|
+
start: string;
|
|
2752
|
+
end: string;
|
|
2753
|
+
} | undefined;
|
|
2754
|
+
nextFollowUpAt?: {
|
|
2755
|
+
start: string;
|
|
2756
|
+
end: string;
|
|
2757
|
+
} | undefined;
|
|
2758
|
+
createdAt?: {
|
|
2759
|
+
start: string;
|
|
2760
|
+
end: string;
|
|
2761
|
+
} | undefined;
|
|
2762
|
+
updatedAt?: {
|
|
2763
|
+
start: string;
|
|
2764
|
+
end: string;
|
|
2765
|
+
} | undefined;
|
|
2766
|
+
companyId?: string | undefined;
|
|
2767
|
+
hasEmail?: boolean | undefined;
|
|
2768
|
+
hasPhone?: boolean | undefined;
|
|
2769
|
+
leadScoreMin?: number | undefined;
|
|
2770
|
+
leadScoreMax?: number | undefined;
|
|
2771
|
+
}>;
|
|
2772
|
+
export declare const dealFilterSchema: z.ZodObject<{
|
|
2773
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2774
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
2776
|
+
stage: z.ZodOptional<z.ZodArray<z.ZodEnum<["prospecting", "qualification", "needs_analysis", "proposal", "negotiation", "closed_won", "closed_lost"]>, "many">>;
|
|
2777
|
+
priority: z.ZodOptional<z.ZodArray<z.ZodEnum<["low", "medium", "high", "urgent"]>, "many">>;
|
|
2778
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
2779
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2780
|
+
createdAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2781
|
+
start: z.ZodString;
|
|
2782
|
+
end: z.ZodString;
|
|
2783
|
+
}, "strip", z.ZodTypeAny, {
|
|
2784
|
+
start: string;
|
|
2785
|
+
end: string;
|
|
2786
|
+
}, {
|
|
2787
|
+
start: string;
|
|
2788
|
+
end: string;
|
|
2789
|
+
}>, {
|
|
2790
|
+
start: string;
|
|
2791
|
+
end: string;
|
|
2792
|
+
}, {
|
|
2793
|
+
start: string;
|
|
2794
|
+
end: string;
|
|
2795
|
+
}>>;
|
|
2796
|
+
updatedAt: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2797
|
+
start: z.ZodString;
|
|
2798
|
+
end: z.ZodString;
|
|
2799
|
+
}, "strip", z.ZodTypeAny, {
|
|
2800
|
+
start: string;
|
|
2801
|
+
end: string;
|
|
2802
|
+
}, {
|
|
2803
|
+
start: string;
|
|
2804
|
+
end: string;
|
|
2805
|
+
}>, {
|
|
2806
|
+
start: string;
|
|
2807
|
+
end: string;
|
|
2808
|
+
}, {
|
|
2809
|
+
start: string;
|
|
2810
|
+
end: string;
|
|
2811
|
+
}>>;
|
|
2812
|
+
expectedClose: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2813
|
+
start: z.ZodString;
|
|
2814
|
+
end: z.ZodString;
|
|
2815
|
+
}, "strip", z.ZodTypeAny, {
|
|
2816
|
+
start: string;
|
|
2817
|
+
end: string;
|
|
2818
|
+
}, {
|
|
2819
|
+
start: string;
|
|
2820
|
+
end: string;
|
|
2821
|
+
}>, {
|
|
2822
|
+
start: string;
|
|
2823
|
+
end: string;
|
|
2824
|
+
}, {
|
|
2825
|
+
start: string;
|
|
2826
|
+
end: string;
|
|
2827
|
+
}>>;
|
|
2828
|
+
valueMin: z.ZodOptional<z.ZodNumber>;
|
|
2829
|
+
valueMax: z.ZodOptional<z.ZodNumber>;
|
|
2830
|
+
probabilityMin: z.ZodOptional<z.ZodNumber>;
|
|
2831
|
+
probabilityMax: z.ZodOptional<z.ZodNumber>;
|
|
2832
|
+
}, "strip", z.ZodTypeAny, {
|
|
2833
|
+
priority?: ("low" | "medium" | "high" | "urgent")[] | undefined;
|
|
2834
|
+
search?: string | undefined;
|
|
2835
|
+
tags?: string[] | undefined;
|
|
2836
|
+
ownerId?: string | undefined;
|
|
2837
|
+
createdAt?: {
|
|
2838
|
+
start: string;
|
|
2839
|
+
end: string;
|
|
2840
|
+
} | undefined;
|
|
2841
|
+
updatedAt?: {
|
|
2842
|
+
start: string;
|
|
2843
|
+
end: string;
|
|
2844
|
+
} | undefined;
|
|
2845
|
+
contactId?: string | undefined;
|
|
2846
|
+
companyId?: string | undefined;
|
|
2847
|
+
stage?: ("prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost")[] | undefined;
|
|
2848
|
+
expectedClose?: {
|
|
2849
|
+
start: string;
|
|
2850
|
+
end: string;
|
|
2851
|
+
} | undefined;
|
|
2852
|
+
valueMin?: number | undefined;
|
|
2853
|
+
valueMax?: number | undefined;
|
|
2854
|
+
probabilityMin?: number | undefined;
|
|
2855
|
+
probabilityMax?: number | undefined;
|
|
2856
|
+
}, {
|
|
2857
|
+
priority?: ("low" | "medium" | "high" | "urgent")[] | undefined;
|
|
2858
|
+
search?: string | undefined;
|
|
2859
|
+
tags?: string[] | undefined;
|
|
2860
|
+
ownerId?: string | undefined;
|
|
2861
|
+
createdAt?: {
|
|
2862
|
+
start: string;
|
|
2863
|
+
end: string;
|
|
2864
|
+
} | undefined;
|
|
2865
|
+
updatedAt?: {
|
|
2866
|
+
start: string;
|
|
2867
|
+
end: string;
|
|
2868
|
+
} | undefined;
|
|
2869
|
+
contactId?: string | undefined;
|
|
2870
|
+
companyId?: string | undefined;
|
|
2871
|
+
stage?: ("prospecting" | "qualification" | "needs_analysis" | "proposal" | "negotiation" | "closed_won" | "closed_lost")[] | undefined;
|
|
2872
|
+
expectedClose?: {
|
|
2873
|
+
start: string;
|
|
2874
|
+
end: string;
|
|
2875
|
+
} | undefined;
|
|
2876
|
+
valueMin?: number | undefined;
|
|
2877
|
+
valueMax?: number | undefined;
|
|
2878
|
+
probabilityMin?: number | undefined;
|
|
2879
|
+
probabilityMax?: number | undefined;
|
|
2880
|
+
}>;
|
|
2881
|
+
export declare const activityFilterSchema: z.ZodObject<{
|
|
2882
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
dealId: z.ZodOptional<z.ZodString>;
|
|
2884
|
+
type: z.ZodOptional<z.ZodArray<z.ZodEnum<["call", "email", "meeting", "task", "note", "sms", "video_call", "demo", "proposal_sent", "contract_sent", "follow_up", "social_media", "event", "other"]>, "many">>;
|
|
2885
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
timestamp: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2887
|
+
start: z.ZodString;
|
|
2888
|
+
end: z.ZodString;
|
|
2889
|
+
}, "strip", z.ZodTypeAny, {
|
|
2890
|
+
start: string;
|
|
2891
|
+
end: string;
|
|
2892
|
+
}, {
|
|
2893
|
+
start: string;
|
|
2894
|
+
end: string;
|
|
2895
|
+
}>, {
|
|
2896
|
+
start: string;
|
|
2897
|
+
end: string;
|
|
2898
|
+
}, {
|
|
2899
|
+
start: string;
|
|
2900
|
+
end: string;
|
|
2901
|
+
}>>;
|
|
2902
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2903
|
+
}, "strip", z.ZodTypeAny, {
|
|
2904
|
+
type?: ("other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up")[] | undefined;
|
|
2905
|
+
tags?: string[] | undefined;
|
|
2906
|
+
contactId?: string | undefined;
|
|
2907
|
+
dealId?: string | undefined;
|
|
2908
|
+
timestamp?: {
|
|
2909
|
+
start: string;
|
|
2910
|
+
end: string;
|
|
2911
|
+
} | undefined;
|
|
2912
|
+
createdBy?: string | undefined;
|
|
2913
|
+
}, {
|
|
2914
|
+
type?: ("other" | "social_media" | "event" | "email" | "sms" | "call" | "meeting" | "task" | "note" | "video_call" | "demo" | "proposal_sent" | "contract_sent" | "follow_up")[] | undefined;
|
|
2915
|
+
tags?: string[] | undefined;
|
|
2916
|
+
contactId?: string | undefined;
|
|
2917
|
+
dealId?: string | undefined;
|
|
2918
|
+
timestamp?: {
|
|
2919
|
+
start: string;
|
|
2920
|
+
end: string;
|
|
2921
|
+
} | undefined;
|
|
2922
|
+
createdBy?: string | undefined;
|
|
2923
|
+
}>;
|
|
2924
|
+
export declare function paginatedResponseSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
2925
|
+
data: z.ZodArray<T, "many">;
|
|
2926
|
+
total: z.ZodNumber;
|
|
2927
|
+
page: z.ZodNumber;
|
|
2928
|
+
limit: z.ZodNumber;
|
|
2929
|
+
totalPages: z.ZodNumber;
|
|
2930
|
+
hasMore: z.ZodBoolean;
|
|
2931
|
+
}, "strip", z.ZodTypeAny, {
|
|
2932
|
+
total: number;
|
|
2933
|
+
page: number;
|
|
2934
|
+
limit: number;
|
|
2935
|
+
data: T["_output"][];
|
|
2936
|
+
totalPages: number;
|
|
2937
|
+
hasMore: boolean;
|
|
2938
|
+
}, {
|
|
2939
|
+
total: number;
|
|
2940
|
+
page: number;
|
|
2941
|
+
limit: number;
|
|
2942
|
+
data: T["_input"][];
|
|
2943
|
+
totalPages: number;
|
|
2944
|
+
hasMore: boolean;
|
|
2945
|
+
}>;
|
|
2946
|
+
export declare const exportFormatSchema: z.ZodEnum<["csv", "xlsx", "json", "pdf"]>;
|
|
2947
|
+
export declare const exportStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
2948
|
+
export declare const exportJobSchema: z.ZodObject<{
|
|
2949
|
+
id: z.ZodString;
|
|
2950
|
+
entityType: z.ZodEnum<["contacts", "deals", "activities", "notes"]>;
|
|
2951
|
+
format: z.ZodEnum<["csv", "xlsx", "json", "pdf"]>;
|
|
2952
|
+
status: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
2953
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2954
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2955
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
2956
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2957
|
+
createdAt: z.ZodString;
|
|
2958
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
2959
|
+
createdBy: z.ZodString;
|
|
2960
|
+
}, "strip", z.ZodTypeAny, {
|
|
2961
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
2962
|
+
id: string;
|
|
2963
|
+
createdAt: string;
|
|
2964
|
+
createdBy: string;
|
|
2965
|
+
entityType: "contacts" | "deals" | "activities" | "notes";
|
|
2966
|
+
format: "pdf" | "csv" | "xlsx" | "json";
|
|
2967
|
+
error?: string | undefined;
|
|
2968
|
+
filters?: Record<string, unknown> | undefined;
|
|
2969
|
+
fields?: string[] | undefined;
|
|
2970
|
+
downloadUrl?: string | undefined;
|
|
2971
|
+
completedAt?: string | undefined;
|
|
2972
|
+
}, {
|
|
2973
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
2974
|
+
id: string;
|
|
2975
|
+
createdAt: string;
|
|
2976
|
+
createdBy: string;
|
|
2977
|
+
entityType: "contacts" | "deals" | "activities" | "notes";
|
|
2978
|
+
format: "pdf" | "csv" | "xlsx" | "json";
|
|
2979
|
+
error?: string | undefined;
|
|
2980
|
+
filters?: Record<string, unknown> | undefined;
|
|
2981
|
+
fields?: string[] | undefined;
|
|
2982
|
+
downloadUrl?: string | undefined;
|
|
2983
|
+
completedAt?: string | undefined;
|
|
2984
|
+
}>;
|
|
2985
|
+
export declare const integrationProviderSchema: z.ZodEnum<["google", "microsoft", "slack", "mailchimp", "hubspot", "salesforce", "zapier", "custom"]>;
|
|
2986
|
+
export declare const integrationStatusSchema: z.ZodEnum<["connected", "disconnected", "error", "pending"]>;
|
|
2987
|
+
export declare const integrationSchema: z.ZodObject<{
|
|
2988
|
+
id: z.ZodString;
|
|
2989
|
+
provider: z.ZodEnum<["google", "microsoft", "slack", "mailchimp", "hubspot", "salesforce", "zapier", "custom"]>;
|
|
2990
|
+
name: z.ZodString;
|
|
2991
|
+
status: z.ZodEnum<["connected", "disconnected", "error", "pending"]>;
|
|
2992
|
+
configuredAt: z.ZodString;
|
|
2993
|
+
lastSyncAt: z.ZodOptional<z.ZodString>;
|
|
2994
|
+
settings: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
2995
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
status: "connected" | "disconnected" | "pending" | "error";
|
|
2998
|
+
id: string;
|
|
2999
|
+
name: string;
|
|
3000
|
+
provider: "custom" | "google" | "microsoft" | "slack" | "mailchimp" | "hubspot" | "salesforce" | "zapier";
|
|
3001
|
+
configuredAt: string;
|
|
3002
|
+
settings: Record<string, unknown>;
|
|
3003
|
+
error?: string | undefined;
|
|
3004
|
+
lastSyncAt?: string | undefined;
|
|
3005
|
+
}, {
|
|
3006
|
+
status: "connected" | "disconnected" | "pending" | "error";
|
|
3007
|
+
id: string;
|
|
3008
|
+
name: string;
|
|
3009
|
+
provider: "custom" | "google" | "microsoft" | "slack" | "mailchimp" | "hubspot" | "salesforce" | "zapier";
|
|
3010
|
+
configuredAt: string;
|
|
3011
|
+
settings: Record<string, unknown>;
|
|
3012
|
+
error?: string | undefined;
|
|
3013
|
+
lastSyncAt?: string | undefined;
|
|
3014
|
+
}>;
|
|
3015
|
+
export declare const telemetryEventTypeSchema: z.ZodEnum<["entity_created", "entity_updated", "entity_deleted", "entity_viewed", "search_performed", "export_created", "integration_sync", "error_occurred"]>;
|
|
3016
|
+
export declare const telemetryEventSchema: z.ZodObject<{
|
|
3017
|
+
id: z.ZodString;
|
|
3018
|
+
type: z.ZodEnum<["entity_created", "entity_updated", "entity_deleted", "entity_viewed", "search_performed", "export_created", "integration_sync", "error_occurred"]>;
|
|
3019
|
+
entityType: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
3021
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
timestamp: z.ZodString;
|
|
3023
|
+
properties: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
3024
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
3025
|
+
success: z.ZodBoolean;
|
|
3026
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3027
|
+
}, "strip", z.ZodTypeAny, {
|
|
3028
|
+
type: "entity_created" | "entity_updated" | "entity_deleted" | "entity_viewed" | "search_performed" | "export_created" | "integration_sync" | "error_occurred";
|
|
3029
|
+
id: string;
|
|
3030
|
+
timestamp: string;
|
|
3031
|
+
properties: Record<string, unknown>;
|
|
3032
|
+
success: boolean;
|
|
3033
|
+
duration?: number | undefined;
|
|
3034
|
+
entityType?: string | undefined;
|
|
3035
|
+
entityId?: string | undefined;
|
|
3036
|
+
userId?: string | undefined;
|
|
3037
|
+
errorMessage?: string | undefined;
|
|
3038
|
+
}, {
|
|
3039
|
+
type: "entity_created" | "entity_updated" | "entity_deleted" | "entity_viewed" | "search_performed" | "export_created" | "integration_sync" | "error_occurred";
|
|
3040
|
+
id: string;
|
|
3041
|
+
timestamp: string;
|
|
3042
|
+
properties: Record<string, unknown>;
|
|
3043
|
+
success: boolean;
|
|
3044
|
+
duration?: number | undefined;
|
|
3045
|
+
entityType?: string | undefined;
|
|
3046
|
+
entityId?: string | undefined;
|
|
3047
|
+
userId?: string | undefined;
|
|
3048
|
+
errorMessage?: string | undefined;
|
|
3049
|
+
}>;
|
|
3050
|
+
//# sourceMappingURL=schemas.d.ts.map
|