@d19n/youfibre-odin-sdk 2.0.266 → 2.0.270

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 (61) hide show
  1. package/README.md +9 -2
  2. package/dist/actions-v2/InvoiceUpdateDto.d.ts +9 -1
  3. package/dist/actions-v2/PauseCallRecordingDto.d.ts +73 -0
  4. package/dist/actions-v2/PauseCallRecordingDto.js +56 -0
  5. package/dist/actions-v2/ResumeCallRecordingDto.d.ts +73 -0
  6. package/dist/actions-v2/ResumeCallRecordingDto.js +56 -0
  7. package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +12 -10
  8. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.d.ts +80 -0
  9. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.js +56 -0
  10. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.d.ts +73 -0
  11. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.js +56 -0
  12. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.d.ts +79 -0
  13. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.js +56 -0
  14. package/dist/actions-v2/UpdateContactDto.d.ts +8 -1
  15. package/dist/actions-v2/VisitCreateSalesAppDto.d.ts +67 -0
  16. package/dist/actions-v2/VisitCreateSalesAppDto.js +54 -0
  17. package/dist/api-sdk-v2/AddressApi.d.ts +2 -2
  18. package/dist/api-sdk-v2/AddressApi.js +6 -6
  19. package/dist/api-sdk-v2/ContactApi.d.ts +4 -4
  20. package/dist/api-sdk-v2/ContactApi.js +12 -12
  21. package/dist/api-sdk-v2/FileApi.d.ts +2 -0
  22. package/dist/api-sdk-v2/FileApi.js +6 -0
  23. package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
  24. package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
  25. package/dist/api-sdk-v2/YfWifiSurveyApi.d.ts +50 -0
  26. package/dist/api-sdk-v2/YfWifiSurveyApi.js +161 -0
  27. package/dist/db-sdk-v2/AddressDb.d.ts +2 -2
  28. package/dist/db-sdk-v2/AddressDb.js +6 -6
  29. package/dist/db-sdk-v2/ContactDb.d.ts +4 -4
  30. package/dist/db-sdk-v2/ContactDb.js +12 -12
  31. package/dist/db-sdk-v2/FileDb.d.ts +2 -0
  32. package/dist/db-sdk-v2/FileDb.js +6 -0
  33. package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
  34. package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
  35. package/dist/db-sdk-v2/YfWifiSurveyDb.d.ts +122 -0
  36. package/dist/db-sdk-v2/YfWifiSurveyDb.js +210 -0
  37. package/dist/entities-v2/Address.d.ts +3 -3
  38. package/dist/entities-v2/Contact.d.ts +52 -46
  39. package/dist/entities-v2/Contact.js +26 -26
  40. package/dist/entities-v2/CustomerDeviceOnt.d.ts +7 -1
  41. package/dist/entities-v2/CustomerDeviceOnt.js +6 -0
  42. package/dist/entities-v2/File.d.ts +3 -0
  43. package/dist/entities-v2/Order.d.ts +7 -0
  44. package/dist/entities-v2/Order.js +2 -0
  45. package/dist/entities-v2/PaymentMethodRefund.d.ts +19 -0
  46. package/dist/entities-v2/PaymentMethodRefund.js +8 -0
  47. package/dist/entities-v2/WorkOrder.d.ts +7 -0
  48. package/dist/entities-v2/WorkOrder.js +5 -1
  49. package/dist/entities-v2/YfWifiSurvey.d.ts +164 -0
  50. package/dist/entities-v2/YfWifiSurvey.js +102 -0
  51. package/dist/records-v2/AddressRecord.d.ts +20 -20
  52. package/dist/records-v2/AddressRecord.js +33 -33
  53. package/dist/records-v2/CallRecord.d.ts +108 -0
  54. package/dist/records-v2/CallRecord.js +116 -0
  55. package/dist/records-v2/CaseRecord.d.ts +28 -0
  56. package/dist/records-v2/CaseRecord.js +37 -0
  57. package/dist/records-v2/ContactRecord.d.ts +26 -27
  58. package/dist/records-v2/ContactRecord.js +40 -48
  59. package/dist/records-v2/VisitRecord.d.ts +29 -0
  60. package/dist/records-v2/VisitRecord.js +36 -0
  61. package/package.json +3 -2
@@ -548,6 +548,8 @@ export declare enum OrderPropertyKeys {
548
548
  CashbackApprovalDate = "CashbackApprovalDate",
549
549
  /** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE. */
550
550
  CommittedDate = "CommittedDate",
551
+ /** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service. */
552
+ RequestedActivationDate = "RequestedActivationDate",
551
553
  /** I have read and confirm receipt of the Contract Summary. I consent to the Privacy Policy and acknowledge receipt of the T&Cs. (Sales - Contact) */
552
554
  ContractConsent = "ContractConsent",
553
555
  /** AltContactMethod */
@@ -1138,6 +1140,11 @@ export interface OrderProperties {
1138
1140
  * @type {DATE}
1139
1141
  */
1140
1142
  CommittedDate: string;
1143
+ /** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service.
1144
+ *
1145
+ * @type {DATE}
1146
+ */
1147
+ RequestedActivationDate: string;
1141
1148
  /** I have read and confirm receipt of the Contract Summary. I consent to the Privacy Policy and acknowledge receipt of the T&Cs. (Sales - Contact)
1142
1149
  *
1143
1150
  * @type {BOOLEAN}
@@ -532,6 +532,8 @@ var OrderPropertyKeys;
532
532
  OrderPropertyKeys["CashbackApprovalDate"] = "CashbackApprovalDate";
533
533
  /** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE. */
534
534
  OrderPropertyKeys["CommittedDate"] = "CommittedDate";
535
+ /** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service. */
536
+ OrderPropertyKeys["RequestedActivationDate"] = "RequestedActivationDate";
535
537
  /** I have read and confirm receipt of the Contract Summary. I consent to the Privacy Policy and acknowledge receipt of the T&Cs. (Sales - Contact) */
536
538
  OrderPropertyKeys["ContractConsent"] = "ContractConsent";
537
539
  /** AltContactMethod */
@@ -39,6 +39,8 @@ export declare enum DefaultPaymentMethodRefundStageNames {
39
39
  ToDo = "To-Do",
40
40
  /** PaymentMethodRefundStageInProgress */
41
41
  InProgress = "In-Progress",
42
+ /** The PMR is currently under retry process. */
43
+ Retrying = "Retrying",
42
44
  /** PaymentMethodRefundStageDone (success) */
43
45
  Done = "Done",
44
46
  /** The transaction failed in Payment Gateway (fail) */
@@ -55,6 +57,8 @@ export declare enum DefaultPaymentMethodRefundStageKeys {
55
57
  PaymentMethodRefundStageToDo = "PaymentMethodRefundStageToDo",
56
58
  /** PaymentMethodRefundStageInProgress */
57
59
  PaymentMethodRefundStageInProgress = "PaymentMethodRefundStageInProgress",
60
+ /** The PMR is currently under retry process. */
61
+ PaymentMethodRefundPipelineStageRetrying = "PaymentMethodRefundPipelineStageRetrying",
58
62
  /** PaymentMethodRefundStageDone */
59
63
  PaymentMethodRefundStageDone = "PaymentMethodRefundStageDone",
60
64
  /** The transaction failed in Payment Gateway */
@@ -100,6 +104,10 @@ export declare enum PaymentMethodRefundPropertyKeys {
100
104
  ContactId = "ContactId",
101
105
  /** Work Order Ref (Finance - PaymentMethodRefund) */
102
106
  WorkOrderRef = "WorkOrderRef",
107
+ /** Number of times the refund was retried after error */
108
+ RetryCount = "RetryCount",
109
+ /** The last time the refund was retried */
110
+ LastRetryDate = "LastRetryDate",
103
111
  /** External Reference from provider */
104
112
  ExternalRef = "ExternalRef"
105
113
  }
@@ -162,6 +170,17 @@ export interface PaymentMethodRefundProperties {
162
170
  * @type {LOOKUP}
163
171
  */
164
172
  WorkOrderRef: string;
173
+ /** Number of times the refund was retried after error
174
+ *
175
+ * @type {NUMBER}
176
+ * @default 0
177
+ */
178
+ RetryCount: number;
179
+ /** The last time the refund was retried
180
+ *
181
+ * @type {DATE}
182
+ */
183
+ LastRetryDate: string;
165
184
  /** External Reference from provider
166
185
  *
167
186
  * @type {TEXT}
@@ -33,6 +33,8 @@ var DefaultPaymentMethodRefundStageNames;
33
33
  DefaultPaymentMethodRefundStageNames["ToDo"] = "To-Do";
34
34
  /** PaymentMethodRefundStageInProgress */
35
35
  DefaultPaymentMethodRefundStageNames["InProgress"] = "In-Progress";
36
+ /** The PMR is currently under retry process. */
37
+ DefaultPaymentMethodRefundStageNames["Retrying"] = "Retrying";
36
38
  /** PaymentMethodRefundStageDone (success) */
37
39
  DefaultPaymentMethodRefundStageNames["Done"] = "Done";
38
40
  /** The transaction failed in Payment Gateway (fail) */
@@ -50,6 +52,8 @@ var DefaultPaymentMethodRefundStageKeys;
50
52
  DefaultPaymentMethodRefundStageKeys["PaymentMethodRefundStageToDo"] = "PaymentMethodRefundStageToDo";
51
53
  /** PaymentMethodRefundStageInProgress */
52
54
  DefaultPaymentMethodRefundStageKeys["PaymentMethodRefundStageInProgress"] = "PaymentMethodRefundStageInProgress";
55
+ /** The PMR is currently under retry process. */
56
+ DefaultPaymentMethodRefundStageKeys["PaymentMethodRefundPipelineStageRetrying"] = "PaymentMethodRefundPipelineStageRetrying";
53
57
  /** PaymentMethodRefundStageDone */
54
58
  DefaultPaymentMethodRefundStageKeys["PaymentMethodRefundStageDone"] = "PaymentMethodRefundStageDone";
55
59
  /** The transaction failed in Payment Gateway */
@@ -97,6 +101,10 @@ var PaymentMethodRefundPropertyKeys;
97
101
  PaymentMethodRefundPropertyKeys["ContactId"] = "ContactId";
98
102
  /** Work Order Ref (Finance - PaymentMethodRefund) */
99
103
  PaymentMethodRefundPropertyKeys["WorkOrderRef"] = "WorkOrderRef";
104
+ /** Number of times the refund was retried after error */
105
+ PaymentMethodRefundPropertyKeys["RetryCount"] = "RetryCount";
106
+ /** The last time the refund was retried */
107
+ PaymentMethodRefundPropertyKeys["LastRetryDate"] = "LastRetryDate";
100
108
  /** External Reference from provider */
101
109
  PaymentMethodRefundPropertyKeys["ExternalRef"] = "ExternalRef";
102
110
  })(PaymentMethodRefundPropertyKeys = exports.PaymentMethodRefundPropertyKeys || (exports.PaymentMethodRefundPropertyKeys = {}));
@@ -70,6 +70,7 @@ import { WayleaveAuditProperties } from './WayleaveAudit';
70
70
  import { SiteSpecificRiskAssessmentOutcomeFormProperties } from './SiteSpecificRiskAssessmentOutcomeForm';
71
71
  import { DataIssueProperties } from './DataIssue';
72
72
  import { OrderProperties } from './Order';
73
+ import { YfWifiSurveyProperties } from './YfWifiSurvey';
73
74
  /**
74
75
  * Available types for WorkOrder records
75
76
  */
@@ -13835,6 +13836,8 @@ export declare class WorkOrder extends OdinRecord<WorkOrderProperties> {
13835
13836
  DataIssue: OdinLink<LinkedOdinRecord<DataIssueProperties>>;
13836
13837
  /** Linked Order records (Order__WorkOrder) */
13837
13838
  Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
13839
+ /** Linked YfWifiSurvey records (WorkOrder__YfWifiSurvey) */
13840
+ YfWifiSurvey: OdinLink<LinkedOdinRecord<YfWifiSurveyProperties>>;
13838
13841
  }
13839
13842
  /**
13840
13843
  * RabbitMQ routing keys for WorkOrder events
@@ -14136,3 +14139,7 @@ export declare const ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_DELETED = "Field
14136
14139
  export declare const ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_CREATED = "FieldServiceModule.WorkOrder.SiteSpecificRiskAssessmentOutcomeForm.SubDbRecordAssociationCreated";
14137
14140
  /** Event: WorkOrder__SiteSpecificRiskAssessmentOutcomeForm link deleted */
14138
14141
  export declare const ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_DELETED = "FieldServiceModule.WorkOrder.SiteSpecificRiskAssessmentOutcomeForm.SubDbRecordAssociationDeleted";
14142
+ /** Event: WorkOrder__YfWifiSurvey link created */
14143
+ export declare const ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_CREATED = "FieldServiceModule.WorkOrder.YfWifiSurvey.SubDbRecordAssociationCreated";
14144
+ /** Event: WorkOrder__YfWifiSurvey link deleted */
14145
+ export declare const ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_DELETED = "FieldServiceModule.WorkOrder.YfWifiSurvey.SubDbRecordAssociationDeleted";
@@ -16,7 +16,7 @@ exports.WorkOrderSLARagStatus = exports.WorkOrderNextAction = exports.WorkOrderC
16
16
  exports.ROUTING_KEY_WORK_ORDER_SERVICE_UPDATED = exports.ROUTING_KEY_WORK_ORDER_SERVICE_CREATED = exports.ROUTING_KEY_WORK_ORDER_REPLACEMENT_AMCO_DELETED = exports.ROUTING_KEY_WORK_ORDER_REPLACEMENT_AMCO_UPDATED = exports.ROUTING_KEY_WORK_ORDER_REPLACEMENT_AMCO_CREATED = exports.ROUTING_KEY_WORK_ORDER_REMEDIATION_DELETED = exports.ROUTING_KEY_WORK_ORDER_REMEDIATION_UPDATED = exports.ROUTING_KEY_WORK_ORDER_REMEDIATION_CREATED = exports.ROUTING_KEY_WORK_ORDER_PRE_PULL_DELETED = exports.ROUTING_KEY_WORK_ORDER_PRE_PULL_UPDATED = exports.ROUTING_KEY_WORK_ORDER_PRE_PULL_CREATED = exports.ROUTING_KEY_WORK_ORDER_PLANNING_DELETED = exports.ROUTING_KEY_WORK_ORDER_PLANNING_UPDATED = exports.ROUTING_KEY_WORK_ORDER_PLANNING_CREATED = exports.ROUTING_KEY_WORK_ORDER_NETWORK_ADJUSTMENT_DELETED = exports.ROUTING_KEY_WORK_ORDER_NETWORK_ADJUSTMENT_UPDATED = exports.ROUTING_KEY_WORK_ORDER_NETWORK_ADJUSTMENT_CREATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_SERVICE_DELETED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_SERVICE_UPDATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_SERVICE_CREATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_BUSINESS_DELETED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_BUSINESS_UPDATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_BUSINESS_CREATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_DELETED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_UPDATED = exports.ROUTING_KEY_WORK_ORDER_INSTALL_CREATED = exports.ROUTING_KEY_WORK_ORDER_INSPECTION_DELETED = exports.ROUTING_KEY_WORK_ORDER_INSPECTION_UPDATED = exports.ROUTING_KEY_WORK_ORDER_INSPECTION_CREATED = exports.ROUTING_KEY_WORK_ORDER_FINANCE_DELETED = exports.ROUTING_KEY_WORK_ORDER_FINANCE_UPDATED = exports.ROUTING_KEY_WORK_ORDER_FINANCE_CREATED = exports.ROUTING_KEY_WORK_ORDER_DISPATCH_AMCO_DELETED = exports.ROUTING_KEY_WORK_ORDER_DISPATCH_AMCO_UPDATED = exports.ROUTING_KEY_WORK_ORDER_DISPATCH_AMCO_CREATED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_AMCO_DELETED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_AMCO_UPDATED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_AMCO_CREATED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_DELETED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_UPDATED = exports.ROUTING_KEY_WORK_ORDER_COLLECTION_CREATED = exports.ROUTING_KEY_WORK_ORDER_DELETED = exports.ROUTING_KEY_WORK_ORDER_UPDATED = exports.ROUTING_KEY_WORK_ORDER_CREATED = exports.WorkOrder = exports.WorkOrderPropertyKeys = exports.WorkOrderDispatchReason = exports.WorkOrderReTriggerReason = exports.WorkOrderCpe5 = exports.WorkOrderCpe1 = void 0;
17
17
  exports.ROUTING_KEY_LINK_WORK_ORDER_INVOICE_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_INVOICE_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_ALTERNATIVE_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_ALTERNATIVE_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_RETRO_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_RETRO_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_AUDIT_OF_INSTALLATION_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_AUDIT_OF_INSTALLATION_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_VAN_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_VAN_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_RETRO_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_RETRO_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_TOOL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_TOOL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_INSTALL_VERIFICATION_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_INSTALL_VERIFICATION_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_EMAIL_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_EMAIL_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_CONTACT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_FIELD_SERVICE_VISIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_FIELD_SERVICE_VISIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_EXTERNAL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_EXTERNAL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_TEAM_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_TEAM_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_REMEDIATION_OUTCOME_FORM_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_REMEDIATION_OUTCOME_FORM_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_LEAD_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_LEAD_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NOTE_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NOTE_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_FILE_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_FILE_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH2_STAGE_INSTALL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH2_STAGE_INSTALL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_BLOCKAGE_A55_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_BLOCKAGE_A55_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OVERLAY_REAL_A55_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OVERLAY_REAL_A55_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH1_STAGE_INSTALL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH1_STAGE_INSTALL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_VISIT_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_VISIT_AUDIT_CREATED = exports.ROUTING_KEY_WORK_ORDER_WAYLEAVE_DELETED = exports.ROUTING_KEY_WORK_ORDER_WAYLEAVE_UPDATED = exports.ROUTING_KEY_WORK_ORDER_WAYLEAVE_CREATED = exports.ROUTING_KEY_WORK_ORDER_SERVICE_DELETED = void 0;
18
18
  exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_STOCK_COUNT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_STOCK_COUNT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_IN_PROGRESS_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_IN_PROGRESS_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_AUDIT_OF_INSTALLATION_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_AUDIT_OF_INSTALLATION_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_INSTALLATION_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_OH_INSTALLATION_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_FIELD_SERVICE_PRODUCT_ROUTER_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_FIELD_SERVICE_PRODUCT_ROUTER_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_IN_PROGRESS_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_IN_PROGRESS_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_BLOCKAGE_REPORT_A55_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_BLOCKAGE_REPORT_A55_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_PERMISSION_TO_FAIL_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_PERMISSION_TO_FAIL_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_ENGINEER_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_ENGINEER_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_REMEDIATION_REQUIRED_REASON_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_REMEDIATION_REQUIRED_REASON_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_APPOINTMENT_CONFIG_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SERVICE_APPOINTMENT_CONFIG_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_INSTALLATION_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_INSTALLATION_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_SWEEPER_MAINTENANCE_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SWEEPER_MAINTENANCE_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_CUSTOMER_DEVICE_ONT_REMOVAL_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_CUSTOMER_DEVICE_ONT_REMOVAL_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_INTERNAL_INSTALL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_INTERNAL_INSTALL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_CHANGE_REASON_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_CHANGE_REASON_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_ORDER_ITEM_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_ORDER_ITEM_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_FIELD_SERVICE_DISPATCHED_PRODUCT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_FIELD_SERVICE_DISPATCHED_PRODUCT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH_SERVICE_VISIT_SHEET_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NETOMNIA_FTTH_SERVICE_VISIT_SHEET_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_EXTERNAL_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_UG_EXTERNAL_AUDIT_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_NOINSTALL3_AUDIT_OF_INSTALLATION_SHEET_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_NOINSTALL3_AUDIT_OF_INSTALLATION_SHEET_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_ACTIVITY_CREATED = void 0;
19
- exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_CREATED = void 0;
19
+ exports.ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_CREATED = exports.ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_DELETED = exports.ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_CREATED = void 0;
20
20
  const core_1 = require("@d19n/odin-types/dist/core");
21
21
  /**
22
22
  * Available types for WorkOrder records
@@ -1923,3 +1923,7 @@ exports.ROUTING_KEY_LINK_WORK_ORDER_WAYLEAVE_AUDIT_DELETED = 'FieldServiceModule
1923
1923
  exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_CREATED = 'FieldServiceModule.WorkOrder.SiteSpecificRiskAssessmentOutcomeForm.SubDbRecordAssociationCreated';
1924
1924
  /** Event: WorkOrder__SiteSpecificRiskAssessmentOutcomeForm link deleted */
1925
1925
  exports.ROUTING_KEY_LINK_WORK_ORDER_SITE_SPECIFIC_RISK_ASSESSMENT_OUTCOME_FORM_DELETED = 'FieldServiceModule.WorkOrder.SiteSpecificRiskAssessmentOutcomeForm.SubDbRecordAssociationDeleted';
1926
+ /** Event: WorkOrder__YfWifiSurvey link created */
1927
+ exports.ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_CREATED = 'FieldServiceModule.WorkOrder.YfWifiSurvey.SubDbRecordAssociationCreated';
1928
+ /** Event: WorkOrder__YfWifiSurvey link deleted */
1929
+ exports.ROUTING_KEY_LINK_WORK_ORDER_YF_WIFI_SURVEY_DELETED = 'FieldServiceModule.WorkOrder.YfWifiSurvey.SubDbRecordAssociationDeleted';
@@ -0,0 +1,164 @@
1
+ /**
2
+ * YfWifiSurvey Entity Definition
3
+ *
4
+ * One WiFi strength survey per work order, from the engineer app. Per-location readings and positions live in the Readings JSON. Resubmit upserts on WorkOrderId; a refusal is CustomerConsentGiven=false with no readings.
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity YfWifiSurvey
8
+ * @schemaId b50b088f-a1d2-4f66-83b5-7e2a7638dc9d
9
+ *
10
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
11
+ * Generated from Odin schema definition
12
+ */
13
+ import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
+ import { WorkOrderProperties } from './WorkOrder';
15
+ import { FileProperties } from './File';
16
+ /**
17
+ * Available types for YfWifiSurvey records
18
+ */
19
+ export declare enum YfWifiSurveyEntityTypes {
20
+ /** This is the default record type */
21
+ DEFAULT = "DEFAULT"
22
+ }
23
+ /**
24
+ * Valid values for YfWifiSurvey.Source
25
+ *
26
+ * How the readings were measured: DEVICE (Android RSSI), GATEWAY (iOS router probe) or NONE (survey refused).
27
+ *
28
+ * @remarks Available options:
29
+ * - `DEVICE` - Device RSSI (Android)
30
+ * - `GATEWAY` - Gateway probe (iOS)
31
+ * - `NONE` - None (survey refused)
32
+ */
33
+ export declare enum YfWifiSurveySource {
34
+ DEVICE_RSSI_ANDROID = "DEVICE",
35
+ GATEWAY_PROBE_I_OS = "GATEWAY",
36
+ NONE_SURVEY_REFUSED = "NONE"
37
+ }
38
+ /**
39
+ * Property keys for YfWifiSurvey
40
+ * Use these constants instead of string literals for type safety
41
+ */
42
+ export declare enum YfWifiSurveyPropertyKeys {
43
+ /** The work order uuid. UNIQUE, so with upsertOnCreate a resubmit for the same work order updates the existing survey instead of creating a duplicate. */
44
+ WorkOrderId = "WorkOrderId",
45
+ /** Queryable mirror of Readings.schemaVersion, so consumers can filter by contract version without parsing JSON. */
46
+ PayloadSchemaVersion = "PayloadSchemaVersion",
47
+ /** Full survey payload: floors, locations, positions and per-location measurements with raw sample series. Contract v1 lives in spec 2026-08-07-wifi-survey-fields.ts. Null on a refused survey. */
48
+ Readings = "Readings",
49
+ /** False means the customer refused the survey — the record still exists so the refusal is auditable on the work order, with Source=NONE, LocationCount=0 and no Readings. */
50
+ CustomerConsentGiven = "CustomerConsentGiven",
51
+ /** Network name the readings were taken on. Nullable: Android redacts it before the location permission grant, and a refused survey has none. */
52
+ Ssid = "Ssid",
53
+ /** How the readings were measured: DEVICE (Android RSSI), GATEWAY (iOS router probe) or NONE (survey refused). */
54
+ Source = "Source",
55
+ /** Signature image(s) uploaded by the engineer app via s3/files/upload, captured alongside the consent decision. */
56
+ CustomerSignature = "CustomerSignature",
57
+ /** When the survey finished (or the refusal was recorded). Refreshed on resubmit. */
58
+ TestedAt = "TestedAt",
59
+ /** Number of locations recorded in Readings. 0 on a refused survey. */
60
+ LocationCount = "LocationCount"
61
+ }
62
+ /**
63
+ * Properties for YfWifiSurvey records
64
+ *
65
+ * @see FieldServiceModule:YfWifiSurvey
66
+ */
67
+ export interface YfWifiSurveyProperties {
68
+ /** The work order uuid. UNIQUE, so with upsertOnCreate a resubmit for the same work order updates the existing survey instead of creating a duplicate.
69
+ *
70
+ * @type {TEXT}
71
+ * @default
72
+ */
73
+ WorkOrderId: string;
74
+ /** Queryable mirror of Readings.schemaVersion, so consumers can filter by contract version without parsing JSON.
75
+ *
76
+ * @type {NUMBER}
77
+ * @default
78
+ */
79
+ PayloadSchemaVersion: number;
80
+ /** Full survey payload: floors, locations, positions and per-location measurements with raw sample series. Contract v1 lives in spec 2026-08-07-wifi-survey-fields.ts. Null on a refused survey.
81
+ *
82
+ * @type {JSON}
83
+ * @default
84
+ */
85
+ Readings: string;
86
+ /** False means the customer refused the survey — the record still exists so the refusal is auditable on the work order, with Source=NONE, LocationCount=0 and no Readings.
87
+ *
88
+ * @type {BOOLEAN}
89
+ * @default
90
+ */
91
+ CustomerConsentGiven: boolean;
92
+ /** Network name the readings were taken on. Nullable: Android redacts it before the location permission grant, and a refused survey has none.
93
+ *
94
+ * @type {TEXT}
95
+ * @default
96
+ */
97
+ Ssid: string;
98
+ /** How the readings were measured: DEVICE (Android RSSI), GATEWAY (iOS router probe) or NONE (survey refused).
99
+ *
100
+ * @type {ENUM}
101
+ * @default
102
+ * @enum {YfWifiSurveySource}
103
+ */
104
+ Source: YfWifiSurveySource;
105
+ /** Signature image(s) uploaded by the engineer app via s3/files/upload, captured alongside the consent decision.
106
+ *
107
+ * @type {FILE_MULTIPLE}
108
+ * @default
109
+ */
110
+ CustomerSignature: string;
111
+ /** When the survey finished (or the refusal was recorded). Refreshed on resubmit.
112
+ *
113
+ * @type {DATE_TIME}
114
+ * @default
115
+ */
116
+ TestedAt: string;
117
+ /** Number of locations recorded in Readings. 0 on a refused survey.
118
+ *
119
+ * @type {NUMBER}
120
+ * @default
121
+ */
122
+ LocationCount: number;
123
+ }
124
+ /**
125
+ * YfWifiSurvey entity from FieldServiceModule
126
+ *
127
+ * One WiFi strength survey per work order, from the engineer app. Per-location readings and positions live in the Readings JSON. Resubmit upserts on WorkOrderId; a refusal is CustomerConsentGiven=false with no readings.
128
+ *
129
+ * @module FieldServiceModule
130
+ * @entity YfWifiSurvey
131
+ * @schemaId b50b088f-a1d2-4f66-83b5-7e2a7638dc9d
132
+ * @recordPrefix WSV
133
+ * @capabilities searchable, updateable, undeletable, triggerable
134
+ */
135
+ export declare class YfWifiSurvey extends OdinRecord<YfWifiSurveyProperties> {
136
+ entity: 'FieldServiceModule:YfWifiSurvey';
137
+ type: YfWifiSurveyEntityTypes;
138
+ schemaId: 'b50b088f-a1d2-4f66-83b5-7e2a7638dc9d';
139
+ properties: YfWifiSurveyProperties;
140
+ /** Linked WorkOrder records (WorkOrder__YfWifiSurvey) */
141
+ WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
142
+ /** Linked File records (YfWifiSurvey__File) */
143
+ File: OdinLink<LinkedOdinRecord<FileProperties>>;
144
+ }
145
+ /**
146
+ * RabbitMQ routing keys for YfWifiSurvey events
147
+ */
148
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_CREATED = "FieldServiceModule.YfWifiSurvey.SubDbRecordCreated";
149
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_UPDATED = "FieldServiceModule.YfWifiSurvey.SubDbRecordUpdated";
150
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_DELETED = "FieldServiceModule.YfWifiSurvey.SubDbRecordDeleted";
151
+ /**
152
+ * Type-specific routing keys for YfWifiSurvey events
153
+ * Subscribe to these for events on specific entity types only
154
+ */
155
+ /** This is the default record type created */
156
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_CREATED = "FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordCreated";
157
+ /** This is the default record type updated */
158
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_UPDATED = "FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordUpdated";
159
+ /** This is the default record type deleted */
160
+ export declare const ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_DELETED = "FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordDeleted";
161
+ /** Event: YfWifiSurvey__File link created */
162
+ export declare const ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_CREATED = "FieldServiceModule.YfWifiSurvey.File.SubDbRecordAssociationCreated";
163
+ /** Event: YfWifiSurvey__File link deleted */
164
+ export declare const ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_DELETED = "FieldServiceModule.YfWifiSurvey.File.SubDbRecordAssociationDeleted";
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /**
3
+ * YfWifiSurvey Entity Definition
4
+ *
5
+ * One WiFi strength survey per work order, from the engineer app. Per-location readings and positions live in the Readings JSON. Resubmit upserts on WorkOrderId; a refusal is CustomerConsentGiven=false with no readings.
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity YfWifiSurvey
9
+ * @schemaId b50b088f-a1d2-4f66-83b5-7e2a7638dc9d
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ * Generated from Odin schema definition
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_DELETED = exports.ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_CREATED = exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_DELETED = exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_UPDATED = exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_CREATED = exports.ROUTING_KEY_YF_WIFI_SURVEY_DELETED = exports.ROUTING_KEY_YF_WIFI_SURVEY_UPDATED = exports.ROUTING_KEY_YF_WIFI_SURVEY_CREATED = exports.YfWifiSurvey = exports.YfWifiSurveyPropertyKeys = exports.YfWifiSurveySource = exports.YfWifiSurveyEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for YfWifiSurvey records
19
+ */
20
+ var YfWifiSurveyEntityTypes;
21
+ (function (YfWifiSurveyEntityTypes) {
22
+ /** This is the default record type */
23
+ YfWifiSurveyEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(YfWifiSurveyEntityTypes = exports.YfWifiSurveyEntityTypes || (exports.YfWifiSurveyEntityTypes = {}));
25
+ /**
26
+ * Valid values for YfWifiSurvey.Source
27
+ *
28
+ * How the readings were measured: DEVICE (Android RSSI), GATEWAY (iOS router probe) or NONE (survey refused).
29
+ *
30
+ * @remarks Available options:
31
+ * - `DEVICE` - Device RSSI (Android)
32
+ * - `GATEWAY` - Gateway probe (iOS)
33
+ * - `NONE` - None (survey refused)
34
+ */
35
+ var YfWifiSurveySource;
36
+ (function (YfWifiSurveySource) {
37
+ YfWifiSurveySource["DEVICE_RSSI_ANDROID"] = "DEVICE";
38
+ YfWifiSurveySource["GATEWAY_PROBE_I_OS"] = "GATEWAY";
39
+ YfWifiSurveySource["NONE_SURVEY_REFUSED"] = "NONE";
40
+ })(YfWifiSurveySource = exports.YfWifiSurveySource || (exports.YfWifiSurveySource = {}));
41
+ /**
42
+ * Property keys for YfWifiSurvey
43
+ * Use these constants instead of string literals for type safety
44
+ */
45
+ var YfWifiSurveyPropertyKeys;
46
+ (function (YfWifiSurveyPropertyKeys) {
47
+ /** The work order uuid. UNIQUE, so with upsertOnCreate a resubmit for the same work order updates the existing survey instead of creating a duplicate. */
48
+ YfWifiSurveyPropertyKeys["WorkOrderId"] = "WorkOrderId";
49
+ /** Queryable mirror of Readings.schemaVersion, so consumers can filter by contract version without parsing JSON. */
50
+ YfWifiSurveyPropertyKeys["PayloadSchemaVersion"] = "PayloadSchemaVersion";
51
+ /** Full survey payload: floors, locations, positions and per-location measurements with raw sample series. Contract v1 lives in spec 2026-08-07-wifi-survey-fields.ts. Null on a refused survey. */
52
+ YfWifiSurveyPropertyKeys["Readings"] = "Readings";
53
+ /** False means the customer refused the survey — the record still exists so the refusal is auditable on the work order, with Source=NONE, LocationCount=0 and no Readings. */
54
+ YfWifiSurveyPropertyKeys["CustomerConsentGiven"] = "CustomerConsentGiven";
55
+ /** Network name the readings were taken on. Nullable: Android redacts it before the location permission grant, and a refused survey has none. */
56
+ YfWifiSurveyPropertyKeys["Ssid"] = "Ssid";
57
+ /** How the readings were measured: DEVICE (Android RSSI), GATEWAY (iOS router probe) or NONE (survey refused). */
58
+ YfWifiSurveyPropertyKeys["Source"] = "Source";
59
+ /** Signature image(s) uploaded by the engineer app via s3/files/upload, captured alongside the consent decision. */
60
+ YfWifiSurveyPropertyKeys["CustomerSignature"] = "CustomerSignature";
61
+ /** When the survey finished (or the refusal was recorded). Refreshed on resubmit. */
62
+ YfWifiSurveyPropertyKeys["TestedAt"] = "TestedAt";
63
+ /** Number of locations recorded in Readings. 0 on a refused survey. */
64
+ YfWifiSurveyPropertyKeys["LocationCount"] = "LocationCount";
65
+ })(YfWifiSurveyPropertyKeys = exports.YfWifiSurveyPropertyKeys || (exports.YfWifiSurveyPropertyKeys = {}));
66
+ /**
67
+ * YfWifiSurvey entity from FieldServiceModule
68
+ *
69
+ * One WiFi strength survey per work order, from the engineer app. Per-location readings and positions live in the Readings JSON. Resubmit upserts on WorkOrderId; a refusal is CustomerConsentGiven=false with no readings.
70
+ *
71
+ * @module FieldServiceModule
72
+ * @entity YfWifiSurvey
73
+ * @schemaId b50b088f-a1d2-4f66-83b5-7e2a7638dc9d
74
+ * @recordPrefix WSV
75
+ * @capabilities searchable, updateable, undeletable, triggerable
76
+ */
77
+ class YfWifiSurvey extends core_1.OdinRecord {
78
+ }
79
+ exports.YfWifiSurvey = YfWifiSurvey;
80
+ // ============================================
81
+ // RABBITMQ EVENT ROUTING KEYS
82
+ // ============================================
83
+ /**
84
+ * RabbitMQ routing keys for YfWifiSurvey events
85
+ */
86
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_CREATED = 'FieldServiceModule.YfWifiSurvey.SubDbRecordCreated';
87
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_UPDATED = 'FieldServiceModule.YfWifiSurvey.SubDbRecordUpdated';
88
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_DELETED = 'FieldServiceModule.YfWifiSurvey.SubDbRecordDeleted';
89
+ /**
90
+ * Type-specific routing keys for YfWifiSurvey events
91
+ * Subscribe to these for events on specific entity types only
92
+ */
93
+ /** This is the default record type created */
94
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_CREATED = 'FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordCreated';
95
+ /** This is the default record type updated */
96
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_UPDATED = 'FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordUpdated';
97
+ /** This is the default record type deleted */
98
+ exports.ROUTING_KEY_YF_WIFI_SURVEY_DEFAULT_DELETED = 'FieldServiceModule.YfWifiSurvey.DEFAULT.SubDbRecordDeleted';
99
+ /** Event: YfWifiSurvey__File link created */
100
+ exports.ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_CREATED = 'FieldServiceModule.YfWifiSurvey.File.SubDbRecordAssociationCreated';
101
+ /** Event: YfWifiSurvey__File link deleted */
102
+ exports.ROUTING_KEY_LINK_YF_WIFI_SURVEY_FILE_DELETED = 'FieldServiceModule.YfWifiSurvey.File.SubDbRecordAssociationDeleted';
@@ -33,8 +33,8 @@ import { LeadRecord } from './LeadRecord';
33
33
  import { AccountRecord } from './AccountRecord';
34
34
  import { OrderRecord } from './OrderRecord';
35
35
  import { CustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
36
- import { ContactRecord } from './ContactRecord';
37
36
  import { CustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
37
+ import { ContactRecord } from './ContactRecord';
38
38
  import { WorkOrderRecord } from './WorkOrderRecord';
39
39
  import { VisitRecord } from './VisitRecord';
40
40
  import { AppointmentRecord } from './AppointmentRecord';
@@ -184,8 +184,8 @@ export declare class AddressRecord<TProps = AddressProperties> {
184
184
  private _accounts?;
185
185
  private _orders?;
186
186
  private _customerDeviceOnts?;
187
- private _contacts?;
188
187
  private _customerDeviceRouters?;
188
+ private _contacts?;
189
189
  private _workOrders?;
190
190
  private _visits?;
191
191
  private _appointments?;
@@ -331,24 +331,6 @@ export declare class AddressRecord<TProps = AddressProperties> {
331
331
  * ```
332
332
  */
333
333
  get customerDeviceOnts(): RecordLinkManager<CustomerDeviceOntRecord, typeof AddressRecord['customerDeviceOntsLabels'][number]>;
334
- /** Valid labels for Contact associations */
335
- static readonly contactsLabels: readonly ["Contact__Address"];
336
- /**
337
- * Access linked Contact records
338
- * @remarks Available labels: Contact__Address
339
- * @throws Error if called on a new (unsaved) record
340
- *
341
- * @example
342
- * ```typescript
343
- * // Get all linked Contact records
344
- * const items = await record.contacts.list();
345
- * const first = await record.contacts.first();
346
- *
347
- * // Filter by label
348
- * const specific = await record.contacts.first({ label: 'Contact__Address' });
349
- * ```
350
- */
351
- get contacts(): RecordLinkManager<ContactRecord, typeof AddressRecord['contactsLabels'][number]>;
352
334
  /** Valid labels for CustomerDeviceRouter associations */
353
335
  static readonly customerDeviceRoutersLabels: readonly ["Address__CustomerDeviceRouter"];
354
336
  /**
@@ -367,6 +349,24 @@ export declare class AddressRecord<TProps = AddressProperties> {
367
349
  * ```
368
350
  */
369
351
  get customerDeviceRouters(): RecordLinkManager<CustomerDeviceRouterRecord, typeof AddressRecord['customerDeviceRoutersLabels'][number]>;
352
+ /** Valid labels for Contact associations */
353
+ static readonly contactsLabels: readonly ["Contact__Address"];
354
+ /**
355
+ * Access linked Contact records
356
+ * @remarks Available labels: Contact__Address
357
+ * @throws Error if called on a new (unsaved) record
358
+ *
359
+ * @example
360
+ * ```typescript
361
+ * // Get all linked Contact records
362
+ * const items = await record.contacts.list();
363
+ * const first = await record.contacts.first();
364
+ *
365
+ * // Filter by label
366
+ * const specific = await record.contacts.first({ label: 'Contact__Address' });
367
+ * ```
368
+ */
369
+ get contacts(): RecordLinkManager<ContactRecord, typeof AddressRecord['contactsLabels'][number]>;
370
370
  /** Valid labels for WorkOrder associations */
371
371
  static readonly workOrdersLabels: readonly ["WorkOrder__Alternative_Address", "WorkOrder__Address"];
372
372
  /**
@@ -36,8 +36,8 @@ const LeadRecord_1 = require("./LeadRecord");
36
36
  const AccountRecord_1 = require("./AccountRecord");
37
37
  const OrderRecord_1 = require("./OrderRecord");
38
38
  const CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
39
- const ContactRecord_1 = require("./ContactRecord");
40
39
  const CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
40
+ const ContactRecord_1 = require("./ContactRecord");
41
41
  const WorkOrderRecord_1 = require("./WorkOrderRecord");
42
42
  const VisitRecord_1 = require("./VisitRecord");
43
43
  const AppointmentRecord_1 = require("./AppointmentRecord");
@@ -461,36 +461,6 @@ class AddressRecord {
461
461
  }
462
462
  return this._customerDeviceOnts;
463
463
  }
464
- /**
465
- * Access linked Contact records
466
- * @remarks Available labels: Contact__Address
467
- * @throws Error if called on a new (unsaved) record
468
- *
469
- * @example
470
- * ```typescript
471
- * // Get all linked Contact records
472
- * const items = await record.contacts.list();
473
- * const first = await record.contacts.first();
474
- *
475
- * // Filter by label
476
- * const specific = await record.contacts.first({ label: 'Contact__Address' });
477
- * ```
478
- */
479
- get contacts() {
480
- var _a;
481
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
482
- throw new Error('Cannot access links on a new (unsaved) record');
483
- if (!this._contacts) {
484
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
485
- sourceEntity: 'CrmModule:Address',
486
- targetEntity: 'CrmModule:Contact',
487
- targetModuleName: 'CrmModule',
488
- targetEntityName: 'Contact',
489
- labels: ['Contact__Address'],
490
- }, ContactRecord_1.ContactRecord);
491
- }
492
- return this._contacts;
493
- }
494
464
  /**
495
465
  * Access linked CustomerDeviceRouter records
496
466
  * @remarks Available labels: Address__CustomerDeviceRouter
@@ -521,6 +491,36 @@ class AddressRecord {
521
491
  }
522
492
  return this._customerDeviceRouters;
523
493
  }
494
+ /**
495
+ * Access linked Contact records
496
+ * @remarks Available labels: Contact__Address
497
+ * @throws Error if called on a new (unsaved) record
498
+ *
499
+ * @example
500
+ * ```typescript
501
+ * // Get all linked Contact records
502
+ * const items = await record.contacts.list();
503
+ * const first = await record.contacts.first();
504
+ *
505
+ * // Filter by label
506
+ * const specific = await record.contacts.first({ label: 'Contact__Address' });
507
+ * ```
508
+ */
509
+ get contacts() {
510
+ var _a;
511
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
512
+ throw new Error('Cannot access links on a new (unsaved) record');
513
+ if (!this._contacts) {
514
+ this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
515
+ sourceEntity: 'CrmModule:Address',
516
+ targetEntity: 'CrmModule:Contact',
517
+ targetModuleName: 'CrmModule',
518
+ targetEntityName: 'Contact',
519
+ labels: ['Contact__Address'],
520
+ }, ContactRecord_1.ContactRecord);
521
+ }
522
+ return this._contacts;
523
+ }
524
524
  /**
525
525
  * Access linked WorkOrder records
526
526
  * @remarks Available labels: WorkOrder__Alternative_Address, WorkOrder__Address
@@ -1102,10 +1102,10 @@ AddressRecord.accountsLabels = ['BillingAddress'];
1102
1102
  AddressRecord.ordersLabels = ['Order__Address'];
1103
1103
  /** Valid labels for CustomerDeviceOnt associations */
1104
1104
  AddressRecord.customerDeviceOntsLabels = ['Address__CustomerDeviceOnt'];
1105
- /** Valid labels for Contact associations */
1106
- AddressRecord.contactsLabels = ['Contact__Address'];
1107
1105
  /** Valid labels for CustomerDeviceRouter associations */
1108
1106
  AddressRecord.customerDeviceRoutersLabels = ['Address__CustomerDeviceRouter'];
1107
+ /** Valid labels for Contact associations */
1108
+ AddressRecord.contactsLabels = ['Contact__Address'];
1109
1109
  /** Valid labels for WorkOrder associations */
1110
1110
  AddressRecord.workOrdersLabels = ['WorkOrder__Alternative_Address', 'WorkOrder__Address'];
1111
1111
  /** Valid labels for Visit associations */