@d19n/youfibre-odin-sdk 1.0.331 → 1.0.332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-v2/Email.d.ts +17 -0
- package/dist/entities-v2/Email.js +2 -0
- package/dist/records-v2/AccountRecord.d.ts +306 -2
- package/dist/records-v2/AccountRecord.js +451 -0
- package/dist/records-v2/ActivityLogRecord.d.ts +122 -1
- package/dist/records-v2/ActivityLogRecord.js +190 -0
- package/dist/records-v2/ActivityRecord.d.ts +255 -2
- package/dist/records-v2/ActivityRecord.js +387 -0
- package/dist/records-v2/AddressRecord.d.ts +321 -0
- package/dist/records-v2/AddressRecord.js +532 -0
- package/dist/records-v2/AffiliateCodeRecord.d.ts +102 -1
- package/dist/records-v2/AffiliateCodeRecord.js +157 -0
- package/dist/records-v2/AppointmentRecord.d.ts +141 -0
- package/dist/records-v2/AppointmentRecord.js +235 -0
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +81 -0
- package/dist/records-v2/BillingAdjustmentRecord.js +136 -0
- package/dist/records-v2/BillingRequestRecord.d.ts +178 -2
- package/dist/records-v2/BillingRequestRecord.js +271 -0
- package/dist/records-v2/BlockageA55Record.d.ts +103 -2
- package/dist/records-v2/BlockageA55Record.js +157 -0
- package/dist/records-v2/CallEventRecord.d.ts +82 -1
- package/dist/records-v2/CallEventRecord.js +124 -0
- package/dist/records-v2/CallLegRecord.d.ts +82 -1
- package/dist/records-v2/CallLegRecord.js +124 -0
- package/dist/records-v2/CallRecord.d.ts +202 -1
- package/dist/records-v2/CallRecord.js +322 -0
- package/dist/records-v2/CallTransferRecord.d.ts +102 -1
- package/dist/records-v2/CallTransferRecord.js +157 -0
- package/dist/records-v2/CampaignRecord.d.ts +83 -2
- package/dist/records-v2/CampaignRecord.js +124 -0
- package/dist/records-v2/CaseRecord.d.ts +358 -2
- package/dist/records-v2/CaseRecord.js +568 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +171 -2
- package/dist/records-v2/ChangeReasonRecord.js +238 -0
- package/dist/records-v2/ChurnRequestRecord.d.ts +62 -1
- package/dist/records-v2/ChurnRequestRecord.js +91 -0
- package/dist/records-v2/ContactRecord.d.ts +460 -0
- package/dist/records-v2/ContactRecord.js +762 -0
- package/dist/records-v2/ContractBuyOutRecord.d.ts +162 -1
- package/dist/records-v2/ContractBuyOutRecord.js +256 -0
- package/dist/records-v2/ConversationRecord.d.ts +62 -1
- package/dist/records-v2/ConversationRecord.js +91 -0
- package/dist/records-v2/CreditNoteRecord.d.ts +81 -0
- package/dist/records-v2/CreditNoteRecord.js +136 -0
- package/dist/records-v2/CrmDatasetRecord.d.ts +191 -2
- package/dist/records-v2/CrmDatasetRecord.js +271 -0
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +21 -0
- package/dist/records-v2/CustomerDeviceAtaRecord.js +37 -0
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +181 -0
- package/dist/records-v2/CustomerDeviceOntRecord.js +301 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +141 -0
- package/dist/records-v2/CustomerDeviceRouterRecord.js +235 -0
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +21 -0
- package/dist/records-v2/CustomerPhonePortingRecord.js +37 -0
- package/dist/records-v2/DiscountRecord.d.ts +121 -0
- package/dist/records-v2/DiscountRecord.js +202 -0
- package/dist/records-v2/EmailRecord.d.ts +174 -2
- package/dist/records-v2/EmailRecord.js +254 -0
- package/dist/records-v2/EmailTemplateRecord.d.ts +21 -1
- package/dist/records-v2/EmailTemplateRecord.js +21 -0
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +135 -2
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +189 -0
- package/dist/records-v2/FieldServiceProductRecord.d.ts +115 -2
- package/dist/records-v2/FieldServiceProductRecord.js +156 -0
- package/dist/records-v2/FileRecord.d.ts +1191 -2
- package/dist/records-v2/FileRecord.js +1869 -0
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +62 -1
- package/dist/records-v2/ImpersonationTrackerRecord.js +91 -0
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +83 -2
- package/dist/records-v2/InternalInstallAuditRecord.js +124 -0
- package/dist/records-v2/InvoiceItemRecord.d.ts +40 -0
- package/dist/records-v2/InvoiceItemRecord.js +69 -0
- package/dist/records-v2/InvoiceRecord.d.ts +359 -2
- package/dist/records-v2/InvoiceRecord.js +569 -0
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +98 -2
- package/dist/records-v2/KnowledgeArticleRecord.js +139 -0
- package/dist/records-v2/LeadRecord.d.ts +261 -0
- package/dist/records-v2/LeadRecord.js +433 -0
- package/dist/records-v2/MessageRecord.d.ts +79 -2
- package/dist/records-v2/MessageRecord.js +107 -0
- package/dist/records-v2/NetworkDeviceRecord.d.ts +43 -2
- package/dist/records-v2/NetworkDeviceRecord.js +58 -0
- package/dist/records-v2/NoteRecord.d.ts +1101 -1
- package/dist/records-v2/NoteRecord.js +1806 -0
- package/dist/records-v2/OfferRecord.d.ts +154 -2
- package/dist/records-v2/OfferRecord.js +221 -0
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +83 -2
- package/dist/records-v2/OhAuditOfInstallationRecord.js +124 -0
- package/dist/records-v2/OhExternalAuditRecord.d.ts +83 -2
- package/dist/records-v2/OhExternalAuditRecord.js +124 -0
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +83 -2
- package/dist/records-v2/OhInProgressAuditRecord.js +124 -0
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +83 -2
- package/dist/records-v2/OhInstallationAuditRecord.js +124 -0
- package/dist/records-v2/OhRetroAuditRecord.d.ts +83 -2
- package/dist/records-v2/OhRetroAuditRecord.js +124 -0
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +255 -2
- package/dist/records-v2/OneTouchSwitchRecord.js +387 -0
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +62 -1
- package/dist/records-v2/OntReplacementApprovalRecord.js +91 -0
- package/dist/records-v2/OrderCheckRecord.d.ts +21 -0
- package/dist/records-v2/OrderCheckRecord.js +37 -0
- package/dist/records-v2/OrderItemRecord.d.ts +280 -0
- package/dist/records-v2/OrderItemRecord.js +465 -0
- package/dist/records-v2/OrderRecord.d.ts +540 -0
- package/dist/records-v2/OrderRecord.js +894 -0
- package/dist/records-v2/OutageRecord.d.ts +42 -1
- package/dist/records-v2/OutageRecord.js +58 -0
- package/dist/records-v2/OverlayRealA55Record.d.ts +83 -2
- package/dist/records-v2/OverlayRealA55Record.js +124 -0
- package/dist/records-v2/PICRequestRecord.d.ts +62 -1
- package/dist/records-v2/PICRequestRecord.js +91 -0
- package/dist/records-v2/PaymentMethodRecord.d.ts +121 -0
- package/dist/records-v2/PaymentMethodRecord.js +202 -0
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +181 -0
- package/dist/records-v2/PaymentMethodRefundRecord.js +301 -0
- package/dist/records-v2/PaymentRecord.d.ts +82 -1
- package/dist/records-v2/PaymentRecord.js +124 -0
- package/dist/records-v2/PermissionToFailRecord.d.ts +61 -0
- package/dist/records-v2/PermissionToFailRecord.js +103 -0
- package/dist/records-v2/PgAccountValidationRecord.d.ts +21 -1
- package/dist/records-v2/PgAccountValidationRecord.js +21 -0
- package/dist/records-v2/PgContactRecord.d.ts +62 -1
- package/dist/records-v2/PgContactRecord.js +91 -0
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +95 -2
- package/dist/records-v2/PgDirectDebitFileRecord.js +123 -0
- package/dist/records-v2/PgDisputeRecord.d.ts +62 -1
- package/dist/records-v2/PgDisputeRecord.js +91 -0
- package/dist/records-v2/PgFileAllocationRecord.d.ts +115 -2
- package/dist/records-v2/PgFileAllocationRecord.js +156 -0
- package/dist/records-v2/PgLogRecord.d.ts +21 -1
- package/dist/records-v2/PgLogRecord.js +21 -0
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +102 -1
- package/dist/records-v2/PgPaymentMethodRecord.js +157 -0
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +21 -1
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +21 -0
- package/dist/records-v2/PgTransactionRecord.d.ts +135 -2
- package/dist/records-v2/PgTransactionRecord.js +189 -0
- package/dist/records-v2/PgVocalinkRecord.d.ts +21 -1
- package/dist/records-v2/PgVocalinkRecord.js +21 -0
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +42 -1
- package/dist/records-v2/PgWebhookAttemptRecord.js +58 -0
- package/dist/records-v2/PgWebhookRecord.d.ts +122 -1
- package/dist/records-v2/PgWebhookRecord.js +190 -0
- package/dist/records-v2/PriceBookRecord.d.ts +21 -0
- package/dist/records-v2/PriceBookRecord.js +37 -0
- package/dist/records-v2/ProductRecord.d.ts +242 -2
- package/dist/records-v2/ProductRecord.js +335 -0
- package/dist/records-v2/PushNotificationRecord.d.ts +42 -1
- package/dist/records-v2/PushNotificationRecord.js +58 -0
- package/dist/records-v2/ReferralRecord.d.ts +103 -2
- package/dist/records-v2/ReferralRecord.js +157 -0
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +83 -2
- package/dist/records-v2/RemediationOutcomeFormRecord.js +124 -0
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +103 -2
- package/dist/records-v2/RemediationRequiredReasonRecord.js +157 -0
- package/dist/records-v2/ReturnsRecord.d.ts +62 -1
- package/dist/records-v2/ReturnsRecord.js +91 -0
- package/dist/records-v2/RewardRecord.d.ts +103 -2
- package/dist/records-v2/RewardRecord.js +157 -0
- package/dist/records-v2/SalesTerritoryRecord.d.ts +79 -2
- package/dist/records-v2/SalesTerritoryRecord.js +107 -0
- package/dist/records-v2/ScheduleSlotRecord.d.ts +42 -1
- package/dist/records-v2/ScheduleSlotRecord.js +58 -0
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +287 -2
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +367 -0
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +81 -0
- package/dist/records-v2/ServiceAppointmentRecord.js +136 -0
- package/dist/records-v2/ServiceRecord.d.ts +40 -0
- package/dist/records-v2/ServiceRecord.js +69 -0
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +83 -2
- package/dist/records-v2/ServiceVisitAuditRecord.js +124 -0
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +83 -2
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +124 -0
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +83 -2
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +124 -0
- package/dist/records-v2/TeamRecord.d.ts +81 -0
- package/dist/records-v2/TeamRecord.js +136 -0
- package/dist/records-v2/TimeSlotRecord.d.ts +21 -0
- package/dist/records-v2/TimeSlotRecord.js +37 -0
- package/dist/records-v2/TransactionRecord.d.ts +181 -1
- package/dist/records-v2/TransactionRecord.js +288 -0
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +42 -1
- package/dist/records-v2/TwilioUserUpdateRecord.js +58 -0
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +83 -2
- package/dist/records-v2/UgAuditOfInstallationRecord.js +124 -0
- package/dist/records-v2/UgExternalAuditRecord.d.ts +83 -2
- package/dist/records-v2/UgExternalAuditRecord.js +124 -0
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +83 -2
- package/dist/records-v2/UgInProgressAuditRecord.js +124 -0
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +83 -2
- package/dist/records-v2/UgInstallationAuditRecord.js +124 -0
- package/dist/records-v2/UgRetroAuditRecord.d.ts +83 -2
- package/dist/records-v2/UgRetroAuditRecord.js +124 -0
- package/dist/records-v2/UserRecord.d.ts +360 -0
- package/dist/records-v2/UserRecord.js +597 -0
- package/dist/records-v2/VisitRecord.d.ts +121 -0
- package/dist/records-v2/VisitRecord.js +202 -0
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +21 -0
- package/dist/records-v2/VoiceConfigurationRecord.js +37 -0
- package/dist/records-v2/WayleaveAuditRecord.d.ts +83 -2
- package/dist/records-v2/WayleaveAuditRecord.js +124 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +1206 -2
- package/dist/records-v2/WorkOrderRecord.js +1832 -0
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +75 -2
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +90 -0
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +83 -2
- package/dist/records-v2/YfFieldServiceVisitRecord.js +124 -0
- package/dist/records-v2/YfStockAuditRecord.d.ts +83 -2
- package/dist/records-v2/YfStockAuditRecord.js +124 -0
- package/package.json +1 -1
|
@@ -13,16 +13,31 @@
|
|
|
13
13
|
* await record.createOneTouchSwitch({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
+
* Entity Types: DEFAULT, GAINING, LOSING
|
|
17
|
+
*
|
|
16
18
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
17
19
|
*/
|
|
18
20
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
19
21
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
20
22
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
21
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
22
|
-
import {
|
|
24
|
+
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
|
+
import { OneTouchSwitchProperties, GainingOneTouchSwitchProperties, LosingOneTouchSwitchProperties } from '../entities-v2/OneTouchSwitch';
|
|
23
26
|
import { CreateOneTouchSwitchOrderProperties } from '../actions-v2/CreateOneTouchSwitchOrderDto';
|
|
24
27
|
import { UpdateLosingOneTouchSwitchOrderProperties } from '../actions-v2/UpdateLosingOneTouchSwitchOrderDto';
|
|
25
28
|
import { UpdateOneTouchSwitchOrderProperties } from '../actions-v2/UpdateOneTouchSwitchOrderDto';
|
|
29
|
+
import { AccountRecord } from './AccountRecord';
|
|
30
|
+
import { AddressRecord } from './AddressRecord';
|
|
31
|
+
import { InvoiceRecord } from './InvoiceRecord';
|
|
32
|
+
import { NoteRecord } from './NoteRecord';
|
|
33
|
+
import { ActivityRecord } from './ActivityRecord';
|
|
34
|
+
import { OrderItemRecord } from './OrderItemRecord';
|
|
35
|
+
import { ActivityLogRecord } from './ActivityLogRecord';
|
|
36
|
+
import { FileRecord } from './FileRecord';
|
|
37
|
+
import { OrderRecord } from './OrderRecord';
|
|
38
|
+
import { ContactRecord } from './ContactRecord';
|
|
39
|
+
/** Valid entity types for OneTouchSwitch */
|
|
40
|
+
export declare type OneTouchSwitchType = 'DEFAULT' | 'GAINING' | 'LOSING';
|
|
26
41
|
/**
|
|
27
42
|
* Builder for action execution with dryRun support
|
|
28
43
|
*
|
|
@@ -59,6 +74,16 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
59
74
|
private _provider;
|
|
60
75
|
private _pendingLinks;
|
|
61
76
|
private _preGeneratedId;
|
|
77
|
+
private _accounts?;
|
|
78
|
+
private _addresses?;
|
|
79
|
+
private _invoices?;
|
|
80
|
+
private _notes?;
|
|
81
|
+
private _activities?;
|
|
82
|
+
private _orderItems?;
|
|
83
|
+
private _activityLogs?;
|
|
84
|
+
private _files?;
|
|
85
|
+
private _orders?;
|
|
86
|
+
private _contacts?;
|
|
62
87
|
/**
|
|
63
88
|
* Create a record wrapper.
|
|
64
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -71,7 +96,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
71
96
|
/** Record ID - always available (pre-generated for new records) */
|
|
72
97
|
get id(): string;
|
|
73
98
|
get entity(): string;
|
|
74
|
-
get type():
|
|
99
|
+
get type(): OneTouchSwitchType | undefined;
|
|
75
100
|
/** Record properties - empty object for new (unsaved) records */
|
|
76
101
|
get properties(): TProps;
|
|
77
102
|
get title(): string | undefined;
|
|
@@ -81,6 +106,234 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
81
106
|
get updatedAt(): string | undefined;
|
|
82
107
|
/** Access the underlying OdinRecord (null for new records) */
|
|
83
108
|
get record(): OdinRecord<TProps> | null;
|
|
109
|
+
/**
|
|
110
|
+
* Type guard: check if this record is of type DEFAULT
|
|
111
|
+
*
|
|
112
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
113
|
+
* giving you access to DEFAULT-specific properties.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* if (record.isDefault()) {
|
|
118
|
+
* // TypeScript knows record.properties is OneTouchSwitchProperties
|
|
119
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
120
|
+
* }
|
|
121
|
+
* ```
|
|
122
|
+
* @remarks This is the default record type
|
|
123
|
+
*/
|
|
124
|
+
isDefault(): this is OneTouchSwitchRecord<OneTouchSwitchProperties>;
|
|
125
|
+
/**
|
|
126
|
+
* Type guard: check if this record is of type GAINING
|
|
127
|
+
*
|
|
128
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
129
|
+
* giving you access to GAINING-specific properties.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* if (record.isGaining()) {
|
|
134
|
+
* // TypeScript knows record.properties is GainingOneTouchSwitchProperties
|
|
135
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
136
|
+
* }
|
|
137
|
+
* ```
|
|
138
|
+
* @remarks gaining
|
|
139
|
+
*/
|
|
140
|
+
isGaining(): this is OneTouchSwitchRecord<GainingOneTouchSwitchProperties>;
|
|
141
|
+
/**
|
|
142
|
+
* Type guard: check if this record is of type LOSING
|
|
143
|
+
*
|
|
144
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
145
|
+
* giving you access to LOSING-specific properties.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* if (record.isLosing()) {
|
|
150
|
+
* // TypeScript knows record.properties is LosingOneTouchSwitchProperties
|
|
151
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
152
|
+
* }
|
|
153
|
+
* ```
|
|
154
|
+
* @remarks losing
|
|
155
|
+
*/
|
|
156
|
+
isLosing(): this is OneTouchSwitchRecord<LosingOneTouchSwitchProperties>;
|
|
157
|
+
/** Valid labels for Account associations */
|
|
158
|
+
static readonly accountsLabels: readonly ["Account__OneTouchSwitch"];
|
|
159
|
+
/**
|
|
160
|
+
* Access linked Account records
|
|
161
|
+
* @remarks Available labels: Account__OneTouchSwitch
|
|
162
|
+
* @throws Error if called on a new (unsaved) record
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* // Get all linked Account records
|
|
167
|
+
* const items = await record.accounts.list();
|
|
168
|
+
* const first = await record.accounts.first();
|
|
169
|
+
*
|
|
170
|
+
* // Filter by label
|
|
171
|
+
* const specific = await record.accounts.first({ label: 'Account__OneTouchSwitch' });
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
get accounts(): RecordLinkManager<AccountRecord, typeof OneTouchSwitchRecord['accountsLabels'][number]>;
|
|
175
|
+
/** Valid labels for Address associations */
|
|
176
|
+
static readonly addressesLabels: readonly ["OneTouchSwitch__Address"];
|
|
177
|
+
/**
|
|
178
|
+
* Access linked Address records
|
|
179
|
+
* @remarks Available labels: OneTouchSwitch__Address
|
|
180
|
+
* @throws Error if called on a new (unsaved) record
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* // Get all linked Address records
|
|
185
|
+
* const items = await record.addresses.list();
|
|
186
|
+
* const first = await record.addresses.first();
|
|
187
|
+
*
|
|
188
|
+
* // Filter by label
|
|
189
|
+
* const specific = await record.addresses.first({ label: 'OneTouchSwitch__Address' });
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
get addresses(): RecordLinkManager<AddressRecord, typeof OneTouchSwitchRecord['addressesLabels'][number]>;
|
|
193
|
+
/** Valid labels for Invoice associations */
|
|
194
|
+
static readonly invoicesLabels: readonly ["OneTouchSwitch__Invoice"];
|
|
195
|
+
/**
|
|
196
|
+
* Access linked Invoice records
|
|
197
|
+
* @remarks Available labels: OneTouchSwitch__Invoice
|
|
198
|
+
* @throws Error if called on a new (unsaved) record
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```typescript
|
|
202
|
+
* // Get all linked Invoice records
|
|
203
|
+
* const items = await record.invoices.list();
|
|
204
|
+
* const first = await record.invoices.first();
|
|
205
|
+
*
|
|
206
|
+
* // Filter by label
|
|
207
|
+
* const specific = await record.invoices.first({ label: 'OneTouchSwitch__Invoice' });
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
get invoices(): RecordLinkManager<InvoiceRecord, typeof OneTouchSwitchRecord['invoicesLabels'][number]>;
|
|
211
|
+
/** Valid labels for Note associations */
|
|
212
|
+
static readonly notesLabels: readonly ["OneTouchSwitch_Note"];
|
|
213
|
+
/**
|
|
214
|
+
* Access linked Note records
|
|
215
|
+
* @remarks Available labels: OneTouchSwitch_Note
|
|
216
|
+
* @throws Error if called on a new (unsaved) record
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* // Get all linked Note records
|
|
221
|
+
* const items = await record.notes.list();
|
|
222
|
+
* const first = await record.notes.first();
|
|
223
|
+
*
|
|
224
|
+
* // Filter by label
|
|
225
|
+
* const specific = await record.notes.first({ label: 'OneTouchSwitch_Note' });
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
get notes(): RecordLinkManager<NoteRecord, typeof OneTouchSwitchRecord['notesLabels'][number]>;
|
|
229
|
+
/** Valid labels for Activity associations */
|
|
230
|
+
static readonly activitiesLabels: readonly ["OneTouchSwitch__Activity"];
|
|
231
|
+
/**
|
|
232
|
+
* Access linked Activity records
|
|
233
|
+
* @remarks Available labels: OneTouchSwitch__Activity
|
|
234
|
+
* @throws Error if called on a new (unsaved) record
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```typescript
|
|
238
|
+
* // Get all linked Activity records
|
|
239
|
+
* const items = await record.activities.list();
|
|
240
|
+
* const first = await record.activities.first();
|
|
241
|
+
*
|
|
242
|
+
* // Filter by label
|
|
243
|
+
* const specific = await record.activities.first({ label: 'OneTouchSwitch__Activity' });
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
get activities(): RecordLinkManager<ActivityRecord, typeof OneTouchSwitchRecord['activitiesLabels'][number]>;
|
|
247
|
+
/** Valid labels for OrderItem associations */
|
|
248
|
+
static readonly orderItemsLabels: readonly ["OneTouchSwitch__OrderItem"];
|
|
249
|
+
/**
|
|
250
|
+
* Access linked OrderItem records
|
|
251
|
+
* @remarks Available labels: OneTouchSwitch__OrderItem
|
|
252
|
+
* @throws Error if called on a new (unsaved) record
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```typescript
|
|
256
|
+
* // Get all linked OrderItem records
|
|
257
|
+
* const items = await record.orderItems.list();
|
|
258
|
+
* const first = await record.orderItems.first();
|
|
259
|
+
*
|
|
260
|
+
* // Filter by label
|
|
261
|
+
* const specific = await record.orderItems.first({ label: 'OneTouchSwitch__OrderItem' });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
get orderItems(): RecordLinkManager<OrderItemRecord, typeof OneTouchSwitchRecord['orderItemsLabels'][number]>;
|
|
265
|
+
/** Valid labels for ActivityLog associations */
|
|
266
|
+
static readonly activityLogsLabels: readonly ["OneTouchSwitch_ActivityLog"];
|
|
267
|
+
/**
|
|
268
|
+
* Access linked ActivityLog records
|
|
269
|
+
* @remarks Available labels: OneTouchSwitch_ActivityLog
|
|
270
|
+
* @throws Error if called on a new (unsaved) record
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```typescript
|
|
274
|
+
* // Get all linked ActivityLog records
|
|
275
|
+
* const items = await record.activityLogs.list();
|
|
276
|
+
* const first = await record.activityLogs.first();
|
|
277
|
+
*
|
|
278
|
+
* // Filter by label
|
|
279
|
+
* const specific = await record.activityLogs.first({ label: 'OneTouchSwitch_ActivityLog' });
|
|
280
|
+
* ```
|
|
281
|
+
*/
|
|
282
|
+
get activityLogs(): RecordLinkManager<ActivityLogRecord, typeof OneTouchSwitchRecord['activityLogsLabels'][number]>;
|
|
283
|
+
/** Valid labels for File associations */
|
|
284
|
+
static readonly filesLabels: readonly ["OneTouchSwitch_File"];
|
|
285
|
+
/**
|
|
286
|
+
* Access linked File records
|
|
287
|
+
* @remarks Available labels: OneTouchSwitch_File
|
|
288
|
+
* @throws Error if called on a new (unsaved) record
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* ```typescript
|
|
292
|
+
* // Get all linked File records
|
|
293
|
+
* const items = await record.files.list();
|
|
294
|
+
* const first = await record.files.first();
|
|
295
|
+
*
|
|
296
|
+
* // Filter by label
|
|
297
|
+
* const specific = await record.files.first({ label: 'OneTouchSwitch_File' });
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
get files(): RecordLinkManager<FileRecord, typeof OneTouchSwitchRecord['filesLabels'][number]>;
|
|
301
|
+
/** Valid labels for Order associations */
|
|
302
|
+
static readonly ordersLabels: readonly ["OneTouchSwitch__Order"];
|
|
303
|
+
/**
|
|
304
|
+
* Access linked Order records
|
|
305
|
+
* @remarks Available labels: OneTouchSwitch__Order
|
|
306
|
+
* @throws Error if called on a new (unsaved) record
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```typescript
|
|
310
|
+
* // Get all linked Order records
|
|
311
|
+
* const items = await record.orders.list();
|
|
312
|
+
* const first = await record.orders.first();
|
|
313
|
+
*
|
|
314
|
+
* // Filter by label
|
|
315
|
+
* const specific = await record.orders.first({ label: 'OneTouchSwitch__Order' });
|
|
316
|
+
* ```
|
|
317
|
+
*/
|
|
318
|
+
get orders(): RecordLinkManager<OrderRecord, typeof OneTouchSwitchRecord['ordersLabels'][number]>;
|
|
319
|
+
/** Valid labels for Contact associations */
|
|
320
|
+
static readonly contactsLabels: readonly ["OneTouchSwitch__Contact"];
|
|
321
|
+
/**
|
|
322
|
+
* Access linked Contact records
|
|
323
|
+
* @remarks Available labels: OneTouchSwitch__Contact
|
|
324
|
+
* @throws Error if called on a new (unsaved) record
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* ```typescript
|
|
328
|
+
* // Get all linked Contact records
|
|
329
|
+
* const items = await record.contacts.list();
|
|
330
|
+
* const first = await record.contacts.first();
|
|
331
|
+
*
|
|
332
|
+
* // Filter by label
|
|
333
|
+
* const specific = await record.contacts.first({ label: 'OneTouchSwitch__Contact' });
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
get contacts(): RecordLinkManager<ContactRecord, typeof OneTouchSwitchRecord['contactsLabels'][number]>;
|
|
84
337
|
/**
|
|
85
338
|
* Queue a link to be created with the next action.
|
|
86
339
|
* Works for both create and update actions.
|