evo360-types 1.3.306 → 1.3.311

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +6 -6
  2. package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
  3. package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
  4. package/dist/apps/evo-chat/waba-template/zod-schemas.d.ts +1557 -0
  5. package/dist/apps/evo-chat/waba-template/zod-schemas.js +55 -0
  6. package/dist/apps/evo-chat/waba-template/zod-schemas.ts +57 -0
  7. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +18 -18
  8. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +6 -6
  9. package/dist/apps/evo-finops/zod-schemas.d.ts +60 -9
  10. package/dist/apps/evo-finops/zod-schemas.js +2 -0
  11. package/dist/apps/evo-finops/zod-schemas.ts +2 -0
  12. package/dist/apps/evo-med/appointment/zod-schemas.d.ts +6 -6
  13. package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
  14. package/dist/apps/evo-med/dic/zod-schemas.d.ts +6 -6
  15. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
  16. package/dist/apps/evo-med/people/zod-schemas.d.ts +12 -12
  17. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
  18. package/dist/apps/evo-notifications/zod-schemas.d.ts +39 -39
  19. package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
  20. package/dist/apps/evo-survey/zod-schemas.d.ts +58 -58
  21. package/dist/apps/evo-task/zod-schemas.d.ts +71 -71
  22. package/dist/apps/evo-task/zod-schemas.js +3 -0
  23. package/dist/apps/evo-task/zod-schemas.ts +3 -0
  24. package/dist/apps/shared/zod-schemas.d.ts +2 -2
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/index.ts +1 -0
  28. package/dist/types/evo-chat/fb_collections.d.ts +3 -0
  29. package/dist/types/evo-chat/fb_collections.js +5 -1
  30. package/dist/types/evo-chat/fb_collections.ts +5 -0
  31. package/dist/types/evo-chat/index.d.ts +1 -0
  32. package/dist/types/evo-chat/index.js +1 -0
  33. package/dist/types/evo-chat/index.ts +1 -0
  34. package/dist/types/evo-chat/waba-template/index.d.ts +93 -0
  35. package/dist/types/evo-chat/waba-template/index.js +39 -0
  36. package/dist/types/evo-chat/waba-template/index.ts +108 -0
  37. package/dist/types/evo-finops/payment-links/index.d.ts +4 -1
  38. package/dist/types/evo-finops/payment-links/index.ts +5 -1
  39. package/dist/types/evo-notifications/index.d.ts +1 -0
  40. package/dist/types/evo-notifications/index.ts +1 -0
  41. package/dist/types/shared/external-links.d.ts +4 -0
  42. package/dist/types/shared/external-links.js +4 -0
  43. package/dist/types/shared/external-links.ts +4 -0
  44. package/package.json +1 -1
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zWabaTemplateCreateRequestSchema = exports.zWabaTemplateSchema = exports.zWabaTemplateDraftSourceSchema = exports.zWabaTemplateComponentSchema = exports.zWabaTemplateButtonSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ exports.zWabaTemplateButtonSchema = zod_1.z.object({
7
+ type: zod_1.z.enum(['QUICK_REPLY', 'URL', 'PHONE_NUMBER']),
8
+ text: zod_1.z.string(),
9
+ url: zod_1.z.string().optional(),
10
+ phone_number: zod_1.z.string().optional(),
11
+ example: zod_1.z.array(zod_1.z.string()).optional(),
12
+ }).passthrough();
13
+ exports.zWabaTemplateComponentSchema = zod_1.z.object({
14
+ type: zod_1.z.enum(['HEADER', 'BODY', 'FOOTER', 'BUTTONS']),
15
+ format: zod_1.z.enum(['TEXT', 'IMAGE', 'VIDEO', 'DOCUMENT', 'LOCATION']).optional(),
16
+ text: zod_1.z.string().optional(),
17
+ buttons: zod_1.z.array(exports.zWabaTemplateButtonSchema).optional(),
18
+ example: zod_1.z.object({
19
+ header_text: zod_1.z.array(zod_1.z.string()).optional(),
20
+ header_handle: zod_1.z.array(zod_1.z.string()).optional(),
21
+ body_text: zod_1.z.array(zod_1.z.array(zod_1.z.string())).optional(),
22
+ body_text_named_params: zod_1.z.array(zod_1.z.object({
23
+ param_name: zod_1.z.string(),
24
+ example: zod_1.z.string(),
25
+ })).optional(),
26
+ }).passthrough().optional(),
27
+ }).passthrough();
28
+ exports.zWabaTemplateDraftSourceSchema = zod_1.z.object({
29
+ meta_id: zod_1.z.string(),
30
+ name: zod_1.z.string(),
31
+ }).passthrough();
32
+ exports.zWabaTemplateSchema = zod_schemas_1.zFireDocSchema
33
+ .extend({
34
+ meta_id: zod_1.z.string().optional(),
35
+ name: zod_1.z.string(),
36
+ status: zod_1.z.enum(['DRAFT', 'APPROVED', 'PENDING', 'REJECTED', 'DISABLED', 'PAUSED']),
37
+ category: zod_1.z.enum(['AUTHENTICATION', 'MARKETING', 'UTILITY']),
38
+ language: zod_1.z.string(),
39
+ components: zod_1.z.array(exports.zWabaTemplateComponentSchema),
40
+ parameter_format: zod_1.z.enum(['NAMED', 'POSITIONAL']).optional(),
41
+ quality_score: zod_1.z.object({ score: zod_1.z.string(), date: zod_1.z.number() }).optional(),
42
+ rejected_reason: zod_1.z.string().optional(),
43
+ waba_id: zod_1.z.string(),
44
+ synced_at: zod_1.z.coerce.date().nullable().optional(),
45
+ is_draft: zod_1.z.boolean(),
46
+ draft_source: exports.zWabaTemplateDraftSourceSchema.optional(),
47
+ })
48
+ .passthrough();
49
+ exports.zWabaTemplateCreateRequestSchema = zod_1.z.object({
50
+ name: zod_1.z.string().min(1).max(512),
51
+ category: zod_1.z.enum(['AUTHENTICATION', 'MARKETING', 'UTILITY']),
52
+ language: zod_1.z.string().min(1),
53
+ parameter_format: zod_1.z.enum(['NAMED', 'POSITIONAL']).optional(),
54
+ components: zod_1.z.array(exports.zWabaTemplateComponentSchema).min(1),
55
+ }).passthrough();
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+ import { zFireDocSchema } from '../../shared/zod-schemas';
3
+
4
+ export const zWabaTemplateButtonSchema = z.object({
5
+ type: z.enum(['QUICK_REPLY', 'URL', 'PHONE_NUMBER']),
6
+ text: z.string(),
7
+ url: z.string().optional(),
8
+ phone_number: z.string().optional(),
9
+ example: z.array(z.string()).optional(),
10
+ }).passthrough();
11
+
12
+ export const zWabaTemplateComponentSchema = z.object({
13
+ type: z.enum(['HEADER', 'BODY', 'FOOTER', 'BUTTONS']),
14
+ format: z.enum(['TEXT', 'IMAGE', 'VIDEO', 'DOCUMENT', 'LOCATION']).optional(),
15
+ text: z.string().optional(),
16
+ buttons: z.array(zWabaTemplateButtonSchema).optional(),
17
+ example: z.object({
18
+ header_text: z.array(z.string()).optional(),
19
+ header_handle: z.array(z.string()).optional(),
20
+ body_text: z.array(z.array(z.string())).optional(),
21
+ body_text_named_params: z.array(z.object({
22
+ param_name: z.string(),
23
+ example: z.string(),
24
+ })).optional(),
25
+ }).passthrough().optional(),
26
+ }).passthrough();
27
+
28
+ export const zWabaTemplateDraftSourceSchema = z.object({
29
+ meta_id: z.string(),
30
+ name: z.string(),
31
+ }).passthrough();
32
+
33
+ export const zWabaTemplateSchema = zFireDocSchema
34
+ .extend({
35
+ meta_id: z.string().optional(),
36
+ name: z.string(),
37
+ status: z.enum(['DRAFT', 'APPROVED', 'PENDING', 'REJECTED', 'DISABLED', 'PAUSED']),
38
+ category: z.enum(['AUTHENTICATION', 'MARKETING', 'UTILITY']),
39
+ language: z.string(),
40
+ components: z.array(zWabaTemplateComponentSchema),
41
+ parameter_format: z.enum(['NAMED', 'POSITIONAL']).optional(),
42
+ quality_score: z.object({ score: z.string(), date: z.number() }).optional(),
43
+ rejected_reason: z.string().optional(),
44
+ waba_id: z.string(),
45
+ synced_at: z.coerce.date().nullable().optional(),
46
+ is_draft: z.boolean(),
47
+ draft_source: zWabaTemplateDraftSourceSchema.optional(),
48
+ })
49
+ .passthrough();
50
+
51
+ export const zWabaTemplateCreateRequestSchema = z.object({
52
+ name: z.string().min(1).max(512),
53
+ category: z.enum(['AUTHENTICATION', 'MARKETING', 'UTILITY']),
54
+ language: z.string().min(1),
55
+ parameter_format: z.enum(['NAMED', 'POSITIONAL']).optional(),
56
+ components: z.array(zWabaTemplateComponentSchema).min(1),
57
+ }).passthrough();
@@ -20,14 +20,14 @@ export declare const zDistChannelTypeSchema: z.ZodObject<{
20
20
  name: string;
21
21
  hidden: boolean;
22
22
  base?: boolean | undefined;
23
- color?: string | undefined;
24
23
  category?: string | null | undefined;
24
+ color?: string | undefined;
25
25
  }, {
26
26
  name: string;
27
27
  hidden: boolean;
28
28
  base?: boolean | undefined;
29
- color?: string | undefined;
30
29
  category?: string | null | undefined;
30
+ color?: string | undefined;
31
31
  }>, "many">>>;
32
32
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
33
  id: z.ZodString;
@@ -50,14 +50,14 @@ export declare const zDistChannelTypeSchema: z.ZodObject<{
50
50
  name: string;
51
51
  hidden: boolean;
52
52
  base?: boolean | undefined;
53
- color?: string | undefined;
54
53
  category?: string | null | undefined;
54
+ color?: string | undefined;
55
55
  }, {
56
56
  name: string;
57
57
  hidden: boolean;
58
58
  base?: boolean | undefined;
59
- color?: string | undefined;
60
59
  category?: string | null | undefined;
60
+ color?: string | undefined;
61
61
  }>, "many">>>;
62
62
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63
63
  id: z.ZodString;
@@ -80,14 +80,14 @@ export declare const zDistChannelTypeSchema: z.ZodObject<{
80
80
  name: string;
81
81
  hidden: boolean;
82
82
  base?: boolean | undefined;
83
- color?: string | undefined;
84
83
  category?: string | null | undefined;
84
+ color?: string | undefined;
85
85
  }, {
86
86
  name: string;
87
87
  hidden: boolean;
88
88
  base?: boolean | undefined;
89
- color?: string | undefined;
90
89
  category?: string | null | undefined;
90
+ color?: string | undefined;
91
91
  }>, "many">>>;
92
92
  }, z.ZodTypeAny, "passthrough">>;
93
93
  export declare const zDistChannelSchema: z.ZodObject<{
@@ -114,14 +114,14 @@ export declare const zDistChannelSchema: z.ZodObject<{
114
114
  name: string;
115
115
  hidden: boolean;
116
116
  base?: boolean | undefined;
117
- color?: string | undefined;
118
117
  category?: string | null | undefined;
118
+ color?: string | undefined;
119
119
  }, {
120
120
  name: string;
121
121
  hidden: boolean;
122
122
  base?: boolean | undefined;
123
- color?: string | undefined;
124
123
  category?: string | null | undefined;
124
+ color?: string | undefined;
125
125
  }>, "many">>>;
126
126
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
127
127
  id: z.ZodString;
@@ -147,14 +147,14 @@ export declare const zDistChannelSchema: z.ZodObject<{
147
147
  name: string;
148
148
  hidden: boolean;
149
149
  base?: boolean | undefined;
150
- color?: string | undefined;
151
150
  category?: string | null | undefined;
151
+ color?: string | undefined;
152
152
  }, {
153
153
  name: string;
154
154
  hidden: boolean;
155
155
  base?: boolean | undefined;
156
- color?: string | undefined;
157
156
  category?: string | null | undefined;
157
+ color?: string | undefined;
158
158
  }>, "many">>>;
159
159
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
160
160
  id: z.ZodString;
@@ -180,14 +180,14 @@ export declare const zDistChannelSchema: z.ZodObject<{
180
180
  name: string;
181
181
  hidden: boolean;
182
182
  base?: boolean | undefined;
183
- color?: string | undefined;
184
183
  category?: string | null | undefined;
184
+ color?: string | undefined;
185
185
  }, {
186
186
  name: string;
187
187
  hidden: boolean;
188
188
  base?: boolean | undefined;
189
- color?: string | undefined;
190
189
  category?: string | null | undefined;
190
+ color?: string | undefined;
191
191
  }>, "many">>>;
192
192
  }, z.ZodTypeAny, "passthrough">>;
193
193
  export declare const zQualificationFunnelLevelSchema: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
@@ -215,14 +215,14 @@ export declare const zQualificationSchema: z.ZodObject<{
215
215
  name: string;
216
216
  hidden: boolean;
217
217
  base?: boolean | undefined;
218
- color?: string | undefined;
219
218
  category?: string | null | undefined;
219
+ color?: string | undefined;
220
220
  }, {
221
221
  name: string;
222
222
  hidden: boolean;
223
223
  base?: boolean | undefined;
224
- color?: string | undefined;
225
224
  category?: string | null | undefined;
225
+ color?: string | undefined;
226
226
  }>, "many">>>;
227
227
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
228
228
  id: z.ZodString;
@@ -248,14 +248,14 @@ export declare const zQualificationSchema: z.ZodObject<{
248
248
  name: string;
249
249
  hidden: boolean;
250
250
  base?: boolean | undefined;
251
- color?: string | undefined;
252
251
  category?: string | null | undefined;
252
+ color?: string | undefined;
253
253
  }, {
254
254
  name: string;
255
255
  hidden: boolean;
256
256
  base?: boolean | undefined;
257
- color?: string | undefined;
258
257
  category?: string | null | undefined;
258
+ color?: string | undefined;
259
259
  }>, "many">>>;
260
260
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
261
261
  id: z.ZodString;
@@ -281,13 +281,13 @@ export declare const zQualificationSchema: z.ZodObject<{
281
281
  name: string;
282
282
  hidden: boolean;
283
283
  base?: boolean | undefined;
284
- color?: string | undefined;
285
284
  category?: string | null | undefined;
285
+ color?: string | undefined;
286
286
  }, {
287
287
  name: string;
288
288
  hidden: boolean;
289
289
  base?: boolean | undefined;
290
- color?: string | undefined;
291
290
  category?: string | null | undefined;
291
+ color?: string | undefined;
292
292
  }>, "many">>>;
293
293
  }, z.ZodTypeAny, "passthrough">>;
@@ -149,14 +149,14 @@ export declare const zLeadSchema: z.ZodObject<{
149
149
  name: string;
150
150
  hidden: boolean;
151
151
  base?: boolean | undefined;
152
- color?: string | undefined;
153
152
  category?: string | null | undefined;
153
+ color?: string | undefined;
154
154
  }, {
155
155
  name: string;
156
156
  hidden: boolean;
157
157
  base?: boolean | undefined;
158
- color?: string | undefined;
159
158
  category?: string | null | undefined;
159
+ color?: string | undefined;
160
160
  }>, "many">>>;
161
161
  userRef: z.ZodAny;
162
162
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -273,14 +273,14 @@ export declare const zLeadSchema: z.ZodObject<{
273
273
  name: string;
274
274
  hidden: boolean;
275
275
  base?: boolean | undefined;
276
- color?: string | undefined;
277
276
  category?: string | null | undefined;
277
+ color?: string | undefined;
278
278
  }, {
279
279
  name: string;
280
280
  hidden: boolean;
281
281
  base?: boolean | undefined;
282
- color?: string | undefined;
283
282
  category?: string | null | undefined;
283
+ color?: string | undefined;
284
284
  }>, "many">>>;
285
285
  userRef: z.ZodAny;
286
286
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -397,14 +397,14 @@ export declare const zLeadSchema: z.ZodObject<{
397
397
  name: string;
398
398
  hidden: boolean;
399
399
  base?: boolean | undefined;
400
- color?: string | undefined;
401
400
  category?: string | null | undefined;
401
+ color?: string | undefined;
402
402
  }, {
403
403
  name: string;
404
404
  hidden: boolean;
405
405
  base?: boolean | undefined;
406
- color?: string | undefined;
407
406
  category?: string | null | undefined;
407
+ color?: string | undefined;
408
408
  }>, "many">>>;
409
409
  userRef: z.ZodAny;
410
410
  }, z.ZodTypeAny, "passthrough">>;
@@ -10853,6 +10853,23 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
10853
10853
  last_payment_status: z.ZodOptional<z.ZodString>;
10854
10854
  last_payment_confirmed_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
10855
10855
  last_payment_received_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
10856
+ externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
10857
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
10858
+ id: z.ZodString;
10859
+ label: z.ZodOptional<z.ZodString>;
10860
+ ref: z.ZodOptional<z.ZodAny>;
10861
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10862
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
10863
+ id: z.ZodString;
10864
+ label: z.ZodOptional<z.ZodString>;
10865
+ ref: z.ZodOptional<z.ZodAny>;
10866
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10867
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
10868
+ id: z.ZodString;
10869
+ label: z.ZodOptional<z.ZodString>;
10870
+ ref: z.ZodOptional<z.ZodAny>;
10871
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
10872
+ externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10856
10873
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10857
10874
  snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
10858
10875
  direction: z.ZodEnum<["request", "response", "webhook"]>;
@@ -11021,6 +11038,23 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
11021
11038
  last_payment_status: z.ZodOptional<z.ZodString>;
11022
11039
  last_payment_confirmed_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
11023
11040
  last_payment_received_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
11041
+ externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
11042
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11043
+ id: z.ZodString;
11044
+ label: z.ZodOptional<z.ZodString>;
11045
+ ref: z.ZodOptional<z.ZodAny>;
11046
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11047
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11048
+ id: z.ZodString;
11049
+ label: z.ZodOptional<z.ZodString>;
11050
+ ref: z.ZodOptional<z.ZodAny>;
11051
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11052
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11053
+ id: z.ZodString;
11054
+ label: z.ZodOptional<z.ZodString>;
11055
+ ref: z.ZodOptional<z.ZodAny>;
11056
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
11057
+ externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11024
11058
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11025
11059
  snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
11026
11060
  direction: z.ZodEnum<["request", "response", "webhook"]>;
@@ -11189,6 +11223,23 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
11189
11223
  last_payment_status: z.ZodOptional<z.ZodString>;
11190
11224
  last_payment_confirmed_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
11191
11225
  last_payment_received_at: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>;
11226
+ externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
11227
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11228
+ id: z.ZodString;
11229
+ label: z.ZodOptional<z.ZodString>;
11230
+ ref: z.ZodOptional<z.ZodAny>;
11231
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11232
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11233
+ id: z.ZodString;
11234
+ label: z.ZodOptional<z.ZodString>;
11235
+ ref: z.ZodOptional<z.ZodAny>;
11236
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11237
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11238
+ id: z.ZodString;
11239
+ label: z.ZodOptional<z.ZodString>;
11240
+ ref: z.ZodOptional<z.ZodAny>;
11241
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
11242
+ externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11192
11243
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11193
11244
  snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
11194
11245
  direction: z.ZodEnum<["request", "response", "webhook"]>;
@@ -11373,17 +11424,17 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
11373
11424
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11374
11425
  }, z.ZodTypeAny, "passthrough">>>;
11375
11426
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
11376
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11427
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11377
11428
  id: z.ZodString;
11378
11429
  label: z.ZodOptional<z.ZodString>;
11379
11430
  ref: z.ZodOptional<z.ZodAny>;
11380
11431
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11381
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11432
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11382
11433
  id: z.ZodString;
11383
11434
  label: z.ZodOptional<z.ZodString>;
11384
11435
  ref: z.ZodOptional<z.ZodAny>;
11385
11436
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11386
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11437
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11387
11438
  id: z.ZodString;
11388
11439
  label: z.ZodOptional<z.ZodString>;
11389
11440
  ref: z.ZodOptional<z.ZodAny>;
@@ -11792,17 +11843,17 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
11792
11843
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11793
11844
  }, z.ZodTypeAny, "passthrough">>>;
11794
11845
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
11795
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11846
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11796
11847
  id: z.ZodString;
11797
11848
  label: z.ZodOptional<z.ZodString>;
11798
11849
  ref: z.ZodOptional<z.ZodAny>;
11799
11850
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11800
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11851
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11801
11852
  id: z.ZodString;
11802
11853
  label: z.ZodOptional<z.ZodString>;
11803
11854
  ref: z.ZodOptional<z.ZodAny>;
11804
11855
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11805
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
11856
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
11806
11857
  id: z.ZodString;
11807
11858
  label: z.ZodOptional<z.ZodString>;
11808
11859
  ref: z.ZodOptional<z.ZodAny>;
@@ -12211,17 +12262,17 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
12211
12262
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12212
12263
  }, z.ZodTypeAny, "passthrough">>>;
12213
12264
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
12214
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
12265
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
12215
12266
  id: z.ZodString;
12216
12267
  label: z.ZodOptional<z.ZodString>;
12217
12268
  ref: z.ZodOptional<z.ZodAny>;
12218
12269
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12219
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
12270
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
12220
12271
  id: z.ZodString;
12221
12272
  label: z.ZodOptional<z.ZodString>;
12222
12273
  ref: z.ZodOptional<z.ZodAny>;
12223
12274
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12224
- type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
12275
+ type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
12225
12276
  id: z.ZodString;
12226
12277
  label: z.ZodOptional<z.ZodString>;
12227
12278
  ref: z.ZodOptional<z.ZodAny>;
@@ -603,6 +603,8 @@ exports.zPaymentLinkSchema = zod_schemas_1.zFireDocSchema
603
603
  last_payment_status: zod_1.z.string().optional(),
604
604
  last_payment_confirmed_at: zod_schemas_1.zFirestoreDateSchema.optional(),
605
605
  last_payment_received_at: zod_schemas_1.zFirestoreDateSchema.optional(),
606
+ externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
607
+ externalLinkKeys: zod_1.z.array(zod_1.z.string()).optional(),
606
608
  raw: zod_1.z.record(zod_1.z.unknown()).optional(),
607
609
  snapshots: zod_1.z
608
610
  .array(zod_1.z.object({
@@ -658,6 +658,8 @@ export const zPaymentLinkSchema = zFireDocSchema
658
658
  last_payment_status: z.string().optional(),
659
659
  last_payment_confirmed_at: zFirestoreDateSchema.optional(),
660
660
  last_payment_received_at: zFirestoreDateSchema.optional(),
661
+ externalLinks: z.array(zExternalLinkSchema).optional(),
662
+ externalLinkKeys: z.array(z.string()).optional(),
661
663
  raw: z.record(z.unknown()).optional(),
662
664
  snapshots: z
663
665
  .array(
@@ -643,14 +643,14 @@ export declare const zAppointmentSchema: z.ZodObject<{
643
643
  name: string;
644
644
  hidden: boolean;
645
645
  base?: boolean | undefined;
646
- color?: string | undefined;
647
646
  category?: string | null | undefined;
647
+ color?: string | undefined;
648
648
  }, {
649
649
  name: string;
650
650
  hidden: boolean;
651
651
  base?: boolean | undefined;
652
- color?: string | undefined;
653
652
  category?: string | null | undefined;
653
+ color?: string | undefined;
654
654
  }>, "many">>>;
655
655
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
656
656
  id: z.ZodString;
@@ -979,14 +979,14 @@ export declare const zAppointmentSchema: z.ZodObject<{
979
979
  name: string;
980
980
  hidden: boolean;
981
981
  base?: boolean | undefined;
982
- color?: string | undefined;
983
982
  category?: string | null | undefined;
983
+ color?: string | undefined;
984
984
  }, {
985
985
  name: string;
986
986
  hidden: boolean;
987
987
  base?: boolean | undefined;
988
- color?: string | undefined;
989
988
  category?: string | null | undefined;
989
+ color?: string | undefined;
990
990
  }>, "many">>>;
991
991
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
992
992
  id: z.ZodString;
@@ -1315,14 +1315,14 @@ export declare const zAppointmentSchema: z.ZodObject<{
1315
1315
  name: string;
1316
1316
  hidden: boolean;
1317
1317
  base?: boolean | undefined;
1318
- color?: string | undefined;
1319
1318
  category?: string | null | undefined;
1319
+ color?: string | undefined;
1320
1320
  }, {
1321
1321
  name: string;
1322
1322
  hidden: boolean;
1323
1323
  base?: boolean | undefined;
1324
- color?: string | undefined;
1325
1324
  category?: string | null | undefined;
1325
+ color?: string | undefined;
1326
1326
  }>, "many">>>;
1327
1327
  }, z.ZodTypeAny, "passthrough">>;
1328
1328
  export declare const zPatientAppointmentSchema: z.ZodObject<{
@@ -44,14 +44,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
44
44
  name: string;
45
45
  hidden: boolean;
46
46
  base?: boolean | undefined;
47
- color?: string | undefined;
48
47
  category?: string | null | undefined;
48
+ color?: string | undefined;
49
49
  }, {
50
50
  name: string;
51
51
  hidden: boolean;
52
52
  base?: boolean | undefined;
53
- color?: string | undefined;
54
53
  category?: string | null | undefined;
54
+ color?: string | undefined;
55
55
  }>, "many">>>;
56
56
  userRef: z.ZodAny;
57
57
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -115,14 +115,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
115
115
  name: string;
116
116
  hidden: boolean;
117
117
  base?: boolean | undefined;
118
- color?: string | undefined;
119
118
  category?: string | null | undefined;
119
+ color?: string | undefined;
120
120
  }, {
121
121
  name: string;
122
122
  hidden: boolean;
123
123
  base?: boolean | undefined;
124
- color?: string | undefined;
125
124
  category?: string | null | undefined;
125
+ color?: string | undefined;
126
126
  }>, "many">>>;
127
127
  userRef: z.ZodAny;
128
128
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -186,14 +186,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
186
186
  name: string;
187
187
  hidden: boolean;
188
188
  base?: boolean | undefined;
189
- color?: string | undefined;
190
189
  category?: string | null | undefined;
190
+ color?: string | undefined;
191
191
  }, {
192
192
  name: string;
193
193
  hidden: boolean;
194
194
  base?: boolean | undefined;
195
- color?: string | undefined;
196
195
  category?: string | null | undefined;
196
+ color?: string | undefined;
197
197
  }>, "many">>>;
198
198
  userRef: z.ZodAny;
199
199
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -60,14 +60,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
60
60
  name: string;
61
61
  hidden: boolean;
62
62
  base?: boolean | undefined;
63
- color?: string | undefined;
64
63
  category?: string | null | undefined;
64
+ color?: string | undefined;
65
65
  }, {
66
66
  name: string;
67
67
  hidden: boolean;
68
68
  base?: boolean | undefined;
69
- color?: string | undefined;
70
69
  category?: string | null | undefined;
70
+ color?: string | undefined;
71
71
  }>, "many">>>;
72
72
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73
73
  id: z.ZodString;
@@ -96,14 +96,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
96
96
  name: string;
97
97
  hidden: boolean;
98
98
  base?: boolean | undefined;
99
- color?: string | undefined;
100
99
  category?: string | null | undefined;
100
+ color?: string | undefined;
101
101
  }, {
102
102
  name: string;
103
103
  hidden: boolean;
104
104
  base?: boolean | undefined;
105
- color?: string | undefined;
106
105
  category?: string | null | undefined;
106
+ color?: string | undefined;
107
107
  }>, "many">>>;
108
108
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
109
  id: z.ZodString;
@@ -132,14 +132,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
132
132
  name: string;
133
133
  hidden: boolean;
134
134
  base?: boolean | undefined;
135
- color?: string | undefined;
136
135
  category?: string | null | undefined;
136
+ color?: string | undefined;
137
137
  }, {
138
138
  name: string;
139
139
  hidden: boolean;
140
140
  base?: boolean | undefined;
141
- color?: string | undefined;
142
141
  category?: string | null | undefined;
142
+ color?: string | undefined;
143
143
  }>, "many">>>;
144
144
  }, z.ZodTypeAny, "passthrough">>;
145
145
  export declare const zPatientSourceSchema: z.ZodObject<{