evo360-types 1.3.800 → 1.3.804
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-finops/common/routine-allowance.d.ts +50 -0
- package/dist/types/evo-finops/common/routine-allowance.js +12 -0
- package/dist/types/evo-finops/common/routine-allowance.ts +52 -0
- package/dist/types/evo-finops/index.d.ts +1 -0
- package/dist/types/evo-finops/index.js +1 -0
- package/dist/types/evo-finops/index.ts +1 -0
- package/dist/types/evo-integrations/index.d.ts +1 -1
- package/dist/types/evo-integrations/index.js +1 -1
- package/dist/types/evo-integrations/index.ts +3 -2
- 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.revert_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", "sync.patients"]>;
|
|
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.revert_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", "sync.patients"]>, 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.revert_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", "sync.patients"]>, "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
|
model_ver: number;
|
|
414
414
|
category: "clinic-agenda" | "prontuario" | "misc";
|
|
415
415
|
adapter_version: string;
|
|
416
|
-
default_workflow_urls: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>>;
|
|
417
|
-
supported_capabilities: ("patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
416
|
+
default_workflow_urls: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>>;
|
|
417
|
+
supported_capabilities: ("patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients")[];
|
|
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
|
tenant: string;
|
|
463
463
|
category: "clinic-agenda" | "prontuario" | "misc";
|
|
464
464
|
adapter_version: string;
|
|
465
|
-
supported_capabilities: ("patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
|
|
465
|
+
supported_capabilities: ("patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients")[];
|
|
466
466
|
ref?: any;
|
|
467
467
|
created_at?: Date | null | undefined;
|
|
468
468
|
model_ver?: number | 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<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
472
|
+
default_workflow_urls?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
473
473
|
default_sync_config?: {
|
|
474
474
|
hot?: {
|
|
475
475
|
enabled?: boolean | undefined;
|
|
@@ -945,7 +945,7 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
945
945
|
cadence_minutes?: number | undefined;
|
|
946
946
|
} | undefined;
|
|
947
947
|
}>>>;
|
|
948
|
-
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>>;
|
|
948
|
+
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", "sync.patients"]>, z.ZodString>>;
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
950
|
adapter_id: string;
|
|
951
951
|
credentials_id: string;
|
|
@@ -984,7 +984,7 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
984
984
|
cadence_minutes?: number | undefined;
|
|
985
985
|
} | undefined;
|
|
986
986
|
} | null | undefined;
|
|
987
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
987
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
988
988
|
}, {
|
|
989
989
|
adapter_id: string;
|
|
990
990
|
credentials_id: string;
|
|
@@ -1023,7 +1023,7 @@ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
|
|
|
1023
1023
|
cadence_minutes?: number | undefined;
|
|
1024
1024
|
} | undefined;
|
|
1025
1025
|
} | null | undefined;
|
|
1026
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1026
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
1027
1027
|
}>;
|
|
1028
1028
|
export declare const zLinkModeSchema: z.ZodEnum<["off", "shadow", "write"]>;
|
|
1029
1029
|
export declare const zTenantIntegrationsConfigSchema: z.ZodObject<{
|
|
@@ -1707,7 +1707,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1707
1707
|
cadence_minutes?: number | undefined;
|
|
1708
1708
|
} | undefined;
|
|
1709
1709
|
}>>>;
|
|
1710
|
-
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>>;
|
|
1710
|
+
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", "sync.patients"]>, z.ZodString>>;
|
|
1711
1711
|
}, "strip", z.ZodTypeAny, {
|
|
1712
1712
|
adapter_id: string;
|
|
1713
1713
|
credentials_id: string;
|
|
@@ -1746,7 +1746,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1746
1746
|
cadence_minutes?: number | undefined;
|
|
1747
1747
|
} | undefined;
|
|
1748
1748
|
} | null | undefined;
|
|
1749
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1749
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
1750
1750
|
}, {
|
|
1751
1751
|
adapter_id: string;
|
|
1752
1752
|
credentials_id: string;
|
|
@@ -1785,7 +1785,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
1785
1785
|
cadence_minutes?: number | undefined;
|
|
1786
1786
|
} | undefined;
|
|
1787
1787
|
} | null | undefined;
|
|
1788
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
1788
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
1789
1789
|
}>>>;
|
|
1790
1790
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1791
1791
|
whatsapp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3460,7 +3460,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
3460
3460
|
cadence_minutes?: number | undefined;
|
|
3461
3461
|
} | undefined;
|
|
3462
3462
|
}>>>;
|
|
3463
|
-
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>>;
|
|
3463
|
+
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", "sync.patients"]>, z.ZodString>>;
|
|
3464
3464
|
}, "strip", z.ZodTypeAny, {
|
|
3465
3465
|
adapter_id: string;
|
|
3466
3466
|
credentials_id: string;
|
|
@@ -3499,7 +3499,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
3499
3499
|
cadence_minutes?: number | undefined;
|
|
3500
3500
|
} | undefined;
|
|
3501
3501
|
} | null | undefined;
|
|
3502
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
3502
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
3503
3503
|
}, {
|
|
3504
3504
|
adapter_id: string;
|
|
3505
3505
|
credentials_id: string;
|
|
@@ -3538,7 +3538,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
3538
3538
|
cadence_minutes?: number | undefined;
|
|
3539
3539
|
} | undefined;
|
|
3540
3540
|
} | null | undefined;
|
|
3541
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
3541
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
3542
3542
|
}>>>;
|
|
3543
3543
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3544
3544
|
whatsapp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -5213,7 +5213,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
5213
5213
|
cadence_minutes?: number | undefined;
|
|
5214
5214
|
} | undefined;
|
|
5215
5215
|
}>>>;
|
|
5216
|
-
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>>;
|
|
5216
|
+
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", "sync.patients"]>, z.ZodString>>;
|
|
5217
5217
|
}, "strip", z.ZodTypeAny, {
|
|
5218
5218
|
adapter_id: string;
|
|
5219
5219
|
credentials_id: string;
|
|
@@ -5252,7 +5252,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
5252
5252
|
cadence_minutes?: number | undefined;
|
|
5253
5253
|
} | undefined;
|
|
5254
5254
|
} | null | undefined;
|
|
5255
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
5255
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
5256
5256
|
}, {
|
|
5257
5257
|
adapter_id: string;
|
|
5258
5258
|
credentials_id: string;
|
|
@@ -5291,7 +5291,7 @@ export declare const zMedCalendarSchema: z.ZodObject<{
|
|
|
5291
5291
|
cadence_minutes?: number | undefined;
|
|
5292
5292
|
} | undefined;
|
|
5293
5293
|
} | null | undefined;
|
|
5294
|
-
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
|
|
5294
|
+
workflow_overrides?: Partial<Record<"patient.list" | "patient.get" | "appointment.list" | "appointment.create" | "appointment.get" | "appointment.update" | "appointment.confirm" | "appointment.revert_confirm" | "appointment.cancel" | "patient.create" | "patient.update" | "appointment.reschedule" | "patient.document.upload" | "payment.update" | "sync.appointments" | "sync.patients", string>> | undefined;
|
|
5295
5295
|
}>>>;
|
|
5296
5296
|
notification_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5297
5297
|
whatsapp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* feat-333 F3 — aviso ao ativar rotina além da franquia.
|
|
3
|
+
*
|
|
4
|
+
* `POST evo_billing/me/automation/routine-allowance` devolve esta conta a quem pode
|
|
5
|
+
* ativar rotina (`hub_automation_write`), sem expor o resto do contrato. Os números
|
|
6
|
+
* vêm do extrato do mês corrente (mesmo motor da cobrança) e da contagem de rotinas
|
|
7
|
+
* ativas no Firestore.
|
|
8
|
+
*
|
|
9
|
+
* O aviso não bloqueia: a cobrança vem do pico registrado nos eventos, não do aceite.
|
|
10
|
+
*/
|
|
11
|
+
/** Resposta da consulta do aviso. Valores em reais. */
|
|
12
|
+
export interface IRoutineAllowanceCheck {
|
|
13
|
+
/**
|
|
14
|
+
* `false` = sem aviso possível: tenant sem cliente ou sem contrato no mês, contrato
|
|
15
|
+
* sem franquia de rotinas, tabela sem preço da métrica ou contrato em `trial`.
|
|
16
|
+
*/
|
|
17
|
+
applies: boolean;
|
|
18
|
+
/** `YYYY-MM`, horário de Brasília. */
|
|
19
|
+
competency: string;
|
|
20
|
+
/** Franquia somada dos contratos vigentes. `null` quando não há. */
|
|
21
|
+
included: number | null;
|
|
22
|
+
/** Preço por rotina acima da franquia, por mês. `null` quando não há. */
|
|
23
|
+
unit_price: number | null;
|
|
24
|
+
/** Pico de rotinas ativas no mês até agora. `null` = série indisponível. */
|
|
25
|
+
peak_month: number | null;
|
|
26
|
+
/** Rotinas ativas agora. */
|
|
27
|
+
active_now: number;
|
|
28
|
+
/** Quantas das rotinas pedidas estão inativas (as que a ativação liga). */
|
|
29
|
+
adding: number;
|
|
30
|
+
/** `active_now + adding`. */
|
|
31
|
+
active_after: number;
|
|
32
|
+
/** `applies && active_after > included`: a tela mostra o aviso. */
|
|
33
|
+
exceeds: boolean;
|
|
34
|
+
/** Quanto a ativação acrescenta à cobrança deste mês (pode ser 0 se o pico já estava acima). */
|
|
35
|
+
extra_this_month: number;
|
|
36
|
+
/** Excedente mensal enquanto as rotinas ficarem ativas: `max(0, active_after − included) × unit_price`. */
|
|
37
|
+
monthly_after: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* O que a pessoa viu e aceitou, enviado no corpo de
|
|
41
|
+
* `POST hub_automation_admin/routines/:id/activate` e gravado em
|
|
42
|
+
* `params.allowance_ack` do evento `routine.activated` (autor e hora já estão no evento).
|
|
43
|
+
*/
|
|
44
|
+
export interface IRoutineAllowanceAck {
|
|
45
|
+
competency: string;
|
|
46
|
+
included: number;
|
|
47
|
+
unit_price: number;
|
|
48
|
+
active_after: number;
|
|
49
|
+
extra_this_month: number;
|
|
50
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* feat-333 F3 — aviso ao ativar rotina além da franquia.
|
|
4
|
+
*
|
|
5
|
+
* `POST evo_billing/me/automation/routine-allowance` devolve esta conta a quem pode
|
|
6
|
+
* ativar rotina (`hub_automation_write`), sem expor o resto do contrato. Os números
|
|
7
|
+
* vêm do extrato do mês corrente (mesmo motor da cobrança) e da contagem de rotinas
|
|
8
|
+
* ativas no Firestore.
|
|
9
|
+
*
|
|
10
|
+
* O aviso não bloqueia: a cobrança vem do pico registrado nos eventos, não do aceite.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* feat-333 F3 — aviso ao ativar rotina além da franquia.
|
|
3
|
+
*
|
|
4
|
+
* `POST evo_billing/me/automation/routine-allowance` devolve esta conta a quem pode
|
|
5
|
+
* ativar rotina (`hub_automation_write`), sem expor o resto do contrato. Os números
|
|
6
|
+
* vêm do extrato do mês corrente (mesmo motor da cobrança) e da contagem de rotinas
|
|
7
|
+
* ativas no Firestore.
|
|
8
|
+
*
|
|
9
|
+
* O aviso não bloqueia: a cobrança vem do pico registrado nos eventos, não do aceite.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** Resposta da consulta do aviso. Valores em reais. */
|
|
13
|
+
export interface IRoutineAllowanceCheck {
|
|
14
|
+
/**
|
|
15
|
+
* `false` = sem aviso possível: tenant sem cliente ou sem contrato no mês, contrato
|
|
16
|
+
* sem franquia de rotinas, tabela sem preço da métrica ou contrato em `trial`.
|
|
17
|
+
*/
|
|
18
|
+
applies: boolean;
|
|
19
|
+
/** `YYYY-MM`, horário de Brasília. */
|
|
20
|
+
competency: string;
|
|
21
|
+
/** Franquia somada dos contratos vigentes. `null` quando não há. */
|
|
22
|
+
included: number | null;
|
|
23
|
+
/** Preço por rotina acima da franquia, por mês. `null` quando não há. */
|
|
24
|
+
unit_price: number | null;
|
|
25
|
+
/** Pico de rotinas ativas no mês até agora. `null` = série indisponível. */
|
|
26
|
+
peak_month: number | null;
|
|
27
|
+
/** Rotinas ativas agora. */
|
|
28
|
+
active_now: number;
|
|
29
|
+
/** Quantas das rotinas pedidas estão inativas (as que a ativação liga). */
|
|
30
|
+
adding: number;
|
|
31
|
+
/** `active_now + adding`. */
|
|
32
|
+
active_after: number;
|
|
33
|
+
/** `applies && active_after > included`: a tela mostra o aviso. */
|
|
34
|
+
exceeds: boolean;
|
|
35
|
+
/** Quanto a ativação acrescenta à cobrança deste mês (pode ser 0 se o pico já estava acima). */
|
|
36
|
+
extra_this_month: number;
|
|
37
|
+
/** Excedente mensal enquanto as rotinas ficarem ativas: `max(0, active_after − included) × unit_price`. */
|
|
38
|
+
monthly_after: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* O que a pessoa viu e aceitou, enviado no corpo de
|
|
43
|
+
* `POST hub_automation_admin/routines/:id/activate` e gravado em
|
|
44
|
+
* `params.allowance_ack` do evento `routine.activated` (autor e hora já estão no evento).
|
|
45
|
+
*/
|
|
46
|
+
export interface IRoutineAllowanceAck {
|
|
47
|
+
competency: string;
|
|
48
|
+
included: number;
|
|
49
|
+
unit_price: number;
|
|
50
|
+
active_after: number;
|
|
51
|
+
extra_this_month: number;
|
|
52
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./common/taker";
|
|
|
4
4
|
export * from "./common/contract";
|
|
5
5
|
export * from "./common/price-table";
|
|
6
6
|
export * from "./common/billing-statement";
|
|
7
|
+
export * from "./common/routine-allowance";
|
|
7
8
|
export * from "./common/proposal";
|
|
8
9
|
export * from "./common/billing";
|
|
9
10
|
export * from "./common/payment-method";
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./common/taker"), exports);
|
|
|
21
21
|
__exportStar(require("./common/contract"), exports);
|
|
22
22
|
__exportStar(require("./common/price-table"), exports);
|
|
23
23
|
__exportStar(require("./common/billing-statement"), exports);
|
|
24
|
+
__exportStar(require("./common/routine-allowance"), exports);
|
|
24
25
|
__exportStar(require("./common/proposal"), exports);
|
|
25
26
|
__exportStar(require("./common/billing"), exports);
|
|
26
27
|
__exportStar(require("./common/payment-method"), exports);
|
|
@@ -6,6 +6,7 @@ export * from "./common/taker";
|
|
|
6
6
|
export * from "./common/contract";
|
|
7
7
|
export * from "./common/price-table";
|
|
8
8
|
export * from "./common/billing-statement";
|
|
9
|
+
export * from "./common/routine-allowance";
|
|
9
10
|
export * from "./common/proposal";
|
|
10
11
|
export * from "./common/billing";
|
|
11
12
|
export * from "./common/payment-method";
|
|
@@ -13,7 +13,7 @@ export type EvoIntegrationsPermissions = (typeof EvoIntegrationsPermissions)[key
|
|
|
13
13
|
export declare const SYNC_RUN_PUBSUB_TOPIC = "evo-integrations.sync_runs";
|
|
14
14
|
export declare const SYNC_RUN_HANDLER = "evo-integrations.sync-run";
|
|
15
15
|
export type CapabilityEntity = "appointment" | "patient" | "payment" | "sync";
|
|
16
|
-
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
|
+
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" | "sync.patients";
|
|
17
17
|
/**
|
|
18
18
|
* Capabilities obrigatórias em qualquer adapter. Sem elas, o adapter
|
|
19
19
|
* não pode ser ativado. `appointment.get` é fundamental pra auto-deleção
|
|
@@ -64,7 +64,7 @@ exports.OBLIGATORY_CAPABILITIES = [
|
|
|
64
64
|
* via sync engine / task-runner).
|
|
65
65
|
*/
|
|
66
66
|
function isInternalCapability(name) {
|
|
67
|
-
return name === "sync.appointments";
|
|
67
|
+
return name === "sync.appointments" || name === "sync.patients";
|
|
68
68
|
}
|
|
69
69
|
function splitCapabilityName(name) {
|
|
70
70
|
const [entity, ...rest] = name.split(".");
|
|
@@ -57,7 +57,8 @@ export type CapabilityName =
|
|
|
57
57
|
| "patient.delete"
|
|
58
58
|
| "patient.document.upload"
|
|
59
59
|
| "payment.update"
|
|
60
|
-
| "sync.appointments"
|
|
60
|
+
| "sync.appointments"
|
|
61
|
+
| "sync.patients";
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* Capabilities obrigatórias em qualquer adapter. Sem elas, o adapter
|
|
@@ -79,7 +80,7 @@ export const OBLIGATORY_CAPABILITIES: readonly CapabilityName[] = [
|
|
|
79
80
|
* via sync engine / task-runner).
|
|
80
81
|
*/
|
|
81
82
|
export function isInternalCapability(name: CapabilityName): boolean {
|
|
82
|
-
return name === "sync.appointments";
|
|
83
|
+
return name === "sync.appointments" || name === "sync.patients";
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export function splitCapabilityName(name: CapabilityName): {
|