@baseworks/invoice 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/dist/events.d.ts +38 -38
  2. package/package.json +2 -2
package/dist/events.d.ts CHANGED
@@ -39,25 +39,25 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
39
39
  at: z.ZodNumber;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  at: number;
42
- lines: string;
43
- short_id: string;
44
42
  customer_id: string;
45
43
  customer_name: string;
46
44
  currency: string;
45
+ lines: string;
47
46
  subtotal_cents: number;
48
47
  total_cents: number;
48
+ short_id: string;
49
49
  source?: string | undefined;
50
50
  metadata?: string | undefined;
51
51
  external_number?: string | undefined;
52
52
  }, {
53
53
  at: number;
54
- lines: string;
55
- short_id: string;
56
54
  customer_id: string;
57
55
  customer_name: string;
58
56
  currency: string;
57
+ lines: string;
59
58
  subtotal_cents: number;
60
59
  total_cents: number;
60
+ short_id: string;
61
61
  source?: string | undefined;
62
62
  metadata?: string | undefined;
63
63
  external_number?: string | undefined;
@@ -73,18 +73,18 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
73
73
  at: z.ZodNumber;
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  at: number;
76
- lines: string;
77
76
  customer_id: string;
78
77
  customer_name: string;
78
+ lines: string;
79
79
  subtotal_cents: number;
80
80
  total_cents: number;
81
81
  metadata?: string | undefined;
82
82
  external_number?: string | undefined;
83
83
  }, {
84
84
  at: number;
85
- lines: string;
86
85
  customer_id: string;
87
86
  customer_name: string;
87
+ lines: string;
88
88
  subtotal_cents: number;
89
89
  total_cents: number;
90
90
  metadata?: string | undefined;
@@ -109,8 +109,8 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
109
109
  total_cents: number;
110
110
  issued_at: number;
111
111
  due_at: number;
112
- number_text?: string | undefined;
113
112
  external_number?: string | undefined;
113
+ number_text?: string | undefined;
114
114
  series_key?: string | undefined;
115
115
  }, {
116
116
  number: number;
@@ -120,8 +120,8 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
120
120
  total_cents: number;
121
121
  issued_at: number;
122
122
  due_at: number;
123
- number_text?: string | undefined;
124
123
  external_number?: string | undefined;
124
+ number_text?: string | undefined;
125
125
  series_key?: string | undefined;
126
126
  }>;
127
127
  PaymentRecorded: z.ZodObject<{
@@ -133,19 +133,19 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
133
133
  payment_id: z.ZodOptional<z.ZodString>;
134
134
  at: z.ZodNumber;
135
135
  }, "strip", z.ZodTypeAny, {
136
- method: string;
137
136
  at: number;
138
- status: "paid" | "draft" | "finalized" | "void";
139
- amount_paid_cents: number;
137
+ status: "draft" | "finalized" | "paid" | "void";
140
138
  amount_cents: number;
139
+ amount_paid_cents: number;
140
+ method: string;
141
141
  reference: string;
142
142
  payment_id?: string | undefined;
143
143
  }, {
144
- method: string;
145
144
  at: number;
146
- status: "paid" | "draft" | "finalized" | "void";
147
- amount_paid_cents: number;
145
+ status: "draft" | "finalized" | "paid" | "void";
148
146
  amount_cents: number;
147
+ amount_paid_cents: number;
148
+ method: string;
149
149
  reference: string;
150
150
  payment_id?: string | undefined;
151
151
  }>;
@@ -193,48 +193,48 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
193
193
  at: z.ZodNumber;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  at: number;
196
- lines: string;
197
- short_id: string;
198
- status: "paid" | "draft" | "finalized" | "void";
196
+ status: "draft" | "finalized" | "paid" | "void";
199
197
  customer_id: string;
200
198
  customer_name: string;
201
199
  currency: string;
200
+ lines: string;
202
201
  subtotal_cents: number;
203
202
  total_cents: number;
204
- amount_paid_cents: number;
203
+ short_id: string;
204
+ source: string;
205
+ metadata: string;
205
206
  issued_at: number;
206
207
  due_at: number;
207
- created_at: number;
208
- source: string;
208
+ amount_paid_cents: number;
209
+ mirror_key: string;
209
210
  external_refs: string;
210
- metadata: string;
211
211
  tax_cents: number;
212
- mirror_key: string;
213
212
  paid_at: number;
214
213
  voided_at: number;
215
214
  provider_updated_at: number;
215
+ created_at: number;
216
216
  }, {
217
217
  at: number;
218
- lines: string;
219
- short_id: string;
220
- status: "paid" | "draft" | "finalized" | "void";
218
+ status: "draft" | "finalized" | "paid" | "void";
221
219
  customer_id: string;
222
220
  customer_name: string;
223
221
  currency: string;
222
+ lines: string;
224
223
  subtotal_cents: number;
225
224
  total_cents: number;
226
- amount_paid_cents: number;
225
+ short_id: string;
226
+ source: string;
227
+ metadata: string;
227
228
  issued_at: number;
228
229
  due_at: number;
229
- created_at: number;
230
- source: string;
230
+ amount_paid_cents: number;
231
+ mirror_key: string;
231
232
  external_refs: string;
232
- metadata: string;
233
233
  tax_cents: number;
234
- mirror_key: string;
235
234
  paid_at: number;
236
235
  voided_at: number;
237
236
  provider_updated_at: number;
237
+ created_at: number;
238
238
  }>;
239
239
  InvoiceFiscalChanged: z.ZodObject<{
240
240
  status: z.ZodString;
@@ -244,14 +244,14 @@ declare const InvoiceEvents: _baseworks_foldbase.EventCatalog<{
244
244
  at: z.ZodNumber;
245
245
  }, "strip", z.ZodTypeAny, {
246
246
  at: number;
247
- status: string;
248
247
  message: string;
248
+ status: string;
249
249
  system: string;
250
250
  external_id: string;
251
251
  }, {
252
252
  at: number;
253
- status: string;
254
253
  message: string;
254
+ status: string;
255
255
  system: string;
256
256
  external_id: string;
257
257
  }>;
@@ -304,13 +304,13 @@ declare const NumberingEvents: _baseworks_foldbase.EventCatalog<{
304
304
  }, "strip", z.ZodTypeAny, {
305
305
  number: number;
306
306
  at: number;
307
- invoice_id: string;
308
307
  series_key: string;
308
+ invoice_id: string;
309
309
  }, {
310
310
  number: number;
311
311
  at: number;
312
- invoice_id: string;
313
312
  series_key: string;
313
+ invoice_id: string;
314
314
  }>;
315
315
  NumberReleased: z.ZodObject<{
316
316
  invoice_id: z.ZodString;
@@ -368,27 +368,27 @@ declare const TransactionEvents: _baseworks_foldbase.EventCatalog<{
368
368
  payment_id: z.ZodOptional<z.ZodString>;
369
369
  at: z.ZodNumber;
370
370
  }, "strip", z.ZodTypeAny, {
371
- method: string;
372
371
  at: number;
373
372
  customer_id: string;
374
373
  customer_name: string;
375
374
  currency: string;
376
375
  amount_cents: number;
376
+ method: string;
377
+ reference: string;
377
378
  invoice_id: string;
378
379
  invoice_number: number;
379
- reference: string;
380
380
  kind: "payment" | "refund" | "adjustment";
381
381
  payment_id?: string | undefined;
382
382
  }, {
383
- method: string;
384
383
  at: number;
385
384
  customer_id: string;
386
385
  customer_name: string;
387
386
  currency: string;
388
387
  amount_cents: number;
388
+ method: string;
389
+ reference: string;
389
390
  invoice_id: string;
390
391
  invoice_number: number;
391
- reference: string;
392
392
  kind: "payment" | "refund" | "adjustment";
393
393
  payment_id?: string | undefined;
394
394
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseworks/invoice",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Invoice capability: typed HTTP client, event catalog, projections, and CLI plugin for invoice-service (AR ledger). Contract-first, versioned with the service.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  "@baseworks/cli": "^0.2.0",
23
23
  "commander": "^15.0.0",
24
24
  "zod": "^3.25.76",
25
- "@baseworks/mcp": "^0.1.2",
25
+ "@baseworks/mcp": "^0.3.0",
26
26
  "@baseworks/foldbase": "0.2.0"
27
27
  },
28
28
  "devDependencies": {