evo360-types 1.3.460 → 1.3.463

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.
@@ -97,7 +97,7 @@ export declare const zAppointmentPaymentSchema: z.ZodObject<{
97
97
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
98
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
99
99
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
100
- payment_type: z.ZodEnum<["patient", "insurance"]>;
100
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
101
101
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
102
  invoiceId: z.ZodString;
103
103
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -120,7 +120,7 @@ export declare const zAppointmentPaymentSchema: z.ZodObject<{
120
120
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
121
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
122
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
123
- payment_type: z.ZodEnum<["patient", "insurance"]>;
123
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
124
124
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
125
  invoiceId: z.ZodString;
126
126
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -143,7 +143,7 @@ export declare const zAppointmentPaymentSchema: z.ZodObject<{
143
143
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
144
144
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
145
145
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
146
- payment_type: z.ZodEnum<["patient", "insurance"]>;
146
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
147
147
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
148
148
  invoiceId: z.ZodString;
149
149
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -511,7 +511,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
511
511
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
512
512
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
513
513
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
514
- payment_type: z.ZodEnum<["patient", "insurance"]>;
514
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
515
515
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
516
  invoiceId: z.ZodString;
517
517
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -534,7 +534,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
534
534
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
535
535
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
536
536
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
537
- payment_type: z.ZodEnum<["patient", "insurance"]>;
537
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
538
538
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
539
539
  invoiceId: z.ZodString;
540
540
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -557,7 +557,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
557
557
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
558
558
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
559
559
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
560
- payment_type: z.ZodEnum<["patient", "insurance"]>;
560
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
561
561
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
562
562
  invoiceId: z.ZodString;
563
563
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -847,7 +847,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
847
847
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
848
848
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
849
849
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
850
- payment_type: z.ZodEnum<["patient", "insurance"]>;
850
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
851
851
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
852
852
  invoiceId: z.ZodString;
853
853
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -870,7 +870,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
870
870
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
871
871
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
872
872
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
873
- payment_type: z.ZodEnum<["patient", "insurance"]>;
873
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
874
874
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
875
875
  invoiceId: z.ZodString;
876
876
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -893,7 +893,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
893
893
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
894
894
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
895
895
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
896
- payment_type: z.ZodEnum<["patient", "insurance"]>;
896
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
897
897
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
898
898
  invoiceId: z.ZodString;
899
899
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1183,7 +1183,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
1183
1183
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1184
1184
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1185
1185
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1186
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1186
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1187
1187
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1188
1188
  invoiceId: z.ZodString;
1189
1189
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1206,7 +1206,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
1206
1206
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1207
1207
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1208
1208
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1209
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1209
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1210
1210
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1211
1211
  invoiceId: z.ZodString;
1212
1212
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1229,7 +1229,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
1229
1229
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1230
1230
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1231
1231
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1232
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1232
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1233
1233
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1234
1234
  invoiceId: z.ZodString;
1235
1235
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1342,7 +1342,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1342
1342
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1343
1343
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1344
1344
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1345
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1345
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1346
1346
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1347
1347
  invoiceId: z.ZodString;
1348
1348
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1365,7 +1365,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1365
1365
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1366
1366
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1367
1367
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1368
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1368
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1369
1369
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1370
1370
  invoiceId: z.ZodString;
1371
1371
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1388,7 +1388,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1388
1388
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1389
1389
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1390
1390
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1391
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1391
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1392
1392
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1393
1393
  invoiceId: z.ZodString;
1394
1394
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1426,7 +1426,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1426
1426
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1427
1427
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1428
1428
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1429
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1429
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1430
1430
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1431
1431
  invoiceId: z.ZodString;
1432
1432
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1449,7 +1449,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1449
1449
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1450
1450
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1451
1451
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1452
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1452
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1453
1453
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1454
1454
  invoiceId: z.ZodString;
1455
1455
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1472,7 +1472,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1472
1472
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1473
1473
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1474
1474
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1475
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1475
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1476
1476
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1477
1477
  invoiceId: z.ZodString;
1478
1478
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1510,7 +1510,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1510
1510
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1511
1511
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1512
1512
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1513
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1513
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1514
1514
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1515
1515
  invoiceId: z.ZodString;
1516
1516
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1533,7 +1533,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1533
1533
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1534
1534
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1535
1535
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1536
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1536
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1537
1537
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1538
1538
  invoiceId: z.ZodString;
1539
1539
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -1556,7 +1556,7 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
1556
1556
  paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1557
1557
  due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1558
1558
  status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
1559
- payment_type: z.ZodEnum<["patient", "insurance"]>;
1559
+ payment_type: z.ZodOptional<z.ZodEnum<["patient", "insurance"]>>;
1560
1560
  invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1561
1561
  invoiceId: z.ZodString;
1562
1562
  invoiceRef: z.ZodOptional<z.ZodAny>;
@@ -99,7 +99,11 @@ exports.zAppointmentPaymentSchema = zod_1.z
99
99
  paid: zod_1.z.number().nullable().optional(),
100
100
  due: zod_1.z.number().nullable().optional(),
101
101
  status: exports.zAppointmentPaymentStatusSchema.optional(),
102
- payment_type: zod_1.z.enum(["patient", "insurance"]),
102
+ // Opcional: `payment: { invoices: [...] }` (fatura emitida, forma de
103
+ // pagamento ainda nao definida) e estado legitimo — o backend ja grava
104
+ // assim. Exigir o campo fazia o FE descartar o appointment inteiro no
105
+ // parseDoc e sumir com ele da agenda.
106
+ payment_type: zod_1.z.enum(["patient", "insurance"]).optional(),
103
107
  invoices: zod_1.z.array(exports.zAppointmentPaymentInvoiceRefSchema).optional(),
104
108
  metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
105
109
  })
@@ -110,7 +110,11 @@ export const zAppointmentPaymentSchema = z
110
110
  paid: z.number().nullable().optional(),
111
111
  due: z.number().nullable().optional(),
112
112
  status: zAppointmentPaymentStatusSchema.optional(),
113
- payment_type: z.enum(["patient", "insurance"]),
113
+ // Opcional: `payment: { invoices: [...] }` (fatura emitida, forma de
114
+ // pagamento ainda nao definida) e estado legitimo — o backend ja grava
115
+ // assim. Exigir o campo fazia o FE descartar o appointment inteiro no
116
+ // parseDoc e sumir com ele da agenda.
117
+ payment_type: z.enum(["patient", "insurance"]).optional(),
114
118
  invoices: z.array(zAppointmentPaymentInvoiceRefSchema).optional(),
115
119
  metadata: z.record(z.unknown()).optional(),
116
120
  })
@@ -93,7 +93,8 @@ export interface IAppointmentPayment {
93
93
  paid?: number | null;
94
94
  due?: number | null;
95
95
  status?: AppointmentPaymentStatus;
96
- payment_type: PaymentType;
96
+ /** Opcional: `{ invoices: [...] }` sem forma de pagamento definida e estado valido. */
97
+ payment_type?: PaymentType;
97
98
  /** Correspondência com invoices do evo-finops (NFSe) vinculadas a este pagamento */
98
99
  invoices?: IAppointmentPaymentInvoiceRef[];
99
100
  /** Quando o pagamento foi marcado como pago (ISO 8601 ou Date). */
@@ -127,7 +127,8 @@ export interface IAppointmentPayment {
127
127
  paid?: number | null;
128
128
  due?: number | null;
129
129
  status?: AppointmentPaymentStatus;
130
- payment_type: PaymentType;
130
+ /** Opcional: `{ invoices: [...] }` sem forma de pagamento definida e estado valido. */
131
+ payment_type?: PaymentType;
131
132
  /** Correspondência com invoices do evo-finops (NFSe) vinculadas a este pagamento */
132
133
  invoices?: IAppointmentPaymentInvoiceRef[];
133
134
  /** Quando o pagamento foi marcado como pago (ISO 8601 ou Date). */
@@ -88,6 +88,12 @@ export interface IMedCalendarNotificationCta {
88
88
  */
89
89
  export declare const MedCalendarNotificationConfigKeys: {
90
90
  readonly AppointmentReminder: "appointment_reminder";
91
+ /**
92
+ * feat-100 — PEDIDO de confirmação (HSM com CTAs confirmar/remarcar, disparado
93
+ * por rotina). Distinto do futuro `appointment_confirmed`, que é o EVENTO
94
+ * "paciente confirmou".
95
+ */
96
+ readonly AppointmentConfirmation: "appointment_confirmation";
91
97
  readonly AppointmentCreated: "appointment_created";
92
98
  readonly AppointmentRescheduled: "appointment_rescheduled";
93
99
  readonly AppointmentCancelled: "appointment_cancelled";
@@ -31,6 +31,12 @@ exports.EvoMedCalendarPermissions = {
31
31
  */
32
32
  exports.MedCalendarNotificationConfigKeys = {
33
33
  AppointmentReminder: "appointment_reminder",
34
+ /**
35
+ * feat-100 — PEDIDO de confirmação (HSM com CTAs confirmar/remarcar, disparado
36
+ * por rotina). Distinto do futuro `appointment_confirmed`, que é o EVENTO
37
+ * "paciente confirmou".
38
+ */
39
+ AppointmentConfirmation: "appointment_confirmation",
34
40
  AppointmentCreated: "appointment_created",
35
41
  AppointmentRescheduled: "appointment_rescheduled",
36
42
  AppointmentCancelled: "appointment_cancelled",
@@ -106,6 +106,12 @@ export interface IMedCalendarNotificationCta {
106
106
  */
107
107
  export const MedCalendarNotificationConfigKeys = {
108
108
  AppointmentReminder: "appointment_reminder",
109
+ /**
110
+ * feat-100 — PEDIDO de confirmação (HSM com CTAs confirmar/remarcar, disparado
111
+ * por rotina). Distinto do futuro `appointment_confirmed`, que é o EVENTO
112
+ * "paciente confirmou".
113
+ */
114
+ AppointmentConfirmation: "appointment_confirmation",
109
115
  AppointmentCreated: "appointment_created",
110
116
  AppointmentRescheduled: "appointment_rescheduled",
111
117
  AppointmentCancelled: "appointment_cancelled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.460",
3
+ "version": "1.3.463",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",