@renterra/sdk 0.2.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.
@@ -0,0 +1,607 @@
1
+ export interface McpContracts {
2
+ search_customers: {
3
+ input: {
4
+ page?: number;
5
+ page_size?: number;
6
+ query?: string;
7
+ };
8
+ output: {
9
+ data: {
10
+ id: string;
11
+ created_at: string;
12
+ updated_at: string;
13
+ is_archived: boolean;
14
+ archived_at: string | null;
15
+ deleted_at: string | null;
16
+ name: string;
17
+ type: "Individual" | "Company";
18
+ status: "ACTIVE" | "PREVIOUS" | "UNDESIRABLE" | "PROSPECTIVE" | "CREDIT_HOLD";
19
+ account_type: "Cash" | "Account";
20
+ billing_email: string | null;
21
+ website: string | null;
22
+ primary_contact_id: string | null;
23
+ /**
24
+ * Current customer credit balance in dollars.
25
+ */
26
+ credit_balance: number;
27
+ /**
28
+ * Total recognized customer revenue in dollars.
29
+ */
30
+ total_revenue: number;
31
+ /**
32
+ * Year-to-date recognized customer revenue in dollars.
33
+ */
34
+ ytd_revenue: number;
35
+ address: {
36
+ address_line_1: string;
37
+ address_line_2: string | null;
38
+ locality: string;
39
+ administrative_area: string;
40
+ postal_code: string | null;
41
+ country: string | null;
42
+ [k: string]: unknown;
43
+ } | null;
44
+ [k: string]: unknown;
45
+ }[];
46
+ pagination: {
47
+ page: number;
48
+ page_size: number;
49
+ has_more: boolean;
50
+ [k: string]: unknown;
51
+ };
52
+ [k: string]: unknown;
53
+ };
54
+ };
55
+ get_customer: {
56
+ input: {
57
+ id: string;
58
+ };
59
+ output: {
60
+ id: string;
61
+ created_at: string;
62
+ updated_at: string;
63
+ is_archived: boolean;
64
+ archived_at: string | null;
65
+ deleted_at: string | null;
66
+ name: string;
67
+ type: "Individual" | "Company";
68
+ status: "ACTIVE" | "PREVIOUS" | "UNDESIRABLE" | "PROSPECTIVE" | "CREDIT_HOLD";
69
+ account_type: "Cash" | "Account";
70
+ billing_email: string | null;
71
+ website: string | null;
72
+ primary_contact_id: string | null;
73
+ /**
74
+ * Current customer credit balance in dollars.
75
+ */
76
+ credit_balance: number;
77
+ /**
78
+ * Total recognized customer revenue in dollars.
79
+ */
80
+ total_revenue: number;
81
+ /**
82
+ * Year-to-date recognized customer revenue in dollars.
83
+ */
84
+ ytd_revenue: number;
85
+ address: {
86
+ address_line_1: string;
87
+ address_line_2: string | null;
88
+ locality: string;
89
+ administrative_area: string;
90
+ postal_code: string | null;
91
+ country: string | null;
92
+ [k: string]: unknown;
93
+ } | null;
94
+ [k: string]: unknown;
95
+ };
96
+ };
97
+ search_orders: {
98
+ input: {
99
+ page?: number;
100
+ page_size?: number;
101
+ query?: string;
102
+ customer_id?: string;
103
+ status?: "Quote" | "Expired" | "Reservation" | "Canceled" | "Rental" | "Completed" | "Closed";
104
+ /**
105
+ * Return orders with start_time at or after this ISO 8601 datetime.
106
+ */
107
+ start_time_after?: string;
108
+ /**
109
+ * Return orders with start_time at or before this ISO 8601 datetime.
110
+ */
111
+ start_time_before?: string;
112
+ /**
113
+ * Return orders with end_time at or after this ISO 8601 datetime.
114
+ */
115
+ end_time_after?: string;
116
+ /**
117
+ * Return orders with end_time at or before this ISO 8601 datetime.
118
+ */
119
+ end_time_before?: string;
120
+ };
121
+ output: {
122
+ data: {
123
+ id: string;
124
+ /**
125
+ * Sequential order number.
126
+ */
127
+ number: number;
128
+ source: "Online" | "Manual";
129
+ status: "Quote" | "Expired" | "Reservation" | "Canceled" | "Rental" | "Completed" | "Closed";
130
+ customer_id: string;
131
+ /**
132
+ * References a branch from /v1/branches.
133
+ */
134
+ branch_id: string;
135
+ start_time: string;
136
+ end_time: string | null;
137
+ job_number: string | null;
138
+ job_description: string | null;
139
+ po_number: string | null;
140
+ /**
141
+ * Creation time of the most recent signed contract, or null when none exists.
142
+ */
143
+ contract_signed_at: string | null;
144
+ is_historical: boolean;
145
+ /**
146
+ * @deprecated
147
+ */
148
+ items: {
149
+ description: string;
150
+ quantity: number;
151
+ /**
152
+ * References an inventory item when the line resolves to a single inventory item.
153
+ */
154
+ item_id: string | null;
155
+ [k: string]: unknown;
156
+ }[];
157
+ lines: {
158
+ description: string;
159
+ quantity: number;
160
+ /**
161
+ * References an inventory item when the line resolves to a single inventory item.
162
+ */
163
+ item_id: string | null;
164
+ id: string;
165
+ inventory_on_order_ids: string[];
166
+ [k: string]: unknown;
167
+ }[];
168
+ [k: string]: unknown;
169
+ }[];
170
+ pagination: {
171
+ page: number;
172
+ page_size: number;
173
+ has_more: boolean;
174
+ [k: string]: unknown;
175
+ };
176
+ [k: string]: unknown;
177
+ };
178
+ };
179
+ get_order: {
180
+ input: {
181
+ id: string;
182
+ };
183
+ output: {
184
+ id: string;
185
+ /**
186
+ * Sequential order number.
187
+ */
188
+ number: number;
189
+ source: "Online" | "Manual";
190
+ status: "Quote" | "Expired" | "Reservation" | "Canceled" | "Rental" | "Completed" | "Closed";
191
+ customer_id: string;
192
+ /**
193
+ * References a branch from /v1/branches.
194
+ */
195
+ branch_id: string;
196
+ start_time: string;
197
+ end_time: string | null;
198
+ job_number: string | null;
199
+ job_description: string | null;
200
+ po_number: string | null;
201
+ /**
202
+ * Creation time of the most recent signed contract, or null when none exists.
203
+ */
204
+ contract_signed_at: string | null;
205
+ is_historical: boolean;
206
+ /**
207
+ * @deprecated
208
+ */
209
+ items: {
210
+ description: string;
211
+ quantity: number;
212
+ /**
213
+ * References an inventory item when the line resolves to a single inventory item.
214
+ */
215
+ item_id: string | null;
216
+ [k: string]: unknown;
217
+ }[];
218
+ lines: {
219
+ description: string;
220
+ quantity: number;
221
+ /**
222
+ * References an inventory item when the line resolves to a single inventory item.
223
+ */
224
+ item_id: string | null;
225
+ id: string;
226
+ inventory_on_order_ids: string[];
227
+ [k: string]: unknown;
228
+ }[];
229
+ [k: string]: unknown;
230
+ };
231
+ };
232
+ list_order_contracts: {
233
+ input: {
234
+ order_id: string;
235
+ };
236
+ output: {
237
+ data: {
238
+ id: string;
239
+ created_at: string;
240
+ signed_by: string | null;
241
+ is_downloadable: boolean;
242
+ [k: string]: unknown;
243
+ }[];
244
+ [k: string]: unknown;
245
+ };
246
+ };
247
+ search_inventory_on_orders: {
248
+ input: {
249
+ page?: number;
250
+ page_size?: number;
251
+ order_id?: string;
252
+ work_order_id?: string;
253
+ item_id?: string;
254
+ line_id?: string;
255
+ };
256
+ output: {
257
+ data: ({
258
+ id: string;
259
+ source: "order" | "work_order";
260
+ order_id: string | null;
261
+ work_order_id: string | null;
262
+ line_id: string;
263
+ item_id: string;
264
+ slot_id: string | null;
265
+ description: string;
266
+ quantity: number;
267
+ status: "Ready" | "OnRent" | "CalledOff" | "PickedUp" | "CheckedIn" | "Sold";
268
+ type: "rental";
269
+ billing_start_time: string;
270
+ billing_end_time: string | null;
271
+ [k: string]: unknown;
272
+ } | {
273
+ id: string;
274
+ source: "order" | "work_order";
275
+ order_id: string | null;
276
+ work_order_id: string | null;
277
+ line_id: string;
278
+ item_id: string;
279
+ slot_id: string | null;
280
+ description: string;
281
+ quantity: number;
282
+ status: "Ready" | "OnRent" | "CalledOff" | "PickedUp" | "CheckedIn" | "Sold";
283
+ type: "sale";
284
+ sale_time: string | null;
285
+ [k: string]: unknown;
286
+ })[];
287
+ pagination: {
288
+ page: number;
289
+ page_size: number;
290
+ has_more: boolean;
291
+ [k: string]: unknown;
292
+ };
293
+ [k: string]: unknown;
294
+ };
295
+ };
296
+ get_inventory_on_order: {
297
+ input: {
298
+ id: string;
299
+ };
300
+ output: {
301
+ id: string;
302
+ source: "order" | "work_order";
303
+ order_id: string | null;
304
+ work_order_id: string | null;
305
+ line_id: string;
306
+ item_id: string;
307
+ slot_id: string | null;
308
+ description: string;
309
+ quantity: number;
310
+ status: "Ready" | "OnRent" | "CalledOff" | "PickedUp" | "CheckedIn" | "Sold";
311
+ type: "rental";
312
+ billing_start_time: string;
313
+ billing_end_time: string | null;
314
+ [k: string]: unknown;
315
+ } | {
316
+ id: string;
317
+ source: "order" | "work_order";
318
+ order_id: string | null;
319
+ work_order_id: string | null;
320
+ line_id: string;
321
+ item_id: string;
322
+ slot_id: string | null;
323
+ description: string;
324
+ quantity: number;
325
+ status: "Ready" | "OnRent" | "CalledOff" | "PickedUp" | "CheckedIn" | "Sold";
326
+ type: "sale";
327
+ sale_time: string | null;
328
+ [k: string]: unknown;
329
+ };
330
+ };
331
+ search_invoices: {
332
+ input: {
333
+ page?: number;
334
+ page_size?: number;
335
+ query?: string;
336
+ customer_id?: string;
337
+ start_date?: string;
338
+ end_date?: string;
339
+ status?: "Unpaid" | "Paid" | "Void" | "BadDebt";
340
+ };
341
+ output: {
342
+ data: {
343
+ id: string;
344
+ /**
345
+ * Human-facing invoice number.
346
+ */
347
+ number: string;
348
+ status: "Unpaid" | "Paid" | "Void" | "BadDebt";
349
+ customer_id: string | null;
350
+ order_id: string | null;
351
+ /**
352
+ * Invoice total in integer cents, including tax.
353
+ */
354
+ total_cents: number;
355
+ tax_total_cents: number;
356
+ /**
357
+ * Net successful payment and refund allocations in integer cents.
358
+ */
359
+ paid_cents: number;
360
+ issue_date: string | null;
361
+ due_date: string;
362
+ paid_at: string | null;
363
+ /**
364
+ * @deprecated
365
+ */
366
+ items: {
367
+ description: string;
368
+ quantity: number;
369
+ total_cents: number;
370
+ item_id: string | null;
371
+ [k: string]: unknown;
372
+ }[];
373
+ lines: {
374
+ description: string;
375
+ quantity: number;
376
+ total_cents: number;
377
+ item_id: string | null;
378
+ id: string;
379
+ group_id: string;
380
+ sales_tax_cents: number;
381
+ ledger_account_id: string;
382
+ revenue_allocations: {
383
+ item_id: string;
384
+ ledger_account_id: string;
385
+ percentage: number;
386
+ [k: string]: unknown;
387
+ }[];
388
+ [k: string]: unknown;
389
+ }[];
390
+ payments: {
391
+ allocation_id: string;
392
+ payment_id: string;
393
+ amount_cents: number;
394
+ allocated_at: string;
395
+ type: "Payment" | "Refund";
396
+ method: "Cash" | "Card" | "Bank" | "Check" | "Credit" | "Other";
397
+ created_at: string;
398
+ succeeded_at: string | null;
399
+ refunded_payment_id: string | null;
400
+ [k: string]: unknown;
401
+ }[];
402
+ [k: string]: unknown;
403
+ }[];
404
+ pagination: {
405
+ page: number;
406
+ page_size: number;
407
+ has_more: boolean;
408
+ [k: string]: unknown;
409
+ };
410
+ [k: string]: unknown;
411
+ };
412
+ };
413
+ get_invoice: {
414
+ input: {
415
+ id: string;
416
+ };
417
+ output: {
418
+ id: string;
419
+ /**
420
+ * Human-facing invoice number.
421
+ */
422
+ number: string;
423
+ status: "Unpaid" | "Paid" | "Void" | "BadDebt";
424
+ customer_id: string | null;
425
+ order_id: string | null;
426
+ /**
427
+ * Invoice total in integer cents, including tax.
428
+ */
429
+ total_cents: number;
430
+ tax_total_cents: number;
431
+ /**
432
+ * Net successful payment and refund allocations in integer cents.
433
+ */
434
+ paid_cents: number;
435
+ issue_date: string | null;
436
+ due_date: string;
437
+ paid_at: string | null;
438
+ /**
439
+ * @deprecated
440
+ */
441
+ items: {
442
+ description: string;
443
+ quantity: number;
444
+ total_cents: number;
445
+ item_id: string | null;
446
+ [k: string]: unknown;
447
+ }[];
448
+ lines: {
449
+ description: string;
450
+ quantity: number;
451
+ total_cents: number;
452
+ item_id: string | null;
453
+ id: string;
454
+ group_id: string;
455
+ sales_tax_cents: number;
456
+ ledger_account_id: string;
457
+ revenue_allocations: {
458
+ item_id: string;
459
+ ledger_account_id: string;
460
+ percentage: number;
461
+ [k: string]: unknown;
462
+ }[];
463
+ [k: string]: unknown;
464
+ }[];
465
+ payments: {
466
+ allocation_id: string;
467
+ payment_id: string;
468
+ amount_cents: number;
469
+ allocated_at: string;
470
+ type: "Payment" | "Refund";
471
+ method: "Cash" | "Card" | "Bank" | "Check" | "Credit" | "Other";
472
+ created_at: string;
473
+ succeeded_at: string | null;
474
+ refunded_payment_id: string | null;
475
+ [k: string]: unknown;
476
+ }[];
477
+ [k: string]: unknown;
478
+ };
479
+ };
480
+ search_payments: {
481
+ input: {
482
+ page?: number;
483
+ page_size?: number;
484
+ query?: string;
485
+ customer_id?: string;
486
+ start_date?: string;
487
+ end_date?: string;
488
+ invoice_id?: string;
489
+ order_id?: string;
490
+ branch_id?: string;
491
+ type?: "Payment" | "Refund";
492
+ method?: "Cash" | "Card" | "Bank" | "Check" | "Credit" | "Other";
493
+ };
494
+ output: {
495
+ data: {
496
+ id: string;
497
+ type: "Payment" | "Refund";
498
+ method: "Cash" | "Card" | "Bank" | "Check" | "Credit" | "Other";
499
+ amount_cents: number;
500
+ customer_id: string | null;
501
+ branch_id: string;
502
+ order_id: string | null;
503
+ refunded_payment_id: string | null;
504
+ created_at: string;
505
+ succeeded_at: string | null;
506
+ allocations: {
507
+ id: string;
508
+ invoice_id: string;
509
+ amount_cents: number;
510
+ created_at: string;
511
+ [k: string]: unknown;
512
+ }[];
513
+ [k: string]: unknown;
514
+ }[];
515
+ pagination: {
516
+ page: number;
517
+ page_size: number;
518
+ has_more: boolean;
519
+ [k: string]: unknown;
520
+ };
521
+ [k: string]: unknown;
522
+ };
523
+ };
524
+ get_payment: {
525
+ input: {
526
+ id: string;
527
+ };
528
+ output: {
529
+ id: string;
530
+ type: "Payment" | "Refund";
531
+ method: "Cash" | "Card" | "Bank" | "Check" | "Credit" | "Other";
532
+ amount_cents: number;
533
+ customer_id: string | null;
534
+ branch_id: string;
535
+ order_id: string | null;
536
+ refunded_payment_id: string | null;
537
+ created_at: string;
538
+ succeeded_at: string | null;
539
+ allocations: {
540
+ id: string;
541
+ invoice_id: string;
542
+ amount_cents: number;
543
+ created_at: string;
544
+ [k: string]: unknown;
545
+ }[];
546
+ [k: string]: unknown;
547
+ };
548
+ };
549
+ search_inventory_items: {
550
+ input: {
551
+ page?: number;
552
+ page_size?: number;
553
+ query?: string;
554
+ kind?: "Actual" | "Slot";
555
+ };
556
+ output: {
557
+ data: {
558
+ id: string;
559
+ updated_at: string;
560
+ kind: "Actual" | "Slot";
561
+ type: "Serial" | "Sale" | "Bulk" | "Part";
562
+ make: string | null;
563
+ model: string | null;
564
+ model_year: number | null;
565
+ condition: ("Excellent" | "Good" | "Ok" | "Bad" | "Terrible") | null;
566
+ item_number: string | null;
567
+ part_number: string | null;
568
+ serial_number: string | null;
569
+ description: string;
570
+ category: string;
571
+ class: string;
572
+ group: string;
573
+ [k: string]: unknown;
574
+ }[];
575
+ pagination: {
576
+ page: number;
577
+ page_size: number;
578
+ has_more: boolean;
579
+ [k: string]: unknown;
580
+ };
581
+ [k: string]: unknown;
582
+ };
583
+ };
584
+ get_inventory_item: {
585
+ input: {
586
+ id: string;
587
+ };
588
+ output: {
589
+ id: string;
590
+ updated_at: string;
591
+ kind: "Actual" | "Slot";
592
+ type: "Serial" | "Sale" | "Bulk" | "Part";
593
+ make: string | null;
594
+ model: string | null;
595
+ model_year: number | null;
596
+ condition: ("Excellent" | "Good" | "Ok" | "Bad" | "Terrible") | null;
597
+ item_number: string | null;
598
+ part_number: string | null;
599
+ serial_number: string | null;
600
+ description: string;
601
+ category: string;
602
+ class: string;
603
+ group: string;
604
+ [k: string]: unknown;
605
+ };
606
+ };
607
+ }
@@ -0,0 +1 @@
1
+ export {};