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