evo360-types 1.3.213 → 1.3.214
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.
|
@@ -10352,6 +10352,7 @@ export declare const zInvoiceTakerSnapshotSchema: z.ZodObject<{
|
|
|
10352
10352
|
email: z.ZodOptional<z.ZodString>;
|
|
10353
10353
|
phone: z.ZodOptional<z.ZodString>;
|
|
10354
10354
|
cpf_cnpj: z.ZodOptional<z.ZodString>;
|
|
10355
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
10355
10356
|
address: z.ZodOptional<z.ZodObject<{
|
|
10356
10357
|
street: z.ZodOptional<z.ZodString>;
|
|
10357
10358
|
number: z.ZodOptional<z.ZodString>;
|
|
@@ -10395,6 +10396,7 @@ export declare const zInvoiceTakerSnapshotSchema: z.ZodObject<{
|
|
|
10395
10396
|
country: z.ZodOptional<z.ZodString>;
|
|
10396
10397
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10397
10398
|
phone?: string | undefined;
|
|
10399
|
+
customerId?: string | undefined;
|
|
10398
10400
|
cpf_cnpj?: string | undefined;
|
|
10399
10401
|
}, {
|
|
10400
10402
|
name: string;
|
|
@@ -10411,6 +10413,7 @@ export declare const zInvoiceTakerSnapshotSchema: z.ZodObject<{
|
|
|
10411
10413
|
country: z.ZodOptional<z.ZodString>;
|
|
10412
10414
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10413
10415
|
phone?: string | undefined;
|
|
10416
|
+
customerId?: string | undefined;
|
|
10414
10417
|
cpf_cnpj?: string | undefined;
|
|
10415
10418
|
}>;
|
|
10416
10419
|
export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
@@ -10423,6 +10426,7 @@ export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
|
10423
10426
|
email: z.ZodOptional<z.ZodString>;
|
|
10424
10427
|
phone: z.ZodOptional<z.ZodString>;
|
|
10425
10428
|
cpf_cnpj: z.ZodOptional<z.ZodString>;
|
|
10429
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
10426
10430
|
address: z.ZodOptional<z.ZodObject<{
|
|
10427
10431
|
street: z.ZodOptional<z.ZodString>;
|
|
10428
10432
|
number: z.ZodOptional<z.ZodString>;
|
|
@@ -10466,6 +10470,7 @@ export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
|
10466
10470
|
country: z.ZodOptional<z.ZodString>;
|
|
10467
10471
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10468
10472
|
phone?: string | undefined;
|
|
10473
|
+
customerId?: string | undefined;
|
|
10469
10474
|
cpf_cnpj?: string | undefined;
|
|
10470
10475
|
}, {
|
|
10471
10476
|
name: string;
|
|
@@ -10482,6 +10487,7 @@ export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
|
10482
10487
|
country: z.ZodOptional<z.ZodString>;
|
|
10483
10488
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10484
10489
|
phone?: string | undefined;
|
|
10490
|
+
customerId?: string | undefined;
|
|
10485
10491
|
cpf_cnpj?: string | undefined;
|
|
10486
10492
|
}>;
|
|
10487
10493
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10500,6 +10506,7 @@ export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
|
10500
10506
|
country: z.ZodOptional<z.ZodString>;
|
|
10501
10507
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10502
10508
|
phone?: string | undefined;
|
|
10509
|
+
customerId?: string | undefined;
|
|
10503
10510
|
cpf_cnpj?: string | undefined;
|
|
10504
10511
|
};
|
|
10505
10512
|
lead_id?: string | undefined;
|
|
@@ -10521,6 +10528,7 @@ export declare const zInvoiceTakerRefSchema: z.ZodObject<{
|
|
|
10521
10528
|
country: z.ZodOptional<z.ZodString>;
|
|
10522
10529
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10523
10530
|
phone?: string | undefined;
|
|
10531
|
+
customerId?: string | undefined;
|
|
10524
10532
|
cpf_cnpj?: string | undefined;
|
|
10525
10533
|
};
|
|
10526
10534
|
lead_id?: string | undefined;
|
|
@@ -10685,7 +10693,9 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10685
10693
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10686
10694
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10687
10695
|
} & {
|
|
10688
|
-
|
|
10696
|
+
providerId: z.ZodString;
|
|
10697
|
+
provider_name: z.ZodOptional<z.ZodString>;
|
|
10698
|
+
provider_env: z.ZodOptional<z.ZodEnum<["Sandbox", "Production"]>>;
|
|
10689
10699
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
10690
10700
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
10691
10701
|
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
@@ -10717,6 +10727,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10717
10727
|
email: z.ZodOptional<z.ZodString>;
|
|
10718
10728
|
phone: z.ZodOptional<z.ZodString>;
|
|
10719
10729
|
cpf_cnpj: z.ZodOptional<z.ZodString>;
|
|
10730
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
10720
10731
|
address: z.ZodOptional<z.ZodObject<{
|
|
10721
10732
|
street: z.ZodOptional<z.ZodString>;
|
|
10722
10733
|
number: z.ZodOptional<z.ZodString>;
|
|
@@ -10760,6 +10771,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10760
10771
|
country: z.ZodOptional<z.ZodString>;
|
|
10761
10772
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10762
10773
|
phone?: string | undefined;
|
|
10774
|
+
customerId?: string | undefined;
|
|
10763
10775
|
cpf_cnpj?: string | undefined;
|
|
10764
10776
|
}, {
|
|
10765
10777
|
name: string;
|
|
@@ -10776,6 +10788,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10776
10788
|
country: z.ZodOptional<z.ZodString>;
|
|
10777
10789
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10778
10790
|
phone?: string | undefined;
|
|
10791
|
+
customerId?: string | undefined;
|
|
10779
10792
|
cpf_cnpj?: string | undefined;
|
|
10780
10793
|
}>;
|
|
10781
10794
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10794,6 +10807,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10794
10807
|
country: z.ZodOptional<z.ZodString>;
|
|
10795
10808
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10796
10809
|
phone?: string | undefined;
|
|
10810
|
+
customerId?: string | undefined;
|
|
10797
10811
|
cpf_cnpj?: string | undefined;
|
|
10798
10812
|
};
|
|
10799
10813
|
lead_id?: string | undefined;
|
|
@@ -10815,6 +10829,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10815
10829
|
country: z.ZodOptional<z.ZodString>;
|
|
10816
10830
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
10817
10831
|
phone?: string | undefined;
|
|
10832
|
+
customerId?: string | undefined;
|
|
10818
10833
|
cpf_cnpj?: string | undefined;
|
|
10819
10834
|
};
|
|
10820
10835
|
lead_id?: string | undefined;
|
|
@@ -10992,7 +11007,9 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10992
11007
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10993
11008
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10994
11009
|
} & {
|
|
10995
|
-
|
|
11010
|
+
providerId: z.ZodString;
|
|
11011
|
+
provider_name: z.ZodOptional<z.ZodString>;
|
|
11012
|
+
provider_env: z.ZodOptional<z.ZodEnum<["Sandbox", "Production"]>>;
|
|
10996
11013
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
10997
11014
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
10998
11015
|
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
@@ -11024,6 +11041,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11024
11041
|
email: z.ZodOptional<z.ZodString>;
|
|
11025
11042
|
phone: z.ZodOptional<z.ZodString>;
|
|
11026
11043
|
cpf_cnpj: z.ZodOptional<z.ZodString>;
|
|
11044
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
11027
11045
|
address: z.ZodOptional<z.ZodObject<{
|
|
11028
11046
|
street: z.ZodOptional<z.ZodString>;
|
|
11029
11047
|
number: z.ZodOptional<z.ZodString>;
|
|
@@ -11067,6 +11085,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11067
11085
|
country: z.ZodOptional<z.ZodString>;
|
|
11068
11086
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11069
11087
|
phone?: string | undefined;
|
|
11088
|
+
customerId?: string | undefined;
|
|
11070
11089
|
cpf_cnpj?: string | undefined;
|
|
11071
11090
|
}, {
|
|
11072
11091
|
name: string;
|
|
@@ -11083,6 +11102,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11083
11102
|
country: z.ZodOptional<z.ZodString>;
|
|
11084
11103
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11085
11104
|
phone?: string | undefined;
|
|
11105
|
+
customerId?: string | undefined;
|
|
11086
11106
|
cpf_cnpj?: string | undefined;
|
|
11087
11107
|
}>;
|
|
11088
11108
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11101,6 +11121,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11101
11121
|
country: z.ZodOptional<z.ZodString>;
|
|
11102
11122
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11103
11123
|
phone?: string | undefined;
|
|
11124
|
+
customerId?: string | undefined;
|
|
11104
11125
|
cpf_cnpj?: string | undefined;
|
|
11105
11126
|
};
|
|
11106
11127
|
lead_id?: string | undefined;
|
|
@@ -11122,6 +11143,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11122
11143
|
country: z.ZodOptional<z.ZodString>;
|
|
11123
11144
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11124
11145
|
phone?: string | undefined;
|
|
11146
|
+
customerId?: string | undefined;
|
|
11125
11147
|
cpf_cnpj?: string | undefined;
|
|
11126
11148
|
};
|
|
11127
11149
|
lead_id?: string | undefined;
|
|
@@ -11299,7 +11321,9 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11299
11321
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11300
11322
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11301
11323
|
} & {
|
|
11302
|
-
|
|
11324
|
+
providerId: z.ZodString;
|
|
11325
|
+
provider_name: z.ZodOptional<z.ZodString>;
|
|
11326
|
+
provider_env: z.ZodOptional<z.ZodEnum<["Sandbox", "Production"]>>;
|
|
11303
11327
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
11304
11328
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
11305
11329
|
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
@@ -11331,6 +11355,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11331
11355
|
email: z.ZodOptional<z.ZodString>;
|
|
11332
11356
|
phone: z.ZodOptional<z.ZodString>;
|
|
11333
11357
|
cpf_cnpj: z.ZodOptional<z.ZodString>;
|
|
11358
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
11334
11359
|
address: z.ZodOptional<z.ZodObject<{
|
|
11335
11360
|
street: z.ZodOptional<z.ZodString>;
|
|
11336
11361
|
number: z.ZodOptional<z.ZodString>;
|
|
@@ -11374,6 +11399,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11374
11399
|
country: z.ZodOptional<z.ZodString>;
|
|
11375
11400
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11376
11401
|
phone?: string | undefined;
|
|
11402
|
+
customerId?: string | undefined;
|
|
11377
11403
|
cpf_cnpj?: string | undefined;
|
|
11378
11404
|
}, {
|
|
11379
11405
|
name: string;
|
|
@@ -11390,6 +11416,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11390
11416
|
country: z.ZodOptional<z.ZodString>;
|
|
11391
11417
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11392
11418
|
phone?: string | undefined;
|
|
11419
|
+
customerId?: string | undefined;
|
|
11393
11420
|
cpf_cnpj?: string | undefined;
|
|
11394
11421
|
}>;
|
|
11395
11422
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11408,6 +11435,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11408
11435
|
country: z.ZodOptional<z.ZodString>;
|
|
11409
11436
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11410
11437
|
phone?: string | undefined;
|
|
11438
|
+
customerId?: string | undefined;
|
|
11411
11439
|
cpf_cnpj?: string | undefined;
|
|
11412
11440
|
};
|
|
11413
11441
|
lead_id?: string | undefined;
|
|
@@ -11429,6 +11457,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11429
11457
|
country: z.ZodOptional<z.ZodString>;
|
|
11430
11458
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
11431
11459
|
phone?: string | undefined;
|
|
11460
|
+
customerId?: string | undefined;
|
|
11432
11461
|
cpf_cnpj?: string | undefined;
|
|
11433
11462
|
};
|
|
11434
11463
|
lead_id?: string | undefined;
|
|
@@ -442,6 +442,7 @@ exports.zInvoiceTakerSnapshotSchema = zod_1.z.object({
|
|
|
442
442
|
email: zod_1.z.string().optional(),
|
|
443
443
|
phone: zod_1.z.string().optional(),
|
|
444
444
|
cpf_cnpj: zod_1.z.string().optional(),
|
|
445
|
+
customerId: zod_1.z.string().optional(),
|
|
445
446
|
address: exports.zInvoiceTakerSnapshotAddressSchema.optional(),
|
|
446
447
|
});
|
|
447
448
|
exports.zInvoiceTakerRefSchema = zod_1.z.object({
|
|
@@ -543,7 +544,9 @@ exports.zProviderPayloadSnapshotSchema = zod_1.z.object({
|
|
|
543
544
|
});
|
|
544
545
|
exports.zServiceInvoiceSchema = zod_schemas_1.zFireDocSchema
|
|
545
546
|
.extend({
|
|
546
|
-
|
|
547
|
+
providerId: zod_1.z.string(),
|
|
548
|
+
provider_name: zod_1.z.string().optional(),
|
|
549
|
+
provider_env: exports.zProviderEnvSchema.optional(),
|
|
547
550
|
provider_account_id: zod_1.z.string().optional(),
|
|
548
551
|
provider_invoice_id: zod_1.z.string().optional(),
|
|
549
552
|
state: exports.zServiceInvoiceStateSchema,
|
|
@@ -477,6 +477,7 @@ export const zInvoiceTakerSnapshotSchema = z.object({
|
|
|
477
477
|
email: z.string().optional(),
|
|
478
478
|
phone: z.string().optional(),
|
|
479
479
|
cpf_cnpj: z.string().optional(),
|
|
480
|
+
customerId: z.string().optional(),
|
|
480
481
|
address: zInvoiceTakerSnapshotAddressSchema.optional(),
|
|
481
482
|
});
|
|
482
483
|
|
|
@@ -591,7 +592,9 @@ export const zProviderPayloadSnapshotSchema = z.object({
|
|
|
591
592
|
|
|
592
593
|
export const zServiceInvoiceSchema = zFireDocSchema
|
|
593
594
|
.extend({
|
|
594
|
-
|
|
595
|
+
providerId: z.string(),
|
|
596
|
+
provider_name: z.string().optional(),
|
|
597
|
+
provider_env: zProviderEnvSchema.optional(),
|
|
595
598
|
provider_account_id: z.string().optional(),
|
|
596
599
|
provider_invoice_id: z.string().optional(),
|
|
597
600
|
state: zServiceInvoiceStateSchema,
|
|
@@ -7,6 +7,7 @@ export interface IInvoiceTakerSnapshot {
|
|
|
7
7
|
email?: string;
|
|
8
8
|
phone?: string;
|
|
9
9
|
cpf_cnpj?: string;
|
|
10
|
+
customerId?: string;
|
|
10
11
|
address?: {
|
|
11
12
|
street?: string;
|
|
12
13
|
number?: string;
|
|
@@ -95,7 +96,9 @@ export interface IProviderInvoiceError {
|
|
|
95
96
|
details?: unknown;
|
|
96
97
|
}
|
|
97
98
|
export interface IServiceInvoice extends IFireDoc {
|
|
98
|
-
|
|
99
|
+
providerId: string;
|
|
100
|
+
provider_name?: string;
|
|
101
|
+
provider_env?: "Sandbox" | "Production";
|
|
99
102
|
provider_account_id?: string;
|
|
100
103
|
provider_invoice_id?: string;
|
|
101
104
|
state: ServiceInvoiceState;
|
|
@@ -14,6 +14,9 @@ export interface IInvoiceTakerSnapshot {
|
|
|
14
14
|
// CPF or CNPJ digits only recommended
|
|
15
15
|
cpf_cnpj?: string;
|
|
16
16
|
|
|
17
|
+
// Provider customer ID (e.g., Asaas customer ID)
|
|
18
|
+
customerId?: string;
|
|
19
|
+
|
|
17
20
|
// Some municipalities require address; keep it optional but available.
|
|
18
21
|
address?: {
|
|
19
22
|
street?: string;
|
|
@@ -129,7 +132,9 @@ export interface IProviderInvoiceError {
|
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
export interface IServiceInvoice extends IFireDoc {
|
|
132
|
-
|
|
135
|
+
providerId: string;
|
|
136
|
+
provider_name?: string;
|
|
137
|
+
provider_env?: "Sandbox" | "Production";
|
|
133
138
|
|
|
134
139
|
// Subaccount context: which Provider account issued it (clinic)
|
|
135
140
|
provider_account_id?: string;
|