@d19n/youfibre-odin-sdk 2.0.76 → 2.0.78

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 (141) hide show
  1. package/README.md +10 -1
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/RegionAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/RegionAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/CaseCreateNoteDto.d.ts +7 -0
  13. package/dist/actions-v2/CreateActivityLogEntryDto.d.ts +8 -0
  14. package/dist/actions-v2/CreateAppointmentDto.d.ts +8 -0
  15. package/dist/actions-v2/CreateBillingRequestTransactionDto.d.ts +9 -0
  16. package/dist/actions-v2/CreateBundleProductActionDto.d.ts +8 -0
  17. package/dist/actions-v2/CreateInstallDto.d.ts +9 -10
  18. package/dist/actions-v2/CreateInternetProductActionDto.d.ts +8 -0
  19. package/dist/actions-v2/CreateLaborProductActionDto.d.ts +8 -0
  20. package/dist/actions-v2/CreateLandlineProductActionDto.d.ts +8 -0
  21. package/dist/actions-v2/CreateLeadDto.d.ts +8 -0
  22. package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +8 -0
  23. package/dist/actions-v2/CreateMeshProductActionDto.d.ts +8 -0
  24. package/dist/actions-v2/CreateMessageDto.d.ts +8 -0
  25. package/dist/actions-v2/CreateMobileProductActionDto.d.ts +8 -0
  26. package/dist/actions-v2/CreateOtpTransactionDto.d.ts +9 -0
  27. package/dist/actions-v2/CreatePgContactDto.d.ts +1 -1
  28. package/dist/actions-v2/CreateRegionDto.d.ts +65 -0
  29. package/dist/actions-v2/CreateRegionDto.js +52 -0
  30. package/dist/actions-v2/CreateTelevisionProductActionDto.d.ts +8 -0
  31. package/dist/actions-v2/CreateTransactionalEmailDto.d.ts +14 -0
  32. package/dist/actions-v2/NewAppointmentDto.d.ts +8 -0
  33. package/dist/actions-v2/SendDirectDebitCreatedEmailDto.d.ts +114 -0
  34. package/dist/actions-v2/SendDirectDebitCreatedEmailDto.js +59 -0
  35. package/dist/actions-v2/SendDirectDebitSetupConfirmationEmailDto.d.ts +114 -0
  36. package/dist/actions-v2/SendDirectDebitSetupConfirmationEmailDto.js +59 -0
  37. package/dist/actions-v2/SendRefundTransactionEmailDto.d.ts +109 -0
  38. package/dist/actions-v2/SendRefundTransactionEmailDto.js +54 -0
  39. package/dist/actions-v2/SendTlosNinjaCaseEmailDto.d.ts +7 -0
  40. package/dist/actions-v2/TransactionCreateDto.d.ts +8 -0
  41. package/dist/actions-v2/UpdateBundleProductActionDto.d.ts +8 -0
  42. package/dist/actions-v2/UpdateEmailDto.d.ts +14 -0
  43. package/dist/actions-v2/UpdateInternetProductActionDto.d.ts +8 -0
  44. package/dist/actions-v2/UpdateLaborProductActionDto.d.ts +8 -0
  45. package/dist/actions-v2/UpdateLandlineProductActionDto.d.ts +8 -0
  46. package/dist/actions-v2/UpdateLeadDto.d.ts +8 -0
  47. package/dist/actions-v2/UpdateMeshProductActionDto.d.ts +8 -0
  48. package/dist/actions-v2/UpdateMobileProductActionDto.d.ts +8 -0
  49. package/dist/actions-v2/UpdatePgContactDto.d.ts +1 -1
  50. package/dist/actions-v2/UpdateServiceDto.d.ts +8 -0
  51. package/dist/actions-v2/UpdateSupportEmailDto.d.ts +7 -0
  52. package/dist/actions-v2/UpdateTelevisionProductActionDto.d.ts +8 -0
  53. package/dist/api-sdk-v2/TeamApi.d.ts +2 -2
  54. package/dist/api-sdk-v2/TeamApi.js +6 -6
  55. package/dist/api-sdk-v2/UserApi.d.ts +4 -4
  56. package/dist/api-sdk-v2/UserApi.js +12 -12
  57. package/dist/db-accessors-v2/RegionDbAccessor.d.ts +149 -0
  58. package/dist/db-accessors-v2/RegionDbAccessor.js +227 -0
  59. package/dist/db-accessors-v2/index.d.ts +1 -0
  60. package/dist/db-accessors-v2/index.js +4 -2
  61. package/dist/db-sdk-v2/TeamDb.d.ts +2 -2
  62. package/dist/db-sdk-v2/TeamDb.js +6 -6
  63. package/dist/db-sdk-v2/UserDb.d.ts +4 -4
  64. package/dist/db-sdk-v2/UserDb.js +12 -12
  65. package/dist/entities-v2/Account.d.ts +60 -1
  66. package/dist/entities-v2/Account.js +20 -2
  67. package/dist/entities-v2/ActivityLog.d.ts +26 -1
  68. package/dist/entities-v2/ActivityLog.js +21 -1
  69. package/dist/entities-v2/Address.d.ts +23 -1
  70. package/dist/entities-v2/Address.js +17 -1
  71. package/dist/entities-v2/Appointment.d.ts +22 -1
  72. package/dist/entities-v2/Appointment.js +17 -1
  73. package/dist/entities-v2/Call.d.ts +15 -1
  74. package/dist/entities-v2/Call.js +4 -0
  75. package/dist/entities-v2/ConsumptionSchedule.d.ts +23 -1
  76. package/dist/entities-v2/ConsumptionSchedule.js +17 -1
  77. package/dist/entities-v2/Email.d.ts +45 -1
  78. package/dist/entities-v2/Email.js +4 -0
  79. package/dist/entities-v2/InvoiceItem.d.ts +26 -1
  80. package/dist/entities-v2/InvoiceItem.js +19 -1
  81. package/dist/entities-v2/KnowledgeArticle.d.ts +3 -1
  82. package/dist/entities-v2/KnowledgeArticle.js +2 -0
  83. package/dist/entities-v2/Lead.d.ts +31 -1
  84. package/dist/entities-v2/Lead.js +21 -1
  85. package/dist/entities-v2/Message.d.ts +23 -1
  86. package/dist/entities-v2/Message.js +2 -0
  87. package/dist/entities-v2/Milestone.d.ts +15 -1
  88. package/dist/entities-v2/Milestone.js +11 -1
  89. package/dist/entities-v2/Note.d.ts +8 -1
  90. package/dist/entities-v2/Note.js +2 -0
  91. package/dist/entities-v2/PaymentMethod.d.ts +43 -1
  92. package/dist/entities-v2/PaymentMethod.js +31 -1
  93. package/dist/entities-v2/PgContact.d.ts +8 -8
  94. package/dist/entities-v2/PgContact.js +2 -2
  95. package/dist/entities-v2/Product.d.ts +118 -1
  96. package/dist/entities-v2/Product.js +24 -2
  97. package/dist/entities-v2/ProductComponent.d.ts +27 -1
  98. package/dist/entities-v2/ProductComponent.js +21 -1
  99. package/dist/entities-v2/Program.d.ts +15 -1
  100. package/dist/entities-v2/Program.js +11 -1
  101. package/dist/entities-v2/Project.d.ts +15 -1
  102. package/dist/entities-v2/Project.js +11 -1
  103. package/dist/entities-v2/Restriction.d.ts +23 -1
  104. package/dist/entities-v2/Restriction.js +17 -1
  105. package/dist/entities-v2/Service.d.ts +22 -1
  106. package/dist/entities-v2/Service.js +17 -1
  107. package/dist/entities-v2/ServiceAppointment.d.ts +8 -1
  108. package/dist/entities-v2/ServiceAppointment.js +2 -0
  109. package/dist/entities-v2/ServiceVisitAudit.d.ts +13 -13
  110. package/dist/entities-v2/ServiceVisitAudit.js +2 -2
  111. package/dist/entities-v2/SmsMessage.d.ts +18 -1
  112. package/dist/entities-v2/SmsMessage.js +2 -0
  113. package/dist/entities-v2/Subtask.d.ts +15 -1
  114. package/dist/entities-v2/Subtask.js +11 -1
  115. package/dist/entities-v2/Task.d.ts +15 -1
  116. package/dist/entities-v2/Task.js +11 -1
  117. package/dist/entities-v2/Team.d.ts +3 -3
  118. package/dist/entities-v2/Transaction.d.ts +27 -1
  119. package/dist/entities-v2/Transaction.js +21 -1
  120. package/dist/entities-v2/User.d.ts +6 -6
  121. package/dist/entities-v2/Vendor.d.ts +22 -1
  122. package/dist/entities-v2/Vendor.js +17 -1
  123. package/dist/entities-v2/WorkOrder.d.ts +99 -1
  124. package/dist/entities-v2/WorkOrder.js +2 -0
  125. package/dist/entities-v2/YfStockCount.d.ts +9 -1
  126. package/dist/entities-v2/YfStockCount.js +8 -0
  127. package/dist/records-v2/EmailRecord.d.ts +87 -0
  128. package/dist/records-v2/EmailRecord.js +108 -0
  129. package/dist/records-v2/ExchangeRecord.d.ts +20 -0
  130. package/dist/records-v2/ExchangeRecord.js +33 -0
  131. package/dist/records-v2/RegionRecord.d.ts +205 -0
  132. package/dist/records-v2/RegionRecord.js +292 -0
  133. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +20 -0
  134. package/dist/records-v2/ServiceAppointmentConfigRecord.js +33 -0
  135. package/dist/records-v2/TeamRecord.d.ts +20 -20
  136. package/dist/records-v2/TeamRecord.js +33 -33
  137. package/dist/records-v2/UserRecord.d.ts +40 -40
  138. package/dist/records-v2/UserRecord.js +66 -66
  139. package/dist/records-v2/index.d.ts +1 -0
  140. package/dist/records-v2/index.js +5 -2
  141. package/package.json +2 -2
@@ -57,6 +57,19 @@ export declare enum AddressSalesStatus {
57
57
  REGISTER_INTEREST = "REGISTER_INTEREST",
58
58
  REGISTER_INTEREST_PLUS = "REGISTER_INTEREST_PLUS"
59
59
  }
60
+ /**
61
+ * Valid values for Address.Type
62
+ *
63
+ * Type of address (Shipping, Billing) (Sales - Address)
64
+ *
65
+ * @remarks Available options:
66
+ * - `BILLING` - Billing
67
+ * - `SHIPPING` - Shipping
68
+ */
69
+ export declare enum AddressType {
70
+ BILLING = "BILLING",
71
+ SHIPPING = "SHIPPING"
72
+ }
60
73
  /**
61
74
  * Property keys for Address
62
75
  * Use these constants instead of string literals for type safety
@@ -185,7 +198,9 @@ export declare enum AddressPropertyKeys {
185
198
  /** The cohort based on RFS date (Sales - Address) */
186
199
  Cohort = "Cohort",
187
200
  /** This describes the type of property (Sales - Address) */
188
- ClassDescription = "ClassDescription"
201
+ ClassDescription = "ClassDescription",
202
+ /** Type of address (Shipping, Billing) (Sales - Address) */
203
+ Type = "Type"
189
204
  }
190
205
  /**
191
206
  * Properties for Address records
@@ -572,6 +587,13 @@ export interface AddressProperties {
572
587
  * @hidden This field is hidden in the UI
573
588
  */
574
589
  ClassDescription: string;
590
+ /** Type of address (Shipping, Billing) (Sales - Address)
591
+ *
592
+ * @type {ENUM}
593
+ * @enum {AddressType}
594
+ * @hidden This field is hidden in the UI
595
+ */
596
+ Type: AddressType;
575
597
  }
576
598
  /**
577
599
  * Address entity from CrmModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_ADDRESS_USER_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_USER_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_VISIT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_VISIT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ROUTER_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ROUTER_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ONT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ONT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_NOTE_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_NOTE_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_FILE_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_FILE_CREATED = exports.ROUTING_KEY_ADDRESS_DEFAULT_DELETED = exports.ROUTING_KEY_ADDRESS_DEFAULT_UPDATED = exports.ROUTING_KEY_ADDRESS_DEFAULT_CREATED = exports.ROUTING_KEY_ADDRESS_DELETED = exports.ROUTING_KEY_ADDRESS_UPDATED = exports.ROUTING_KEY_ADDRESS_CREATED = exports.Address = exports.AddressPropertyKeys = exports.AddressSalesStatus = exports.AddressEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_ADDRESS_USER_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_USER_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_VISIT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_VISIT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ROUTER_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ROUTER_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ONT_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_CUSTOMER_DEVICE_ONT_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_NOTE_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_NOTE_CREATED = exports.ROUTING_KEY_LINK_ADDRESS_FILE_DELETED = exports.ROUTING_KEY_LINK_ADDRESS_FILE_CREATED = exports.ROUTING_KEY_ADDRESS_DEFAULT_DELETED = exports.ROUTING_KEY_ADDRESS_DEFAULT_UPDATED = exports.ROUTING_KEY_ADDRESS_DEFAULT_CREATED = exports.ROUTING_KEY_ADDRESS_DELETED = exports.ROUTING_KEY_ADDRESS_UPDATED = exports.ROUTING_KEY_ADDRESS_CREATED = exports.Address = exports.AddressPropertyKeys = exports.AddressType = exports.AddressSalesStatus = exports.AddressEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Address records
@@ -44,6 +44,20 @@ var AddressSalesStatus;
44
44
  AddressSalesStatus["REGISTER_INTEREST"] = "REGISTER_INTEREST";
45
45
  AddressSalesStatus["REGISTER_INTEREST_PLUS"] = "REGISTER_INTEREST_PLUS";
46
46
  })(AddressSalesStatus = exports.AddressSalesStatus || (exports.AddressSalesStatus = {}));
47
+ /**
48
+ * Valid values for Address.Type
49
+ *
50
+ * Type of address (Shipping, Billing) (Sales - Address)
51
+ *
52
+ * @remarks Available options:
53
+ * - `BILLING` - Billing
54
+ * - `SHIPPING` - Shipping
55
+ */
56
+ var AddressType;
57
+ (function (AddressType) {
58
+ AddressType["BILLING"] = "BILLING";
59
+ AddressType["SHIPPING"] = "SHIPPING";
60
+ })(AddressType = exports.AddressType || (exports.AddressType = {}));
47
61
  /**
48
62
  * Property keys for Address
49
63
  * Use these constants instead of string literals for type safety
@@ -174,6 +188,8 @@ var AddressPropertyKeys;
174
188
  AddressPropertyKeys["Cohort"] = "Cohort";
175
189
  /** This describes the type of property (Sales - Address) */
176
190
  AddressPropertyKeys["ClassDescription"] = "ClassDescription";
191
+ /** Type of address (Shipping, Billing) (Sales - Address) */
192
+ AddressPropertyKeys["Type"] = "Type";
177
193
  })(AddressPropertyKeys = exports.AddressPropertyKeys || (exports.AddressPropertyKeys = {}));
178
194
  /**
179
195
  * Address entity from CrmModule
@@ -25,6 +25,19 @@ export declare enum AppointmentEntityTypes {
25
25
  /** Default record type */
26
26
  DEFAULT = "DEFAULT"
27
27
  }
28
+ /**
29
+ * Valid values for Appointment.Type
30
+ *
31
+ * Appointment type (Sales - Appointment)
32
+ *
33
+ * @remarks Available options:
34
+ * - `DOOR` - Door
35
+ * - `PHONE` - Phone
36
+ */
37
+ export declare enum AppointmentType {
38
+ DOOR = "DOOR",
39
+ PHONE = "PHONE"
40
+ }
28
41
  /**
29
42
  * Property keys for Appointment
30
43
  * Use these constants instead of string literals for type safety
@@ -53,7 +66,9 @@ export declare enum AppointmentPropertyKeys {
53
66
  /** Display name/title for Appointment records. Primary identifier for Sales team. */
54
67
  FirstName = "FirstName",
55
68
  /** Display name/title for Appointment records. Primary identifier for Sales team. */
56
- LastName = "LastName"
69
+ LastName = "LastName",
70
+ /** Appointment type (Sales - Appointment) */
71
+ Type = "Type"
57
72
  }
58
73
  /**
59
74
  * Properties for Appointment records
@@ -131,6 +146,12 @@ export interface AppointmentProperties {
131
146
  * @pii This field contains personally identifiable information
132
147
  */
133
148
  LastName: string;
149
+ /** Appointment type (Sales - Appointment)
150
+ *
151
+ * @type {ENUM}
152
+ * @enum {AppointmentType}
153
+ */
154
+ Type: AppointmentType;
134
155
  }
135
156
  /**
136
157
  * Appointment entity from CrmModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_APPOINTMENT_NOTE_DELETED = exports.ROUTING_KEY_LINK_APPOINTMENT_NOTE_CREATED = exports.ROUTING_KEY_LINK_APPOINTMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_APPOINTMENT_FILE_CREATED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_DELETED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_UPDATED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_CREATED = exports.ROUTING_KEY_APPOINTMENT_DELETED = exports.ROUTING_KEY_APPOINTMENT_UPDATED = exports.ROUTING_KEY_APPOINTMENT_CREATED = exports.Appointment = exports.AppointmentPropertyKeys = exports.AppointmentEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_APPOINTMENT_NOTE_DELETED = exports.ROUTING_KEY_LINK_APPOINTMENT_NOTE_CREATED = exports.ROUTING_KEY_LINK_APPOINTMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_APPOINTMENT_FILE_CREATED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_DELETED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_UPDATED = exports.ROUTING_KEY_APPOINTMENT_DEFAULT_CREATED = exports.ROUTING_KEY_APPOINTMENT_DELETED = exports.ROUTING_KEY_APPOINTMENT_UPDATED = exports.ROUTING_KEY_APPOINTMENT_CREATED = exports.Appointment = exports.AppointmentPropertyKeys = exports.AppointmentType = exports.AppointmentEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Appointment records
@@ -22,6 +22,20 @@ var AppointmentEntityTypes;
22
22
  /** Default record type */
23
23
  AppointmentEntityTypes["DEFAULT"] = "DEFAULT";
24
24
  })(AppointmentEntityTypes = exports.AppointmentEntityTypes || (exports.AppointmentEntityTypes = {}));
25
+ /**
26
+ * Valid values for Appointment.Type
27
+ *
28
+ * Appointment type (Sales - Appointment)
29
+ *
30
+ * @remarks Available options:
31
+ * - `DOOR` - Door
32
+ * - `PHONE` - Phone
33
+ */
34
+ var AppointmentType;
35
+ (function (AppointmentType) {
36
+ AppointmentType["DOOR"] = "DOOR";
37
+ AppointmentType["PHONE"] = "PHONE";
38
+ })(AppointmentType = exports.AppointmentType || (exports.AppointmentType = {}));
25
39
  /**
26
40
  * Property keys for Appointment
27
41
  * Use these constants instead of string literals for type safety
@@ -52,6 +66,8 @@ var AppointmentPropertyKeys;
52
66
  AppointmentPropertyKeys["FirstName"] = "FirstName";
53
67
  /** Display name/title for Appointment records. Primary identifier for Sales team. */
54
68
  AppointmentPropertyKeys["LastName"] = "LastName";
69
+ /** Appointment type (Sales - Appointment) */
70
+ AppointmentPropertyKeys["Type"] = "Type";
55
71
  })(AppointmentPropertyKeys = exports.AppointmentPropertyKeys || (exports.AppointmentPropertyKeys = {}));
56
72
  /**
57
73
  * Appointment entity from CrmModule
@@ -182,7 +182,11 @@ export declare enum CallPropertyKeys {
182
182
  /** TimeInProgress (Communications - Call) */
183
183
  TimeInProgress = "TimeInProgress",
184
184
  /** ActiveTransferId */
185
- ActiveTransferId = "ActiveTransferId"
185
+ ActiveTransferId = "ActiveTransferId",
186
+ /** Data field for Call records. Used by Communications team. */
187
+ From = "From",
188
+ /** Classification type for Call records. Used by Communications team for categorization. */
189
+ Type = "Type"
186
190
  }
187
191
  /**
188
192
  * Properties for Call records
@@ -433,6 +437,16 @@ export interface CallProperties {
433
437
  * @type {TEXT}
434
438
  */
435
439
  ActiveTransferId: string;
440
+ /** Data field for Call records. Used by Communications team.
441
+ *
442
+ * @type {TEXT}
443
+ */
444
+ From: string;
445
+ /** Classification type for Call records. Used by Communications team for categorization.
446
+ *
447
+ * @type {TEXT}
448
+ */
449
+ Type: string;
436
450
  }
437
451
  /**
438
452
  * Call entity from NotificationModule
@@ -182,6 +182,10 @@ var CallPropertyKeys;
182
182
  CallPropertyKeys["TimeInProgress"] = "TimeInProgress";
183
183
  /** ActiveTransferId */
184
184
  CallPropertyKeys["ActiveTransferId"] = "ActiveTransferId";
185
+ /** Data field for Call records. Used by Communications team. */
186
+ CallPropertyKeys["From"] = "From";
187
+ /** Classification type for Call records. Used by Communications team for categorization. */
188
+ CallPropertyKeys["Type"] = "Type";
185
189
  })(CallPropertyKeys = exports.CallPropertyKeys || (exports.CallPropertyKeys = {}));
186
190
  /**
187
191
  * Call entity from NotificationModule
@@ -48,6 +48,19 @@ export declare enum ConsumptionScheduleCategory {
48
48
  LANDLINE = "LANDLINE",
49
49
  MOBILE = "MOBILE"
50
50
  }
51
+ /**
52
+ * Valid values for ConsumptionSchedule.Type
53
+ *
54
+ * defines how rate tiers are calculated (Product Management - ConsumptionSchedule)
55
+ *
56
+ * @remarks Available options:
57
+ * - `RANGE` - Range
58
+ * - `SLAB` - Slab
59
+ */
60
+ export declare enum ConsumptionScheduleType {
61
+ RANGE = "RANGE",
62
+ SLAB = "SLAB"
63
+ }
51
64
  /**
52
65
  * Property keys for ConsumptionSchedule
53
66
  * Use these constants instead of string literals for type safety
@@ -60,7 +73,9 @@ export declare enum ConsumptionSchedulePropertyKeys {
60
73
  /** description of the schedule (Product Management - ConsumptionSchedule) */
61
74
  Description = "Description",
62
75
  /** name of the schedule (Product Management - ConsumptionSchedule) */
63
- Name = "Name"
76
+ Name = "Name",
77
+ /** defines how rate tiers are calculated (Product Management - ConsumptionSchedule) */
78
+ Type = "Type"
64
79
  }
65
80
  /**
66
81
  * Properties for ConsumptionSchedule records
@@ -90,6 +105,13 @@ export interface ConsumptionScheduleProperties {
90
105
  * @type {TEXT}
91
106
  */
92
107
  Name: string;
108
+ /** defines how rate tiers are calculated (Product Management - ConsumptionSchedule)
109
+ *
110
+ * @type {ENUM}
111
+ * @default DIRECT
112
+ * @enum {ConsumptionScheduleType}
113
+ */
114
+ Type: ConsumptionScheduleType;
93
115
  }
94
116
  /**
95
117
  * ConsumptionSchedule entity from ProductModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_SCHEDULE_DELETED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_SCHEDULE_CREATED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_RATE_DELETED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_RATE_CREATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_DELETED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_UPDATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_CREATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DELETED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_UPDATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_CREATED = exports.ConsumptionSchedule = exports.ConsumptionSchedulePropertyKeys = exports.ConsumptionScheduleCategory = exports.ConsumptionScheduleUnitOfMeasure = exports.ConsumptionScheduleEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_SCHEDULE_DELETED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_SCHEDULE_CREATED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_RATE_DELETED = exports.ROUTING_KEY_LINK_CONSUMPTION_SCHEDULE_CONSUMPTION_RATE_CREATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_DELETED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_UPDATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DEFAULT_CREATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_DELETED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_UPDATED = exports.ROUTING_KEY_CONSUMPTION_SCHEDULE_CREATED = exports.ConsumptionSchedule = exports.ConsumptionSchedulePropertyKeys = exports.ConsumptionScheduleType = exports.ConsumptionScheduleCategory = exports.ConsumptionScheduleUnitOfMeasure = exports.ConsumptionScheduleEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for ConsumptionSchedule records
@@ -52,6 +52,20 @@ var ConsumptionScheduleCategory;
52
52
  ConsumptionScheduleCategory["LANDLINE"] = "LANDLINE";
53
53
  ConsumptionScheduleCategory["MOBILE"] = "MOBILE";
54
54
  })(ConsumptionScheduleCategory = exports.ConsumptionScheduleCategory || (exports.ConsumptionScheduleCategory = {}));
55
+ /**
56
+ * Valid values for ConsumptionSchedule.Type
57
+ *
58
+ * defines how rate tiers are calculated (Product Management - ConsumptionSchedule)
59
+ *
60
+ * @remarks Available options:
61
+ * - `RANGE` - Range
62
+ * - `SLAB` - Slab
63
+ */
64
+ var ConsumptionScheduleType;
65
+ (function (ConsumptionScheduleType) {
66
+ ConsumptionScheduleType["RANGE"] = "RANGE";
67
+ ConsumptionScheduleType["SLAB"] = "SLAB";
68
+ })(ConsumptionScheduleType = exports.ConsumptionScheduleType || (exports.ConsumptionScheduleType = {}));
55
69
  /**
56
70
  * Property keys for ConsumptionSchedule
57
71
  * Use these constants instead of string literals for type safety
@@ -66,6 +80,8 @@ var ConsumptionSchedulePropertyKeys;
66
80
  ConsumptionSchedulePropertyKeys["Description"] = "Description";
67
81
  /** name of the schedule (Product Management - ConsumptionSchedule) */
68
82
  ConsumptionSchedulePropertyKeys["Name"] = "Name";
83
+ /** defines how rate tiers are calculated (Product Management - ConsumptionSchedule) */
84
+ ConsumptionSchedulePropertyKeys["Type"] = "Type";
69
85
  })(ConsumptionSchedulePropertyKeys = exports.ConsumptionSchedulePropertyKeys || (exports.ConsumptionSchedulePropertyKeys = {}));
70
86
  /**
71
87
  * ConsumptionSchedule entity from ProductModule
@@ -132,7 +132,11 @@ export declare enum EmailPropertyKeys {
132
132
  /** Date field for Email records. Used by Communications team. */
133
133
  Date = "Date",
134
134
  /** Data field for Email records. Used by Communications team. */
135
- Envelope = "Envelope"
135
+ Envelope = "Envelope",
136
+ /** Data field for Email records. Used by Communications team. */
137
+ From = "From",
138
+ /** Data field for Email records. Used by Communications team. */
139
+ Case = "Case"
136
140
  }
137
141
  /**
138
142
  * Properties for Email records
@@ -265,6 +269,16 @@ export interface EmailProperties {
265
269
  * @type {JSON}
266
270
  */
267
271
  Envelope: string;
272
+ /** Data field for Email records. Used by Communications team.
273
+ *
274
+ * @type {TEXT}
275
+ */
276
+ From: string;
277
+ /** Data field for Email records. Used by Communications team.
278
+ *
279
+ * @type {LOOKUP}
280
+ */
281
+ Case: string;
268
282
  }
269
283
  /**
270
284
  * Properties for REFERRAL Email records
@@ -397,6 +411,16 @@ export interface ReferralEmailProperties {
397
411
  * @type {JSON}
398
412
  */
399
413
  Envelope: string;
414
+ /** Data field for Email records. Used by Communications team.
415
+ *
416
+ * @type {TEXT}
417
+ */
418
+ From: string;
419
+ /** Data field for Email records. Used by Communications team.
420
+ *
421
+ * @type {LOOKUP}
422
+ */
423
+ Case: string;
400
424
  }
401
425
  /**
402
426
  * Properties for SUPPORT Email records
@@ -529,6 +553,16 @@ export interface SupportEmailProperties {
529
553
  * @type {JSON}
530
554
  */
531
555
  Envelope: string;
556
+ /** Data field for Email records. Used by Communications team.
557
+ *
558
+ * @type {TEXT}
559
+ */
560
+ From: string;
561
+ /** Data field for Email records. Used by Communications team.
562
+ *
563
+ * @type {LOOKUP}
564
+ */
565
+ Case: string;
532
566
  }
533
567
  /**
534
568
  * Properties for TRANSACTIONAL Email records
@@ -661,6 +695,16 @@ export interface TransactionalEmailProperties {
661
695
  * @type {JSON}
662
696
  */
663
697
  Envelope: string;
698
+ /** Data field for Email records. Used by Communications team.
699
+ *
700
+ * @type {TEXT}
701
+ */
702
+ From: string;
703
+ /** Data field for Email records. Used by Communications team.
704
+ *
705
+ * @type {LOOKUP}
706
+ */
707
+ Case: string;
664
708
  }
665
709
  /**
666
710
  * Email entity from NotificationModule
@@ -134,6 +134,10 @@ var EmailPropertyKeys;
134
134
  EmailPropertyKeys["Date"] = "Date";
135
135
  /** Data field for Email records. Used by Communications team. */
136
136
  EmailPropertyKeys["Envelope"] = "Envelope";
137
+ /** Data field for Email records. Used by Communications team. */
138
+ EmailPropertyKeys["From"] = "From";
139
+ /** Data field for Email records. Used by Communications team. */
140
+ EmailPropertyKeys["Case"] = "Case";
137
141
  })(EmailPropertyKeys = exports.EmailPropertyKeys || (exports.EmailPropertyKeys = {}));
138
142
  /**
139
143
  * Email entity from NotificationModule
@@ -75,6 +75,21 @@ export declare enum InvoiceItemDiscountType {
75
75
  AMOUNT = "AMOUNT",
76
76
  PERCENT = "PERCENT"
77
77
  }
78
+ /**
79
+ * Valid values for InvoiceItem.Type
80
+ *
81
+ * invoice item type (Finance - InvoiceItem)
82
+ *
83
+ * @remarks Available options:
84
+ * - `ADJUSTMENT` - Adjustment
85
+ * - `CALL_CHARGES` - Call Charges
86
+ * - `PRODUCT` - Product
87
+ */
88
+ export declare enum InvoiceItemType {
89
+ ADJUSTMENT = "ADJUSTMENT",
90
+ CALL_CHARGES = "CALL_CHARGES",
91
+ PRODUCT = "PRODUCT"
92
+ }
78
93
  /**
79
94
  * Property keys for InvoiceItem
80
95
  * Use these constants instead of string literals for type safety
@@ -135,7 +150,9 @@ export declare enum InvoiceItemPropertyKeys {
135
150
  /** Billing period end date (Finance - InvoiceItem) */
136
151
  BillingPeriodEnd = "BillingPeriodEnd",
137
152
  /** Billing period start date (Finance - InvoiceItem) */
138
- BillingPeriodStart = "BillingPeriodStart"
153
+ BillingPeriodStart = "BillingPeriodStart",
154
+ /** invoice item type (Finance - InvoiceItem) */
155
+ Type = "Type"
139
156
  }
140
157
  /**
141
158
  * Properties for InvoiceItem records
@@ -315,6 +332,14 @@ export interface InvoiceItemProperties {
315
332
  * @type {DATE}
316
333
  */
317
334
  BillingPeriodStart: string;
335
+ /** invoice item type (Finance - InvoiceItem)
336
+ *
337
+ * @type {ENUM}
338
+ * @default PRODUCT
339
+ * @enum {InvoiceItemType}
340
+ * @hidden This field is hidden in the UI
341
+ */
342
+ Type: InvoiceItemType;
318
343
  }
319
344
  /**
320
345
  * InvoiceItem entity from BillingModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_INVOICE_ITEM_INVOICE_ITEM_DELETED = exports.ROUTING_KEY_LINK_INVOICE_ITEM_INVOICE_ITEM_CREATED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_DELETED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_UPDATED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_CREATED = exports.ROUTING_KEY_INVOICE_ITEM_DELETED = exports.ROUTING_KEY_INVOICE_ITEM_UPDATED = exports.ROUTING_KEY_INVOICE_ITEM_CREATED = exports.InvoiceItem = exports.InvoiceItemPropertyKeys = exports.InvoiceItemDiscountType = exports.InvoiceItemTaxIncluded = exports.InvoiceItemTaxable = exports.InvoiceItemBillingPeriodType = exports.InvoiceItemEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_INVOICE_ITEM_INVOICE_ITEM_DELETED = exports.ROUTING_KEY_LINK_INVOICE_ITEM_INVOICE_ITEM_CREATED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_DELETED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_UPDATED = exports.ROUTING_KEY_INVOICE_ITEM_DEFAULT_CREATED = exports.ROUTING_KEY_INVOICE_ITEM_DELETED = exports.ROUTING_KEY_INVOICE_ITEM_UPDATED = exports.ROUTING_KEY_INVOICE_ITEM_CREATED = exports.InvoiceItem = exports.InvoiceItemPropertyKeys = exports.InvoiceItemType = exports.InvoiceItemDiscountType = exports.InvoiceItemTaxIncluded = exports.InvoiceItemTaxable = exports.InvoiceItemBillingPeriodType = exports.InvoiceItemEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for InvoiceItem records
@@ -82,6 +82,22 @@ var InvoiceItemDiscountType;
82
82
  InvoiceItemDiscountType["AMOUNT"] = "AMOUNT";
83
83
  InvoiceItemDiscountType["PERCENT"] = "PERCENT";
84
84
  })(InvoiceItemDiscountType = exports.InvoiceItemDiscountType || (exports.InvoiceItemDiscountType = {}));
85
+ /**
86
+ * Valid values for InvoiceItem.Type
87
+ *
88
+ * invoice item type (Finance - InvoiceItem)
89
+ *
90
+ * @remarks Available options:
91
+ * - `ADJUSTMENT` - Adjustment
92
+ * - `CALL_CHARGES` - Call Charges
93
+ * - `PRODUCT` - Product
94
+ */
95
+ var InvoiceItemType;
96
+ (function (InvoiceItemType) {
97
+ InvoiceItemType["ADJUSTMENT"] = "ADJUSTMENT";
98
+ InvoiceItemType["CALL_CHARGES"] = "CALL_CHARGES";
99
+ InvoiceItemType["PRODUCT"] = "PRODUCT";
100
+ })(InvoiceItemType = exports.InvoiceItemType || (exports.InvoiceItemType = {}));
85
101
  /**
86
102
  * Property keys for InvoiceItem
87
103
  * Use these constants instead of string literals for type safety
@@ -144,6 +160,8 @@ var InvoiceItemPropertyKeys;
144
160
  InvoiceItemPropertyKeys["BillingPeriodEnd"] = "BillingPeriodEnd";
145
161
  /** Billing period start date (Finance - InvoiceItem) */
146
162
  InvoiceItemPropertyKeys["BillingPeriodStart"] = "BillingPeriodStart";
163
+ /** invoice item type (Finance - InvoiceItem) */
164
+ InvoiceItemPropertyKeys["Type"] = "Type";
147
165
  })(InvoiceItemPropertyKeys = exports.InvoiceItemPropertyKeys || (exports.InvoiceItemPropertyKeys = {}));
148
166
  /**
149
167
  * InvoiceItem entity from BillingModule
@@ -107,7 +107,9 @@ export declare enum KnowledgeArticlePropertyKeys {
107
107
  /** the name of the process stage the article relates to (Sold, Supply, Active, Done) (Customer Service - KnowledgeArticle) */
108
108
  StageName = "StageName",
109
109
  /** record tags (Customer Service - KnowledgeArticle) */
110
- Tags = "Tags"
110
+ Tags = "Tags",
111
+ /** Business Process (Customer Service - KnowledgeArticle) */
112
+ BusinessProcess = "Business Process"
111
113
  }
112
114
  /**
113
115
  * Properties for KnowledgeArticle records
@@ -114,6 +114,8 @@ var KnowledgeArticlePropertyKeys;
114
114
  KnowledgeArticlePropertyKeys["StageName"] = "StageName";
115
115
  /** record tags (Customer Service - KnowledgeArticle) */
116
116
  KnowledgeArticlePropertyKeys["Tags"] = "Tags";
117
+ /** Business Process (Customer Service - KnowledgeArticle) */
118
+ KnowledgeArticlePropertyKeys["BusinessProcess"] = "Business Process";
117
119
  })(KnowledgeArticlePropertyKeys = exports.KnowledgeArticlePropertyKeys || (exports.KnowledgeArticlePropertyKeys = {}));
118
120
  /**
119
121
  * KnowledgeArticle entity from SupportModule
@@ -117,6 +117,21 @@ export declare enum LeadVisit {
117
117
  INTERESTED = "INTERESTED",
118
118
  NOT_INTERESTED = "NOT_INTERESTED"
119
119
  }
120
+ /**
121
+ * Valid values for Lead.Type
122
+ *
123
+ * Type of lead (Sales - Lead)
124
+ *
125
+ * @remarks Available options:
126
+ * - `BUSINESS` - Business
127
+ * - `LANDLORD` - Landlord
128
+ * - `RESIDENTIAL` - Residential
129
+ */
130
+ export declare enum LeadType {
131
+ BUSINESS = "BUSINESS",
132
+ LANDLORD = "LANDLORD",
133
+ RESIDENTIAL = "RESIDENTIAL"
134
+ }
120
135
  /**
121
136
  * Property keys for Lead
122
137
  * Use these constants instead of string literals for type safety
@@ -187,7 +202,11 @@ export declare enum LeadPropertyKeys {
187
202
  /** deactivated in the max contact system (Sales - Lead) */
188
203
  MaxContactDeactivated = "MaxContactDeactivated",
189
204
  /** Copy and paste address title please */
190
- Name = "Name"
205
+ Name = "Name",
206
+ /** Type of lead (Sales - Lead) */
207
+ Type = "Type",
208
+ /** When Lead is added to max contact */
209
+ AddedToMaxContactDate = "AddedToMaxContactDate"
191
210
  }
192
211
  /**
193
212
  * Properties for Lead records
@@ -395,6 +414,17 @@ export interface LeadProperties {
395
414
  * @type {TEXT}
396
415
  */
397
416
  Name: string;
417
+ /** Type of lead (Sales - Lead)
418
+ *
419
+ * @type {ENUM}
420
+ * @enum {LeadType}
421
+ */
422
+ Type: LeadType;
423
+ /** When Lead is added to max contact
424
+ *
425
+ * @type {DATE}
426
+ */
427
+ AddedToMaxContactDate: string;
398
428
  }
399
429
  /**
400
430
  * Lead entity from CrmModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_LEAD_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_LEAD_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_LEAD_VISIT_DELETED = exports.ROUTING_KEY_LINK_LEAD_VISIT_CREATED = exports.ROUTING_KEY_LINK_LEAD_PRODUCT_DELETED = exports.ROUTING_KEY_LINK_LEAD_PRODUCT_CREATED = exports.ROUTING_KEY_LINK_LEAD_OFFER_DELETED = exports.ROUTING_KEY_LINK_LEAD_OFFER_CREATED = exports.ROUTING_KEY_LINK_LEAD_CONTACT_DELETED = exports.ROUTING_KEY_LINK_LEAD_CONTACT_CREATED = exports.ROUTING_KEY_LINK_LEAD_ORDER_DELETED = exports.ROUTING_KEY_LINK_LEAD_ORDER_CREATED = exports.ROUTING_KEY_LINK_LEAD_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_LEAD_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_LEAD_COMMISSION_DELETED = exports.ROUTING_KEY_LINK_LEAD_COMMISSION_CREATED = exports.ROUTING_KEY_LINK_LEAD_FILE_DELETED = exports.ROUTING_KEY_LINK_LEAD_FILE_CREATED = exports.ROUTING_KEY_LINK_LEAD_DISCOUNT_DELETED = exports.ROUTING_KEY_LINK_LEAD_DISCOUNT_CREATED = exports.ROUTING_KEY_LINK_LEAD_ORGANIZATION_DELETED = exports.ROUTING_KEY_LINK_LEAD_ORGANIZATION_CREATED = exports.ROUTING_KEY_LINK_LEAD_NOTE_DELETED = exports.ROUTING_KEY_LINK_LEAD_NOTE_CREATED = exports.ROUTING_KEY_LEAD_DEFAULT_DELETED = exports.ROUTING_KEY_LEAD_DEFAULT_UPDATED = exports.ROUTING_KEY_LEAD_DEFAULT_CREATED = exports.ROUTING_KEY_LEAD_DELETED = exports.ROUTING_KEY_LEAD_UPDATED = exports.ROUTING_KEY_LEAD_CREATED = exports.Lead = exports.LeadPropertyKeys = exports.LeadVisit = exports.LeadSource = exports.DefaultLeadStageKeys = exports.DefaultLeadStageNames = exports.LeadEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_LEAD_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_LEAD_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_LEAD_VISIT_DELETED = exports.ROUTING_KEY_LINK_LEAD_VISIT_CREATED = exports.ROUTING_KEY_LINK_LEAD_PRODUCT_DELETED = exports.ROUTING_KEY_LINK_LEAD_PRODUCT_CREATED = exports.ROUTING_KEY_LINK_LEAD_OFFER_DELETED = exports.ROUTING_KEY_LINK_LEAD_OFFER_CREATED = exports.ROUTING_KEY_LINK_LEAD_CONTACT_DELETED = exports.ROUTING_KEY_LINK_LEAD_CONTACT_CREATED = exports.ROUTING_KEY_LINK_LEAD_ORDER_DELETED = exports.ROUTING_KEY_LINK_LEAD_ORDER_CREATED = exports.ROUTING_KEY_LINK_LEAD_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_LEAD_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_LEAD_COMMISSION_DELETED = exports.ROUTING_KEY_LINK_LEAD_COMMISSION_CREATED = exports.ROUTING_KEY_LINK_LEAD_FILE_DELETED = exports.ROUTING_KEY_LINK_LEAD_FILE_CREATED = exports.ROUTING_KEY_LINK_LEAD_DISCOUNT_DELETED = exports.ROUTING_KEY_LINK_LEAD_DISCOUNT_CREATED = exports.ROUTING_KEY_LINK_LEAD_ORGANIZATION_DELETED = exports.ROUTING_KEY_LINK_LEAD_ORGANIZATION_CREATED = exports.ROUTING_KEY_LINK_LEAD_NOTE_DELETED = exports.ROUTING_KEY_LINK_LEAD_NOTE_CREATED = exports.ROUTING_KEY_LEAD_DEFAULT_DELETED = exports.ROUTING_KEY_LEAD_DEFAULT_UPDATED = exports.ROUTING_KEY_LEAD_DEFAULT_CREATED = exports.ROUTING_KEY_LEAD_DELETED = exports.ROUTING_KEY_LEAD_UPDATED = exports.ROUTING_KEY_LEAD_CREATED = exports.Lead = exports.LeadPropertyKeys = exports.LeadType = exports.LeadVisit = exports.LeadSource = exports.DefaultLeadStageKeys = exports.DefaultLeadStageNames = exports.LeadEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Lead records
@@ -109,6 +109,22 @@ var LeadVisit;
109
109
  LeadVisit["INTERESTED"] = "INTERESTED";
110
110
  LeadVisit["NOT_INTERESTED"] = "NOT_INTERESTED";
111
111
  })(LeadVisit = exports.LeadVisit || (exports.LeadVisit = {}));
112
+ /**
113
+ * Valid values for Lead.Type
114
+ *
115
+ * Type of lead (Sales - Lead)
116
+ *
117
+ * @remarks Available options:
118
+ * - `BUSINESS` - Business
119
+ * - `LANDLORD` - Landlord
120
+ * - `RESIDENTIAL` - Residential
121
+ */
122
+ var LeadType;
123
+ (function (LeadType) {
124
+ LeadType["BUSINESS"] = "BUSINESS";
125
+ LeadType["LANDLORD"] = "LANDLORD";
126
+ LeadType["RESIDENTIAL"] = "RESIDENTIAL";
127
+ })(LeadType = exports.LeadType || (exports.LeadType = {}));
112
128
  /**
113
129
  * Property keys for Lead
114
130
  * Use these constants instead of string literals for type safety
@@ -181,6 +197,10 @@ var LeadPropertyKeys;
181
197
  LeadPropertyKeys["MaxContactDeactivated"] = "MaxContactDeactivated";
182
198
  /** Copy and paste address title please */
183
199
  LeadPropertyKeys["Name"] = "Name";
200
+ /** Type of lead (Sales - Lead) */
201
+ LeadPropertyKeys["Type"] = "Type";
202
+ /** When Lead is added to max contact */
203
+ LeadPropertyKeys["AddedToMaxContactDate"] = "AddedToMaxContactDate";
184
204
  })(LeadPropertyKeys = exports.LeadPropertyKeys || (exports.LeadPropertyKeys = {}));
185
205
  /**
186
206
  * Lead entity from CrmModule
@@ -62,7 +62,9 @@ export declare enum MessagePropertyKeys {
62
62
  /** Attachments of the message (Communications - Message) */
63
63
  Files = "Files",
64
64
  /** Who receive the message (if needed) (Communications - Message) */
65
- To = "To"
65
+ To = "To",
66
+ /** Who sent the message (Communications - Message) */
67
+ From = "From"
66
68
  }
67
69
  /**
68
70
  * Properties for Message records
@@ -111,6 +113,11 @@ export interface MessageProperties {
111
113
  * @type {TEXT}
112
114
  */
113
115
  To: string;
116
+ /** Who sent the message (Communications - Message)
117
+ *
118
+ * @type {TEXT}
119
+ */
120
+ From: string;
114
121
  }
115
122
  /**
116
123
  * Properties for CLOSE Message records
@@ -159,6 +166,11 @@ export interface CloseMessageProperties {
159
166
  * @type {TEXT}
160
167
  */
161
168
  To: string;
169
+ /** Who sent the message (Communications - Message)
170
+ *
171
+ * @type {TEXT}
172
+ */
173
+ From: string;
162
174
  }
163
175
  /**
164
176
  * Properties for EVENT Message records
@@ -207,6 +219,11 @@ export interface EventMessageProperties {
207
219
  * @type {TEXT}
208
220
  */
209
221
  To: string;
222
+ /** Who sent the message (Communications - Message)
223
+ *
224
+ * @type {TEXT}
225
+ */
226
+ From: string;
210
227
  }
211
228
  /**
212
229
  * Properties for NUDGE Message records
@@ -255,6 +272,11 @@ export interface NudgeMessageProperties {
255
272
  * @type {TEXT}
256
273
  */
257
274
  To: string;
275
+ /** Who sent the message (Communications - Message)
276
+ *
277
+ * @type {TEXT}
278
+ */
279
+ From: string;
258
280
  }
259
281
  /**
260
282
  * Message entity from NotificationModule
@@ -66,6 +66,8 @@ var MessagePropertyKeys;
66
66
  MessagePropertyKeys["Files"] = "Files";
67
67
  /** Who receive the message (if needed) (Communications - Message) */
68
68
  MessagePropertyKeys["To"] = "To";
69
+ /** Who sent the message (Communications - Message) */
70
+ MessagePropertyKeys["From"] = "From";
69
71
  })(MessagePropertyKeys = exports.MessagePropertyKeys || (exports.MessagePropertyKeys = {}));
70
72
  /**
71
73
  * Message entity from NotificationModule