evo360-types 1.3.212 → 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;
@@ -10545,7 +10553,7 @@ export declare const zInvoiceSourceRefSchema: z.ZodObject<{
10545
10553
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10546
10554
  }, z.ZodTypeAny, "passthrough">>;
10547
10555
  export declare const zProviderServiceInvoiceStatusSchema: z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10548
- export declare const zServiceInvoiceStateSchema: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10556
+ export declare const zServiceInvoiceStateSchema: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10549
10557
  export declare const zServiceLineItemSchema: z.ZodObject<{
10550
10558
  description: z.ZodString;
10551
10559
  quantity: z.ZodOptional<z.ZodNumber>;
@@ -10685,10 +10693,12 @@ 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
- provider: z.ZodString;
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
- state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10701
+ state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10692
10702
  provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
10693
10703
  issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
10694
10704
  issuer_snapshot: z.ZodOptional<z.ZodObject<{
@@ -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,10 +11007,12 @@ 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
- provider: z.ZodString;
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
- state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
11015
+ state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
10999
11016
  provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
11000
11017
  issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
11001
11018
  issuer_snapshot: z.ZodOptional<z.ZodObject<{
@@ -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,10 +11321,12 @@ 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
- provider: z.ZodString;
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
- state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
11329
+ state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
11306
11330
  provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
11307
11331
  issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
11308
11332
  issuer_snapshot: z.ZodOptional<z.ZodObject<{
@@ -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({
@@ -478,6 +479,7 @@ exports.zProviderServiceInvoiceStatusSchema = zod_1.z.enum([
478
479
  ]);
479
480
  exports.zServiceInvoiceStateSchema = zod_1.z.enum([
480
481
  "DRAFT",
482
+ "SENT",
481
483
  "SCHEDULED",
482
484
  "SYNCHRONIZED",
483
485
  "AUTHORIZED",
@@ -542,7 +544,9 @@ exports.zProviderPayloadSnapshotSchema = zod_1.z.object({
542
544
  });
543
545
  exports.zServiceInvoiceSchema = zod_schemas_1.zFireDocSchema
544
546
  .extend({
545
- provider: zod_1.z.string(),
547
+ providerId: zod_1.z.string(),
548
+ provider_name: zod_1.z.string().optional(),
549
+ provider_env: exports.zProviderEnvSchema.optional(),
546
550
  provider_account_id: zod_1.z.string().optional(),
547
551
  provider_invoice_id: zod_1.z.string().optional(),
548
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
 
@@ -518,6 +519,7 @@ export const zProviderServiceInvoiceStatusSchema = z.enum([
518
519
 
519
520
  export const zServiceInvoiceStateSchema = z.enum([
520
521
  "DRAFT",
522
+ "SENT",
521
523
  "SCHEDULED",
522
524
  "SYNCHRONIZED",
523
525
  "AUTHORIZED",
@@ -590,7 +592,9 @@ export const zProviderPayloadSnapshotSchema = z.object({
590
592
 
591
593
  export const zServiceInvoiceSchema = zFireDocSchema
592
594
  .extend({
593
- provider: z.string(),
595
+ providerId: z.string(),
596
+ provider_name: z.string().optional(),
597
+ provider_env: zProviderEnvSchema.optional(),
594
598
  provider_account_id: z.string().optional(),
595
599
  provider_invoice_id: z.string().optional(),
596
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;
@@ -52,6 +53,7 @@ export declare enum ProviderServiceInvoiceStatusEnum {
52
53
  export type ProviderServiceInvoiceStatus = `${ProviderServiceInvoiceStatusEnum}`;
53
54
  export declare enum ServiceInvoiceStateEnum {
54
55
  DRAFT = "DRAFT",// internal only (not sent)
56
+ SENT = "SENT",// sent to provider, awaiting webhook confirmation (e.g. INVOICE_CREATED → SCHEDULED)
55
57
  SCHEDULED = "SCHEDULED",
56
58
  SYNCHRONIZED = "SYNCHRONIZED",// sent to city hall (Asaas INVOICE_SYNCHRONIZED)
57
59
  AUTHORIZED = "AUTHORIZED",
@@ -94,7 +96,9 @@ export interface IProviderInvoiceError {
94
96
  details?: unknown;
95
97
  }
96
98
  export interface IServiceInvoice extends IFireDoc {
97
- provider: string;
99
+ providerId: string;
100
+ provider_name?: string;
101
+ provider_env?: "Sandbox" | "Production";
98
102
  provider_account_id?: string;
99
103
  provider_invoice_id?: string;
100
104
  state: ServiceInvoiceState;
@@ -24,10 +24,11 @@ var ProviderServiceInvoiceStatusEnum;
24
24
  ProviderServiceInvoiceStatusEnum["CANCELLATION_DENIED"] = "CANCELLATION_DENIED";
25
25
  ProviderServiceInvoiceStatusEnum["ERROR"] = "ERROR";
26
26
  })(ProviderServiceInvoiceStatusEnum || (exports.ProviderServiceInvoiceStatusEnum = ProviderServiceInvoiceStatusEnum = {}));
27
- // Internal status (Provider status + DRAFT; aligned with Asaas invoice lifecycle)
27
+ // Internal status (Provider status + DRAFT + SENT; aligned with Asaas invoice lifecycle)
28
28
  var ServiceInvoiceStateEnum;
29
29
  (function (ServiceInvoiceStateEnum) {
30
30
  ServiceInvoiceStateEnum["DRAFT"] = "DRAFT";
31
+ ServiceInvoiceStateEnum["SENT"] = "SENT";
31
32
  ServiceInvoiceStateEnum["SCHEDULED"] = "SCHEDULED";
32
33
  ServiceInvoiceStateEnum["SYNCHRONIZED"] = "SYNCHRONIZED";
33
34
  ServiceInvoiceStateEnum["AUTHORIZED"] = "AUTHORIZED";
@@ -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;
@@ -69,9 +72,10 @@ export enum ProviderServiceInvoiceStatusEnum {
69
72
  export type ProviderServiceInvoiceStatus =
70
73
  `${ProviderServiceInvoiceStatusEnum}`;
71
74
 
72
- // Internal status (Provider status + DRAFT; aligned with Asaas invoice lifecycle)
75
+ // Internal status (Provider status + DRAFT + SENT; aligned with Asaas invoice lifecycle)
73
76
  export enum ServiceInvoiceStateEnum {
74
77
  DRAFT = "DRAFT", // internal only (not sent)
78
+ SENT = "SENT", // sent to provider, awaiting webhook confirmation (e.g. INVOICE_CREATED → SCHEDULED)
75
79
  SCHEDULED = "SCHEDULED",
76
80
  SYNCHRONIZED = "SYNCHRONIZED", // sent to city hall (Asaas INVOICE_SYNCHRONIZED)
77
81
  AUTHORIZED = "AUTHORIZED",
@@ -128,7 +132,9 @@ export interface IProviderInvoiceError {
128
132
  }
129
133
 
130
134
  export interface IServiceInvoice extends IFireDoc {
131
- provider: string;
135
+ providerId: string;
136
+ provider_name?: string;
137
+ provider_env?: "Sandbox" | "Production";
132
138
 
133
139
  // Subaccount context: which Provider account issued it (clinic)
134
140
  provider_account_id?: string;
@@ -41,6 +41,15 @@ export interface IAddress {
41
41
  country?: string;
42
42
  geo?: IGeoPoint;
43
43
  }
44
+ export interface IFireGlobalDoc extends Record<string, unknown> {
45
+ readonly id: string;
46
+ readonly ref?: FirestoreDocumentReference;
47
+ model_ver?: number;
48
+ version?: number;
49
+ created_at?: Date | null;
50
+ updated_at?: Date | null;
51
+ deleted_at?: Date | null;
52
+ }
44
53
  export type EvoApp = "evo-activity" | "evo-core" | "evo-crm" | "evo-people" | "evo-med" | "evo-messages" | "evo-survey" | "evo-tags" | "evo-task" | "evo-tenant";
45
54
  export declare enum IEvoApp {
46
55
  EvoActivity = "evo-activity",
@@ -52,6 +52,17 @@ export interface IAddress {
52
52
  geo?: IGeoPoint;
53
53
  }
54
54
 
55
+ //fsTypes
56
+ export interface IFireGlobalDoc extends Record<string, unknown> {
57
+ readonly id: string;
58
+ readonly ref?: FirestoreDocumentReference;
59
+ model_ver?: number;
60
+ version?: number;
61
+ created_at?: Date | null;
62
+ updated_at?: Date | null;
63
+ deleted_at?: Date | null;
64
+ }
65
+
55
66
  // ----- Apps
56
67
 
57
68
  export type EvoApp =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.212",
3
+ "version": "1.3.214",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",