@timbro/invoices 0.10.1 → 0.10.3-next.0
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/fiscal-engine-runtime.manifest.json +16 -16
- package/dist/fiscal-engine-runtime.provenance.json +17 -17
- package/dist/generated/hosted/types.gen.d.ts +100 -1
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.d.ts +1 -1
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +3 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/invoice-api-contract.d.ts +49 -2
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +49 -0
- package/dist/generated/types.gen.d.ts +55 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +231 -0
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +45 -0
- package/dist/generated/zod.gen.d.ts +114 -0
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +48 -0
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -483,6 +483,45 @@ export declare const zBuyerDeliveryReadinessResource: z.ZodType<{
|
|
|
483
483
|
status: "unavailable";
|
|
484
484
|
terminal_result_code: "authority_status_accepted" | "authority_status_accepted_with_findings" | "authority_status_rejected" | "authority_submission_rejected" | "consumer_summary_accepted" | "consumer_summary_accepted_with_findings" | "consumer_summary_rejected";
|
|
485
485
|
}>>;
|
|
486
|
+
/**
|
|
487
|
+
* The identified party a fiscal document names opposite its issuer: the buyer of a sale, the
|
|
488
|
+
* supplier of a Type 41 purchase, or the payee of a Type 47 payment abroad.
|
|
489
|
+
*
|
|
490
|
+
* An anonymous consumer and a Type 43 minor expense name no counterparty.
|
|
491
|
+
*/
|
|
492
|
+
export declare const zFiscalCounterparty: z.ZodType<{
|
|
493
|
+
identity_kind: "domestic";
|
|
494
|
+
legal_name: string;
|
|
495
|
+
tax_id: string;
|
|
496
|
+
} | {
|
|
497
|
+
foreign_identifier: string;
|
|
498
|
+
identity_kind: "foreign";
|
|
499
|
+
legal_name: string;
|
|
500
|
+
}, {
|
|
501
|
+
identity_kind: "domestic";
|
|
502
|
+
legal_name: string;
|
|
503
|
+
tax_id: string;
|
|
504
|
+
} | {
|
|
505
|
+
foreign_identifier: string;
|
|
506
|
+
identity_kind: "foreign";
|
|
507
|
+
legal_name: string;
|
|
508
|
+
}, z.core.$ZodTypeInternals<{
|
|
509
|
+
identity_kind: "domestic";
|
|
510
|
+
legal_name: string;
|
|
511
|
+
tax_id: string;
|
|
512
|
+
} | {
|
|
513
|
+
foreign_identifier: string;
|
|
514
|
+
identity_kind: "foreign";
|
|
515
|
+
legal_name: string;
|
|
516
|
+
}, {
|
|
517
|
+
identity_kind: "domestic";
|
|
518
|
+
legal_name: string;
|
|
519
|
+
tax_id: string;
|
|
520
|
+
} | {
|
|
521
|
+
foreign_identifier: string;
|
|
522
|
+
identity_kind: "foreign";
|
|
523
|
+
legal_name: string;
|
|
524
|
+
}>>;
|
|
486
525
|
/**
|
|
487
526
|
* Counterparty class that selects the legal e-CF type set.
|
|
488
527
|
*/
|
|
@@ -5793,6 +5832,7 @@ export declare const zReceivedDocumentResource: z.ZodObject<{
|
|
|
5793
5832
|
sandbox: "sandbox";
|
|
5794
5833
|
}>;
|
|
5795
5834
|
id: z.ZodUUID;
|
|
5835
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
5796
5836
|
issuerTaxId: z.ZodString;
|
|
5797
5837
|
notReceivedReason: z.ZodNullable<z.ZodEnum<{
|
|
5798
5838
|
buyerRncMismatch: "buyerRncMismatch";
|
|
@@ -5869,6 +5909,7 @@ export declare const zReceivedDocumentSummary: z.ZodObject<{
|
|
|
5869
5909
|
sandbox: "sandbox";
|
|
5870
5910
|
}>;
|
|
5871
5911
|
id: z.ZodUUID;
|
|
5912
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
5872
5913
|
issuerTaxId: z.ZodString;
|
|
5873
5914
|
receivedAt: z.ZodISODateTime;
|
|
5874
5915
|
state: z.ZodEnum<{
|
|
@@ -5939,6 +5980,7 @@ export declare const zReceivedDocumentPage: z.ZodObject<{
|
|
|
5939
5980
|
sandbox: "sandbox";
|
|
5940
5981
|
}>;
|
|
5941
5982
|
id: z.ZodUUID;
|
|
5983
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
5942
5984
|
issuerTaxId: z.ZodString;
|
|
5943
5985
|
receivedAt: z.ZodISODateTime;
|
|
5944
5986
|
state: z.ZodEnum<{
|
|
@@ -27671,6 +27713,39 @@ export declare const zWorkspaceFiscalOperationSummary: z.ZodObject<{
|
|
|
27671
27713
|
debit_note: "debit_note";
|
|
27672
27714
|
issue: "issue";
|
|
27673
27715
|
}>;
|
|
27716
|
+
counterparty: z.ZodNullable<z.ZodType<{
|
|
27717
|
+
identity_kind: "domestic";
|
|
27718
|
+
legal_name: string;
|
|
27719
|
+
tax_id: string;
|
|
27720
|
+
} | {
|
|
27721
|
+
foreign_identifier: string;
|
|
27722
|
+
identity_kind: "foreign";
|
|
27723
|
+
legal_name: string;
|
|
27724
|
+
}, {
|
|
27725
|
+
identity_kind: "domestic";
|
|
27726
|
+
legal_name: string;
|
|
27727
|
+
tax_id: string;
|
|
27728
|
+
} | {
|
|
27729
|
+
foreign_identifier: string;
|
|
27730
|
+
identity_kind: "foreign";
|
|
27731
|
+
legal_name: string;
|
|
27732
|
+
}, z.core.$ZodTypeInternals<{
|
|
27733
|
+
identity_kind: "domestic";
|
|
27734
|
+
legal_name: string;
|
|
27735
|
+
tax_id: string;
|
|
27736
|
+
} | {
|
|
27737
|
+
foreign_identifier: string;
|
|
27738
|
+
identity_kind: "foreign";
|
|
27739
|
+
legal_name: string;
|
|
27740
|
+
}, {
|
|
27741
|
+
identity_kind: "domestic";
|
|
27742
|
+
legal_name: string;
|
|
27743
|
+
tax_id: string;
|
|
27744
|
+
} | {
|
|
27745
|
+
foreign_identifier: string;
|
|
27746
|
+
identity_kind: "foreign";
|
|
27747
|
+
legal_name: string;
|
|
27748
|
+
}>>>;
|
|
27674
27749
|
created_at: z.ZodISODateTime;
|
|
27675
27750
|
environment: z.ZodEnum<{
|
|
27676
27751
|
certification: "certification";
|
|
@@ -28516,6 +28591,12 @@ export declare const zWorkspaceFiscalOperationSummary: z.ZodObject<{
|
|
|
28516
28591
|
id: z.ZodString;
|
|
28517
28592
|
version: z.ZodString;
|
|
28518
28593
|
}, z.core.$strip>;
|
|
28594
|
+
totals: z.ZodNullable<z.ZodObject<{
|
|
28595
|
+
net: z.ZodString;
|
|
28596
|
+
non_billable: z.ZodString;
|
|
28597
|
+
tax: z.ZodString;
|
|
28598
|
+
total: z.ZodString;
|
|
28599
|
+
}, z.core.$strip>>;
|
|
28519
28600
|
updated_at: z.ZodISODateTime;
|
|
28520
28601
|
}, z.core.$strip>;
|
|
28521
28602
|
export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
|
|
@@ -28525,6 +28606,39 @@ export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
|
|
|
28525
28606
|
debit_note: "debit_note";
|
|
28526
28607
|
issue: "issue";
|
|
28527
28608
|
}>;
|
|
28609
|
+
counterparty: z.ZodNullable<z.ZodType<{
|
|
28610
|
+
identity_kind: "domestic";
|
|
28611
|
+
legal_name: string;
|
|
28612
|
+
tax_id: string;
|
|
28613
|
+
} | {
|
|
28614
|
+
foreign_identifier: string;
|
|
28615
|
+
identity_kind: "foreign";
|
|
28616
|
+
legal_name: string;
|
|
28617
|
+
}, {
|
|
28618
|
+
identity_kind: "domestic";
|
|
28619
|
+
legal_name: string;
|
|
28620
|
+
tax_id: string;
|
|
28621
|
+
} | {
|
|
28622
|
+
foreign_identifier: string;
|
|
28623
|
+
identity_kind: "foreign";
|
|
28624
|
+
legal_name: string;
|
|
28625
|
+
}, z.core.$ZodTypeInternals<{
|
|
28626
|
+
identity_kind: "domestic";
|
|
28627
|
+
legal_name: string;
|
|
28628
|
+
tax_id: string;
|
|
28629
|
+
} | {
|
|
28630
|
+
foreign_identifier: string;
|
|
28631
|
+
identity_kind: "foreign";
|
|
28632
|
+
legal_name: string;
|
|
28633
|
+
}, {
|
|
28634
|
+
identity_kind: "domestic";
|
|
28635
|
+
legal_name: string;
|
|
28636
|
+
tax_id: string;
|
|
28637
|
+
} | {
|
|
28638
|
+
foreign_identifier: string;
|
|
28639
|
+
identity_kind: "foreign";
|
|
28640
|
+
legal_name: string;
|
|
28641
|
+
}>>>;
|
|
28528
28642
|
created_at: z.ZodISODateTime;
|
|
28529
28643
|
environment: z.ZodEnum<{
|
|
28530
28644
|
certification: "certification";
|
|
@@ -29370,6 +29484,12 @@ export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
|
|
|
29370
29484
|
id: z.ZodString;
|
|
29371
29485
|
version: z.ZodString;
|
|
29372
29486
|
}, z.core.$strip>;
|
|
29487
|
+
totals: z.ZodNullable<z.ZodObject<{
|
|
29488
|
+
net: z.ZodString;
|
|
29489
|
+
non_billable: z.ZodString;
|
|
29490
|
+
tax: z.ZodString;
|
|
29491
|
+
total: z.ZodString;
|
|
29492
|
+
}, z.core.$strip>>;
|
|
29373
29493
|
updated_at: z.ZodISODateTime;
|
|
29374
29494
|
}, z.core.$strip>>;
|
|
29375
29495
|
hasMore: z.ZodBoolean;
|
|
@@ -30200,6 +30320,39 @@ export declare const zWorkspaceFiscalOperationResource: z.ZodObject<{
|
|
|
30200
30320
|
recorded_at: string;
|
|
30201
30321
|
responded_at: string;
|
|
30202
30322
|
}>>>;
|
|
30323
|
+
counterparty: z.ZodNullable<z.ZodType<{
|
|
30324
|
+
identity_kind: "domestic";
|
|
30325
|
+
legal_name: string;
|
|
30326
|
+
tax_id: string;
|
|
30327
|
+
} | {
|
|
30328
|
+
foreign_identifier: string;
|
|
30329
|
+
identity_kind: "foreign";
|
|
30330
|
+
legal_name: string;
|
|
30331
|
+
}, {
|
|
30332
|
+
identity_kind: "domestic";
|
|
30333
|
+
legal_name: string;
|
|
30334
|
+
tax_id: string;
|
|
30335
|
+
} | {
|
|
30336
|
+
foreign_identifier: string;
|
|
30337
|
+
identity_kind: "foreign";
|
|
30338
|
+
legal_name: string;
|
|
30339
|
+
}, z.core.$ZodTypeInternals<{
|
|
30340
|
+
identity_kind: "domestic";
|
|
30341
|
+
legal_name: string;
|
|
30342
|
+
tax_id: string;
|
|
30343
|
+
} | {
|
|
30344
|
+
foreign_identifier: string;
|
|
30345
|
+
identity_kind: "foreign";
|
|
30346
|
+
legal_name: string;
|
|
30347
|
+
}, {
|
|
30348
|
+
identity_kind: "domestic";
|
|
30349
|
+
legal_name: string;
|
|
30350
|
+
tax_id: string;
|
|
30351
|
+
} | {
|
|
30352
|
+
foreign_identifier: string;
|
|
30353
|
+
identity_kind: "foreign";
|
|
30354
|
+
legal_name: string;
|
|
30355
|
+
}>>>;
|
|
30203
30356
|
operation: z.ZodObject<{
|
|
30204
30357
|
accepted_at: z.ZodNullable<z.ZodISODateTime>;
|
|
30205
30358
|
action: z.ZodEnum<{
|
|
@@ -83631,6 +83784,39 @@ export declare const zListOrganizationFiscalOperationsResponse: z.ZodObject<{
|
|
|
83631
83784
|
debit_note: "debit_note";
|
|
83632
83785
|
issue: "issue";
|
|
83633
83786
|
}>;
|
|
83787
|
+
counterparty: z.ZodNullable<z.ZodType<{
|
|
83788
|
+
identity_kind: "domestic";
|
|
83789
|
+
legal_name: string;
|
|
83790
|
+
tax_id: string;
|
|
83791
|
+
} | {
|
|
83792
|
+
foreign_identifier: string;
|
|
83793
|
+
identity_kind: "foreign";
|
|
83794
|
+
legal_name: string;
|
|
83795
|
+
}, {
|
|
83796
|
+
identity_kind: "domestic";
|
|
83797
|
+
legal_name: string;
|
|
83798
|
+
tax_id: string;
|
|
83799
|
+
} | {
|
|
83800
|
+
foreign_identifier: string;
|
|
83801
|
+
identity_kind: "foreign";
|
|
83802
|
+
legal_name: string;
|
|
83803
|
+
}, z.core.$ZodTypeInternals<{
|
|
83804
|
+
identity_kind: "domestic";
|
|
83805
|
+
legal_name: string;
|
|
83806
|
+
tax_id: string;
|
|
83807
|
+
} | {
|
|
83808
|
+
foreign_identifier: string;
|
|
83809
|
+
identity_kind: "foreign";
|
|
83810
|
+
legal_name: string;
|
|
83811
|
+
}, {
|
|
83812
|
+
identity_kind: "domestic";
|
|
83813
|
+
legal_name: string;
|
|
83814
|
+
tax_id: string;
|
|
83815
|
+
} | {
|
|
83816
|
+
foreign_identifier: string;
|
|
83817
|
+
identity_kind: "foreign";
|
|
83818
|
+
legal_name: string;
|
|
83819
|
+
}>>>;
|
|
83634
83820
|
created_at: z.ZodISODateTime;
|
|
83635
83821
|
environment: z.ZodEnum<{
|
|
83636
83822
|
certification: "certification";
|
|
@@ -84476,6 +84662,12 @@ export declare const zListOrganizationFiscalOperationsResponse: z.ZodObject<{
|
|
|
84476
84662
|
id: z.ZodString;
|
|
84477
84663
|
version: z.ZodString;
|
|
84478
84664
|
}, z.core.$strip>;
|
|
84665
|
+
totals: z.ZodNullable<z.ZodObject<{
|
|
84666
|
+
net: z.ZodString;
|
|
84667
|
+
non_billable: z.ZodString;
|
|
84668
|
+
tax: z.ZodString;
|
|
84669
|
+
total: z.ZodString;
|
|
84670
|
+
}, z.core.$strip>>;
|
|
84479
84671
|
updated_at: z.ZodISODateTime;
|
|
84480
84672
|
}, z.core.$strip>>;
|
|
84481
84673
|
hasMore: z.ZodBoolean;
|
|
@@ -84522,6 +84714,39 @@ export declare const zReadOrganizationFiscalOperationResponse: z.ZodObject<{
|
|
|
84522
84714
|
recorded_at: string;
|
|
84523
84715
|
responded_at: string;
|
|
84524
84716
|
}>>>;
|
|
84717
|
+
counterparty: z.ZodNullable<z.ZodType<{
|
|
84718
|
+
identity_kind: "domestic";
|
|
84719
|
+
legal_name: string;
|
|
84720
|
+
tax_id: string;
|
|
84721
|
+
} | {
|
|
84722
|
+
foreign_identifier: string;
|
|
84723
|
+
identity_kind: "foreign";
|
|
84724
|
+
legal_name: string;
|
|
84725
|
+
}, {
|
|
84726
|
+
identity_kind: "domestic";
|
|
84727
|
+
legal_name: string;
|
|
84728
|
+
tax_id: string;
|
|
84729
|
+
} | {
|
|
84730
|
+
foreign_identifier: string;
|
|
84731
|
+
identity_kind: "foreign";
|
|
84732
|
+
legal_name: string;
|
|
84733
|
+
}, z.core.$ZodTypeInternals<{
|
|
84734
|
+
identity_kind: "domestic";
|
|
84735
|
+
legal_name: string;
|
|
84736
|
+
tax_id: string;
|
|
84737
|
+
} | {
|
|
84738
|
+
foreign_identifier: string;
|
|
84739
|
+
identity_kind: "foreign";
|
|
84740
|
+
legal_name: string;
|
|
84741
|
+
}, {
|
|
84742
|
+
identity_kind: "domestic";
|
|
84743
|
+
legal_name: string;
|
|
84744
|
+
tax_id: string;
|
|
84745
|
+
} | {
|
|
84746
|
+
foreign_identifier: string;
|
|
84747
|
+
identity_kind: "foreign";
|
|
84748
|
+
legal_name: string;
|
|
84749
|
+
}>>>;
|
|
84525
84750
|
operation: z.ZodObject<{
|
|
84526
84751
|
accepted_at: z.ZodNullable<z.ZodISODateTime>;
|
|
84527
84752
|
action: z.ZodEnum<{
|
|
@@ -86515,6 +86740,7 @@ export declare const zListReceivedDocumentsResponse: z.ZodObject<{
|
|
|
86515
86740
|
sandbox: "sandbox";
|
|
86516
86741
|
}>;
|
|
86517
86742
|
id: z.ZodUUID;
|
|
86743
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
86518
86744
|
issuerTaxId: z.ZodString;
|
|
86519
86745
|
receivedAt: z.ZodISODateTime;
|
|
86520
86746
|
state: z.ZodEnum<{
|
|
@@ -86590,6 +86816,7 @@ export declare const zReadReceivedDocumentResponse: z.ZodObject<{
|
|
|
86590
86816
|
sandbox: "sandbox";
|
|
86591
86817
|
}>;
|
|
86592
86818
|
id: z.ZodUUID;
|
|
86819
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
86593
86820
|
issuerTaxId: z.ZodString;
|
|
86594
86821
|
notReceivedReason: z.ZodNullable<z.ZodEnum<{
|
|
86595
86822
|
buyerRncMismatch: "buyerRncMismatch";
|
|
@@ -86666,6 +86893,7 @@ export declare const zRecordCommercialResponseResponse: z.ZodObject<{
|
|
|
86666
86893
|
sandbox: "sandbox";
|
|
86667
86894
|
}>;
|
|
86668
86895
|
id: z.ZodUUID;
|
|
86896
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
86669
86897
|
issuerTaxId: z.ZodString;
|
|
86670
86898
|
notReceivedReason: z.ZodNullable<z.ZodEnum<{
|
|
86671
86899
|
buyerRncMismatch: "buyerRncMismatch";
|
|
@@ -87493,6 +87721,7 @@ export declare const zListSourceReceivedDocumentsResponse: z.ZodObject<{
|
|
|
87493
87721
|
sandbox: "sandbox";
|
|
87494
87722
|
}>;
|
|
87495
87723
|
id: z.ZodUUID;
|
|
87724
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
87496
87725
|
issuerTaxId: z.ZodString;
|
|
87497
87726
|
receivedAt: z.ZodISODateTime;
|
|
87498
87727
|
state: z.ZodEnum<{
|
|
@@ -87568,6 +87797,7 @@ export declare const zGetSourceReceivedDocumentResponse: z.ZodObject<{
|
|
|
87568
87797
|
sandbox: "sandbox";
|
|
87569
87798
|
}>;
|
|
87570
87799
|
id: z.ZodUUID;
|
|
87800
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
87571
87801
|
issuerTaxId: z.ZodString;
|
|
87572
87802
|
notReceivedReason: z.ZodNullable<z.ZodEnum<{
|
|
87573
87803
|
buyerRncMismatch: "buyerRncMismatch";
|
|
@@ -87644,6 +87874,7 @@ export declare const zRespondToReceivedDocumentResponse: z.ZodObject<{
|
|
|
87644
87874
|
sandbox: "sandbox";
|
|
87645
87875
|
}>;
|
|
87646
87876
|
id: z.ZodUUID;
|
|
87877
|
+
issuerLegalName: z.ZodNullable<z.ZodString>;
|
|
87647
87878
|
issuerTaxId: z.ZodString;
|
|
87648
87879
|
notReceivedReason: z.ZodNullable<z.ZodEnum<{
|
|
87649
87880
|
buyerRncMismatch: "buyerRncMismatch";
|