@armor/zuora-mcp 0.0.0-development

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 (47) hide show
  1. package/.env.example +16 -0
  2. package/README.md +249 -0
  3. package/dist/cli.d.ts +15 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +73 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/config.d.ts +26 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +56 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/index.d.ts +22 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +148 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/prompts.d.ts +11 -0
  16. package/dist/prompts.d.ts.map +1 -0
  17. package/dist/prompts.js +236 -0
  18. package/dist/prompts.js.map +1 -0
  19. package/dist/resources.d.ts +11 -0
  20. package/dist/resources.d.ts.map +1 -0
  21. package/dist/resources.js +526 -0
  22. package/dist/resources.js.map +1 -0
  23. package/dist/setup.d.ts +12 -0
  24. package/dist/setup.d.ts.map +1 -0
  25. package/dist/setup.js +188 -0
  26. package/dist/setup.js.map +1 -0
  27. package/dist/token-manager.d.ts +34 -0
  28. package/dist/token-manager.d.ts.map +1 -0
  29. package/dist/token-manager.js +103 -0
  30. package/dist/token-manager.js.map +1 -0
  31. package/dist/tools.d.ts +1096 -0
  32. package/dist/tools.d.ts.map +1 -0
  33. package/dist/tools.js +2841 -0
  34. package/dist/tools.js.map +1 -0
  35. package/dist/types.d.ts +758 -0
  36. package/dist/types.d.ts.map +1 -0
  37. package/dist/types.js +5 -0
  38. package/dist/types.js.map +1 -0
  39. package/dist/zoql-helpers.d.ts +68 -0
  40. package/dist/zoql-helpers.d.ts.map +1 -0
  41. package/dist/zoql-helpers.js +154 -0
  42. package/dist/zoql-helpers.js.map +1 -0
  43. package/dist/zuora-client.d.ts +184 -0
  44. package/dist/zuora-client.d.ts.map +1 -0
  45. package/dist/zuora-client.js +583 -0
  46. package/dist/zuora-client.js.map +1 -0
  47. package/package.json +60 -0
@@ -0,0 +1,758 @@
1
+ /**
2
+ * Type definitions for Zuora MCP Server
3
+ */
4
+ export interface ToolResult {
5
+ success: boolean;
6
+ message: string;
7
+ data?: unknown;
8
+ }
9
+ export interface TokenResponse {
10
+ access_token: string;
11
+ token_type: string;
12
+ expires_in: number;
13
+ scope: string;
14
+ jti: string;
15
+ }
16
+ export interface ZuoraApiError {
17
+ success?: boolean;
18
+ processId?: string;
19
+ reasons?: Array<{
20
+ code: number;
21
+ message: string;
22
+ }>;
23
+ message?: string;
24
+ }
25
+ export interface ZuoraContact {
26
+ id: string;
27
+ firstName: string;
28
+ lastName: string;
29
+ workEmail: string;
30
+ address1?: string;
31
+ city?: string;
32
+ state?: string;
33
+ postalCode?: string;
34
+ country?: string;
35
+ }
36
+ export interface ZuoraAccount {
37
+ id: string;
38
+ accountNumber: string;
39
+ name: string;
40
+ status: string;
41
+ currency: string;
42
+ balance: number;
43
+ creditBalance: number;
44
+ totalInvoiceBalance: number;
45
+ billToContact?: ZuoraContact;
46
+ soldToContact?: ZuoraContact;
47
+ paymentTerm: string;
48
+ billCycleDay: number;
49
+ autoPay: boolean;
50
+ createdDate: string;
51
+ updatedDate: string;
52
+ }
53
+ export interface ZuoraAccountSummary {
54
+ basicInfo: {
55
+ id: string;
56
+ accountNumber: string;
57
+ name: string;
58
+ status: string;
59
+ balance: number;
60
+ currency: string;
61
+ };
62
+ subscriptions: Array<{
63
+ id: string;
64
+ subscriptionNumber: string;
65
+ status: string;
66
+ termType: string;
67
+ termStartDate: string;
68
+ termEndDate: string;
69
+ ratePlans: Array<{
70
+ productName: string;
71
+ ratePlanName: string;
72
+ }>;
73
+ }>;
74
+ invoices: Array<{
75
+ id: string;
76
+ invoiceNumber: string;
77
+ invoiceDate: string;
78
+ dueDate: string;
79
+ amount: number;
80
+ balance: number;
81
+ status: string;
82
+ }>;
83
+ payments: Array<{
84
+ id: string;
85
+ paymentNumber: string;
86
+ effectiveDate: string;
87
+ amount: number;
88
+ status: string;
89
+ }>;
90
+ usage: Array<{
91
+ unitOfMeasure: string;
92
+ quantity: number;
93
+ startDate: string;
94
+ }>;
95
+ }
96
+ export interface ZuoraInvoiceItem {
97
+ id: string;
98
+ subscriptionId: string;
99
+ subscriptionName: string;
100
+ serviceStartDate: string;
101
+ serviceEndDate: string;
102
+ chargeAmount: number;
103
+ chargeName: string;
104
+ chargeDescription?: string;
105
+ quantity: number;
106
+ unitOfMeasure: string;
107
+ taxAmount: number;
108
+ }
109
+ export interface ZuoraInvoice {
110
+ id: string;
111
+ invoiceNumber: string;
112
+ accountId: string;
113
+ accountNumber: string;
114
+ accountName: string;
115
+ invoiceDate: string;
116
+ dueDate: string;
117
+ amount: number;
118
+ balance: number;
119
+ status: string;
120
+ body?: string;
121
+ invoiceItems?: ZuoraInvoiceItem[];
122
+ createdDate: string;
123
+ updatedDate: string;
124
+ }
125
+ export interface ZuoraRatePlanCharge {
126
+ id: string;
127
+ chargeNumber: string;
128
+ name: string;
129
+ type: string;
130
+ model: string;
131
+ currency: string;
132
+ price: number;
133
+ quantity: number;
134
+ mrr: number;
135
+ tcv: number;
136
+ billingPeriod: string;
137
+ effectiveStartDate: string;
138
+ effectiveEndDate: string;
139
+ }
140
+ export interface ZuoraRatePlan {
141
+ id: string;
142
+ productId: string;
143
+ productName: string;
144
+ productRatePlanId: string;
145
+ ratePlanName: string;
146
+ ratePlanCharges: ZuoraRatePlanCharge[];
147
+ }
148
+ export interface ZuoraSubscription {
149
+ id: string;
150
+ subscriptionNumber: string;
151
+ accountId: string;
152
+ accountNumber: string;
153
+ accountName: string;
154
+ status: string;
155
+ termType: string;
156
+ termStartDate: string;
157
+ termEndDate: string;
158
+ contractEffectiveDate: string;
159
+ serviceActivationDate?: string;
160
+ contractedMrr: number;
161
+ totalContractedValue: number;
162
+ autoRenew: boolean;
163
+ renewalTerm: number;
164
+ renewalTermPeriodType: string;
165
+ ratePlans: ZuoraRatePlan[];
166
+ createdDate: string;
167
+ updatedDate: string;
168
+ }
169
+ export interface ZuoraPayment {
170
+ id: string;
171
+ paymentNumber: string;
172
+ accountId: string;
173
+ accountNumber: string;
174
+ amount: number;
175
+ appliedAmount: number;
176
+ unappliedAmount: number;
177
+ effectiveDate: string;
178
+ status: string;
179
+ type: string;
180
+ gatewayResponse?: string;
181
+ gatewayResponseCode?: string;
182
+ paymentMethodType: string;
183
+ createdDate: string;
184
+ updatedDate: string;
185
+ }
186
+ export interface ZuoraQueryResult {
187
+ records: Record<string, unknown>[];
188
+ size: number;
189
+ queryLocator?: string;
190
+ done: boolean;
191
+ }
192
+ export interface ZuoraProduct {
193
+ id: string;
194
+ name: string;
195
+ sku: string;
196
+ description?: string;
197
+ category?: string;
198
+ effectiveStartDate: string;
199
+ effectiveEndDate: string;
200
+ productRatePlans: Array<{
201
+ id: string;
202
+ name: string;
203
+ description?: string;
204
+ productRatePlanCharges: Array<{
205
+ id: string;
206
+ name: string;
207
+ type: string;
208
+ model: string;
209
+ billingPeriod: string;
210
+ defaultQuantity?: number;
211
+ pricing: Array<{
212
+ currency: string;
213
+ price: number;
214
+ }>;
215
+ }>;
216
+ }>;
217
+ }
218
+ export interface ZuoraInvoiceFile {
219
+ id: string;
220
+ versionNumber: number;
221
+ pdfFileUrl: string;
222
+ createdDate: string;
223
+ }
224
+ export interface ZuoraInvoiceFilesResponse {
225
+ invoiceFiles?: ZuoraInvoiceFile[];
226
+ nextPage?: string;
227
+ success: boolean;
228
+ }
229
+ export interface ZuoraCreditMemoItem {
230
+ id: string;
231
+ amount: number;
232
+ description?: string;
233
+ serviceStartDate: string;
234
+ serviceEndDate: string;
235
+ sku?: string;
236
+ chargeName?: string;
237
+ subscriptionId?: string;
238
+ createdDate: string;
239
+ }
240
+ export interface ZuoraCreditMemo {
241
+ id: string;
242
+ number: string;
243
+ accountId: string;
244
+ invoiceId?: string;
245
+ status: string;
246
+ sourceType: string;
247
+ amount: number;
248
+ refundAmount?: number;
249
+ appliedAmount: number;
250
+ unappliedAmount: number;
251
+ memoDate: string;
252
+ targetDate?: string;
253
+ reasonCode?: string;
254
+ comment?: string;
255
+ items?: ZuoraCreditMemoItem[];
256
+ createdDate: string;
257
+ updatedDate: string;
258
+ }
259
+ export interface ZuoraCreditMemoListResponse {
260
+ creditMemos: ZuoraCreditMemo[];
261
+ nextPage?: string;
262
+ success: boolean;
263
+ }
264
+ export interface ZuoraUsageRecord {
265
+ id: string;
266
+ accountId: string;
267
+ accountNumber: string;
268
+ subscriptionNumber?: string;
269
+ unitOfMeasure: string;
270
+ quantity: number;
271
+ startDateTime: string;
272
+ endDateTime?: string;
273
+ description?: string;
274
+ status: string;
275
+ createdDate: string;
276
+ }
277
+ export interface ZuoraUsageListResponse {
278
+ usage: ZuoraUsageRecord[];
279
+ nextPage?: string;
280
+ success: boolean;
281
+ }
282
+ export interface ZuoraBillRun {
283
+ id: string;
284
+ billRunNumber: string;
285
+ status: "Pending" | "Processing" | "Completed" | "Error" | "Canceled" | "PostInProgress" | "Posted";
286
+ targetDate: string;
287
+ invoiceDate: string;
288
+ autoPost: boolean;
289
+ autoEmail: boolean;
290
+ name?: string;
291
+ createdDate: string;
292
+ updatedDate: string;
293
+ }
294
+ export interface ZuoraBillRunListResponse {
295
+ billRuns: ZuoraBillRun[];
296
+ nextPage?: string;
297
+ success: boolean;
298
+ }
299
+ export interface ZuoraCreateBillRunRequest {
300
+ targetDate: string;
301
+ invoiceDate?: string;
302
+ autoPost?: boolean;
303
+ autoEmail?: boolean;
304
+ name?: string;
305
+ }
306
+ export interface ZuoraCreateBillRunResponse {
307
+ id: string;
308
+ billRunNumber: string;
309
+ status: string;
310
+ targetDate: string;
311
+ success: boolean;
312
+ }
313
+ export interface ZuoraContactDetail {
314
+ id: string;
315
+ accountId: string;
316
+ firstName: string;
317
+ lastName: string;
318
+ workEmail?: string;
319
+ personalEmail?: string;
320
+ workPhone?: string;
321
+ homePhone?: string;
322
+ mobilePhone?: string;
323
+ fax?: string;
324
+ address1?: string;
325
+ address2?: string;
326
+ city?: string;
327
+ state?: string;
328
+ country?: string;
329
+ postalCode?: string;
330
+ county?: string;
331
+ taxRegion?: string;
332
+ description?: string;
333
+ nickname?: string;
334
+ createdDate: string;
335
+ updatedDate: string;
336
+ }
337
+ export interface ZuoraCreateContactRequest {
338
+ accountId: string;
339
+ firstName: string;
340
+ lastName: string;
341
+ workEmail?: string;
342
+ personalEmail?: string;
343
+ workPhone?: string;
344
+ homePhone?: string;
345
+ mobilePhone?: string;
346
+ fax?: string;
347
+ address1?: string;
348
+ address2?: string;
349
+ city?: string;
350
+ state?: string;
351
+ country?: string;
352
+ postalCode?: string;
353
+ county?: string;
354
+ taxRegion?: string;
355
+ description?: string;
356
+ nickname?: string;
357
+ }
358
+ export interface ZuoraCreateContactResponse {
359
+ id: string;
360
+ success: boolean;
361
+ }
362
+ export interface ZuoraUpdateContactRequest {
363
+ firstName?: string;
364
+ lastName?: string;
365
+ workEmail?: string;
366
+ personalEmail?: string;
367
+ workPhone?: string;
368
+ homePhone?: string;
369
+ mobilePhone?: string;
370
+ fax?: string;
371
+ address1?: string;
372
+ address2?: string;
373
+ city?: string;
374
+ state?: string;
375
+ country?: string;
376
+ postalCode?: string;
377
+ county?: string;
378
+ taxRegion?: string;
379
+ description?: string;
380
+ nickname?: string;
381
+ }
382
+ export interface ZuoraUpdateContactResponse {
383
+ success: boolean;
384
+ }
385
+ export interface ZuoraDescribeField {
386
+ name: string;
387
+ label: string;
388
+ type: string;
389
+ selectable: boolean;
390
+ createable: boolean;
391
+ updateable: boolean;
392
+ filterable: boolean;
393
+ custom: boolean;
394
+ required: boolean;
395
+ maxlength?: number;
396
+ }
397
+ export interface ZuoraDescribeResult {
398
+ objectName: string;
399
+ fields: ZuoraDescribeField[];
400
+ fieldCount: number;
401
+ }
402
+ export interface ZuoraCreatePaymentRequest {
403
+ accountId: string;
404
+ amount: number;
405
+ effectiveDate: string;
406
+ type: "Electronic" | "External";
407
+ paymentMethodId?: string;
408
+ comment?: string;
409
+ }
410
+ export interface ZuoraCreatePaymentResponse {
411
+ id: string;
412
+ paymentNumber: string;
413
+ amount: number;
414
+ effectiveDate: string;
415
+ status: string;
416
+ success: boolean;
417
+ }
418
+ export interface ZuoraPaymentInvoiceApplication {
419
+ invoiceId: string;
420
+ amount: number;
421
+ }
422
+ export interface ZuoraApplyPaymentRequest {
423
+ invoices: ZuoraPaymentInvoiceApplication[];
424
+ effectiveDate?: string;
425
+ }
426
+ export interface ZuoraApplyPaymentResponse {
427
+ id: string;
428
+ appliedAmount: number;
429
+ unappliedAmount: number;
430
+ status: string;
431
+ success: boolean;
432
+ }
433
+ export interface ZuoraCreateInvoiceRequest {
434
+ accountId: string;
435
+ invoiceDate: string;
436
+ dueDate?: string;
437
+ }
438
+ export interface ZuoraCreateInvoiceResponse {
439
+ id: string;
440
+ invoiceNumber: string;
441
+ accountId: string;
442
+ invoiceDate: string;
443
+ dueDate: string;
444
+ amount: number;
445
+ status: string;
446
+ success: boolean;
447
+ }
448
+ export interface ZuoraPostInvoiceResponse {
449
+ id: string;
450
+ invoiceNumber: string;
451
+ status: string;
452
+ success: boolean;
453
+ }
454
+ export interface ZuoraCancelSubscriptionRequest {
455
+ cancellationPolicy: "EndOfCurrentTerm" | "EndOfLastInvoicePeriod" | "SpecificDate";
456
+ cancellationEffectiveDate?: string;
457
+ invoiceCollect?: boolean;
458
+ }
459
+ export interface ZuoraCancelSubscriptionResponse {
460
+ subscriptionId: string;
461
+ cancelledDate: string;
462
+ totalDeltaMrr: number;
463
+ totalDeltaTcv: number;
464
+ success: boolean;
465
+ }
466
+ export interface ZuoraCreateSubscriptionRatePlan {
467
+ productRatePlanId: string;
468
+ }
469
+ export interface ZuoraCreateSubscriptionRequest {
470
+ accountKey: string;
471
+ contractEffectiveDate: string;
472
+ serviceActivationDate?: string;
473
+ customerAcceptanceDate?: string;
474
+ termType: "TERMED" | "EVERGREEN";
475
+ initialTerm?: number;
476
+ initialTermPeriodType?: "Month" | "Year" | "Day" | "Week";
477
+ renewalTerm?: number;
478
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week";
479
+ autoRenew?: boolean;
480
+ subscribeToRatePlans: ZuoraCreateSubscriptionRatePlan[];
481
+ notes?: string;
482
+ }
483
+ export interface ZuoraCreateSubscriptionResponse {
484
+ subscriptionId: string;
485
+ subscriptionNumber: string;
486
+ contractedMrr: number;
487
+ totalContractedValue: number;
488
+ success: boolean;
489
+ }
490
+ export interface ZuoraUpdateSubscriptionRequest {
491
+ autoRenew?: boolean;
492
+ renewalTerm?: number;
493
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week";
494
+ notes?: string;
495
+ }
496
+ export interface ZuoraUpdateSubscriptionResponse {
497
+ subscriptionId: string;
498
+ success: boolean;
499
+ }
500
+ export interface ZuoraContactRequest {
501
+ firstName: string;
502
+ lastName: string;
503
+ workEmail: string;
504
+ address1?: string;
505
+ city?: string;
506
+ state?: string;
507
+ postalCode?: string;
508
+ country?: string;
509
+ }
510
+ export interface ZuoraCreateAccountRequest {
511
+ name: string;
512
+ currency: string;
513
+ billCycleDay: number;
514
+ billToContact: ZuoraContactRequest;
515
+ soldToContact?: ZuoraContactRequest;
516
+ paymentTerm?: string;
517
+ autoPay?: boolean;
518
+ notes?: string;
519
+ }
520
+ export interface ZuoraCreateAccountResponse {
521
+ accountId: string;
522
+ accountNumber: string;
523
+ success: boolean;
524
+ }
525
+ export interface ZuoraUpdateAccountRequest {
526
+ name?: string;
527
+ notes?: string;
528
+ autoPay?: boolean;
529
+ paymentTerm?: string;
530
+ billToContact?: Partial<ZuoraContactRequest>;
531
+ soldToContact?: Partial<ZuoraContactRequest>;
532
+ }
533
+ export interface ZuoraUpdateAccountResponse {
534
+ success: boolean;
535
+ }
536
+ export interface ZuoraCreateRefundRequest {
537
+ amount: number;
538
+ type: "Electronic" | "External";
539
+ comment?: string;
540
+ }
541
+ export interface ZuoraCreateRefundResponse {
542
+ id: string;
543
+ number: string;
544
+ amount: number;
545
+ status: string;
546
+ success: boolean;
547
+ }
548
+ export interface ZuoraInvoiceListResponse {
549
+ invoices: ZuoraInvoice[];
550
+ nextPage?: string;
551
+ success: boolean;
552
+ }
553
+ export interface ZuoraSubscriptionListResponse {
554
+ subscriptions: ZuoraSubscription[];
555
+ success: boolean;
556
+ }
557
+ export interface ZuoraPaymentListResponse {
558
+ payments: ZuoraPayment[];
559
+ nextPage?: string;
560
+ success: boolean;
561
+ }
562
+ export interface ZuoraProductListResponse {
563
+ products: ZuoraProduct[];
564
+ nextPage?: string;
565
+ success: boolean;
566
+ }
567
+ export interface CompositeAccountWithSubscriptions {
568
+ accountId: string;
569
+ accountNumber: string;
570
+ accountName: string;
571
+ accountStatus: string;
572
+ subscriptions: Array<{
573
+ subscriptionId: string;
574
+ subscriptionNumber: string;
575
+ status: string;
576
+ termEndDate?: string;
577
+ ratePlanName?: string;
578
+ }>;
579
+ }
580
+ export interface OverdueInvoiceResult {
581
+ invoiceId: string;
582
+ invoiceNumber: string;
583
+ accountId: string;
584
+ accountNumber: string;
585
+ accountName: string;
586
+ invoiceDate: string;
587
+ dueDate: string;
588
+ amount: number;
589
+ balance: number;
590
+ daysPastDue: number;
591
+ }
592
+ export interface AgingBucket {
593
+ label: string;
594
+ minDays: number;
595
+ maxDays: number | null;
596
+ invoiceCount: number;
597
+ totalBalance: number;
598
+ invoices: Array<{
599
+ invoiceId: string;
600
+ invoiceNumber: string;
601
+ accountName: string;
602
+ accountNumber: string;
603
+ balance: number;
604
+ dueDate: string;
605
+ daysPastDue: number;
606
+ }>;
607
+ }
608
+ export interface ExpiringSubscriptionResult {
609
+ subscriptionId: string;
610
+ subscriptionNumber: string;
611
+ accountId: string;
612
+ accountNumber: string;
613
+ accountName: string;
614
+ status: string;
615
+ termEndDate: string;
616
+ autoRenew: boolean;
617
+ contractedMrr: number;
618
+ ratePlanNames: string[];
619
+ daysUntilExpiry: number;
620
+ }
621
+ export interface BillingOverviewResult {
622
+ account: {
623
+ id: string;
624
+ accountNumber: string;
625
+ name: string;
626
+ status: string;
627
+ balance: number;
628
+ currency: string;
629
+ autoPay: boolean;
630
+ paymentTerm: string;
631
+ };
632
+ invoiceSummary: {
633
+ totalOutstanding: number;
634
+ overdueCount: number;
635
+ overdueAmount: number;
636
+ recentInvoices: Array<{
637
+ invoiceNumber: string;
638
+ invoiceDate: string;
639
+ dueDate: string;
640
+ amount: number;
641
+ balance: number;
642
+ status: string;
643
+ }>;
644
+ };
645
+ paymentSummary: {
646
+ recentPayments: Array<{
647
+ paymentNumber: string;
648
+ amount: number;
649
+ effectiveDate: string;
650
+ status: string;
651
+ }>;
652
+ };
653
+ subscriptionSummary: {
654
+ activeCount: number;
655
+ totalMrr: number;
656
+ subscriptions: Array<{
657
+ subscriptionNumber: string;
658
+ status: string;
659
+ termEndDate: string;
660
+ contractedMrr: number;
661
+ ratePlanNames: string[];
662
+ }>;
663
+ };
664
+ }
665
+ export interface RevenueByProductResult {
666
+ productName: string;
667
+ subscriptionCount: number;
668
+ totalMrr: number;
669
+ totalTcv: number;
670
+ subscriptions: Array<{
671
+ subscriptionNumber: string;
672
+ accountNumber: string;
673
+ accountName: string;
674
+ mrr: number;
675
+ status: string;
676
+ }>;
677
+ }
678
+ export interface PaymentReconciliationResult {
679
+ period: {
680
+ startDate: string;
681
+ endDate: string;
682
+ };
683
+ summary: {
684
+ totalPayments: number;
685
+ totalAmount: number;
686
+ byStatus: Record<string, {
687
+ count: number;
688
+ amount: number;
689
+ }>;
690
+ };
691
+ payments: Array<{
692
+ paymentNumber: string;
693
+ accountNumber: string;
694
+ accountName: string;
695
+ amount: number;
696
+ effectiveDate: string;
697
+ status: string;
698
+ paymentMethodType: string;
699
+ }>;
700
+ }
701
+ export interface CancelledSubscriptionResult {
702
+ subscriptionId: string;
703
+ subscriptionNumber: string;
704
+ accountId: string;
705
+ accountNumber: string;
706
+ accountName: string;
707
+ status: string;
708
+ cancelledDate: string;
709
+ termEndDate: string;
710
+ contractedMrr: number;
711
+ ratePlanNames: string[];
712
+ }
713
+ export interface AccountHealthResult {
714
+ accountId: string;
715
+ accountNumber: string;
716
+ accountName: string;
717
+ healthScore: number;
718
+ riskFactors: string[];
719
+ overdueInvoices: {
720
+ count: number;
721
+ totalBalance: number;
722
+ };
723
+ expiringSubscriptions: {
724
+ count: number;
725
+ totalMrr: number;
726
+ };
727
+ recentPaymentFailures: number;
728
+ }
729
+ export interface ZuoraUser {
730
+ id: string;
731
+ userName: string;
732
+ status: string;
733
+ workEmail?: string;
734
+ firstName?: string;
735
+ lastName?: string;
736
+ roleId?: string;
737
+ profileId?: string;
738
+ createdDate?: string;
739
+ lastLoginTime?: string;
740
+ }
741
+ export interface ZuoraUserListResponse {
742
+ totalResults: number;
743
+ itemsPerPage: number;
744
+ startIndex: number;
745
+ Resources: ZuoraUser[];
746
+ }
747
+ export interface InvoiceByProductResult {
748
+ invoiceId: string;
749
+ invoiceNumber: string;
750
+ invoiceDate: string;
751
+ accountNumber: string;
752
+ accountName: string;
753
+ chargeAmount: number;
754
+ chargeName: string;
755
+ ratePlanName: string;
756
+ subscriptionNumber: string;
757
+ }
758
+ //# sourceMappingURL=types.d.ts.map