@d19n/youfibre-odin-sdk 2.0.305 → 2.0.307
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/README.md +10 -9
- package/dist/actions-v2/CollectCustomerDeviceRouterDto.d.ts +63 -0
- package/dist/actions-v2/CollectCustomerDeviceRouterDto.js +56 -0
- package/dist/actions-v2/CompleteServiceWorkOrderFlowDto.d.ts +135 -96
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -2
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -6
- package/dist/api-sdk-v2/UserApi.d.ts +2 -0
- package/dist/api-sdk-v2/UserApi.js +6 -0
- package/dist/api-sdk-v2/YfFieldVisitOutcomeFormApi.d.ts +2 -0
- package/dist/api-sdk-v2/YfFieldVisitOutcomeFormApi.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -2
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -6
- package/dist/db-sdk-v2/UserDb.d.ts +2 -0
- package/dist/db-sdk-v2/UserDb.js +6 -0
- package/dist/db-sdk-v2/YfFieldVisitOutcomeFormDb.d.ts +2 -0
- package/dist/db-sdk-v2/YfFieldVisitOutcomeFormDb.js +6 -0
- package/dist/entities-v2/BillingAdjustment.d.ts +1 -3
- package/dist/entities-v2/BillingAdjustment.js +1 -3
- package/dist/entities-v2/Case.d.ts +2 -1
- package/dist/entities-v2/Case.js +2 -1
- package/dist/entities-v2/CreditNote.d.ts +1 -2
- package/dist/entities-v2/CreditNote.js +1 -2
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -3
- package/dist/entities-v2/PgReportEvent.d.ts +5 -1
- package/dist/entities-v2/PgReportEvent.js +4 -0
- package/dist/entities-v2/User.d.ts +3 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +8 -0
- package/dist/entities-v2/VoiceConfiguration.js +2 -0
- package/dist/entities-v2/YfFieldVisitOutcomeForm.d.ts +149 -80
- package/dist/entities-v2/YfFieldVisitOutcomeForm.js +37 -31
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +28 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.js +37 -0
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +20 -20
- package/dist/records-v2/PaymentMethodRefundRecord.js +33 -33
- package/dist/records-v2/UserRecord.d.ts +20 -0
- package/dist/records-v2/UserRecord.js +33 -0
- package/dist/records-v2/YfFieldVisitOutcomeFormRecord.d.ts +22 -18
- package/dist/records-v2/YfFieldVisitOutcomeFormRecord.js +34 -17
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +5 -5
- package/package.json +1 -1
|
@@ -35,8 +35,8 @@ import { ContactRecord } from './ContactRecord';
|
|
|
35
35
|
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
36
36
|
import { InvoiceRecord } from './InvoiceRecord';
|
|
37
37
|
import { ActivityRecord } from './ActivityRecord';
|
|
38
|
-
import { TransactionRecord } from './TransactionRecord';
|
|
39
38
|
import { ContractBuyOutRecord } from './ContractBuyOutRecord';
|
|
39
|
+
import { TransactionRecord } from './TransactionRecord';
|
|
40
40
|
/**
|
|
41
41
|
* Builder for action execution with dryRun support
|
|
42
42
|
*
|
|
@@ -171,8 +171,8 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
171
171
|
private _workOrders?;
|
|
172
172
|
private _invoices?;
|
|
173
173
|
private _activities?;
|
|
174
|
-
private _transactions?;
|
|
175
174
|
private _contractBuyOuts?;
|
|
175
|
+
private _transactions?;
|
|
176
176
|
/**
|
|
177
177
|
* Create a record wrapper.
|
|
178
178
|
* @param record - The underlying record, or null for create operations
|
|
@@ -362,24 +362,6 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
362
362
|
* ```
|
|
363
363
|
*/
|
|
364
364
|
get activities(): RecordLinkManager<ActivityRecord, typeof PaymentMethodRefundRecord['activitiesLabels'][number]>;
|
|
365
|
-
/** Valid labels for Transaction associations */
|
|
366
|
-
static readonly transactionsLabels: readonly ["PaymentMethodRefund__Transaction"];
|
|
367
|
-
/**
|
|
368
|
-
* Access linked Transaction records
|
|
369
|
-
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
370
|
-
* @throws Error if called on a new (unsaved) record
|
|
371
|
-
*
|
|
372
|
-
* @example
|
|
373
|
-
* ```typescript
|
|
374
|
-
* // Get all linked Transaction records
|
|
375
|
-
* const items = await record.transactions.list();
|
|
376
|
-
* const first = await record.transactions.first();
|
|
377
|
-
*
|
|
378
|
-
* // Filter by label
|
|
379
|
-
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
380
|
-
* ```
|
|
381
|
-
*/
|
|
382
|
-
get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentMethodRefundRecord['transactionsLabels'][number]>;
|
|
383
365
|
/** Valid labels for ContractBuyOut associations */
|
|
384
366
|
static readonly contractBuyOutsLabels: readonly ["ContractBuyOut__PaymentMethodRefund"];
|
|
385
367
|
/**
|
|
@@ -398,6 +380,24 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
398
380
|
* ```
|
|
399
381
|
*/
|
|
400
382
|
get contractBuyOuts(): RecordLinkManager<ContractBuyOutRecord, typeof PaymentMethodRefundRecord['contractBuyOutsLabels'][number]>;
|
|
383
|
+
/** Valid labels for Transaction associations */
|
|
384
|
+
static readonly transactionsLabels: readonly ["PaymentMethodRefund__Transaction"];
|
|
385
|
+
/**
|
|
386
|
+
* Access linked Transaction records
|
|
387
|
+
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
388
|
+
* @throws Error if called on a new (unsaved) record
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```typescript
|
|
392
|
+
* // Get all linked Transaction records
|
|
393
|
+
* const items = await record.transactions.list();
|
|
394
|
+
* const first = await record.transactions.first();
|
|
395
|
+
*
|
|
396
|
+
* // Filter by label
|
|
397
|
+
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
398
|
+
* ```
|
|
399
|
+
*/
|
|
400
|
+
get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentMethodRefundRecord['transactionsLabels'][number]>;
|
|
401
401
|
/**
|
|
402
402
|
* Queue a link to be created with the next action.
|
|
403
403
|
* Works for both create and update actions.
|
|
@@ -40,8 +40,8 @@ const ContactRecord_1 = require("./ContactRecord");
|
|
|
40
40
|
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
41
41
|
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
42
42
|
const ActivityRecord_1 = require("./ActivityRecord");
|
|
43
|
-
const TransactionRecord_1 = require("./TransactionRecord");
|
|
44
43
|
const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
44
|
+
const TransactionRecord_1 = require("./TransactionRecord");
|
|
45
45
|
/**
|
|
46
46
|
* Builder for action execution with dryRun support
|
|
47
47
|
*
|
|
@@ -531,36 +531,6 @@ class PaymentMethodRefundRecord {
|
|
|
531
531
|
}
|
|
532
532
|
return this._activities;
|
|
533
533
|
}
|
|
534
|
-
/**
|
|
535
|
-
* Access linked Transaction records
|
|
536
|
-
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
537
|
-
* @throws Error if called on a new (unsaved) record
|
|
538
|
-
*
|
|
539
|
-
* @example
|
|
540
|
-
* ```typescript
|
|
541
|
-
* // Get all linked Transaction records
|
|
542
|
-
* const items = await record.transactions.list();
|
|
543
|
-
* const first = await record.transactions.first();
|
|
544
|
-
*
|
|
545
|
-
* // Filter by label
|
|
546
|
-
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
547
|
-
* ```
|
|
548
|
-
*/
|
|
549
|
-
get transactions() {
|
|
550
|
-
var _a;
|
|
551
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
552
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
553
|
-
if (!this._transactions) {
|
|
554
|
-
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
555
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
556
|
-
targetEntity: 'BillingModule:Transaction',
|
|
557
|
-
targetModuleName: 'BillingModule',
|
|
558
|
-
targetEntityName: 'Transaction',
|
|
559
|
-
labels: ['PaymentMethodRefund__Transaction'],
|
|
560
|
-
}, TransactionRecord_1.TransactionRecord);
|
|
561
|
-
}
|
|
562
|
-
return this._transactions;
|
|
563
|
-
}
|
|
564
534
|
/**
|
|
565
535
|
* Access linked ContractBuyOut records
|
|
566
536
|
* @remarks Available labels: ContractBuyOut__PaymentMethodRefund
|
|
@@ -591,6 +561,36 @@ class PaymentMethodRefundRecord {
|
|
|
591
561
|
}
|
|
592
562
|
return this._contractBuyOuts;
|
|
593
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Access linked Transaction records
|
|
566
|
+
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
567
|
+
* @throws Error if called on a new (unsaved) record
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* ```typescript
|
|
571
|
+
* // Get all linked Transaction records
|
|
572
|
+
* const items = await record.transactions.list();
|
|
573
|
+
* const first = await record.transactions.first();
|
|
574
|
+
*
|
|
575
|
+
* // Filter by label
|
|
576
|
+
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
579
|
+
get transactions() {
|
|
580
|
+
var _a;
|
|
581
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
582
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
583
|
+
if (!this._transactions) {
|
|
584
|
+
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
585
|
+
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
586
|
+
targetEntity: 'BillingModule:Transaction',
|
|
587
|
+
targetModuleName: 'BillingModule',
|
|
588
|
+
targetEntityName: 'Transaction',
|
|
589
|
+
labels: ['PaymentMethodRefund__Transaction'],
|
|
590
|
+
}, TransactionRecord_1.TransactionRecord);
|
|
591
|
+
}
|
|
592
|
+
return this._transactions;
|
|
593
|
+
}
|
|
594
594
|
// ============================================
|
|
595
595
|
// LINK MANAGEMENT
|
|
596
596
|
// ============================================
|
|
@@ -924,10 +924,10 @@ PaymentMethodRefundRecord.workOrdersLabels = ['PaymentMethodRefund__WorkOrder'];
|
|
|
924
924
|
PaymentMethodRefundRecord.invoicesLabels = ['PaymentMethodRefund__Invoice'];
|
|
925
925
|
/** Valid labels for Activity associations */
|
|
926
926
|
PaymentMethodRefundRecord.activitiesLabels = ['PaymentMethodRefund__Activity'];
|
|
927
|
-
/** Valid labels for Transaction associations */
|
|
928
|
-
PaymentMethodRefundRecord.transactionsLabels = ['PaymentMethodRefund__Transaction'];
|
|
929
927
|
/** Valid labels for ContractBuyOut associations */
|
|
930
928
|
PaymentMethodRefundRecord.contractBuyOutsLabels = ['ContractBuyOut__PaymentMethodRefund'];
|
|
929
|
+
/** Valid labels for Transaction associations */
|
|
930
|
+
PaymentMethodRefundRecord.transactionsLabels = ['PaymentMethodRefund__Transaction'];
|
|
931
931
|
/** Type guard to check if an object is a PaymentMethodRefundRecord */
|
|
932
932
|
function isPaymentMethodRefundRecord(obj) {
|
|
933
933
|
return obj instanceof PaymentMethodRefundRecord;
|
|
@@ -43,6 +43,7 @@ import { TwilioWorkerRecord } from './TwilioWorkerRecord';
|
|
|
43
43
|
import { OutboundDialCampaignRecord } from './OutboundDialCampaignRecord';
|
|
44
44
|
import { OutboundDialSessionRecord } from './OutboundDialSessionRecord';
|
|
45
45
|
import { AgentStatusRecord } from './AgentStatusRecord';
|
|
46
|
+
import { YfFieldVisitOutcomeFormRecord } from './YfFieldVisitOutcomeFormRecord';
|
|
46
47
|
/**
|
|
47
48
|
* Builder for action execution with dryRun support
|
|
48
49
|
*
|
|
@@ -126,6 +127,7 @@ export declare class UserRecord<TProps = UserProperties> {
|
|
|
126
127
|
private _outboundDialCampaigns?;
|
|
127
128
|
private _outboundDialSessions?;
|
|
128
129
|
private _agentStatuses?;
|
|
130
|
+
private _yfFieldVisitOutcomeForms?;
|
|
129
131
|
/**
|
|
130
132
|
* Create a record wrapper.
|
|
131
133
|
* @param record - The underlying record, or null for create operations
|
|
@@ -513,6 +515,24 @@ export declare class UserRecord<TProps = UserProperties> {
|
|
|
513
515
|
* ```
|
|
514
516
|
*/
|
|
515
517
|
get agentStatuses(): RecordLinkManager<AgentStatusRecord, typeof UserRecord['agentStatusesLabels'][number]>;
|
|
518
|
+
/** Valid labels for YfFieldVisitOutcomeForm associations */
|
|
519
|
+
static readonly yfFieldVisitOutcomeFormsLabels: readonly ["YfFieldVisitOutcomeForm__User"];
|
|
520
|
+
/**
|
|
521
|
+
* Access linked YfFieldVisitOutcomeForm records
|
|
522
|
+
* @remarks Available labels: YfFieldVisitOutcomeForm__User
|
|
523
|
+
* @throws Error if called on a new (unsaved) record
|
|
524
|
+
*
|
|
525
|
+
* @example
|
|
526
|
+
* ```typescript
|
|
527
|
+
* // Get all linked YfFieldVisitOutcomeForm records
|
|
528
|
+
* const items = await record.yfFieldVisitOutcomeForms.list();
|
|
529
|
+
* const first = await record.yfFieldVisitOutcomeForms.first();
|
|
530
|
+
*
|
|
531
|
+
* // Filter by label
|
|
532
|
+
* const specific = await record.yfFieldVisitOutcomeForms.first({ label: 'YfFieldVisitOutcomeForm__User' });
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
get yfFieldVisitOutcomeForms(): RecordLinkManager<YfFieldVisitOutcomeFormRecord, typeof UserRecord['yfFieldVisitOutcomeFormsLabels'][number]>;
|
|
516
536
|
/**
|
|
517
537
|
* Queue a link to be created with the next action.
|
|
518
538
|
* Works for both create and update actions.
|
|
@@ -50,6 +50,7 @@ const TwilioWorkerRecord_1 = require("./TwilioWorkerRecord");
|
|
|
50
50
|
const OutboundDialCampaignRecord_1 = require("./OutboundDialCampaignRecord");
|
|
51
51
|
const OutboundDialSessionRecord_1 = require("./OutboundDialSessionRecord");
|
|
52
52
|
const AgentStatusRecord_1 = require("./AgentStatusRecord");
|
|
53
|
+
const YfFieldVisitOutcomeFormRecord_1 = require("./YfFieldVisitOutcomeFormRecord");
|
|
53
54
|
/**
|
|
54
55
|
* Builder for action execution with dryRun support
|
|
55
56
|
*
|
|
@@ -762,6 +763,36 @@ class UserRecord {
|
|
|
762
763
|
}
|
|
763
764
|
return this._agentStatuses;
|
|
764
765
|
}
|
|
766
|
+
/**
|
|
767
|
+
* Access linked YfFieldVisitOutcomeForm records
|
|
768
|
+
* @remarks Available labels: YfFieldVisitOutcomeForm__User
|
|
769
|
+
* @throws Error if called on a new (unsaved) record
|
|
770
|
+
*
|
|
771
|
+
* @example
|
|
772
|
+
* ```typescript
|
|
773
|
+
* // Get all linked YfFieldVisitOutcomeForm records
|
|
774
|
+
* const items = await record.yfFieldVisitOutcomeForms.list();
|
|
775
|
+
* const first = await record.yfFieldVisitOutcomeForms.first();
|
|
776
|
+
*
|
|
777
|
+
* // Filter by label
|
|
778
|
+
* const specific = await record.yfFieldVisitOutcomeForms.first({ label: 'YfFieldVisitOutcomeForm__User' });
|
|
779
|
+
* ```
|
|
780
|
+
*/
|
|
781
|
+
get yfFieldVisitOutcomeForms() {
|
|
782
|
+
var _a;
|
|
783
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
784
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
785
|
+
if (!this._yfFieldVisitOutcomeForms) {
|
|
786
|
+
this._yfFieldVisitOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
787
|
+
sourceEntity: 'IdentityModule:User',
|
|
788
|
+
targetEntity: 'FieldServiceModule:YfFieldVisitOutcomeForm',
|
|
789
|
+
targetModuleName: 'FieldServiceModule',
|
|
790
|
+
targetEntityName: 'YfFieldVisitOutcomeForm',
|
|
791
|
+
labels: ['YfFieldVisitOutcomeForm__User'],
|
|
792
|
+
}, YfFieldVisitOutcomeFormRecord_1.YfFieldVisitOutcomeFormRecord);
|
|
793
|
+
}
|
|
794
|
+
return this._yfFieldVisitOutcomeForms;
|
|
795
|
+
}
|
|
765
796
|
// ============================================
|
|
766
797
|
// LINK MANAGEMENT
|
|
767
798
|
// ============================================
|
|
@@ -921,6 +952,8 @@ UserRecord.outboundDialCampaignsLabels = ['OutboundDialCampaign__User'];
|
|
|
921
952
|
UserRecord.outboundDialSessionsLabels = ['OutboundDialSession__User'];
|
|
922
953
|
/** Valid labels for AgentStatus associations */
|
|
923
954
|
UserRecord.agentStatusesLabels = ['AgentStatus__User'];
|
|
955
|
+
/** Valid labels for YfFieldVisitOutcomeForm associations */
|
|
956
|
+
UserRecord.yfFieldVisitOutcomeFormsLabels = ['YfFieldVisitOutcomeForm__User'];
|
|
924
957
|
/** Type guard to check if an object is a UserRecord */
|
|
925
958
|
function isUserRecord(obj) {
|
|
926
959
|
return obj instanceof UserRecord;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* await record.createYfFieldVisitOutcomeForm({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types:
|
|
16
|
+
* Entity Types: OUTCOME_FORM
|
|
17
17
|
*
|
|
18
18
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
19
|
*/
|
|
@@ -27,8 +27,9 @@ import { WorkOrderRecord } from './WorkOrderRecord';
|
|
|
27
27
|
import { AddressRecord } from './AddressRecord';
|
|
28
28
|
import { NoteRecord } from './NoteRecord';
|
|
29
29
|
import { FileRecord } from './FileRecord';
|
|
30
|
+
import { UserRecord } from './UserRecord';
|
|
30
31
|
/** Valid entity types for YfFieldVisitOutcomeForm */
|
|
31
|
-
export declare type YfFieldVisitOutcomeFormType = '
|
|
32
|
+
export declare type YfFieldVisitOutcomeFormType = 'OUTCOME_FORM';
|
|
32
33
|
/**
|
|
33
34
|
* Builder for action execution with dryRun support
|
|
34
35
|
*
|
|
@@ -96,6 +97,7 @@ export declare class YfFieldVisitOutcomeFormRecord<TProps = YfFieldVisitOutcomeF
|
|
|
96
97
|
private _addresses?;
|
|
97
98
|
private _notes?;
|
|
98
99
|
private _files?;
|
|
100
|
+
private _users?;
|
|
99
101
|
/**
|
|
100
102
|
* Create a record wrapper.
|
|
101
103
|
* @param record - The underlying record, or null for create operations
|
|
@@ -123,22 +125,6 @@ export declare class YfFieldVisitOutcomeFormRecord<TProps = YfFieldVisitOutcomeF
|
|
|
123
125
|
get links(): OdinRecord<TProps>['links'];
|
|
124
126
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
127
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Type guard: check if this record is of type DEFAULT
|
|
128
|
-
*
|
|
129
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
130
|
-
* giving you access to DEFAULT-specific properties.
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* ```typescript
|
|
134
|
-
* if (record.isDefault()) {
|
|
135
|
-
* // TypeScript knows record.properties is YfFieldVisitOutcomeFormProperties
|
|
136
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
137
|
-
* }
|
|
138
|
-
* ```
|
|
139
|
-
* @remarks This is the default record type
|
|
140
|
-
*/
|
|
141
|
-
isDefault(): this is YfFieldVisitOutcomeFormRecord<YfFieldVisitOutcomeFormProperties>;
|
|
142
128
|
/**
|
|
143
129
|
* Type guard: check if this record is of type OUTCOME_FORM
|
|
144
130
|
*
|
|
@@ -227,6 +213,24 @@ export declare class YfFieldVisitOutcomeFormRecord<TProps = YfFieldVisitOutcomeF
|
|
|
227
213
|
* ```
|
|
228
214
|
*/
|
|
229
215
|
get files(): RecordLinkManager<FileRecord, typeof YfFieldVisitOutcomeFormRecord['filesLabels'][number]>;
|
|
216
|
+
/** Valid labels for User associations */
|
|
217
|
+
static readonly usersLabels: readonly ["YfFieldVisitOutcomeForm__User"];
|
|
218
|
+
/**
|
|
219
|
+
* Access linked User records
|
|
220
|
+
* @remarks Available labels: YfFieldVisitOutcomeForm__User
|
|
221
|
+
* @throws Error if called on a new (unsaved) record
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```typescript
|
|
225
|
+
* // Get all linked User records
|
|
226
|
+
* const items = await record.users.list();
|
|
227
|
+
* const first = await record.users.first();
|
|
228
|
+
*
|
|
229
|
+
* // Filter by label
|
|
230
|
+
* const specific = await record.users.first({ label: 'YfFieldVisitOutcomeForm__User' });
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
get users(): RecordLinkManager<UserRecord, typeof YfFieldVisitOutcomeFormRecord['usersLabels'][number]>;
|
|
230
234
|
/**
|
|
231
235
|
* Queue a link to be created with the next action.
|
|
232
236
|
* Works for both create and update actions.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* await record.createYfFieldVisitOutcomeForm({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types:
|
|
17
|
+
* Entity Types: OUTCOME_FORM
|
|
18
18
|
*
|
|
19
19
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
20
|
*/
|
|
@@ -36,6 +36,7 @@ const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
|
36
36
|
const AddressRecord_1 = require("./AddressRecord");
|
|
37
37
|
const NoteRecord_1 = require("./NoteRecord");
|
|
38
38
|
const FileRecord_1 = require("./FileRecord");
|
|
39
|
+
const UserRecord_1 = require("./UserRecord");
|
|
39
40
|
/**
|
|
40
41
|
* Builder for action execution with dryRun support
|
|
41
42
|
*
|
|
@@ -151,22 +152,6 @@ class YfFieldVisitOutcomeFormRecord {
|
|
|
151
152
|
// ============================================
|
|
152
153
|
// TYPE GUARDS (with TypeScript type predicates)
|
|
153
154
|
// ============================================
|
|
154
|
-
/**
|
|
155
|
-
* Type guard: check if this record is of type DEFAULT
|
|
156
|
-
*
|
|
157
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
158
|
-
* giving you access to DEFAULT-specific properties.
|
|
159
|
-
*
|
|
160
|
-
* @example
|
|
161
|
-
* ```typescript
|
|
162
|
-
* if (record.isDefault()) {
|
|
163
|
-
* // TypeScript knows record.properties is YfFieldVisitOutcomeFormProperties
|
|
164
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
165
|
-
* }
|
|
166
|
-
* ```
|
|
167
|
-
* @remarks This is the default record type
|
|
168
|
-
*/
|
|
169
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
170
155
|
/**
|
|
171
156
|
* Type guard: check if this record is of type OUTCOME_FORM
|
|
172
157
|
*
|
|
@@ -303,6 +288,36 @@ class YfFieldVisitOutcomeFormRecord {
|
|
|
303
288
|
}
|
|
304
289
|
return this._files;
|
|
305
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Access linked User records
|
|
293
|
+
* @remarks Available labels: YfFieldVisitOutcomeForm__User
|
|
294
|
+
* @throws Error if called on a new (unsaved) record
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```typescript
|
|
298
|
+
* // Get all linked User records
|
|
299
|
+
* const items = await record.users.list();
|
|
300
|
+
* const first = await record.users.first();
|
|
301
|
+
*
|
|
302
|
+
* // Filter by label
|
|
303
|
+
* const specific = await record.users.first({ label: 'YfFieldVisitOutcomeForm__User' });
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
get users() {
|
|
307
|
+
var _a;
|
|
308
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
309
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
310
|
+
if (!this._users) {
|
|
311
|
+
this._users = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
312
|
+
sourceEntity: 'FieldServiceModule:YfFieldVisitOutcomeForm',
|
|
313
|
+
targetEntity: 'IdentityModule:User',
|
|
314
|
+
targetModuleName: 'IdentityModule',
|
|
315
|
+
targetEntityName: 'User',
|
|
316
|
+
labels: ['YfFieldVisitOutcomeForm__User'],
|
|
317
|
+
}, UserRecord_1.UserRecord);
|
|
318
|
+
}
|
|
319
|
+
return this._users;
|
|
320
|
+
}
|
|
306
321
|
// ============================================
|
|
307
322
|
// LINK MANAGEMENT
|
|
308
323
|
// ============================================
|
|
@@ -390,6 +405,8 @@ YfFieldVisitOutcomeFormRecord.addressesLabels = ['YfFieldVisitOutcomeForm__Addre
|
|
|
390
405
|
YfFieldVisitOutcomeFormRecord.notesLabels = ['YfFieldVisitOutcomeForm__Note'];
|
|
391
406
|
/** Valid labels for File associations */
|
|
392
407
|
YfFieldVisitOutcomeFormRecord.filesLabels = ['YfFieldVisitOutcomeForm__File'];
|
|
408
|
+
/** Valid labels for User associations */
|
|
409
|
+
YfFieldVisitOutcomeFormRecord.usersLabels = ['YfFieldVisitOutcomeForm__User'];
|
|
393
410
|
/** Type guard to check if an object is a YfFieldVisitOutcomeFormRecord */
|
|
394
411
|
function isYfFieldVisitOutcomeFormRecord(obj) {
|
|
395
412
|
return obj instanceof YfFieldVisitOutcomeFormRecord;
|
|
@@ -30,6 +30,7 @@ export { PermissionToFailRecord, isPermissionToFailRecord } from './PermissionTo
|
|
|
30
30
|
export { AccountRecord, isAccountRecord } from './AccountRecord';
|
|
31
31
|
export { OntReplacementApprovalRecord, isOntReplacementApprovalRecord } from './OntReplacementApprovalRecord';
|
|
32
32
|
export { ConversationRecord, isConversationRecord } from './ConversationRecord';
|
|
33
|
+
export { CustomerDeviceRouterRecord, isCustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
|
|
33
34
|
export { PaymentMethodRefundRecord, isPaymentMethodRefundRecord } from './PaymentMethodRefundRecord';
|
|
34
35
|
export { UgExternalAuditRecord, isUgExternalAuditRecord } from './UgExternalAuditRecord';
|
|
35
36
|
export { OhExternalAuditRecord, isOhExternalAuditRecord } from './OhExternalAuditRecord';
|
|
@@ -57,7 +58,6 @@ export { ConversationSummaryFeedbackRecord, isConversationSummaryFeedbackRecord
|
|
|
57
58
|
export { CustomerDeviceRecord, isCustomerDeviceRecord } from './CustomerDeviceRecord';
|
|
58
59
|
export { CustomerDeviceConfigurationRecord, isCustomerDeviceConfigurationRecord } from './CustomerDeviceConfigurationRecord';
|
|
59
60
|
export { CustomerDeviceOntRecord, isCustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
|
|
60
|
-
export { CustomerDeviceRouterRecord, isCustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
|
|
61
61
|
export { EmailSenderRecord, isEmailSenderRecord } from './EmailSenderRecord';
|
|
62
62
|
export { EmailTemplateRecord, isEmailTemplateRecord } from './EmailTemplateRecord';
|
|
63
63
|
export { ExchangeRecord, isExchangeRecord } from './ExchangeRecord';
|
package/dist/records-v2/index.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.
|
|
14
|
+
exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isDataIssueRecord = exports.DataIssueRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isAddressInteractionRecord = exports.AddressInteractionRecord = exports.isAddressRecord = exports.AddressRecord = exports.isCaseRecord = exports.CaseRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
|
|
15
|
+
exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isCustomerDeviceRecord = exports.CustomerDeviceRecord = exports.isConversationSummaryFeedbackRecord = exports.ConversationSummaryFeedbackRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isMessageRecord = exports.MessageRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallRecord = exports.CallRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isEmailRecord = exports.EmailRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isYfFieldVisitOutcomeFormRecord = exports.YfFieldVisitOutcomeFormRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = void 0;
|
|
16
16
|
exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isOutboundDialSessionRecord = exports.OutboundDialSessionRecord = exports.isOutboundDialCampaignRecord = exports.OutboundDialCampaignRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isModifyServiceRequestRecord = exports.ModifyServiceRequestRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = void 0;
|
|
17
17
|
exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTwilioActivityRecord = exports.TwilioActivityRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isRecontractRecord = exports.RecontractRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgReportEventRecord = exports.PgReportEventRecord = void 0;
|
|
18
18
|
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isAgentStatusRecord = exports.AgentStatusRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = void 0;
|
|
@@ -79,6 +79,9 @@ Object.defineProperty(exports, "isOntReplacementApprovalRecord", { enumerable: t
|
|
|
79
79
|
var ConversationRecord_1 = require("./ConversationRecord");
|
|
80
80
|
Object.defineProperty(exports, "ConversationRecord", { enumerable: true, get: function () { return ConversationRecord_1.ConversationRecord; } });
|
|
81
81
|
Object.defineProperty(exports, "isConversationRecord", { enumerable: true, get: function () { return ConversationRecord_1.isConversationRecord; } });
|
|
82
|
+
var CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
83
|
+
Object.defineProperty(exports, "CustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord; } });
|
|
84
|
+
Object.defineProperty(exports, "isCustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.isCustomerDeviceRouterRecord; } });
|
|
82
85
|
var PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
|
|
83
86
|
Object.defineProperty(exports, "PaymentMethodRefundRecord", { enumerable: true, get: function () { return PaymentMethodRefundRecord_1.PaymentMethodRefundRecord; } });
|
|
84
87
|
Object.defineProperty(exports, "isPaymentMethodRefundRecord", { enumerable: true, get: function () { return PaymentMethodRefundRecord_1.isPaymentMethodRefundRecord; } });
|
|
@@ -160,9 +163,6 @@ Object.defineProperty(exports, "isCustomerDeviceConfigurationRecord", { enumerab
|
|
|
160
163
|
var CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
|
|
161
164
|
Object.defineProperty(exports, "CustomerDeviceOntRecord", { enumerable: true, get: function () { return CustomerDeviceOntRecord_1.CustomerDeviceOntRecord; } });
|
|
162
165
|
Object.defineProperty(exports, "isCustomerDeviceOntRecord", { enumerable: true, get: function () { return CustomerDeviceOntRecord_1.isCustomerDeviceOntRecord; } });
|
|
163
|
-
var CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
164
|
-
Object.defineProperty(exports, "CustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord; } });
|
|
165
|
-
Object.defineProperty(exports, "isCustomerDeviceRouterRecord", { enumerable: true, get: function () { return CustomerDeviceRouterRecord_1.isCustomerDeviceRouterRecord; } });
|
|
166
166
|
var EmailSenderRecord_1 = require("./EmailSenderRecord");
|
|
167
167
|
Object.defineProperty(exports, "EmailSenderRecord", { enumerable: true, get: function () { return EmailSenderRecord_1.EmailSenderRecord; } });
|
|
168
168
|
Object.defineProperty(exports, "isEmailSenderRecord", { enumerable: true, get: function () { return EmailSenderRecord_1.isEmailSenderRecord; } });
|