@d19n/youfibre-odin-sdk 2.0.346 → 2.0.347
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.
- package/dist/entities-v2/Case.d.ts +30 -1
- package/dist/entities-v2/Case.js +18 -2
- package/dist/records-v2/FileRecord.d.ts +813 -12
- package/dist/records-v2/FileRecord.js +1353 -32
- package/package.json +1 -1
|
@@ -32,7 +32,48 @@ exports.isFileRecord = exports.FileRecord = void 0;
|
|
|
32
32
|
const uuid_1 = require("uuid");
|
|
33
33
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
34
|
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
|
+
const OverlayRealA55Record_1 = require("./OverlayRealA55Record");
|
|
36
|
+
const AppointmentRecord_1 = require("./AppointmentRecord");
|
|
37
|
+
const UgExternalAuditRecord_1 = require("./UgExternalAuditRecord");
|
|
38
|
+
const BillingRequestRecord_1 = require("./BillingRequestRecord");
|
|
39
|
+
const TransactionRecord_1 = require("./TransactionRecord");
|
|
40
|
+
const CreditNoteRecord_1 = require("./CreditNoteRecord");
|
|
41
|
+
const AddressRecord_1 = require("./AddressRecord");
|
|
42
|
+
const ChangeReasonRecord_1 = require("./ChangeReasonRecord");
|
|
43
|
+
const DiscountRecord_1 = require("./DiscountRecord");
|
|
44
|
+
const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
|
|
45
|
+
const ServiceAppointmentRecord_1 = require("./ServiceAppointmentRecord");
|
|
46
|
+
const CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
47
|
+
const VisitRecord_1 = require("./VisitRecord");
|
|
48
|
+
const WayleaveAuditRecord_1 = require("./WayleaveAuditRecord");
|
|
49
|
+
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
50
|
+
const OrderItemRecord_1 = require("./OrderItemRecord");
|
|
51
|
+
const KnowledgeArticleRecord_1 = require("./KnowledgeArticleRecord");
|
|
52
|
+
const CaseRecord_1 = require("./CaseRecord");
|
|
53
|
+
const ActivityRecord_1 = require("./ActivityRecord");
|
|
54
|
+
const OneTouchSwitchRecord_1 = require("./OneTouchSwitchRecord");
|
|
55
|
+
const RemediationRequiredReasonRecord_1 = require("./RemediationRequiredReasonRecord");
|
|
56
|
+
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
35
57
|
const NoteRecord_1 = require("./NoteRecord");
|
|
58
|
+
const LeadRecord_1 = require("./LeadRecord");
|
|
59
|
+
const AccountRecord_1 = require("./AccountRecord");
|
|
60
|
+
const PaymentMethodRecord_1 = require("./PaymentMethodRecord");
|
|
61
|
+
const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
62
|
+
const SiteSpecificRiskAssessmentOutcomeFormRecord_1 = require("./SiteSpecificRiskAssessmentOutcomeFormRecord");
|
|
63
|
+
const RemediationOutcomeFormRecord_1 = require("./RemediationOutcomeFormRecord");
|
|
64
|
+
const OrderRecord_1 = require("./OrderRecord");
|
|
65
|
+
const CallRecord_1 = require("./CallRecord");
|
|
66
|
+
const OhExternalAuditRecord_1 = require("./OhExternalAuditRecord");
|
|
67
|
+
const CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
|
|
68
|
+
const BillingAdjustmentRecord_1 = require("./BillingAdjustmentRecord");
|
|
69
|
+
const ContactRecord_1 = require("./ContactRecord");
|
|
70
|
+
const MessageRecord_1 = require("./MessageRecord");
|
|
71
|
+
const EmailRecord_1 = require("./EmailRecord");
|
|
72
|
+
const PgDirectDebitFileRecord_1 = require("./PgDirectDebitFileRecord");
|
|
73
|
+
const YfWifiSurveyRecord_1 = require("./YfWifiSurveyRecord");
|
|
74
|
+
const YfFieldVisitOutcomeFormRecord_1 = require("./YfFieldVisitOutcomeFormRecord");
|
|
75
|
+
const DocumentRecord_1 = require("./DocumentRecord");
|
|
76
|
+
const DocumentProcessingRecord_1 = require("./DocumentProcessingRecord");
|
|
36
77
|
/**
|
|
37
78
|
* Builder for action execution with dryRun support
|
|
38
79
|
*
|
|
@@ -325,64 +366,1264 @@ class FileRecord {
|
|
|
325
366
|
*/
|
|
326
367
|
isProcessingOutput() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'PROCESSING_OUTPUT'; }
|
|
327
368
|
/**
|
|
328
|
-
* Access linked
|
|
329
|
-
* @remarks Available labels:
|
|
369
|
+
* Access linked OverlayRealA55 records
|
|
370
|
+
* @remarks Available labels: OverlayRealA55_File
|
|
330
371
|
* @throws Error if called on a new (unsaved) record
|
|
331
372
|
*
|
|
332
373
|
* @example
|
|
333
374
|
* ```typescript
|
|
334
|
-
* // Get all linked
|
|
335
|
-
* const items = await record.
|
|
336
|
-
* const first = await record.
|
|
375
|
+
* // Get all linked OverlayRealA55 records
|
|
376
|
+
* const items = await record.overlayRealA55s.list();
|
|
377
|
+
* const first = await record.overlayRealA55s.first();
|
|
337
378
|
*
|
|
338
379
|
* // Filter by label
|
|
339
|
-
* const specific = await record.
|
|
380
|
+
* const specific = await record.overlayRealA55s.first({ label: 'OverlayRealA55_File' });
|
|
340
381
|
* ```
|
|
341
382
|
*/
|
|
342
|
-
get
|
|
383
|
+
get overlayRealA55s() {
|
|
343
384
|
var _a;
|
|
344
385
|
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
345
386
|
throw new Error('Cannot access links on a new (unsaved) record');
|
|
346
|
-
if (!this.
|
|
347
|
-
this.
|
|
387
|
+
if (!this._overlayRealA55s) {
|
|
388
|
+
this._overlayRealA55s = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
348
389
|
sourceEntity: 'SchemaModule:File',
|
|
349
|
-
targetEntity: '
|
|
350
|
-
targetModuleName: '
|
|
351
|
-
targetEntityName: '
|
|
352
|
-
labels: ['
|
|
353
|
-
},
|
|
390
|
+
targetEntity: 'FieldServiceModule:OverlayRealA55',
|
|
391
|
+
targetModuleName: 'FieldServiceModule',
|
|
392
|
+
targetEntityName: 'OverlayRealA55',
|
|
393
|
+
labels: ['OverlayRealA55_File'],
|
|
394
|
+
}, OverlayRealA55Record_1.OverlayRealA55Record);
|
|
354
395
|
}
|
|
355
|
-
return this.
|
|
396
|
+
return this._overlayRealA55s;
|
|
356
397
|
}
|
|
357
398
|
/**
|
|
358
|
-
* Access linked
|
|
359
|
-
* @remarks Available labels:
|
|
399
|
+
* Access linked Appointment records
|
|
400
|
+
* @remarks Available labels: Appointment__File
|
|
360
401
|
* @throws Error if called on a new (unsaved) record
|
|
361
402
|
*
|
|
362
403
|
* @example
|
|
363
404
|
* ```typescript
|
|
364
|
-
* // Get all linked
|
|
365
|
-
* const items = await record.
|
|
366
|
-
* const first = await record.
|
|
405
|
+
* // Get all linked Appointment records
|
|
406
|
+
* const items = await record.appointments.list();
|
|
407
|
+
* const first = await record.appointments.first();
|
|
367
408
|
*
|
|
368
409
|
* // Filter by label
|
|
369
|
-
* const specific = await record.
|
|
410
|
+
* const specific = await record.appointments.first({ label: 'Appointment__File' });
|
|
370
411
|
* ```
|
|
371
412
|
*/
|
|
372
|
-
get
|
|
413
|
+
get appointments() {
|
|
373
414
|
var _a;
|
|
374
415
|
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
375
416
|
throw new Error('Cannot access links on a new (unsaved) record');
|
|
376
|
-
if (!this.
|
|
377
|
-
this.
|
|
417
|
+
if (!this._appointments) {
|
|
418
|
+
this._appointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
378
419
|
sourceEntity: 'SchemaModule:File',
|
|
379
|
-
targetEntity: '
|
|
420
|
+
targetEntity: 'CrmModule:Appointment',
|
|
421
|
+
targetModuleName: 'CrmModule',
|
|
422
|
+
targetEntityName: 'Appointment',
|
|
423
|
+
labels: ['Appointment__File'],
|
|
424
|
+
}, AppointmentRecord_1.AppointmentRecord);
|
|
425
|
+
}
|
|
426
|
+
return this._appointments;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Access linked UgExternalAudit records
|
|
430
|
+
* @remarks Available labels: UgExternalAudit_File
|
|
431
|
+
* @throws Error if called on a new (unsaved) record
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* ```typescript
|
|
435
|
+
* // Get all linked UgExternalAudit records
|
|
436
|
+
* const items = await record.ugExternalAudits.list();
|
|
437
|
+
* const first = await record.ugExternalAudits.first();
|
|
438
|
+
*
|
|
439
|
+
* // Filter by label
|
|
440
|
+
* const specific = await record.ugExternalAudits.first({ label: 'UgExternalAudit_File' });
|
|
441
|
+
* ```
|
|
442
|
+
*/
|
|
443
|
+
get ugExternalAudits() {
|
|
444
|
+
var _a;
|
|
445
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
446
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
447
|
+
if (!this._ugExternalAudits) {
|
|
448
|
+
this._ugExternalAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
449
|
+
sourceEntity: 'SchemaModule:File',
|
|
450
|
+
targetEntity: 'FieldServiceModule:UgExternalAudit',
|
|
451
|
+
targetModuleName: 'FieldServiceModule',
|
|
452
|
+
targetEntityName: 'UgExternalAudit',
|
|
453
|
+
labels: ['UgExternalAudit_File'],
|
|
454
|
+
}, UgExternalAuditRecord_1.UgExternalAuditRecord);
|
|
455
|
+
}
|
|
456
|
+
return this._ugExternalAudits;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Access linked BillingRequest records
|
|
460
|
+
* @remarks Available labels: BillingRequest__File
|
|
461
|
+
* @throws Error if called on a new (unsaved) record
|
|
462
|
+
*
|
|
463
|
+
* @example
|
|
464
|
+
* ```typescript
|
|
465
|
+
* // Get all linked BillingRequest records
|
|
466
|
+
* const items = await record.billingRequests.list();
|
|
467
|
+
* const first = await record.billingRequests.first();
|
|
468
|
+
*
|
|
469
|
+
* // Filter by label
|
|
470
|
+
* const specific = await record.billingRequests.first({ label: 'BillingRequest__File' });
|
|
471
|
+
* ```
|
|
472
|
+
*/
|
|
473
|
+
get billingRequests() {
|
|
474
|
+
var _a;
|
|
475
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
476
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
477
|
+
if (!this._billingRequests) {
|
|
478
|
+
this._billingRequests = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
479
|
+
sourceEntity: 'SchemaModule:File',
|
|
480
|
+
targetEntity: 'BillingModule:BillingRequest',
|
|
481
|
+
targetModuleName: 'BillingModule',
|
|
482
|
+
targetEntityName: 'BillingRequest',
|
|
483
|
+
labels: ['BillingRequest__File'],
|
|
484
|
+
}, BillingRequestRecord_1.BillingRequestRecord);
|
|
485
|
+
}
|
|
486
|
+
return this._billingRequests;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Access linked Transaction records
|
|
490
|
+
* @remarks Available labels: Transaction__File
|
|
491
|
+
* @throws Error if called on a new (unsaved) record
|
|
492
|
+
*
|
|
493
|
+
* @example
|
|
494
|
+
* ```typescript
|
|
495
|
+
* // Get all linked Transaction records
|
|
496
|
+
* const items = await record.transactions.list();
|
|
497
|
+
* const first = await record.transactions.first();
|
|
498
|
+
*
|
|
499
|
+
* // Filter by label
|
|
500
|
+
* const specific = await record.transactions.first({ label: 'Transaction__File' });
|
|
501
|
+
* ```
|
|
502
|
+
*/
|
|
503
|
+
get transactions() {
|
|
504
|
+
var _a;
|
|
505
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
506
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
507
|
+
if (!this._transactions) {
|
|
508
|
+
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
509
|
+
sourceEntity: 'SchemaModule:File',
|
|
510
|
+
targetEntity: 'BillingModule:Transaction',
|
|
511
|
+
targetModuleName: 'BillingModule',
|
|
512
|
+
targetEntityName: 'Transaction',
|
|
513
|
+
labels: ['Transaction__File'],
|
|
514
|
+
}, TransactionRecord_1.TransactionRecord);
|
|
515
|
+
}
|
|
516
|
+
return this._transactions;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Access linked CreditNote records
|
|
520
|
+
* @remarks Available labels: CreditNote__File
|
|
521
|
+
* @throws Error if called on a new (unsaved) record
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
* ```typescript
|
|
525
|
+
* // Get all linked CreditNote records
|
|
526
|
+
* const items = await record.creditNotes.list();
|
|
527
|
+
* const first = await record.creditNotes.first();
|
|
528
|
+
*
|
|
529
|
+
* // Filter by label
|
|
530
|
+
* const specific = await record.creditNotes.first({ label: 'CreditNote__File' });
|
|
531
|
+
* ```
|
|
532
|
+
*/
|
|
533
|
+
get creditNotes() {
|
|
534
|
+
var _a;
|
|
535
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
536
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
537
|
+
if (!this._creditNotes) {
|
|
538
|
+
this._creditNotes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
539
|
+
sourceEntity: 'SchemaModule:File',
|
|
540
|
+
targetEntity: 'BillingModule:CreditNote',
|
|
541
|
+
targetModuleName: 'BillingModule',
|
|
542
|
+
targetEntityName: 'CreditNote',
|
|
543
|
+
labels: ['CreditNote__File'],
|
|
544
|
+
}, CreditNoteRecord_1.CreditNoteRecord);
|
|
545
|
+
}
|
|
546
|
+
return this._creditNotes;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Access linked Address records
|
|
550
|
+
* @remarks Available labels: Address__File
|
|
551
|
+
* @throws Error if called on a new (unsaved) record
|
|
552
|
+
*
|
|
553
|
+
* @example
|
|
554
|
+
* ```typescript
|
|
555
|
+
* // Get all linked Address records
|
|
556
|
+
* const items = await record.addresses.list();
|
|
557
|
+
* const first = await record.addresses.first();
|
|
558
|
+
*
|
|
559
|
+
* // Filter by label
|
|
560
|
+
* const specific = await record.addresses.first({ label: 'Address__File' });
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
get addresses() {
|
|
564
|
+
var _a;
|
|
565
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
566
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
567
|
+
if (!this._addresses) {
|
|
568
|
+
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
569
|
+
sourceEntity: 'SchemaModule:File',
|
|
570
|
+
targetEntity: 'CrmModule:Address',
|
|
571
|
+
targetModuleName: 'CrmModule',
|
|
572
|
+
targetEntityName: 'Address',
|
|
573
|
+
labels: ['Address__File'],
|
|
574
|
+
}, AddressRecord_1.AddressRecord);
|
|
575
|
+
}
|
|
576
|
+
return this._addresses;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Access linked ChangeReason records
|
|
580
|
+
* @remarks Available labels: ChangeReason__File
|
|
581
|
+
* @throws Error if called on a new (unsaved) record
|
|
582
|
+
*
|
|
583
|
+
* @example
|
|
584
|
+
* ```typescript
|
|
585
|
+
* // Get all linked ChangeReason records
|
|
586
|
+
* const items = await record.changeReasons.list();
|
|
587
|
+
* const first = await record.changeReasons.first();
|
|
588
|
+
*
|
|
589
|
+
* // Filter by label
|
|
590
|
+
* const specific = await record.changeReasons.first({ label: 'ChangeReason__File' });
|
|
591
|
+
* ```
|
|
592
|
+
*/
|
|
593
|
+
get changeReasons() {
|
|
594
|
+
var _a;
|
|
595
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
596
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
597
|
+
if (!this._changeReasons) {
|
|
598
|
+
this._changeReasons = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
599
|
+
sourceEntity: 'SchemaModule:File',
|
|
600
|
+
targetEntity: 'FieldServiceModule:ChangeReason',
|
|
601
|
+
targetModuleName: 'FieldServiceModule',
|
|
602
|
+
targetEntityName: 'ChangeReason',
|
|
603
|
+
labels: ['ChangeReason__File'],
|
|
604
|
+
}, ChangeReasonRecord_1.ChangeReasonRecord);
|
|
605
|
+
}
|
|
606
|
+
return this._changeReasons;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Access linked Discount records
|
|
610
|
+
* @remarks Available labels: Discount__File
|
|
611
|
+
* @throws Error if called on a new (unsaved) record
|
|
612
|
+
*
|
|
613
|
+
* @example
|
|
614
|
+
* ```typescript
|
|
615
|
+
* // Get all linked Discount records
|
|
616
|
+
* const items = await record.discounts.list();
|
|
617
|
+
* const first = await record.discounts.first();
|
|
618
|
+
*
|
|
619
|
+
* // Filter by label
|
|
620
|
+
* const specific = await record.discounts.first({ label: 'Discount__File' });
|
|
621
|
+
* ```
|
|
622
|
+
*/
|
|
623
|
+
get discounts() {
|
|
624
|
+
var _a;
|
|
625
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
626
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
627
|
+
if (!this._discounts) {
|
|
628
|
+
this._discounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
629
|
+
sourceEntity: 'SchemaModule:File',
|
|
630
|
+
targetEntity: 'ProductModule:Discount',
|
|
631
|
+
targetModuleName: 'ProductModule',
|
|
632
|
+
targetEntityName: 'Discount',
|
|
633
|
+
labels: ['Discount__File'],
|
|
634
|
+
}, DiscountRecord_1.DiscountRecord);
|
|
635
|
+
}
|
|
636
|
+
return this._discounts;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Access linked PaymentMethodRefund records
|
|
640
|
+
* @remarks Available labels: PaymentMethodRefund__File
|
|
641
|
+
* @throws Error if called on a new (unsaved) record
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* ```typescript
|
|
645
|
+
* // Get all linked PaymentMethodRefund records
|
|
646
|
+
* const items = await record.paymentMethodRefunds.list();
|
|
647
|
+
* const first = await record.paymentMethodRefunds.first();
|
|
648
|
+
*
|
|
649
|
+
* // Filter by label
|
|
650
|
+
* const specific = await record.paymentMethodRefunds.first({ label: 'PaymentMethodRefund__File' });
|
|
651
|
+
* ```
|
|
652
|
+
*/
|
|
653
|
+
get paymentMethodRefunds() {
|
|
654
|
+
var _a;
|
|
655
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
656
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
657
|
+
if (!this._paymentMethodRefunds) {
|
|
658
|
+
this._paymentMethodRefunds = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
659
|
+
sourceEntity: 'SchemaModule:File',
|
|
660
|
+
targetEntity: 'BillingModule:PaymentMethodRefund',
|
|
661
|
+
targetModuleName: 'BillingModule',
|
|
662
|
+
targetEntityName: 'PaymentMethodRefund',
|
|
663
|
+
labels: ['PaymentMethodRefund__File'],
|
|
664
|
+
}, PaymentMethodRefundRecord_1.PaymentMethodRefundRecord);
|
|
665
|
+
}
|
|
666
|
+
return this._paymentMethodRefunds;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Access linked ServiceAppointment records
|
|
670
|
+
* @remarks Available labels: ServiceAppointment__File
|
|
671
|
+
* @throws Error if called on a new (unsaved) record
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ```typescript
|
|
675
|
+
* // Get all linked ServiceAppointment records
|
|
676
|
+
* const items = await record.serviceAppointments.list();
|
|
677
|
+
* const first = await record.serviceAppointments.first();
|
|
678
|
+
*
|
|
679
|
+
* // Filter by label
|
|
680
|
+
* const specific = await record.serviceAppointments.first({ label: 'ServiceAppointment__File' });
|
|
681
|
+
* ```
|
|
682
|
+
*/
|
|
683
|
+
get serviceAppointments() {
|
|
684
|
+
var _a;
|
|
685
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
686
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
687
|
+
if (!this._serviceAppointments) {
|
|
688
|
+
this._serviceAppointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
689
|
+
sourceEntity: 'SchemaModule:File',
|
|
690
|
+
targetEntity: 'FieldServiceModule:ServiceAppointment',
|
|
691
|
+
targetModuleName: 'FieldServiceModule',
|
|
692
|
+
targetEntityName: 'ServiceAppointment',
|
|
693
|
+
labels: ['ServiceAppointment__File'],
|
|
694
|
+
}, ServiceAppointmentRecord_1.ServiceAppointmentRecord);
|
|
695
|
+
}
|
|
696
|
+
return this._serviceAppointments;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Access linked CustomerDeviceRouter records
|
|
700
|
+
* @remarks Available labels: CustomerDeviceRouter__File
|
|
701
|
+
* @throws Error if called on a new (unsaved) record
|
|
702
|
+
*
|
|
703
|
+
* @example
|
|
704
|
+
* ```typescript
|
|
705
|
+
* // Get all linked CustomerDeviceRouter records
|
|
706
|
+
* const items = await record.customerDeviceRouters.list();
|
|
707
|
+
* const first = await record.customerDeviceRouters.first();
|
|
708
|
+
*
|
|
709
|
+
* // Filter by label
|
|
710
|
+
* const specific = await record.customerDeviceRouters.first({ label: 'CustomerDeviceRouter__File' });
|
|
711
|
+
* ```
|
|
712
|
+
*/
|
|
713
|
+
get customerDeviceRouters() {
|
|
714
|
+
var _a;
|
|
715
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
716
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
717
|
+
if (!this._customerDeviceRouters) {
|
|
718
|
+
this._customerDeviceRouters = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
719
|
+
sourceEntity: 'SchemaModule:File',
|
|
720
|
+
targetEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
721
|
+
targetModuleName: 'ServiceModule',
|
|
722
|
+
targetEntityName: 'CustomerDeviceRouter',
|
|
723
|
+
labels: ['CustomerDeviceRouter__File'],
|
|
724
|
+
}, CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord);
|
|
725
|
+
}
|
|
726
|
+
return this._customerDeviceRouters;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Access linked Visit records
|
|
730
|
+
* @remarks Available labels: Visit__File
|
|
731
|
+
* @throws Error if called on a new (unsaved) record
|
|
732
|
+
*
|
|
733
|
+
* @example
|
|
734
|
+
* ```typescript
|
|
735
|
+
* // Get all linked Visit records
|
|
736
|
+
* const items = await record.visits.list();
|
|
737
|
+
* const first = await record.visits.first();
|
|
738
|
+
*
|
|
739
|
+
* // Filter by label
|
|
740
|
+
* const specific = await record.visits.first({ label: 'Visit__File' });
|
|
741
|
+
* ```
|
|
742
|
+
*/
|
|
743
|
+
get visits() {
|
|
744
|
+
var _a;
|
|
745
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
746
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
747
|
+
if (!this._visits) {
|
|
748
|
+
this._visits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
749
|
+
sourceEntity: 'SchemaModule:File',
|
|
750
|
+
targetEntity: 'CrmModule:Visit',
|
|
751
|
+
targetModuleName: 'CrmModule',
|
|
752
|
+
targetEntityName: 'Visit',
|
|
753
|
+
labels: ['Visit__File'],
|
|
754
|
+
}, VisitRecord_1.VisitRecord);
|
|
755
|
+
}
|
|
756
|
+
return this._visits;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Access linked WayleaveAudit records
|
|
760
|
+
* @remarks Available labels: WayleaveAudit_File
|
|
761
|
+
* @throws Error if called on a new (unsaved) record
|
|
762
|
+
*
|
|
763
|
+
* @example
|
|
764
|
+
* ```typescript
|
|
765
|
+
* // Get all linked WayleaveAudit records
|
|
766
|
+
* const items = await record.wayleaveAudits.list();
|
|
767
|
+
* const first = await record.wayleaveAudits.first();
|
|
768
|
+
*
|
|
769
|
+
* // Filter by label
|
|
770
|
+
* const specific = await record.wayleaveAudits.first({ label: 'WayleaveAudit_File' });
|
|
771
|
+
* ```
|
|
772
|
+
*/
|
|
773
|
+
get wayleaveAudits() {
|
|
774
|
+
var _a;
|
|
775
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
776
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
777
|
+
if (!this._wayleaveAudits) {
|
|
778
|
+
this._wayleaveAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
779
|
+
sourceEntity: 'SchemaModule:File',
|
|
780
|
+
targetEntity: 'FieldServiceModule:WayleaveAudit',
|
|
781
|
+
targetModuleName: 'FieldServiceModule',
|
|
782
|
+
targetEntityName: 'WayleaveAudit',
|
|
783
|
+
labels: ['WayleaveAudit_File'],
|
|
784
|
+
}, WayleaveAuditRecord_1.WayleaveAuditRecord);
|
|
785
|
+
}
|
|
786
|
+
return this._wayleaveAudits;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Access linked WorkOrder records
|
|
790
|
+
* @remarks Available labels: WorkOrder__File
|
|
791
|
+
* @throws Error if called on a new (unsaved) record
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
* ```typescript
|
|
795
|
+
* // Get all linked WorkOrder records
|
|
796
|
+
* const items = await record.workOrders.list();
|
|
797
|
+
* const first = await record.workOrders.first();
|
|
798
|
+
*
|
|
799
|
+
* // Filter by label
|
|
800
|
+
* const specific = await record.workOrders.first({ label: 'WorkOrder__File' });
|
|
801
|
+
* ```
|
|
802
|
+
*/
|
|
803
|
+
get workOrders() {
|
|
804
|
+
var _a;
|
|
805
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
806
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
807
|
+
if (!this._workOrders) {
|
|
808
|
+
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
809
|
+
sourceEntity: 'SchemaModule:File',
|
|
810
|
+
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
811
|
+
targetModuleName: 'FieldServiceModule',
|
|
812
|
+
targetEntityName: 'WorkOrder',
|
|
813
|
+
labels: ['WorkOrder__File'],
|
|
814
|
+
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
815
|
+
}
|
|
816
|
+
return this._workOrders;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Access linked OrderItem records
|
|
820
|
+
* @remarks Available labels: OrderItem__File
|
|
821
|
+
* @throws Error if called on a new (unsaved) record
|
|
822
|
+
*
|
|
823
|
+
* @example
|
|
824
|
+
* ```typescript
|
|
825
|
+
* // Get all linked OrderItem records
|
|
826
|
+
* const items = await record.orderItems.list();
|
|
827
|
+
* const first = await record.orderItems.first();
|
|
828
|
+
*
|
|
829
|
+
* // Filter by label
|
|
830
|
+
* const specific = await record.orderItems.first({ label: 'OrderItem__File' });
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
833
|
+
get orderItems() {
|
|
834
|
+
var _a;
|
|
835
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
836
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
837
|
+
if (!this._orderItems) {
|
|
838
|
+
this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
839
|
+
sourceEntity: 'SchemaModule:File',
|
|
840
|
+
targetEntity: 'OrderModule:OrderItem',
|
|
841
|
+
targetModuleName: 'OrderModule',
|
|
842
|
+
targetEntityName: 'OrderItem',
|
|
843
|
+
labels: ['OrderItem__File'],
|
|
844
|
+
}, OrderItemRecord_1.OrderItemRecord);
|
|
845
|
+
}
|
|
846
|
+
return this._orderItems;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Access linked KnowledgeArticle records
|
|
850
|
+
* @remarks Available labels: KnowledgeArticle__File
|
|
851
|
+
* @throws Error if called on a new (unsaved) record
|
|
852
|
+
*
|
|
853
|
+
* @example
|
|
854
|
+
* ```typescript
|
|
855
|
+
* // Get all linked KnowledgeArticle records
|
|
856
|
+
* const items = await record.knowledgeArticles.list();
|
|
857
|
+
* const first = await record.knowledgeArticles.first();
|
|
858
|
+
*
|
|
859
|
+
* // Filter by label
|
|
860
|
+
* const specific = await record.knowledgeArticles.first({ label: 'KnowledgeArticle__File' });
|
|
861
|
+
* ```
|
|
862
|
+
*/
|
|
863
|
+
get knowledgeArticles() {
|
|
864
|
+
var _a;
|
|
865
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
866
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
867
|
+
if (!this._knowledgeArticles) {
|
|
868
|
+
this._knowledgeArticles = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
869
|
+
sourceEntity: 'SchemaModule:File',
|
|
870
|
+
targetEntity: 'SupportModule:KnowledgeArticle',
|
|
380
871
|
targetModuleName: 'SupportModule',
|
|
381
|
-
targetEntityName: '
|
|
382
|
-
labels: ['
|
|
383
|
-
},
|
|
872
|
+
targetEntityName: 'KnowledgeArticle',
|
|
873
|
+
labels: ['KnowledgeArticle__File'],
|
|
874
|
+
}, KnowledgeArticleRecord_1.KnowledgeArticleRecord);
|
|
384
875
|
}
|
|
385
|
-
return this.
|
|
876
|
+
return this._knowledgeArticles;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Access linked Case records
|
|
880
|
+
* @remarks Available labels: Case__File
|
|
881
|
+
* @throws Error if called on a new (unsaved) record
|
|
882
|
+
*
|
|
883
|
+
* @example
|
|
884
|
+
* ```typescript
|
|
885
|
+
* // Get all linked Case records
|
|
886
|
+
* const items = await record.cases.list();
|
|
887
|
+
* const first = await record.cases.first();
|
|
888
|
+
*
|
|
889
|
+
* // Filter by label
|
|
890
|
+
* const specific = await record.cases.first({ label: 'Case__File' });
|
|
891
|
+
* ```
|
|
892
|
+
*/
|
|
893
|
+
get cases() {
|
|
894
|
+
var _a;
|
|
895
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
896
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
897
|
+
if (!this._cases) {
|
|
898
|
+
this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
899
|
+
sourceEntity: 'SchemaModule:File',
|
|
900
|
+
targetEntity: 'SupportModule:Case',
|
|
901
|
+
targetModuleName: 'SupportModule',
|
|
902
|
+
targetEntityName: 'Case',
|
|
903
|
+
labels: ['Case__File'],
|
|
904
|
+
}, CaseRecord_1.CaseRecord);
|
|
905
|
+
}
|
|
906
|
+
return this._cases;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Access linked Activity records
|
|
910
|
+
* @remarks Available labels: Activity__File
|
|
911
|
+
* @throws Error if called on a new (unsaved) record
|
|
912
|
+
*
|
|
913
|
+
* @example
|
|
914
|
+
* ```typescript
|
|
915
|
+
* // Get all linked Activity records
|
|
916
|
+
* const items = await record.activities.list();
|
|
917
|
+
* const first = await record.activities.first();
|
|
918
|
+
*
|
|
919
|
+
* // Filter by label
|
|
920
|
+
* const specific = await record.activities.first({ label: 'Activity__File' });
|
|
921
|
+
* ```
|
|
922
|
+
*/
|
|
923
|
+
get activities() {
|
|
924
|
+
var _a;
|
|
925
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
926
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
927
|
+
if (!this._activities) {
|
|
928
|
+
this._activities = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
929
|
+
sourceEntity: 'SchemaModule:File',
|
|
930
|
+
targetEntity: 'SchemaModule:Activity',
|
|
931
|
+
targetModuleName: 'SchemaModule',
|
|
932
|
+
targetEntityName: 'Activity',
|
|
933
|
+
labels: ['Activity__File'],
|
|
934
|
+
}, ActivityRecord_1.ActivityRecord);
|
|
935
|
+
}
|
|
936
|
+
return this._activities;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Access linked OneTouchSwitch records
|
|
940
|
+
* @remarks Available labels: OneTouchSwitch_File
|
|
941
|
+
* @throws Error if called on a new (unsaved) record
|
|
942
|
+
*
|
|
943
|
+
* @example
|
|
944
|
+
* ```typescript
|
|
945
|
+
* // Get all linked OneTouchSwitch records
|
|
946
|
+
* const items = await record.oneTouchSwitches.list();
|
|
947
|
+
* const first = await record.oneTouchSwitches.first();
|
|
948
|
+
*
|
|
949
|
+
* // Filter by label
|
|
950
|
+
* const specific = await record.oneTouchSwitches.first({ label: 'OneTouchSwitch_File' });
|
|
951
|
+
* ```
|
|
952
|
+
*/
|
|
953
|
+
get oneTouchSwitches() {
|
|
954
|
+
var _a;
|
|
955
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
956
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
957
|
+
if (!this._oneTouchSwitches) {
|
|
958
|
+
this._oneTouchSwitches = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
959
|
+
sourceEntity: 'SchemaModule:File',
|
|
960
|
+
targetEntity: 'OrderModule:OneTouchSwitch',
|
|
961
|
+
targetModuleName: 'OrderModule',
|
|
962
|
+
targetEntityName: 'OneTouchSwitch',
|
|
963
|
+
labels: ['OneTouchSwitch_File'],
|
|
964
|
+
}, OneTouchSwitchRecord_1.OneTouchSwitchRecord);
|
|
965
|
+
}
|
|
966
|
+
return this._oneTouchSwitches;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Access linked RemediationRequiredReason records
|
|
970
|
+
* @remarks Available labels: RemediationRequiredReason__File
|
|
971
|
+
* @throws Error if called on a new (unsaved) record
|
|
972
|
+
*
|
|
973
|
+
* @example
|
|
974
|
+
* ```typescript
|
|
975
|
+
* // Get all linked RemediationRequiredReason records
|
|
976
|
+
* const items = await record.remediationRequiredReasons.list();
|
|
977
|
+
* const first = await record.remediationRequiredReasons.first();
|
|
978
|
+
*
|
|
979
|
+
* // Filter by label
|
|
980
|
+
* const specific = await record.remediationRequiredReasons.first({ label: 'RemediationRequiredReason__File' });
|
|
981
|
+
* ```
|
|
982
|
+
*/
|
|
983
|
+
get remediationRequiredReasons() {
|
|
984
|
+
var _a;
|
|
985
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
986
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
987
|
+
if (!this._remediationRequiredReasons) {
|
|
988
|
+
this._remediationRequiredReasons = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
989
|
+
sourceEntity: 'SchemaModule:File',
|
|
990
|
+
targetEntity: 'FieldServiceModule:RemediationRequiredReason',
|
|
991
|
+
targetModuleName: 'FieldServiceModule',
|
|
992
|
+
targetEntityName: 'RemediationRequiredReason',
|
|
993
|
+
labels: ['RemediationRequiredReason__File'],
|
|
994
|
+
}, RemediationRequiredReasonRecord_1.RemediationRequiredReasonRecord);
|
|
995
|
+
}
|
|
996
|
+
return this._remediationRequiredReasons;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Access linked Invoice records
|
|
1000
|
+
* @remarks Available labels: Invoice__File
|
|
1001
|
+
* @throws Error if called on a new (unsaved) record
|
|
1002
|
+
*
|
|
1003
|
+
* @example
|
|
1004
|
+
* ```typescript
|
|
1005
|
+
* // Get all linked Invoice records
|
|
1006
|
+
* const items = await record.invoices.list();
|
|
1007
|
+
* const first = await record.invoices.first();
|
|
1008
|
+
*
|
|
1009
|
+
* // Filter by label
|
|
1010
|
+
* const specific = await record.invoices.first({ label: 'Invoice__File' });
|
|
1011
|
+
* ```
|
|
1012
|
+
*/
|
|
1013
|
+
get invoices() {
|
|
1014
|
+
var _a;
|
|
1015
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1016
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1017
|
+
if (!this._invoices) {
|
|
1018
|
+
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1019
|
+
sourceEntity: 'SchemaModule:File',
|
|
1020
|
+
targetEntity: 'BillingModule:Invoice',
|
|
1021
|
+
targetModuleName: 'BillingModule',
|
|
1022
|
+
targetEntityName: 'Invoice',
|
|
1023
|
+
labels: ['Invoice__File'],
|
|
1024
|
+
}, InvoiceRecord_1.InvoiceRecord);
|
|
1025
|
+
}
|
|
1026
|
+
return this._invoices;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Access linked Note records
|
|
1030
|
+
* @remarks Available labels: File__Note, Note__File
|
|
1031
|
+
* @throws Error if called on a new (unsaved) record
|
|
1032
|
+
*
|
|
1033
|
+
* @example
|
|
1034
|
+
* ```typescript
|
|
1035
|
+
* // Get all linked Note records
|
|
1036
|
+
* const items = await record.notes.list();
|
|
1037
|
+
* const first = await record.notes.first();
|
|
1038
|
+
*
|
|
1039
|
+
* // Filter by label
|
|
1040
|
+
* const specific = await record.notes.first({ label: 'File__Note' });
|
|
1041
|
+
* ```
|
|
1042
|
+
*/
|
|
1043
|
+
get notes() {
|
|
1044
|
+
var _a;
|
|
1045
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1046
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1047
|
+
if (!this._notes) {
|
|
1048
|
+
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1049
|
+
sourceEntity: 'SchemaModule:File',
|
|
1050
|
+
targetEntity: 'SupportModule:Note',
|
|
1051
|
+
targetModuleName: 'SupportModule',
|
|
1052
|
+
targetEntityName: 'Note',
|
|
1053
|
+
labels: ['File__Note', 'Note__File'],
|
|
1054
|
+
}, NoteRecord_1.NoteRecord);
|
|
1055
|
+
}
|
|
1056
|
+
return this._notes;
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Access linked Lead records
|
|
1060
|
+
* @remarks Available labels: Lead__File
|
|
1061
|
+
* @throws Error if called on a new (unsaved) record
|
|
1062
|
+
*
|
|
1063
|
+
* @example
|
|
1064
|
+
* ```typescript
|
|
1065
|
+
* // Get all linked Lead records
|
|
1066
|
+
* const items = await record.leads.list();
|
|
1067
|
+
* const first = await record.leads.first();
|
|
1068
|
+
*
|
|
1069
|
+
* // Filter by label
|
|
1070
|
+
* const specific = await record.leads.first({ label: 'Lead__File' });
|
|
1071
|
+
* ```
|
|
1072
|
+
*/
|
|
1073
|
+
get leads() {
|
|
1074
|
+
var _a;
|
|
1075
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1076
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1077
|
+
if (!this._leads) {
|
|
1078
|
+
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1079
|
+
sourceEntity: 'SchemaModule:File',
|
|
1080
|
+
targetEntity: 'CrmModule:Lead',
|
|
1081
|
+
targetModuleName: 'CrmModule',
|
|
1082
|
+
targetEntityName: 'Lead',
|
|
1083
|
+
labels: ['Lead__File'],
|
|
1084
|
+
}, LeadRecord_1.LeadRecord);
|
|
1085
|
+
}
|
|
1086
|
+
return this._leads;
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Access linked Account records
|
|
1090
|
+
* @remarks Available labels: Account__File
|
|
1091
|
+
* @throws Error if called on a new (unsaved) record
|
|
1092
|
+
*
|
|
1093
|
+
* @example
|
|
1094
|
+
* ```typescript
|
|
1095
|
+
* // Get all linked Account records
|
|
1096
|
+
* const items = await record.accounts.list();
|
|
1097
|
+
* const first = await record.accounts.first();
|
|
1098
|
+
*
|
|
1099
|
+
* // Filter by label
|
|
1100
|
+
* const specific = await record.accounts.first({ label: 'Account__File' });
|
|
1101
|
+
* ```
|
|
1102
|
+
*/
|
|
1103
|
+
get accounts() {
|
|
1104
|
+
var _a;
|
|
1105
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1106
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1107
|
+
if (!this._accounts) {
|
|
1108
|
+
this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1109
|
+
sourceEntity: 'SchemaModule:File',
|
|
1110
|
+
targetEntity: 'CrmModule:Account',
|
|
1111
|
+
targetModuleName: 'CrmModule',
|
|
1112
|
+
targetEntityName: 'Account',
|
|
1113
|
+
labels: ['Account__File'],
|
|
1114
|
+
}, AccountRecord_1.AccountRecord);
|
|
1115
|
+
}
|
|
1116
|
+
return this._accounts;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Access linked PaymentMethod records
|
|
1120
|
+
* @remarks Available labels: PaymentMethod__File
|
|
1121
|
+
* @throws Error if called on a new (unsaved) record
|
|
1122
|
+
*
|
|
1123
|
+
* @example
|
|
1124
|
+
* ```typescript
|
|
1125
|
+
* // Get all linked PaymentMethod records
|
|
1126
|
+
* const items = await record.paymentMethods.list();
|
|
1127
|
+
* const first = await record.paymentMethods.first();
|
|
1128
|
+
*
|
|
1129
|
+
* // Filter by label
|
|
1130
|
+
* const specific = await record.paymentMethods.first({ label: 'PaymentMethod__File' });
|
|
1131
|
+
* ```
|
|
1132
|
+
*/
|
|
1133
|
+
get paymentMethods() {
|
|
1134
|
+
var _a;
|
|
1135
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1136
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1137
|
+
if (!this._paymentMethods) {
|
|
1138
|
+
this._paymentMethods = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1139
|
+
sourceEntity: 'SchemaModule:File',
|
|
1140
|
+
targetEntity: 'BillingModule:PaymentMethod',
|
|
1141
|
+
targetModuleName: 'BillingModule',
|
|
1142
|
+
targetEntityName: 'PaymentMethod',
|
|
1143
|
+
labels: ['PaymentMethod__File'],
|
|
1144
|
+
}, PaymentMethodRecord_1.PaymentMethodRecord);
|
|
1145
|
+
}
|
|
1146
|
+
return this._paymentMethods;
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Access linked ContractBuyOut records
|
|
1150
|
+
* @remarks Available labels: ContractBuyOut__File
|
|
1151
|
+
* @throws Error if called on a new (unsaved) record
|
|
1152
|
+
*
|
|
1153
|
+
* @example
|
|
1154
|
+
* ```typescript
|
|
1155
|
+
* // Get all linked ContractBuyOut records
|
|
1156
|
+
* const items = await record.contractBuyOuts.list();
|
|
1157
|
+
* const first = await record.contractBuyOuts.first();
|
|
1158
|
+
*
|
|
1159
|
+
* // Filter by label
|
|
1160
|
+
* const specific = await record.contractBuyOuts.first({ label: 'ContractBuyOut__File' });
|
|
1161
|
+
* ```
|
|
1162
|
+
*/
|
|
1163
|
+
get contractBuyOuts() {
|
|
1164
|
+
var _a;
|
|
1165
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1166
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1167
|
+
if (!this._contractBuyOuts) {
|
|
1168
|
+
this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1169
|
+
sourceEntity: 'SchemaModule:File',
|
|
1170
|
+
targetEntity: 'OrderModule:ContractBuyOut',
|
|
1171
|
+
targetModuleName: 'OrderModule',
|
|
1172
|
+
targetEntityName: 'ContractBuyOut',
|
|
1173
|
+
labels: ['ContractBuyOut__File'],
|
|
1174
|
+
}, ContractBuyOutRecord_1.ContractBuyOutRecord);
|
|
1175
|
+
}
|
|
1176
|
+
return this._contractBuyOuts;
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Access linked SiteSpecificRiskAssessmentOutcomeForm records
|
|
1180
|
+
* @remarks Available labels: SiteSpecificRiskAssessmentOutcomeForm__File
|
|
1181
|
+
* @throws Error if called on a new (unsaved) record
|
|
1182
|
+
*
|
|
1183
|
+
* @example
|
|
1184
|
+
* ```typescript
|
|
1185
|
+
* // Get all linked SiteSpecificRiskAssessmentOutcomeForm records
|
|
1186
|
+
* const items = await record.siteSpecificRiskAssessmentOutcomeForms.list();
|
|
1187
|
+
* const first = await record.siteSpecificRiskAssessmentOutcomeForms.first();
|
|
1188
|
+
*
|
|
1189
|
+
* // Filter by label
|
|
1190
|
+
* const specific = await record.siteSpecificRiskAssessmentOutcomeForms.first({ label: 'SiteSpecificRiskAssessmentOutcomeForm__File' });
|
|
1191
|
+
* ```
|
|
1192
|
+
*/
|
|
1193
|
+
get siteSpecificRiskAssessmentOutcomeForms() {
|
|
1194
|
+
var _a;
|
|
1195
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1196
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1197
|
+
if (!this._siteSpecificRiskAssessmentOutcomeForms) {
|
|
1198
|
+
this._siteSpecificRiskAssessmentOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1199
|
+
sourceEntity: 'SchemaModule:File',
|
|
1200
|
+
targetEntity: 'FieldServiceModule:SiteSpecificRiskAssessmentOutcomeForm',
|
|
1201
|
+
targetModuleName: 'FieldServiceModule',
|
|
1202
|
+
targetEntityName: 'SiteSpecificRiskAssessmentOutcomeForm',
|
|
1203
|
+
labels: ['SiteSpecificRiskAssessmentOutcomeForm__File'],
|
|
1204
|
+
}, SiteSpecificRiskAssessmentOutcomeFormRecord_1.SiteSpecificRiskAssessmentOutcomeFormRecord);
|
|
1205
|
+
}
|
|
1206
|
+
return this._siteSpecificRiskAssessmentOutcomeForms;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Access linked RemediationOutcomeForm records
|
|
1210
|
+
* @remarks Available labels: RemediationOutcomeForm_File
|
|
1211
|
+
* @throws Error if called on a new (unsaved) record
|
|
1212
|
+
*
|
|
1213
|
+
* @example
|
|
1214
|
+
* ```typescript
|
|
1215
|
+
* // Get all linked RemediationOutcomeForm records
|
|
1216
|
+
* const items = await record.remediationOutcomeForms.list();
|
|
1217
|
+
* const first = await record.remediationOutcomeForms.first();
|
|
1218
|
+
*
|
|
1219
|
+
* // Filter by label
|
|
1220
|
+
* const specific = await record.remediationOutcomeForms.first({ label: 'RemediationOutcomeForm_File' });
|
|
1221
|
+
* ```
|
|
1222
|
+
*/
|
|
1223
|
+
get remediationOutcomeForms() {
|
|
1224
|
+
var _a;
|
|
1225
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1226
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1227
|
+
if (!this._remediationOutcomeForms) {
|
|
1228
|
+
this._remediationOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1229
|
+
sourceEntity: 'SchemaModule:File',
|
|
1230
|
+
targetEntity: 'FieldServiceModule:RemediationOutcomeForm',
|
|
1231
|
+
targetModuleName: 'FieldServiceModule',
|
|
1232
|
+
targetEntityName: 'RemediationOutcomeForm',
|
|
1233
|
+
labels: ['RemediationOutcomeForm_File'],
|
|
1234
|
+
}, RemediationOutcomeFormRecord_1.RemediationOutcomeFormRecord);
|
|
1235
|
+
}
|
|
1236
|
+
return this._remediationOutcomeForms;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Access linked Order records
|
|
1240
|
+
* @remarks Available labels: Order__File
|
|
1241
|
+
* @throws Error if called on a new (unsaved) record
|
|
1242
|
+
*
|
|
1243
|
+
* @example
|
|
1244
|
+
* ```typescript
|
|
1245
|
+
* // Get all linked Order records
|
|
1246
|
+
* const items = await record.orders.list();
|
|
1247
|
+
* const first = await record.orders.first();
|
|
1248
|
+
*
|
|
1249
|
+
* // Filter by label
|
|
1250
|
+
* const specific = await record.orders.first({ label: 'Order__File' });
|
|
1251
|
+
* ```
|
|
1252
|
+
*/
|
|
1253
|
+
get orders() {
|
|
1254
|
+
var _a;
|
|
1255
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1256
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1257
|
+
if (!this._orders) {
|
|
1258
|
+
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1259
|
+
sourceEntity: 'SchemaModule:File',
|
|
1260
|
+
targetEntity: 'OrderModule:Order',
|
|
1261
|
+
targetModuleName: 'OrderModule',
|
|
1262
|
+
targetEntityName: 'Order',
|
|
1263
|
+
labels: ['Order__File'],
|
|
1264
|
+
}, OrderRecord_1.OrderRecord);
|
|
1265
|
+
}
|
|
1266
|
+
return this._orders;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Access linked Call records
|
|
1270
|
+
* @remarks Available labels: Call__File
|
|
1271
|
+
* @throws Error if called on a new (unsaved) record
|
|
1272
|
+
*
|
|
1273
|
+
* @example
|
|
1274
|
+
* ```typescript
|
|
1275
|
+
* // Get all linked Call records
|
|
1276
|
+
* const items = await record.calls.list();
|
|
1277
|
+
* const first = await record.calls.first();
|
|
1278
|
+
*
|
|
1279
|
+
* // Filter by label
|
|
1280
|
+
* const specific = await record.calls.first({ label: 'Call__File' });
|
|
1281
|
+
* ```
|
|
1282
|
+
*/
|
|
1283
|
+
get calls() {
|
|
1284
|
+
var _a;
|
|
1285
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1286
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1287
|
+
if (!this._calls) {
|
|
1288
|
+
this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1289
|
+
sourceEntity: 'SchemaModule:File',
|
|
1290
|
+
targetEntity: 'NotificationModule:Call',
|
|
1291
|
+
targetModuleName: 'NotificationModule',
|
|
1292
|
+
targetEntityName: 'Call',
|
|
1293
|
+
labels: ['Call__File'],
|
|
1294
|
+
}, CallRecord_1.CallRecord);
|
|
1295
|
+
}
|
|
1296
|
+
return this._calls;
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Access linked OhExternalAudit records
|
|
1300
|
+
* @remarks Available labels: OhExternalAudit_File
|
|
1301
|
+
* @throws Error if called on a new (unsaved) record
|
|
1302
|
+
*
|
|
1303
|
+
* @example
|
|
1304
|
+
* ```typescript
|
|
1305
|
+
* // Get all linked OhExternalAudit records
|
|
1306
|
+
* const items = await record.ohExternalAudits.list();
|
|
1307
|
+
* const first = await record.ohExternalAudits.first();
|
|
1308
|
+
*
|
|
1309
|
+
* // Filter by label
|
|
1310
|
+
* const specific = await record.ohExternalAudits.first({ label: 'OhExternalAudit_File' });
|
|
1311
|
+
* ```
|
|
1312
|
+
*/
|
|
1313
|
+
get ohExternalAudits() {
|
|
1314
|
+
var _a;
|
|
1315
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1316
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1317
|
+
if (!this._ohExternalAudits) {
|
|
1318
|
+
this._ohExternalAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1319
|
+
sourceEntity: 'SchemaModule:File',
|
|
1320
|
+
targetEntity: 'FieldServiceModule:OhExternalAudit',
|
|
1321
|
+
targetModuleName: 'FieldServiceModule',
|
|
1322
|
+
targetEntityName: 'OhExternalAudit',
|
|
1323
|
+
labels: ['OhExternalAudit_File'],
|
|
1324
|
+
}, OhExternalAuditRecord_1.OhExternalAuditRecord);
|
|
1325
|
+
}
|
|
1326
|
+
return this._ohExternalAudits;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Access linked CustomerDeviceOnt records
|
|
1330
|
+
* @remarks Available labels: CustomerDeviceOnt__File
|
|
1331
|
+
* @throws Error if called on a new (unsaved) record
|
|
1332
|
+
*
|
|
1333
|
+
* @example
|
|
1334
|
+
* ```typescript
|
|
1335
|
+
* // Get all linked CustomerDeviceOnt records
|
|
1336
|
+
* const items = await record.customerDeviceOnts.list();
|
|
1337
|
+
* const first = await record.customerDeviceOnts.first();
|
|
1338
|
+
*
|
|
1339
|
+
* // Filter by label
|
|
1340
|
+
* const specific = await record.customerDeviceOnts.first({ label: 'CustomerDeviceOnt__File' });
|
|
1341
|
+
* ```
|
|
1342
|
+
*/
|
|
1343
|
+
get customerDeviceOnts() {
|
|
1344
|
+
var _a;
|
|
1345
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1346
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1347
|
+
if (!this._customerDeviceOnts) {
|
|
1348
|
+
this._customerDeviceOnts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1349
|
+
sourceEntity: 'SchemaModule:File',
|
|
1350
|
+
targetEntity: 'ServiceModule:CustomerDeviceOnt',
|
|
1351
|
+
targetModuleName: 'ServiceModule',
|
|
1352
|
+
targetEntityName: 'CustomerDeviceOnt',
|
|
1353
|
+
labels: ['CustomerDeviceOnt__File'],
|
|
1354
|
+
}, CustomerDeviceOntRecord_1.CustomerDeviceOntRecord);
|
|
1355
|
+
}
|
|
1356
|
+
return this._customerDeviceOnts;
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Access linked BillingAdjustment records
|
|
1360
|
+
* @remarks Available labels: BillingAdjustment__File
|
|
1361
|
+
* @throws Error if called on a new (unsaved) record
|
|
1362
|
+
*
|
|
1363
|
+
* @example
|
|
1364
|
+
* ```typescript
|
|
1365
|
+
* // Get all linked BillingAdjustment records
|
|
1366
|
+
* const items = await record.billingAdjustments.list();
|
|
1367
|
+
* const first = await record.billingAdjustments.first();
|
|
1368
|
+
*
|
|
1369
|
+
* // Filter by label
|
|
1370
|
+
* const specific = await record.billingAdjustments.first({ label: 'BillingAdjustment__File' });
|
|
1371
|
+
* ```
|
|
1372
|
+
*/
|
|
1373
|
+
get billingAdjustments() {
|
|
1374
|
+
var _a;
|
|
1375
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1376
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1377
|
+
if (!this._billingAdjustments) {
|
|
1378
|
+
this._billingAdjustments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1379
|
+
sourceEntity: 'SchemaModule:File',
|
|
1380
|
+
targetEntity: 'OrderModule:BillingAdjustment',
|
|
1381
|
+
targetModuleName: 'OrderModule',
|
|
1382
|
+
targetEntityName: 'BillingAdjustment',
|
|
1383
|
+
labels: ['BillingAdjustment__File'],
|
|
1384
|
+
}, BillingAdjustmentRecord_1.BillingAdjustmentRecord);
|
|
1385
|
+
}
|
|
1386
|
+
return this._billingAdjustments;
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Access linked Contact records
|
|
1390
|
+
* @remarks Available labels: Contact__File
|
|
1391
|
+
* @throws Error if called on a new (unsaved) record
|
|
1392
|
+
*
|
|
1393
|
+
* @example
|
|
1394
|
+
* ```typescript
|
|
1395
|
+
* // Get all linked Contact records
|
|
1396
|
+
* const items = await record.contacts.list();
|
|
1397
|
+
* const first = await record.contacts.first();
|
|
1398
|
+
*
|
|
1399
|
+
* // Filter by label
|
|
1400
|
+
* const specific = await record.contacts.first({ label: 'Contact__File' });
|
|
1401
|
+
* ```
|
|
1402
|
+
*/
|
|
1403
|
+
get contacts() {
|
|
1404
|
+
var _a;
|
|
1405
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1406
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1407
|
+
if (!this._contacts) {
|
|
1408
|
+
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1409
|
+
sourceEntity: 'SchemaModule:File',
|
|
1410
|
+
targetEntity: 'CrmModule:Contact',
|
|
1411
|
+
targetModuleName: 'CrmModule',
|
|
1412
|
+
targetEntityName: 'Contact',
|
|
1413
|
+
labels: ['Contact__File'],
|
|
1414
|
+
}, ContactRecord_1.ContactRecord);
|
|
1415
|
+
}
|
|
1416
|
+
return this._contacts;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Access linked Message records
|
|
1420
|
+
* @remarks Available labels: Message_File
|
|
1421
|
+
* @throws Error if called on a new (unsaved) record
|
|
1422
|
+
*
|
|
1423
|
+
* @example
|
|
1424
|
+
* ```typescript
|
|
1425
|
+
* // Get all linked Message records
|
|
1426
|
+
* const items = await record.messages.list();
|
|
1427
|
+
* const first = await record.messages.first();
|
|
1428
|
+
*
|
|
1429
|
+
* // Filter by label
|
|
1430
|
+
* const specific = await record.messages.first({ label: 'Message_File' });
|
|
1431
|
+
* ```
|
|
1432
|
+
*/
|
|
1433
|
+
get messages() {
|
|
1434
|
+
var _a;
|
|
1435
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1436
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1437
|
+
if (!this._messages) {
|
|
1438
|
+
this._messages = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1439
|
+
sourceEntity: 'SchemaModule:File',
|
|
1440
|
+
targetEntity: 'NotificationModule:Message',
|
|
1441
|
+
targetModuleName: 'NotificationModule',
|
|
1442
|
+
targetEntityName: 'Message',
|
|
1443
|
+
labels: ['Message_File'],
|
|
1444
|
+
}, MessageRecord_1.MessageRecord);
|
|
1445
|
+
}
|
|
1446
|
+
return this._messages;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Access linked Email records
|
|
1450
|
+
* @remarks Available labels: Attachments
|
|
1451
|
+
* @throws Error if called on a new (unsaved) record
|
|
1452
|
+
*
|
|
1453
|
+
* @example
|
|
1454
|
+
* ```typescript
|
|
1455
|
+
* // Get all linked Email records
|
|
1456
|
+
* const items = await record.emails.list();
|
|
1457
|
+
* const first = await record.emails.first();
|
|
1458
|
+
*
|
|
1459
|
+
* // Filter by label
|
|
1460
|
+
* const specific = await record.emails.first({ label: 'Attachments' });
|
|
1461
|
+
* ```
|
|
1462
|
+
*/
|
|
1463
|
+
get emails() {
|
|
1464
|
+
var _a;
|
|
1465
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1466
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1467
|
+
if (!this._emails) {
|
|
1468
|
+
this._emails = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1469
|
+
sourceEntity: 'SchemaModule:File',
|
|
1470
|
+
targetEntity: 'NotificationModule:Email',
|
|
1471
|
+
targetModuleName: 'NotificationModule',
|
|
1472
|
+
targetEntityName: 'Email',
|
|
1473
|
+
labels: ['Attachments'],
|
|
1474
|
+
}, EmailRecord_1.EmailRecord);
|
|
1475
|
+
}
|
|
1476
|
+
return this._emails;
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Access linked PgDirectDebitFile records
|
|
1480
|
+
* @remarks Available labels: PgDirectDebitFile__File
|
|
1481
|
+
* @throws Error if called on a new (unsaved) record
|
|
1482
|
+
*
|
|
1483
|
+
* @example
|
|
1484
|
+
* ```typescript
|
|
1485
|
+
* // Get all linked PgDirectDebitFile records
|
|
1486
|
+
* const items = await record.pgDirectDebitFiles.list();
|
|
1487
|
+
* const first = await record.pgDirectDebitFiles.first();
|
|
1488
|
+
*
|
|
1489
|
+
* // Filter by label
|
|
1490
|
+
* const specific = await record.pgDirectDebitFiles.first({ label: 'PgDirectDebitFile__File' });
|
|
1491
|
+
* ```
|
|
1492
|
+
*/
|
|
1493
|
+
get pgDirectDebitFiles() {
|
|
1494
|
+
var _a;
|
|
1495
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1496
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1497
|
+
if (!this._pgDirectDebitFiles) {
|
|
1498
|
+
this._pgDirectDebitFiles = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1499
|
+
sourceEntity: 'SchemaModule:File',
|
|
1500
|
+
targetEntity: 'BillingModule:PgDirectDebitFile',
|
|
1501
|
+
targetModuleName: 'BillingModule',
|
|
1502
|
+
targetEntityName: 'PgDirectDebitFile',
|
|
1503
|
+
labels: ['PgDirectDebitFile__File'],
|
|
1504
|
+
}, PgDirectDebitFileRecord_1.PgDirectDebitFileRecord);
|
|
1505
|
+
}
|
|
1506
|
+
return this._pgDirectDebitFiles;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Access linked YfWifiSurvey records
|
|
1510
|
+
* @remarks Available labels: YfWifiSurvey__File
|
|
1511
|
+
* @throws Error if called on a new (unsaved) record
|
|
1512
|
+
*
|
|
1513
|
+
* @example
|
|
1514
|
+
* ```typescript
|
|
1515
|
+
* // Get all linked YfWifiSurvey records
|
|
1516
|
+
* const items = await record.yfWifiSurveys.list();
|
|
1517
|
+
* const first = await record.yfWifiSurveys.first();
|
|
1518
|
+
*
|
|
1519
|
+
* // Filter by label
|
|
1520
|
+
* const specific = await record.yfWifiSurveys.first({ label: 'YfWifiSurvey__File' });
|
|
1521
|
+
* ```
|
|
1522
|
+
*/
|
|
1523
|
+
get yfWifiSurveys() {
|
|
1524
|
+
var _a;
|
|
1525
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1526
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1527
|
+
if (!this._yfWifiSurveys) {
|
|
1528
|
+
this._yfWifiSurveys = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1529
|
+
sourceEntity: 'SchemaModule:File',
|
|
1530
|
+
targetEntity: 'FieldServiceModule:YfWifiSurvey',
|
|
1531
|
+
targetModuleName: 'FieldServiceModule',
|
|
1532
|
+
targetEntityName: 'YfWifiSurvey',
|
|
1533
|
+
labels: ['YfWifiSurvey__File'],
|
|
1534
|
+
}, YfWifiSurveyRecord_1.YfWifiSurveyRecord);
|
|
1535
|
+
}
|
|
1536
|
+
return this._yfWifiSurveys;
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* Access linked YfFieldVisitOutcomeForm records
|
|
1540
|
+
* @remarks Available labels: YfFieldVisitOutcomeForm__File
|
|
1541
|
+
* @throws Error if called on a new (unsaved) record
|
|
1542
|
+
*
|
|
1543
|
+
* @example
|
|
1544
|
+
* ```typescript
|
|
1545
|
+
* // Get all linked YfFieldVisitOutcomeForm records
|
|
1546
|
+
* const items = await record.yfFieldVisitOutcomeForms.list();
|
|
1547
|
+
* const first = await record.yfFieldVisitOutcomeForms.first();
|
|
1548
|
+
*
|
|
1549
|
+
* // Filter by label
|
|
1550
|
+
* const specific = await record.yfFieldVisitOutcomeForms.first({ label: 'YfFieldVisitOutcomeForm__File' });
|
|
1551
|
+
* ```
|
|
1552
|
+
*/
|
|
1553
|
+
get yfFieldVisitOutcomeForms() {
|
|
1554
|
+
var _a;
|
|
1555
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1556
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1557
|
+
if (!this._yfFieldVisitOutcomeForms) {
|
|
1558
|
+
this._yfFieldVisitOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1559
|
+
sourceEntity: 'SchemaModule:File',
|
|
1560
|
+
targetEntity: 'FieldServiceModule:YfFieldVisitOutcomeForm',
|
|
1561
|
+
targetModuleName: 'FieldServiceModule',
|
|
1562
|
+
targetEntityName: 'YfFieldVisitOutcomeForm',
|
|
1563
|
+
labels: ['YfFieldVisitOutcomeForm__File'],
|
|
1564
|
+
}, YfFieldVisitOutcomeFormRecord_1.YfFieldVisitOutcomeFormRecord);
|
|
1565
|
+
}
|
|
1566
|
+
return this._yfFieldVisitOutcomeForms;
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Access linked Document records
|
|
1570
|
+
* @remarks Available labels: Document__File
|
|
1571
|
+
* @throws Error if called on a new (unsaved) record
|
|
1572
|
+
*
|
|
1573
|
+
* @example
|
|
1574
|
+
* ```typescript
|
|
1575
|
+
* // Get all linked Document records
|
|
1576
|
+
* const items = await record.documents.list();
|
|
1577
|
+
* const first = await record.documents.first();
|
|
1578
|
+
*
|
|
1579
|
+
* // Filter by label
|
|
1580
|
+
* const specific = await record.documents.first({ label: 'Document__File' });
|
|
1581
|
+
* ```
|
|
1582
|
+
*/
|
|
1583
|
+
get documents() {
|
|
1584
|
+
var _a;
|
|
1585
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1586
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1587
|
+
if (!this._documents) {
|
|
1588
|
+
this._documents = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1589
|
+
sourceEntity: 'SchemaModule:File',
|
|
1590
|
+
targetEntity: 'AiModule:Document',
|
|
1591
|
+
targetModuleName: 'AiModule',
|
|
1592
|
+
targetEntityName: 'Document',
|
|
1593
|
+
labels: ['Document__File'],
|
|
1594
|
+
}, DocumentRecord_1.DocumentRecord);
|
|
1595
|
+
}
|
|
1596
|
+
return this._documents;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Access linked DocumentProcessing records
|
|
1600
|
+
* @remarks Available labels: DocumentProcessing__File
|
|
1601
|
+
* @throws Error if called on a new (unsaved) record
|
|
1602
|
+
*
|
|
1603
|
+
* @example
|
|
1604
|
+
* ```typescript
|
|
1605
|
+
* // Get all linked DocumentProcessing records
|
|
1606
|
+
* const items = await record.documentProcessings.list();
|
|
1607
|
+
* const first = await record.documentProcessings.first();
|
|
1608
|
+
*
|
|
1609
|
+
* // Filter by label
|
|
1610
|
+
* const specific = await record.documentProcessings.first({ label: 'DocumentProcessing__File' });
|
|
1611
|
+
* ```
|
|
1612
|
+
*/
|
|
1613
|
+
get documentProcessings() {
|
|
1614
|
+
var _a;
|
|
1615
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1616
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1617
|
+
if (!this._documentProcessings) {
|
|
1618
|
+
this._documentProcessings = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1619
|
+
sourceEntity: 'SchemaModule:File',
|
|
1620
|
+
targetEntity: 'AiModule:DocumentProcessing',
|
|
1621
|
+
targetModuleName: 'AiModule',
|
|
1622
|
+
targetEntityName: 'DocumentProcessing',
|
|
1623
|
+
labels: ['DocumentProcessing__File'],
|
|
1624
|
+
}, DocumentProcessingRecord_1.DocumentProcessingRecord);
|
|
1625
|
+
}
|
|
1626
|
+
return this._documentProcessings;
|
|
386
1627
|
}
|
|
387
1628
|
// ============================================
|
|
388
1629
|
// LINK MANAGEMENT
|
|
@@ -463,10 +1704,90 @@ exports.FileRecord = FileRecord;
|
|
|
463
1704
|
// ============================================
|
|
464
1705
|
// TYPED LINK ACCESSORS
|
|
465
1706
|
// ============================================
|
|
466
|
-
/** Valid labels for
|
|
467
|
-
FileRecord.
|
|
1707
|
+
/** Valid labels for OverlayRealA55 associations */
|
|
1708
|
+
FileRecord.overlayRealA55sLabels = ['OverlayRealA55_File'];
|
|
1709
|
+
/** Valid labels for Appointment associations */
|
|
1710
|
+
FileRecord.appointmentsLabels = ['Appointment__File'];
|
|
1711
|
+
/** Valid labels for UgExternalAudit associations */
|
|
1712
|
+
FileRecord.ugExternalAuditsLabels = ['UgExternalAudit_File'];
|
|
1713
|
+
/** Valid labels for BillingRequest associations */
|
|
1714
|
+
FileRecord.billingRequestsLabels = ['BillingRequest__File'];
|
|
1715
|
+
/** Valid labels for Transaction associations */
|
|
1716
|
+
FileRecord.transactionsLabels = ['Transaction__File'];
|
|
1717
|
+
/** Valid labels for CreditNote associations */
|
|
1718
|
+
FileRecord.creditNotesLabels = ['CreditNote__File'];
|
|
1719
|
+
/** Valid labels for Address associations */
|
|
1720
|
+
FileRecord.addressesLabels = ['Address__File'];
|
|
1721
|
+
/** Valid labels for ChangeReason associations */
|
|
1722
|
+
FileRecord.changeReasonsLabels = ['ChangeReason__File'];
|
|
1723
|
+
/** Valid labels for Discount associations */
|
|
1724
|
+
FileRecord.discountsLabels = ['Discount__File'];
|
|
1725
|
+
/** Valid labels for PaymentMethodRefund associations */
|
|
1726
|
+
FileRecord.paymentMethodRefundsLabels = ['PaymentMethodRefund__File'];
|
|
1727
|
+
/** Valid labels for ServiceAppointment associations */
|
|
1728
|
+
FileRecord.serviceAppointmentsLabels = ['ServiceAppointment__File'];
|
|
1729
|
+
/** Valid labels for CustomerDeviceRouter associations */
|
|
1730
|
+
FileRecord.customerDeviceRoutersLabels = ['CustomerDeviceRouter__File'];
|
|
1731
|
+
/** Valid labels for Visit associations */
|
|
1732
|
+
FileRecord.visitsLabels = ['Visit__File'];
|
|
1733
|
+
/** Valid labels for WayleaveAudit associations */
|
|
1734
|
+
FileRecord.wayleaveAuditsLabels = ['WayleaveAudit_File'];
|
|
1735
|
+
/** Valid labels for WorkOrder associations */
|
|
1736
|
+
FileRecord.workOrdersLabels = ['WorkOrder__File'];
|
|
1737
|
+
/** Valid labels for OrderItem associations */
|
|
1738
|
+
FileRecord.orderItemsLabels = ['OrderItem__File'];
|
|
1739
|
+
/** Valid labels for KnowledgeArticle associations */
|
|
1740
|
+
FileRecord.knowledgeArticlesLabels = ['KnowledgeArticle__File'];
|
|
1741
|
+
/** Valid labels for Case associations */
|
|
1742
|
+
FileRecord.casesLabels = ['Case__File'];
|
|
1743
|
+
/** Valid labels for Activity associations */
|
|
1744
|
+
FileRecord.activitiesLabels = ['Activity__File'];
|
|
1745
|
+
/** Valid labels for OneTouchSwitch associations */
|
|
1746
|
+
FileRecord.oneTouchSwitchesLabels = ['OneTouchSwitch_File'];
|
|
1747
|
+
/** Valid labels for RemediationRequiredReason associations */
|
|
1748
|
+
FileRecord.remediationRequiredReasonsLabels = ['RemediationRequiredReason__File'];
|
|
1749
|
+
/** Valid labels for Invoice associations */
|
|
1750
|
+
FileRecord.invoicesLabels = ['Invoice__File'];
|
|
468
1751
|
/** Valid labels for Note associations */
|
|
469
|
-
FileRecord.notesLabels = ['File__Note'];
|
|
1752
|
+
FileRecord.notesLabels = ['File__Note', 'Note__File'];
|
|
1753
|
+
/** Valid labels for Lead associations */
|
|
1754
|
+
FileRecord.leadsLabels = ['Lead__File'];
|
|
1755
|
+
/** Valid labels for Account associations */
|
|
1756
|
+
FileRecord.accountsLabels = ['Account__File'];
|
|
1757
|
+
/** Valid labels for PaymentMethod associations */
|
|
1758
|
+
FileRecord.paymentMethodsLabels = ['PaymentMethod__File'];
|
|
1759
|
+
/** Valid labels for ContractBuyOut associations */
|
|
1760
|
+
FileRecord.contractBuyOutsLabels = ['ContractBuyOut__File'];
|
|
1761
|
+
/** Valid labels for SiteSpecificRiskAssessmentOutcomeForm associations */
|
|
1762
|
+
FileRecord.siteSpecificRiskAssessmentOutcomeFormsLabels = ['SiteSpecificRiskAssessmentOutcomeForm__File'];
|
|
1763
|
+
/** Valid labels for RemediationOutcomeForm associations */
|
|
1764
|
+
FileRecord.remediationOutcomeFormsLabels = ['RemediationOutcomeForm_File'];
|
|
1765
|
+
/** Valid labels for Order associations */
|
|
1766
|
+
FileRecord.ordersLabels = ['Order__File'];
|
|
1767
|
+
/** Valid labels for Call associations */
|
|
1768
|
+
FileRecord.callsLabels = ['Call__File'];
|
|
1769
|
+
/** Valid labels for OhExternalAudit associations */
|
|
1770
|
+
FileRecord.ohExternalAuditsLabels = ['OhExternalAudit_File'];
|
|
1771
|
+
/** Valid labels for CustomerDeviceOnt associations */
|
|
1772
|
+
FileRecord.customerDeviceOntsLabels = ['CustomerDeviceOnt__File'];
|
|
1773
|
+
/** Valid labels for BillingAdjustment associations */
|
|
1774
|
+
FileRecord.billingAdjustmentsLabels = ['BillingAdjustment__File'];
|
|
1775
|
+
/** Valid labels for Contact associations */
|
|
1776
|
+
FileRecord.contactsLabels = ['Contact__File'];
|
|
1777
|
+
/** Valid labels for Message associations */
|
|
1778
|
+
FileRecord.messagesLabels = ['Message_File'];
|
|
1779
|
+
/** Valid labels for Email associations */
|
|
1780
|
+
FileRecord.emailsLabels = ['Attachments'];
|
|
1781
|
+
/** Valid labels for PgDirectDebitFile associations */
|
|
1782
|
+
FileRecord.pgDirectDebitFilesLabels = ['PgDirectDebitFile__File'];
|
|
1783
|
+
/** Valid labels for YfWifiSurvey associations */
|
|
1784
|
+
FileRecord.yfWifiSurveysLabels = ['YfWifiSurvey__File'];
|
|
1785
|
+
/** Valid labels for YfFieldVisitOutcomeForm associations */
|
|
1786
|
+
FileRecord.yfFieldVisitOutcomeFormsLabels = ['YfFieldVisitOutcomeForm__File'];
|
|
1787
|
+
/** Valid labels for Document associations */
|
|
1788
|
+
FileRecord.documentsLabels = ['Document__File'];
|
|
1789
|
+
/** Valid labels for DocumentProcessing associations */
|
|
1790
|
+
FileRecord.documentProcessingsLabels = ['DocumentProcessing__File'];
|
|
470
1791
|
/** Type guard to check if an object is a FileRecord */
|
|
471
1792
|
function isFileRecord(obj) {
|
|
472
1793
|
return obj instanceof FileRecord;
|