@kl1/contracts 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-contracts/src/activity-log/index.d.ts +22 -23
- package/dist/api-contracts/src/activity-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/activity-log/schema.d.ts +5 -6
- package/dist/api-contracts/src/activity-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute/index.d.ts +148 -164
- package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute/schema.d.ts +8 -11
- package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute-option/schema.d.ts +2 -3
- package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/auth/index.d.ts +24 -26
- package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
- package/dist/api-contracts/src/automation-queue/index.d.ts +170 -192
- package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
- package/dist/api-contracts/src/automation-queue/schema.d.ts +12 -15
- package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/aws/index.d.ts +6 -8
- package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
- package/dist/api-contracts/src/botpress/index.d.ts +13 -17
- package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
- package/dist/api-contracts/src/business-calendar/index.d.ts +28 -40
- package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
- package/dist/api-contracts/src/business-calendar/schema.d.ts +10 -15
- package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/call-log/schema.d.ts +4 -5
- package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/category/index.d.ts +109 -118
- package/dist/api-contracts/src/category/index.d.ts.map +1 -1
- package/dist/api-contracts/src/category/schema.d.ts +2 -3
- package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/index.d.ts +1502 -1532
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/schema.d.ts +54 -54
- package/dist/api-contracts/src/channel/validation.d.ts +72 -72
- package/dist/api-contracts/src/chat/index.d.ts +13141 -13645
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +2308 -2467
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +3331 -3414
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/index.d.ts +299 -371
- package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/schema.d.ts +75 -98
- package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/validation.d.ts +1 -1
- package/dist/api-contracts/src/company/index.d.ts +109 -136
- package/dist/api-contracts/src/company/index.d.ts.map +1 -1
- package/dist/api-contracts/src/company/schema.d.ts +24 -33
- package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/company/validation.d.ts +62 -78
- package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/index.d.ts +559 -677
- package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/schema.d.ts +42 -56
- package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/validation.d.ts +218 -299
- package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contact-email/schema.d.ts +2 -3
- package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contact-phone/schema.d.ts +2 -3
- package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +25882 -27370
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/custom-field/schema.d.ts +2 -3
- package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
- package/dist/api-contracts/src/custom-field-upload/schema.d.ts +2 -3
- package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-intelligence/index.d.ts +47 -50
- package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +783 -831
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +461 -514
- package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
- package/dist/api-contracts/src/dashboard/index.d.ts +361 -402
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/schema.d.ts +4 -5
- package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +18 -24
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/evaluate-form/index.d.ts +3 -4
- package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
- package/dist/api-contracts/src/evaluate-form/schema.d.ts +2 -3
- package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/export/index.d.ts +3 -4
- package/dist/api-contracts/src/export/index.d.ts.map +1 -1
- package/dist/api-contracts/src/extension/index.d.ts +112 -118
- package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +2211 -2291
- package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +82 -94
- package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/validation.d.ts +89 -106
- package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
- package/dist/api-contracts/src/group/schema.d.ts +2 -3
- package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/index.d.ts +58 -77
- package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/schema.d.ts +14 -20
- package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/index.d.ts +1 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +3873 -3933
- package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
- package/dist/api-contracts/src/line/index.d.ts +2073 -2133
- package/dist/api-contracts/src/line/index.d.ts.map +1 -1
- package/dist/api-contracts/src/line/schema.d.ts +11 -12
- package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/line/validation.d.ts +127 -127
- package/dist/api-contracts/src/log-form/schema.d.ts +2 -3
- package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/account-contract.d.ts +174 -184
- package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +3 -4
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +451 -502
- package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts +18 -24
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/message-contract.d.ts +107 -113
- package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/room-contract.d.ts +101 -130
- package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +30 -36
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +20 -27
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/index.d.ts +3873 -3935
- package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/validation.d.ts +89 -106
- package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/index.d.ts +27 -34
- package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/schema.d.ts +15 -18
- package/dist/api-contracts/src/notification/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/validation.d.ts +5 -6
- package/dist/api-contracts/src/notification/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/permission/index.d.ts +17 -17
- package/dist/api-contracts/src/presence-status/index.d.ts +81 -84
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/index.d.ts +196 -260
- package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/schema.d.ts +34 -48
- package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/validation.d.ts +88 -113
- package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/role/index.d.ts +83 -88
- package/dist/api-contracts/src/role/index.d.ts.map +1 -1
- package/dist/api-contracts/src/sms/index.d.ts +345 -349
- package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/index.d.ts +54 -76
- package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/schema.d.ts +14 -21
- package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/validation.d.ts +4 -5
- package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/index.d.ts +51 -74
- package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/schema.d.ts +62 -93
- package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/index.d.ts +72 -79
- package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/schema.d.ts +2 -3
- package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tag-group/schema.d.ts +2 -3
- package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telegram/index.d.ts +1532 -1590
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +50 -55
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +7 -9
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
- package/dist/api-contracts/src/telephony-cdr/index.d.ts +1170 -1245
- package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/schema.d.ts +196 -222
- package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/validation.d.ts +45 -52
- package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
- package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
- package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +2 -3
- package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +2 -3
- package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tenant/schema.d.ts +2 -3
- package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +679 -790
- package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/schema.d.ts +73 -99
- package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/validation.d.ts +55 -57
- package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/upload/index.d.ts +34 -36
- package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
- package/dist/api-contracts/src/upload/schema.d.ts +2 -3
- package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/user/index.d.ts +148 -159
- package/dist/api-contracts/src/user/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user/schema.d.ts +5 -6
- package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/user/validation.d.ts +4 -5
- package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +31 -32
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +7 -9
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +1785 -1843
- package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
- package/dist/api-contracts/src/webchat/index.d.ts +1551 -1609
- package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/index.d.ts +1920 -1982
- package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/validation.d.ts +6 -9
- package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +144 -155
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/schema.d.ts +2 -3
- package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/validation.d.ts +16 -16
- package/dist/api-contracts/src/workflow-rule/index.d.ts +2021 -2087
- package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
- package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -3
- package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/index.d.ts +147 -166
- package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts +6 -9
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/validation.d.ts +20 -21
- package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
- package/dist/api-contracts/utils.d.ts +3 -4
- package/dist/api-contracts/utils.d.ts.map +1 -1
- package/dist/index.js +53 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -133,27 +133,9 @@ export declare const contactContract: {
|
|
|
133
133
|
}>;
|
|
134
134
|
summary: "Create a new contact";
|
|
135
135
|
method: "POST";
|
|
136
|
-
path: "cs/contact";
|
|
137
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
138
|
-
'x-tenant': z.ZodString;
|
|
139
|
-
'x-service-token': z.ZodString;
|
|
140
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
141
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
'x-tenant': string;
|
|
144
|
-
'x-service-token': string;
|
|
145
|
-
'x-client-timezone': string;
|
|
146
|
-
'x-code'?: string | undefined;
|
|
147
|
-
}, {
|
|
148
|
-
'x-tenant': string;
|
|
149
|
-
'x-service-token': string;
|
|
150
|
-
'x-code'?: string | undefined;
|
|
151
|
-
'x-client-timezone'?: string | undefined;
|
|
152
|
-
}>>>;
|
|
153
136
|
responses: {
|
|
154
|
-
201: z.ZodObject<
|
|
137
|
+
201: z.ZodObject<{
|
|
155
138
|
requestId: z.ZodString;
|
|
156
|
-
}, {
|
|
157
139
|
data: z.ZodObject<{
|
|
158
140
|
id: z.ZodString;
|
|
159
141
|
createdAt: z.ZodDate;
|
|
@@ -165,14 +147,13 @@ export declare const contactContract: {
|
|
|
165
147
|
notes: z.ZodNullable<z.ZodString>;
|
|
166
148
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
167
149
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
168
|
-
tags: z.ZodArray<z.ZodObject<
|
|
150
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
169
151
|
id: z.ZodString;
|
|
170
152
|
createdAt: z.ZodDate;
|
|
171
153
|
updatedAt: z.ZodDate;
|
|
172
154
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
173
|
-
}, {
|
|
174
155
|
name: z.ZodString;
|
|
175
|
-
}
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
157
|
name: string;
|
|
177
158
|
id: string;
|
|
178
159
|
createdAt: Date;
|
|
@@ -185,32 +166,29 @@ export declare const contactContract: {
|
|
|
185
166
|
updatedAt: Date;
|
|
186
167
|
deletedAt: Date | null;
|
|
187
168
|
}>, "many">;
|
|
188
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
169
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
189
170
|
id: z.ZodString;
|
|
190
171
|
createdAt: z.ZodDate;
|
|
191
172
|
updatedAt: z.ZodDate;
|
|
192
173
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
193
|
-
}, {
|
|
194
174
|
name: z.ZodOptional<z.ZodString>;
|
|
195
175
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
176
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
177
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
178
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
179
|
id: z.ZodString;
|
|
200
180
|
createdAt: z.ZodDate;
|
|
201
181
|
updatedAt: z.ZodDate;
|
|
202
182
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
203
|
-
}, {
|
|
204
183
|
textValue: z.ZodNullable<z.ZodString>;
|
|
205
184
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
206
185
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
207
186
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
208
|
-
attribute: z.ZodObject<Omit<
|
|
187
|
+
attribute: z.ZodObject<Omit<{
|
|
209
188
|
id: z.ZodString;
|
|
210
189
|
createdAt: z.ZodDate;
|
|
211
190
|
updatedAt: z.ZodDate;
|
|
212
191
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
213
|
-
}, {
|
|
214
192
|
systemName: z.ZodString;
|
|
215
193
|
displayName: z.ZodString;
|
|
216
194
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -219,14 +197,13 @@ export declare const contactContract: {
|
|
|
219
197
|
isArchived: z.ZodBoolean;
|
|
220
198
|
isRequired: z.ZodBoolean;
|
|
221
199
|
isUnique: z.ZodBoolean;
|
|
222
|
-
options: z.ZodArray<z.ZodObject<
|
|
223
|
-
|
|
200
|
+
options: z.ZodArray<z.ZodObject<{
|
|
201
|
+
position: z.ZodNumber;
|
|
224
202
|
value: z.ZodString;
|
|
203
|
+
label: z.ZodString;
|
|
225
204
|
isDefault: z.ZodBoolean;
|
|
226
|
-
position: z.ZodNumber;
|
|
227
|
-
}, {
|
|
228
205
|
id: z.ZodString;
|
|
229
|
-
}
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
207
|
id: string;
|
|
231
208
|
position: number;
|
|
232
209
|
value: string;
|
|
@@ -239,15 +216,14 @@ export declare const contactContract: {
|
|
|
239
216
|
label: string;
|
|
240
217
|
isDefault: boolean;
|
|
241
218
|
}>, "many">;
|
|
242
|
-
group: z.ZodObject<
|
|
219
|
+
group: z.ZodObject<{
|
|
243
220
|
id: z.ZodString;
|
|
244
221
|
createdAt: z.ZodDate;
|
|
245
222
|
updatedAt: z.ZodDate;
|
|
246
223
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
247
|
-
}, {
|
|
248
224
|
systemName: z.ZodString;
|
|
249
225
|
displayName: z.ZodString;
|
|
250
|
-
}
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
227
|
id: string;
|
|
252
228
|
createdAt: Date;
|
|
253
229
|
updatedAt: Date;
|
|
@@ -262,7 +238,7 @@ export declare const contactContract: {
|
|
|
262
238
|
systemName: string;
|
|
263
239
|
displayName: string;
|
|
264
240
|
}>;
|
|
265
|
-
}
|
|
241
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
266
242
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
267
243
|
id: string;
|
|
268
244
|
position: number;
|
|
@@ -289,7 +265,7 @@ export declare const contactContract: {
|
|
|
289
265
|
isRequired: boolean;
|
|
290
266
|
isUnique: boolean;
|
|
291
267
|
}>;
|
|
292
|
-
}
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
269
|
id: string;
|
|
294
270
|
createdAt: Date;
|
|
295
271
|
updatedAt: Date;
|
|
@@ -336,7 +312,7 @@ export declare const contactContract: {
|
|
|
336
312
|
numberValue: number | null;
|
|
337
313
|
dateValue: Date | null;
|
|
338
314
|
}>, "many">>;
|
|
339
|
-
}
|
|
315
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
340
316
|
id: string;
|
|
341
317
|
createdAt: Date;
|
|
342
318
|
updatedAt: Date;
|
|
@@ -417,12 +393,11 @@ export declare const contactContract: {
|
|
|
417
393
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
418
394
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
419
395
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
420
|
-
attribute: z.ZodObject<Omit<
|
|
396
|
+
attribute: z.ZodObject<Omit<{
|
|
421
397
|
id: z.ZodString;
|
|
422
398
|
createdAt: z.ZodDate;
|
|
423
399
|
updatedAt: z.ZodDate;
|
|
424
400
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
425
|
-
}, {
|
|
426
401
|
systemName: z.ZodString;
|
|
427
402
|
displayName: z.ZodString;
|
|
428
403
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -431,14 +406,13 @@ export declare const contactContract: {
|
|
|
431
406
|
isArchived: z.ZodBoolean;
|
|
432
407
|
isRequired: z.ZodBoolean;
|
|
433
408
|
isUnique: z.ZodBoolean;
|
|
434
|
-
options: z.ZodArray<z.ZodObject<
|
|
435
|
-
|
|
409
|
+
options: z.ZodArray<z.ZodObject<{
|
|
410
|
+
position: z.ZodNumber;
|
|
436
411
|
value: z.ZodString;
|
|
412
|
+
label: z.ZodString;
|
|
437
413
|
isDefault: z.ZodBoolean;
|
|
438
|
-
position: z.ZodNumber;
|
|
439
|
-
}, {
|
|
440
414
|
id: z.ZodString;
|
|
441
|
-
}
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
416
|
id: string;
|
|
443
417
|
position: number;
|
|
444
418
|
value: string;
|
|
@@ -451,15 +425,14 @@ export declare const contactContract: {
|
|
|
451
425
|
label: string;
|
|
452
426
|
isDefault: boolean;
|
|
453
427
|
}>, "many">;
|
|
454
|
-
group: z.ZodObject<
|
|
428
|
+
group: z.ZodObject<{
|
|
455
429
|
id: z.ZodString;
|
|
456
430
|
createdAt: z.ZodDate;
|
|
457
431
|
updatedAt: z.ZodDate;
|
|
458
432
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
459
|
-
}, {
|
|
460
433
|
systemName: z.ZodString;
|
|
461
434
|
displayName: z.ZodString;
|
|
462
|
-
}
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
436
|
id: string;
|
|
464
437
|
createdAt: Date;
|
|
465
438
|
updatedAt: Date;
|
|
@@ -474,7 +447,7 @@ export declare const contactContract: {
|
|
|
474
447
|
systemName: string;
|
|
475
448
|
displayName: string;
|
|
476
449
|
}>;
|
|
477
|
-
}
|
|
450
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
478
451
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
479
452
|
id: string;
|
|
480
453
|
position: number;
|
|
@@ -501,19 +474,18 @@ export declare const contactContract: {
|
|
|
501
474
|
isRequired: boolean;
|
|
502
475
|
isUnique: boolean;
|
|
503
476
|
}>;
|
|
504
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
477
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
505
478
|
id: z.ZodString;
|
|
506
479
|
createdAt: z.ZodDate;
|
|
507
480
|
updatedAt: z.ZodDate;
|
|
508
481
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
509
|
-
}, {
|
|
510
482
|
bucketName: z.ZodString;
|
|
511
483
|
fileName: z.ZodString;
|
|
512
484
|
fileSize: z.ZodNumber;
|
|
513
485
|
fileKey: z.ZodString;
|
|
514
486
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
515
487
|
status: z.ZodNullable<z.ZodString>;
|
|
516
|
-
}
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
489
|
id: string;
|
|
518
490
|
status: string | null;
|
|
519
491
|
createdAt: Date;
|
|
@@ -934,7 +906,7 @@ export declare const contactContract: {
|
|
|
934
906
|
};
|
|
935
907
|
}[] | undefined;
|
|
936
908
|
}>;
|
|
937
|
-
}
|
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
910
|
data: {
|
|
939
911
|
name: string;
|
|
940
912
|
id: string;
|
|
@@ -1215,6 +1187,23 @@ export declare const contactContract: {
|
|
|
1215
1187
|
error?: any;
|
|
1216
1188
|
}>;
|
|
1217
1189
|
};
|
|
1190
|
+
path: "cs/contact";
|
|
1191
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1192
|
+
'x-tenant': z.ZodString;
|
|
1193
|
+
'x-service-token': z.ZodString;
|
|
1194
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
1195
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
1196
|
+
}, "strip", z.ZodTypeAny, {
|
|
1197
|
+
'x-tenant': string;
|
|
1198
|
+
'x-service-token': string;
|
|
1199
|
+
'x-client-timezone': string;
|
|
1200
|
+
'x-code'?: string | undefined;
|
|
1201
|
+
}, {
|
|
1202
|
+
'x-tenant': string;
|
|
1203
|
+
'x-service-token': string;
|
|
1204
|
+
'x-code'?: string | undefined;
|
|
1205
|
+
'x-client-timezone'?: string | undefined;
|
|
1206
|
+
}>>>;
|
|
1218
1207
|
};
|
|
1219
1208
|
getAll: {
|
|
1220
1209
|
summary: "Get all contacts";
|
|
@@ -1234,11 +1223,11 @@ export declare const contactContract: {
|
|
|
1234
1223
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1235
1224
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1225
|
type: string;
|
|
1237
|
-
value: string | string[];
|
|
1226
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1238
1227
|
attributeId: string;
|
|
1239
1228
|
}, {
|
|
1240
1229
|
type: string;
|
|
1241
|
-
value: string | string[];
|
|
1230
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1242
1231
|
attributeId: string;
|
|
1243
1232
|
}>, "many">>;
|
|
1244
1233
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1246,63 +1235,45 @@ export declare const contactContract: {
|
|
|
1246
1235
|
email: z.ZodOptional<z.ZodString>;
|
|
1247
1236
|
notes: z.ZodOptional<z.ZodString>;
|
|
1248
1237
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
name?: string | undefined;
|
|
1250
|
-
channel?: string[] | undefined;
|
|
1251
|
-
address?: string | undefined;
|
|
1252
1238
|
page?: number | undefined;
|
|
1253
|
-
email?: string | undefined;
|
|
1254
1239
|
pageSize?: number | undefined;
|
|
1255
|
-
|
|
1240
|
+
keyword?: string | undefined;
|
|
1241
|
+
company?: string[] | undefined;
|
|
1242
|
+
name?: string | undefined;
|
|
1243
|
+
address?: string | undefined;
|
|
1244
|
+
channel?: string[] | undefined;
|
|
1245
|
+
selectedDate?: string | undefined;
|
|
1256
1246
|
customFields?: {
|
|
1257
1247
|
type: string;
|
|
1258
|
-
value: string | string[];
|
|
1248
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1259
1249
|
attributeId: string;
|
|
1260
1250
|
}[] | undefined;
|
|
1261
|
-
company?: string[] | undefined;
|
|
1262
|
-
notes?: string | undefined;
|
|
1263
1251
|
tags?: string[] | undefined;
|
|
1264
|
-
|
|
1265
|
-
|
|
1252
|
+
phone?: string | undefined;
|
|
1253
|
+
email?: string | undefined;
|
|
1254
|
+
notes?: string | undefined;
|
|
1266
1255
|
}, {
|
|
1267
|
-
name?: string | undefined;
|
|
1268
|
-
channel?: string[] | undefined;
|
|
1269
|
-
address?: string | undefined;
|
|
1270
1256
|
page?: number | undefined;
|
|
1271
|
-
email?: string | undefined;
|
|
1272
1257
|
pageSize?: number | undefined;
|
|
1273
|
-
|
|
1258
|
+
keyword?: string | undefined;
|
|
1259
|
+
company?: string[] | undefined;
|
|
1260
|
+
name?: string | undefined;
|
|
1261
|
+
address?: string | undefined;
|
|
1262
|
+
channel?: string[] | undefined;
|
|
1263
|
+
selectedDate?: string | undefined;
|
|
1274
1264
|
customFields?: {
|
|
1275
1265
|
type: string;
|
|
1276
|
-
value: string | string[];
|
|
1266
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1277
1267
|
attributeId: string;
|
|
1278
1268
|
}[] | undefined;
|
|
1279
|
-
company?: string[] | undefined;
|
|
1280
|
-
notes?: string | undefined;
|
|
1281
1269
|
tags?: string[] | undefined;
|
|
1282
|
-
|
|
1283
|
-
|
|
1270
|
+
phone?: string | undefined;
|
|
1271
|
+
email?: string | undefined;
|
|
1272
|
+
notes?: string | undefined;
|
|
1284
1273
|
}>;
|
|
1285
|
-
path: "cs/contact";
|
|
1286
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1287
|
-
'x-tenant': z.ZodString;
|
|
1288
|
-
'x-service-token': z.ZodString;
|
|
1289
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
1290
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
1291
|
-
}, "strip", z.ZodTypeAny, {
|
|
1292
|
-
'x-tenant': string;
|
|
1293
|
-
'x-service-token': string;
|
|
1294
|
-
'x-client-timezone': string;
|
|
1295
|
-
'x-code'?: string | undefined;
|
|
1296
|
-
}, {
|
|
1297
|
-
'x-tenant': string;
|
|
1298
|
-
'x-service-token': string;
|
|
1299
|
-
'x-code'?: string | undefined;
|
|
1300
|
-
'x-client-timezone'?: string | undefined;
|
|
1301
|
-
}>>>;
|
|
1302
1274
|
responses: {
|
|
1303
|
-
200: z.ZodObject<
|
|
1275
|
+
200: z.ZodObject<{
|
|
1304
1276
|
requestId: z.ZodString;
|
|
1305
|
-
}, {
|
|
1306
1277
|
page: z.ZodNumber;
|
|
1307
1278
|
pageSize: z.ZodNumber;
|
|
1308
1279
|
total: z.ZodNumber;
|
|
@@ -1318,14 +1289,13 @@ export declare const contactContract: {
|
|
|
1318
1289
|
notes: z.ZodNullable<z.ZodString>;
|
|
1319
1290
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
1320
1291
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
1321
|
-
tags: z.ZodArray<z.ZodObject<
|
|
1292
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1322
1293
|
id: z.ZodString;
|
|
1323
1294
|
createdAt: z.ZodDate;
|
|
1324
1295
|
updatedAt: z.ZodDate;
|
|
1325
1296
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1326
|
-
}, {
|
|
1327
1297
|
name: z.ZodString;
|
|
1328
|
-
}
|
|
1298
|
+
}, "strip", z.ZodTypeAny, {
|
|
1329
1299
|
name: string;
|
|
1330
1300
|
id: string;
|
|
1331
1301
|
createdAt: Date;
|
|
@@ -1338,32 +1308,29 @@ export declare const contactContract: {
|
|
|
1338
1308
|
updatedAt: Date;
|
|
1339
1309
|
deletedAt: Date | null;
|
|
1340
1310
|
}>, "many">;
|
|
1341
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
1311
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
1342
1312
|
id: z.ZodString;
|
|
1343
1313
|
createdAt: z.ZodDate;
|
|
1344
1314
|
updatedAt: z.ZodDate;
|
|
1345
1315
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1346
|
-
}, {
|
|
1347
1316
|
name: z.ZodOptional<z.ZodString>;
|
|
1348
1317
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1349
1318
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1350
1319
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1351
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
1320
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1352
1321
|
id: z.ZodString;
|
|
1353
1322
|
createdAt: z.ZodDate;
|
|
1354
1323
|
updatedAt: z.ZodDate;
|
|
1355
1324
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1356
|
-
}, {
|
|
1357
1325
|
textValue: z.ZodNullable<z.ZodString>;
|
|
1358
1326
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
1359
1327
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
1360
1328
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
1361
|
-
attribute: z.ZodObject<Omit<
|
|
1329
|
+
attribute: z.ZodObject<Omit<{
|
|
1362
1330
|
id: z.ZodString;
|
|
1363
1331
|
createdAt: z.ZodDate;
|
|
1364
1332
|
updatedAt: z.ZodDate;
|
|
1365
1333
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1366
|
-
}, {
|
|
1367
1334
|
systemName: z.ZodString;
|
|
1368
1335
|
displayName: z.ZodString;
|
|
1369
1336
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -1372,14 +1339,13 @@ export declare const contactContract: {
|
|
|
1372
1339
|
isArchived: z.ZodBoolean;
|
|
1373
1340
|
isRequired: z.ZodBoolean;
|
|
1374
1341
|
isUnique: z.ZodBoolean;
|
|
1375
|
-
options: z.ZodArray<z.ZodObject<
|
|
1376
|
-
|
|
1342
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1343
|
+
position: z.ZodNumber;
|
|
1377
1344
|
value: z.ZodString;
|
|
1345
|
+
label: z.ZodString;
|
|
1378
1346
|
isDefault: z.ZodBoolean;
|
|
1379
|
-
position: z.ZodNumber;
|
|
1380
|
-
}, {
|
|
1381
1347
|
id: z.ZodString;
|
|
1382
|
-
}
|
|
1348
|
+
}, "strip", z.ZodTypeAny, {
|
|
1383
1349
|
id: string;
|
|
1384
1350
|
position: number;
|
|
1385
1351
|
value: string;
|
|
@@ -1392,15 +1358,14 @@ export declare const contactContract: {
|
|
|
1392
1358
|
label: string;
|
|
1393
1359
|
isDefault: boolean;
|
|
1394
1360
|
}>, "many">;
|
|
1395
|
-
group: z.ZodObject<
|
|
1361
|
+
group: z.ZodObject<{
|
|
1396
1362
|
id: z.ZodString;
|
|
1397
1363
|
createdAt: z.ZodDate;
|
|
1398
1364
|
updatedAt: z.ZodDate;
|
|
1399
1365
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1400
|
-
}, {
|
|
1401
1366
|
systemName: z.ZodString;
|
|
1402
1367
|
displayName: z.ZodString;
|
|
1403
|
-
}
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1404
1369
|
id: string;
|
|
1405
1370
|
createdAt: Date;
|
|
1406
1371
|
updatedAt: Date;
|
|
@@ -1415,7 +1380,7 @@ export declare const contactContract: {
|
|
|
1415
1380
|
systemName: string;
|
|
1416
1381
|
displayName: string;
|
|
1417
1382
|
}>;
|
|
1418
|
-
}
|
|
1383
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
1419
1384
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
1420
1385
|
id: string;
|
|
1421
1386
|
position: number;
|
|
@@ -1442,7 +1407,7 @@ export declare const contactContract: {
|
|
|
1442
1407
|
isRequired: boolean;
|
|
1443
1408
|
isUnique: boolean;
|
|
1444
1409
|
}>;
|
|
1445
|
-
}
|
|
1410
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
1411
|
id: string;
|
|
1447
1412
|
createdAt: Date;
|
|
1448
1413
|
updatedAt: Date;
|
|
@@ -1489,7 +1454,7 @@ export declare const contactContract: {
|
|
|
1489
1454
|
numberValue: number | null;
|
|
1490
1455
|
dateValue: Date | null;
|
|
1491
1456
|
}>, "many">>;
|
|
1492
|
-
}
|
|
1457
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
1493
1458
|
id: string;
|
|
1494
1459
|
createdAt: Date;
|
|
1495
1460
|
updatedAt: Date;
|
|
@@ -1570,12 +1535,11 @@ export declare const contactContract: {
|
|
|
1570
1535
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
1571
1536
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
1572
1537
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
1573
|
-
attribute: z.ZodObject<Omit<
|
|
1538
|
+
attribute: z.ZodObject<Omit<{
|
|
1574
1539
|
id: z.ZodString;
|
|
1575
1540
|
createdAt: z.ZodDate;
|
|
1576
1541
|
updatedAt: z.ZodDate;
|
|
1577
1542
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1578
|
-
}, {
|
|
1579
1543
|
systemName: z.ZodString;
|
|
1580
1544
|
displayName: z.ZodString;
|
|
1581
1545
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -1584,14 +1548,13 @@ export declare const contactContract: {
|
|
|
1584
1548
|
isArchived: z.ZodBoolean;
|
|
1585
1549
|
isRequired: z.ZodBoolean;
|
|
1586
1550
|
isUnique: z.ZodBoolean;
|
|
1587
|
-
options: z.ZodArray<z.ZodObject<
|
|
1588
|
-
|
|
1551
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1552
|
+
position: z.ZodNumber;
|
|
1589
1553
|
value: z.ZodString;
|
|
1554
|
+
label: z.ZodString;
|
|
1590
1555
|
isDefault: z.ZodBoolean;
|
|
1591
|
-
position: z.ZodNumber;
|
|
1592
|
-
}, {
|
|
1593
1556
|
id: z.ZodString;
|
|
1594
|
-
}
|
|
1557
|
+
}, "strip", z.ZodTypeAny, {
|
|
1595
1558
|
id: string;
|
|
1596
1559
|
position: number;
|
|
1597
1560
|
value: string;
|
|
@@ -1604,15 +1567,14 @@ export declare const contactContract: {
|
|
|
1604
1567
|
label: string;
|
|
1605
1568
|
isDefault: boolean;
|
|
1606
1569
|
}>, "many">;
|
|
1607
|
-
group: z.ZodObject<
|
|
1570
|
+
group: z.ZodObject<{
|
|
1608
1571
|
id: z.ZodString;
|
|
1609
1572
|
createdAt: z.ZodDate;
|
|
1610
1573
|
updatedAt: z.ZodDate;
|
|
1611
1574
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1612
|
-
}, {
|
|
1613
1575
|
systemName: z.ZodString;
|
|
1614
1576
|
displayName: z.ZodString;
|
|
1615
|
-
}
|
|
1577
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
1578
|
id: string;
|
|
1617
1579
|
createdAt: Date;
|
|
1618
1580
|
updatedAt: Date;
|
|
@@ -1627,7 +1589,7 @@ export declare const contactContract: {
|
|
|
1627
1589
|
systemName: string;
|
|
1628
1590
|
displayName: string;
|
|
1629
1591
|
}>;
|
|
1630
|
-
}
|
|
1592
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
1631
1593
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
1632
1594
|
id: string;
|
|
1633
1595
|
position: number;
|
|
@@ -1654,19 +1616,18 @@ export declare const contactContract: {
|
|
|
1654
1616
|
isRequired: boolean;
|
|
1655
1617
|
isUnique: boolean;
|
|
1656
1618
|
}>;
|
|
1657
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
1619
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
1658
1620
|
id: z.ZodString;
|
|
1659
1621
|
createdAt: z.ZodDate;
|
|
1660
1622
|
updatedAt: z.ZodDate;
|
|
1661
1623
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1662
|
-
}, {
|
|
1663
1624
|
bucketName: z.ZodString;
|
|
1664
1625
|
fileName: z.ZodString;
|
|
1665
1626
|
fileSize: z.ZodNumber;
|
|
1666
1627
|
fileKey: z.ZodString;
|
|
1667
1628
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
1668
1629
|
status: z.ZodNullable<z.ZodString>;
|
|
1669
|
-
}
|
|
1630
|
+
}, "strip", z.ZodTypeAny, {
|
|
1670
1631
|
id: string;
|
|
1671
1632
|
status: string | null;
|
|
1672
1633
|
createdAt: Date;
|
|
@@ -2087,7 +2048,7 @@ export declare const contactContract: {
|
|
|
2087
2048
|
};
|
|
2088
2049
|
}[] | undefined;
|
|
2089
2050
|
}>, "many">;
|
|
2090
|
-
}
|
|
2051
|
+
}, "strip", z.ZodTypeAny, {
|
|
2091
2052
|
data: {
|
|
2092
2053
|
name: string;
|
|
2093
2054
|
id: string;
|
|
@@ -2376,6 +2337,23 @@ export declare const contactContract: {
|
|
|
2376
2337
|
error?: any;
|
|
2377
2338
|
}>;
|
|
2378
2339
|
};
|
|
2340
|
+
path: "cs/contact";
|
|
2341
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2342
|
+
'x-tenant': z.ZodString;
|
|
2343
|
+
'x-service-token': z.ZodString;
|
|
2344
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
2345
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
2346
|
+
}, "strip", z.ZodTypeAny, {
|
|
2347
|
+
'x-tenant': string;
|
|
2348
|
+
'x-service-token': string;
|
|
2349
|
+
'x-client-timezone': string;
|
|
2350
|
+
'x-code'?: string | undefined;
|
|
2351
|
+
}, {
|
|
2352
|
+
'x-tenant': string;
|
|
2353
|
+
'x-service-token': string;
|
|
2354
|
+
'x-code'?: string | undefined;
|
|
2355
|
+
'x-client-timezone'?: string | undefined;
|
|
2356
|
+
}>>>;
|
|
2379
2357
|
};
|
|
2380
2358
|
filterContacts: {
|
|
2381
2359
|
summary: "Get all contacts by filtering with only keyword";
|
|
@@ -2391,41 +2369,23 @@ export declare const contactContract: {
|
|
|
2391
2369
|
}, "strip", z.ZodTypeAny, {
|
|
2392
2370
|
page?: number | undefined;
|
|
2393
2371
|
pageSize?: number | undefined;
|
|
2394
|
-
channelType?: string | undefined;
|
|
2395
2372
|
keyword?: string | undefined;
|
|
2373
|
+
channelType?: string | undefined;
|
|
2396
2374
|
channelIds?: string[] | undefined;
|
|
2397
2375
|
withEmail?: boolean | undefined;
|
|
2398
2376
|
relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
|
|
2399
2377
|
}, {
|
|
2400
2378
|
page?: number | undefined;
|
|
2401
2379
|
pageSize?: number | undefined;
|
|
2402
|
-
channelType?: string | undefined;
|
|
2403
2380
|
keyword?: string | undefined;
|
|
2381
|
+
channelType?: string | undefined;
|
|
2404
2382
|
channelIds?: string[] | undefined;
|
|
2405
2383
|
withEmail?: boolean | undefined;
|
|
2406
2384
|
relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
|
|
2407
2385
|
}>;
|
|
2408
|
-
path: "cs/contact/filter/list";
|
|
2409
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2410
|
-
'x-tenant': z.ZodString;
|
|
2411
|
-
'x-service-token': z.ZodString;
|
|
2412
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
2413
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
2414
|
-
}, "strip", z.ZodTypeAny, {
|
|
2415
|
-
'x-tenant': string;
|
|
2416
|
-
'x-service-token': string;
|
|
2417
|
-
'x-client-timezone': string;
|
|
2418
|
-
'x-code'?: string | undefined;
|
|
2419
|
-
}, {
|
|
2420
|
-
'x-tenant': string;
|
|
2421
|
-
'x-service-token': string;
|
|
2422
|
-
'x-code'?: string | undefined;
|
|
2423
|
-
'x-client-timezone'?: string | undefined;
|
|
2424
|
-
}>>>;
|
|
2425
2386
|
responses: {
|
|
2426
|
-
200: z.ZodObject<
|
|
2387
|
+
200: z.ZodObject<{
|
|
2427
2388
|
requestId: z.ZodString;
|
|
2428
|
-
}, {
|
|
2429
2389
|
page: z.ZodNumber;
|
|
2430
2390
|
pageSize: z.ZodNumber;
|
|
2431
2391
|
total: z.ZodNumber;
|
|
@@ -2441,14 +2401,13 @@ export declare const contactContract: {
|
|
|
2441
2401
|
notes: z.ZodNullable<z.ZodString>;
|
|
2442
2402
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
2443
2403
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
2444
|
-
tags: z.ZodArray<z.ZodObject<
|
|
2404
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
2445
2405
|
id: z.ZodString;
|
|
2446
2406
|
createdAt: z.ZodDate;
|
|
2447
2407
|
updatedAt: z.ZodDate;
|
|
2448
2408
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2449
|
-
}, {
|
|
2450
2409
|
name: z.ZodString;
|
|
2451
|
-
}
|
|
2410
|
+
}, "strip", z.ZodTypeAny, {
|
|
2452
2411
|
name: string;
|
|
2453
2412
|
id: string;
|
|
2454
2413
|
createdAt: Date;
|
|
@@ -2461,32 +2420,29 @@ export declare const contactContract: {
|
|
|
2461
2420
|
updatedAt: Date;
|
|
2462
2421
|
deletedAt: Date | null;
|
|
2463
2422
|
}>, "many">;
|
|
2464
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
2423
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
2465
2424
|
id: z.ZodString;
|
|
2466
2425
|
createdAt: z.ZodDate;
|
|
2467
2426
|
updatedAt: z.ZodDate;
|
|
2468
2427
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2469
|
-
}, {
|
|
2470
2428
|
name: z.ZodOptional<z.ZodString>;
|
|
2471
2429
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2472
2430
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2473
2431
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2474
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
2432
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2475
2433
|
id: z.ZodString;
|
|
2476
2434
|
createdAt: z.ZodDate;
|
|
2477
2435
|
updatedAt: z.ZodDate;
|
|
2478
2436
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2479
|
-
}, {
|
|
2480
2437
|
textValue: z.ZodNullable<z.ZodString>;
|
|
2481
2438
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
2482
2439
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
2483
2440
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
2484
|
-
attribute: z.ZodObject<Omit<
|
|
2441
|
+
attribute: z.ZodObject<Omit<{
|
|
2485
2442
|
id: z.ZodString;
|
|
2486
2443
|
createdAt: z.ZodDate;
|
|
2487
2444
|
updatedAt: z.ZodDate;
|
|
2488
2445
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2489
|
-
}, {
|
|
2490
2446
|
systemName: z.ZodString;
|
|
2491
2447
|
displayName: z.ZodString;
|
|
2492
2448
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -2495,14 +2451,13 @@ export declare const contactContract: {
|
|
|
2495
2451
|
isArchived: z.ZodBoolean;
|
|
2496
2452
|
isRequired: z.ZodBoolean;
|
|
2497
2453
|
isUnique: z.ZodBoolean;
|
|
2498
|
-
options: z.ZodArray<z.ZodObject<
|
|
2499
|
-
|
|
2454
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2455
|
+
position: z.ZodNumber;
|
|
2500
2456
|
value: z.ZodString;
|
|
2457
|
+
label: z.ZodString;
|
|
2501
2458
|
isDefault: z.ZodBoolean;
|
|
2502
|
-
position: z.ZodNumber;
|
|
2503
|
-
}, {
|
|
2504
2459
|
id: z.ZodString;
|
|
2505
|
-
}
|
|
2460
|
+
}, "strip", z.ZodTypeAny, {
|
|
2506
2461
|
id: string;
|
|
2507
2462
|
position: number;
|
|
2508
2463
|
value: string;
|
|
@@ -2515,15 +2470,14 @@ export declare const contactContract: {
|
|
|
2515
2470
|
label: string;
|
|
2516
2471
|
isDefault: boolean;
|
|
2517
2472
|
}>, "many">;
|
|
2518
|
-
group: z.ZodObject<
|
|
2473
|
+
group: z.ZodObject<{
|
|
2519
2474
|
id: z.ZodString;
|
|
2520
2475
|
createdAt: z.ZodDate;
|
|
2521
2476
|
updatedAt: z.ZodDate;
|
|
2522
2477
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2523
|
-
}, {
|
|
2524
2478
|
systemName: z.ZodString;
|
|
2525
2479
|
displayName: z.ZodString;
|
|
2526
|
-
}
|
|
2480
|
+
}, "strip", z.ZodTypeAny, {
|
|
2527
2481
|
id: string;
|
|
2528
2482
|
createdAt: Date;
|
|
2529
2483
|
updatedAt: Date;
|
|
@@ -2538,7 +2492,7 @@ export declare const contactContract: {
|
|
|
2538
2492
|
systemName: string;
|
|
2539
2493
|
displayName: string;
|
|
2540
2494
|
}>;
|
|
2541
|
-
}
|
|
2495
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
2542
2496
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
2543
2497
|
id: string;
|
|
2544
2498
|
position: number;
|
|
@@ -2565,7 +2519,7 @@ export declare const contactContract: {
|
|
|
2565
2519
|
isRequired: boolean;
|
|
2566
2520
|
isUnique: boolean;
|
|
2567
2521
|
}>;
|
|
2568
|
-
}
|
|
2522
|
+
}, "strip", z.ZodTypeAny, {
|
|
2569
2523
|
id: string;
|
|
2570
2524
|
createdAt: Date;
|
|
2571
2525
|
updatedAt: Date;
|
|
@@ -2612,7 +2566,7 @@ export declare const contactContract: {
|
|
|
2612
2566
|
numberValue: number | null;
|
|
2613
2567
|
dateValue: Date | null;
|
|
2614
2568
|
}>, "many">>;
|
|
2615
|
-
}
|
|
2569
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
2616
2570
|
id: string;
|
|
2617
2571
|
createdAt: Date;
|
|
2618
2572
|
updatedAt: Date;
|
|
@@ -2693,12 +2647,11 @@ export declare const contactContract: {
|
|
|
2693
2647
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
2694
2648
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
2695
2649
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
2696
|
-
attribute: z.ZodObject<Omit<
|
|
2650
|
+
attribute: z.ZodObject<Omit<{
|
|
2697
2651
|
id: z.ZodString;
|
|
2698
2652
|
createdAt: z.ZodDate;
|
|
2699
2653
|
updatedAt: z.ZodDate;
|
|
2700
2654
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2701
|
-
}, {
|
|
2702
2655
|
systemName: z.ZodString;
|
|
2703
2656
|
displayName: z.ZodString;
|
|
2704
2657
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -2707,14 +2660,13 @@ export declare const contactContract: {
|
|
|
2707
2660
|
isArchived: z.ZodBoolean;
|
|
2708
2661
|
isRequired: z.ZodBoolean;
|
|
2709
2662
|
isUnique: z.ZodBoolean;
|
|
2710
|
-
options: z.ZodArray<z.ZodObject<
|
|
2711
|
-
|
|
2663
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2664
|
+
position: z.ZodNumber;
|
|
2712
2665
|
value: z.ZodString;
|
|
2666
|
+
label: z.ZodString;
|
|
2713
2667
|
isDefault: z.ZodBoolean;
|
|
2714
|
-
position: z.ZodNumber;
|
|
2715
|
-
}, {
|
|
2716
2668
|
id: z.ZodString;
|
|
2717
|
-
}
|
|
2669
|
+
}, "strip", z.ZodTypeAny, {
|
|
2718
2670
|
id: string;
|
|
2719
2671
|
position: number;
|
|
2720
2672
|
value: string;
|
|
@@ -2727,15 +2679,14 @@ export declare const contactContract: {
|
|
|
2727
2679
|
label: string;
|
|
2728
2680
|
isDefault: boolean;
|
|
2729
2681
|
}>, "many">;
|
|
2730
|
-
group: z.ZodObject<
|
|
2682
|
+
group: z.ZodObject<{
|
|
2731
2683
|
id: z.ZodString;
|
|
2732
2684
|
createdAt: z.ZodDate;
|
|
2733
2685
|
updatedAt: z.ZodDate;
|
|
2734
2686
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2735
|
-
}, {
|
|
2736
2687
|
systemName: z.ZodString;
|
|
2737
2688
|
displayName: z.ZodString;
|
|
2738
|
-
}
|
|
2689
|
+
}, "strip", z.ZodTypeAny, {
|
|
2739
2690
|
id: string;
|
|
2740
2691
|
createdAt: Date;
|
|
2741
2692
|
updatedAt: Date;
|
|
@@ -2750,7 +2701,7 @@ export declare const contactContract: {
|
|
|
2750
2701
|
systemName: string;
|
|
2751
2702
|
displayName: string;
|
|
2752
2703
|
}>;
|
|
2753
|
-
}
|
|
2704
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
2754
2705
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
2755
2706
|
id: string;
|
|
2756
2707
|
position: number;
|
|
@@ -2777,19 +2728,18 @@ export declare const contactContract: {
|
|
|
2777
2728
|
isRequired: boolean;
|
|
2778
2729
|
isUnique: boolean;
|
|
2779
2730
|
}>;
|
|
2780
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
2731
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
2781
2732
|
id: z.ZodString;
|
|
2782
2733
|
createdAt: z.ZodDate;
|
|
2783
2734
|
updatedAt: z.ZodDate;
|
|
2784
2735
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
2785
|
-
}, {
|
|
2786
2736
|
bucketName: z.ZodString;
|
|
2787
2737
|
fileName: z.ZodString;
|
|
2788
2738
|
fileSize: z.ZodNumber;
|
|
2789
2739
|
fileKey: z.ZodString;
|
|
2790
2740
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
2791
2741
|
status: z.ZodNullable<z.ZodString>;
|
|
2792
|
-
}
|
|
2742
|
+
}, "strip", z.ZodTypeAny, {
|
|
2793
2743
|
id: string;
|
|
2794
2744
|
status: string | null;
|
|
2795
2745
|
createdAt: Date;
|
|
@@ -3210,7 +3160,7 @@ export declare const contactContract: {
|
|
|
3210
3160
|
};
|
|
3211
3161
|
}[] | undefined;
|
|
3212
3162
|
}>, "many">;
|
|
3213
|
-
}
|
|
3163
|
+
}, "strip", z.ZodTypeAny, {
|
|
3214
3164
|
data: {
|
|
3215
3165
|
name: string;
|
|
3216
3166
|
id: string;
|
|
@@ -3499,6 +3449,23 @@ export declare const contactContract: {
|
|
|
3499
3449
|
error?: any;
|
|
3500
3450
|
}>;
|
|
3501
3451
|
};
|
|
3452
|
+
path: "cs/contact/filter/list";
|
|
3453
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
3454
|
+
'x-tenant': z.ZodString;
|
|
3455
|
+
'x-service-token': z.ZodString;
|
|
3456
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
3457
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
3458
|
+
}, "strip", z.ZodTypeAny, {
|
|
3459
|
+
'x-tenant': string;
|
|
3460
|
+
'x-service-token': string;
|
|
3461
|
+
'x-client-timezone': string;
|
|
3462
|
+
'x-code'?: string | undefined;
|
|
3463
|
+
}, {
|
|
3464
|
+
'x-tenant': string;
|
|
3465
|
+
'x-service-token': string;
|
|
3466
|
+
'x-code'?: string | undefined;
|
|
3467
|
+
'x-client-timezone'?: string | undefined;
|
|
3468
|
+
}>>>;
|
|
3502
3469
|
};
|
|
3503
3470
|
update: {
|
|
3504
3471
|
body: z.ZodObject<{
|
|
@@ -3553,60 +3520,60 @@ export declare const contactContract: {
|
|
|
3553
3520
|
name?: {
|
|
3554
3521
|
[x: string]: any;
|
|
3555
3522
|
} | undefined;
|
|
3556
|
-
|
|
3523
|
+
email?: {
|
|
3557
3524
|
[x: string]: any;
|
|
3558
3525
|
} | undefined;
|
|
3559
|
-
|
|
3526
|
+
channel?: {
|
|
3560
3527
|
[x: string]: any;
|
|
3561
3528
|
} | undefined;
|
|
3562
|
-
|
|
3529
|
+
address?: {
|
|
3563
3530
|
[x: string]: any;
|
|
3564
3531
|
} | undefined;
|
|
3565
3532
|
phone?: {
|
|
3566
3533
|
[x: string]: any;
|
|
3567
3534
|
} | undefined;
|
|
3568
|
-
customFields?: {
|
|
3569
|
-
[x: string]: any;
|
|
3570
|
-
}[] | undefined;
|
|
3571
|
-
company?: {
|
|
3572
|
-
[x: string]: any;
|
|
3573
|
-
} | undefined;
|
|
3574
3535
|
notes?: {
|
|
3575
3536
|
[x: string]: any;
|
|
3576
3537
|
} | undefined;
|
|
3577
3538
|
tags?: {
|
|
3578
3539
|
[x: string]: any;
|
|
3579
3540
|
} | undefined;
|
|
3541
|
+
company?: {
|
|
3542
|
+
[x: string]: any;
|
|
3543
|
+
} | undefined;
|
|
3544
|
+
customFields?: {
|
|
3545
|
+
[x: string]: any;
|
|
3546
|
+
}[] | undefined;
|
|
3580
3547
|
mailRoomId?: string | undefined;
|
|
3581
3548
|
isTheMailRoomOwner?: boolean | undefined;
|
|
3582
3549
|
}, {
|
|
3583
3550
|
name?: {
|
|
3584
3551
|
[x: string]: any;
|
|
3585
3552
|
} | undefined;
|
|
3586
|
-
|
|
3553
|
+
email?: {
|
|
3587
3554
|
[x: string]: any;
|
|
3588
3555
|
} | undefined;
|
|
3589
|
-
|
|
3556
|
+
channel?: {
|
|
3590
3557
|
[x: string]: any;
|
|
3591
3558
|
} | undefined;
|
|
3592
|
-
|
|
3559
|
+
address?: {
|
|
3593
3560
|
[x: string]: any;
|
|
3594
3561
|
} | undefined;
|
|
3595
3562
|
phone?: {
|
|
3596
3563
|
[x: string]: any;
|
|
3597
3564
|
} | undefined;
|
|
3598
|
-
customFields?: {
|
|
3599
|
-
[x: string]: any;
|
|
3600
|
-
}[] | undefined;
|
|
3601
|
-
company?: {
|
|
3602
|
-
[x: string]: any;
|
|
3603
|
-
} | undefined;
|
|
3604
3565
|
notes?: {
|
|
3605
3566
|
[x: string]: any;
|
|
3606
3567
|
} | undefined;
|
|
3607
3568
|
tags?: {
|
|
3608
3569
|
[x: string]: any;
|
|
3609
3570
|
} | undefined;
|
|
3571
|
+
company?: {
|
|
3572
|
+
[x: string]: any;
|
|
3573
|
+
} | undefined;
|
|
3574
|
+
customFields?: {
|
|
3575
|
+
[x: string]: any;
|
|
3576
|
+
}[] | undefined;
|
|
3610
3577
|
mailRoomId?: string | undefined;
|
|
3611
3578
|
isTheMailRoomOwner?: boolean | undefined;
|
|
3612
3579
|
}>;
|
|
@@ -3619,27 +3586,9 @@ export declare const contactContract: {
|
|
|
3619
3586
|
}, {
|
|
3620
3587
|
id: string;
|
|
3621
3588
|
}>;
|
|
3622
|
-
path: "cs/contact/:id";
|
|
3623
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
3624
|
-
'x-tenant': z.ZodString;
|
|
3625
|
-
'x-service-token': z.ZodString;
|
|
3626
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
3627
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
3628
|
-
}, "strip", z.ZodTypeAny, {
|
|
3629
|
-
'x-tenant': string;
|
|
3630
|
-
'x-service-token': string;
|
|
3631
|
-
'x-client-timezone': string;
|
|
3632
|
-
'x-code'?: string | undefined;
|
|
3633
|
-
}, {
|
|
3634
|
-
'x-tenant': string;
|
|
3635
|
-
'x-service-token': string;
|
|
3636
|
-
'x-code'?: string | undefined;
|
|
3637
|
-
'x-client-timezone'?: string | undefined;
|
|
3638
|
-
}>>>;
|
|
3639
3589
|
responses: {
|
|
3640
|
-
200: z.ZodObject<
|
|
3590
|
+
200: z.ZodObject<{
|
|
3641
3591
|
requestId: z.ZodString;
|
|
3642
|
-
}, {
|
|
3643
3592
|
data: z.ZodObject<{
|
|
3644
3593
|
id: z.ZodString;
|
|
3645
3594
|
createdAt: z.ZodDate;
|
|
@@ -3651,14 +3600,13 @@ export declare const contactContract: {
|
|
|
3651
3600
|
notes: z.ZodNullable<z.ZodString>;
|
|
3652
3601
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
3653
3602
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
3654
|
-
tags: z.ZodArray<z.ZodObject<
|
|
3603
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
3655
3604
|
id: z.ZodString;
|
|
3656
3605
|
createdAt: z.ZodDate;
|
|
3657
3606
|
updatedAt: z.ZodDate;
|
|
3658
3607
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3659
|
-
}, {
|
|
3660
3608
|
name: z.ZodString;
|
|
3661
|
-
}
|
|
3609
|
+
}, "strip", z.ZodTypeAny, {
|
|
3662
3610
|
name: string;
|
|
3663
3611
|
id: string;
|
|
3664
3612
|
createdAt: Date;
|
|
@@ -3671,32 +3619,29 @@ export declare const contactContract: {
|
|
|
3671
3619
|
updatedAt: Date;
|
|
3672
3620
|
deletedAt: Date | null;
|
|
3673
3621
|
}>, "many">;
|
|
3674
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
3622
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
3675
3623
|
id: z.ZodString;
|
|
3676
3624
|
createdAt: z.ZodDate;
|
|
3677
3625
|
updatedAt: z.ZodDate;
|
|
3678
3626
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3679
|
-
}, {
|
|
3680
3627
|
name: z.ZodOptional<z.ZodString>;
|
|
3681
3628
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3682
3629
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3683
3630
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3684
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
3631
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3685
3632
|
id: z.ZodString;
|
|
3686
3633
|
createdAt: z.ZodDate;
|
|
3687
3634
|
updatedAt: z.ZodDate;
|
|
3688
3635
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3689
|
-
}, {
|
|
3690
3636
|
textValue: z.ZodNullable<z.ZodString>;
|
|
3691
3637
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
3692
3638
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
3693
3639
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
3694
|
-
attribute: z.ZodObject<Omit<
|
|
3640
|
+
attribute: z.ZodObject<Omit<{
|
|
3695
3641
|
id: z.ZodString;
|
|
3696
3642
|
createdAt: z.ZodDate;
|
|
3697
3643
|
updatedAt: z.ZodDate;
|
|
3698
3644
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3699
|
-
}, {
|
|
3700
3645
|
systemName: z.ZodString;
|
|
3701
3646
|
displayName: z.ZodString;
|
|
3702
3647
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -3705,14 +3650,13 @@ export declare const contactContract: {
|
|
|
3705
3650
|
isArchived: z.ZodBoolean;
|
|
3706
3651
|
isRequired: z.ZodBoolean;
|
|
3707
3652
|
isUnique: z.ZodBoolean;
|
|
3708
|
-
options: z.ZodArray<z.ZodObject<
|
|
3709
|
-
|
|
3653
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3654
|
+
position: z.ZodNumber;
|
|
3710
3655
|
value: z.ZodString;
|
|
3656
|
+
label: z.ZodString;
|
|
3711
3657
|
isDefault: z.ZodBoolean;
|
|
3712
|
-
position: z.ZodNumber;
|
|
3713
|
-
}, {
|
|
3714
3658
|
id: z.ZodString;
|
|
3715
|
-
}
|
|
3659
|
+
}, "strip", z.ZodTypeAny, {
|
|
3716
3660
|
id: string;
|
|
3717
3661
|
position: number;
|
|
3718
3662
|
value: string;
|
|
@@ -3725,15 +3669,14 @@ export declare const contactContract: {
|
|
|
3725
3669
|
label: string;
|
|
3726
3670
|
isDefault: boolean;
|
|
3727
3671
|
}>, "many">;
|
|
3728
|
-
group: z.ZodObject<
|
|
3672
|
+
group: z.ZodObject<{
|
|
3729
3673
|
id: z.ZodString;
|
|
3730
3674
|
createdAt: z.ZodDate;
|
|
3731
3675
|
updatedAt: z.ZodDate;
|
|
3732
3676
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3733
|
-
}, {
|
|
3734
3677
|
systemName: z.ZodString;
|
|
3735
3678
|
displayName: z.ZodString;
|
|
3736
|
-
}
|
|
3679
|
+
}, "strip", z.ZodTypeAny, {
|
|
3737
3680
|
id: string;
|
|
3738
3681
|
createdAt: Date;
|
|
3739
3682
|
updatedAt: Date;
|
|
@@ -3748,7 +3691,7 @@ export declare const contactContract: {
|
|
|
3748
3691
|
systemName: string;
|
|
3749
3692
|
displayName: string;
|
|
3750
3693
|
}>;
|
|
3751
|
-
}
|
|
3694
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
3752
3695
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
3753
3696
|
id: string;
|
|
3754
3697
|
position: number;
|
|
@@ -3775,7 +3718,7 @@ export declare const contactContract: {
|
|
|
3775
3718
|
isRequired: boolean;
|
|
3776
3719
|
isUnique: boolean;
|
|
3777
3720
|
}>;
|
|
3778
|
-
}
|
|
3721
|
+
}, "strip", z.ZodTypeAny, {
|
|
3779
3722
|
id: string;
|
|
3780
3723
|
createdAt: Date;
|
|
3781
3724
|
updatedAt: Date;
|
|
@@ -3822,7 +3765,7 @@ export declare const contactContract: {
|
|
|
3822
3765
|
numberValue: number | null;
|
|
3823
3766
|
dateValue: Date | null;
|
|
3824
3767
|
}>, "many">>;
|
|
3825
|
-
}
|
|
3768
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
3826
3769
|
id: string;
|
|
3827
3770
|
createdAt: Date;
|
|
3828
3771
|
updatedAt: Date;
|
|
@@ -3903,12 +3846,11 @@ export declare const contactContract: {
|
|
|
3903
3846
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
3904
3847
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
3905
3848
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
3906
|
-
attribute: z.ZodObject<Omit<
|
|
3849
|
+
attribute: z.ZodObject<Omit<{
|
|
3907
3850
|
id: z.ZodString;
|
|
3908
3851
|
createdAt: z.ZodDate;
|
|
3909
3852
|
updatedAt: z.ZodDate;
|
|
3910
3853
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3911
|
-
}, {
|
|
3912
3854
|
systemName: z.ZodString;
|
|
3913
3855
|
displayName: z.ZodString;
|
|
3914
3856
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -3917,14 +3859,13 @@ export declare const contactContract: {
|
|
|
3917
3859
|
isArchived: z.ZodBoolean;
|
|
3918
3860
|
isRequired: z.ZodBoolean;
|
|
3919
3861
|
isUnique: z.ZodBoolean;
|
|
3920
|
-
options: z.ZodArray<z.ZodObject<
|
|
3921
|
-
|
|
3862
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3863
|
+
position: z.ZodNumber;
|
|
3922
3864
|
value: z.ZodString;
|
|
3865
|
+
label: z.ZodString;
|
|
3923
3866
|
isDefault: z.ZodBoolean;
|
|
3924
|
-
position: z.ZodNumber;
|
|
3925
|
-
}, {
|
|
3926
3867
|
id: z.ZodString;
|
|
3927
|
-
}
|
|
3868
|
+
}, "strip", z.ZodTypeAny, {
|
|
3928
3869
|
id: string;
|
|
3929
3870
|
position: number;
|
|
3930
3871
|
value: string;
|
|
@@ -3937,15 +3878,14 @@ export declare const contactContract: {
|
|
|
3937
3878
|
label: string;
|
|
3938
3879
|
isDefault: boolean;
|
|
3939
3880
|
}>, "many">;
|
|
3940
|
-
group: z.ZodObject<
|
|
3881
|
+
group: z.ZodObject<{
|
|
3941
3882
|
id: z.ZodString;
|
|
3942
3883
|
createdAt: z.ZodDate;
|
|
3943
3884
|
updatedAt: z.ZodDate;
|
|
3944
3885
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3945
|
-
}, {
|
|
3946
3886
|
systemName: z.ZodString;
|
|
3947
3887
|
displayName: z.ZodString;
|
|
3948
|
-
}
|
|
3888
|
+
}, "strip", z.ZodTypeAny, {
|
|
3949
3889
|
id: string;
|
|
3950
3890
|
createdAt: Date;
|
|
3951
3891
|
updatedAt: Date;
|
|
@@ -3960,7 +3900,7 @@ export declare const contactContract: {
|
|
|
3960
3900
|
systemName: string;
|
|
3961
3901
|
displayName: string;
|
|
3962
3902
|
}>;
|
|
3963
|
-
}
|
|
3903
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
3964
3904
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
3965
3905
|
id: string;
|
|
3966
3906
|
position: number;
|
|
@@ -3987,19 +3927,18 @@ export declare const contactContract: {
|
|
|
3987
3927
|
isRequired: boolean;
|
|
3988
3928
|
isUnique: boolean;
|
|
3989
3929
|
}>;
|
|
3990
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
3930
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
3991
3931
|
id: z.ZodString;
|
|
3992
3932
|
createdAt: z.ZodDate;
|
|
3993
3933
|
updatedAt: z.ZodDate;
|
|
3994
3934
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
3995
|
-
}, {
|
|
3996
3935
|
bucketName: z.ZodString;
|
|
3997
3936
|
fileName: z.ZodString;
|
|
3998
3937
|
fileSize: z.ZodNumber;
|
|
3999
3938
|
fileKey: z.ZodString;
|
|
4000
3939
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
4001
3940
|
status: z.ZodNullable<z.ZodString>;
|
|
4002
|
-
}
|
|
3941
|
+
}, "strip", z.ZodTypeAny, {
|
|
4003
3942
|
id: string;
|
|
4004
3943
|
status: string | null;
|
|
4005
3944
|
createdAt: Date;
|
|
@@ -4420,7 +4359,7 @@ export declare const contactContract: {
|
|
|
4420
4359
|
};
|
|
4421
4360
|
}[] | undefined;
|
|
4422
4361
|
}>;
|
|
4423
|
-
}
|
|
4362
|
+
}, "strip", z.ZodTypeAny, {
|
|
4424
4363
|
data: {
|
|
4425
4364
|
name: string;
|
|
4426
4365
|
id: string;
|
|
@@ -4701,18 +4640,6 @@ export declare const contactContract: {
|
|
|
4701
4640
|
error?: any;
|
|
4702
4641
|
}>;
|
|
4703
4642
|
};
|
|
4704
|
-
};
|
|
4705
|
-
delete: {
|
|
4706
|
-
body: null;
|
|
4707
|
-
summary: "Delete a contact";
|
|
4708
|
-
method: "DELETE";
|
|
4709
|
-
pathParams: z.ZodObject<{
|
|
4710
|
-
id: z.ZodString;
|
|
4711
|
-
}, "strip", z.ZodTypeAny, {
|
|
4712
|
-
id: string;
|
|
4713
|
-
}, {
|
|
4714
|
-
id: string;
|
|
4715
|
-
}>;
|
|
4716
4643
|
path: "cs/contact/:id";
|
|
4717
4644
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4718
4645
|
'x-tenant': z.ZodString;
|
|
@@ -4730,12 +4657,23 @@ export declare const contactContract: {
|
|
|
4730
4657
|
'x-code'?: string | undefined;
|
|
4731
4658
|
'x-client-timezone'?: string | undefined;
|
|
4732
4659
|
}>>>;
|
|
4660
|
+
};
|
|
4661
|
+
delete: {
|
|
4662
|
+
body: null;
|
|
4663
|
+
summary: "Delete a contact";
|
|
4664
|
+
method: "DELETE";
|
|
4665
|
+
pathParams: z.ZodObject<{
|
|
4666
|
+
id: z.ZodString;
|
|
4667
|
+
}, "strip", z.ZodTypeAny, {
|
|
4668
|
+
id: string;
|
|
4669
|
+
}, {
|
|
4670
|
+
id: string;
|
|
4671
|
+
}>;
|
|
4733
4672
|
responses: {
|
|
4734
|
-
200: z.ZodObject<
|
|
4673
|
+
200: z.ZodObject<{
|
|
4735
4674
|
requestId: z.ZodString;
|
|
4736
|
-
}, {
|
|
4737
4675
|
message: z.ZodString;
|
|
4738
|
-
}
|
|
4676
|
+
}, "strip", z.ZodTypeAny, {
|
|
4739
4677
|
message: string;
|
|
4740
4678
|
requestId: string;
|
|
4741
4679
|
}, {
|
|
@@ -4794,18 +4732,7 @@ export declare const contactContract: {
|
|
|
4794
4732
|
error?: any;
|
|
4795
4733
|
}>;
|
|
4796
4734
|
};
|
|
4797
|
-
|
|
4798
|
-
createContactByPhone: {
|
|
4799
|
-
body: z.ZodObject<{
|
|
4800
|
-
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
4801
|
-
}, "strip", z.ZodTypeAny, {
|
|
4802
|
-
phoneNumber: string;
|
|
4803
|
-
}, {
|
|
4804
|
-
phoneNumber: string;
|
|
4805
|
-
}>;
|
|
4806
|
-
summary: "Create a new contact using phone number";
|
|
4807
|
-
method: "POST";
|
|
4808
|
-
path: "cs/contact/phone";
|
|
4735
|
+
path: "cs/contact/:id";
|
|
4809
4736
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4810
4737
|
'x-tenant': z.ZodString;
|
|
4811
4738
|
'x-service-token': z.ZodString;
|
|
@@ -4822,10 +4749,20 @@ export declare const contactContract: {
|
|
|
4822
4749
|
'x-code'?: string | undefined;
|
|
4823
4750
|
'x-client-timezone'?: string | undefined;
|
|
4824
4751
|
}>>>;
|
|
4752
|
+
};
|
|
4753
|
+
createContactByPhone: {
|
|
4754
|
+
body: z.ZodObject<{
|
|
4755
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
4756
|
+
}, "strip", z.ZodTypeAny, {
|
|
4757
|
+
phoneNumber: string;
|
|
4758
|
+
}, {
|
|
4759
|
+
phoneNumber: string;
|
|
4760
|
+
}>;
|
|
4761
|
+
summary: "Create a new contact using phone number";
|
|
4762
|
+
method: "POST";
|
|
4825
4763
|
responses: {
|
|
4826
|
-
201: z.ZodObject<
|
|
4764
|
+
201: z.ZodObject<{
|
|
4827
4765
|
requestId: z.ZodString;
|
|
4828
|
-
}, {
|
|
4829
4766
|
data: z.ZodObject<{
|
|
4830
4767
|
id: z.ZodString;
|
|
4831
4768
|
createdAt: z.ZodDate;
|
|
@@ -4837,14 +4774,13 @@ export declare const contactContract: {
|
|
|
4837
4774
|
notes: z.ZodNullable<z.ZodString>;
|
|
4838
4775
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
4839
4776
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
4840
|
-
tags: z.ZodArray<z.ZodObject<
|
|
4777
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
4841
4778
|
id: z.ZodString;
|
|
4842
4779
|
createdAt: z.ZodDate;
|
|
4843
4780
|
updatedAt: z.ZodDate;
|
|
4844
4781
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4845
|
-
}, {
|
|
4846
4782
|
name: z.ZodString;
|
|
4847
|
-
}
|
|
4783
|
+
}, "strip", z.ZodTypeAny, {
|
|
4848
4784
|
name: string;
|
|
4849
4785
|
id: string;
|
|
4850
4786
|
createdAt: Date;
|
|
@@ -4857,32 +4793,29 @@ export declare const contactContract: {
|
|
|
4857
4793
|
updatedAt: Date;
|
|
4858
4794
|
deletedAt: Date | null;
|
|
4859
4795
|
}>, "many">;
|
|
4860
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
4796
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
4861
4797
|
id: z.ZodString;
|
|
4862
4798
|
createdAt: z.ZodDate;
|
|
4863
4799
|
updatedAt: z.ZodDate;
|
|
4864
4800
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4865
|
-
}, {
|
|
4866
4801
|
name: z.ZodOptional<z.ZodString>;
|
|
4867
4802
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4868
4803
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4869
4804
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4870
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
4805
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4871
4806
|
id: z.ZodString;
|
|
4872
4807
|
createdAt: z.ZodDate;
|
|
4873
4808
|
updatedAt: z.ZodDate;
|
|
4874
4809
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4875
|
-
}, {
|
|
4876
4810
|
textValue: z.ZodNullable<z.ZodString>;
|
|
4877
4811
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
4878
4812
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
4879
4813
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
4880
|
-
attribute: z.ZodObject<Omit<
|
|
4814
|
+
attribute: z.ZodObject<Omit<{
|
|
4881
4815
|
id: z.ZodString;
|
|
4882
4816
|
createdAt: z.ZodDate;
|
|
4883
4817
|
updatedAt: z.ZodDate;
|
|
4884
4818
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4885
|
-
}, {
|
|
4886
4819
|
systemName: z.ZodString;
|
|
4887
4820
|
displayName: z.ZodString;
|
|
4888
4821
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -4891,14 +4824,13 @@ export declare const contactContract: {
|
|
|
4891
4824
|
isArchived: z.ZodBoolean;
|
|
4892
4825
|
isRequired: z.ZodBoolean;
|
|
4893
4826
|
isUnique: z.ZodBoolean;
|
|
4894
|
-
options: z.ZodArray<z.ZodObject<
|
|
4895
|
-
|
|
4827
|
+
options: z.ZodArray<z.ZodObject<{
|
|
4828
|
+
position: z.ZodNumber;
|
|
4896
4829
|
value: z.ZodString;
|
|
4830
|
+
label: z.ZodString;
|
|
4897
4831
|
isDefault: z.ZodBoolean;
|
|
4898
|
-
position: z.ZodNumber;
|
|
4899
|
-
}, {
|
|
4900
4832
|
id: z.ZodString;
|
|
4901
|
-
}
|
|
4833
|
+
}, "strip", z.ZodTypeAny, {
|
|
4902
4834
|
id: string;
|
|
4903
4835
|
position: number;
|
|
4904
4836
|
value: string;
|
|
@@ -4911,15 +4843,14 @@ export declare const contactContract: {
|
|
|
4911
4843
|
label: string;
|
|
4912
4844
|
isDefault: boolean;
|
|
4913
4845
|
}>, "many">;
|
|
4914
|
-
group: z.ZodObject<
|
|
4846
|
+
group: z.ZodObject<{
|
|
4915
4847
|
id: z.ZodString;
|
|
4916
4848
|
createdAt: z.ZodDate;
|
|
4917
4849
|
updatedAt: z.ZodDate;
|
|
4918
4850
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
4919
|
-
}, {
|
|
4920
4851
|
systemName: z.ZodString;
|
|
4921
4852
|
displayName: z.ZodString;
|
|
4922
|
-
}
|
|
4853
|
+
}, "strip", z.ZodTypeAny, {
|
|
4923
4854
|
id: string;
|
|
4924
4855
|
createdAt: Date;
|
|
4925
4856
|
updatedAt: Date;
|
|
@@ -4934,7 +4865,7 @@ export declare const contactContract: {
|
|
|
4934
4865
|
systemName: string;
|
|
4935
4866
|
displayName: string;
|
|
4936
4867
|
}>;
|
|
4937
|
-
}
|
|
4868
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
4938
4869
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
4939
4870
|
id: string;
|
|
4940
4871
|
position: number;
|
|
@@ -4961,7 +4892,7 @@ export declare const contactContract: {
|
|
|
4961
4892
|
isRequired: boolean;
|
|
4962
4893
|
isUnique: boolean;
|
|
4963
4894
|
}>;
|
|
4964
|
-
}
|
|
4895
|
+
}, "strip", z.ZodTypeAny, {
|
|
4965
4896
|
id: string;
|
|
4966
4897
|
createdAt: Date;
|
|
4967
4898
|
updatedAt: Date;
|
|
@@ -5008,7 +4939,7 @@ export declare const contactContract: {
|
|
|
5008
4939
|
numberValue: number | null;
|
|
5009
4940
|
dateValue: Date | null;
|
|
5010
4941
|
}>, "many">>;
|
|
5011
|
-
}
|
|
4942
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
5012
4943
|
id: string;
|
|
5013
4944
|
createdAt: Date;
|
|
5014
4945
|
updatedAt: Date;
|
|
@@ -5089,12 +5020,11 @@ export declare const contactContract: {
|
|
|
5089
5020
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
5090
5021
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
5091
5022
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
5092
|
-
attribute: z.ZodObject<Omit<
|
|
5023
|
+
attribute: z.ZodObject<Omit<{
|
|
5093
5024
|
id: z.ZodString;
|
|
5094
5025
|
createdAt: z.ZodDate;
|
|
5095
5026
|
updatedAt: z.ZodDate;
|
|
5096
5027
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5097
|
-
}, {
|
|
5098
5028
|
systemName: z.ZodString;
|
|
5099
5029
|
displayName: z.ZodString;
|
|
5100
5030
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -5103,14 +5033,13 @@ export declare const contactContract: {
|
|
|
5103
5033
|
isArchived: z.ZodBoolean;
|
|
5104
5034
|
isRequired: z.ZodBoolean;
|
|
5105
5035
|
isUnique: z.ZodBoolean;
|
|
5106
|
-
options: z.ZodArray<z.ZodObject<
|
|
5107
|
-
|
|
5036
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5037
|
+
position: z.ZodNumber;
|
|
5108
5038
|
value: z.ZodString;
|
|
5039
|
+
label: z.ZodString;
|
|
5109
5040
|
isDefault: z.ZodBoolean;
|
|
5110
|
-
position: z.ZodNumber;
|
|
5111
|
-
}, {
|
|
5112
5041
|
id: z.ZodString;
|
|
5113
|
-
}
|
|
5042
|
+
}, "strip", z.ZodTypeAny, {
|
|
5114
5043
|
id: string;
|
|
5115
5044
|
position: number;
|
|
5116
5045
|
value: string;
|
|
@@ -5123,15 +5052,14 @@ export declare const contactContract: {
|
|
|
5123
5052
|
label: string;
|
|
5124
5053
|
isDefault: boolean;
|
|
5125
5054
|
}>, "many">;
|
|
5126
|
-
group: z.ZodObject<
|
|
5055
|
+
group: z.ZodObject<{
|
|
5127
5056
|
id: z.ZodString;
|
|
5128
5057
|
createdAt: z.ZodDate;
|
|
5129
5058
|
updatedAt: z.ZodDate;
|
|
5130
5059
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5131
|
-
}, {
|
|
5132
5060
|
systemName: z.ZodString;
|
|
5133
5061
|
displayName: z.ZodString;
|
|
5134
|
-
}
|
|
5062
|
+
}, "strip", z.ZodTypeAny, {
|
|
5135
5063
|
id: string;
|
|
5136
5064
|
createdAt: Date;
|
|
5137
5065
|
updatedAt: Date;
|
|
@@ -5146,7 +5074,7 @@ export declare const contactContract: {
|
|
|
5146
5074
|
systemName: string;
|
|
5147
5075
|
displayName: string;
|
|
5148
5076
|
}>;
|
|
5149
|
-
}
|
|
5077
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
5150
5078
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
5151
5079
|
id: string;
|
|
5152
5080
|
position: number;
|
|
@@ -5173,19 +5101,18 @@ export declare const contactContract: {
|
|
|
5173
5101
|
isRequired: boolean;
|
|
5174
5102
|
isUnique: boolean;
|
|
5175
5103
|
}>;
|
|
5176
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
5104
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
5177
5105
|
id: z.ZodString;
|
|
5178
5106
|
createdAt: z.ZodDate;
|
|
5179
5107
|
updatedAt: z.ZodDate;
|
|
5180
5108
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5181
|
-
}, {
|
|
5182
5109
|
bucketName: z.ZodString;
|
|
5183
5110
|
fileName: z.ZodString;
|
|
5184
5111
|
fileSize: z.ZodNumber;
|
|
5185
5112
|
fileKey: z.ZodString;
|
|
5186
5113
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
5187
5114
|
status: z.ZodNullable<z.ZodString>;
|
|
5188
|
-
}
|
|
5115
|
+
}, "strip", z.ZodTypeAny, {
|
|
5189
5116
|
id: string;
|
|
5190
5117
|
status: string | null;
|
|
5191
5118
|
createdAt: Date;
|
|
@@ -5606,7 +5533,7 @@ export declare const contactContract: {
|
|
|
5606
5533
|
};
|
|
5607
5534
|
}[] | undefined;
|
|
5608
5535
|
}>;
|
|
5609
|
-
}
|
|
5536
|
+
}, "strip", z.ZodTypeAny, {
|
|
5610
5537
|
data: {
|
|
5611
5538
|
name: string;
|
|
5612
5539
|
id: string;
|
|
@@ -5887,6 +5814,23 @@ export declare const contactContract: {
|
|
|
5887
5814
|
error?: any;
|
|
5888
5815
|
}>;
|
|
5889
5816
|
};
|
|
5817
|
+
path: "cs/contact/phone";
|
|
5818
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5819
|
+
'x-tenant': z.ZodString;
|
|
5820
|
+
'x-service-token': z.ZodString;
|
|
5821
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
5822
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
5823
|
+
}, "strip", z.ZodTypeAny, {
|
|
5824
|
+
'x-tenant': string;
|
|
5825
|
+
'x-service-token': string;
|
|
5826
|
+
'x-client-timezone': string;
|
|
5827
|
+
'x-code'?: string | undefined;
|
|
5828
|
+
}, {
|
|
5829
|
+
'x-tenant': string;
|
|
5830
|
+
'x-service-token': string;
|
|
5831
|
+
'x-code'?: string | undefined;
|
|
5832
|
+
'x-client-timezone'?: string | undefined;
|
|
5833
|
+
}>>>;
|
|
5890
5834
|
};
|
|
5891
5835
|
createContactPlatform: {
|
|
5892
5836
|
body: z.ZodObject<{
|
|
@@ -5907,27 +5851,9 @@ export declare const contactContract: {
|
|
|
5907
5851
|
}>;
|
|
5908
5852
|
summary: "Create a new contact and platform contact for sms ";
|
|
5909
5853
|
method: "POST";
|
|
5910
|
-
path: "cs/contact/platform-contact";
|
|
5911
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5912
|
-
'x-tenant': z.ZodString;
|
|
5913
|
-
'x-service-token': z.ZodString;
|
|
5914
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
5915
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
5916
|
-
}, "strip", z.ZodTypeAny, {
|
|
5917
|
-
'x-tenant': string;
|
|
5918
|
-
'x-service-token': string;
|
|
5919
|
-
'x-client-timezone': string;
|
|
5920
|
-
'x-code'?: string | undefined;
|
|
5921
|
-
}, {
|
|
5922
|
-
'x-tenant': string;
|
|
5923
|
-
'x-service-token': string;
|
|
5924
|
-
'x-code'?: string | undefined;
|
|
5925
|
-
'x-client-timezone'?: string | undefined;
|
|
5926
|
-
}>>>;
|
|
5927
5854
|
responses: {
|
|
5928
|
-
200: z.ZodObject<
|
|
5855
|
+
200: z.ZodObject<{
|
|
5929
5856
|
requestId: z.ZodString;
|
|
5930
|
-
}, {
|
|
5931
5857
|
data: z.ZodObject<{
|
|
5932
5858
|
id: z.ZodString;
|
|
5933
5859
|
createdAt: z.ZodDate;
|
|
@@ -5939,14 +5865,13 @@ export declare const contactContract: {
|
|
|
5939
5865
|
notes: z.ZodNullable<z.ZodString>;
|
|
5940
5866
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
5941
5867
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
5942
|
-
tags: z.ZodArray<z.ZodObject<
|
|
5868
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
5943
5869
|
id: z.ZodString;
|
|
5944
5870
|
createdAt: z.ZodDate;
|
|
5945
5871
|
updatedAt: z.ZodDate;
|
|
5946
5872
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5947
|
-
}, {
|
|
5948
5873
|
name: z.ZodString;
|
|
5949
|
-
}
|
|
5874
|
+
}, "strip", z.ZodTypeAny, {
|
|
5950
5875
|
name: string;
|
|
5951
5876
|
id: string;
|
|
5952
5877
|
createdAt: Date;
|
|
@@ -5959,32 +5884,29 @@ export declare const contactContract: {
|
|
|
5959
5884
|
updatedAt: Date;
|
|
5960
5885
|
deletedAt: Date | null;
|
|
5961
5886
|
}>, "many">;
|
|
5962
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
5887
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
5963
5888
|
id: z.ZodString;
|
|
5964
5889
|
createdAt: z.ZodDate;
|
|
5965
5890
|
updatedAt: z.ZodDate;
|
|
5966
5891
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5967
|
-
}, {
|
|
5968
5892
|
name: z.ZodOptional<z.ZodString>;
|
|
5969
5893
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5970
5894
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5971
5895
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5972
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
5896
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5973
5897
|
id: z.ZodString;
|
|
5974
5898
|
createdAt: z.ZodDate;
|
|
5975
5899
|
updatedAt: z.ZodDate;
|
|
5976
5900
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5977
|
-
}, {
|
|
5978
5901
|
textValue: z.ZodNullable<z.ZodString>;
|
|
5979
5902
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
5980
5903
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
5981
5904
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
5982
|
-
attribute: z.ZodObject<Omit<
|
|
5905
|
+
attribute: z.ZodObject<Omit<{
|
|
5983
5906
|
id: z.ZodString;
|
|
5984
5907
|
createdAt: z.ZodDate;
|
|
5985
5908
|
updatedAt: z.ZodDate;
|
|
5986
5909
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
5987
|
-
}, {
|
|
5988
5910
|
systemName: z.ZodString;
|
|
5989
5911
|
displayName: z.ZodString;
|
|
5990
5912
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -5993,14 +5915,13 @@ export declare const contactContract: {
|
|
|
5993
5915
|
isArchived: z.ZodBoolean;
|
|
5994
5916
|
isRequired: z.ZodBoolean;
|
|
5995
5917
|
isUnique: z.ZodBoolean;
|
|
5996
|
-
options: z.ZodArray<z.ZodObject<
|
|
5997
|
-
|
|
5918
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5919
|
+
position: z.ZodNumber;
|
|
5998
5920
|
value: z.ZodString;
|
|
5921
|
+
label: z.ZodString;
|
|
5999
5922
|
isDefault: z.ZodBoolean;
|
|
6000
|
-
position: z.ZodNumber;
|
|
6001
|
-
}, {
|
|
6002
5923
|
id: z.ZodString;
|
|
6003
|
-
}
|
|
5924
|
+
}, "strip", z.ZodTypeAny, {
|
|
6004
5925
|
id: string;
|
|
6005
5926
|
position: number;
|
|
6006
5927
|
value: string;
|
|
@@ -6013,15 +5934,14 @@ export declare const contactContract: {
|
|
|
6013
5934
|
label: string;
|
|
6014
5935
|
isDefault: boolean;
|
|
6015
5936
|
}>, "many">;
|
|
6016
|
-
group: z.ZodObject<
|
|
5937
|
+
group: z.ZodObject<{
|
|
6017
5938
|
id: z.ZodString;
|
|
6018
5939
|
createdAt: z.ZodDate;
|
|
6019
5940
|
updatedAt: z.ZodDate;
|
|
6020
5941
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6021
|
-
}, {
|
|
6022
5942
|
systemName: z.ZodString;
|
|
6023
5943
|
displayName: z.ZodString;
|
|
6024
|
-
}
|
|
5944
|
+
}, "strip", z.ZodTypeAny, {
|
|
6025
5945
|
id: string;
|
|
6026
5946
|
createdAt: Date;
|
|
6027
5947
|
updatedAt: Date;
|
|
@@ -6036,7 +5956,7 @@ export declare const contactContract: {
|
|
|
6036
5956
|
systemName: string;
|
|
6037
5957
|
displayName: string;
|
|
6038
5958
|
}>;
|
|
6039
|
-
}
|
|
5959
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
6040
5960
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
6041
5961
|
id: string;
|
|
6042
5962
|
position: number;
|
|
@@ -6063,7 +5983,7 @@ export declare const contactContract: {
|
|
|
6063
5983
|
isRequired: boolean;
|
|
6064
5984
|
isUnique: boolean;
|
|
6065
5985
|
}>;
|
|
6066
|
-
}
|
|
5986
|
+
}, "strip", z.ZodTypeAny, {
|
|
6067
5987
|
id: string;
|
|
6068
5988
|
createdAt: Date;
|
|
6069
5989
|
updatedAt: Date;
|
|
@@ -6110,7 +6030,7 @@ export declare const contactContract: {
|
|
|
6110
6030
|
numberValue: number | null;
|
|
6111
6031
|
dateValue: Date | null;
|
|
6112
6032
|
}>, "many">>;
|
|
6113
|
-
}
|
|
6033
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
6114
6034
|
id: string;
|
|
6115
6035
|
createdAt: Date;
|
|
6116
6036
|
updatedAt: Date;
|
|
@@ -6191,12 +6111,11 @@ export declare const contactContract: {
|
|
|
6191
6111
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
6192
6112
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
6193
6113
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
6194
|
-
attribute: z.ZodObject<Omit<
|
|
6114
|
+
attribute: z.ZodObject<Omit<{
|
|
6195
6115
|
id: z.ZodString;
|
|
6196
6116
|
createdAt: z.ZodDate;
|
|
6197
6117
|
updatedAt: z.ZodDate;
|
|
6198
6118
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6199
|
-
}, {
|
|
6200
6119
|
systemName: z.ZodString;
|
|
6201
6120
|
displayName: z.ZodString;
|
|
6202
6121
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -6205,14 +6124,13 @@ export declare const contactContract: {
|
|
|
6205
6124
|
isArchived: z.ZodBoolean;
|
|
6206
6125
|
isRequired: z.ZodBoolean;
|
|
6207
6126
|
isUnique: z.ZodBoolean;
|
|
6208
|
-
options: z.ZodArray<z.ZodObject<
|
|
6209
|
-
|
|
6127
|
+
options: z.ZodArray<z.ZodObject<{
|
|
6128
|
+
position: z.ZodNumber;
|
|
6210
6129
|
value: z.ZodString;
|
|
6130
|
+
label: z.ZodString;
|
|
6211
6131
|
isDefault: z.ZodBoolean;
|
|
6212
|
-
position: z.ZodNumber;
|
|
6213
|
-
}, {
|
|
6214
6132
|
id: z.ZodString;
|
|
6215
|
-
}
|
|
6133
|
+
}, "strip", z.ZodTypeAny, {
|
|
6216
6134
|
id: string;
|
|
6217
6135
|
position: number;
|
|
6218
6136
|
value: string;
|
|
@@ -6225,15 +6143,14 @@ export declare const contactContract: {
|
|
|
6225
6143
|
label: string;
|
|
6226
6144
|
isDefault: boolean;
|
|
6227
6145
|
}>, "many">;
|
|
6228
|
-
group: z.ZodObject<
|
|
6146
|
+
group: z.ZodObject<{
|
|
6229
6147
|
id: z.ZodString;
|
|
6230
6148
|
createdAt: z.ZodDate;
|
|
6231
6149
|
updatedAt: z.ZodDate;
|
|
6232
6150
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6233
|
-
}, {
|
|
6234
6151
|
systemName: z.ZodString;
|
|
6235
6152
|
displayName: z.ZodString;
|
|
6236
|
-
}
|
|
6153
|
+
}, "strip", z.ZodTypeAny, {
|
|
6237
6154
|
id: string;
|
|
6238
6155
|
createdAt: Date;
|
|
6239
6156
|
updatedAt: Date;
|
|
@@ -6248,7 +6165,7 @@ export declare const contactContract: {
|
|
|
6248
6165
|
systemName: string;
|
|
6249
6166
|
displayName: string;
|
|
6250
6167
|
}>;
|
|
6251
|
-
}
|
|
6168
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
6252
6169
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
6253
6170
|
id: string;
|
|
6254
6171
|
position: number;
|
|
@@ -6275,19 +6192,18 @@ export declare const contactContract: {
|
|
|
6275
6192
|
isRequired: boolean;
|
|
6276
6193
|
isUnique: boolean;
|
|
6277
6194
|
}>;
|
|
6278
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
6195
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
6279
6196
|
id: z.ZodString;
|
|
6280
6197
|
createdAt: z.ZodDate;
|
|
6281
6198
|
updatedAt: z.ZodDate;
|
|
6282
6199
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6283
|
-
}, {
|
|
6284
6200
|
bucketName: z.ZodString;
|
|
6285
6201
|
fileName: z.ZodString;
|
|
6286
6202
|
fileSize: z.ZodNumber;
|
|
6287
6203
|
fileKey: z.ZodString;
|
|
6288
6204
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
6289
6205
|
status: z.ZodNullable<z.ZodString>;
|
|
6290
|
-
}
|
|
6206
|
+
}, "strip", z.ZodTypeAny, {
|
|
6291
6207
|
id: string;
|
|
6292
6208
|
status: string | null;
|
|
6293
6209
|
createdAt: Date;
|
|
@@ -6708,7 +6624,7 @@ export declare const contactContract: {
|
|
|
6708
6624
|
};
|
|
6709
6625
|
}[] | undefined;
|
|
6710
6626
|
}>;
|
|
6711
|
-
}
|
|
6627
|
+
}, "strip", z.ZodTypeAny, {
|
|
6712
6628
|
data: {
|
|
6713
6629
|
name: string;
|
|
6714
6630
|
id: string;
|
|
@@ -6937,9 +6853,8 @@ export declare const contactContract: {
|
|
|
6937
6853
|
};
|
|
6938
6854
|
requestId: string;
|
|
6939
6855
|
}>;
|
|
6940
|
-
201: z.ZodObject<
|
|
6856
|
+
201: z.ZodObject<{
|
|
6941
6857
|
requestId: z.ZodString;
|
|
6942
|
-
}, {
|
|
6943
6858
|
data: z.ZodObject<{
|
|
6944
6859
|
id: z.ZodString;
|
|
6945
6860
|
createdAt: z.ZodDate;
|
|
@@ -6951,14 +6866,13 @@ export declare const contactContract: {
|
|
|
6951
6866
|
notes: z.ZodNullable<z.ZodString>;
|
|
6952
6867
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
6953
6868
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
6954
|
-
tags: z.ZodArray<z.ZodObject<
|
|
6869
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
6955
6870
|
id: z.ZodString;
|
|
6956
6871
|
createdAt: z.ZodDate;
|
|
6957
6872
|
updatedAt: z.ZodDate;
|
|
6958
6873
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6959
|
-
}, {
|
|
6960
6874
|
name: z.ZodString;
|
|
6961
|
-
}
|
|
6875
|
+
}, "strip", z.ZodTypeAny, {
|
|
6962
6876
|
name: string;
|
|
6963
6877
|
id: string;
|
|
6964
6878
|
createdAt: Date;
|
|
@@ -6971,32 +6885,29 @@ export declare const contactContract: {
|
|
|
6971
6885
|
updatedAt: Date;
|
|
6972
6886
|
deletedAt: Date | null;
|
|
6973
6887
|
}>, "many">;
|
|
6974
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
6888
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
6975
6889
|
id: z.ZodString;
|
|
6976
6890
|
createdAt: z.ZodDate;
|
|
6977
6891
|
updatedAt: z.ZodDate;
|
|
6978
6892
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6979
|
-
}, {
|
|
6980
6893
|
name: z.ZodOptional<z.ZodString>;
|
|
6981
6894
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6982
6895
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6983
6896
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6984
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
6897
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6985
6898
|
id: z.ZodString;
|
|
6986
6899
|
createdAt: z.ZodDate;
|
|
6987
6900
|
updatedAt: z.ZodDate;
|
|
6988
6901
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6989
|
-
}, {
|
|
6990
6902
|
textValue: z.ZodNullable<z.ZodString>;
|
|
6991
6903
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
6992
6904
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
6993
6905
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
6994
|
-
attribute: z.ZodObject<Omit<
|
|
6906
|
+
attribute: z.ZodObject<Omit<{
|
|
6995
6907
|
id: z.ZodString;
|
|
6996
6908
|
createdAt: z.ZodDate;
|
|
6997
6909
|
updatedAt: z.ZodDate;
|
|
6998
6910
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6999
|
-
}, {
|
|
7000
6911
|
systemName: z.ZodString;
|
|
7001
6912
|
displayName: z.ZodString;
|
|
7002
6913
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -7005,14 +6916,13 @@ export declare const contactContract: {
|
|
|
7005
6916
|
isArchived: z.ZodBoolean;
|
|
7006
6917
|
isRequired: z.ZodBoolean;
|
|
7007
6918
|
isUnique: z.ZodBoolean;
|
|
7008
|
-
options: z.ZodArray<z.ZodObject<
|
|
7009
|
-
|
|
6919
|
+
options: z.ZodArray<z.ZodObject<{
|
|
6920
|
+
position: z.ZodNumber;
|
|
7010
6921
|
value: z.ZodString;
|
|
6922
|
+
label: z.ZodString;
|
|
7011
6923
|
isDefault: z.ZodBoolean;
|
|
7012
|
-
position: z.ZodNumber;
|
|
7013
|
-
}, {
|
|
7014
6924
|
id: z.ZodString;
|
|
7015
|
-
}
|
|
6925
|
+
}, "strip", z.ZodTypeAny, {
|
|
7016
6926
|
id: string;
|
|
7017
6927
|
position: number;
|
|
7018
6928
|
value: string;
|
|
@@ -7025,15 +6935,14 @@ export declare const contactContract: {
|
|
|
7025
6935
|
label: string;
|
|
7026
6936
|
isDefault: boolean;
|
|
7027
6937
|
}>, "many">;
|
|
7028
|
-
group: z.ZodObject<
|
|
6938
|
+
group: z.ZodObject<{
|
|
7029
6939
|
id: z.ZodString;
|
|
7030
6940
|
createdAt: z.ZodDate;
|
|
7031
6941
|
updatedAt: z.ZodDate;
|
|
7032
6942
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7033
|
-
}, {
|
|
7034
6943
|
systemName: z.ZodString;
|
|
7035
6944
|
displayName: z.ZodString;
|
|
7036
|
-
}
|
|
6945
|
+
}, "strip", z.ZodTypeAny, {
|
|
7037
6946
|
id: string;
|
|
7038
6947
|
createdAt: Date;
|
|
7039
6948
|
updatedAt: Date;
|
|
@@ -7048,7 +6957,7 @@ export declare const contactContract: {
|
|
|
7048
6957
|
systemName: string;
|
|
7049
6958
|
displayName: string;
|
|
7050
6959
|
}>;
|
|
7051
|
-
}
|
|
6960
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
7052
6961
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
7053
6962
|
id: string;
|
|
7054
6963
|
position: number;
|
|
@@ -7075,7 +6984,7 @@ export declare const contactContract: {
|
|
|
7075
6984
|
isRequired: boolean;
|
|
7076
6985
|
isUnique: boolean;
|
|
7077
6986
|
}>;
|
|
7078
|
-
}
|
|
6987
|
+
}, "strip", z.ZodTypeAny, {
|
|
7079
6988
|
id: string;
|
|
7080
6989
|
createdAt: Date;
|
|
7081
6990
|
updatedAt: Date;
|
|
@@ -7122,7 +7031,7 @@ export declare const contactContract: {
|
|
|
7122
7031
|
numberValue: number | null;
|
|
7123
7032
|
dateValue: Date | null;
|
|
7124
7033
|
}>, "many">>;
|
|
7125
|
-
}
|
|
7034
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
7126
7035
|
id: string;
|
|
7127
7036
|
createdAt: Date;
|
|
7128
7037
|
updatedAt: Date;
|
|
@@ -7203,12 +7112,11 @@ export declare const contactContract: {
|
|
|
7203
7112
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
7204
7113
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
7205
7114
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
7206
|
-
attribute: z.ZodObject<Omit<
|
|
7115
|
+
attribute: z.ZodObject<Omit<{
|
|
7207
7116
|
id: z.ZodString;
|
|
7208
7117
|
createdAt: z.ZodDate;
|
|
7209
7118
|
updatedAt: z.ZodDate;
|
|
7210
7119
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7211
|
-
}, {
|
|
7212
7120
|
systemName: z.ZodString;
|
|
7213
7121
|
displayName: z.ZodString;
|
|
7214
7122
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -7217,14 +7125,13 @@ export declare const contactContract: {
|
|
|
7217
7125
|
isArchived: z.ZodBoolean;
|
|
7218
7126
|
isRequired: z.ZodBoolean;
|
|
7219
7127
|
isUnique: z.ZodBoolean;
|
|
7220
|
-
options: z.ZodArray<z.ZodObject<
|
|
7221
|
-
|
|
7128
|
+
options: z.ZodArray<z.ZodObject<{
|
|
7129
|
+
position: z.ZodNumber;
|
|
7222
7130
|
value: z.ZodString;
|
|
7131
|
+
label: z.ZodString;
|
|
7223
7132
|
isDefault: z.ZodBoolean;
|
|
7224
|
-
position: z.ZodNumber;
|
|
7225
|
-
}, {
|
|
7226
7133
|
id: z.ZodString;
|
|
7227
|
-
}
|
|
7134
|
+
}, "strip", z.ZodTypeAny, {
|
|
7228
7135
|
id: string;
|
|
7229
7136
|
position: number;
|
|
7230
7137
|
value: string;
|
|
@@ -7237,15 +7144,14 @@ export declare const contactContract: {
|
|
|
7237
7144
|
label: string;
|
|
7238
7145
|
isDefault: boolean;
|
|
7239
7146
|
}>, "many">;
|
|
7240
|
-
group: z.ZodObject<
|
|
7147
|
+
group: z.ZodObject<{
|
|
7241
7148
|
id: z.ZodString;
|
|
7242
7149
|
createdAt: z.ZodDate;
|
|
7243
7150
|
updatedAt: z.ZodDate;
|
|
7244
7151
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7245
|
-
}, {
|
|
7246
7152
|
systemName: z.ZodString;
|
|
7247
7153
|
displayName: z.ZodString;
|
|
7248
|
-
}
|
|
7154
|
+
}, "strip", z.ZodTypeAny, {
|
|
7249
7155
|
id: string;
|
|
7250
7156
|
createdAt: Date;
|
|
7251
7157
|
updatedAt: Date;
|
|
@@ -7260,7 +7166,7 @@ export declare const contactContract: {
|
|
|
7260
7166
|
systemName: string;
|
|
7261
7167
|
displayName: string;
|
|
7262
7168
|
}>;
|
|
7263
|
-
}
|
|
7169
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
7264
7170
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
7265
7171
|
id: string;
|
|
7266
7172
|
position: number;
|
|
@@ -7287,19 +7193,18 @@ export declare const contactContract: {
|
|
|
7287
7193
|
isRequired: boolean;
|
|
7288
7194
|
isUnique: boolean;
|
|
7289
7195
|
}>;
|
|
7290
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
7196
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
7291
7197
|
id: z.ZodString;
|
|
7292
7198
|
createdAt: z.ZodDate;
|
|
7293
7199
|
updatedAt: z.ZodDate;
|
|
7294
7200
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7295
|
-
}, {
|
|
7296
7201
|
bucketName: z.ZodString;
|
|
7297
7202
|
fileName: z.ZodString;
|
|
7298
7203
|
fileSize: z.ZodNumber;
|
|
7299
7204
|
fileKey: z.ZodString;
|
|
7300
7205
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
7301
7206
|
status: z.ZodNullable<z.ZodString>;
|
|
7302
|
-
}
|
|
7207
|
+
}, "strip", z.ZodTypeAny, {
|
|
7303
7208
|
id: string;
|
|
7304
7209
|
status: string | null;
|
|
7305
7210
|
createdAt: Date;
|
|
@@ -7720,7 +7625,7 @@ export declare const contactContract: {
|
|
|
7720
7625
|
};
|
|
7721
7626
|
}[] | undefined;
|
|
7722
7627
|
}>;
|
|
7723
|
-
}
|
|
7628
|
+
}, "strip", z.ZodTypeAny, {
|
|
7724
7629
|
data: {
|
|
7725
7630
|
name: string;
|
|
7726
7631
|
id: string;
|
|
@@ -8001,21 +7906,7 @@ export declare const contactContract: {
|
|
|
8001
7906
|
error?: any;
|
|
8002
7907
|
}>;
|
|
8003
7908
|
};
|
|
8004
|
-
|
|
8005
|
-
updateFromOngoingCall: {
|
|
8006
|
-
body: z.ZodObject<{
|
|
8007
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8008
|
-
companyId: z.ZodOptional<z.ZodString>;
|
|
8009
|
-
}, "strip", z.ZodTypeAny, {
|
|
8010
|
-
name?: string | undefined;
|
|
8011
|
-
companyId?: string | undefined;
|
|
8012
|
-
}, {
|
|
8013
|
-
name?: string | undefined;
|
|
8014
|
-
companyId?: string | undefined;
|
|
8015
|
-
}>;
|
|
8016
|
-
summary: "Update a contact with name and company while making ongoing call";
|
|
8017
|
-
method: "PATCH";
|
|
8018
|
-
path: "cs/contact/:id/ongoing";
|
|
7909
|
+
path: "cs/contact/platform-contact";
|
|
8019
7910
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8020
7911
|
'x-tenant': z.ZodString;
|
|
8021
7912
|
'x-service-token': z.ZodString;
|
|
@@ -8032,10 +7923,23 @@ export declare const contactContract: {
|
|
|
8032
7923
|
'x-code'?: string | undefined;
|
|
8033
7924
|
'x-client-timezone'?: string | undefined;
|
|
8034
7925
|
}>>>;
|
|
7926
|
+
};
|
|
7927
|
+
updateFromOngoingCall: {
|
|
7928
|
+
body: z.ZodObject<{
|
|
7929
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7930
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
7931
|
+
}, "strip", z.ZodTypeAny, {
|
|
7932
|
+
name?: string | undefined;
|
|
7933
|
+
companyId?: string | undefined;
|
|
7934
|
+
}, {
|
|
7935
|
+
name?: string | undefined;
|
|
7936
|
+
companyId?: string | undefined;
|
|
7937
|
+
}>;
|
|
7938
|
+
summary: "Update a contact with name and company while making ongoing call";
|
|
7939
|
+
method: "PATCH";
|
|
8035
7940
|
responses: {
|
|
8036
|
-
201: z.ZodObject<
|
|
7941
|
+
201: z.ZodObject<{
|
|
8037
7942
|
requestId: z.ZodString;
|
|
8038
|
-
}, {
|
|
8039
7943
|
data: z.ZodObject<{
|
|
8040
7944
|
id: z.ZodString;
|
|
8041
7945
|
createdAt: z.ZodDate;
|
|
@@ -8047,14 +7951,13 @@ export declare const contactContract: {
|
|
|
8047
7951
|
notes: z.ZodNullable<z.ZodString>;
|
|
8048
7952
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
8049
7953
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
8050
|
-
tags: z.ZodArray<z.ZodObject<
|
|
7954
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
8051
7955
|
id: z.ZodString;
|
|
8052
7956
|
createdAt: z.ZodDate;
|
|
8053
7957
|
updatedAt: z.ZodDate;
|
|
8054
7958
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8055
|
-
}, {
|
|
8056
7959
|
name: z.ZodString;
|
|
8057
|
-
}
|
|
7960
|
+
}, "strip", z.ZodTypeAny, {
|
|
8058
7961
|
name: string;
|
|
8059
7962
|
id: string;
|
|
8060
7963
|
createdAt: Date;
|
|
@@ -8067,32 +7970,29 @@ export declare const contactContract: {
|
|
|
8067
7970
|
updatedAt: Date;
|
|
8068
7971
|
deletedAt: Date | null;
|
|
8069
7972
|
}>, "many">;
|
|
8070
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
7973
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
8071
7974
|
id: z.ZodString;
|
|
8072
7975
|
createdAt: z.ZodDate;
|
|
8073
7976
|
updatedAt: z.ZodDate;
|
|
8074
7977
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8075
|
-
}, {
|
|
8076
7978
|
name: z.ZodOptional<z.ZodString>;
|
|
8077
7979
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8078
7980
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8079
7981
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8080
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
7982
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8081
7983
|
id: z.ZodString;
|
|
8082
7984
|
createdAt: z.ZodDate;
|
|
8083
7985
|
updatedAt: z.ZodDate;
|
|
8084
7986
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8085
|
-
}, {
|
|
8086
7987
|
textValue: z.ZodNullable<z.ZodString>;
|
|
8087
7988
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
8088
7989
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
8089
7990
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
8090
|
-
attribute: z.ZodObject<Omit<
|
|
7991
|
+
attribute: z.ZodObject<Omit<{
|
|
8091
7992
|
id: z.ZodString;
|
|
8092
7993
|
createdAt: z.ZodDate;
|
|
8093
7994
|
updatedAt: z.ZodDate;
|
|
8094
7995
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8095
|
-
}, {
|
|
8096
7996
|
systemName: z.ZodString;
|
|
8097
7997
|
displayName: z.ZodString;
|
|
8098
7998
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -8101,14 +8001,13 @@ export declare const contactContract: {
|
|
|
8101
8001
|
isArchived: z.ZodBoolean;
|
|
8102
8002
|
isRequired: z.ZodBoolean;
|
|
8103
8003
|
isUnique: z.ZodBoolean;
|
|
8104
|
-
options: z.ZodArray<z.ZodObject<
|
|
8105
|
-
|
|
8004
|
+
options: z.ZodArray<z.ZodObject<{
|
|
8005
|
+
position: z.ZodNumber;
|
|
8106
8006
|
value: z.ZodString;
|
|
8007
|
+
label: z.ZodString;
|
|
8107
8008
|
isDefault: z.ZodBoolean;
|
|
8108
|
-
position: z.ZodNumber;
|
|
8109
|
-
}, {
|
|
8110
8009
|
id: z.ZodString;
|
|
8111
|
-
}
|
|
8010
|
+
}, "strip", z.ZodTypeAny, {
|
|
8112
8011
|
id: string;
|
|
8113
8012
|
position: number;
|
|
8114
8013
|
value: string;
|
|
@@ -8121,15 +8020,14 @@ export declare const contactContract: {
|
|
|
8121
8020
|
label: string;
|
|
8122
8021
|
isDefault: boolean;
|
|
8123
8022
|
}>, "many">;
|
|
8124
|
-
group: z.ZodObject<
|
|
8023
|
+
group: z.ZodObject<{
|
|
8125
8024
|
id: z.ZodString;
|
|
8126
8025
|
createdAt: z.ZodDate;
|
|
8127
8026
|
updatedAt: z.ZodDate;
|
|
8128
8027
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8129
|
-
}, {
|
|
8130
8028
|
systemName: z.ZodString;
|
|
8131
8029
|
displayName: z.ZodString;
|
|
8132
|
-
}
|
|
8030
|
+
}, "strip", z.ZodTypeAny, {
|
|
8133
8031
|
id: string;
|
|
8134
8032
|
createdAt: Date;
|
|
8135
8033
|
updatedAt: Date;
|
|
@@ -8144,7 +8042,7 @@ export declare const contactContract: {
|
|
|
8144
8042
|
systemName: string;
|
|
8145
8043
|
displayName: string;
|
|
8146
8044
|
}>;
|
|
8147
|
-
}
|
|
8045
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
8148
8046
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
8149
8047
|
id: string;
|
|
8150
8048
|
position: number;
|
|
@@ -8171,7 +8069,7 @@ export declare const contactContract: {
|
|
|
8171
8069
|
isRequired: boolean;
|
|
8172
8070
|
isUnique: boolean;
|
|
8173
8071
|
}>;
|
|
8174
|
-
}
|
|
8072
|
+
}, "strip", z.ZodTypeAny, {
|
|
8175
8073
|
id: string;
|
|
8176
8074
|
createdAt: Date;
|
|
8177
8075
|
updatedAt: Date;
|
|
@@ -8218,7 +8116,7 @@ export declare const contactContract: {
|
|
|
8218
8116
|
numberValue: number | null;
|
|
8219
8117
|
dateValue: Date | null;
|
|
8220
8118
|
}>, "many">>;
|
|
8221
|
-
}
|
|
8119
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
8222
8120
|
id: string;
|
|
8223
8121
|
createdAt: Date;
|
|
8224
8122
|
updatedAt: Date;
|
|
@@ -8299,12 +8197,11 @@ export declare const contactContract: {
|
|
|
8299
8197
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
8300
8198
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
8301
8199
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
8302
|
-
attribute: z.ZodObject<Omit<
|
|
8200
|
+
attribute: z.ZodObject<Omit<{
|
|
8303
8201
|
id: z.ZodString;
|
|
8304
8202
|
createdAt: z.ZodDate;
|
|
8305
8203
|
updatedAt: z.ZodDate;
|
|
8306
8204
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8307
|
-
}, {
|
|
8308
8205
|
systemName: z.ZodString;
|
|
8309
8206
|
displayName: z.ZodString;
|
|
8310
8207
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -8313,14 +8210,13 @@ export declare const contactContract: {
|
|
|
8313
8210
|
isArchived: z.ZodBoolean;
|
|
8314
8211
|
isRequired: z.ZodBoolean;
|
|
8315
8212
|
isUnique: z.ZodBoolean;
|
|
8316
|
-
options: z.ZodArray<z.ZodObject<
|
|
8317
|
-
|
|
8213
|
+
options: z.ZodArray<z.ZodObject<{
|
|
8214
|
+
position: z.ZodNumber;
|
|
8318
8215
|
value: z.ZodString;
|
|
8216
|
+
label: z.ZodString;
|
|
8319
8217
|
isDefault: z.ZodBoolean;
|
|
8320
|
-
position: z.ZodNumber;
|
|
8321
|
-
}, {
|
|
8322
8218
|
id: z.ZodString;
|
|
8323
|
-
}
|
|
8219
|
+
}, "strip", z.ZodTypeAny, {
|
|
8324
8220
|
id: string;
|
|
8325
8221
|
position: number;
|
|
8326
8222
|
value: string;
|
|
@@ -8333,15 +8229,14 @@ export declare const contactContract: {
|
|
|
8333
8229
|
label: string;
|
|
8334
8230
|
isDefault: boolean;
|
|
8335
8231
|
}>, "many">;
|
|
8336
|
-
group: z.ZodObject<
|
|
8232
|
+
group: z.ZodObject<{
|
|
8337
8233
|
id: z.ZodString;
|
|
8338
8234
|
createdAt: z.ZodDate;
|
|
8339
8235
|
updatedAt: z.ZodDate;
|
|
8340
8236
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8341
|
-
}, {
|
|
8342
8237
|
systemName: z.ZodString;
|
|
8343
8238
|
displayName: z.ZodString;
|
|
8344
|
-
}
|
|
8239
|
+
}, "strip", z.ZodTypeAny, {
|
|
8345
8240
|
id: string;
|
|
8346
8241
|
createdAt: Date;
|
|
8347
8242
|
updatedAt: Date;
|
|
@@ -8356,7 +8251,7 @@ export declare const contactContract: {
|
|
|
8356
8251
|
systemName: string;
|
|
8357
8252
|
displayName: string;
|
|
8358
8253
|
}>;
|
|
8359
|
-
}
|
|
8254
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
8360
8255
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
8361
8256
|
id: string;
|
|
8362
8257
|
position: number;
|
|
@@ -8383,19 +8278,18 @@ export declare const contactContract: {
|
|
|
8383
8278
|
isRequired: boolean;
|
|
8384
8279
|
isUnique: boolean;
|
|
8385
8280
|
}>;
|
|
8386
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
8281
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
8387
8282
|
id: z.ZodString;
|
|
8388
8283
|
createdAt: z.ZodDate;
|
|
8389
8284
|
updatedAt: z.ZodDate;
|
|
8390
8285
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8391
|
-
}, {
|
|
8392
8286
|
bucketName: z.ZodString;
|
|
8393
8287
|
fileName: z.ZodString;
|
|
8394
8288
|
fileSize: z.ZodNumber;
|
|
8395
8289
|
fileKey: z.ZodString;
|
|
8396
8290
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
8397
8291
|
status: z.ZodNullable<z.ZodString>;
|
|
8398
|
-
}
|
|
8292
|
+
}, "strip", z.ZodTypeAny, {
|
|
8399
8293
|
id: string;
|
|
8400
8294
|
status: string | null;
|
|
8401
8295
|
createdAt: Date;
|
|
@@ -8816,7 +8710,7 @@ export declare const contactContract: {
|
|
|
8816
8710
|
};
|
|
8817
8711
|
}[] | undefined;
|
|
8818
8712
|
}>;
|
|
8819
|
-
}
|
|
8713
|
+
}, "strip", z.ZodTypeAny, {
|
|
8820
8714
|
data: {
|
|
8821
8715
|
name: string;
|
|
8822
8716
|
id: string;
|
|
@@ -9097,6 +8991,23 @@ export declare const contactContract: {
|
|
|
9097
8991
|
error?: any;
|
|
9098
8992
|
}>;
|
|
9099
8993
|
};
|
|
8994
|
+
path: "cs/contact/:id/ongoing";
|
|
8995
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8996
|
+
'x-tenant': z.ZodString;
|
|
8997
|
+
'x-service-token': z.ZodString;
|
|
8998
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
8999
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
9000
|
+
}, "strip", z.ZodTypeAny, {
|
|
9001
|
+
'x-tenant': string;
|
|
9002
|
+
'x-service-token': string;
|
|
9003
|
+
'x-client-timezone': string;
|
|
9004
|
+
'x-code'?: string | undefined;
|
|
9005
|
+
}, {
|
|
9006
|
+
'x-tenant': string;
|
|
9007
|
+
'x-service-token': string;
|
|
9008
|
+
'x-code'?: string | undefined;
|
|
9009
|
+
'x-client-timezone'?: string | undefined;
|
|
9010
|
+
}>>>;
|
|
9100
9011
|
};
|
|
9101
9012
|
merge: {
|
|
9102
9013
|
body: z.ZodObject<{
|
|
@@ -9173,27 +9084,9 @@ export declare const contactContract: {
|
|
|
9173
9084
|
}>;
|
|
9174
9085
|
summary: "Merge contacts into a single contact.";
|
|
9175
9086
|
method: "POST";
|
|
9176
|
-
path: "cs/contact/merge";
|
|
9177
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9178
|
-
'x-tenant': z.ZodString;
|
|
9179
|
-
'x-service-token': z.ZodString;
|
|
9180
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
9181
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
9182
|
-
}, "strip", z.ZodTypeAny, {
|
|
9183
|
-
'x-tenant': string;
|
|
9184
|
-
'x-service-token': string;
|
|
9185
|
-
'x-client-timezone': string;
|
|
9186
|
-
'x-code'?: string | undefined;
|
|
9187
|
-
}, {
|
|
9188
|
-
'x-tenant': string;
|
|
9189
|
-
'x-service-token': string;
|
|
9190
|
-
'x-code'?: string | undefined;
|
|
9191
|
-
'x-client-timezone'?: string | undefined;
|
|
9192
|
-
}>>>;
|
|
9193
9087
|
responses: {
|
|
9194
|
-
200: z.ZodObject<
|
|
9088
|
+
200: z.ZodObject<{
|
|
9195
9089
|
requestId: z.ZodString;
|
|
9196
|
-
}, {
|
|
9197
9090
|
data: z.ZodObject<{
|
|
9198
9091
|
id: z.ZodString;
|
|
9199
9092
|
createdAt: z.ZodDate;
|
|
@@ -9205,14 +9098,13 @@ export declare const contactContract: {
|
|
|
9205
9098
|
notes: z.ZodNullable<z.ZodString>;
|
|
9206
9099
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
9207
9100
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
9208
|
-
tags: z.ZodArray<z.ZodObject<
|
|
9101
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
9209
9102
|
id: z.ZodString;
|
|
9210
9103
|
createdAt: z.ZodDate;
|
|
9211
9104
|
updatedAt: z.ZodDate;
|
|
9212
9105
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9213
|
-
}, {
|
|
9214
9106
|
name: z.ZodString;
|
|
9215
|
-
}
|
|
9107
|
+
}, "strip", z.ZodTypeAny, {
|
|
9216
9108
|
name: string;
|
|
9217
9109
|
id: string;
|
|
9218
9110
|
createdAt: Date;
|
|
@@ -9225,32 +9117,29 @@ export declare const contactContract: {
|
|
|
9225
9117
|
updatedAt: Date;
|
|
9226
9118
|
deletedAt: Date | null;
|
|
9227
9119
|
}>, "many">;
|
|
9228
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
9120
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
9229
9121
|
id: z.ZodString;
|
|
9230
9122
|
createdAt: z.ZodDate;
|
|
9231
9123
|
updatedAt: z.ZodDate;
|
|
9232
9124
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9233
|
-
}, {
|
|
9234
9125
|
name: z.ZodOptional<z.ZodString>;
|
|
9235
9126
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9236
9127
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9237
9128
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9238
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
9129
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9239
9130
|
id: z.ZodString;
|
|
9240
9131
|
createdAt: z.ZodDate;
|
|
9241
9132
|
updatedAt: z.ZodDate;
|
|
9242
9133
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9243
|
-
}, {
|
|
9244
9134
|
textValue: z.ZodNullable<z.ZodString>;
|
|
9245
9135
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
9246
9136
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
9247
9137
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
9248
|
-
attribute: z.ZodObject<Omit<
|
|
9138
|
+
attribute: z.ZodObject<Omit<{
|
|
9249
9139
|
id: z.ZodString;
|
|
9250
9140
|
createdAt: z.ZodDate;
|
|
9251
9141
|
updatedAt: z.ZodDate;
|
|
9252
9142
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9253
|
-
}, {
|
|
9254
9143
|
systemName: z.ZodString;
|
|
9255
9144
|
displayName: z.ZodString;
|
|
9256
9145
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -9259,14 +9148,13 @@ export declare const contactContract: {
|
|
|
9259
9148
|
isArchived: z.ZodBoolean;
|
|
9260
9149
|
isRequired: z.ZodBoolean;
|
|
9261
9150
|
isUnique: z.ZodBoolean;
|
|
9262
|
-
options: z.ZodArray<z.ZodObject<
|
|
9263
|
-
|
|
9151
|
+
options: z.ZodArray<z.ZodObject<{
|
|
9152
|
+
position: z.ZodNumber;
|
|
9264
9153
|
value: z.ZodString;
|
|
9154
|
+
label: z.ZodString;
|
|
9265
9155
|
isDefault: z.ZodBoolean;
|
|
9266
|
-
position: z.ZodNumber;
|
|
9267
|
-
}, {
|
|
9268
9156
|
id: z.ZodString;
|
|
9269
|
-
}
|
|
9157
|
+
}, "strip", z.ZodTypeAny, {
|
|
9270
9158
|
id: string;
|
|
9271
9159
|
position: number;
|
|
9272
9160
|
value: string;
|
|
@@ -9279,15 +9167,14 @@ export declare const contactContract: {
|
|
|
9279
9167
|
label: string;
|
|
9280
9168
|
isDefault: boolean;
|
|
9281
9169
|
}>, "many">;
|
|
9282
|
-
group: z.ZodObject<
|
|
9170
|
+
group: z.ZodObject<{
|
|
9283
9171
|
id: z.ZodString;
|
|
9284
9172
|
createdAt: z.ZodDate;
|
|
9285
9173
|
updatedAt: z.ZodDate;
|
|
9286
9174
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9287
|
-
}, {
|
|
9288
9175
|
systemName: z.ZodString;
|
|
9289
9176
|
displayName: z.ZodString;
|
|
9290
|
-
}
|
|
9177
|
+
}, "strip", z.ZodTypeAny, {
|
|
9291
9178
|
id: string;
|
|
9292
9179
|
createdAt: Date;
|
|
9293
9180
|
updatedAt: Date;
|
|
@@ -9302,7 +9189,7 @@ export declare const contactContract: {
|
|
|
9302
9189
|
systemName: string;
|
|
9303
9190
|
displayName: string;
|
|
9304
9191
|
}>;
|
|
9305
|
-
}
|
|
9192
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
9306
9193
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
9307
9194
|
id: string;
|
|
9308
9195
|
position: number;
|
|
@@ -9329,7 +9216,7 @@ export declare const contactContract: {
|
|
|
9329
9216
|
isRequired: boolean;
|
|
9330
9217
|
isUnique: boolean;
|
|
9331
9218
|
}>;
|
|
9332
|
-
}
|
|
9219
|
+
}, "strip", z.ZodTypeAny, {
|
|
9333
9220
|
id: string;
|
|
9334
9221
|
createdAt: Date;
|
|
9335
9222
|
updatedAt: Date;
|
|
@@ -9376,7 +9263,7 @@ export declare const contactContract: {
|
|
|
9376
9263
|
numberValue: number | null;
|
|
9377
9264
|
dateValue: Date | null;
|
|
9378
9265
|
}>, "many">>;
|
|
9379
|
-
}
|
|
9266
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
9380
9267
|
id: string;
|
|
9381
9268
|
createdAt: Date;
|
|
9382
9269
|
updatedAt: Date;
|
|
@@ -9457,12 +9344,11 @@ export declare const contactContract: {
|
|
|
9457
9344
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
9458
9345
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
9459
9346
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
9460
|
-
attribute: z.ZodObject<Omit<
|
|
9347
|
+
attribute: z.ZodObject<Omit<{
|
|
9461
9348
|
id: z.ZodString;
|
|
9462
9349
|
createdAt: z.ZodDate;
|
|
9463
9350
|
updatedAt: z.ZodDate;
|
|
9464
9351
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9465
|
-
}, {
|
|
9466
9352
|
systemName: z.ZodString;
|
|
9467
9353
|
displayName: z.ZodString;
|
|
9468
9354
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -9471,14 +9357,13 @@ export declare const contactContract: {
|
|
|
9471
9357
|
isArchived: z.ZodBoolean;
|
|
9472
9358
|
isRequired: z.ZodBoolean;
|
|
9473
9359
|
isUnique: z.ZodBoolean;
|
|
9474
|
-
options: z.ZodArray<z.ZodObject<
|
|
9475
|
-
|
|
9360
|
+
options: z.ZodArray<z.ZodObject<{
|
|
9361
|
+
position: z.ZodNumber;
|
|
9476
9362
|
value: z.ZodString;
|
|
9363
|
+
label: z.ZodString;
|
|
9477
9364
|
isDefault: z.ZodBoolean;
|
|
9478
|
-
position: z.ZodNumber;
|
|
9479
|
-
}, {
|
|
9480
9365
|
id: z.ZodString;
|
|
9481
|
-
}
|
|
9366
|
+
}, "strip", z.ZodTypeAny, {
|
|
9482
9367
|
id: string;
|
|
9483
9368
|
position: number;
|
|
9484
9369
|
value: string;
|
|
@@ -9491,15 +9376,14 @@ export declare const contactContract: {
|
|
|
9491
9376
|
label: string;
|
|
9492
9377
|
isDefault: boolean;
|
|
9493
9378
|
}>, "many">;
|
|
9494
|
-
group: z.ZodObject<
|
|
9379
|
+
group: z.ZodObject<{
|
|
9495
9380
|
id: z.ZodString;
|
|
9496
9381
|
createdAt: z.ZodDate;
|
|
9497
9382
|
updatedAt: z.ZodDate;
|
|
9498
9383
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9499
|
-
}, {
|
|
9500
9384
|
systemName: z.ZodString;
|
|
9501
9385
|
displayName: z.ZodString;
|
|
9502
|
-
}
|
|
9386
|
+
}, "strip", z.ZodTypeAny, {
|
|
9503
9387
|
id: string;
|
|
9504
9388
|
createdAt: Date;
|
|
9505
9389
|
updatedAt: Date;
|
|
@@ -9514,7 +9398,7 @@ export declare const contactContract: {
|
|
|
9514
9398
|
systemName: string;
|
|
9515
9399
|
displayName: string;
|
|
9516
9400
|
}>;
|
|
9517
|
-
}
|
|
9401
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
9518
9402
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
9519
9403
|
id: string;
|
|
9520
9404
|
position: number;
|
|
@@ -9541,19 +9425,18 @@ export declare const contactContract: {
|
|
|
9541
9425
|
isRequired: boolean;
|
|
9542
9426
|
isUnique: boolean;
|
|
9543
9427
|
}>;
|
|
9544
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
9428
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
9545
9429
|
id: z.ZodString;
|
|
9546
9430
|
createdAt: z.ZodDate;
|
|
9547
9431
|
updatedAt: z.ZodDate;
|
|
9548
9432
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
9549
|
-
}, {
|
|
9550
9433
|
bucketName: z.ZodString;
|
|
9551
9434
|
fileName: z.ZodString;
|
|
9552
9435
|
fileSize: z.ZodNumber;
|
|
9553
9436
|
fileKey: z.ZodString;
|
|
9554
9437
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
9555
9438
|
status: z.ZodNullable<z.ZodString>;
|
|
9556
|
-
}
|
|
9439
|
+
}, "strip", z.ZodTypeAny, {
|
|
9557
9440
|
id: string;
|
|
9558
9441
|
status: string | null;
|
|
9559
9442
|
createdAt: Date;
|
|
@@ -9974,7 +9857,7 @@ export declare const contactContract: {
|
|
|
9974
9857
|
};
|
|
9975
9858
|
}[] | undefined;
|
|
9976
9859
|
}>;
|
|
9977
|
-
}
|
|
9860
|
+
}, "strip", z.ZodTypeAny, {
|
|
9978
9861
|
data: {
|
|
9979
9862
|
name: string;
|
|
9980
9863
|
id: string;
|
|
@@ -10255,21 +10138,7 @@ export declare const contactContract: {
|
|
|
10255
10138
|
error?: any;
|
|
10256
10139
|
}>;
|
|
10257
10140
|
};
|
|
10258
|
-
|
|
10259
|
-
checkContactPhone: {
|
|
10260
|
-
body: z.ZodObject<{
|
|
10261
|
-
contactId: z.ZodOptional<z.ZodString>;
|
|
10262
|
-
phoneNumber: z.ZodString;
|
|
10263
|
-
}, "strip", z.ZodTypeAny, {
|
|
10264
|
-
phoneNumber: string;
|
|
10265
|
-
contactId?: string | undefined;
|
|
10266
|
-
}, {
|
|
10267
|
-
phoneNumber: string;
|
|
10268
|
-
contactId?: string | undefined;
|
|
10269
|
-
}>;
|
|
10270
|
-
summary: "Check whether a contact owns a phone number";
|
|
10271
|
-
method: "POST";
|
|
10272
|
-
path: "cs/contact/check/phone";
|
|
10141
|
+
path: "cs/contact/merge";
|
|
10273
10142
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
10274
10143
|
'x-tenant': z.ZodString;
|
|
10275
10144
|
'x-service-token': z.ZodString;
|
|
@@ -10286,12 +10155,25 @@ export declare const contactContract: {
|
|
|
10286
10155
|
'x-code'?: string | undefined;
|
|
10287
10156
|
'x-client-timezone'?: string | undefined;
|
|
10288
10157
|
}>>>;
|
|
10158
|
+
};
|
|
10159
|
+
checkContactPhone: {
|
|
10160
|
+
body: z.ZodObject<{
|
|
10161
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
10162
|
+
phoneNumber: z.ZodString;
|
|
10163
|
+
}, "strip", z.ZodTypeAny, {
|
|
10164
|
+
phoneNumber: string;
|
|
10165
|
+
contactId?: string | undefined;
|
|
10166
|
+
}, {
|
|
10167
|
+
phoneNumber: string;
|
|
10168
|
+
contactId?: string | undefined;
|
|
10169
|
+
}>;
|
|
10170
|
+
summary: "Check whether a contact owns a phone number";
|
|
10171
|
+
method: "POST";
|
|
10289
10172
|
responses: {
|
|
10290
|
-
200: z.ZodObject<
|
|
10173
|
+
200: z.ZodObject<{
|
|
10291
10174
|
requestId: z.ZodString;
|
|
10292
|
-
}, {
|
|
10293
10175
|
existed: z.ZodBoolean;
|
|
10294
|
-
}
|
|
10176
|
+
}, "strip", z.ZodTypeAny, {
|
|
10295
10177
|
requestId: string;
|
|
10296
10178
|
existed: boolean;
|
|
10297
10179
|
}, {
|
|
@@ -10350,21 +10232,7 @@ export declare const contactContract: {
|
|
|
10350
10232
|
error?: any;
|
|
10351
10233
|
}>;
|
|
10352
10234
|
};
|
|
10353
|
-
|
|
10354
|
-
checkContactEmail: {
|
|
10355
|
-
body: z.ZodObject<{
|
|
10356
|
-
contactId: z.ZodOptional<z.ZodString>;
|
|
10357
|
-
email: z.ZodString;
|
|
10358
|
-
}, "strip", z.ZodTypeAny, {
|
|
10359
|
-
email: string;
|
|
10360
|
-
contactId?: string | undefined;
|
|
10361
|
-
}, {
|
|
10362
|
-
email: string;
|
|
10363
|
-
contactId?: string | undefined;
|
|
10364
|
-
}>;
|
|
10365
|
-
summary: "Check whether a contact owns a email";
|
|
10366
|
-
method: "POST";
|
|
10367
|
-
path: "cs/contact/check/email";
|
|
10235
|
+
path: "cs/contact/check/phone";
|
|
10368
10236
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
10369
10237
|
'x-tenant': z.ZodString;
|
|
10370
10238
|
'x-service-token': z.ZodString;
|
|
@@ -10381,12 +10249,25 @@ export declare const contactContract: {
|
|
|
10381
10249
|
'x-code'?: string | undefined;
|
|
10382
10250
|
'x-client-timezone'?: string | undefined;
|
|
10383
10251
|
}>>>;
|
|
10252
|
+
};
|
|
10253
|
+
checkContactEmail: {
|
|
10254
|
+
body: z.ZodObject<{
|
|
10255
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
10256
|
+
email: z.ZodString;
|
|
10257
|
+
}, "strip", z.ZodTypeAny, {
|
|
10258
|
+
email: string;
|
|
10259
|
+
contactId?: string | undefined;
|
|
10260
|
+
}, {
|
|
10261
|
+
email: string;
|
|
10262
|
+
contactId?: string | undefined;
|
|
10263
|
+
}>;
|
|
10264
|
+
summary: "Check whether a contact owns a email";
|
|
10265
|
+
method: "POST";
|
|
10384
10266
|
responses: {
|
|
10385
|
-
200: z.ZodObject<
|
|
10267
|
+
200: z.ZodObject<{
|
|
10386
10268
|
requestId: z.ZodString;
|
|
10387
|
-
}, {
|
|
10388
10269
|
existed: z.ZodBoolean;
|
|
10389
|
-
}
|
|
10270
|
+
}, "strip", z.ZodTypeAny, {
|
|
10390
10271
|
requestId: string;
|
|
10391
10272
|
existed: boolean;
|
|
10392
10273
|
}, {
|
|
@@ -10445,6 +10326,23 @@ export declare const contactContract: {
|
|
|
10445
10326
|
error?: any;
|
|
10446
10327
|
}>;
|
|
10447
10328
|
};
|
|
10329
|
+
path: "cs/contact/check/email";
|
|
10330
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
10331
|
+
'x-tenant': z.ZodString;
|
|
10332
|
+
'x-service-token': z.ZodString;
|
|
10333
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
10334
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
10335
|
+
}, "strip", z.ZodTypeAny, {
|
|
10336
|
+
'x-tenant': string;
|
|
10337
|
+
'x-service-token': string;
|
|
10338
|
+
'x-client-timezone': string;
|
|
10339
|
+
'x-code'?: string | undefined;
|
|
10340
|
+
}, {
|
|
10341
|
+
'x-tenant': string;
|
|
10342
|
+
'x-service-token': string;
|
|
10343
|
+
'x-code'?: string | undefined;
|
|
10344
|
+
'x-client-timezone'?: string | undefined;
|
|
10345
|
+
}>>>;
|
|
10448
10346
|
};
|
|
10449
10347
|
createContactAttachmentRecords: {
|
|
10450
10348
|
body: z.ZodObject<{
|
|
@@ -10492,27 +10390,9 @@ export declare const contactContract: {
|
|
|
10492
10390
|
}>;
|
|
10493
10391
|
summary: "Create a new contact attachment";
|
|
10494
10392
|
method: "POST";
|
|
10495
|
-
path: "cs/contact/attachments";
|
|
10496
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
10497
|
-
'x-tenant': z.ZodString;
|
|
10498
|
-
'x-service-token': z.ZodString;
|
|
10499
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
10500
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
10501
|
-
}, "strip", z.ZodTypeAny, {
|
|
10502
|
-
'x-tenant': string;
|
|
10503
|
-
'x-service-token': string;
|
|
10504
|
-
'x-client-timezone': string;
|
|
10505
|
-
'x-code'?: string | undefined;
|
|
10506
|
-
}, {
|
|
10507
|
-
'x-tenant': string;
|
|
10508
|
-
'x-service-token': string;
|
|
10509
|
-
'x-code'?: string | undefined;
|
|
10510
|
-
'x-client-timezone'?: string | undefined;
|
|
10511
|
-
}>>>;
|
|
10512
10393
|
responses: {
|
|
10513
|
-
201: z.ZodObject<
|
|
10394
|
+
201: z.ZodObject<{
|
|
10514
10395
|
requestId: z.ZodString;
|
|
10515
|
-
}, {
|
|
10516
10396
|
message: z.ZodObject<{
|
|
10517
10397
|
id: z.ZodString;
|
|
10518
10398
|
createdAt: z.ZodDate;
|
|
@@ -10522,12 +10402,11 @@ export declare const contactContract: {
|
|
|
10522
10402
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
10523
10403
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
10524
10404
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
10525
|
-
attribute: z.ZodObject<Omit<
|
|
10405
|
+
attribute: z.ZodObject<Omit<{
|
|
10526
10406
|
id: z.ZodString;
|
|
10527
10407
|
createdAt: z.ZodDate;
|
|
10528
10408
|
updatedAt: z.ZodDate;
|
|
10529
10409
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10530
|
-
}, {
|
|
10531
10410
|
systemName: z.ZodString;
|
|
10532
10411
|
displayName: z.ZodString;
|
|
10533
10412
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -10536,14 +10415,13 @@ export declare const contactContract: {
|
|
|
10536
10415
|
isArchived: z.ZodBoolean;
|
|
10537
10416
|
isRequired: z.ZodBoolean;
|
|
10538
10417
|
isUnique: z.ZodBoolean;
|
|
10539
|
-
options: z.ZodArray<z.ZodObject<
|
|
10540
|
-
|
|
10418
|
+
options: z.ZodArray<z.ZodObject<{
|
|
10419
|
+
position: z.ZodNumber;
|
|
10541
10420
|
value: z.ZodString;
|
|
10421
|
+
label: z.ZodString;
|
|
10542
10422
|
isDefault: z.ZodBoolean;
|
|
10543
|
-
position: z.ZodNumber;
|
|
10544
|
-
}, {
|
|
10545
10423
|
id: z.ZodString;
|
|
10546
|
-
}
|
|
10424
|
+
}, "strip", z.ZodTypeAny, {
|
|
10547
10425
|
id: string;
|
|
10548
10426
|
position: number;
|
|
10549
10427
|
value: string;
|
|
@@ -10556,15 +10434,14 @@ export declare const contactContract: {
|
|
|
10556
10434
|
label: string;
|
|
10557
10435
|
isDefault: boolean;
|
|
10558
10436
|
}>, "many">;
|
|
10559
|
-
group: z.ZodObject<
|
|
10437
|
+
group: z.ZodObject<{
|
|
10560
10438
|
id: z.ZodString;
|
|
10561
10439
|
createdAt: z.ZodDate;
|
|
10562
10440
|
updatedAt: z.ZodDate;
|
|
10563
10441
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10564
|
-
}, {
|
|
10565
10442
|
systemName: z.ZodString;
|
|
10566
10443
|
displayName: z.ZodString;
|
|
10567
|
-
}
|
|
10444
|
+
}, "strip", z.ZodTypeAny, {
|
|
10568
10445
|
id: string;
|
|
10569
10446
|
createdAt: Date;
|
|
10570
10447
|
updatedAt: Date;
|
|
@@ -10579,7 +10456,7 @@ export declare const contactContract: {
|
|
|
10579
10456
|
systemName: string;
|
|
10580
10457
|
displayName: string;
|
|
10581
10458
|
}>;
|
|
10582
|
-
}
|
|
10459
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
10583
10460
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
10584
10461
|
id: string;
|
|
10585
10462
|
position: number;
|
|
@@ -10606,19 +10483,18 @@ export declare const contactContract: {
|
|
|
10606
10483
|
isRequired: boolean;
|
|
10607
10484
|
isUnique: boolean;
|
|
10608
10485
|
}>;
|
|
10609
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
10486
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
10610
10487
|
id: z.ZodString;
|
|
10611
10488
|
createdAt: z.ZodDate;
|
|
10612
10489
|
updatedAt: z.ZodDate;
|
|
10613
10490
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10614
|
-
}, {
|
|
10615
10491
|
bucketName: z.ZodString;
|
|
10616
10492
|
fileName: z.ZodString;
|
|
10617
10493
|
fileSize: z.ZodNumber;
|
|
10618
10494
|
fileKey: z.ZodString;
|
|
10619
10495
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
10620
10496
|
status: z.ZodNullable<z.ZodString>;
|
|
10621
|
-
}
|
|
10497
|
+
}, "strip", z.ZodTypeAny, {
|
|
10622
10498
|
id: string;
|
|
10623
10499
|
status: string | null;
|
|
10624
10500
|
createdAt: Date;
|
|
@@ -10712,7 +10588,7 @@ export declare const contactContract: {
|
|
|
10712
10588
|
fileUrl: string | null;
|
|
10713
10589
|
}[];
|
|
10714
10590
|
}>;
|
|
10715
|
-
}
|
|
10591
|
+
}, "strip", z.ZodTypeAny, {
|
|
10716
10592
|
message: {
|
|
10717
10593
|
id: string;
|
|
10718
10594
|
createdAt: Date;
|
|
@@ -10841,18 +10717,7 @@ export declare const contactContract: {
|
|
|
10841
10717
|
error?: any;
|
|
10842
10718
|
}>;
|
|
10843
10719
|
};
|
|
10844
|
-
|
|
10845
|
-
getById: {
|
|
10846
|
-
summary: "Get a contact by id";
|
|
10847
|
-
method: "GET";
|
|
10848
|
-
pathParams: z.ZodObject<{
|
|
10849
|
-
id: z.ZodString;
|
|
10850
|
-
}, "strip", z.ZodTypeAny, {
|
|
10851
|
-
id: string;
|
|
10852
|
-
}, {
|
|
10853
|
-
id: string;
|
|
10854
|
-
}>;
|
|
10855
|
-
path: "cs/contact/:id";
|
|
10720
|
+
path: "cs/contact/attachments";
|
|
10856
10721
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
10857
10722
|
'x-tenant': z.ZodString;
|
|
10858
10723
|
'x-service-token': z.ZodString;
|
|
@@ -10869,10 +10734,20 @@ export declare const contactContract: {
|
|
|
10869
10734
|
'x-code'?: string | undefined;
|
|
10870
10735
|
'x-client-timezone'?: string | undefined;
|
|
10871
10736
|
}>>>;
|
|
10737
|
+
};
|
|
10738
|
+
getById: {
|
|
10739
|
+
summary: "Get a contact by id";
|
|
10740
|
+
method: "GET";
|
|
10741
|
+
pathParams: z.ZodObject<{
|
|
10742
|
+
id: z.ZodString;
|
|
10743
|
+
}, "strip", z.ZodTypeAny, {
|
|
10744
|
+
id: string;
|
|
10745
|
+
}, {
|
|
10746
|
+
id: string;
|
|
10747
|
+
}>;
|
|
10872
10748
|
responses: {
|
|
10873
|
-
200: z.ZodObject<
|
|
10749
|
+
200: z.ZodObject<{
|
|
10874
10750
|
requestId: z.ZodString;
|
|
10875
|
-
}, {
|
|
10876
10751
|
data: z.ZodObject<{
|
|
10877
10752
|
id: z.ZodString;
|
|
10878
10753
|
createdAt: z.ZodDate;
|
|
@@ -10884,14 +10759,13 @@ export declare const contactContract: {
|
|
|
10884
10759
|
notes: z.ZodNullable<z.ZodString>;
|
|
10885
10760
|
contactProfile: z.ZodNullable<z.ZodString>;
|
|
10886
10761
|
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
|
10887
|
-
tags: z.ZodArray<z.ZodObject<
|
|
10762
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
10888
10763
|
id: z.ZodString;
|
|
10889
10764
|
createdAt: z.ZodDate;
|
|
10890
10765
|
updatedAt: z.ZodDate;
|
|
10891
10766
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10892
|
-
}, {
|
|
10893
10767
|
name: z.ZodString;
|
|
10894
|
-
}
|
|
10768
|
+
}, "strip", z.ZodTypeAny, {
|
|
10895
10769
|
name: string;
|
|
10896
10770
|
id: string;
|
|
10897
10771
|
createdAt: Date;
|
|
@@ -10904,32 +10778,29 @@ export declare const contactContract: {
|
|
|
10904
10778
|
updatedAt: Date;
|
|
10905
10779
|
deletedAt: Date | null;
|
|
10906
10780
|
}>, "many">;
|
|
10907
|
-
company: z.ZodNullable<z.ZodObject<Omit<
|
|
10781
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
|
10908
10782
|
id: z.ZodString;
|
|
10909
10783
|
createdAt: z.ZodDate;
|
|
10910
10784
|
updatedAt: z.ZodDate;
|
|
10911
10785
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10912
|
-
}, {
|
|
10913
10786
|
name: z.ZodOptional<z.ZodString>;
|
|
10914
10787
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10915
10788
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10916
10789
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10917
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
10790
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10918
10791
|
id: z.ZodString;
|
|
10919
10792
|
createdAt: z.ZodDate;
|
|
10920
10793
|
updatedAt: z.ZodDate;
|
|
10921
10794
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10922
|
-
}, {
|
|
10923
10795
|
textValue: z.ZodNullable<z.ZodString>;
|
|
10924
10796
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
10925
10797
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
10926
10798
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
10927
|
-
attribute: z.ZodObject<Omit<
|
|
10799
|
+
attribute: z.ZodObject<Omit<{
|
|
10928
10800
|
id: z.ZodString;
|
|
10929
10801
|
createdAt: z.ZodDate;
|
|
10930
10802
|
updatedAt: z.ZodDate;
|
|
10931
10803
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10932
|
-
}, {
|
|
10933
10804
|
systemName: z.ZodString;
|
|
10934
10805
|
displayName: z.ZodString;
|
|
10935
10806
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -10938,14 +10809,13 @@ export declare const contactContract: {
|
|
|
10938
10809
|
isArchived: z.ZodBoolean;
|
|
10939
10810
|
isRequired: z.ZodBoolean;
|
|
10940
10811
|
isUnique: z.ZodBoolean;
|
|
10941
|
-
options: z.ZodArray<z.ZodObject<
|
|
10942
|
-
|
|
10812
|
+
options: z.ZodArray<z.ZodObject<{
|
|
10813
|
+
position: z.ZodNumber;
|
|
10943
10814
|
value: z.ZodString;
|
|
10815
|
+
label: z.ZodString;
|
|
10944
10816
|
isDefault: z.ZodBoolean;
|
|
10945
|
-
position: z.ZodNumber;
|
|
10946
|
-
}, {
|
|
10947
10817
|
id: z.ZodString;
|
|
10948
|
-
}
|
|
10818
|
+
}, "strip", z.ZodTypeAny, {
|
|
10949
10819
|
id: string;
|
|
10950
10820
|
position: number;
|
|
10951
10821
|
value: string;
|
|
@@ -10958,15 +10828,14 @@ export declare const contactContract: {
|
|
|
10958
10828
|
label: string;
|
|
10959
10829
|
isDefault: boolean;
|
|
10960
10830
|
}>, "many">;
|
|
10961
|
-
group: z.ZodObject<
|
|
10831
|
+
group: z.ZodObject<{
|
|
10962
10832
|
id: z.ZodString;
|
|
10963
10833
|
createdAt: z.ZodDate;
|
|
10964
10834
|
updatedAt: z.ZodDate;
|
|
10965
10835
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
10966
|
-
}, {
|
|
10967
10836
|
systemName: z.ZodString;
|
|
10968
10837
|
displayName: z.ZodString;
|
|
10969
|
-
}
|
|
10838
|
+
}, "strip", z.ZodTypeAny, {
|
|
10970
10839
|
id: string;
|
|
10971
10840
|
createdAt: Date;
|
|
10972
10841
|
updatedAt: Date;
|
|
@@ -10981,7 +10850,7 @@ export declare const contactContract: {
|
|
|
10981
10850
|
systemName: string;
|
|
10982
10851
|
displayName: string;
|
|
10983
10852
|
}>;
|
|
10984
|
-
}
|
|
10853
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
10985
10854
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
10986
10855
|
id: string;
|
|
10987
10856
|
position: number;
|
|
@@ -11008,7 +10877,7 @@ export declare const contactContract: {
|
|
|
11008
10877
|
isRequired: boolean;
|
|
11009
10878
|
isUnique: boolean;
|
|
11010
10879
|
}>;
|
|
11011
|
-
}
|
|
10880
|
+
}, "strip", z.ZodTypeAny, {
|
|
11012
10881
|
id: string;
|
|
11013
10882
|
createdAt: Date;
|
|
11014
10883
|
updatedAt: Date;
|
|
@@ -11055,7 +10924,7 @@ export declare const contactContract: {
|
|
|
11055
10924
|
numberValue: number | null;
|
|
11056
10925
|
dateValue: Date | null;
|
|
11057
10926
|
}>, "many">>;
|
|
11058
|
-
}
|
|
10927
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
|
11059
10928
|
id: string;
|
|
11060
10929
|
createdAt: Date;
|
|
11061
10930
|
updatedAt: Date;
|
|
@@ -11136,12 +11005,11 @@ export declare const contactContract: {
|
|
|
11136
11005
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
11137
11006
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
11138
11007
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
11139
|
-
attribute: z.ZodObject<Omit<
|
|
11008
|
+
attribute: z.ZodObject<Omit<{
|
|
11140
11009
|
id: z.ZodString;
|
|
11141
11010
|
createdAt: z.ZodDate;
|
|
11142
11011
|
updatedAt: z.ZodDate;
|
|
11143
11012
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
11144
|
-
}, {
|
|
11145
11013
|
systemName: z.ZodString;
|
|
11146
11014
|
displayName: z.ZodString;
|
|
11147
11015
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -11150,14 +11018,13 @@ export declare const contactContract: {
|
|
|
11150
11018
|
isArchived: z.ZodBoolean;
|
|
11151
11019
|
isRequired: z.ZodBoolean;
|
|
11152
11020
|
isUnique: z.ZodBoolean;
|
|
11153
|
-
options: z.ZodArray<z.ZodObject<
|
|
11154
|
-
|
|
11021
|
+
options: z.ZodArray<z.ZodObject<{
|
|
11022
|
+
position: z.ZodNumber;
|
|
11155
11023
|
value: z.ZodString;
|
|
11024
|
+
label: z.ZodString;
|
|
11156
11025
|
isDefault: z.ZodBoolean;
|
|
11157
|
-
position: z.ZodNumber;
|
|
11158
|
-
}, {
|
|
11159
11026
|
id: z.ZodString;
|
|
11160
|
-
}
|
|
11027
|
+
}, "strip", z.ZodTypeAny, {
|
|
11161
11028
|
id: string;
|
|
11162
11029
|
position: number;
|
|
11163
11030
|
value: string;
|
|
@@ -11170,15 +11037,14 @@ export declare const contactContract: {
|
|
|
11170
11037
|
label: string;
|
|
11171
11038
|
isDefault: boolean;
|
|
11172
11039
|
}>, "many">;
|
|
11173
|
-
group: z.ZodObject<
|
|
11040
|
+
group: z.ZodObject<{
|
|
11174
11041
|
id: z.ZodString;
|
|
11175
11042
|
createdAt: z.ZodDate;
|
|
11176
11043
|
updatedAt: z.ZodDate;
|
|
11177
11044
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
11178
|
-
}, {
|
|
11179
11045
|
systemName: z.ZodString;
|
|
11180
11046
|
displayName: z.ZodString;
|
|
11181
|
-
}
|
|
11047
|
+
}, "strip", z.ZodTypeAny, {
|
|
11182
11048
|
id: string;
|
|
11183
11049
|
createdAt: Date;
|
|
11184
11050
|
updatedAt: Date;
|
|
@@ -11193,7 +11059,7 @@ export declare const contactContract: {
|
|
|
11193
11059
|
systemName: string;
|
|
11194
11060
|
displayName: string;
|
|
11195
11061
|
}>;
|
|
11196
|
-
}
|
|
11062
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
11197
11063
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
11198
11064
|
id: string;
|
|
11199
11065
|
position: number;
|
|
@@ -11220,19 +11086,18 @@ export declare const contactContract: {
|
|
|
11220
11086
|
isRequired: boolean;
|
|
11221
11087
|
isUnique: boolean;
|
|
11222
11088
|
}>;
|
|
11223
|
-
uploads: z.ZodArray<z.ZodObject<
|
|
11089
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
11224
11090
|
id: z.ZodString;
|
|
11225
11091
|
createdAt: z.ZodDate;
|
|
11226
11092
|
updatedAt: z.ZodDate;
|
|
11227
11093
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
11228
|
-
}, {
|
|
11229
11094
|
bucketName: z.ZodString;
|
|
11230
11095
|
fileName: z.ZodString;
|
|
11231
11096
|
fileSize: z.ZodNumber;
|
|
11232
11097
|
fileKey: z.ZodString;
|
|
11233
11098
|
fileUrl: z.ZodNullable<z.ZodString>;
|
|
11234
11099
|
status: z.ZodNullable<z.ZodString>;
|
|
11235
|
-
}
|
|
11100
|
+
}, "strip", z.ZodTypeAny, {
|
|
11236
11101
|
id: string;
|
|
11237
11102
|
status: string | null;
|
|
11238
11103
|
createdAt: Date;
|
|
@@ -11653,7 +11518,7 @@ export declare const contactContract: {
|
|
|
11653
11518
|
};
|
|
11654
11519
|
}[] | undefined;
|
|
11655
11520
|
}>;
|
|
11656
|
-
}
|
|
11521
|
+
}, "strip", z.ZodTypeAny, {
|
|
11657
11522
|
data: {
|
|
11658
11523
|
name: string;
|
|
11659
11524
|
id: string;
|
|
@@ -11934,6 +11799,23 @@ export declare const contactContract: {
|
|
|
11934
11799
|
error?: any;
|
|
11935
11800
|
}>;
|
|
11936
11801
|
};
|
|
11802
|
+
path: "cs/contact/:id";
|
|
11803
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
11804
|
+
'x-tenant': z.ZodString;
|
|
11805
|
+
'x-service-token': z.ZodString;
|
|
11806
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
11807
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
11808
|
+
}, "strip", z.ZodTypeAny, {
|
|
11809
|
+
'x-tenant': string;
|
|
11810
|
+
'x-service-token': string;
|
|
11811
|
+
'x-client-timezone': string;
|
|
11812
|
+
'x-code'?: string | undefined;
|
|
11813
|
+
}, {
|
|
11814
|
+
'x-tenant': string;
|
|
11815
|
+
'x-service-token': string;
|
|
11816
|
+
'x-code'?: string | undefined;
|
|
11817
|
+
'x-client-timezone'?: string | undefined;
|
|
11818
|
+
}>>>;
|
|
11937
11819
|
};
|
|
11938
11820
|
getExportContacts: {
|
|
11939
11821
|
method: "GET";
|
|
@@ -11952,11 +11834,11 @@ export declare const contactContract: {
|
|
|
11952
11834
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
11953
11835
|
}, "strip", z.ZodTypeAny, {
|
|
11954
11836
|
type: string;
|
|
11955
|
-
value: string | string[];
|
|
11837
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
11956
11838
|
attributeId: string;
|
|
11957
11839
|
}, {
|
|
11958
11840
|
type: string;
|
|
11959
|
-
value: string | string[];
|
|
11841
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
11960
11842
|
attributeId: string;
|
|
11961
11843
|
}>, "many">>;
|
|
11962
11844
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -11964,59 +11846,42 @@ export declare const contactContract: {
|
|
|
11964
11846
|
email: z.ZodOptional<z.ZodString>;
|
|
11965
11847
|
notes: z.ZodOptional<z.ZodString>;
|
|
11966
11848
|
}, "strip", z.ZodTypeAny, {
|
|
11967
|
-
name?: string | undefined;
|
|
11968
|
-
channel?: string[] | undefined;
|
|
11969
|
-
address?: string | undefined;
|
|
11970
11849
|
page?: number | undefined;
|
|
11971
|
-
email?: string | undefined;
|
|
11972
11850
|
pageSize?: number | undefined;
|
|
11973
|
-
|
|
11851
|
+
keyword?: string | undefined;
|
|
11852
|
+
company?: string[] | undefined;
|
|
11853
|
+
name?: string | undefined;
|
|
11854
|
+
address?: string | undefined;
|
|
11855
|
+
channel?: string[] | undefined;
|
|
11856
|
+
selectedDate?: string | undefined;
|
|
11974
11857
|
customFields?: {
|
|
11975
11858
|
type: string;
|
|
11976
|
-
value: string | string[];
|
|
11859
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
11977
11860
|
attributeId: string;
|
|
11978
11861
|
}[] | undefined;
|
|
11979
|
-
company?: string[] | undefined;
|
|
11980
|
-
notes?: string | undefined;
|
|
11981
11862
|
tags?: string[] | undefined;
|
|
11982
|
-
|
|
11983
|
-
|
|
11863
|
+
phone?: string | undefined;
|
|
11864
|
+
email?: string | undefined;
|
|
11865
|
+
notes?: string | undefined;
|
|
11984
11866
|
}, {
|
|
11985
|
-
name?: string | undefined;
|
|
11986
|
-
channel?: string[] | undefined;
|
|
11987
|
-
address?: string | undefined;
|
|
11988
11867
|
page?: number | undefined;
|
|
11989
|
-
email?: string | undefined;
|
|
11990
11868
|
pageSize?: number | undefined;
|
|
11991
|
-
|
|
11869
|
+
keyword?: string | undefined;
|
|
11870
|
+
company?: string[] | undefined;
|
|
11871
|
+
name?: string | undefined;
|
|
11872
|
+
address?: string | undefined;
|
|
11873
|
+
channel?: string[] | undefined;
|
|
11874
|
+
selectedDate?: string | undefined;
|
|
11992
11875
|
customFields?: {
|
|
11993
11876
|
type: string;
|
|
11994
|
-
value: string | string[];
|
|
11877
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
11995
11878
|
attributeId: string;
|
|
11996
11879
|
}[] | undefined;
|
|
11997
|
-
company?: string[] | undefined;
|
|
11998
|
-
notes?: string | undefined;
|
|
11999
11880
|
tags?: string[] | undefined;
|
|
12000
|
-
|
|
12001
|
-
|
|
11881
|
+
phone?: string | undefined;
|
|
11882
|
+
email?: string | undefined;
|
|
11883
|
+
notes?: string | undefined;
|
|
12002
11884
|
}>;
|
|
12003
|
-
path: "cs/contact/export";
|
|
12004
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
12005
|
-
'x-tenant': z.ZodString;
|
|
12006
|
-
'x-service-token': z.ZodString;
|
|
12007
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
|
12008
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
12009
|
-
}, "strip", z.ZodTypeAny, {
|
|
12010
|
-
'x-tenant': string;
|
|
12011
|
-
'x-service-token': string;
|
|
12012
|
-
'x-client-timezone': string;
|
|
12013
|
-
'x-code'?: string | undefined;
|
|
12014
|
-
}, {
|
|
12015
|
-
'x-tenant': string;
|
|
12016
|
-
'x-service-token': string;
|
|
12017
|
-
'x-code'?: string | undefined;
|
|
12018
|
-
'x-client-timezone'?: string | undefined;
|
|
12019
|
-
}>>>;
|
|
12020
11885
|
responses: {
|
|
12021
11886
|
200: null;
|
|
12022
11887
|
400: z.ZodObject<{
|
|
@@ -12047,6 +11912,23 @@ export declare const contactContract: {
|
|
|
12047
11912
|
error?: any;
|
|
12048
11913
|
}>;
|
|
12049
11914
|
};
|
|
11915
|
+
path: "cs/contact/export";
|
|
11916
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
11917
|
+
'x-tenant': z.ZodString;
|
|
11918
|
+
'x-service-token': z.ZodString;
|
|
11919
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
|
11920
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
|
11921
|
+
}, "strip", z.ZodTypeAny, {
|
|
11922
|
+
'x-tenant': string;
|
|
11923
|
+
'x-service-token': string;
|
|
11924
|
+
'x-client-timezone': string;
|
|
11925
|
+
'x-code'?: string | undefined;
|
|
11926
|
+
}, {
|
|
11927
|
+
'x-tenant': string;
|
|
11928
|
+
'x-service-token': string;
|
|
11929
|
+
'x-code'?: string | undefined;
|
|
11930
|
+
'x-client-timezone'?: string | undefined;
|
|
11931
|
+
}>>>;
|
|
12050
11932
|
};
|
|
12051
11933
|
};
|
|
12052
11934
|
//# sourceMappingURL=index.d.ts.map
|