@d19n/youfibre-odin-sdk 2.0.13-beta.0 → 2.0.13-beta.1

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 (233) hide show
  1. package/README.md +2 -1
  2. package/dist/actions-v2/AddressUpdateDto.d.ts +8 -1
  3. package/dist/actions-v2/CreateOrderFromBrskDto.d.ts +56 -0
  4. package/dist/actions-v2/CreateOrderFromBrskDto.js +52 -0
  5. package/dist/entities-v2/Product.d.ts +42 -0
  6. package/dist/entities-v2/Product.js +2 -0
  7. package/dist/records-v2/AccountCreditRecord.d.ts +1 -62
  8. package/dist/records-v2/AccountCreditRecord.js +0 -91
  9. package/dist/records-v2/AccountRecord.d.ts +2 -306
  10. package/dist/records-v2/AccountRecord.js +0 -451
  11. package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
  12. package/dist/records-v2/ActivityLogRecord.js +0 -190
  13. package/dist/records-v2/ActivityRecord.d.ts +2 -255
  14. package/dist/records-v2/ActivityRecord.js +0 -387
  15. package/dist/records-v2/AddressRecord.d.ts +0 -321
  16. package/dist/records-v2/AddressRecord.js +0 -532
  17. package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
  18. package/dist/records-v2/AffiliateCodeRecord.js +0 -157
  19. package/dist/records-v2/AppointmentRecord.d.ts +0 -141
  20. package/dist/records-v2/AppointmentRecord.js +0 -235
  21. package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
  22. package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
  23. package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
  24. package/dist/records-v2/BillingRequestRecord.js +0 -271
  25. package/dist/records-v2/BlockageA55Record.d.ts +2 -103
  26. package/dist/records-v2/BlockageA55Record.js +0 -157
  27. package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +1 -21
  28. package/dist/records-v2/BrskEntityMigrationErrorRecord.js +0 -21
  29. package/dist/records-v2/CallEventRecord.d.ts +1 -82
  30. package/dist/records-v2/CallEventRecord.js +0 -124
  31. package/dist/records-v2/CallLegRecord.d.ts +1 -82
  32. package/dist/records-v2/CallLegRecord.js +0 -124
  33. package/dist/records-v2/CallRecord.d.ts +1 -202
  34. package/dist/records-v2/CallRecord.js +0 -322
  35. package/dist/records-v2/CallTransferRecord.d.ts +1 -102
  36. package/dist/records-v2/CallTransferRecord.js +0 -157
  37. package/dist/records-v2/CampaignRecord.d.ts +2 -83
  38. package/dist/records-v2/CampaignRecord.js +0 -124
  39. package/dist/records-v2/CaseRecord.d.ts +2 -418
  40. package/dist/records-v2/CaseRecord.js +0 -667
  41. package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
  42. package/dist/records-v2/ChangeReasonRecord.js +0 -238
  43. package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
  44. package/dist/records-v2/ChurnRequestRecord.js +0 -91
  45. package/dist/records-v2/ContactRecord.d.ts +0 -560
  46. package/dist/records-v2/ContactRecord.js +0 -927
  47. package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
  48. package/dist/records-v2/ContractBuyOutRecord.js +0 -256
  49. package/dist/records-v2/ConversationFeedbackRecord.d.ts +1 -102
  50. package/dist/records-v2/ConversationFeedbackRecord.js +0 -157
  51. package/dist/records-v2/ConversationRecord.d.ts +1 -102
  52. package/dist/records-v2/ConversationRecord.js +0 -157
  53. package/dist/records-v2/CreditNoteRecord.d.ts +0 -81
  54. package/dist/records-v2/CreditNoteRecord.js +0 -136
  55. package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
  56. package/dist/records-v2/CrmDatasetRecord.js +0 -271
  57. package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
  58. package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
  59. package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
  60. package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
  61. package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
  62. package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
  63. package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
  64. package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
  65. package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
  66. package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
  67. package/dist/records-v2/DiscountRecord.d.ts +0 -121
  68. package/dist/records-v2/DiscountRecord.js +0 -202
  69. package/dist/records-v2/EmailRecord.d.ts +2 -230
  70. package/dist/records-v2/EmailRecord.js +0 -336
  71. package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
  72. package/dist/records-v2/EmailSenderRecord.js +0 -58
  73. package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
  74. package/dist/records-v2/EmailTemplateRecord.js +0 -21
  75. package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
  76. package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
  77. package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
  78. package/dist/records-v2/FieldServiceProductRecord.js +0 -156
  79. package/dist/records-v2/FileRecord.d.ts +2 -1211
  80. package/dist/records-v2/FileRecord.js +0 -1902
  81. package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
  82. package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
  83. package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
  84. package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
  85. package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
  86. package/dist/records-v2/InvoiceItemRecord.js +0 -69
  87. package/dist/records-v2/InvoiceRecord.d.ts +2 -399
  88. package/dist/records-v2/InvoiceRecord.js +0 -635
  89. package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
  90. package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
  91. package/dist/records-v2/LeadRecord.d.ts +0 -261
  92. package/dist/records-v2/LeadRecord.js +0 -433
  93. package/dist/records-v2/MessageRecord.d.ts +2 -99
  94. package/dist/records-v2/MessageRecord.js +0 -140
  95. package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
  96. package/dist/records-v2/NetworkDeviceRecord.js +0 -58
  97. package/dist/records-v2/NoteRecord.d.ts +1 -1121
  98. package/dist/records-v2/NoteRecord.js +0 -1839
  99. package/dist/records-v2/OfferRecord.d.ts +2 -154
  100. package/dist/records-v2/OfferRecord.js +0 -221
  101. package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
  102. package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
  103. package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
  104. package/dist/records-v2/OhExternalAuditRecord.js +0 -124
  105. package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
  106. package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
  107. package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
  108. package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
  109. package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
  110. package/dist/records-v2/OhRetroAuditRecord.js +0 -124
  111. package/dist/records-v2/OneTouchSwitchRecord.d.ts +2 -255
  112. package/dist/records-v2/OneTouchSwitchRecord.js +0 -387
  113. package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
  114. package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
  115. package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
  116. package/dist/records-v2/OrderCheckRecord.js +0 -37
  117. package/dist/records-v2/OrderItemRecord.d.ts +0 -280
  118. package/dist/records-v2/OrderItemRecord.js +0 -465
  119. package/dist/records-v2/OrderKciRecord.d.ts +1 -42
  120. package/dist/records-v2/OrderKciRecord.js +0 -58
  121. package/dist/records-v2/OrderRecord.d.ts +29 -620
  122. package/dist/records-v2/OrderRecord.js +36 -1026
  123. package/dist/records-v2/OutageRecord.d.ts +1 -42
  124. package/dist/records-v2/OutageRecord.js +0 -58
  125. package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
  126. package/dist/records-v2/OverlayRealA55Record.js +0 -124
  127. package/dist/records-v2/PICRequestRecord.d.ts +1 -62
  128. package/dist/records-v2/PICRequestRecord.js +0 -91
  129. package/dist/records-v2/PaymentMethodRecord.d.ts +0 -121
  130. package/dist/records-v2/PaymentMethodRecord.js +0 -202
  131. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
  132. package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
  133. package/dist/records-v2/PaymentRecord.d.ts +1 -82
  134. package/dist/records-v2/PaymentRecord.js +0 -124
  135. package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
  136. package/dist/records-v2/PermissionToFailRecord.js +0 -103
  137. package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
  138. package/dist/records-v2/PgAccountValidationRecord.js +0 -21
  139. package/dist/records-v2/PgContactRecord.d.ts +1 -62
  140. package/dist/records-v2/PgContactRecord.js +0 -91
  141. package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
  142. package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
  143. package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
  144. package/dist/records-v2/PgDisputeRecord.js +0 -91
  145. package/dist/records-v2/PgFileAllocationRecord.d.ts +2 -115
  146. package/dist/records-v2/PgFileAllocationRecord.js +0 -156
  147. package/dist/records-v2/PgLogRecord.d.ts +1 -21
  148. package/dist/records-v2/PgLogRecord.js +0 -21
  149. package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
  150. package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
  151. package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
  152. package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
  153. package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
  154. package/dist/records-v2/PgTransactionRecord.js +0 -189
  155. package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
  156. package/dist/records-v2/PgVocalinkRecord.js +0 -21
  157. package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
  158. package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
  159. package/dist/records-v2/PgWebhookRecord.d.ts +1 -122
  160. package/dist/records-v2/PgWebhookRecord.js +0 -190
  161. package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
  162. package/dist/records-v2/PhoneNumberRecord.js +0 -70
  163. package/dist/records-v2/PriceBookRecord.d.ts +0 -21
  164. package/dist/records-v2/PriceBookRecord.js +0 -37
  165. package/dist/records-v2/ProductRecord.d.ts +2 -258
  166. package/dist/records-v2/ProductRecord.js +0 -351
  167. package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
  168. package/dist/records-v2/PushNotificationRecord.js +0 -256
  169. package/dist/records-v2/ReferralRecord.d.ts +2 -143
  170. package/dist/records-v2/ReferralRecord.js +0 -223
  171. package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
  172. package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
  173. package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
  174. package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
  175. package/dist/records-v2/ReturnsRecord.d.ts +1 -62
  176. package/dist/records-v2/ReturnsRecord.js +0 -91
  177. package/dist/records-v2/RewardRecord.d.ts +2 -123
  178. package/dist/records-v2/RewardRecord.js +0 -190
  179. package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
  180. package/dist/records-v2/SalesTerritoryRecord.js +0 -107
  181. package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
  182. package/dist/records-v2/ScheduleSlotRecord.js +0 -58
  183. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
  184. package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
  185. package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
  186. package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
  187. package/dist/records-v2/ServiceRecord.d.ts +0 -40
  188. package/dist/records-v2/ServiceRecord.js +0 -69
  189. package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
  190. package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
  191. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
  192. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
  193. package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
  194. package/dist/records-v2/SmsMessageRecord.js +0 -255
  195. package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
  196. package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
  197. package/dist/records-v2/TeamRecord.d.ts +0 -101
  198. package/dist/records-v2/TeamRecord.js +0 -169
  199. package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
  200. package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
  201. package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
  202. package/dist/records-v2/TimeSlotRecord.js +0 -37
  203. package/dist/records-v2/TransactionRecord.d.ts +1 -181
  204. package/dist/records-v2/TransactionRecord.js +0 -288
  205. package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
  206. package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
  207. package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
  208. package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
  209. package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
  210. package/dist/records-v2/UgExternalAuditRecord.js +0 -124
  211. package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
  212. package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
  213. package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
  214. package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
  215. package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
  216. package/dist/records-v2/UgRetroAuditRecord.js +0 -124
  217. package/dist/records-v2/UserRecord.d.ts +0 -400
  218. package/dist/records-v2/UserRecord.js +0 -663
  219. package/dist/records-v2/VisitRecord.d.ts +0 -121
  220. package/dist/records-v2/VisitRecord.js +0 -202
  221. package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
  222. package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
  223. package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
  224. package/dist/records-v2/WayleaveAuditRecord.js +0 -124
  225. package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
  226. package/dist/records-v2/WorkOrderRecord.js +0 -1865
  227. package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
  228. package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
  229. package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
  230. package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
  231. package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
  232. package/dist/records-v2/YfStockAuditRecord.js +0 -157
  233. package/package.json +1 -1
package/README.md CHANGED
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
352
352
 
353
353
  ## Actions
354
354
 
355
- This SDK includes **578** actions.
355
+ This SDK includes **579** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -376,6 +376,7 @@ This SDK includes **578** actions.
376
376
  | `ChangeBillingDay` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ChangeBillingDay |
377
377
  | `ClearOrderDeactivateOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ClearOrderDeactivateOnDate |
378
378
  | `CreateInstallWorkOrderFlow` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Flow.CreateInstallWorkOrderFlow |
379
+ | `CreateOrderFromBrsk` | CREATE | k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk |
379
380
  | `CreateRecontractOrder` | CREATE | k1.t-hEOJjsDb.OrderModule.Order.Create.CreateRecontractOrder |
380
381
  | `DeactivateOrderDunning` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.DeactivateOrderDunning |
381
382
  | `ManageCommision` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ManageCommision |
@@ -22,7 +22,7 @@ export interface AddressUpdateMessage extends OdinRecordUpdatedEvent<AddressUpda
22
22
  * Properties for AddressUpdate action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 7
25
+ * @property Optional fields: 8
26
26
  */
27
27
  export interface AddressUpdateProperties {
28
28
  /**
@@ -74,6 +74,13 @@ export interface AddressUpdateProperties {
74
74
  * @type {TEXT}
75
75
  */
76
76
  PostTown?: string | null;
77
+ /**
78
+ * providers
79
+ *
80
+ * comma separated list of network providers servicing the address (Sales - Address)
81
+ * @type {TEXT}
82
+ */
83
+ Providers?: string | null;
77
84
  }
78
85
  /**
79
86
  * AddressUpdate
@@ -0,0 +1,56 @@
1
+ /**
2
+ * CreateOrderFromBrsk Action DTO
3
+ *
4
+ * CreateOrderFromBrsk
5
+ *
6
+ * @module OrderModule
7
+ * @entity Order
8
+ * @actionKey CreateOrderFromBrsk
9
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateOrderFromBrsk created events
16
+ *
17
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
18
+ */
19
+ export interface CreateOrderFromBrskMessage extends OdinRecordCreatedEvent<CreateOrderFromBrskDto, CreateOrderFromBrskProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateOrderFromBrsk action
23
+ *
24
+ */
25
+ export interface CreateOrderFromBrskProperties {
26
+ }
27
+ /**
28
+ * CreateOrderFromBrsk
29
+ *
30
+ * @actionType CREATE - Creates a new Order record
31
+ * @module OrderModule
32
+ * @entity Order
33
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
34
+ * @permission schema.action.createorderfrombrsk.trigger
35
+ * @benchmark This action is tracked for performance benchmarks
36
+ */
37
+ export declare class CreateOrderFromBrskDto extends OdinRecordCreateDto<CreateOrderFromBrskProperties> {
38
+ /** Used by SDK generators to identify action type */
39
+ static readonly ACTION_TYPE = "CREATE";
40
+ static readonly ACTION_KEY = "CreateOrderFromBrsk";
41
+ static readonly MODULE_NAME = "OrderModule";
42
+ static readonly ENTITIES: string[];
43
+ static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk";
44
+ static readonly PERMISSION = "schema.action.createorderfrombrsk.trigger";
45
+ /** Step metadata - entity this action targets */
46
+ static readonly STEP_ENTITY = "OrderModule:Order";
47
+ static readonly STEP_SCHEMA_ID = "a5fc0677-e439-4d6f-81e9-e7c05e2fa36c";
48
+ static readonly STEP_SCHEMA_ACTION_ID = "e10a79c8-827a-4720-8715-aa0585bbf973";
49
+ static readonly AUTO_LINK_PARENT = true;
50
+ readonly actionName: string;
51
+ readonly schemaActionId: string;
52
+ readonly entity: string;
53
+ constructor(properties: CreateOrderFromBrskProperties, options?: {
54
+ journeyId?: string;
55
+ });
56
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * CreateOrderFromBrsk Action DTO
4
+ *
5
+ * CreateOrderFromBrsk
6
+ *
7
+ * @module OrderModule
8
+ * @entity Order
9
+ * @actionKey CreateOrderFromBrsk
10
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateOrderFromBrskDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateOrderFromBrsk
19
+ *
20
+ * @actionType CREATE - Creates a new Order record
21
+ * @module OrderModule
22
+ * @entity Order
23
+ * @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
24
+ * @permission schema.action.createorderfrombrsk.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class CreateOrderFromBrskDto extends core_1.OdinRecordCreateDto {
28
+ constructor(properties, options) {
29
+ super({
30
+ entity: 'OrderModule:Order',
31
+ type: undefined,
32
+ properties,
33
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
34
+ });
35
+ this.actionName = 'CreateOrderFromBrsk';
36
+ this.schemaActionId = 'e10a79c8-827a-4720-8715-aa0585bbf973';
37
+ this.entity = 'OrderModule:Order';
38
+ }
39
+ }
40
+ exports.CreateOrderFromBrskDto = CreateOrderFromBrskDto;
41
+ /** Used by SDK generators to identify action type */
42
+ CreateOrderFromBrskDto.ACTION_TYPE = 'CREATE';
43
+ CreateOrderFromBrskDto.ACTION_KEY = 'CreateOrderFromBrsk';
44
+ CreateOrderFromBrskDto.MODULE_NAME = 'OrderModule';
45
+ CreateOrderFromBrskDto.ENTITIES = ['Order'];
46
+ CreateOrderFromBrskDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk';
47
+ CreateOrderFromBrskDto.PERMISSION = 'schema.action.createorderfrombrsk.trigger';
48
+ /** Step metadata - entity this action targets */
49
+ CreateOrderFromBrskDto.STEP_ENTITY = 'OrderModule:Order';
50
+ CreateOrderFromBrskDto.STEP_SCHEMA_ID = 'a5fc0677-e439-4d6f-81e9-e7c05e2fa36c';
51
+ CreateOrderFromBrskDto.STEP_SCHEMA_ACTION_ID = 'e10a79c8-827a-4720-8715-aa0585bbf973';
52
+ CreateOrderFromBrskDto.AUTO_LINK_PARENT = true;
@@ -309,6 +309,8 @@ export declare enum ProductContractType {
309
309
  * Use these constants instead of string literals for type safety
310
310
  */
311
311
  export declare enum ProductPropertyKeys {
312
+ /** External Reference ID */
313
+ ExternalRef = "ExternalRef",
312
314
  /** suggested price to sell a single product (Product Management - Product) */
313
315
  UnitPrice = "UnitPrice",
314
316
  /** promo label pricing box down (Product Management - Product) */
@@ -416,6 +418,11 @@ export declare enum ProductPropertyKeys {
416
418
  * @see ProductModule:Product
417
419
  */
418
420
  export interface ProductProperties {
421
+ /** External Reference ID
422
+ *
423
+ * @type {TEXT}
424
+ */
425
+ ExternalRef: string;
419
426
  /** suggested price to sell a single product (Product Management - Product)
420
427
  *
421
428
  * @type {CURRENCY}
@@ -728,6 +735,11 @@ export interface ProductProperties {
728
735
  * @see ProductModule:Product
729
736
  */
730
737
  export interface BundleProductProperties {
738
+ /** External Reference ID
739
+ *
740
+ * @type {TEXT}
741
+ */
742
+ ExternalRef: string;
731
743
  /** suggested price to sell a single product (Product Management - Product)
732
744
  *
733
745
  * @type {CURRENCY}
@@ -1040,6 +1052,11 @@ export interface BundleProductProperties {
1040
1052
  * @see ProductModule:Product
1041
1053
  */
1042
1054
  export interface InternetProductProperties {
1055
+ /** External Reference ID
1056
+ *
1057
+ * @type {TEXT}
1058
+ */
1059
+ ExternalRef: string;
1043
1060
  /** suggested price to sell a single product (Product Management - Product)
1044
1061
  *
1045
1062
  * @type {CURRENCY}
@@ -1352,6 +1369,11 @@ export interface InternetProductProperties {
1352
1369
  * @see ProductModule:Product
1353
1370
  */
1354
1371
  export interface LaborProductProperties {
1372
+ /** External Reference ID
1373
+ *
1374
+ * @type {TEXT}
1375
+ */
1376
+ ExternalRef: string;
1355
1377
  /** suggested price to sell a single product (Product Management - Product)
1356
1378
  *
1357
1379
  * @type {CURRENCY}
@@ -1664,6 +1686,11 @@ export interface LaborProductProperties {
1664
1686
  * @see ProductModule:Product
1665
1687
  */
1666
1688
  export interface LandlineProductProperties {
1689
+ /** External Reference ID
1690
+ *
1691
+ * @type {TEXT}
1692
+ */
1693
+ ExternalRef: string;
1667
1694
  /** suggested price to sell a single product (Product Management - Product)
1668
1695
  *
1669
1696
  * @type {CURRENCY}
@@ -1976,6 +2003,11 @@ export interface LandlineProductProperties {
1976
2003
  * @see ProductModule:Product
1977
2004
  */
1978
2005
  export interface MeshProductProperties {
2006
+ /** External Reference ID
2007
+ *
2008
+ * @type {TEXT}
2009
+ */
2010
+ ExternalRef: string;
1979
2011
  /** suggested price to sell a single product (Product Management - Product)
1980
2012
  *
1981
2013
  * @type {CURRENCY}
@@ -2288,6 +2320,11 @@ export interface MeshProductProperties {
2288
2320
  * @see ProductModule:Product
2289
2321
  */
2290
2322
  export interface MobileProductProperties {
2323
+ /** External Reference ID
2324
+ *
2325
+ * @type {TEXT}
2326
+ */
2327
+ ExternalRef: string;
2291
2328
  /** suggested price to sell a single product (Product Management - Product)
2292
2329
  *
2293
2330
  * @type {CURRENCY}
@@ -2600,6 +2637,11 @@ export interface MobileProductProperties {
2600
2637
  * @see ProductModule:Product
2601
2638
  */
2602
2639
  export interface TelevisionProductProperties {
2640
+ /** External Reference ID
2641
+ *
2642
+ * @type {TEXT}
2643
+ */
2644
+ ExternalRef: string;
2603
2645
  /** suggested price to sell a single product (Product Management - Product)
2604
2646
  *
2605
2647
  * @type {CURRENCY}
@@ -323,6 +323,8 @@ var ProductContractType;
323
323
  */
324
324
  var ProductPropertyKeys;
325
325
  (function (ProductPropertyKeys) {
326
+ /** External Reference ID */
327
+ ProductPropertyKeys["ExternalRef"] = "ExternalRef";
326
328
  /** suggested price to sell a single product (Product Management - Product) */
327
329
  ProductPropertyKeys["UnitPrice"] = "UnitPrice";
328
330
  /** promo label pricing box down (Product Management - Product) */
@@ -13,22 +13,15 @@
13
13
  * await record.createAccountCredit({ ... }).execute();
14
14
  * ```
15
15
  *
16
- * Entity Types: DEFAULT
17
- *
18
16
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
17
  */
20
18
  import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
21
19
  import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
22
20
  import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
23
21
  import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
24
- import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
25
22
  import { AccountCreditProperties } from '../entities-v2/AccountCredit';
26
23
  import { CreateAccountCreditProperties } from '../actions-v2/CreateAccountCreditDto';
27
24
  import { UpdateAccountCreditBalanceProperties } from '../actions-v2/UpdateAccountCreditBalanceDto';
28
- import { ContactRecord } from './ContactRecord';
29
- import { InvoiceRecord } from './InvoiceRecord';
30
- /** Valid entity types for AccountCredit */
31
- export declare type AccountCreditType = 'DEFAULT';
32
25
  /**
33
26
  * Builder for action execution with dryRun support
34
27
  *
@@ -92,8 +85,6 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
92
85
  private _provider;
93
86
  private _pendingLinks;
94
87
  private _preGeneratedId;
95
- private _contacts?;
96
- private _invoices?;
97
88
  /**
98
89
  * Create a record wrapper.
99
90
  * @param record - The underlying record, or null for create operations
@@ -106,7 +97,7 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
106
97
  /** Record ID - always available (pre-generated for new records) */
107
98
  get id(): string;
108
99
  get entity(): string;
109
- get type(): AccountCreditType | undefined;
100
+ get type(): string | undefined;
110
101
  /** Record properties - empty object for new (unsaved) records */
111
102
  get properties(): TProps;
112
103
  get title(): string | undefined;
@@ -119,58 +110,6 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
119
110
  get groups(): string[];
120
111
  /** Access the underlying OdinRecord (null for new records) */
121
112
  get record(): OdinRecord<TProps> | null;
122
- /**
123
- * Type guard: check if this record is of type DEFAULT
124
- *
125
- * When this returns true, TypeScript automatically narrows the type,
126
- * giving you access to DEFAULT-specific properties.
127
- *
128
- * @example
129
- * ```typescript
130
- * if (record.isDefault()) {
131
- * // TypeScript knows record.properties is AccountCreditProperties
132
- * console.log(record.properties.SomeTypeSpecificField);
133
- * }
134
- * ```
135
- * @remarks This is the default record type
136
- */
137
- isDefault(): this is AccountCreditRecord<AccountCreditProperties>;
138
- /** Valid labels for Contact associations */
139
- static readonly contactsLabels: readonly ["Contact__AccountCredit"];
140
- /**
141
- * Access linked Contact records
142
- * @remarks Available labels: Contact__AccountCredit
143
- * @throws Error if called on a new (unsaved) record
144
- *
145
- * @example
146
- * ```typescript
147
- * // Get all linked Contact records
148
- * const items = await record.contacts.list();
149
- * const first = await record.contacts.first();
150
- *
151
- * // Filter by label
152
- * const specific = await record.contacts.first({ label: 'Contact__AccountCredit' });
153
- * ```
154
- */
155
- get contacts(): RecordLinkManager<ContactRecord, typeof AccountCreditRecord['contactsLabels'][number]>;
156
- /** Valid labels for Invoice associations */
157
- static readonly invoicesLabels: readonly ["AccountCredit__Invoice"];
158
- /**
159
- * Access linked Invoice records
160
- * @remarks Available labels: AccountCredit__Invoice
161
- * @throws Error if called on a new (unsaved) record
162
- *
163
- * @example
164
- * ```typescript
165
- * // Get all linked Invoice records
166
- * const items = await record.invoices.list();
167
- * const first = await record.invoices.first();
168
- *
169
- * // Filter by label
170
- * const specific = await record.invoices.first({ label: 'AccountCredit__Invoice' });
171
- * ```
172
- */
173
- get invoices(): RecordLinkManager<InvoiceRecord, typeof AccountCreditRecord['invoicesLabels'][number]>;
174
113
  /**
175
114
  * Queue a link to be created with the next action.
176
115
  * Works for both create and update actions.
@@ -14,8 +14,6 @@
14
14
  * await record.createAccountCredit({ ... }).execute();
15
15
  * ```
16
16
  *
17
- * Entity Types: DEFAULT
18
- *
19
17
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
18
  */
21
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -31,9 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
29
  exports.isAccountCreditRecord = exports.AccountCreditRecord = void 0;
32
30
  const uuid_1 = require("uuid");
33
31
  const core_1 = require("@d19n/odin-types/dist/core");
34
- const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
35
- const ContactRecord_1 = require("./ContactRecord");
36
- const InvoiceRecord_1 = require("./InvoiceRecord");
37
32
  /**
38
33
  * Builder for action execution with dryRun support
39
34
  *
@@ -145,85 +140,6 @@ class AccountCreditRecord {
145
140
  /** Access the underlying OdinRecord (null for new records) */
146
141
  get record() { return this._record; }
147
142
  // ============================================
148
- // TYPE GUARDS (with TypeScript type predicates)
149
- // ============================================
150
- /**
151
- * Type guard: check if this record is of type DEFAULT
152
- *
153
- * When this returns true, TypeScript automatically narrows the type,
154
- * giving you access to DEFAULT-specific properties.
155
- *
156
- * @example
157
- * ```typescript
158
- * if (record.isDefault()) {
159
- * // TypeScript knows record.properties is AccountCreditProperties
160
- * console.log(record.properties.SomeTypeSpecificField);
161
- * }
162
- * ```
163
- * @remarks This is the default record type
164
- */
165
- isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
166
- /**
167
- * Access linked Contact records
168
- * @remarks Available labels: Contact__AccountCredit
169
- * @throws Error if called on a new (unsaved) record
170
- *
171
- * @example
172
- * ```typescript
173
- * // Get all linked Contact records
174
- * const items = await record.contacts.list();
175
- * const first = await record.contacts.first();
176
- *
177
- * // Filter by label
178
- * const specific = await record.contacts.first({ label: 'Contact__AccountCredit' });
179
- * ```
180
- */
181
- get contacts() {
182
- var _a;
183
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
184
- throw new Error('Cannot access links on a new (unsaved) record');
185
- if (!this._contacts) {
186
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
187
- sourceEntity: 'BillingModule:AccountCredit',
188
- targetEntity: 'CrmModule:Contact',
189
- targetModuleName: 'CrmModule',
190
- targetEntityName: 'Contact',
191
- labels: ['Contact__AccountCredit'],
192
- }, ContactRecord_1.ContactRecord);
193
- }
194
- return this._contacts;
195
- }
196
- /**
197
- * Access linked Invoice records
198
- * @remarks Available labels: AccountCredit__Invoice
199
- * @throws Error if called on a new (unsaved) record
200
- *
201
- * @example
202
- * ```typescript
203
- * // Get all linked Invoice records
204
- * const items = await record.invoices.list();
205
- * const first = await record.invoices.first();
206
- *
207
- * // Filter by label
208
- * const specific = await record.invoices.first({ label: 'AccountCredit__Invoice' });
209
- * ```
210
- */
211
- get invoices() {
212
- var _a;
213
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
214
- throw new Error('Cannot access links on a new (unsaved) record');
215
- if (!this._invoices) {
216
- this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
217
- sourceEntity: 'BillingModule:AccountCredit',
218
- targetEntity: 'BillingModule:Invoice',
219
- targetModuleName: 'BillingModule',
220
- targetEntityName: 'Invoice',
221
- labels: ['AccountCredit__Invoice'],
222
- }, InvoiceRecord_1.InvoiceRecord);
223
- }
224
- return this._invoices;
225
- }
226
- // ============================================
227
143
  // LINK MANAGEMENT
228
144
  // ============================================
229
145
  /**
@@ -339,13 +255,6 @@ class AccountCreditRecord {
339
255
  }
340
256
  }
341
257
  exports.AccountCreditRecord = AccountCreditRecord;
342
- // ============================================
343
- // TYPED LINK ACCESSORS
344
- // ============================================
345
- /** Valid labels for Contact associations */
346
- AccountCreditRecord.contactsLabels = ['Contact__AccountCredit'];
347
- /** Valid labels for Invoice associations */
348
- AccountCreditRecord.invoicesLabels = ['AccountCredit__Invoice'];
349
258
  /** Type guard to check if an object is a AccountCreditRecord */
350
259
  function isAccountCreditRecord(obj) {
351
260
  return obj instanceof AccountCreditRecord;