evo360-types 1.3.86 → 1.3.88

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.
@@ -153,6 +153,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
153
153
  }, {
154
154
  code: z.ZodString;
155
155
  name: z.ZodString;
156
+ order: z.ZodNumber;
156
157
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
158
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
158
159
  name: z.ZodString;
@@ -184,6 +185,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
184
185
  }, {
185
186
  code: z.ZodString;
186
187
  name: z.ZodString;
188
+ order: z.ZodNumber;
187
189
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
190
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
189
191
  name: z.ZodString;
@@ -215,6 +217,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
215
217
  }, {
216
218
  code: z.ZodString;
217
219
  name: z.ZodString;
220
+ order: z.ZodNumber;
218
221
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
222
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
220
223
  name: z.ZodString;
@@ -247,6 +250,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
247
250
  }, {
248
251
  code: z.ZodString;
249
252
  name: z.ZodString;
253
+ order: z.ZodNumber;
250
254
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
255
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
252
256
  name: z.ZodString;
@@ -278,6 +282,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
278
282
  }, {
279
283
  code: z.ZodString;
280
284
  name: z.ZodString;
285
+ order: z.ZodNumber;
281
286
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
287
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
283
288
  name: z.ZodString;
@@ -309,6 +314,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
309
314
  }, {
310
315
  code: z.ZodString;
311
316
  name: z.ZodString;
317
+ order: z.ZodNumber;
312
318
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
319
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
314
320
  name: z.ZodString;
@@ -341,6 +347,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
341
347
  }, {
342
348
  code: z.ZodString;
343
349
  name: z.ZodString;
350
+ order: z.ZodNumber;
344
351
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
352
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
346
353
  name: z.ZodString;
@@ -372,6 +379,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
372
379
  }, {
373
380
  code: z.ZodString;
374
381
  name: z.ZodString;
382
+ order: z.ZodNumber;
375
383
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
384
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
377
385
  name: z.ZodString;
@@ -403,6 +411,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
403
411
  }, {
404
412
  code: z.ZodString;
405
413
  name: z.ZodString;
414
+ order: z.ZodNumber;
406
415
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
416
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
408
417
  name: z.ZodString;
@@ -677,7 +686,7 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
677
686
  name: z.ZodString;
678
687
  color: z.ZodOptional<z.ZodString>;
679
688
  payment_type: z.ZodEnum<["patient", "insurance"]>;
680
- order: z.ZodOptional<z.ZodNumber>;
689
+ order: z.ZodNumber;
681
690
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
691
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
683
692
  id: z.ZodString;
@@ -692,7 +701,7 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
692
701
  name: z.ZodString;
693
702
  color: z.ZodOptional<z.ZodString>;
694
703
  payment_type: z.ZodEnum<["patient", "insurance"]>;
695
- order: z.ZodOptional<z.ZodNumber>;
704
+ order: z.ZodNumber;
696
705
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
706
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
698
707
  id: z.ZodString;
@@ -707,6 +716,6 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
707
716
  name: z.ZodString;
708
717
  color: z.ZodOptional<z.ZodString>;
709
718
  payment_type: z.ZodEnum<["patient", "insurance"]>;
710
- order: z.ZodOptional<z.ZodNumber>;
719
+ order: z.ZodNumber;
711
720
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
721
  }>, z.ZodTypeAny, "passthrough">>;
@@ -26,6 +26,7 @@ exports.zPatientSourceSchema = zod_schemas_1.zFireDocSchema
26
26
  .extend({
27
27
  code: zod_1.z.string().min(1).max(20),
28
28
  name: zod_1.z.string().min(1).max(255),
29
+ order: zod_1.z.number().min(0).max(100),
29
30
  external_id: zod_1.z.string().nullable().optional(),
30
31
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
31
32
  })
@@ -34,6 +35,7 @@ exports.zAppointmentSourceSchema = zod_schemas_1.zFireDocSchema
34
35
  .extend({
35
36
  code: zod_1.z.string().min(1).max(20),
36
37
  name: zod_1.z.string().min(1).max(255),
38
+ order: zod_1.z.number().min(0).max(100),
37
39
  external_id: zod_1.z.string().nullable().optional(),
38
40
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
39
41
  })
@@ -42,6 +44,7 @@ exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
42
44
  .extend({
43
45
  code: zod_1.z.string().min(1).max(20),
44
46
  name: zod_1.z.string().min(1).max(255),
47
+ order: zod_1.z.number().min(0).max(100),
45
48
  external_id: zod_1.z.string().nullable().optional(),
46
49
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
47
50
  })
@@ -86,14 +89,14 @@ exports.zDicAppointmentTypeBaseSchema = zod_1.z.enum([
86
89
  // Schema para IAppointmentStatus (status customizados do usuário)
87
90
  exports.zAppointmentStatusSchema = zod_schemas_1.zFireDocSchema.extend({
88
91
  name: zod_1.z.string().min(1).max(255),
89
- order: zod_1.z.number(),
92
+ order: zod_1.z.number().min(0).max(100),
90
93
  external_id: zod_1.z.string().nullable().optional(),
91
94
  base_type: exports.zDicAppointmentStatusTypeSchema,
92
95
  });
93
96
  // Schema para IAppointmentType (tipos customizados do usuário)
94
97
  exports.zAppointmentTypeSchema = zod_schemas_1.zFireDocSchema.extend({
95
98
  name: zod_1.z.string().min(1).max(255),
96
- order: zod_1.z.number(),
99
+ order: zod_1.z.number().min(0).max(100),
97
100
  external_id: zod_1.z.string().nullable().optional(),
98
101
  base_type: exports.zDicAppointmentTypeBaseSchema,
99
102
  });
@@ -170,7 +173,7 @@ exports.zInsuranceSchema = zod_schemas_1.zFireDocSchema
170
173
  name: zod_1.z.string().min(1).max(255),
171
174
  color: zod_1.z.string().max(20).optional(),
172
175
  payment_type: exports.zInsurancePaymentTypeSchema,
173
- order: zod_1.z.number().optional(),
176
+ order: zod_1.z.number().min(0).max(100),
174
177
  external_id: zod_1.z.string().nullable().optional(),
175
178
  })
176
179
  .passthrough();
@@ -26,6 +26,7 @@ export const zPatientSourceSchema = zFireDocSchema
26
26
  .extend({
27
27
  code: z.string().min(1).max(20),
28
28
  name: z.string().min(1).max(255),
29
+ order: z.number().min(0).max(100),
29
30
  external_id: z.string().nullable().optional(),
30
31
  tags: z.array(zTagSchema).nullable().optional(),
31
32
  })
@@ -35,6 +36,7 @@ export const zAppointmentSourceSchema = zFireDocSchema
35
36
  .extend({
36
37
  code: z.string().min(1).max(20),
37
38
  name: z.string().min(1).max(255),
39
+ order: z.number().min(0).max(100),
38
40
  external_id: z.string().nullable().optional(),
39
41
  tags: z.array(zTagSchema).nullable().optional(),
40
42
  })
@@ -44,6 +46,7 @@ export const zAppointmentRequestTypeSchema = zFireDocSchema
44
46
  .extend({
45
47
  code: z.string().min(1).max(20),
46
48
  name: z.string().min(1).max(255),
49
+ order: z.number().min(0).max(100),
47
50
  external_id: z.string().nullable().optional(),
48
51
  tags: z.array(zTagSchema).nullable().optional(),
49
52
  })
@@ -91,7 +94,7 @@ export const zDicAppointmentTypeBaseSchema = z.enum([
91
94
  // Schema para IAppointmentStatus (status customizados do usuário)
92
95
  export const zAppointmentStatusSchema = zFireDocSchema.extend({
93
96
  name: z.string().min(1).max(255),
94
- order: z.number(),
97
+ order: z.number().min(0).max(100),
95
98
  external_id: z.string().nullable().optional(),
96
99
  base_type: zDicAppointmentStatusTypeSchema,
97
100
  });
@@ -99,7 +102,7 @@ export const zAppointmentStatusSchema = zFireDocSchema.extend({
99
102
  // Schema para IAppointmentType (tipos customizados do usuário)
100
103
  export const zAppointmentTypeSchema = zFireDocSchema.extend({
101
104
  name: z.string().min(1).max(255),
102
- order: z.number(),
105
+ order: z.number().min(0).max(100),
103
106
  external_id: z.string().nullable().optional(),
104
107
  base_type: zDicAppointmentTypeBaseSchema,
105
108
  });
@@ -185,7 +188,7 @@ export const zInsuranceSchema = zFireDocSchema
185
188
  name: z.string().min(1).max(255),
186
189
  color: z.string().max(20).optional(),
187
190
  payment_type: zInsurancePaymentTypeSchema,
188
- order: z.number().optional(),
191
+ order: z.number().min(0).max(100),
189
192
  external_id: z.string().nullable().optional(),
190
193
  })
191
194
  .passthrough();
@@ -40,17 +40,17 @@ export interface IAppointmentInsurance {
40
40
  name: string;
41
41
  insuranceRef?: FirestoreDocumentReference;
42
42
  }
43
- export declare const InsurancePaymentTypeEnum: {
43
+ export declare const PaymentTypeEnum: {
44
44
  readonly Patient: "patient";
45
45
  readonly Insurance: "insurance";
46
46
  };
47
- export type InsurancePaymentType = (typeof InsurancePaymentTypeEnum)[keyof typeof InsurancePaymentTypeEnum];
47
+ export type PaymentType = (typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
48
48
  export interface IAppointmentPayment {
49
49
  total?: number | null;
50
50
  paid?: number | null;
51
51
  due?: number | null;
52
52
  status?: AppointmentPaymentStatus;
53
- payment_type: InsurancePaymentType;
53
+ payment_type: PaymentType;
54
54
  metadata?: Record<string, unknown>;
55
55
  [key: string]: unknown;
56
56
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InsurancePaymentTypeEnum = exports.AppointmentModeEnum = exports.AppointmentPaymentStatusEnum = void 0;
3
+ exports.PaymentTypeEnum = exports.AppointmentModeEnum = exports.AppointmentPaymentStatusEnum = void 0;
4
4
  // Enums para status de pagamento
5
5
  exports.AppointmentPaymentStatusEnum = {
6
6
  Paid: "paid",
@@ -13,7 +13,7 @@ exports.AppointmentModeEnum = {
13
13
  Telemedicine: "telemedicine",
14
14
  InPerson: "in_person",
15
15
  };
16
- exports.InsurancePaymentTypeEnum = {
16
+ exports.PaymentTypeEnum = {
17
17
  Patient: "patient",
18
18
  Insurance: "insurance",
19
19
  };
@@ -61,13 +61,13 @@ export interface IAppointmentInsurance {
61
61
  insuranceRef?: FirestoreDocumentReference;
62
62
  }
63
63
 
64
- export const InsurancePaymentTypeEnum = {
64
+ export const PaymentTypeEnum = {
65
65
  Patient: "patient",
66
66
  Insurance: "insurance",
67
67
  } as const;
68
68
 
69
- export type InsurancePaymentType =
70
- (typeof InsurancePaymentTypeEnum)[keyof typeof InsurancePaymentTypeEnum];
69
+ export type PaymentType =
70
+ (typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
71
71
 
72
72
  // Interface para pagamento
73
73
  export interface IAppointmentPayment {
@@ -75,7 +75,7 @@ export interface IAppointmentPayment {
75
75
  paid?: number | null;
76
76
  due?: number | null;
77
77
  status?: AppointmentPaymentStatus;
78
- payment_type: InsurancePaymentType;
78
+ payment_type: PaymentType;
79
79
  metadata?: Record<string, unknown>;
80
80
  [key: string]: unknown;
81
81
  }
@@ -37,6 +37,7 @@ export interface ISpecialty extends IFireDoc {
37
37
  export interface IPatientSource extends IFireDoc {
38
38
  code: string;
39
39
  name: string;
40
+ order: number;
40
41
  external_id?: string | null;
41
42
  tags?: ITag[] | null;
42
43
  [key: string]: unknown;
@@ -44,6 +45,7 @@ export interface IPatientSource extends IFireDoc {
44
45
  export interface IAppointmentSource extends IFireDoc {
45
46
  code: string;
46
47
  name: string;
48
+ order: number;
47
49
  external_id?: string | null;
48
50
  tags?: ITag[] | null;
49
51
  [key: string]: unknown;
@@ -51,6 +53,7 @@ export interface IAppointmentSource extends IFireDoc {
51
53
  export interface IAppointmentRequestType extends IFireDoc {
52
54
  code: string;
53
55
  name: string;
56
+ order: number;
54
57
  external_id?: string | null;
55
58
  tags?: ITag[] | null;
56
59
  [key: string]: unknown;
@@ -60,6 +60,7 @@ export interface ISpecialty extends IFireDoc {
60
60
  export interface IPatientSource extends IFireDoc {
61
61
  code: string;
62
62
  name: string;
63
+ order: number;
63
64
  external_id?: string | null; // ID externo da fonte de pacientes
64
65
  tags?: ITag[] | null;
65
66
  [key: string]: unknown; // index signature
@@ -68,6 +69,7 @@ export interface IPatientSource extends IFireDoc {
68
69
  export interface IAppointmentSource extends IFireDoc {
69
70
  code: string;
70
71
  name: string;
72
+ order: number;
71
73
  external_id?: string | null; // ID externo da fonte de agendamentos
72
74
  tags?: ITag[] | null;
73
75
  [key: string]: unknown; // index signature
@@ -76,6 +78,7 @@ export interface IAppointmentSource extends IFireDoc {
76
78
  export interface IAppointmentRequestType extends IFireDoc {
77
79
  code: string;
78
80
  name: string;
81
+ order: number;
79
82
  external_id?: string | null; // ID externo do tipo de agendamento
80
83
  tags?: ITag[] | null;
81
84
  [key: string]: unknown; // index signature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.86",
3
+ "version": "1.3.88",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",