evo360-types 1.3.425 → 1.3.431
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/apps/evo-integrations/zod-schemas.d.ts +10 -10
- package/dist/apps/evo-integrations/zod-schemas.js +1 -0
- package/dist/apps/evo-integrations/zod-schemas.ts +1 -0
- package/dist/apps/evo-med/calendar/zod-schemas.d.ts +9 -9
- package/dist/types/evo-integrations/index.d.ts +1 -1
- package/dist/types/evo-integrations/index.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const zCapabilityNameSchema: z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>;
|
|
2
|
+
export declare const zCapabilityNameSchema: z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>;
|
|
3
3
|
export declare const zSyncWindowConfigSchema: z.ZodObject<{
|
|
4
4
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
cadence_minutes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -222,7 +222,7 @@ export declare const zIntegrationsAdapterDocSchema: z.ZodObject<{
|
|
|
222
222
|
category: z.ZodEnum<["clinic-agenda", "prontuario", "misc"]>;
|
|
223
223
|
status: z.ZodEnum<["active", "disabled", "beta"]>;
|
|
224
224
|
adapter_version: z.ZodString;
|
|
225
|
-
default_workflow_urls: z.ZodDefault<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
225
|
+
default_workflow_urls: z.ZodDefault<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
226
226
|
default_sync_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
227
227
|
hot: z.ZodOptional<z.ZodObject<{
|
|
228
228
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -403,7 +403,7 @@ export declare const zIntegrationsAdapterDocSchema: z.ZodObject<{
|
|
|
403
403
|
cadence_minutes?: number | undefined;
|
|
404
404
|
} | undefined;
|
|
405
405
|
}>>>;
|
|
406
|
-
supported_capabilities: z.ZodArray<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, "many">;
|
|
406
|
+
supported_capabilities: z.ZodArray<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, "many">;
|
|
407
407
|
auth_schema_version: z.ZodOptional<z.ZodNumber>;
|
|
408
408
|
}, "strip", z.ZodTypeAny, {
|
|
409
409
|
name: string;
|
|
@@ -413,8 +413,8 @@ export declare const zIntegrationsAdapterDocSchema: z.ZodObject<{
|
|
|
413
413
|
status: "active" | "disabled" | "beta";
|
|
414
414
|
category: "clinic-agenda" | "prontuario" | "misc";
|
|
415
415
|
adapter_version: string;
|
|
416
|
-
default_workflow_urls: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>>;
|
|
417
|
-
supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
416
|
+
default_workflow_urls: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>>;
|
|
417
|
+
supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
418
418
|
ref?: any;
|
|
419
419
|
created_at?: Date | null | undefined;
|
|
420
420
|
updated_at?: Date | null | undefined;
|
|
@@ -462,14 +462,14 @@ export declare const zIntegrationsAdapterDocSchema: z.ZodObject<{
|
|
|
462
462
|
status: "active" | "disabled" | "beta";
|
|
463
463
|
category: "clinic-agenda" | "prontuario" | "misc";
|
|
464
464
|
adapter_version: string;
|
|
465
|
-
supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
465
|
+
supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
466
466
|
ref?: any;
|
|
467
467
|
model_ver?: number | undefined;
|
|
468
468
|
created_at?: Date | null | undefined;
|
|
469
469
|
updated_at?: Date | null | undefined;
|
|
470
470
|
deleted_at?: Date | null | undefined;
|
|
471
471
|
description?: string | undefined;
|
|
472
|
-
default_workflow_urls?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
472
|
+
default_workflow_urls?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
473
473
|
default_sync_config?: {
|
|
474
474
|
hot?: {
|
|
475
475
|
enabled?: boolean | undefined;
|
|
@@ -942,7 +942,7 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
942
942
|
cadence_minutes?: number | undefined;
|
|
943
943
|
} | undefined;
|
|
944
944
|
}>>>;
|
|
945
|
-
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
945
|
+
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
946
946
|
}, "strip", z.ZodTypeAny, {
|
|
947
947
|
adapter_id: string;
|
|
948
948
|
credentials_id: string;
|
|
@@ -981,7 +981,7 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
981
981
|
cadence_minutes?: number | undefined;
|
|
982
982
|
} | undefined;
|
|
983
983
|
} | null | undefined;
|
|
984
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
984
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
985
985
|
}, {
|
|
986
986
|
adapter_id: string;
|
|
987
987
|
credentials_id: string;
|
|
@@ -1020,5 +1020,5 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
1020
1020
|
cadence_minutes?: number | undefined;
|
|
1021
1021
|
} | undefined;
|
|
1022
1022
|
} | null | undefined;
|
|
1023
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1023
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1024
1024
|
}>;
|
|
@@ -383,7 +383,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
383
383
|
cadence_minutes?: number | undefined;
|
|
384
384
|
} | undefined;
|
|
385
385
|
}>>>;
|
|
386
|
-
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
386
|
+
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
387
387
|
}, "strip", z.ZodTypeAny, {
|
|
388
388
|
adapter_id: string;
|
|
389
389
|
credentials_id: string;
|
|
@@ -422,7 +422,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
422
422
|
cadence_minutes?: number | undefined;
|
|
423
423
|
} | undefined;
|
|
424
424
|
} | null | undefined;
|
|
425
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
425
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
426
426
|
}, {
|
|
427
427
|
adapter_id: string;
|
|
428
428
|
credentials_id: string;
|
|
@@ -461,7 +461,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
461
461
|
cadence_minutes?: number | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
} | null | undefined;
|
|
464
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
464
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
465
465
|
}>>>;
|
|
466
466
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
467
467
|
whatsapp: z.ZodOptional<z.ZodObject<{
|
|
@@ -847,7 +847,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
847
847
|
cadence_minutes?: number | undefined;
|
|
848
848
|
} | undefined;
|
|
849
849
|
}>>>;
|
|
850
|
-
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
850
|
+
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
851
851
|
}, "strip", z.ZodTypeAny, {
|
|
852
852
|
adapter_id: string;
|
|
853
853
|
credentials_id: string;
|
|
@@ -886,7 +886,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
886
886
|
cadence_minutes?: number | undefined;
|
|
887
887
|
} | undefined;
|
|
888
888
|
} | null | undefined;
|
|
889
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
889
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
890
890
|
}, {
|
|
891
891
|
adapter_id: string;
|
|
892
892
|
credentials_id: string;
|
|
@@ -925,7 +925,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
925
925
|
cadence_minutes?: number | undefined;
|
|
926
926
|
} | undefined;
|
|
927
927
|
} | null | undefined;
|
|
928
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
928
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
929
929
|
}>>>;
|
|
930
930
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
931
931
|
whatsapp: z.ZodOptional<z.ZodObject<{
|
|
@@ -1311,7 +1311,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1311
1311
|
cadence_minutes?: number | undefined;
|
|
1312
1312
|
} | undefined;
|
|
1313
1313
|
}>>>;
|
|
1314
|
-
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
1314
|
+
workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.revert_confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
|
|
1315
1315
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1316
|
adapter_id: string;
|
|
1317
1317
|
credentials_id: string;
|
|
@@ -1350,7 +1350,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1350
1350
|
cadence_minutes?: number | undefined;
|
|
1351
1351
|
} | undefined;
|
|
1352
1352
|
} | null | undefined;
|
|
1353
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1353
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1354
1354
|
}, {
|
|
1355
1355
|
adapter_id: string;
|
|
1356
1356
|
credentials_id: string;
|
|
@@ -1389,7 +1389,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1389
1389
|
cadence_minutes?: number | undefined;
|
|
1390
1390
|
} | undefined;
|
|
1391
1391
|
} | null | undefined;
|
|
1392
|
-
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1392
|
+
workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1393
1393
|
}>>>;
|
|
1394
1394
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1395
1395
|
whatsapp: z.ZodOptional<z.ZodObject<{
|
|
@@ -12,7 +12,7 @@ export type EvoIntegrationsPermissions = (typeof EvoIntegrationsPermissions)[key
|
|
|
12
12
|
export declare const SYNC_RUN_PUBSUB_TOPIC = "evo-integrations.sync_runs";
|
|
13
13
|
export declare const SYNC_RUN_HANDLER = "evo-integrations.sync-run";
|
|
14
14
|
export type CapabilityEntity = "appointment" | "patient" | "payment" | "sync";
|
|
15
|
-
export type CapabilityName = "appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.delete" | "patient.document.upload" | "payment.update" | "sync.appointments";
|
|
15
|
+
export type CapabilityName = "appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.delete" | "patient.document.upload" | "payment.update" | "sync.appointments";
|
|
16
16
|
/**
|
|
17
17
|
* Capabilities obrigatórias em qualquer adapter. Sem elas, o adapter
|
|
18
18
|
* não pode ser ativado. `appointment.get` é fundamental pra auto-deleção
|