@procurementexpress.com/mcp 1.0.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.
Files changed (40) hide show
  1. package/README.md +376 -0
  2. package/dist/api-client.d.ts +31 -0
  3. package/dist/api-client.js +108 -0
  4. package/dist/auth.d.ts +29 -0
  5. package/dist/auth.js +59 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +119 -0
  8. package/dist/tool-helpers.d.ts +34 -0
  9. package/dist/tool-helpers.js +26 -0
  10. package/dist/tools/approval-flows.d.ts +3 -0
  11. package/dist/tools/approval-flows.js +121 -0
  12. package/dist/tools/budgets.d.ts +3 -0
  13. package/dist/tools/budgets.js +73 -0
  14. package/dist/tools/comments.d.ts +3 -0
  15. package/dist/tools/comments.js +24 -0
  16. package/dist/tools/companies.d.ts +3 -0
  17. package/dist/tools/companies.js +67 -0
  18. package/dist/tools/departments.d.ts +3 -0
  19. package/dist/tools/departments.js +69 -0
  20. package/dist/tools/invoices.d.ts +3 -0
  21. package/dist/tools/invoices.js +132 -0
  22. package/dist/tools/payments.d.ts +3 -0
  23. package/dist/tools/payments.js +65 -0
  24. package/dist/tools/products.d.ts +3 -0
  25. package/dist/tools/products.js +57 -0
  26. package/dist/tools/purchase-orders.d.ts +3 -0
  27. package/dist/tools/purchase-orders.js +152 -0
  28. package/dist/tools/supplementary.d.ts +3 -0
  29. package/dist/tools/supplementary.js +70 -0
  30. package/dist/tools/suppliers.d.ts +3 -0
  31. package/dist/tools/suppliers.js +80 -0
  32. package/dist/tools/tax-rates.d.ts +3 -0
  33. package/dist/tools/tax-rates.js +44 -0
  34. package/dist/tools/users.d.ts +3 -0
  35. package/dist/tools/users.js +37 -0
  36. package/dist/tools/webhooks.d.ts +3 -0
  37. package/dist/tools/webhooks.js +61 -0
  38. package/dist/types.d.ts +732 -0
  39. package/dist/types.js +3 -0
  40. package/package.json +50 -0
@@ -0,0 +1,732 @@
1
+ export interface PaginationMeta {
2
+ current_page: number;
3
+ next_page: number | null;
4
+ prev_page: number | null;
5
+ total_pages: number;
6
+ total_count: number;
7
+ }
8
+ export interface ApiError {
9
+ status: number;
10
+ message: string;
11
+ }
12
+ export interface OAuthTokenResponse {
13
+ access_token: string;
14
+ token_type: string;
15
+ expires_in: number;
16
+ refresh_token: string;
17
+ scope: string;
18
+ created_at: number;
19
+ }
20
+ export interface TokenInfo {
21
+ resource_owner_id: number;
22
+ scopes: string[];
23
+ expires_in_seconds: number;
24
+ application: {
25
+ uid: string;
26
+ };
27
+ created_at: number;
28
+ }
29
+ export interface Company {
30
+ id: number;
31
+ name: string;
32
+ external_user_id: string | null;
33
+ membership_archived: boolean;
34
+ is_locked: boolean;
35
+ is_removed: boolean;
36
+ approval_limit: number | null;
37
+ in_trial: boolean;
38
+ trial_expired: boolean;
39
+ remaining_trial_days: number;
40
+ roles: string[];
41
+ has_unassigned_budgets: boolean;
42
+ }
43
+ export interface User {
44
+ id: number;
45
+ email: string;
46
+ name: string;
47
+ approver_name: string | null;
48
+ phone_number: string | null;
49
+ setup_incomplete: boolean;
50
+ employer_id: number | null;
51
+ authentication_token?: string;
52
+ approval_limit: number | null;
53
+ companies: Company[];
54
+ roles?: string[];
55
+ external_user_id?: string | null;
56
+ network_id?: string | null;
57
+ }
58
+ export interface Currency {
59
+ id: number;
60
+ iso_code: string;
61
+ iso_numeric: string;
62
+ name: string;
63
+ symbol: string;
64
+ created_at?: string;
65
+ updated_at?: string;
66
+ }
67
+ export interface Budget {
68
+ id: number;
69
+ company_id: number;
70
+ name: string;
71
+ amount: number;
72
+ cost_code: string | null;
73
+ cost_type: string | null;
74
+ archived: boolean;
75
+ currency_id: number;
76
+ base_amount: number | null;
77
+ base_rate: number | null;
78
+ allow_anyone_to_approve_a_po: boolean;
79
+ start_date: string | null;
80
+ end_date: string | null;
81
+ summary: string | null;
82
+ remaining_amount: number;
83
+ creator_id: number;
84
+ qbo_class: unknown | null;
85
+ department_ids: number[];
86
+ approver_ids: number[];
87
+ created_at: string;
88
+ updated_at: string;
89
+ chart_of_account_id: number | null;
90
+ chart_of_account_name: string | null;
91
+ approved_this_month?: number;
92
+ third_party_id_mappings?: Record<string, unknown>;
93
+ }
94
+ export interface Department {
95
+ id: number;
96
+ name: string;
97
+ company_id: number;
98
+ archived: boolean;
99
+ contact_person: string | null;
100
+ tax_number: string | null;
101
+ phone_number: string | null;
102
+ address: string | null;
103
+ email: string | null;
104
+ created_at: string;
105
+ updated_at: string;
106
+ supplier_ids: number[];
107
+ budget_ids: number[];
108
+ }
109
+ export interface Supplier {
110
+ id: number;
111
+ name: string;
112
+ company_id: number;
113
+ notes: string | null;
114
+ phone_number: string | null;
115
+ address: string | null;
116
+ email: string | null;
117
+ payment_details: string | null;
118
+ archived: boolean;
119
+ contact_person: string | null;
120
+ tax_number: string | null;
121
+ payment_terms: string | null;
122
+ created_at: string;
123
+ updated_at: string;
124
+ currency_id: number | null;
125
+ department_ids: number[];
126
+ external_vendor_id: string | null;
127
+ third_party_id_mappings?: Record<string, unknown>;
128
+ }
129
+ export interface Product {
130
+ id: number;
131
+ supplier_id: number | null;
132
+ sku: string | null;
133
+ description: string;
134
+ unit_price: number | null;
135
+ currency_id: number | null;
136
+ archived: boolean;
137
+ tax_rate_id: number | null;
138
+ created_at: string;
139
+ updated_at: string;
140
+ }
141
+ export interface CustomField {
142
+ id: number;
143
+ company_id: number;
144
+ name: string;
145
+ field_type: string;
146
+ active: boolean;
147
+ required: boolean;
148
+ options: string[];
149
+ access_level: string;
150
+ position: number;
151
+ on_line_item: boolean;
152
+ on_budget: boolean;
153
+ on_invoice_item: boolean;
154
+ on_invoice: boolean;
155
+ on_supplier: boolean;
156
+ on_rfq: boolean;
157
+ on_product: boolean;
158
+ display_on_pdf: boolean;
159
+ default_value: string | null;
160
+ created_at: string;
161
+ updated_at: string;
162
+ editable_after_approval: boolean;
163
+ readonly: boolean;
164
+ }
165
+ export interface CustomFieldValue {
166
+ id: number;
167
+ purchase_order_id: number | null;
168
+ value: string;
169
+ custom_field_id: number;
170
+ purchase_order_item_id: number | null;
171
+ date_format: string | null;
172
+ budget_id: number | null;
173
+ value_str?: string;
174
+ }
175
+ export interface CompanySetting {
176
+ id: number;
177
+ show_po_item_number: boolean;
178
+ gross_or_net: string;
179
+ company_id: number;
180
+ fixed_supplier_list: boolean;
181
+ currency_id: number;
182
+ javascript: string | null;
183
+ departments_alias: string | null;
184
+ display_remaining_budget_amount: boolean;
185
+ date_format: string;
186
+ tax_label: string | null;
187
+ approvals_require_login: boolean;
188
+ fixed_product_list: boolean;
189
+ fixed_product_price: boolean;
190
+ show_tax_column: boolean;
191
+ show_company_name: boolean;
192
+ allow_budget_overruns: boolean;
193
+ budgets_alias: string | null;
194
+ enable_detailed_allocations_for_purchase_order_line_items: boolean;
195
+ allocations_enabled: boolean;
196
+ report_name: string | null;
197
+ user_can_add_supplier: boolean;
198
+ user_can_add_product: boolean;
199
+ po_fields: string[];
200
+ reserve_po_number: boolean;
201
+ default_template_id: number | null;
202
+ default_tax_rate_id: number | null;
203
+ can_invite_user: boolean;
204
+ show_remaining_budget_to_teammember: boolean;
205
+ allow_open_draft_access: boolean;
206
+ link_budgets_to_qbo_accounts: boolean;
207
+ link_budgets_to_qbo_class: boolean;
208
+ enable_offline_mode: boolean;
209
+ is_quickbooks_connected: boolean;
210
+ is_sage_connected: boolean;
211
+ show_currency_symbol: boolean;
212
+ enable_approval_override: boolean;
213
+ can_upload_invoice: boolean;
214
+ invoice_reference_mandatory: boolean;
215
+ manually_approve_by_lowest_available_approvers: boolean;
216
+ default_payment_term_id: number | null;
217
+ qbo_customer_required: boolean;
218
+ qbo_customer_active: boolean;
219
+ qbo_class_required: boolean;
220
+ qbo_class_active: boolean;
221
+ qbo_class_alias: string | null;
222
+ qbo_customer_alias: string | null;
223
+ show_qbo_chart_of_account_number: boolean;
224
+ }
225
+ export interface CompanyDetail {
226
+ id: number;
227
+ name: string;
228
+ employees_count: number;
229
+ default_tax_rate: number | null;
230
+ prepaid_subscription: boolean;
231
+ multicompany_pack: boolean;
232
+ payment_term_ff_enabled: boolean;
233
+ scan_and_match_ff_enabled: boolean;
234
+ approval_flow_ff_enabled: boolean;
235
+ policy_ff_enabled: boolean;
236
+ company_setting: CompanySetting;
237
+ custom_fields: CustomField[];
238
+ supported_currencies: Currency[];
239
+ default_payment_term?: PaymentTerm | null;
240
+ payment_terms?: PaymentTerm[];
241
+ }
242
+ export interface PaymentTerm {
243
+ id: number;
244
+ name: string;
245
+ due_days: number | null;
246
+ day_of_month: number | null;
247
+ term_type: string;
248
+ archived: boolean;
249
+ }
250
+ export interface PurchaseOrderItem {
251
+ id: number;
252
+ description: string;
253
+ purchase_order_id: number;
254
+ budget_id: number | null;
255
+ budget_summary: string | null;
256
+ gross_amount: number;
257
+ vat: number;
258
+ tax_rate: number;
259
+ net_amount: number;
260
+ status: string;
261
+ quantity: number;
262
+ unit_price: number;
263
+ item_number: string | null;
264
+ base_net_amount: number;
265
+ base_gross_amount: number;
266
+ gross_usd_amount: number | null;
267
+ product_id: number | null;
268
+ received_quantity: number;
269
+ custom_field_values: CustomFieldValue[];
270
+ sequence_no: number;
271
+ third_party_id_mappings?: Record<string, unknown>;
272
+ chart_of_account?: ChartOfAccount | null;
273
+ qbo_customer?: QboCustomer | null;
274
+ quickbooks_class?: QboClass | null;
275
+ }
276
+ export interface ApproverRequest {
277
+ id: number;
278
+ status: string;
279
+ approver_name: string;
280
+ approver_id: number;
281
+ accept_token: string;
282
+ reject_token: string;
283
+ delegate_id: number | null;
284
+ }
285
+ export interface PurchaseOrderComment {
286
+ id: number;
287
+ comment: string;
288
+ creator_id: number;
289
+ creator_name: string;
290
+ purchase_order_id: number;
291
+ status: string;
292
+ created_at: number;
293
+ uploads: Upload[];
294
+ comment_formatted_time: string;
295
+ comment_formatted_date: string;
296
+ comment_display_name: string;
297
+ formatted_comment: string;
298
+ }
299
+ export interface Upload {
300
+ id: number;
301
+ file_file_name: string;
302
+ file_content_type: string;
303
+ url: string;
304
+ upload_token: string;
305
+ }
306
+ export interface PurchaseOrderSummary {
307
+ id: number;
308
+ approval_key: string | null;
309
+ creator_name: string;
310
+ amount: number;
311
+ status: string;
312
+ supplier_name: string | null;
313
+ keywords: string | null;
314
+ created_at: number;
315
+ currency_id: number;
316
+ currency_symbol: string;
317
+ currency_iso_code: string;
318
+ total_gross_amount: number;
319
+ total_net_amount: number;
320
+ base_gross_amount: number;
321
+ submitted_on: number | null;
322
+ share_key: string | null;
323
+ department_id: number | null;
324
+ department_name: string | null;
325
+ approver_requests?: ApproverRequest[];
326
+ }
327
+ export interface PurchaseOrder {
328
+ id: number;
329
+ company_id: number;
330
+ approval_key: string | null;
331
+ department_id: number | null;
332
+ department_name: string | null;
333
+ supplier_id: number | null;
334
+ supplier_name: string | null;
335
+ external_vendor_id: string | null;
336
+ status: string;
337
+ submitted_on: number | null;
338
+ currency_id: number;
339
+ currency_iso_code: string;
340
+ creator_id: number;
341
+ creator_name: string;
342
+ creator_email: string;
343
+ creator_network_id: string | null;
344
+ amount: number;
345
+ created_at: number;
346
+ updated_at: number;
347
+ notes: string | null;
348
+ total_net_amount: number;
349
+ total_gross_amount: number;
350
+ base_gross_amount: number;
351
+ delivery_status: string | null;
352
+ payment_status: string | null;
353
+ delivered_on: number | null;
354
+ custom_fields: CustomField[];
355
+ share_key: string | null;
356
+ archived: boolean;
357
+ conversion_rate: number;
358
+ keywords: string | null;
359
+ self_approved: boolean;
360
+ xero_id: string | null;
361
+ synced_with_xero: boolean;
362
+ can_cancel: boolean;
363
+ can_archive: boolean;
364
+ can_mark_as_paid: boolean;
365
+ can_override: boolean;
366
+ can_receive_item: boolean;
367
+ can_cancel_receiving_items: boolean;
368
+ can_edit: boolean;
369
+ completely_delivered: boolean;
370
+ aff_link: string | null;
371
+ statuses: string[];
372
+ budgets: Budget[];
373
+ tax_rates: TaxRate[];
374
+ can_complete_delivery: boolean;
375
+ can_copy: boolean;
376
+ approvers_with_flow: ApproverWithFlow[];
377
+ latest_compliance_check: ComplianceCheck | null;
378
+ slug: string | null;
379
+ purchase_order_items: PurchaseOrderItem[];
380
+ purchase_order_comments: PurchaseOrderComment[];
381
+ custom_field_values: CustomFieldValue[];
382
+ payments: unknown[];
383
+ purchase_order_item_payments: unknown[];
384
+ uploads: Upload[];
385
+ invoices: unknown[];
386
+ compliance_checks: ComplianceCheck[];
387
+ approver_requests: ApproverRequest[];
388
+ supplier: Supplier | null;
389
+ }
390
+ export interface ApproverWithFlow {
391
+ status: string;
392
+ name: string;
393
+ approval_flow_id: number | null;
394
+ next_request_id: number | null;
395
+ last_approval_date: string | null;
396
+ up_to_date: boolean;
397
+ requests: {
398
+ id: number;
399
+ status: string;
400
+ approver_id: number;
401
+ delegate_id: number | null;
402
+ created_at: number;
403
+ updated_at: number;
404
+ approver_name: string;
405
+ was_approval_override: boolean;
406
+ }[];
407
+ }
408
+ export interface ComplianceCheck {
409
+ id: number;
410
+ status: string;
411
+ checked_at: string;
412
+ passed_policies: number;
413
+ evidence_pack_id: number | null;
414
+ violations: ComplianceViolation[];
415
+ }
416
+ export interface ComplianceViolation {
417
+ id: number;
418
+ policy_id: number;
419
+ policy_name: string;
420
+ policy_reference: string;
421
+ violation_type: string;
422
+ risk_level: string;
423
+ impact: string;
424
+ details: string;
425
+ remediation_options: string[];
426
+ resolved: boolean;
427
+ resolved_at: string | null;
428
+ resolution_method: string | null;
429
+ }
430
+ export interface InvoiceSummary {
431
+ id: number;
432
+ invoice_number: string | null;
433
+ status: string;
434
+ issue_date: number | null;
435
+ validation_date: number | null;
436
+ uploaded_date: number | null;
437
+ due_date: number | null;
438
+ tax_amount: number;
439
+ net_amount: number;
440
+ gross_amount: number;
441
+ balance_amount: number;
442
+ supplier_id: number | null;
443
+ supplier_name: string | null;
444
+ purchase_order_references: string[];
445
+ can_accept: boolean;
446
+ can_approve: boolean;
447
+ can_reject: boolean;
448
+ can_cancel: boolean;
449
+ can_archive: boolean;
450
+ can_dearchive: boolean;
451
+ standalone_invoice: boolean;
452
+ confidence_score: number | null;
453
+ digital_invoice: boolean;
454
+ payment_term_id: number | null;
455
+ payment_terms_list: PaymentTerm[];
456
+ currency: Currency;
457
+ }
458
+ export interface Invoice {
459
+ id: number;
460
+ invoice_number: string | null;
461
+ status: string;
462
+ issue_date: number | null;
463
+ validation_date: number | null;
464
+ uploaded_date: number | null;
465
+ due_date: number | null;
466
+ tax_amount: number;
467
+ net_amount: number;
468
+ gross_amount: number;
469
+ balance_amount: number;
470
+ created_at: number;
471
+ updated_at: number;
472
+ standalone_invoice: boolean;
473
+ can_accept: boolean;
474
+ can_approve: boolean;
475
+ can_reject: boolean;
476
+ can_cancel: boolean;
477
+ can_archive: boolean;
478
+ can_dearchive: boolean;
479
+ sage_exported: boolean;
480
+ confidence_score: number | null;
481
+ digital_invoice: boolean;
482
+ selected_purchase_order_ids: number[];
483
+ payment_term_id: number | null;
484
+ payment_terms_list: PaymentTerm[];
485
+ currency: Currency;
486
+ supplier: Supplier | null;
487
+ invoice_line_items: InvoiceLineItem[];
488
+ purchase_orders: unknown[];
489
+ supplier_invoice_uploads: SupplierInvoiceUpload[];
490
+ histories: InvoiceComment[];
491
+ comments: InvoiceComment[];
492
+ npayments: NpaymentSummary[];
493
+ }
494
+ export interface InvoiceLineItem {
495
+ id: number;
496
+ sequence_no: number;
497
+ description: string;
498
+ unit_price: number;
499
+ quantity: number;
500
+ vat: number;
501
+ net_amount: number;
502
+ base_net_amount: number;
503
+ deleted_at: string | null;
504
+ billable_status: string | null;
505
+ tax_rate_id: number | null;
506
+ chart_of_account_id: number | null;
507
+ qbo_customer_id: number | null;
508
+ quickbooks_class_id: number | null;
509
+ invoice_id: number;
510
+ purchase_order_id: number | null;
511
+ purchase_order_item_id: number | null;
512
+ markup_info: unknown | null;
513
+ created_at: number;
514
+ updated_at: number;
515
+ tax_amount: number;
516
+ calculated_gross_amount: number;
517
+ tax_exception: boolean;
518
+ chart_of_account?: ChartOfAccount | null;
519
+ qbo_customer?: QboCustomer | null;
520
+ quickbooks_class?: QboClass | null;
521
+ }
522
+ export interface InvoiceComment {
523
+ id: number;
524
+ comment: string;
525
+ invoice_id: number;
526
+ creator_id: number;
527
+ creator_name: string;
528
+ created_at: number;
529
+ updated_at: number;
530
+ comment_formatted_time: string;
531
+ comment_formatted_date: string;
532
+ formatted_comment: string;
533
+ }
534
+ export interface SupplierInvoiceUpload {
535
+ id: number;
536
+ file_file_name: string;
537
+ file_content_type: string;
538
+ file_file_size: number;
539
+ url: string;
540
+ }
541
+ export interface NpaymentSummary {
542
+ id: number;
543
+ reference: string | null;
544
+ status: string;
545
+ ptype: string;
546
+ date: number;
547
+ amount: number;
548
+ }
549
+ export interface Payment {
550
+ id: number;
551
+ reference: string | null;
552
+ status: string;
553
+ ptype: string;
554
+ date: number;
555
+ amount: number;
556
+ created_at: number;
557
+ updated_at: number;
558
+ payment_mode: string;
559
+ archived: boolean;
560
+ conversion_rate: number;
561
+ currency: {
562
+ id: number;
563
+ iso_code: string;
564
+ symbol: string;
565
+ };
566
+ supplier: {
567
+ id: number;
568
+ name: string;
569
+ };
570
+ user: {
571
+ id: number;
572
+ name: string;
573
+ email: string;
574
+ };
575
+ invoices: unknown[];
576
+ npayment_comments: NpaymentComment[];
577
+ }
578
+ export interface NpaymentComment {
579
+ id: number;
580
+ comment: string;
581
+ creator_id: number;
582
+ system_generated: boolean;
583
+ created_at: number;
584
+ updated_at: number;
585
+ }
586
+ export interface ApprovalFlow {
587
+ id: number;
588
+ name: string;
589
+ document_type: number;
590
+ self_approval_allowed: boolean;
591
+ company_id: number;
592
+ version_no: number;
593
+ archived: boolean;
594
+ status: string;
595
+ in_progress_entities_count: number;
596
+ completed_entities_count: number;
597
+ rejected_entities_count: number;
598
+ total_entities_count: number;
599
+ created_at: number;
600
+ updated_at: number;
601
+ approval_steps?: ApprovalStep[];
602
+ approval_conditions?: ApprovalCondition[];
603
+ }
604
+ export interface ApprovalStep {
605
+ id: number;
606
+ step_no: number;
607
+ all_should_approve: boolean;
608
+ approval_flow_id: number;
609
+ created_at: number;
610
+ updated_at: number;
611
+ approval_step_approvers: ApprovalStepApprover[];
612
+ approval_conditions: ApprovalCondition[];
613
+ }
614
+ export interface ApprovalStepApprover {
615
+ id: number;
616
+ approval_step_id: number;
617
+ user_id: number;
618
+ user: {
619
+ id: number;
620
+ name: string;
621
+ email: string;
622
+ };
623
+ created_at: number;
624
+ updated_at: number;
625
+ }
626
+ export interface ApprovalCondition {
627
+ id: number;
628
+ property: string;
629
+ operator: string;
630
+ value: string;
631
+ custom_field_id: number | null;
632
+ approval_flow_id: number | null;
633
+ approval_step_id: number | null;
634
+ created_at: number;
635
+ updated_at: number;
636
+ human_readable_description: string;
637
+ property_label: string;
638
+ value_label: string;
639
+ }
640
+ export interface ApprovalEntity {
641
+ id: number;
642
+ approval_flow_id: number;
643
+ entity_id: number;
644
+ entity_type: string;
645
+ status: string;
646
+ created_at: number;
647
+ updated_at: number;
648
+ }
649
+ export interface TaxRate {
650
+ id: number;
651
+ name: string;
652
+ value: number;
653
+ archived: boolean;
654
+ company_id: number;
655
+ tax_type: string;
656
+ tax_rate_items: TaxRateItem[];
657
+ created_at: string;
658
+ updated_at: string;
659
+ }
660
+ export interface TaxRateItem {
661
+ id: number;
662
+ combined_tax_rate: CombinedTaxRate;
663
+ }
664
+ export interface CombinedTaxRate {
665
+ id: number;
666
+ name: string;
667
+ value: number;
668
+ tax_amount?: number;
669
+ }
670
+ export interface Webhook {
671
+ id: number;
672
+ name: string;
673
+ url: string;
674
+ archived: boolean;
675
+ event_type: string[];
676
+ tested: boolean;
677
+ response_code: number | null;
678
+ json_wrapper: string | null;
679
+ send_as_text?: boolean;
680
+ basic_auth_uname?: string;
681
+ basic_auth_pword?: string;
682
+ webhook_attributes?: WebhookAttribute[];
683
+ }
684
+ export interface WebhookAttribute {
685
+ id: number;
686
+ attrib_type: string;
687
+ key: string;
688
+ value: string;
689
+ }
690
+ export interface ChartOfAccount {
691
+ id: number;
692
+ name: string;
693
+ classification: string | null;
694
+ account_type: string | null;
695
+ currency_code: string | null;
696
+ account_number: string | null;
697
+ display_name: string;
698
+ archived: boolean;
699
+ company_id: number;
700
+ }
701
+ export interface QboCustomer {
702
+ id: number;
703
+ fully_qualified_name: string;
704
+ archived: boolean;
705
+ company_id: number;
706
+ }
707
+ export interface QboClass {
708
+ id: number;
709
+ fully_qualified_name: string;
710
+ archived: boolean;
711
+ company_id: number;
712
+ }
713
+ export interface SendToSupplierTemplate {
714
+ id: number;
715
+ company_id: number;
716
+ label: string;
717
+ text: string;
718
+ is_default: boolean;
719
+ template_name: string;
720
+ }
721
+ export interface Employee {
722
+ id: number;
723
+ email: string;
724
+ name: string;
725
+ roles: string[];
726
+ }
727
+ export interface Approver {
728
+ id: number;
729
+ email: string;
730
+ name: string;
731
+ approval_limit: number | null;
732
+ }