@timbro/invoices 0.10.3 → 0.12.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/README.md +58 -2
- package/dist/admin.d.ts +2 -3
- package/dist/admin.d.ts.map +1 -1
- package/dist/generated/hosted/index.d.ts +3 -3
- package/dist/generated/hosted/index.d.ts.map +1 -1
- package/dist/generated/hosted/index.js +2 -2
- package/dist/generated/hosted/sdk.gen.d.ts +19 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +225 -1
- package/dist/generated/hosted/types.gen.d.ts +583 -5
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +6678 -208
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +694 -207
- package/dist/generated/hosted/zod.gen.d.ts +1661 -14
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +772 -222
- package/dist/generated/index.d.ts +3 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/invoice-api-contract.d.ts +186 -2
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +211 -1
- package/dist/generated/sdk.gen.d.ts +5 -5
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +93 -93
- package/dist/generated/types.gen.d.ts +288 -139
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +2304 -2548
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +179 -109
- package/dist/generated/zod.gen.d.ts +1252 -2188
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +215 -115
- package/dist/hosted-tenant.d.ts +9 -0
- package/dist/hosted-tenant.d.ts.map +1 -1
- package/dist/hosted-tenant.js +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +22 -3
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +48 -12
- package/dist/invoice.d.ts +5 -0
- package/dist/invoice.d.ts.map +1 -1
- package/dist/invoice.js +1 -0
- package/dist/issuance-readiness.d.ts +9 -0
- package/dist/issuance-readiness.d.ts.map +1 -0
- package/dist/issuance-readiness.js +19 -0
- package/dist/timbro-client.d.ts +6 -8
- package/dist/timbro-client.d.ts.map +1 -1
- package/dist/timbro-client.js +3 -5
- package/dist/webhook-event.d.ts +392 -0
- package/dist/webhook-event.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/certificate-custody-readiness.d.ts +0 -6
- package/dist/certificate-custody-readiness.d.ts.map +0 -1
- package/dist/certificate-custody-readiness.js +0 -13
- package/dist/fiscal-numbering-readiness.d.ts +0 -6
- package/dist/fiscal-numbering-readiness.d.ts.map +0 -1
- package/dist/fiscal-numbering-readiness.js +0 -13
package/dist/webhook-event.d.ts
CHANGED
|
@@ -51,6 +51,34 @@ export declare const webhookEventSchema: z.ZodType<{
|
|
|
51
51
|
organizationId: string;
|
|
52
52
|
sequence: string;
|
|
53
53
|
type: "invoice.ready";
|
|
54
|
+
} | {
|
|
55
|
+
apiVersion: string;
|
|
56
|
+
data: {
|
|
57
|
+
deliveryId: string;
|
|
58
|
+
id: string;
|
|
59
|
+
sourceConnectionId: string;
|
|
60
|
+
};
|
|
61
|
+
environment: "certification" | "production" | "sandbox";
|
|
62
|
+
id: string;
|
|
63
|
+
object: "event";
|
|
64
|
+
occurredAt: string;
|
|
65
|
+
organizationId: string;
|
|
66
|
+
sequence: string;
|
|
67
|
+
type: "invoice.deliverySent";
|
|
68
|
+
} | {
|
|
69
|
+
apiVersion: string;
|
|
70
|
+
data: {
|
|
71
|
+
deliveryId: string;
|
|
72
|
+
id: string;
|
|
73
|
+
sourceConnectionId: string;
|
|
74
|
+
};
|
|
75
|
+
environment: "certification" | "production" | "sandbox";
|
|
76
|
+
id: string;
|
|
77
|
+
object: "event";
|
|
78
|
+
occurredAt: string;
|
|
79
|
+
organizationId: string;
|
|
80
|
+
sequence: string;
|
|
81
|
+
type: "invoice.deliveryFailed";
|
|
54
82
|
} | {
|
|
55
83
|
apiVersion: string;
|
|
56
84
|
data: {
|
|
@@ -562,6 +590,34 @@ export declare const webhookEventSchema: z.ZodType<{
|
|
|
562
590
|
organizationId: string;
|
|
563
591
|
sequence: string;
|
|
564
592
|
type: "invoice.ready";
|
|
593
|
+
} | {
|
|
594
|
+
apiVersion: string;
|
|
595
|
+
data: {
|
|
596
|
+
deliveryId: string;
|
|
597
|
+
id: string;
|
|
598
|
+
sourceConnectionId: string;
|
|
599
|
+
};
|
|
600
|
+
environment: "certification" | "production" | "sandbox";
|
|
601
|
+
id: string;
|
|
602
|
+
object: "event";
|
|
603
|
+
occurredAt: string;
|
|
604
|
+
organizationId: string;
|
|
605
|
+
sequence: string;
|
|
606
|
+
type: "invoice.deliverySent";
|
|
607
|
+
} | {
|
|
608
|
+
apiVersion: string;
|
|
609
|
+
data: {
|
|
610
|
+
deliveryId: string;
|
|
611
|
+
id: string;
|
|
612
|
+
sourceConnectionId: string;
|
|
613
|
+
};
|
|
614
|
+
environment: "certification" | "production" | "sandbox";
|
|
615
|
+
id: string;
|
|
616
|
+
object: "event";
|
|
617
|
+
occurredAt: string;
|
|
618
|
+
organizationId: string;
|
|
619
|
+
sequence: string;
|
|
620
|
+
type: "invoice.deliveryFailed";
|
|
565
621
|
} | {
|
|
566
622
|
apiVersion: string;
|
|
567
623
|
data: {
|
|
@@ -1073,6 +1129,34 @@ export declare const webhookEventSchema: z.ZodType<{
|
|
|
1073
1129
|
organizationId: string;
|
|
1074
1130
|
sequence: string;
|
|
1075
1131
|
type: "invoice.ready";
|
|
1132
|
+
} | {
|
|
1133
|
+
apiVersion: string;
|
|
1134
|
+
data: {
|
|
1135
|
+
deliveryId: string;
|
|
1136
|
+
id: string;
|
|
1137
|
+
sourceConnectionId: string;
|
|
1138
|
+
};
|
|
1139
|
+
environment: "certification" | "production" | "sandbox";
|
|
1140
|
+
id: string;
|
|
1141
|
+
object: "event";
|
|
1142
|
+
occurredAt: string;
|
|
1143
|
+
organizationId: string;
|
|
1144
|
+
sequence: string;
|
|
1145
|
+
type: "invoice.deliverySent";
|
|
1146
|
+
} | {
|
|
1147
|
+
apiVersion: string;
|
|
1148
|
+
data: {
|
|
1149
|
+
deliveryId: string;
|
|
1150
|
+
id: string;
|
|
1151
|
+
sourceConnectionId: string;
|
|
1152
|
+
};
|
|
1153
|
+
environment: "certification" | "production" | "sandbox";
|
|
1154
|
+
id: string;
|
|
1155
|
+
object: "event";
|
|
1156
|
+
occurredAt: string;
|
|
1157
|
+
organizationId: string;
|
|
1158
|
+
sequence: string;
|
|
1159
|
+
type: "invoice.deliveryFailed";
|
|
1076
1160
|
} | {
|
|
1077
1161
|
apiVersion: string;
|
|
1078
1162
|
data: {
|
|
@@ -1584,6 +1668,34 @@ export declare const webhookEventSchema: z.ZodType<{
|
|
|
1584
1668
|
organizationId: string;
|
|
1585
1669
|
sequence: string;
|
|
1586
1670
|
type: "invoice.ready";
|
|
1671
|
+
} | {
|
|
1672
|
+
apiVersion: string;
|
|
1673
|
+
data: {
|
|
1674
|
+
deliveryId: string;
|
|
1675
|
+
id: string;
|
|
1676
|
+
sourceConnectionId: string;
|
|
1677
|
+
};
|
|
1678
|
+
environment: "certification" | "production" | "sandbox";
|
|
1679
|
+
id: string;
|
|
1680
|
+
object: "event";
|
|
1681
|
+
occurredAt: string;
|
|
1682
|
+
organizationId: string;
|
|
1683
|
+
sequence: string;
|
|
1684
|
+
type: "invoice.deliverySent";
|
|
1685
|
+
} | {
|
|
1686
|
+
apiVersion: string;
|
|
1687
|
+
data: {
|
|
1688
|
+
deliveryId: string;
|
|
1689
|
+
id: string;
|
|
1690
|
+
sourceConnectionId: string;
|
|
1691
|
+
};
|
|
1692
|
+
environment: "certification" | "production" | "sandbox";
|
|
1693
|
+
id: string;
|
|
1694
|
+
object: "event";
|
|
1695
|
+
occurredAt: string;
|
|
1696
|
+
organizationId: string;
|
|
1697
|
+
sequence: string;
|
|
1698
|
+
type: "invoice.deliveryFailed";
|
|
1587
1699
|
} | {
|
|
1588
1700
|
apiVersion: string;
|
|
1589
1701
|
data: {
|
|
@@ -2201,6 +2313,20 @@ export declare const invoiceWebhookEventSchema: z.ZodType<{
|
|
|
2201
2313
|
sourceConnectionId: string;
|
|
2202
2314
|
};
|
|
2203
2315
|
type: "invoice.ready";
|
|
2316
|
+
} | {
|
|
2317
|
+
data: {
|
|
2318
|
+
deliveryId: string;
|
|
2319
|
+
id: string;
|
|
2320
|
+
sourceConnectionId: string;
|
|
2321
|
+
};
|
|
2322
|
+
type: "invoice.deliverySent";
|
|
2323
|
+
} | {
|
|
2324
|
+
data: {
|
|
2325
|
+
deliveryId: string;
|
|
2326
|
+
id: string;
|
|
2327
|
+
sourceConnectionId: string;
|
|
2328
|
+
};
|
|
2329
|
+
type: "invoice.deliveryFailed";
|
|
2204
2330
|
}, {
|
|
2205
2331
|
data: {
|
|
2206
2332
|
id: string;
|
|
@@ -2225,6 +2351,20 @@ export declare const invoiceWebhookEventSchema: z.ZodType<{
|
|
|
2225
2351
|
sourceConnectionId: string;
|
|
2226
2352
|
};
|
|
2227
2353
|
type: "invoice.ready";
|
|
2354
|
+
} | {
|
|
2355
|
+
data: {
|
|
2356
|
+
deliveryId: string;
|
|
2357
|
+
id: string;
|
|
2358
|
+
sourceConnectionId: string;
|
|
2359
|
+
};
|
|
2360
|
+
type: "invoice.deliverySent";
|
|
2361
|
+
} | {
|
|
2362
|
+
data: {
|
|
2363
|
+
deliveryId: string;
|
|
2364
|
+
id: string;
|
|
2365
|
+
sourceConnectionId: string;
|
|
2366
|
+
};
|
|
2367
|
+
type: "invoice.deliveryFailed";
|
|
2228
2368
|
}, z.core.$ZodTypeInternals<{
|
|
2229
2369
|
data: {
|
|
2230
2370
|
id: string;
|
|
@@ -2249,6 +2389,20 @@ export declare const invoiceWebhookEventSchema: z.ZodType<{
|
|
|
2249
2389
|
sourceConnectionId: string;
|
|
2250
2390
|
};
|
|
2251
2391
|
type: "invoice.ready";
|
|
2392
|
+
} | {
|
|
2393
|
+
data: {
|
|
2394
|
+
deliveryId: string;
|
|
2395
|
+
id: string;
|
|
2396
|
+
sourceConnectionId: string;
|
|
2397
|
+
};
|
|
2398
|
+
type: "invoice.deliverySent";
|
|
2399
|
+
} | {
|
|
2400
|
+
data: {
|
|
2401
|
+
deliveryId: string;
|
|
2402
|
+
id: string;
|
|
2403
|
+
sourceConnectionId: string;
|
|
2404
|
+
};
|
|
2405
|
+
type: "invoice.deliveryFailed";
|
|
2252
2406
|
}, {
|
|
2253
2407
|
data: {
|
|
2254
2408
|
id: string;
|
|
@@ -2273,6 +2427,20 @@ export declare const invoiceWebhookEventSchema: z.ZodType<{
|
|
|
2273
2427
|
sourceConnectionId: string;
|
|
2274
2428
|
};
|
|
2275
2429
|
type: "invoice.ready";
|
|
2430
|
+
} | {
|
|
2431
|
+
data: {
|
|
2432
|
+
deliveryId: string;
|
|
2433
|
+
id: string;
|
|
2434
|
+
sourceConnectionId: string;
|
|
2435
|
+
};
|
|
2436
|
+
type: "invoice.deliverySent";
|
|
2437
|
+
} | {
|
|
2438
|
+
data: {
|
|
2439
|
+
deliveryId: string;
|
|
2440
|
+
id: string;
|
|
2441
|
+
sourceConnectionId: string;
|
|
2442
|
+
};
|
|
2443
|
+
type: "invoice.deliveryFailed";
|
|
2276
2444
|
}>>;
|
|
2277
2445
|
export declare const invoiceWebhookEventEnvelopeSchema: z.ZodType<{
|
|
2278
2446
|
apiVersion: string;
|
|
@@ -2326,6 +2494,34 @@ export declare const invoiceWebhookEventEnvelopeSchema: z.ZodType<{
|
|
|
2326
2494
|
organizationId: string;
|
|
2327
2495
|
sequence: string;
|
|
2328
2496
|
type: "invoice.ready";
|
|
2497
|
+
} | {
|
|
2498
|
+
apiVersion: string;
|
|
2499
|
+
data: {
|
|
2500
|
+
deliveryId: string;
|
|
2501
|
+
id: string;
|
|
2502
|
+
sourceConnectionId: string;
|
|
2503
|
+
};
|
|
2504
|
+
environment: "certification" | "production" | "sandbox";
|
|
2505
|
+
id: string;
|
|
2506
|
+
object: "event";
|
|
2507
|
+
occurredAt: string;
|
|
2508
|
+
organizationId: string;
|
|
2509
|
+
sequence: string;
|
|
2510
|
+
type: "invoice.deliverySent";
|
|
2511
|
+
} | {
|
|
2512
|
+
apiVersion: string;
|
|
2513
|
+
data: {
|
|
2514
|
+
deliveryId: string;
|
|
2515
|
+
id: string;
|
|
2516
|
+
sourceConnectionId: string;
|
|
2517
|
+
};
|
|
2518
|
+
environment: "certification" | "production" | "sandbox";
|
|
2519
|
+
id: string;
|
|
2520
|
+
object: "event";
|
|
2521
|
+
occurredAt: string;
|
|
2522
|
+
organizationId: string;
|
|
2523
|
+
sequence: string;
|
|
2524
|
+
type: "invoice.deliveryFailed";
|
|
2329
2525
|
}, {
|
|
2330
2526
|
apiVersion: string;
|
|
2331
2527
|
data: {
|
|
@@ -2378,6 +2574,34 @@ export declare const invoiceWebhookEventEnvelopeSchema: z.ZodType<{
|
|
|
2378
2574
|
organizationId: string;
|
|
2379
2575
|
sequence: string;
|
|
2380
2576
|
type: "invoice.ready";
|
|
2577
|
+
} | {
|
|
2578
|
+
apiVersion: string;
|
|
2579
|
+
data: {
|
|
2580
|
+
deliveryId: string;
|
|
2581
|
+
id: string;
|
|
2582
|
+
sourceConnectionId: string;
|
|
2583
|
+
};
|
|
2584
|
+
environment: "certification" | "production" | "sandbox";
|
|
2585
|
+
id: string;
|
|
2586
|
+
object: "event";
|
|
2587
|
+
occurredAt: string;
|
|
2588
|
+
organizationId: string;
|
|
2589
|
+
sequence: string;
|
|
2590
|
+
type: "invoice.deliverySent";
|
|
2591
|
+
} | {
|
|
2592
|
+
apiVersion: string;
|
|
2593
|
+
data: {
|
|
2594
|
+
deliveryId: string;
|
|
2595
|
+
id: string;
|
|
2596
|
+
sourceConnectionId: string;
|
|
2597
|
+
};
|
|
2598
|
+
environment: "certification" | "production" | "sandbox";
|
|
2599
|
+
id: string;
|
|
2600
|
+
object: "event";
|
|
2601
|
+
occurredAt: string;
|
|
2602
|
+
organizationId: string;
|
|
2603
|
+
sequence: string;
|
|
2604
|
+
type: "invoice.deliveryFailed";
|
|
2381
2605
|
}, z.core.$ZodTypeInternals<{
|
|
2382
2606
|
apiVersion: string;
|
|
2383
2607
|
data: {
|
|
@@ -2430,6 +2654,34 @@ export declare const invoiceWebhookEventEnvelopeSchema: z.ZodType<{
|
|
|
2430
2654
|
organizationId: string;
|
|
2431
2655
|
sequence: string;
|
|
2432
2656
|
type: "invoice.ready";
|
|
2657
|
+
} | {
|
|
2658
|
+
apiVersion: string;
|
|
2659
|
+
data: {
|
|
2660
|
+
deliveryId: string;
|
|
2661
|
+
id: string;
|
|
2662
|
+
sourceConnectionId: string;
|
|
2663
|
+
};
|
|
2664
|
+
environment: "certification" | "production" | "sandbox";
|
|
2665
|
+
id: string;
|
|
2666
|
+
object: "event";
|
|
2667
|
+
occurredAt: string;
|
|
2668
|
+
organizationId: string;
|
|
2669
|
+
sequence: string;
|
|
2670
|
+
type: "invoice.deliverySent";
|
|
2671
|
+
} | {
|
|
2672
|
+
apiVersion: string;
|
|
2673
|
+
data: {
|
|
2674
|
+
deliveryId: string;
|
|
2675
|
+
id: string;
|
|
2676
|
+
sourceConnectionId: string;
|
|
2677
|
+
};
|
|
2678
|
+
environment: "certification" | "production" | "sandbox";
|
|
2679
|
+
id: string;
|
|
2680
|
+
object: "event";
|
|
2681
|
+
occurredAt: string;
|
|
2682
|
+
organizationId: string;
|
|
2683
|
+
sequence: string;
|
|
2684
|
+
type: "invoice.deliveryFailed";
|
|
2433
2685
|
}, {
|
|
2434
2686
|
apiVersion: string;
|
|
2435
2687
|
data: {
|
|
@@ -2482,6 +2734,34 @@ export declare const invoiceWebhookEventEnvelopeSchema: z.ZodType<{
|
|
|
2482
2734
|
organizationId: string;
|
|
2483
2735
|
sequence: string;
|
|
2484
2736
|
type: "invoice.ready";
|
|
2737
|
+
} | {
|
|
2738
|
+
apiVersion: string;
|
|
2739
|
+
data: {
|
|
2740
|
+
deliveryId: string;
|
|
2741
|
+
id: string;
|
|
2742
|
+
sourceConnectionId: string;
|
|
2743
|
+
};
|
|
2744
|
+
environment: "certification" | "production" | "sandbox";
|
|
2745
|
+
id: string;
|
|
2746
|
+
object: "event";
|
|
2747
|
+
occurredAt: string;
|
|
2748
|
+
organizationId: string;
|
|
2749
|
+
sequence: string;
|
|
2750
|
+
type: "invoice.deliverySent";
|
|
2751
|
+
} | {
|
|
2752
|
+
apiVersion: string;
|
|
2753
|
+
data: {
|
|
2754
|
+
deliveryId: string;
|
|
2755
|
+
id: string;
|
|
2756
|
+
sourceConnectionId: string;
|
|
2757
|
+
};
|
|
2758
|
+
environment: "certification" | "production" | "sandbox";
|
|
2759
|
+
id: string;
|
|
2760
|
+
object: "event";
|
|
2761
|
+
occurredAt: string;
|
|
2762
|
+
organizationId: string;
|
|
2763
|
+
sequence: string;
|
|
2764
|
+
type: "invoice.deliveryFailed";
|
|
2485
2765
|
}>>;
|
|
2486
2766
|
export type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
2487
2767
|
export type ReceptionWebhookEvent = z.infer<typeof receptionWebhookEventSchema>;
|
|
@@ -2540,6 +2820,34 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodType
|
|
|
2540
2820
|
organizationId: string;
|
|
2541
2821
|
sequence: string;
|
|
2542
2822
|
type: "invoice.ready";
|
|
2823
|
+
} | {
|
|
2824
|
+
apiVersion: string;
|
|
2825
|
+
data: {
|
|
2826
|
+
deliveryId: string;
|
|
2827
|
+
id: string;
|
|
2828
|
+
sourceConnectionId: string;
|
|
2829
|
+
};
|
|
2830
|
+
environment: "certification" | "production" | "sandbox";
|
|
2831
|
+
id: string;
|
|
2832
|
+
object: "event";
|
|
2833
|
+
occurredAt: string;
|
|
2834
|
+
organizationId: string;
|
|
2835
|
+
sequence: string;
|
|
2836
|
+
type: "invoice.deliverySent";
|
|
2837
|
+
} | {
|
|
2838
|
+
apiVersion: string;
|
|
2839
|
+
data: {
|
|
2840
|
+
deliveryId: string;
|
|
2841
|
+
id: string;
|
|
2842
|
+
sourceConnectionId: string;
|
|
2843
|
+
};
|
|
2844
|
+
environment: "certification" | "production" | "sandbox";
|
|
2845
|
+
id: string;
|
|
2846
|
+
object: "event";
|
|
2847
|
+
occurredAt: string;
|
|
2848
|
+
organizationId: string;
|
|
2849
|
+
sequence: string;
|
|
2850
|
+
type: "invoice.deliveryFailed";
|
|
2543
2851
|
} | {
|
|
2544
2852
|
apiVersion: string;
|
|
2545
2853
|
data: {
|
|
@@ -3051,6 +3359,34 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodType
|
|
|
3051
3359
|
organizationId: string;
|
|
3052
3360
|
sequence: string;
|
|
3053
3361
|
type: "invoice.ready";
|
|
3362
|
+
} | {
|
|
3363
|
+
apiVersion: string;
|
|
3364
|
+
data: {
|
|
3365
|
+
deliveryId: string;
|
|
3366
|
+
id: string;
|
|
3367
|
+
sourceConnectionId: string;
|
|
3368
|
+
};
|
|
3369
|
+
environment: "certification" | "production" | "sandbox";
|
|
3370
|
+
id: string;
|
|
3371
|
+
object: "event";
|
|
3372
|
+
occurredAt: string;
|
|
3373
|
+
organizationId: string;
|
|
3374
|
+
sequence: string;
|
|
3375
|
+
type: "invoice.deliverySent";
|
|
3376
|
+
} | {
|
|
3377
|
+
apiVersion: string;
|
|
3378
|
+
data: {
|
|
3379
|
+
deliveryId: string;
|
|
3380
|
+
id: string;
|
|
3381
|
+
sourceConnectionId: string;
|
|
3382
|
+
};
|
|
3383
|
+
environment: "certification" | "production" | "sandbox";
|
|
3384
|
+
id: string;
|
|
3385
|
+
object: "event";
|
|
3386
|
+
occurredAt: string;
|
|
3387
|
+
organizationId: string;
|
|
3388
|
+
sequence: string;
|
|
3389
|
+
type: "invoice.deliveryFailed";
|
|
3054
3390
|
} | {
|
|
3055
3391
|
apiVersion: string;
|
|
3056
3392
|
data: {
|
|
@@ -3562,6 +3898,34 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodType
|
|
|
3562
3898
|
organizationId: string;
|
|
3563
3899
|
sequence: string;
|
|
3564
3900
|
type: "invoice.ready";
|
|
3901
|
+
} | {
|
|
3902
|
+
apiVersion: string;
|
|
3903
|
+
data: {
|
|
3904
|
+
deliveryId: string;
|
|
3905
|
+
id: string;
|
|
3906
|
+
sourceConnectionId: string;
|
|
3907
|
+
};
|
|
3908
|
+
environment: "certification" | "production" | "sandbox";
|
|
3909
|
+
id: string;
|
|
3910
|
+
object: "event";
|
|
3911
|
+
occurredAt: string;
|
|
3912
|
+
organizationId: string;
|
|
3913
|
+
sequence: string;
|
|
3914
|
+
type: "invoice.deliverySent";
|
|
3915
|
+
} | {
|
|
3916
|
+
apiVersion: string;
|
|
3917
|
+
data: {
|
|
3918
|
+
deliveryId: string;
|
|
3919
|
+
id: string;
|
|
3920
|
+
sourceConnectionId: string;
|
|
3921
|
+
};
|
|
3922
|
+
environment: "certification" | "production" | "sandbox";
|
|
3923
|
+
id: string;
|
|
3924
|
+
object: "event";
|
|
3925
|
+
occurredAt: string;
|
|
3926
|
+
organizationId: string;
|
|
3927
|
+
sequence: string;
|
|
3928
|
+
type: "invoice.deliveryFailed";
|
|
3565
3929
|
} | {
|
|
3566
3930
|
apiVersion: string;
|
|
3567
3931
|
data: {
|
|
@@ -4073,6 +4437,34 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodType
|
|
|
4073
4437
|
organizationId: string;
|
|
4074
4438
|
sequence: string;
|
|
4075
4439
|
type: "invoice.ready";
|
|
4440
|
+
} | {
|
|
4441
|
+
apiVersion: string;
|
|
4442
|
+
data: {
|
|
4443
|
+
deliveryId: string;
|
|
4444
|
+
id: string;
|
|
4445
|
+
sourceConnectionId: string;
|
|
4446
|
+
};
|
|
4447
|
+
environment: "certification" | "production" | "sandbox";
|
|
4448
|
+
id: string;
|
|
4449
|
+
object: "event";
|
|
4450
|
+
occurredAt: string;
|
|
4451
|
+
organizationId: string;
|
|
4452
|
+
sequence: string;
|
|
4453
|
+
type: "invoice.deliverySent";
|
|
4454
|
+
} | {
|
|
4455
|
+
apiVersion: string;
|
|
4456
|
+
data: {
|
|
4457
|
+
deliveryId: string;
|
|
4458
|
+
id: string;
|
|
4459
|
+
sourceConnectionId: string;
|
|
4460
|
+
};
|
|
4461
|
+
environment: "certification" | "production" | "sandbox";
|
|
4462
|
+
id: string;
|
|
4463
|
+
object: "event";
|
|
4464
|
+
occurredAt: string;
|
|
4465
|
+
organizationId: string;
|
|
4466
|
+
sequence: string;
|
|
4467
|
+
type: "invoice.deliveryFailed";
|
|
4076
4468
|
} | {
|
|
4077
4469
|
apiVersion: string;
|
|
4078
4470
|
data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-event.d.ts","sourceRoot":"","sources":["../src/webhook-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"webhook-event.d.ts","sourceRoot":"","sources":["../src/webhook-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,qBAAqB,CAIlF;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,iGAAiG;AACjG,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG,wBAAwB,CAAC;AAIpF,+EAA+E;AAC/E,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,oBAAoB,GAC1B,KAAK,IAAI,qBAAqB,CAEhC;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,oBAAoB,CAOhF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timbro/invoices",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@timbro/protocol": "0.
|
|
71
|
+
"@timbro/protocol": "0.11.0",
|
|
72
72
|
"zod": "4.4.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"generate": "openapi-ts && node ../../scripts/finalize-sdk-operation-bindings.mjs && node ../../scripts/generate-sdk-problem-catalog.mjs && node ../../scripts/generate-invoice-api-contract.mjs && biome check --write src/generated && node ../../scripts/validate-generated-sdk-contract.mjs && pnpm run generate:hosted-controls",
|
|
82
|
-
"generate:hosted-controls": "openapi-ts --file ./openapi-ts.config.ts --input ./openapi/gateway-controls.json --output ./src/generated/hosted && node ../../scripts/finalize-hosted-controls-operation-bindings.mjs",
|
|
82
|
+
"generate:hosted-controls": "openapi-ts --file ./openapi-ts.config.ts --input ./openapi/gateway-controls.json --output ./src/generated/hosted && node ../../scripts/finalize-hosted-controls-operation-bindings.mjs && biome check --write src/generated/hosted",
|
|
83
83
|
"verify:hosted-controls-contract": "node ../../scripts/verify-gateway-hosted-controls-contract.mjs",
|
|
84
84
|
"typecheck": "tsc -p tsconfig.json --pretty false && tsc -p tsconfig.node.json --pretty false && tsc -p tsconfig.worker.json --pretty false && tsc -p tsconfig.receiver.json --pretty false && tsc -p tsconfig.tests.json --pretty false && tsc -p tsconfig.examples.json --pretty false",
|
|
85
85
|
"build": "node scripts/clean-dist.mjs && tsc -p tsconfig.build.json --pretty false && node scripts/stage-fiscal-engine-runtime.mjs",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type CertificateCustodyReadiness as GeneratedCertificateCustodyReadiness } from "./generated/index.ts";
|
|
2
|
-
import type { Client } from "./generated-operation-client.ts";
|
|
3
|
-
import { type ReadonlyCamelCase } from "./public-case.ts";
|
|
4
|
-
export type CertificateCustodyReadiness = ReadonlyCamelCase<GeneratedCertificateCustodyReadiness>;
|
|
5
|
-
export declare function readCertificateCustodyReadinessResource(client: Client, signal: AbortSignal | undefined): Promise<CertificateCustodyReadiness>;
|
|
6
|
-
//# sourceMappingURL=certificate-custody-readiness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"certificate-custody-readiness.d.ts","sourceRoot":"","sources":["../src/certificate-custody-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,IAAI,oCAAoC,EAEzE,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,KAAK,iBAAiB,EAAgB,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,oCAAoC,CAAC,CAAC;AAElG,wBAAsB,uCAAuC,CAC3D,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,OAAO,CAAC,2BAA2B,CAAC,CAStC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { readCertificateCustodyReadiness, } from "./generated/index.js";
|
|
2
|
-
import { throwGeneratedProblem } from "./generated-problem.js";
|
|
3
|
-
import { toPublicCase } from "./public-case.js";
|
|
4
|
-
export async function readCertificateCustodyReadinessResource(client, signal) {
|
|
5
|
-
const response = await readCertificateCustodyReadiness({
|
|
6
|
-
client,
|
|
7
|
-
...(signal === undefined ? {} : { signal }),
|
|
8
|
-
});
|
|
9
|
-
if (response.status !== 200) {
|
|
10
|
-
throwGeneratedProblem(response, "Certificate-custody readiness read failed");
|
|
11
|
-
}
|
|
12
|
-
return toPublicCase(response.body);
|
|
13
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type FiscalNumberAuthorizationReadiness } from "./generated/index.ts";
|
|
2
|
-
import type { Client } from "./generated-operation-client.ts";
|
|
3
|
-
import { type ReadonlyCamelCase } from "./public-case.ts";
|
|
4
|
-
export type FiscalNumberingReadiness = ReadonlyCamelCase<FiscalNumberAuthorizationReadiness>;
|
|
5
|
-
export declare function readFiscalNumberingReadinessResource(client: Client, signal: AbortSignal | undefined): Promise<FiscalNumberingReadiness>;
|
|
6
|
-
//# sourceMappingURL=fiscal-numbering-readiness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fiscal-numbering-readiness.d.ts","sourceRoot":"","sources":["../src/fiscal-numbering-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kCAAkC,EAExC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,KAAK,iBAAiB,EAAgB,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAE7F,wBAAsB,oCAAoC,CACxD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CASnC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { readFiscalNumberAuthorizationReadiness, } from "./generated/index.js";
|
|
2
|
-
import { throwGeneratedProblem } from "./generated-problem.js";
|
|
3
|
-
import { toPublicCase } from "./public-case.js";
|
|
4
|
-
export async function readFiscalNumberingReadinessResource(client, signal) {
|
|
5
|
-
const response = await readFiscalNumberAuthorizationReadiness({
|
|
6
|
-
client,
|
|
7
|
-
...(signal === undefined ? {} : { signal }),
|
|
8
|
-
});
|
|
9
|
-
if (response.status !== 200) {
|
|
10
|
-
throwGeneratedProblem(response, "Fiscal-number readiness read failed");
|
|
11
|
-
}
|
|
12
|
-
return toPublicCase(response.body);
|
|
13
|
-
}
|