@d19n/youfibre-odin-sdk 1.0.253 → 1.0.255

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.
Files changed (162) hide show
  1. package/dist/actions-v2/CreateRecontractVoiceConfigurationDto.d.ts +8 -1
  2. package/dist/entities-v2/VoiceConfiguration.d.ts +7 -8
  3. package/dist/entities-v2/VoiceConfiguration.js +2 -2
  4. package/dist/records-v2/AccountRecord.d.ts +2 -2
  5. package/dist/records-v2/AccountRecord.js +2 -2
  6. package/dist/records-v2/ActivityLogRecord.d.ts +2 -2
  7. package/dist/records-v2/ActivityLogRecord.js +2 -2
  8. package/dist/records-v2/ActivityRecord.d.ts +2 -2
  9. package/dist/records-v2/ActivityRecord.js +2 -2
  10. package/dist/records-v2/AddressRecord.d.ts +2 -2
  11. package/dist/records-v2/AddressRecord.js +5 -5
  12. package/dist/records-v2/BillingAdjustmentRecord.d.ts +2 -2
  13. package/dist/records-v2/BillingAdjustmentRecord.js +2 -2
  14. package/dist/records-v2/BillingRequestRecord.d.ts +2 -2
  15. package/dist/records-v2/BillingRequestRecord.js +2 -2
  16. package/dist/records-v2/BlockageA55Record.d.ts +2 -2
  17. package/dist/records-v2/BlockageA55Record.js +2 -2
  18. package/dist/records-v2/CallLegRecord.d.ts +2 -2
  19. package/dist/records-v2/CallLegRecord.js +2 -2
  20. package/dist/records-v2/CaseRecord.d.ts +2 -2
  21. package/dist/records-v2/CaseRecord.js +23 -23
  22. package/dist/records-v2/ChangeReasonRecord.d.ts +2 -2
  23. package/dist/records-v2/ChangeReasonRecord.js +2 -2
  24. package/dist/records-v2/ChurnRequestRecord.d.ts +2 -2
  25. package/dist/records-v2/ChurnRequestRecord.js +5 -5
  26. package/dist/records-v2/ConfigRecord.d.ts +2 -2
  27. package/dist/records-v2/ConfigRecord.js +2 -2
  28. package/dist/records-v2/ContactRecord.d.ts +2 -2
  29. package/dist/records-v2/ContactRecord.js +5 -5
  30. package/dist/records-v2/ContractBuyOutRecord.d.ts +2 -2
  31. package/dist/records-v2/ContractBuyOutRecord.js +8 -8
  32. package/dist/records-v2/ConversationRecord.d.ts +2 -2
  33. package/dist/records-v2/ConversationRecord.js +2 -2
  34. package/dist/records-v2/CreditNoteRecord.d.ts +2 -2
  35. package/dist/records-v2/CreditNoteRecord.js +2 -2
  36. package/dist/records-v2/CrmDatasetRecord.d.ts +2 -2
  37. package/dist/records-v2/CrmDatasetRecord.js +2 -2
  38. package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +2 -2
  39. package/dist/records-v2/CustomerDeviceAtaRecord.js +2 -2
  40. package/dist/records-v2/CustomerDeviceOntRecord.d.ts +2 -2
  41. package/dist/records-v2/CustomerDeviceOntRecord.js +5 -5
  42. package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +2 -2
  43. package/dist/records-v2/CustomerDeviceRouterRecord.js +2 -2
  44. package/dist/records-v2/CustomerPhonePortingRecord.d.ts +2 -2
  45. package/dist/records-v2/CustomerPhonePortingRecord.js +2 -2
  46. package/dist/records-v2/DiscountRecord.d.ts +2 -2
  47. package/dist/records-v2/DiscountRecord.js +2 -2
  48. package/dist/records-v2/EmailRecord.d.ts +2 -2
  49. package/dist/records-v2/EmailRecord.js +2 -2
  50. package/dist/records-v2/EmailTemplateRecord.d.ts +2 -2
  51. package/dist/records-v2/EmailTemplateRecord.js +2 -2
  52. package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -2
  53. package/dist/records-v2/FieldServiceDispatchedProductRecord.js +2 -2
  54. package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -2
  55. package/dist/records-v2/FieldServiceProductRecord.js +2 -2
  56. package/dist/records-v2/ImpersonationTrackerRecord.d.ts +2 -2
  57. package/dist/records-v2/ImpersonationTrackerRecord.js +2 -2
  58. package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -2
  59. package/dist/records-v2/InternalInstallAuditRecord.js +2 -2
  60. package/dist/records-v2/InvoiceRecord.d.ts +2 -2
  61. package/dist/records-v2/InvoiceRecord.js +2 -2
  62. package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -2
  63. package/dist/records-v2/KnowledgeArticleRecord.js +2 -2
  64. package/dist/records-v2/LeadRecord.d.ts +2 -2
  65. package/dist/records-v2/LeadRecord.js +2 -2
  66. package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -2
  67. package/dist/records-v2/NetworkDeviceRecord.js +2 -2
  68. package/dist/records-v2/NoteRecord.d.ts +2 -2
  69. package/dist/records-v2/NoteRecord.js +2 -2
  70. package/dist/records-v2/OfferRecord.d.ts +2 -2
  71. package/dist/records-v2/OfferRecord.js +2 -2
  72. package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -2
  73. package/dist/records-v2/OhAuditOfInstallationRecord.js +2 -2
  74. package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -2
  75. package/dist/records-v2/OhExternalAuditRecord.js +2 -2
  76. package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -2
  77. package/dist/records-v2/OhInProgressAuditRecord.js +2 -2
  78. package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -2
  79. package/dist/records-v2/OhInstallationAuditRecord.js +2 -2
  80. package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -2
  81. package/dist/records-v2/OhRetroAuditRecord.js +2 -2
  82. package/dist/records-v2/OneTouchSwitchRecord.d.ts +2 -2
  83. package/dist/records-v2/OneTouchSwitchRecord.js +2 -2
  84. package/dist/records-v2/OntReplacementApprovalRecord.d.ts +2 -2
  85. package/dist/records-v2/OntReplacementApprovalRecord.js +2 -2
  86. package/dist/records-v2/OrderCheckRecord.d.ts +2 -2
  87. package/dist/records-v2/OrderCheckRecord.js +2 -2
  88. package/dist/records-v2/OrderItemRecord.d.ts +2 -2
  89. package/dist/records-v2/OrderItemRecord.js +2 -2
  90. package/dist/records-v2/OrderRecord.d.ts +2 -2
  91. package/dist/records-v2/OrderRecord.js +26 -26
  92. package/dist/records-v2/OutageRecord.d.ts +2 -2
  93. package/dist/records-v2/OutageRecord.js +2 -2
  94. package/dist/records-v2/OverlayRealA55Record.d.ts +2 -2
  95. package/dist/records-v2/OverlayRealA55Record.js +2 -2
  96. package/dist/records-v2/PICRequestRecord.d.ts +2 -2
  97. package/dist/records-v2/PICRequestRecord.js +5 -5
  98. package/dist/records-v2/PaymentMethodRecord.d.ts +2 -2
  99. package/dist/records-v2/PaymentMethodRecord.js +2 -2
  100. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +2 -2
  101. package/dist/records-v2/PaymentMethodRefundRecord.js +5 -5
  102. package/dist/records-v2/PaymentRecord.d.ts +2 -2
  103. package/dist/records-v2/PaymentRecord.js +2 -2
  104. package/dist/records-v2/PermissionToFailRecord.d.ts +2 -2
  105. package/dist/records-v2/PermissionToFailRecord.js +2 -2
  106. package/dist/records-v2/PriceBookRecord.d.ts +2 -2
  107. package/dist/records-v2/PriceBookRecord.js +2 -2
  108. package/dist/records-v2/ProductRecord.d.ts +2 -2
  109. package/dist/records-v2/ProductRecord.js +2 -2
  110. package/dist/records-v2/PushNotificationRecord.d.ts +2 -2
  111. package/dist/records-v2/PushNotificationRecord.js +2 -2
  112. package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -2
  113. package/dist/records-v2/RemediationOutcomeFormRecord.js +2 -2
  114. package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -2
  115. package/dist/records-v2/RemediationRequiredReasonRecord.js +2 -2
  116. package/dist/records-v2/ReturnsRecord.d.ts +2 -2
  117. package/dist/records-v2/ReturnsRecord.js +2 -2
  118. package/dist/records-v2/ScheduleSlotRecord.d.ts +2 -2
  119. package/dist/records-v2/ScheduleSlotRecord.js +2 -2
  120. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -2
  121. package/dist/records-v2/ServiceAppointmentConfigRecord.js +2 -2
  122. package/dist/records-v2/ServiceAppointmentRecord.d.ts +2 -2
  123. package/dist/records-v2/ServiceAppointmentRecord.js +2 -2
  124. package/dist/records-v2/ServiceRecord.d.ts +2 -2
  125. package/dist/records-v2/ServiceRecord.js +2 -2
  126. package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -2
  127. package/dist/records-v2/ServiceVisitAuditRecord.js +2 -2
  128. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -2
  129. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +2 -2
  130. package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -2
  131. package/dist/records-v2/SweeperMaintenanceAuditRecord.js +2 -2
  132. package/dist/records-v2/TeamRecord.d.ts +2 -2
  133. package/dist/records-v2/TeamRecord.js +2 -2
  134. package/dist/records-v2/TimeSlotRecord.d.ts +2 -2
  135. package/dist/records-v2/TimeSlotRecord.js +2 -2
  136. package/dist/records-v2/TransactionRecord.d.ts +2 -2
  137. package/dist/records-v2/TransactionRecord.js +2 -2
  138. package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -2
  139. package/dist/records-v2/UgAuditOfInstallationRecord.js +2 -2
  140. package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -2
  141. package/dist/records-v2/UgExternalAuditRecord.js +2 -2
  142. package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -2
  143. package/dist/records-v2/UgInProgressAuditRecord.js +2 -2
  144. package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -2
  145. package/dist/records-v2/UgInstallationAuditRecord.js +2 -2
  146. package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -2
  147. package/dist/records-v2/UgRetroAuditRecord.js +2 -2
  148. package/dist/records-v2/UserRecord.d.ts +2 -2
  149. package/dist/records-v2/UserRecord.js +2 -2
  150. package/dist/records-v2/VisitRecord.d.ts +2 -2
  151. package/dist/records-v2/VisitRecord.js +2 -2
  152. package/dist/records-v2/VoiceConfigurationRecord.d.ts +2 -2
  153. package/dist/records-v2/VoiceConfigurationRecord.js +2 -2
  154. package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -2
  155. package/dist/records-v2/WayleaveAuditRecord.js +2 -2
  156. package/dist/records-v2/WorkOrderRecord.d.ts +2 -2
  157. package/dist/records-v2/WorkOrderRecord.js +125 -125
  158. package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -2
  159. package/dist/records-v2/WorkOrderStatusUpdateRecord.js +2 -2
  160. package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -2
  161. package/dist/records-v2/YfFieldServiceVisitRecord.js +2 -2
  162. package/package.json +2 -2
@@ -15,7 +15,7 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
15
15
  * Properties for CreateRecontractVoiceConfiguration action
16
16
  *
17
17
  * @property Required fields: 0
18
- * @property Optional fields: 20
18
+ * @property Optional fields: 21
19
19
  */
20
20
  export interface CreateRecontractVoiceConfigurationProperties {
21
21
  /**
@@ -159,6 +159,13 @@ export interface CreateRecontractVoiceConfigurationProperties {
159
159
  * @type {TEXT}
160
160
  */
161
161
  MagratheaOrderLastUpdate?: string;
162
+ /**
163
+ * OrderItemId
164
+ *
165
+ * OrderItemId (Network Operations - VoiceConfiguration)
166
+ * @type {LOOKUP}
167
+ */
168
+ OrderItemId?: string;
162
169
  }
163
170
  /**
164
171
  * CreateRecontractVoiceConfiguration
@@ -130,6 +130,8 @@ export declare enum VoiceConfigurationPortFromProvider {
130
130
  * Use these constants instead of string literals for type safety
131
131
  */
132
132
  export declare enum VoiceConfigurationPropertyKeys {
133
+ /** OrderItemId (Network Operations - VoiceConfiguration) */
134
+ OrderItemId = "OrderItemId",
133
135
  /** MagratheaOrderLastUpdate (Network Operations - VoiceConfiguration) */
134
136
  MagratheaOrderLastUpdate = "MagratheaOrderLastUpdate",
135
137
  /** SystemMessageDate (Network Operations - VoiceConfiguration) */
@@ -172,8 +174,6 @@ export declare enum VoiceConfigurationPropertyKeys {
172
174
  MagratheaOrderStatus = "MagratheaOrderStatus",
173
175
  /** AuthorizedLOA (Network Operations - VoiceConfiguration) */
174
176
  AuthorizedLoa = "AuthorizedLOA",
175
- /** OrderItemId (Network Operations - VoiceConfiguration) */
176
- OrderItemId = "OrderItemId",
177
177
  /** SystemMessage (Network Operations - VoiceConfiguration) */
178
178
  SystemMessage = "SystemMessage",
179
179
  /** The parts include CountryCode, AreaCode, SubscriberNumber (Network Operations - VoiceConfiguration) */
@@ -189,6 +189,11 @@ export declare enum VoiceConfigurationPropertyKeys {
189
189
  * @see ServiceModule:VoiceConfiguration
190
190
  */
191
191
  export interface VoiceConfigurationProperties {
192
+ /** OrderItemId (Network Operations - VoiceConfiguration)
193
+ *
194
+ * @type {LOOKUP}
195
+ */
196
+ OrderItemId?: string;
192
197
  /** MagratheaOrderLastUpdate (Network Operations - VoiceConfiguration)
193
198
  *
194
199
  * @type {TEXT}
@@ -306,12 +311,6 @@ export interface VoiceConfigurationProperties {
306
311
  * @type {BOOLEAN}
307
312
  */
308
313
  AuthorizedLoa?: boolean;
309
- /** OrderItemId (Network Operations - VoiceConfiguration)
310
- *
311
- * @type {LOOKUP}
312
- * @hidden This field is hidden in the UI
313
- */
314
- OrderItemId?: string;
315
314
  /** SystemMessage (Network Operations - VoiceConfiguration)
316
315
  *
317
316
  * @type {TEXT}
@@ -135,6 +135,8 @@ var VoiceConfigurationPortFromProvider;
135
135
  */
136
136
  var VoiceConfigurationPropertyKeys;
137
137
  (function (VoiceConfigurationPropertyKeys) {
138
+ /** OrderItemId (Network Operations - VoiceConfiguration) */
139
+ VoiceConfigurationPropertyKeys["OrderItemId"] = "OrderItemId";
138
140
  /** MagratheaOrderLastUpdate (Network Operations - VoiceConfiguration) */
139
141
  VoiceConfigurationPropertyKeys["MagratheaOrderLastUpdate"] = "MagratheaOrderLastUpdate";
140
142
  /** SystemMessageDate (Network Operations - VoiceConfiguration) */
@@ -177,8 +179,6 @@ var VoiceConfigurationPropertyKeys;
177
179
  VoiceConfigurationPropertyKeys["MagratheaOrderStatus"] = "MagratheaOrderStatus";
178
180
  /** AuthorizedLOA (Network Operations - VoiceConfiguration) */
179
181
  VoiceConfigurationPropertyKeys["AuthorizedLoa"] = "AuthorizedLOA";
180
- /** OrderItemId (Network Operations - VoiceConfiguration) */
181
- VoiceConfigurationPropertyKeys["OrderItemId"] = "OrderItemId";
182
182
  /** SystemMessage (Network Operations - VoiceConfiguration) */
183
183
  VoiceConfigurationPropertyKeys["SystemMessage"] = "SystemMessage";
184
184
  /** The parts include CountryCode, AreaCode, SubscriberNumber (Network Operations - VoiceConfiguration) */
@@ -73,8 +73,8 @@ export declare class AccountRecord {
73
73
  get stage(): PipelineStageEntity | undefined;
74
74
  get createdAt(): string | undefined;
75
75
  get updatedAt(): string | undefined;
76
- /** Access the raw underlying OdinRecord (null for new records) */
77
- get raw(): OdinRecord<AccountProperties> | null;
76
+ /** Access the underlying OdinRecord (null for new records) */
77
+ get record(): OdinRecord<AccountProperties> | null;
78
78
  /**
79
79
  * Check if this record is of type BUSINESS
80
80
  * Business accounts
@@ -67,8 +67,8 @@ class AccountRecord {
67
67
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
68
68
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
69
69
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
70
- /** Access the raw underlying OdinRecord (null for new records) */
71
- get raw() { return this._record; }
70
+ /** Access the underlying OdinRecord (null for new records) */
71
+ get record() { return this._record; }
72
72
  // ============================================
73
73
  // TYPE GUARDS
74
74
  // ============================================
@@ -56,8 +56,8 @@ export declare class ActivityLogRecord {
56
56
  get stage(): PipelineStageEntity | undefined;
57
57
  get createdAt(): string | undefined;
58
58
  get updatedAt(): string | undefined;
59
- /** Access the raw underlying OdinRecord (null for new records) */
60
- get raw(): OdinRecord<ActivityLogProperties> | null;
59
+ /** Access the underlying OdinRecord (null for new records) */
60
+ get record(): OdinRecord<ActivityLogProperties> | null;
61
61
  /**
62
62
  * Check if this record is of type DEFAULT
63
63
  * This is the default record type
@@ -62,8 +62,8 @@ class ActivityLogRecord {
62
62
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
63
63
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
64
64
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
65
- /** Access the raw underlying OdinRecord (null for new records) */
66
- get raw() { return this._record; }
65
+ /** Access the underlying OdinRecord (null for new records) */
66
+ get record() { return this._record; }
67
67
  // ============================================
68
68
  // TYPE GUARDS
69
69
  // ============================================
@@ -67,8 +67,8 @@ export declare class ActivityRecord {
67
67
  get stage(): PipelineStageEntity | undefined;
68
68
  get createdAt(): string | undefined;
69
69
  get updatedAt(): string | undefined;
70
- /** Access the raw underlying OdinRecord (null for new records) */
71
- get raw(): OdinRecord<ActivityProperties> | null;
70
+ /** Access the underlying OdinRecord (null for new records) */
71
+ get record(): OdinRecord<ActivityProperties> | null;
72
72
  /**
73
73
  * Check if this record is of type EVENT
74
74
  * General Events
@@ -67,8 +67,8 @@ class ActivityRecord {
67
67
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
68
68
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
69
69
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
70
- /** Access the raw underlying OdinRecord (null for new records) */
71
- get raw() { return this._record; }
70
+ /** Access the underlying OdinRecord (null for new records) */
71
+ get record() { return this._record; }
72
72
  // ============================================
73
73
  // TYPE GUARDS
74
74
  // ============================================
@@ -129,8 +129,8 @@ export declare class AddressRecord {
129
129
  get stage(): PipelineStageEntity | undefined;
130
130
  get createdAt(): string | undefined;
131
131
  get updatedAt(): string | undefined;
132
- /** Access the raw underlying OdinRecord (null for new records) */
133
- get raw(): OdinRecord<AddressProperties> | null;
132
+ /** Access the underlying OdinRecord (null for new records) */
133
+ get record(): OdinRecord<AddressProperties> | null;
134
134
  /**
135
135
  * Access linked Order records
136
136
  * @throws Error if called on a new (unsaved) record
@@ -100,10 +100,10 @@ class CreateLeadFromAddressFlowBuilder {
100
100
  */
101
101
  execute() {
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
- const rawRecord = this._record.raw;
104
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
103
+ const record = this._record.record;
104
+ if (!(record === null || record === void 0 ? void 0 : record.id))
105
105
  throw new Error('Cannot execute flow on unsaved record');
106
- const result = yield this._provider._applyAction('CrmModule', 'Address', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'CreateLeadFromAddress', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
106
+ const result = yield this._provider._applyAction('CrmModule', 'Address', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CreateLeadFromAddress', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
107
107
  // Clear pending links on the record after execution
108
108
  this._record.clearPendingLinks();
109
109
  return result;
@@ -139,8 +139,8 @@ class AddressRecord {
139
139
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
140
140
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
141
141
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
142
- /** Access the raw underlying OdinRecord (null for new records) */
143
- get raw() { return this._record; }
142
+ /** Access the underlying OdinRecord (null for new records) */
143
+ get record() { return this._record; }
144
144
  // ============================================
145
145
  // TYPED LINK ACCESSORS
146
146
  // ============================================
@@ -51,8 +51,8 @@ export declare class BillingAdjustmentRecord {
51
51
  get stage(): PipelineStageEntity | undefined;
52
52
  get createdAt(): string | undefined;
53
53
  get updatedAt(): string | undefined;
54
- /** Access the raw underlying OdinRecord (null for new records) */
55
- get raw(): OdinRecord<BillingAdjustmentProperties> | null;
54
+ /** Access the underlying OdinRecord (null for new records) */
55
+ get record(): OdinRecord<BillingAdjustmentProperties> | null;
56
56
  /**
57
57
  * Access linked Order records
58
58
  * @throws Error if called on a new (unsaved) record
@@ -59,8 +59,8 @@ class BillingAdjustmentRecord {
59
59
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
60
60
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
61
61
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
62
- /** Access the raw underlying OdinRecord (null for new records) */
63
- get raw() { return this._record; }
62
+ /** Access the underlying OdinRecord (null for new records) */
63
+ get record() { return this._record; }
64
64
  // ============================================
65
65
  // TYPED LINK ACCESSORS
66
66
  // ============================================
@@ -65,8 +65,8 @@ export declare class BillingRequestRecord {
65
65
  get stage(): PipelineStageEntity | undefined;
66
66
  get createdAt(): string | undefined;
67
67
  get updatedAt(): string | undefined;
68
- /** Access the raw underlying OdinRecord (null for new records) */
69
- get raw(): OdinRecord<BillingRequestProperties> | null;
68
+ /** Access the underlying OdinRecord (null for new records) */
69
+ get record(): OdinRecord<BillingRequestProperties> | null;
70
70
  /**
71
71
  * Check if this record is of type MANDATE
72
72
  * mandate
@@ -63,8 +63,8 @@ class BillingRequestRecord {
63
63
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
64
64
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
65
65
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
66
- /** Access the raw underlying OdinRecord (null for new records) */
67
- get raw() { return this._record; }
66
+ /** Access the underlying OdinRecord (null for new records) */
67
+ get record() { return this._record; }
68
68
  // ============================================
69
69
  // TYPE GUARDS
70
70
  // ============================================
@@ -53,8 +53,8 @@ export declare class BlockageA55Record {
53
53
  get stage(): PipelineStageEntity | undefined;
54
54
  get createdAt(): string | undefined;
55
55
  get updatedAt(): string | undefined;
56
- /** Access the raw underlying OdinRecord (null for new records) */
57
- get raw(): OdinRecord<BlockageA55Properties> | null;
56
+ /** Access the underlying OdinRecord (null for new records) */
57
+ get record(): OdinRecord<BlockageA55Properties> | null;
58
58
  /**
59
59
  * Check if this record is of type OUTCOME_FORM
60
60
  * outcome form
@@ -61,8 +61,8 @@ class BlockageA55Record {
61
61
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
62
62
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
63
63
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
64
- /** Access the raw underlying OdinRecord (null for new records) */
65
- get raw() { return this._record; }
64
+ /** Access the underlying OdinRecord (null for new records) */
65
+ get record() { return this._record; }
66
66
  // ============================================
67
67
  // TYPE GUARDS
68
68
  // ============================================
@@ -47,8 +47,8 @@ export declare class CallLegRecord {
47
47
  get stage(): PipelineStageEntity | undefined;
48
48
  get createdAt(): string | undefined;
49
49
  get updatedAt(): string | undefined;
50
- /** Access the raw underlying OdinRecord (null for new records) */
51
- get raw(): OdinRecord<CallLegProperties> | null;
50
+ /** Access the underlying OdinRecord (null for new records) */
51
+ get record(): OdinRecord<CallLegProperties> | null;
52
52
  /**
53
53
  * Check if this record is of type DEFAULT
54
54
  * This is the default record type
@@ -57,8 +57,8 @@ class CallLegRecord {
57
57
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
58
58
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
59
59
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
60
- /** Access the raw underlying OdinRecord (null for new records) */
61
- get raw() { return this._record; }
60
+ /** Access the underlying OdinRecord (null for new records) */
61
+ get record() { return this._record; }
62
62
  // ============================================
63
63
  // TYPE GUARDS
64
64
  // ============================================
@@ -454,8 +454,8 @@ export declare class CaseRecord {
454
454
  get stage(): PipelineStageEntity | undefined;
455
455
  get createdAt(): string | undefined;
456
456
  get updatedAt(): string | undefined;
457
- /** Access the raw underlying OdinRecord (null for new records) */
458
- get raw(): OdinRecord<CaseProperties> | null;
457
+ /** Access the underlying OdinRecord (null for new records) */
458
+ get record(): OdinRecord<CaseProperties> | null;
459
459
  /**
460
460
  * Check if this record is of type DEFAULT
461
461
  * DEFAULT
@@ -103,10 +103,10 @@ class AssignCaseWithNoteFlowFlowBuilder {
103
103
  */
104
104
  execute() {
105
105
  return __awaiter(this, void 0, void 0, function* () {
106
- const rawRecord = this._record.raw;
107
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
106
+ const record = this._record.record;
107
+ if (!(record === null || record === void 0 ? void 0 : record.id))
108
108
  throw new Error('Cannot execute flow on unsaved record');
109
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'AssignCaseWithNoteFlow', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
109
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'AssignCaseWithNoteFlow', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
110
110
  // Clear pending links on the record after execution
111
111
  this._record.clearPendingLinks();
112
112
  return result;
@@ -175,10 +175,10 @@ class CaseDefaultStageEscalatedFlowBuilder {
175
175
  */
176
176
  execute() {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
- const rawRecord = this._record.raw;
179
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
178
+ const record = this._record.record;
179
+ if (!(record === null || record === void 0 ? void 0 : record.id))
180
180
  throw new Error('Cannot execute flow on unsaved record');
181
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'CaseDefaultStageEscalated', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options));
181
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CaseDefaultStageEscalated', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options));
182
182
  // Clear pending links on the record after execution
183
183
  this._record.clearPendingLinks();
184
184
  return result;
@@ -232,10 +232,10 @@ class CasedefaultstageblockedFlowBuilder {
232
232
  */
233
233
  execute() {
234
234
  return __awaiter(this, void 0, void 0, function* () {
235
- const rawRecord = this._record.raw;
236
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
235
+ const record = this._record.record;
236
+ if (!(record === null || record === void 0 ? void 0 : record.id))
237
237
  throw new Error('Cannot execute flow on unsaved record');
238
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'Casedefaultstageblocked', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options));
238
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'Casedefaultstageblocked', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options));
239
239
  // Clear pending links on the record after execution
240
240
  this._record.clearPendingLinks();
241
241
  return result;
@@ -304,10 +304,10 @@ class EscalateCaseTransitionFlowBuilder {
304
304
  */
305
305
  execute() {
306
306
  return __awaiter(this, void 0, void 0, function* () {
307
- const rawRecord = this._record.raw;
308
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
307
+ const record = this._record.record;
308
+ if (!(record === null || record === void 0 ? void 0 : record.id))
309
309
  throw new Error('Cannot execute flow on unsaved record');
310
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'EscalateCaseTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options));
310
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'EscalateCaseTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageEscalated' }, this._options));
311
311
  // Clear pending links on the record after execution
312
312
  this._record.clearPendingLinks();
313
313
  return result;
@@ -361,10 +361,10 @@ class MoveCaseToBlockedTransitionFlowBuilder {
361
361
  */
362
362
  execute() {
363
363
  return __awaiter(this, void 0, void 0, function* () {
364
- const rawRecord = this._record.raw;
365
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
364
+ const record = this._record.record;
365
+ if (!(record === null || record === void 0 ? void 0 : record.id))
366
366
  throw new Error('Cannot execute flow on unsaved record');
367
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'MoveCaseToBlockedTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options));
367
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToBlockedTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageBlocked' }, this._options));
368
368
  // Clear pending links on the record after execution
369
369
  this._record.clearPendingLinks();
370
370
  return result;
@@ -418,10 +418,10 @@ class MoveCaseToPendingReviewTransitionFlowBuilder {
418
418
  */
419
419
  execute() {
420
420
  return __awaiter(this, void 0, void 0, function* () {
421
- const rawRecord = this._record.raw;
422
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
421
+ const record = this._record.record;
422
+ if (!(record === null || record === void 0 ? void 0 : record.id))
423
423
  throw new Error('Cannot execute flow on unsaved record');
424
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'MoveCaseToPendingReviewTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStagePendingReview' }, this._options));
424
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCaseToPendingReviewTransition', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStagePendingReview' }, this._options));
425
425
  // Clear pending links on the record after execution
426
426
  this._record.clearPendingLinks();
427
427
  return result;
@@ -475,10 +475,10 @@ class MoveDefaultCaseFromOpenToClosedFlowBuilder {
475
475
  */
476
476
  execute() {
477
477
  return __awaiter(this, void 0, void 0, function* () {
478
- const rawRecord = this._record.raw;
479
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
478
+ const record = this._record.record;
479
+ if (!(record === null || record === void 0 ? void 0 : record.id))
480
480
  throw new Error('Cannot execute flow on unsaved record');
481
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'MoveDefaultCaseFromOpenToClosed', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageClosed' }, this._options));
481
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveDefaultCaseFromOpenToClosed', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CaseDefaultStageClosed' }, this._options));
482
482
  // Clear pending links on the record after execution
483
483
  this._record.clearPendingLinks();
484
484
  return result;
@@ -514,8 +514,8 @@ class CaseRecord {
514
514
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
515
515
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
516
516
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
517
- /** Access the raw underlying OdinRecord (null for new records) */
518
- get raw() { return this._record; }
517
+ /** Access the underlying OdinRecord (null for new records) */
518
+ get record() { return this._record; }
519
519
  // ============================================
520
520
  // TYPE GUARDS
521
521
  // ============================================
@@ -74,8 +74,8 @@ export declare class ChangeReasonRecord {
74
74
  get stage(): PipelineStageEntity | undefined;
75
75
  get createdAt(): string | undefined;
76
76
  get updatedAt(): string | undefined;
77
- /** Access the raw underlying OdinRecord (null for new records) */
78
- get raw(): OdinRecord<ChangeReasonProperties> | null;
77
+ /** Access the underlying OdinRecord (null for new records) */
78
+ get record(): OdinRecord<ChangeReasonProperties> | null;
79
79
  /**
80
80
  * Check if this record is of type SA_CANCEL
81
81
  * service appointment cancel reason type
@@ -62,8 +62,8 @@ class ChangeReasonRecord {
62
62
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
63
63
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
64
64
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
65
- /** Access the raw underlying OdinRecord (null for new records) */
66
- get raw() { return this._record; }
65
+ /** Access the underlying OdinRecord (null for new records) */
66
+ get record() { return this._record; }
67
67
  // ============================================
68
68
  // TYPE GUARDS
69
69
  // ============================================
@@ -102,8 +102,8 @@ export declare class ChurnRequestRecord {
102
102
  get stage(): PipelineStageEntity | undefined;
103
103
  get createdAt(): string | undefined;
104
104
  get updatedAt(): string | undefined;
105
- /** Access the raw underlying OdinRecord (null for new records) */
106
- get raw(): OdinRecord<ChurnRequestProperties> | null;
105
+ /** Access the underlying OdinRecord (null for new records) */
106
+ get record(): OdinRecord<ChurnRequestProperties> | null;
107
107
  /**
108
108
  * Check if this record is of type DEFAULT
109
109
  * Default
@@ -78,10 +78,10 @@ class CompleteChurnRequestFlowFlowBuilder {
78
78
  */
79
79
  execute() {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
- const rawRecord = this._record.raw;
82
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
81
+ const record = this._record.record;
82
+ if (!(record === null || record === void 0 ? void 0 : record.id))
83
83
  throw new Error('Cannot execute flow on unsaved record');
84
- const result = yield this._provider._applyAction('OrderModule', 'ChurnRequest', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'CompleteChurnRequestFlow', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'ChurnRequestStageDone' }, this._options));
84
+ const result = yield this._provider._applyAction('OrderModule', 'ChurnRequest', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CompleteChurnRequestFlow', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'ChurnRequestStageDone' }, this._options));
85
85
  // Clear pending links on the record after execution
86
86
  this._record.clearPendingLinks();
87
87
  return result;
@@ -117,8 +117,8 @@ class ChurnRequestRecord {
117
117
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
118
118
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
119
119
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
120
- /** Access the raw underlying OdinRecord (null for new records) */
121
- get raw() { return this._record; }
120
+ /** Access the underlying OdinRecord (null for new records) */
121
+ get record() { return this._record; }
122
122
  // ============================================
123
123
  // TYPE GUARDS
124
124
  // ============================================
@@ -45,8 +45,8 @@ export declare class ConfigRecord {
45
45
  get stage(): PipelineStageEntity | undefined;
46
46
  get createdAt(): string | undefined;
47
47
  get updatedAt(): string | undefined;
48
- /** Access the raw underlying OdinRecord (null for new records) */
49
- get raw(): OdinRecord<ConfigProperties> | null;
48
+ /** Access the underlying OdinRecord (null for new records) */
49
+ get record(): OdinRecord<ConfigProperties> | null;
50
50
  /**
51
51
  * Queue a link to be created with the next action.
52
52
  * Works for both create and update actions.
@@ -55,8 +55,8 @@ class ConfigRecord {
55
55
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
56
56
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
57
57
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
58
- /** Access the raw underlying OdinRecord (null for new records) */
59
- get raw() { return this._record; }
58
+ /** Access the underlying OdinRecord (null for new records) */
59
+ get record() { return this._record; }
60
60
  // ============================================
61
61
  // LINK MANAGEMENT
62
62
  // ============================================
@@ -127,8 +127,8 @@ export declare class ContactRecord {
127
127
  get stage(): PipelineStageEntity | undefined;
128
128
  get createdAt(): string | undefined;
129
129
  get updatedAt(): string | undefined;
130
- /** Access the raw underlying OdinRecord (null for new records) */
131
- get raw(): OdinRecord<ContactProperties> | null;
130
+ /** Access the underlying OdinRecord (null for new records) */
131
+ get record(): OdinRecord<ContactProperties> | null;
132
132
  /**
133
133
  * Access linked Account records
134
134
  * @throws Error if called on a new (unsaved) record
@@ -87,10 +87,10 @@ class CreateCaseFromContactFlowBuilder {
87
87
  */
88
88
  execute() {
89
89
  return __awaiter(this, void 0, void 0, function* () {
90
- const rawRecord = this._record.raw;
91
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
90
+ const record = this._record.record;
91
+ if (!(record === null || record === void 0 ? void 0 : record.id))
92
92
  throw new Error('Cannot execute flow on unsaved record');
93
- const result = yield this._provider._applyAction('CrmModule', 'Contact', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'CreateCaseFromContact', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
93
+ const result = yield this._provider._applyAction('CrmModule', 'Contact', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'CreateCaseFromContact', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined }, this._options));
94
94
  // Clear pending links on the record after execution
95
95
  this._record.clearPendingLinks();
96
96
  return result;
@@ -126,8 +126,8 @@ class ContactRecord {
126
126
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
127
127
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
128
128
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
129
- /** Access the raw underlying OdinRecord (null for new records) */
130
- get raw() { return this._record; }
129
+ /** Access the underlying OdinRecord (null for new records) */
130
+ get record() { return this._record; }
131
131
  // ============================================
132
132
  // TYPED LINK ACCESSORS
133
133
  // ============================================
@@ -170,8 +170,8 @@ export declare class ContractBuyOutRecord {
170
170
  get stage(): PipelineStageEntity | undefined;
171
171
  get createdAt(): string | undefined;
172
172
  get updatedAt(): string | undefined;
173
- /** Access the raw underlying OdinRecord (null for new records) */
174
- get raw(): OdinRecord<ContractBuyOutProperties> | null;
173
+ /** Access the underlying OdinRecord (null for new records) */
174
+ get record(): OdinRecord<ContractBuyOutProperties> | null;
175
175
  /**
176
176
  * Check if this record is of type DEFAULT
177
177
  * This is the default record type
@@ -82,10 +82,10 @@ class MoveCboToApprovedFlowBuilder {
82
82
  */
83
83
  execute() {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
- const rawRecord = this._record.raw;
86
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
85
+ const record = this._record.record;
86
+ if (!(record === null || record === void 0 ? void 0 : record.id))
87
87
  throw new Error('Cannot execute flow on unsaved record');
88
- const result = yield this._provider._applyAction('OrderModule', 'ContractBuyOut', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'MoveCboToApproved', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CreditBuyOutStageApproved' }, this._options));
88
+ const result = yield this._provider._applyAction('OrderModule', 'ContractBuyOut', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCboToApproved', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CreditBuyOutStageApproved' }, this._options));
89
89
  // Clear pending links on the record after execution
90
90
  this._record.clearPendingLinks();
91
91
  return result;
@@ -139,10 +139,10 @@ class MoveCboToReceivedFlowBuilder {
139
139
  */
140
140
  execute() {
141
141
  return __awaiter(this, void 0, void 0, function* () {
142
- const rawRecord = this._record.raw;
143
- if (!(rawRecord === null || rawRecord === void 0 ? void 0 : rawRecord.id))
142
+ const record = this._record.record;
143
+ if (!(record === null || record === void 0 ? void 0 : record.id))
144
144
  throw new Error('Cannot execute flow on unsaved record');
145
- const result = yield this._provider._applyAction('OrderModule', 'ContractBuyOut', Object.assign({ id: rawRecord.id, entity: rawRecord.entity, type: rawRecord.type, actionName: 'MoveCboToReceived', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CreditBuyOutStageReceived' }, this._options));
145
+ const result = yield this._provider._applyAction('OrderModule', 'ContractBuyOut', Object.assign({ id: record.id, entity: record.entity, type: record.type, actionName: 'MoveCboToReceived', steps: this._steps, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'CreditBuyOutStageReceived' }, this._options));
146
146
  // Clear pending links on the record after execution
147
147
  this._record.clearPendingLinks();
148
148
  return result;
@@ -178,8 +178,8 @@ class ContractBuyOutRecord {
178
178
  get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
179
179
  get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
180
180
  get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
181
- /** Access the raw underlying OdinRecord (null for new records) */
182
- get raw() { return this._record; }
181
+ /** Access the underlying OdinRecord (null for new records) */
182
+ get record() { return this._record; }
183
183
  // ============================================
184
184
  // TYPE GUARDS
185
185
  // ============================================
@@ -51,8 +51,8 @@ export declare class ConversationRecord {
51
51
  get stage(): PipelineStageEntity | undefined;
52
52
  get createdAt(): string | undefined;
53
53
  get updatedAt(): string | undefined;
54
- /** Access the raw underlying OdinRecord (null for new records) */
55
- get raw(): OdinRecord<ConversationProperties> | null;
54
+ /** Access the underlying OdinRecord (null for new records) */
55
+ get record(): OdinRecord<ConversationProperties> | null;
56
56
  /**
57
57
  * Check if this record is of type DEFAULT
58
58
  * This is the default record type