@d19n/youfibre-odin-sdk 2.0.165 → 2.0.166

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.
@@ -24,45 +24,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
24
24
  import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
25
25
  import { FileProperties, AfpInvoiceFileProperties, CsvFileProperties, EmailFileProperties, InvoiceFileProperties, NaProblemEvidenceFileProperties, NaSolutionEvidenceFileProperties, OpenreachA55FileProperties, OtdrFileProperties } from '../entities-v2/File';
26
26
  import { CreateFileProperties } from '../actions-v2/CreateFileDto';
27
- import { OverlayRealA55Record } from './OverlayRealA55Record';
28
- import { AppointmentRecord } from './AppointmentRecord';
29
- import { UgExternalAuditRecord } from './UgExternalAuditRecord';
30
- import { BillingRequestRecord } from './BillingRequestRecord';
31
- import { TransactionRecord } from './TransactionRecord';
32
- import { CreditNoteRecord } from './CreditNoteRecord';
33
- import { AddressRecord } from './AddressRecord';
34
- import { ChangeReasonRecord } from './ChangeReasonRecord';
35
- import { DiscountRecord } from './DiscountRecord';
36
- import { PaymentMethodRefundRecord } from './PaymentMethodRefundRecord';
37
- import { ServiceAppointmentRecord } from './ServiceAppointmentRecord';
38
- import { CustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
39
- import { VisitRecord } from './VisitRecord';
40
- import { WayleaveAuditRecord } from './WayleaveAuditRecord';
41
- import { WorkOrderRecord } from './WorkOrderRecord';
42
- import { OrderItemRecord } from './OrderItemRecord';
43
- import { KnowledgeArticleRecord } from './KnowledgeArticleRecord';
44
- import { CaseRecord } from './CaseRecord';
45
- import { ActivityRecord } from './ActivityRecord';
46
- import { OneTouchSwitchRecord } from './OneTouchSwitchRecord';
47
- import { RemediationRequiredReasonRecord } from './RemediationRequiredReasonRecord';
48
- import { InvoiceRecord } from './InvoiceRecord';
49
27
  import { NoteRecord } from './NoteRecord';
50
- import { LeadRecord } from './LeadRecord';
51
- import { AccountRecord } from './AccountRecord';
52
- import { PaymentMethodRecord } from './PaymentMethodRecord';
53
- import { ContractBuyOutRecord } from './ContractBuyOutRecord';
54
- import { SiteSpecificRiskAssessmentOutcomeFormRecord } from './SiteSpecificRiskAssessmentOutcomeFormRecord';
55
- import { RemediationOutcomeFormRecord } from './RemediationOutcomeFormRecord';
56
- import { OrderRecord } from './OrderRecord';
57
- import { CallRecord } from './CallRecord';
58
- import { OhExternalAuditRecord } from './OhExternalAuditRecord';
59
- import { CustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
60
- import { YfFieldServiceVisitRecord } from './YfFieldServiceVisitRecord';
61
- import { BillingAdjustmentRecord } from './BillingAdjustmentRecord';
62
- import { ContactRecord } from './ContactRecord';
63
- import { MessageRecord } from './MessageRecord';
64
- import { EmailRecord } from './EmailRecord';
65
- import { PgDirectDebitFileRecord } from './PgDirectDebitFileRecord';
66
28
  /** Valid entity types for File */
67
29
  export declare type FileType = 'AFP_INVOICE' | 'CSV' | 'DEFAULT' | 'EMAIL' | 'INVOICE' | 'NA_PROBLEM_EVIDENCE' | 'NA_SOLUTION_EVIDENCE' | 'OPENREACH_A55' | 'OTDR';
68
30
  /**
@@ -128,45 +90,8 @@ export declare class FileRecord<TProps = FileProperties> {
128
90
  private _provider;
129
91
  private _pendingLinks;
130
92
  private _preGeneratedId;
131
- private _overlayRealA55s?;
132
- private _appointments?;
133
- private _ugExternalAudits?;
134
- private _billingRequests?;
135
- private _transactions?;
136
- private _creditNotes?;
137
- private _addresses?;
138
- private _changeReasons?;
139
- private _discounts?;
140
- private _paymentMethodRefunds?;
141
- private _serviceAppointments?;
142
- private _customerDeviceRouters?;
143
- private _visits?;
144
- private _wayleaveAudits?;
145
- private _workOrders?;
146
- private _orderItems?;
147
- private _knowledgeArticles?;
148
- private _cases?;
149
- private _activities?;
150
- private _oneTouchSwitches?;
151
- private _remediationRequiredReasons?;
152
- private _invoices?;
93
+ private _files?;
153
94
  private _notes?;
154
- private _leads?;
155
- private _accounts?;
156
- private _paymentMethods?;
157
- private _contractBuyOuts?;
158
- private _siteSpecificRiskAssessmentOutcomeForms?;
159
- private _remediationOutcomeForms?;
160
- private _orders?;
161
- private _calls?;
162
- private _ohExternalAudits?;
163
- private _customerDeviceOnts?;
164
- private _yfFieldServiceVisits?;
165
- private _billingAdjustments?;
166
- private _contacts?;
167
- private _messages?;
168
- private _emails?;
169
- private _pgDirectDebitFiles?;
170
95
  /**
171
96
  * Create a record wrapper.
172
97
  * @param record - The underlying record, or null for create operations
@@ -336,407 +261,29 @@ export declare class FileRecord<TProps = FileProperties> {
336
261
  * @remarks OTDR evidence for L1 and L2 closures
337
262
  */
338
263
  isOtdr(): this is FileRecord<OtdrFileProperties>;
339
- /** Valid labels for OverlayRealA55 associations */
340
- static readonly overlayRealA55sLabels: readonly ["OverlayRealA55_File"];
264
+ /** Valid labels for File associations */
265
+ static readonly filesLabels: readonly ["ServiceVisitAudit__File", "BlockageA55_File", "NetomniaFtth2StageInstallAudit__File", "NetomniaFtth1StageInstallAudit__File", "OverlayRealA55_File", "Appointment__File", "UgExternalAudit_File", "BillingRequest__File", "Transaction__File", "CreditNote__File", "Address__File", "ChangeReason__File", "Discount__File", "PaymentMethodRefund__File", "ServiceAppointment__File", "CustomerDeviceRouter__File", "Visit__File", "Fingerprint__File", "YfToolAudit_File", "WayleaveAudit_File", "WorkOrder__File", "OrderItem__File", "InternalInstallAudit_File", "KnowledgeArticle__File", "Case__File", "Activity__File", "NetomniaFtthServiceVisitSheet__File", "YfStockCount__File", "OneTouchSwitch_File", "RemediationRequiredReason__File", "Invoice__File", "YfVanAudit_File", "UgInstallationAudit__File", "OhInstallationAudit__File", "UgAuditOfInstallation__File", "Note__File", "YfEquipmentCollection__File", "Lead__File", "Account__File", "PaymentMethod__File", "SweeperMaintenanceAudit__File", "BlockageReportA55__File", "OhAuditOfInstallation__File", "OhInProgressAudit_File", "ContractBuyOut__File", "SiteSpecificRiskAssessmentOutcomeForm__File", "RemediationOutcomeForm_File", "Order__File", "Call__File", "OhExternalAudit_File", "CustomerDeviceOnt__File", "YfFieldServiceVisit__File", "BillingAdjustment__File", "Contact__File", "Message_File", "NetomniaInstallVerification__File", "Attachments", "UgRetroAudit__File", "OhRetroAudit__File", "UgInProgressAudit_File", "PgDirectDebitFile__File"];
341
266
  /**
342
- * Access linked OverlayRealA55 records
343
- * @remarks Available labels: OverlayRealA55_File
267
+ * Access linked File records
268
+ * @remarks Available labels: ServiceVisitAudit__File, BlockageA55_File, NetomniaFtth2StageInstallAudit__File, NetomniaFtth1StageInstallAudit__File, OverlayRealA55_File, Appointment__File, UgExternalAudit_File, BillingRequest__File, Transaction__File, CreditNote__File, Address__File, ChangeReason__File, Discount__File, PaymentMethodRefund__File, ServiceAppointment__File, CustomerDeviceRouter__File, Visit__File, Fingerprint__File, YfToolAudit_File, WayleaveAudit_File, WorkOrder__File, OrderItem__File, InternalInstallAudit_File, KnowledgeArticle__File, Case__File, Activity__File, NetomniaFtthServiceVisitSheet__File, YfStockCount__File, OneTouchSwitch_File, RemediationRequiredReason__File, Invoice__File, YfVanAudit_File, UgInstallationAudit__File, OhInstallationAudit__File, UgAuditOfInstallation__File, Note__File, YfEquipmentCollection__File, Lead__File, Account__File, PaymentMethod__File, SweeperMaintenanceAudit__File, BlockageReportA55__File, OhAuditOfInstallation__File, OhInProgressAudit_File, ContractBuyOut__File, SiteSpecificRiskAssessmentOutcomeForm__File, RemediationOutcomeForm_File, Order__File, Call__File, OhExternalAudit_File, CustomerDeviceOnt__File, YfFieldServiceVisit__File, BillingAdjustment__File, Contact__File, Message_File, NetomniaInstallVerification__File, Attachments, UgRetroAudit__File, OhRetroAudit__File, UgInProgressAudit_File, PgDirectDebitFile__File
344
269
  * @throws Error if called on a new (unsaved) record
345
270
  *
346
271
  * @example
347
272
  * ```typescript
348
- * // Get all linked OverlayRealA55 records
349
- * const items = await record.overlayRealA55s.list();
350
- * const first = await record.overlayRealA55s.first();
273
+ * // Get all linked File records
274
+ * const items = await record.files.list();
275
+ * const first = await record.files.first();
351
276
  *
352
277
  * // Filter by label
353
- * const specific = await record.overlayRealA55s.first({ label: 'OverlayRealA55_File' });
278
+ * const specific = await record.files.first({ label: 'ServiceVisitAudit__File' });
354
279
  * ```
355
280
  */
356
- get overlayRealA55s(): RecordLinkManager<OverlayRealA55Record, typeof FileRecord['overlayRealA55sLabels'][number]>;
357
- /** Valid labels for Appointment associations */
358
- static readonly appointmentsLabels: readonly ["Appointment__File"];
359
- /**
360
- * Access linked Appointment records
361
- * @remarks Available labels: Appointment__File
362
- * @throws Error if called on a new (unsaved) record
363
- *
364
- * @example
365
- * ```typescript
366
- * // Get all linked Appointment records
367
- * const items = await record.appointments.list();
368
- * const first = await record.appointments.first();
369
- *
370
- * // Filter by label
371
- * const specific = await record.appointments.first({ label: 'Appointment__File' });
372
- * ```
373
- */
374
- get appointments(): RecordLinkManager<AppointmentRecord, typeof FileRecord['appointmentsLabels'][number]>;
375
- /** Valid labels for UgExternalAudit associations */
376
- static readonly ugExternalAuditsLabels: readonly ["UgExternalAudit_File"];
377
- /**
378
- * Access linked UgExternalAudit records
379
- * @remarks Available labels: UgExternalAudit_File
380
- * @throws Error if called on a new (unsaved) record
381
- *
382
- * @example
383
- * ```typescript
384
- * // Get all linked UgExternalAudit records
385
- * const items = await record.ugExternalAudits.list();
386
- * const first = await record.ugExternalAudits.first();
387
- *
388
- * // Filter by label
389
- * const specific = await record.ugExternalAudits.first({ label: 'UgExternalAudit_File' });
390
- * ```
391
- */
392
- get ugExternalAudits(): RecordLinkManager<UgExternalAuditRecord, typeof FileRecord['ugExternalAuditsLabels'][number]>;
393
- /** Valid labels for BillingRequest associations */
394
- static readonly billingRequestsLabels: readonly ["BillingRequest__File"];
395
- /**
396
- * Access linked BillingRequest records
397
- * @remarks Available labels: BillingRequest__File
398
- * @throws Error if called on a new (unsaved) record
399
- *
400
- * @example
401
- * ```typescript
402
- * // Get all linked BillingRequest records
403
- * const items = await record.billingRequests.list();
404
- * const first = await record.billingRequests.first();
405
- *
406
- * // Filter by label
407
- * const specific = await record.billingRequests.first({ label: 'BillingRequest__File' });
408
- * ```
409
- */
410
- get billingRequests(): RecordLinkManager<BillingRequestRecord, typeof FileRecord['billingRequestsLabels'][number]>;
411
- /** Valid labels for Transaction associations */
412
- static readonly transactionsLabels: readonly ["Transaction__File"];
413
- /**
414
- * Access linked Transaction records
415
- * @remarks Available labels: Transaction__File
416
- * @throws Error if called on a new (unsaved) record
417
- *
418
- * @example
419
- * ```typescript
420
- * // Get all linked Transaction records
421
- * const items = await record.transactions.list();
422
- * const first = await record.transactions.first();
423
- *
424
- * // Filter by label
425
- * const specific = await record.transactions.first({ label: 'Transaction__File' });
426
- * ```
427
- */
428
- get transactions(): RecordLinkManager<TransactionRecord, typeof FileRecord['transactionsLabels'][number]>;
429
- /** Valid labels for CreditNote associations */
430
- static readonly creditNotesLabels: readonly ["CreditNote__File"];
431
- /**
432
- * Access linked CreditNote records
433
- * @remarks Available labels: CreditNote__File
434
- * @throws Error if called on a new (unsaved) record
435
- *
436
- * @example
437
- * ```typescript
438
- * // Get all linked CreditNote records
439
- * const items = await record.creditNotes.list();
440
- * const first = await record.creditNotes.first();
441
- *
442
- * // Filter by label
443
- * const specific = await record.creditNotes.first({ label: 'CreditNote__File' });
444
- * ```
445
- */
446
- get creditNotes(): RecordLinkManager<CreditNoteRecord, typeof FileRecord['creditNotesLabels'][number]>;
447
- /** Valid labels for Address associations */
448
- static readonly addressesLabels: readonly ["Address__File"];
449
- /**
450
- * Access linked Address records
451
- * @remarks Available labels: Address__File
452
- * @throws Error if called on a new (unsaved) record
453
- *
454
- * @example
455
- * ```typescript
456
- * // Get all linked Address records
457
- * const items = await record.addresses.list();
458
- * const first = await record.addresses.first();
459
- *
460
- * // Filter by label
461
- * const specific = await record.addresses.first({ label: 'Address__File' });
462
- * ```
463
- */
464
- get addresses(): RecordLinkManager<AddressRecord, typeof FileRecord['addressesLabels'][number]>;
465
- /** Valid labels for ChangeReason associations */
466
- static readonly changeReasonsLabels: readonly ["ChangeReason__File"];
467
- /**
468
- * Access linked ChangeReason records
469
- * @remarks Available labels: ChangeReason__File
470
- * @throws Error if called on a new (unsaved) record
471
- *
472
- * @example
473
- * ```typescript
474
- * // Get all linked ChangeReason records
475
- * const items = await record.changeReasons.list();
476
- * const first = await record.changeReasons.first();
477
- *
478
- * // Filter by label
479
- * const specific = await record.changeReasons.first({ label: 'ChangeReason__File' });
480
- * ```
481
- */
482
- get changeReasons(): RecordLinkManager<ChangeReasonRecord, typeof FileRecord['changeReasonsLabels'][number]>;
483
- /** Valid labels for Discount associations */
484
- static readonly discountsLabels: readonly ["Discount__File"];
485
- /**
486
- * Access linked Discount records
487
- * @remarks Available labels: Discount__File
488
- * @throws Error if called on a new (unsaved) record
489
- *
490
- * @example
491
- * ```typescript
492
- * // Get all linked Discount records
493
- * const items = await record.discounts.list();
494
- * const first = await record.discounts.first();
495
- *
496
- * // Filter by label
497
- * const specific = await record.discounts.first({ label: 'Discount__File' });
498
- * ```
499
- */
500
- get discounts(): RecordLinkManager<DiscountRecord, typeof FileRecord['discountsLabels'][number]>;
501
- /** Valid labels for PaymentMethodRefund associations */
502
- static readonly paymentMethodRefundsLabels: readonly ["PaymentMethodRefund__File"];
503
- /**
504
- * Access linked PaymentMethodRefund records
505
- * @remarks Available labels: PaymentMethodRefund__File
506
- * @throws Error if called on a new (unsaved) record
507
- *
508
- * @example
509
- * ```typescript
510
- * // Get all linked PaymentMethodRefund records
511
- * const items = await record.paymentMethodRefunds.list();
512
- * const first = await record.paymentMethodRefunds.first();
513
- *
514
- * // Filter by label
515
- * const specific = await record.paymentMethodRefunds.first({ label: 'PaymentMethodRefund__File' });
516
- * ```
517
- */
518
- get paymentMethodRefunds(): RecordLinkManager<PaymentMethodRefundRecord, typeof FileRecord['paymentMethodRefundsLabels'][number]>;
519
- /** Valid labels for ServiceAppointment associations */
520
- static readonly serviceAppointmentsLabels: readonly ["ServiceAppointment__File"];
521
- /**
522
- * Access linked ServiceAppointment records
523
- * @remarks Available labels: ServiceAppointment__File
524
- * @throws Error if called on a new (unsaved) record
525
- *
526
- * @example
527
- * ```typescript
528
- * // Get all linked ServiceAppointment records
529
- * const items = await record.serviceAppointments.list();
530
- * const first = await record.serviceAppointments.first();
531
- *
532
- * // Filter by label
533
- * const specific = await record.serviceAppointments.first({ label: 'ServiceAppointment__File' });
534
- * ```
535
- */
536
- get serviceAppointments(): RecordLinkManager<ServiceAppointmentRecord, typeof FileRecord['serviceAppointmentsLabels'][number]>;
537
- /** Valid labels for CustomerDeviceRouter associations */
538
- static readonly customerDeviceRoutersLabels: readonly ["CustomerDeviceRouter__File"];
539
- /**
540
- * Access linked CustomerDeviceRouter records
541
- * @remarks Available labels: CustomerDeviceRouter__File
542
- * @throws Error if called on a new (unsaved) record
543
- *
544
- * @example
545
- * ```typescript
546
- * // Get all linked CustomerDeviceRouter records
547
- * const items = await record.customerDeviceRouters.list();
548
- * const first = await record.customerDeviceRouters.first();
549
- *
550
- * // Filter by label
551
- * const specific = await record.customerDeviceRouters.first({ label: 'CustomerDeviceRouter__File' });
552
- * ```
553
- */
554
- get customerDeviceRouters(): RecordLinkManager<CustomerDeviceRouterRecord, typeof FileRecord['customerDeviceRoutersLabels'][number]>;
555
- /** Valid labels for Visit associations */
556
- static readonly visitsLabels: readonly ["Visit__File"];
557
- /**
558
- * Access linked Visit records
559
- * @remarks Available labels: Visit__File
560
- * @throws Error if called on a new (unsaved) record
561
- *
562
- * @example
563
- * ```typescript
564
- * // Get all linked Visit records
565
- * const items = await record.visits.list();
566
- * const first = await record.visits.first();
567
- *
568
- * // Filter by label
569
- * const specific = await record.visits.first({ label: 'Visit__File' });
570
- * ```
571
- */
572
- get visits(): RecordLinkManager<VisitRecord, typeof FileRecord['visitsLabels'][number]>;
573
- /** Valid labels for WayleaveAudit associations */
574
- static readonly wayleaveAuditsLabels: readonly ["WayleaveAudit_File"];
575
- /**
576
- * Access linked WayleaveAudit records
577
- * @remarks Available labels: WayleaveAudit_File
578
- * @throws Error if called on a new (unsaved) record
579
- *
580
- * @example
581
- * ```typescript
582
- * // Get all linked WayleaveAudit records
583
- * const items = await record.wayleaveAudits.list();
584
- * const first = await record.wayleaveAudits.first();
585
- *
586
- * // Filter by label
587
- * const specific = await record.wayleaveAudits.first({ label: 'WayleaveAudit_File' });
588
- * ```
589
- */
590
- get wayleaveAudits(): RecordLinkManager<WayleaveAuditRecord, typeof FileRecord['wayleaveAuditsLabels'][number]>;
591
- /** Valid labels for WorkOrder associations */
592
- static readonly workOrdersLabels: readonly ["WorkOrder__File"];
593
- /**
594
- * Access linked WorkOrder records
595
- * @remarks Available labels: WorkOrder__File
596
- * @throws Error if called on a new (unsaved) record
597
- *
598
- * @example
599
- * ```typescript
600
- * // Get all linked WorkOrder records
601
- * const items = await record.workOrders.list();
602
- * const first = await record.workOrders.first();
603
- *
604
- * // Filter by label
605
- * const specific = await record.workOrders.first({ label: 'WorkOrder__File' });
606
- * ```
607
- */
608
- get workOrders(): RecordLinkManager<WorkOrderRecord, typeof FileRecord['workOrdersLabels'][number]>;
609
- /** Valid labels for OrderItem associations */
610
- static readonly orderItemsLabels: readonly ["OrderItem__File"];
611
- /**
612
- * Access linked OrderItem records
613
- * @remarks Available labels: OrderItem__File
614
- * @throws Error if called on a new (unsaved) record
615
- *
616
- * @example
617
- * ```typescript
618
- * // Get all linked OrderItem records
619
- * const items = await record.orderItems.list();
620
- * const first = await record.orderItems.first();
621
- *
622
- * // Filter by label
623
- * const specific = await record.orderItems.first({ label: 'OrderItem__File' });
624
- * ```
625
- */
626
- get orderItems(): RecordLinkManager<OrderItemRecord, typeof FileRecord['orderItemsLabels'][number]>;
627
- /** Valid labels for KnowledgeArticle associations */
628
- static readonly knowledgeArticlesLabels: readonly ["KnowledgeArticle__File"];
629
- /**
630
- * Access linked KnowledgeArticle records
631
- * @remarks Available labels: KnowledgeArticle__File
632
- * @throws Error if called on a new (unsaved) record
633
- *
634
- * @example
635
- * ```typescript
636
- * // Get all linked KnowledgeArticle records
637
- * const items = await record.knowledgeArticles.list();
638
- * const first = await record.knowledgeArticles.first();
639
- *
640
- * // Filter by label
641
- * const specific = await record.knowledgeArticles.first({ label: 'KnowledgeArticle__File' });
642
- * ```
643
- */
644
- get knowledgeArticles(): RecordLinkManager<KnowledgeArticleRecord, typeof FileRecord['knowledgeArticlesLabels'][number]>;
645
- /** Valid labels for Case associations */
646
- static readonly casesLabels: readonly ["Case__File"];
647
- /**
648
- * Access linked Case records
649
- * @remarks Available labels: Case__File
650
- * @throws Error if called on a new (unsaved) record
651
- *
652
- * @example
653
- * ```typescript
654
- * // Get all linked Case records
655
- * const items = await record.cases.list();
656
- * const first = await record.cases.first();
657
- *
658
- * // Filter by label
659
- * const specific = await record.cases.first({ label: 'Case__File' });
660
- * ```
661
- */
662
- get cases(): RecordLinkManager<CaseRecord, typeof FileRecord['casesLabels'][number]>;
663
- /** Valid labels for Activity associations */
664
- static readonly activitiesLabels: readonly ["Activity__File"];
665
- /**
666
- * Access linked Activity records
667
- * @remarks Available labels: Activity__File
668
- * @throws Error if called on a new (unsaved) record
669
- *
670
- * @example
671
- * ```typescript
672
- * // Get all linked Activity records
673
- * const items = await record.activities.list();
674
- * const first = await record.activities.first();
675
- *
676
- * // Filter by label
677
- * const specific = await record.activities.first({ label: 'Activity__File' });
678
- * ```
679
- */
680
- get activities(): RecordLinkManager<ActivityRecord, typeof FileRecord['activitiesLabels'][number]>;
681
- /** Valid labels for OneTouchSwitch associations */
682
- static readonly oneTouchSwitchesLabels: readonly ["OneTouchSwitch_File"];
683
- /**
684
- * Access linked OneTouchSwitch records
685
- * @remarks Available labels: OneTouchSwitch_File
686
- * @throws Error if called on a new (unsaved) record
687
- *
688
- * @example
689
- * ```typescript
690
- * // Get all linked OneTouchSwitch records
691
- * const items = await record.oneTouchSwitches.list();
692
- * const first = await record.oneTouchSwitches.first();
693
- *
694
- * // Filter by label
695
- * const specific = await record.oneTouchSwitches.first({ label: 'OneTouchSwitch_File' });
696
- * ```
697
- */
698
- get oneTouchSwitches(): RecordLinkManager<OneTouchSwitchRecord, typeof FileRecord['oneTouchSwitchesLabels'][number]>;
699
- /** Valid labels for RemediationRequiredReason associations */
700
- static readonly remediationRequiredReasonsLabels: readonly ["RemediationRequiredReason__File"];
701
- /**
702
- * Access linked RemediationRequiredReason records
703
- * @remarks Available labels: RemediationRequiredReason__File
704
- * @throws Error if called on a new (unsaved) record
705
- *
706
- * @example
707
- * ```typescript
708
- * // Get all linked RemediationRequiredReason records
709
- * const items = await record.remediationRequiredReasons.list();
710
- * const first = await record.remediationRequiredReasons.first();
711
- *
712
- * // Filter by label
713
- * const specific = await record.remediationRequiredReasons.first({ label: 'RemediationRequiredReason__File' });
714
- * ```
715
- */
716
- get remediationRequiredReasons(): RecordLinkManager<RemediationRequiredReasonRecord, typeof FileRecord['remediationRequiredReasonsLabels'][number]>;
717
- /** Valid labels for Invoice associations */
718
- static readonly invoicesLabels: readonly ["Invoice__File"];
719
- /**
720
- * Access linked Invoice records
721
- * @remarks Available labels: Invoice__File
722
- * @throws Error if called on a new (unsaved) record
723
- *
724
- * @example
725
- * ```typescript
726
- * // Get all linked Invoice records
727
- * const items = await record.invoices.list();
728
- * const first = await record.invoices.first();
729
- *
730
- * // Filter by label
731
- * const specific = await record.invoices.first({ label: 'Invoice__File' });
732
- * ```
733
- */
734
- get invoices(): RecordLinkManager<InvoiceRecord, typeof FileRecord['invoicesLabels'][number]>;
281
+ get files(): RecordLinkManager<FileRecord, typeof FileRecord['filesLabels'][number]>;
735
282
  /** Valid labels for Note associations */
736
- static readonly notesLabels: readonly ["File__Note", "Note__File"];
283
+ static readonly notesLabels: readonly ["File__Note"];
737
284
  /**
738
285
  * Access linked Note records
739
- * @remarks Available labels: File__Note, Note__File
286
+ * @remarks Available labels: File__Note
740
287
  * @throws Error if called on a new (unsaved) record
741
288
  *
742
289
  * @example
@@ -750,294 +297,6 @@ export declare class FileRecord<TProps = FileProperties> {
750
297
  * ```
751
298
  */
752
299
  get notes(): RecordLinkManager<NoteRecord, typeof FileRecord['notesLabels'][number]>;
753
- /** Valid labels for Lead associations */
754
- static readonly leadsLabels: readonly ["Lead__File"];
755
- /**
756
- * Access linked Lead records
757
- * @remarks Available labels: Lead__File
758
- * @throws Error if called on a new (unsaved) record
759
- *
760
- * @example
761
- * ```typescript
762
- * // Get all linked Lead records
763
- * const items = await record.leads.list();
764
- * const first = await record.leads.first();
765
- *
766
- * // Filter by label
767
- * const specific = await record.leads.first({ label: 'Lead__File' });
768
- * ```
769
- */
770
- get leads(): RecordLinkManager<LeadRecord, typeof FileRecord['leadsLabels'][number]>;
771
- /** Valid labels for Account associations */
772
- static readonly accountsLabels: readonly ["Account__File"];
773
- /**
774
- * Access linked Account records
775
- * @remarks Available labels: Account__File
776
- * @throws Error if called on a new (unsaved) record
777
- *
778
- * @example
779
- * ```typescript
780
- * // Get all linked Account records
781
- * const items = await record.accounts.list();
782
- * const first = await record.accounts.first();
783
- *
784
- * // Filter by label
785
- * const specific = await record.accounts.first({ label: 'Account__File' });
786
- * ```
787
- */
788
- get accounts(): RecordLinkManager<AccountRecord, typeof FileRecord['accountsLabels'][number]>;
789
- /** Valid labels for PaymentMethod associations */
790
- static readonly paymentMethodsLabels: readonly ["PaymentMethod__File"];
791
- /**
792
- * Access linked PaymentMethod records
793
- * @remarks Available labels: PaymentMethod__File
794
- * @throws Error if called on a new (unsaved) record
795
- *
796
- * @example
797
- * ```typescript
798
- * // Get all linked PaymentMethod records
799
- * const items = await record.paymentMethods.list();
800
- * const first = await record.paymentMethods.first();
801
- *
802
- * // Filter by label
803
- * const specific = await record.paymentMethods.first({ label: 'PaymentMethod__File' });
804
- * ```
805
- */
806
- get paymentMethods(): RecordLinkManager<PaymentMethodRecord, typeof FileRecord['paymentMethodsLabels'][number]>;
807
- /** Valid labels for ContractBuyOut associations */
808
- static readonly contractBuyOutsLabels: readonly ["ContractBuyOut__File"];
809
- /**
810
- * Access linked ContractBuyOut records
811
- * @remarks Available labels: ContractBuyOut__File
812
- * @throws Error if called on a new (unsaved) record
813
- *
814
- * @example
815
- * ```typescript
816
- * // Get all linked ContractBuyOut records
817
- * const items = await record.contractBuyOuts.list();
818
- * const first = await record.contractBuyOuts.first();
819
- *
820
- * // Filter by label
821
- * const specific = await record.contractBuyOuts.first({ label: 'ContractBuyOut__File' });
822
- * ```
823
- */
824
- get contractBuyOuts(): RecordLinkManager<ContractBuyOutRecord, typeof FileRecord['contractBuyOutsLabels'][number]>;
825
- /** Valid labels for SiteSpecificRiskAssessmentOutcomeForm associations */
826
- static readonly siteSpecificRiskAssessmentOutcomeFormsLabels: readonly ["SiteSpecificRiskAssessmentOutcomeForm__File"];
827
- /**
828
- * Access linked SiteSpecificRiskAssessmentOutcomeForm records
829
- * @remarks Available labels: SiteSpecificRiskAssessmentOutcomeForm__File
830
- * @throws Error if called on a new (unsaved) record
831
- *
832
- * @example
833
- * ```typescript
834
- * // Get all linked SiteSpecificRiskAssessmentOutcomeForm records
835
- * const items = await record.siteSpecificRiskAssessmentOutcomeForms.list();
836
- * const first = await record.siteSpecificRiskAssessmentOutcomeForms.first();
837
- *
838
- * // Filter by label
839
- * const specific = await record.siteSpecificRiskAssessmentOutcomeForms.first({ label: 'SiteSpecificRiskAssessmentOutcomeForm__File' });
840
- * ```
841
- */
842
- get siteSpecificRiskAssessmentOutcomeForms(): RecordLinkManager<SiteSpecificRiskAssessmentOutcomeFormRecord, typeof FileRecord['siteSpecificRiskAssessmentOutcomeFormsLabels'][number]>;
843
- /** Valid labels for RemediationOutcomeForm associations */
844
- static readonly remediationOutcomeFormsLabels: readonly ["RemediationOutcomeForm_File"];
845
- /**
846
- * Access linked RemediationOutcomeForm records
847
- * @remarks Available labels: RemediationOutcomeForm_File
848
- * @throws Error if called on a new (unsaved) record
849
- *
850
- * @example
851
- * ```typescript
852
- * // Get all linked RemediationOutcomeForm records
853
- * const items = await record.remediationOutcomeForms.list();
854
- * const first = await record.remediationOutcomeForms.first();
855
- *
856
- * // Filter by label
857
- * const specific = await record.remediationOutcomeForms.first({ label: 'RemediationOutcomeForm_File' });
858
- * ```
859
- */
860
- get remediationOutcomeForms(): RecordLinkManager<RemediationOutcomeFormRecord, typeof FileRecord['remediationOutcomeFormsLabels'][number]>;
861
- /** Valid labels for Order associations */
862
- static readonly ordersLabels: readonly ["Order__File"];
863
- /**
864
- * Access linked Order records
865
- * @remarks Available labels: Order__File
866
- * @throws Error if called on a new (unsaved) record
867
- *
868
- * @example
869
- * ```typescript
870
- * // Get all linked Order records
871
- * const items = await record.orders.list();
872
- * const first = await record.orders.first();
873
- *
874
- * // Filter by label
875
- * const specific = await record.orders.first({ label: 'Order__File' });
876
- * ```
877
- */
878
- get orders(): RecordLinkManager<OrderRecord, typeof FileRecord['ordersLabels'][number]>;
879
- /** Valid labels for Call associations */
880
- static readonly callsLabels: readonly ["Call__File"];
881
- /**
882
- * Access linked Call records
883
- * @remarks Available labels: Call__File
884
- * @throws Error if called on a new (unsaved) record
885
- *
886
- * @example
887
- * ```typescript
888
- * // Get all linked Call records
889
- * const items = await record.calls.list();
890
- * const first = await record.calls.first();
891
- *
892
- * // Filter by label
893
- * const specific = await record.calls.first({ label: 'Call__File' });
894
- * ```
895
- */
896
- get calls(): RecordLinkManager<CallRecord, typeof FileRecord['callsLabels'][number]>;
897
- /** Valid labels for OhExternalAudit associations */
898
- static readonly ohExternalAuditsLabels: readonly ["OhExternalAudit_File"];
899
- /**
900
- * Access linked OhExternalAudit records
901
- * @remarks Available labels: OhExternalAudit_File
902
- * @throws Error if called on a new (unsaved) record
903
- *
904
- * @example
905
- * ```typescript
906
- * // Get all linked OhExternalAudit records
907
- * const items = await record.ohExternalAudits.list();
908
- * const first = await record.ohExternalAudits.first();
909
- *
910
- * // Filter by label
911
- * const specific = await record.ohExternalAudits.first({ label: 'OhExternalAudit_File' });
912
- * ```
913
- */
914
- get ohExternalAudits(): RecordLinkManager<OhExternalAuditRecord, typeof FileRecord['ohExternalAuditsLabels'][number]>;
915
- /** Valid labels for CustomerDeviceOnt associations */
916
- static readonly customerDeviceOntsLabels: readonly ["CustomerDeviceOnt__File"];
917
- /**
918
- * Access linked CustomerDeviceOnt records
919
- * @remarks Available labels: CustomerDeviceOnt__File
920
- * @throws Error if called on a new (unsaved) record
921
- *
922
- * @example
923
- * ```typescript
924
- * // Get all linked CustomerDeviceOnt records
925
- * const items = await record.customerDeviceOnts.list();
926
- * const first = await record.customerDeviceOnts.first();
927
- *
928
- * // Filter by label
929
- * const specific = await record.customerDeviceOnts.first({ label: 'CustomerDeviceOnt__File' });
930
- * ```
931
- */
932
- get customerDeviceOnts(): RecordLinkManager<CustomerDeviceOntRecord, typeof FileRecord['customerDeviceOntsLabels'][number]>;
933
- /** Valid labels for YfFieldServiceVisit associations */
934
- static readonly yfFieldServiceVisitsLabels: readonly ["YfFieldServiceVisit__File"];
935
- /**
936
- * Access linked YfFieldServiceVisit records
937
- * @remarks Available labels: YfFieldServiceVisit__File
938
- * @throws Error if called on a new (unsaved) record
939
- *
940
- * @example
941
- * ```typescript
942
- * // Get all linked YfFieldServiceVisit records
943
- * const items = await record.yfFieldServiceVisits.list();
944
- * const first = await record.yfFieldServiceVisits.first();
945
- *
946
- * // Filter by label
947
- * const specific = await record.yfFieldServiceVisits.first({ label: 'YfFieldServiceVisit__File' });
948
- * ```
949
- */
950
- get yfFieldServiceVisits(): RecordLinkManager<YfFieldServiceVisitRecord, typeof FileRecord['yfFieldServiceVisitsLabels'][number]>;
951
- /** Valid labels for BillingAdjustment associations */
952
- static readonly billingAdjustmentsLabels: readonly ["BillingAdjustment__File"];
953
- /**
954
- * Access linked BillingAdjustment records
955
- * @remarks Available labels: BillingAdjustment__File
956
- * @throws Error if called on a new (unsaved) record
957
- *
958
- * @example
959
- * ```typescript
960
- * // Get all linked BillingAdjustment records
961
- * const items = await record.billingAdjustments.list();
962
- * const first = await record.billingAdjustments.first();
963
- *
964
- * // Filter by label
965
- * const specific = await record.billingAdjustments.first({ label: 'BillingAdjustment__File' });
966
- * ```
967
- */
968
- get billingAdjustments(): RecordLinkManager<BillingAdjustmentRecord, typeof FileRecord['billingAdjustmentsLabels'][number]>;
969
- /** Valid labels for Contact associations */
970
- static readonly contactsLabels: readonly ["Contact__File"];
971
- /**
972
- * Access linked Contact records
973
- * @remarks Available labels: Contact__File
974
- * @throws Error if called on a new (unsaved) record
975
- *
976
- * @example
977
- * ```typescript
978
- * // Get all linked Contact records
979
- * const items = await record.contacts.list();
980
- * const first = await record.contacts.first();
981
- *
982
- * // Filter by label
983
- * const specific = await record.contacts.first({ label: 'Contact__File' });
984
- * ```
985
- */
986
- get contacts(): RecordLinkManager<ContactRecord, typeof FileRecord['contactsLabels'][number]>;
987
- /** Valid labels for Message associations */
988
- static readonly messagesLabels: readonly ["Message_File"];
989
- /**
990
- * Access linked Message records
991
- * @remarks Available labels: Message_File
992
- * @throws Error if called on a new (unsaved) record
993
- *
994
- * @example
995
- * ```typescript
996
- * // Get all linked Message records
997
- * const items = await record.messages.list();
998
- * const first = await record.messages.first();
999
- *
1000
- * // Filter by label
1001
- * const specific = await record.messages.first({ label: 'Message_File' });
1002
- * ```
1003
- */
1004
- get messages(): RecordLinkManager<MessageRecord, typeof FileRecord['messagesLabels'][number]>;
1005
- /** Valid labels for Email associations */
1006
- static readonly emailsLabels: readonly ["Attachments"];
1007
- /**
1008
- * Access linked Email records
1009
- * @remarks Available labels: Attachments
1010
- * @throws Error if called on a new (unsaved) record
1011
- *
1012
- * @example
1013
- * ```typescript
1014
- * // Get all linked Email records
1015
- * const items = await record.emails.list();
1016
- * const first = await record.emails.first();
1017
- *
1018
- * // Filter by label
1019
- * const specific = await record.emails.first({ label: 'Attachments' });
1020
- * ```
1021
- */
1022
- get emails(): RecordLinkManager<EmailRecord, typeof FileRecord['emailsLabels'][number]>;
1023
- /** Valid labels for PgDirectDebitFile associations */
1024
- static readonly pgDirectDebitFilesLabels: readonly ["PgDirectDebitFile__File"];
1025
- /**
1026
- * Access linked PgDirectDebitFile records
1027
- * @remarks Available labels: PgDirectDebitFile__File
1028
- * @throws Error if called on a new (unsaved) record
1029
- *
1030
- * @example
1031
- * ```typescript
1032
- * // Get all linked PgDirectDebitFile records
1033
- * const items = await record.pgDirectDebitFiles.list();
1034
- * const first = await record.pgDirectDebitFiles.first();
1035
- *
1036
- * // Filter by label
1037
- * const specific = await record.pgDirectDebitFiles.first({ label: 'PgDirectDebitFile__File' });
1038
- * ```
1039
- */
1040
- get pgDirectDebitFiles(): RecordLinkManager<PgDirectDebitFileRecord, typeof FileRecord['pgDirectDebitFilesLabels'][number]>;
1041
300
  /**
1042
301
  * Queue a link to be created with the next action.
1043
302
  * Works for both create and update actions.