@trakit/objects 0.0.1 → 0.0.6

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 (444) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +11 -0
  3. package/{API → _publish/API}/Base.d.ts +3 -2
  4. package/{API → _publish/API}/BaseComponent.d.ts +9 -6
  5. package/_publish/API/Codifier.d.ts +15 -0
  6. package/_publish/API/Encoding.d.ts +9 -0
  7. package/{API → _publish/API}/Files.d.ts +4 -4
  8. package/{API → _publish/API}/Functions.d.ts +26 -21
  9. package/{API → _publish/API}/Geography/Functions.d.ts +4 -0
  10. package/{API → _publish/API}/Geography/Interfaces.d.ts +19 -14
  11. package/{API → _publish/API}/Geography/LatLng.d.ts +9 -1
  12. package/{API → _publish/API}/Geography/LatLngBounds.d.ts +2 -1
  13. package/{API → _publish/API}/Geography/Position.d.ts +23 -11
  14. package/{API → _publish/API}/Geography/StreetAddress.d.ts +3 -2
  15. package/{API → _publish/API}/Geometry/Functions.d.ts +1 -1
  16. package/{API → _publish/API}/Geometry/Point.d.ts +4 -3
  17. package/{API → _publish/API}/Geometry/Radial.d.ts +5 -4
  18. package/{API → _publish/API}/Geometry/Rectangle.d.ts +3 -7
  19. package/{API → _publish/API}/Geometry/Size.d.ts +8 -2
  20. package/_publish/API/Interfaces/IAuditable.d.ts +31 -0
  21. package/{API → _publish/API}/Interfaces/IDeserializable.d.ts +2 -1
  22. package/{API → _publish/API}/Interfaces/ILabelled.d.ts +2 -1
  23. package/{API → _publish/API}/Interfaces/IRequestable.d.ts +5 -1
  24. package/_publish/API/Objects.d.ts +5 -0
  25. package/{API → _publish/API}/SearchPattern.d.ts +3 -2
  26. package/{API → _publish/API}/TimeSpan.d.ts +7 -38
  27. package/{API → _publish/API}/Timezone.d.ts +3 -3
  28. package/{API → _publish/API}/Types.d.ts +18 -0
  29. package/{Accounts → _publish/Accounts}/Contact.d.ts +10 -10
  30. package/{Accounts → _publish/Accounts}/Machine.d.ts +14 -6
  31. package/{Accounts → _publish/Accounts}/Permissions/Permission.d.ts +3 -3
  32. package/{Accounts → _publish/Accounts}/Permissions/PermissionEscalation.d.ts +11 -3
  33. package/{Accounts → _publish/Accounts}/Permissions/PermissionEscalationState.d.ts +5 -3
  34. package/{Accounts → _publish/Accounts}/Session.d.ts +2 -2
  35. package/{Accounts → _publish/Accounts}/User.d.ts +10 -10
  36. package/{Accounts → _publish/Accounts}/UserAdvanced.d.ts +2 -2
  37. package/{Accounts → _publish/Accounts}/UserGeneral.d.ts +5 -5
  38. package/{Accounts → _publish/Accounts}/UserGroup.d.ts +3 -3
  39. package/{Accounts → _publish/Accounts}/UserNotifications.d.ts +2 -2
  40. package/{Assets → _publish/Assets}/Asset.d.ts +56 -24
  41. package/{Assets → _publish/Assets}/AssetAdvanced.d.ts +8 -20
  42. package/{Assets → _publish/Assets}/AssetAttribute.d.ts +2 -2
  43. package/{Assets → _publish/Assets}/AssetDispatch.d.ts +5 -12
  44. package/{Assets → _publish/Assets}/AssetGeneral.d.ts +44 -24
  45. package/{Assets → _publish/Assets}/AssetPlaceStatus.d.ts +2 -2
  46. package/{Behaviours → _publish/Behaviours}/Behaviour.d.ts +4 -4
  47. package/{Behaviours → _publish/Behaviours}/BehaviourLog.d.ts +3 -3
  48. package/{Behaviours → _publish/Behaviours}/BehaviourParameter.d.ts +2 -1
  49. package/{Behaviours → _publish/Behaviours}/BehaviourScript.d.ts +4 -4
  50. package/{Billing → _publish/Billing}/BillableBase.d.ts +3 -3
  51. package/{Billing → _publish/Billing}/BillableSmsProfile.d.ts +2 -2
  52. package/{Billing → _publish/Billing}/BillingProfile.d.ts +3 -3
  53. package/{Billing → _publish/Billing}/Hosting/BillableHostingBase.d.ts +2 -2
  54. package/{Billing → _publish/Billing}/Hosting/BillableHostingDiscount.d.ts +2 -1
  55. package/{Billing → _publish/Billing}/Hosting/BillableHostingLicense.d.ts +2 -1
  56. package/{Billing → _publish/Billing}/Hosting/BillableHostingRule.d.ts +2 -1
  57. package/{Billing → _publish/Billing}/Report/BillingReport.d.ts +3 -3
  58. package/{Billing → _publish/Billing}/Report/BillingReportBreakdown.d.ts +2 -2
  59. package/{Billing → _publish/Billing}/Report/BillingReportHostingSummary.d.ts +2 -2
  60. package/{Billing → _publish/Billing}/Report/BillingReportLicenseBreakdown.d.ts +2 -2
  61. package/{Billing → _publish/Billing}/Report/BillingReportServiceBreakdown.d.ts +2 -2
  62. package/{Billing → _publish/Billing}/Report/BillingReportSummary.d.ts +2 -2
  63. package/{Companies → _publish/Companies}/ColourStyle.d.ts +2 -2
  64. package/{Companies → _publish/Companies}/Company.d.ts +48 -33
  65. package/{Companies → _publish/Companies}/CompanyDirectory.d.ts +10 -5
  66. package/{Companies → _publish/Companies}/CompanyGeneral.d.ts +10 -5
  67. package/{Companies/CompanyPolicies.d.ts → _publish/Companies/CompanyPolicy.d.ts} +9 -4
  68. package/{Companies → _publish/Companies}/CompanyReseller.d.ts +14 -9
  69. package/{Companies/CompanyStyles.d.ts → _publish/Companies/CompanyStyle.d.ts} +11 -6
  70. package/{Companies → _publish/Companies}/LabelStyle.d.ts +2 -2
  71. package/{Companies → _publish/Companies}/NotificationServerEmail.d.ts +2 -2
  72. package/{Companies → _publish/Companies}/NotificationServerSms.d.ts +3 -3
  73. package/{Companies → _publish/Companies}/PasswordPolicy.d.ts +2 -2
  74. package/{Companies → _publish/Companies}/SessionPolicy.d.ts +2 -2
  75. package/{Dispatch → _publish/Dispatch}/DispatchDirection.d.ts +3 -3
  76. package/{Dispatch → _publish/Dispatch}/DispatchJob.d.ts +4 -4
  77. package/{Dispatch → _publish/Dispatch}/DispatchStep.d.ts +4 -4
  78. package/{Dispatch → _publish/Dispatch}/DispatchStepState.d.ts +3 -3
  79. package/{Dispatch → _publish/Dispatch}/DispatchTask.d.ts +5 -5
  80. package/{Hosting → _publish/Hosting}/Document.d.ts +3 -3
  81. package/{Hosting → _publish/Hosting}/Fields/FormFieldAttachments.d.ts +4 -11
  82. package/{Hosting → _publish/Hosting}/Fields/FormFieldBase.d.ts +8 -23
  83. package/_publish/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  84. package/{Hosting → _publish/Hosting}/Fields/FormFieldBoolean.d.ts +4 -12
  85. package/{Hosting → _publish/Hosting}/Fields/FormFieldChoice.d.ts +10 -12
  86. package/{Hosting → _publish/Hosting}/Fields/FormFieldDate.d.ts +2 -9
  87. package/{Hosting → _publish/Hosting}/Fields/FormFieldNumeric.d.ts +2 -9
  88. package/{Hosting → _publish/Hosting}/Fields/FormFieldSignature.d.ts +2 -2
  89. package/{Hosting → _publish/Hosting}/Fields/FormFieldText.d.ts +2 -9
  90. package/_publish/Hosting/Fields/FormFieldTime.d.ts +37 -0
  91. package/{Hosting → _publish/Hosting}/Fields/FormFieldTimezone.d.ts +2 -2
  92. package/{Hosting → _publish/Hosting}/FormResult.d.ts +4 -4
  93. package/{Hosting → _publish/Hosting}/FormTemplate.d.ts +3 -3
  94. package/{Images → _publish/Images}/Dashcam.d.ts +3 -3
  95. package/{Images → _publish/Images}/DashcamBase.d.ts +2 -2
  96. package/{Images → _publish/Images}/DashcamLive.d.ts +3 -3
  97. package/{Images → _publish/Images}/Icon.d.ts +7 -27
  98. package/{Images → _publish/Images}/IconGlyph.d.ts +5 -12
  99. package/{Images → _publish/Images}/IconLabel.d.ts +5 -8
  100. package/{Images → _publish/Images}/Picture.d.ts +3 -3
  101. package/{Maintenance → _publish/Maintenance}/MaintenanceInterval.d.ts +2 -2
  102. package/{Maintenance → _publish/Maintenance}/MaintenanceJob.d.ts +3 -3
  103. package/{Maintenance → _publish/Maintenance}/MaintenanceSchedule.d.ts +4 -4
  104. package/{Messaging → _publish/Messaging}/AssetAlert.d.ts +2 -1
  105. package/{Messaging → _publish/Messaging}/AssetMessage.d.ts +2 -2
  106. package/{Messaging → _publish/Messaging}/MessageBase.d.ts +3 -3
  107. package/{Places → _publish/Places}/Place.d.ts +4 -4
  108. package/{Providers → _publish/Providers}/Config/ProviderConfig.d.ts +4 -4
  109. package/{Providers → _publish/Providers}/Config/ProviderRegistration.d.ts +2 -2
  110. package/{Providers → _publish/Providers}/Config/ProviderScript.d.ts +4 -4
  111. package/{Providers → _publish/Providers}/Config/ProviderScriptBlock.d.ts +2 -1
  112. package/{Providers → _publish/Providers}/Config/ProviderScriptParameter.d.ts +2 -2
  113. package/{Providers → _publish/Providers}/Configuration/ProviderConfiguration.d.ts +4 -4
  114. package/{Providers → _publish/Providers}/Configuration/ProviderConfigurationNode.d.ts +4 -3
  115. package/{Providers → _publish/Providers}/Configuration/ProviderConfigurationType.d.ts +4 -4
  116. package/{Providers → _publish/Providers}/Configuration/ProviderGeofenceBase.d.ts +6 -8
  117. package/_publish/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  118. package/_publish/Providers/Provider.d.ts +211 -0
  119. package/{Providers → _publish/Providers}/ProviderAdvanced.d.ts +4 -4
  120. package/{Providers → _publish/Providers}/ProviderCommand.d.ts +2 -2
  121. package/{Providers → _publish/Providers}/ProviderControl.d.ts +3 -3
  122. package/{Providers → _publish/Providers}/ProviderData.d.ts +2 -2
  123. package/{Providers → _publish/Providers}/ProviderGeneral.d.ts +18 -10
  124. package/_publish/Reports/ReportBreakdown.d.ts +49 -0
  125. package/_publish/Reports/ReportBreakdownJob.d.ts +37 -0
  126. package/_publish/Reports/ReportBreakdownMessage.d.ts +40 -0
  127. package/{Reports → _publish/Reports}/ReportBreakdownTask.d.ts +6 -31
  128. package/_publish/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  129. package/{Reports → _publish/Reports}/ReportNotifications.d.ts +3 -3
  130. package/{Reports → _publish/Reports}/ReportOptions.d.ts +3 -2
  131. package/{Reports → _publish/Reports}/ReportParameter.d.ts +2 -1
  132. package/{Reports → _publish/Reports}/ReportRecurrence.d.ts +2 -2
  133. package/{Reports → _publish/Reports}/ReportResult.d.ts +9 -9
  134. package/{Reports → _publish/Reports}/ReportSchedule.d.ts +3 -3
  135. package/{Reports → _publish/Reports}/ReportScorecard.d.ts +3 -3
  136. package/{Reports → _publish/Reports}/ReportScorecardParameter.d.ts +2 -2
  137. package/{Reports → _publish/Reports}/ReportScorecardRules.d.ts +2 -2
  138. package/{Reports → _publish/Reports}/ReportSummary.d.ts +5 -33
  139. package/{Reports → _publish/Reports}/ReportTemplate.d.ts +3 -3
  140. package/{Reports → _publish/Reports}/ReportTotal.d.ts +2 -2
  141. package/_publish/index.d.ts +406 -0
  142. package/_publish/objects/API/Arrays.d.ts +46 -0
  143. package/_publish/objects/API/Base.d.ts +19 -0
  144. package/_publish/objects/API/BaseComponent.d.ts +40 -0
  145. package/{API/Compound.d.ts → _publish/objects/API/BaseCompound.d.ts} +3 -3
  146. package/_publish/objects/API/Codifier.d.ts +15 -0
  147. package/_publish/objects/API/Constants.d.ts +39 -0
  148. package/_publish/objects/API/Conversion.d.ts +255 -0
  149. package/_publish/objects/API/Encoding.d.ts +9 -0
  150. package/_publish/objects/API/Files.d.ts +21 -0
  151. package/_publish/objects/API/Functions.d.ts +196 -0
  152. package/_publish/objects/API/Geography/Functions.d.ts +236 -0
  153. package/_publish/objects/API/Geography/Interfaces.d.ts +150 -0
  154. package/_publish/objects/API/Geography/LatLng.d.ts +86 -0
  155. package/_publish/objects/API/Geography/LatLngBounds.d.ts +146 -0
  156. package/_publish/objects/API/Geography/Position.d.ts +74 -0
  157. package/_publish/objects/API/Geography/StreetAddress.d.ts +59 -0
  158. package/_publish/objects/API/Geometry/Functions.d.ts +114 -0
  159. package/_publish/objects/API/Geometry/Interfaces.d.ts +111 -0
  160. package/_publish/objects/API/Geometry/Point.d.ts +81 -0
  161. package/_publish/objects/API/Geometry/Radial.d.ts +110 -0
  162. package/_publish/objects/API/Geometry/Rectangle.d.ts +159 -0
  163. package/_publish/objects/API/Geometry/Size.d.ts +58 -0
  164. package/_publish/objects/API/Guid.d.ts +4 -0
  165. package/_publish/objects/API/Interfaces/IAmCompany.d.ts +11 -0
  166. package/_publish/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
  167. package/_publish/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
  168. package/_publish/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
  169. package/_publish/objects/API/Interfaces/IDeserializable.d.ts +13 -0
  170. package/_publish/objects/API/Interfaces/IEnabled.d.ts +10 -0
  171. package/_publish/objects/API/Interfaces/IFileSize.d.ts +9 -0
  172. package/_publish/objects/API/Interfaces/IGlobal.d.ts +11 -0
  173. package/_publish/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
  174. package/_publish/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
  175. package/_publish/objects/API/Interfaces/IIconic.d.ts +15 -0
  176. package/_publish/objects/API/Interfaces/IIdUlong.d.ts +10 -0
  177. package/_publish/objects/API/Interfaces/ILabelled.d.ts +10 -0
  178. package/_publish/objects/API/Interfaces/INamed.d.ts +13 -0
  179. package/_publish/objects/API/Interfaces/IPictured.d.ts +15 -0
  180. package/_publish/objects/API/Interfaces/IRequestable.d.ts +22 -0
  181. package/_publish/objects/API/Interfaces/ISerializable.d.ts +10 -0
  182. package/_publish/objects/API/Interfaces/ISuspendable.d.ts +16 -0
  183. package/_publish/objects/API/Interfaces/IVisual.d.ts +18 -0
  184. package/_publish/objects/API/Maps.d.ts +28 -0
  185. package/_publish/objects/API/Objects.d.ts +5 -0
  186. package/_publish/objects/API/SearchPattern.d.ts +46 -0
  187. package/_publish/objects/API/TimeSpan.d.ts +109 -0
  188. package/_publish/objects/API/Timezone.d.ts +44 -0
  189. package/_publish/objects/API/Timezones.d.ts +7 -0
  190. package/_publish/objects/API/Types.d.ts +132 -0
  191. package/_publish/objects/Accounts/Contact.d.ts +139 -0
  192. package/_publish/objects/Accounts/Machine.d.ts +139 -0
  193. package/_publish/objects/Accounts/MultiFactorType.d.ts +17 -0
  194. package/_publish/objects/Accounts/NotificationMethod.d.ts +17 -0
  195. package/_publish/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
  196. package/_publish/objects/Accounts/Permissions/Permission.d.ts +56 -0
  197. package/_publish/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
  198. package/_publish/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
  199. package/_publish/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
  200. package/_publish/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
  201. package/_publish/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
  202. package/_publish/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
  203. package/_publish/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
  204. package/_publish/objects/Accounts/Session.d.ts +89 -0
  205. package/_publish/objects/Accounts/SessionStatus.d.ts +29 -0
  206. package/_publish/objects/Accounts/SystemsOfUnits.d.ts +13 -0
  207. package/_publish/objects/Accounts/User.d.ts +167 -0
  208. package/_publish/objects/Accounts/UserAdvanced.d.ts +53 -0
  209. package/_publish/objects/Accounts/UserAuthentication.d.ts +55 -0
  210. package/_publish/objects/Accounts/UserGeneral.d.ts +98 -0
  211. package/_publish/objects/Accounts/UserGroup.d.ts +51 -0
  212. package/_publish/objects/Accounts/UserMFA.d.ts +47 -0
  213. package/_publish/objects/Accounts/UserNotifications.d.ts +76 -0
  214. package/_publish/objects/Accounts/UserSSO.d.ts +37 -0
  215. package/_publish/objects/Assets/Asset.d.ts +218 -0
  216. package/_publish/objects/Assets/AssetAdvanced.d.ts +77 -0
  217. package/_publish/objects/Assets/AssetAttribute.d.ts +71 -0
  218. package/_publish/objects/Assets/AssetDispatch.d.ts +55 -0
  219. package/_publish/objects/Assets/AssetGeneral.d.ts +127 -0
  220. package/_publish/objects/Assets/AssetPlaceStatus.d.ts +31 -0
  221. package/_publish/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
  222. package/_publish/objects/Assets/AssetType.d.ts +21 -0
  223. package/_publish/objects/Behaviours/Behaviour.d.ts +78 -0
  224. package/_publish/objects/Behaviours/BehaviourLog.d.ts +95 -0
  225. package/_publish/objects/Behaviours/BehaviourLogType.d.ts +21 -0
  226. package/_publish/objects/Behaviours/BehaviourParameter.d.ts +38 -0
  227. package/_publish/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
  228. package/_publish/objects/Behaviours/BehaviourScript.d.ts +83 -0
  229. package/_publish/objects/Billing/BillableBase.d.ts +83 -0
  230. package/_publish/objects/Billing/BillableSmsProfile.d.ts +26 -0
  231. package/_publish/objects/Billing/BillingCurrency.d.ts +17 -0
  232. package/_publish/objects/Billing/BillingCycle.d.ts +17 -0
  233. package/_publish/objects/Billing/BillingProfile.d.ts +104 -0
  234. package/_publish/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
  235. package/_publish/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
  236. package/_publish/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
  237. package/_publish/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
  238. package/_publish/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
  239. package/_publish/objects/Billing/Report/BillingReport.d.ts +112 -0
  240. package/_publish/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
  241. package/_publish/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
  242. package/_publish/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
  243. package/_publish/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
  244. package/_publish/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
  245. package/_publish/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
  246. package/_publish/objects/Companies/ColourStyle.d.ts +25 -0
  247. package/_publish/objects/Companies/Company.d.ts +167 -0
  248. package/_publish/objects/Companies/CompanyDirectory.d.ts +52 -0
  249. package/_publish/objects/Companies/CompanyGeneral.d.ts +55 -0
  250. package/_publish/objects/Companies/CompanyPolicy.d.ts +66 -0
  251. package/_publish/objects/Companies/CompanyReseller.d.ts +166 -0
  252. package/_publish/objects/Companies/CompanyStyle.d.ts +50 -0
  253. package/_publish/objects/Companies/LabelStyle.d.ts +46 -0
  254. package/_publish/objects/Companies/NotificationServerEmail.d.ts +99 -0
  255. package/_publish/objects/Companies/NotificationServerSms.d.ts +25 -0
  256. package/_publish/objects/Companies/PasswordExpiryMode.d.ts +17 -0
  257. package/_publish/objects/Companies/PasswordPolicy.d.ts +51 -0
  258. package/_publish/objects/Companies/SessionMultiUser.d.ts +17 -0
  259. package/_publish/objects/Companies/SessionPolicy.d.ts +47 -0
  260. package/_publish/objects/Dispatch/DispatchDirection.d.ts +53 -0
  261. package/_publish/objects/Dispatch/DispatchJob.d.ts +107 -0
  262. package/_publish/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
  263. package/_publish/objects/Dispatch/DispatchStep.d.ts +99 -0
  264. package/_publish/objects/Dispatch/DispatchStepState.d.ts +27 -0
  265. package/_publish/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
  266. package/_publish/objects/Dispatch/DispatchTask.d.ts +154 -0
  267. package/_publish/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
  268. package/_publish/objects/Hosting/Document.d.ts +70 -0
  269. package/_publish/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
  270. package/_publish/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
  271. package/_publish/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  272. package/_publish/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
  273. package/_publish/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
  274. package/_publish/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
  275. package/_publish/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
  276. package/_publish/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
  277. package/_publish/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
  278. package/_publish/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
  279. package/_publish/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
  280. package/_publish/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
  281. package/_publish/objects/Hosting/FormFieldType.d.ts +127 -0
  282. package/_publish/objects/Hosting/FormResult.d.ts +95 -0
  283. package/_publish/objects/Hosting/FormTemplate.d.ts +80 -0
  284. package/_publish/objects/Images/Dashcam.d.ts +63 -0
  285. package/_publish/objects/Images/DashcamBase.d.ts +97 -0
  286. package/_publish/objects/Images/DashcamLive.d.ts +36 -0
  287. package/_publish/objects/Images/DashcamMediaType.d.ts +17 -0
  288. package/_publish/objects/Images/Icon.d.ts +66 -0
  289. package/_publish/objects/Images/IconGlyph.d.ts +47 -0
  290. package/_publish/objects/Images/IconLabel.d.ts +29 -0
  291. package/_publish/objects/Images/IconLayer.d.ts +33 -0
  292. package/_publish/objects/Images/Picture.d.ts +72 -0
  293. package/_publish/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
  294. package/_publish/objects/Maintenance/MaintenanceJob.d.ts +134 -0
  295. package/_publish/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
  296. package/_publish/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
  297. package/_publish/objects/Messaging/AlertPriority.d.ts +17 -0
  298. package/_publish/objects/Messaging/AssetAlert.d.ts +29 -0
  299. package/_publish/objects/Messaging/AssetMessage.d.ts +40 -0
  300. package/_publish/objects/Messaging/MessageBase.d.ts +99 -0
  301. package/_publish/objects/Messaging/MessageFolder.d.ts +13 -0
  302. package/_publish/objects/Messaging/MessageStatus.d.ts +29 -0
  303. package/_publish/objects/Messaging/MessageType.d.ts +33 -0
  304. package/_publish/objects/Places/Place.d.ts +114 -0
  305. package/_publish/objects/Places/PlaceType.d.ts +25 -0
  306. package/_publish/objects/Providers/Config/ProviderConfig.d.ts +70 -0
  307. package/_publish/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
  308. package/_publish/objects/Providers/Config/ProviderScript.d.ts +86 -0
  309. package/_publish/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
  310. package/_publish/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
  311. package/_publish/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
  312. package/_publish/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
  313. package/_publish/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
  314. package/_publish/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
  315. package/_publish/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
  316. package/_publish/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  317. package/_publish/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
  318. package/_publish/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
  319. package/_publish/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
  320. package/_publish/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
  321. package/{Providers → _publish/objects/Providers}/Provider.d.ts +77 -17
  322. package/_publish/objects/Providers/ProviderAdvanced.d.ts +50 -0
  323. package/_publish/objects/Providers/ProviderCommand.d.ts +36 -0
  324. package/_publish/objects/Providers/ProviderCommandStatus.d.ts +29 -0
  325. package/_publish/objects/Providers/ProviderCommandType.d.ts +37 -0
  326. package/_publish/objects/Providers/ProviderControl.d.ts +41 -0
  327. package/_publish/objects/Providers/ProviderData.d.ts +30 -0
  328. package/_publish/objects/Providers/ProviderGeneral.d.ts +121 -0
  329. package/_publish/objects/Providers/ProviderType.d.ts +106 -0
  330. package/_publish/objects/Reports/ReportBreakdown.d.ts +49 -0
  331. package/_publish/objects/Reports/ReportBreakdownJob.d.ts +37 -0
  332. package/_publish/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
  333. package/_publish/objects/Reports/ReportBreakdownTask.d.ts +46 -0
  334. package/_publish/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  335. package/_publish/objects/Reports/ReportFilterMode.d.ts +17 -0
  336. package/_publish/objects/Reports/ReportNotifications.d.ts +31 -0
  337. package/_publish/objects/Reports/ReportOptions.d.ts +52 -0
  338. package/_publish/objects/Reports/ReportParameter.d.ts +26 -0
  339. package/_publish/objects/Reports/ReportParameterType.d.ts +59 -0
  340. package/_publish/objects/Reports/ReportRecurrence.d.ts +54 -0
  341. package/_publish/objects/Reports/ReportRecurrenceType.d.ts +34 -0
  342. package/_publish/objects/Reports/ReportResult.d.ts +169 -0
  343. package/_publish/objects/Reports/ReportResultData.d.ts +17 -0
  344. package/_publish/objects/Reports/ReportSchedule.d.ts +111 -0
  345. package/_publish/objects/Reports/ReportScorecard.d.ts +38 -0
  346. package/_publish/objects/Reports/ReportScorecardParameter.d.ts +31 -0
  347. package/_publish/objects/Reports/ReportScorecardRules.d.ts +26 -0
  348. package/_publish/objects/Reports/ReportStatus.d.ts +29 -0
  349. package/_publish/objects/Reports/ReportSummary.d.ts +90 -0
  350. package/_publish/objects/Reports/ReportSummaryReason.d.ts +27 -0
  351. package/_publish/objects/Reports/ReportTemplate.d.ts +81 -0
  352. package/{Reports/ReportDataTotal.d.ts → _publish/objects/Reports/ReportTotal.d.ts} +4 -7
  353. package/_publish/objects/Reports/ReportType.d.ts +42 -0
  354. package/{Storage.d.ts → _publish/objects/storage.d.ts} +11 -1
  355. package/_publish/storage.d.ts +176 -0
  356. package/_publish/trakit-objects.min.js +8 -0
  357. package/package.json +36 -22
  358. package/API/Codifier.d.ts +0 -5
  359. package/API/Component.d.ts +0 -42
  360. package/API/Objects.d.ts +0 -33
  361. package/Assets/Person.d.ts +0 -25
  362. package/Assets/PersonGeneral.d.ts +0 -35
  363. package/Assets/Trailer.d.ts +0 -42
  364. package/Assets/TrailerGeneral.d.ts +0 -47
  365. package/Assets/Vehicle.d.ts +0 -73
  366. package/Assets/VehicleAdvanced.d.ts +0 -25
  367. package/Assets/VehicleGeneral.d.ts +0 -33
  368. package/Hosting/Fields/FormFieldTime.d.ts +0 -34
  369. package/Reports/ReportBreakdown.d.ts +0 -72
  370. package/Reports/ReportBreakdownJob.d.ts +0 -62
  371. package/Reports/ReportBreakdownMessage.d.ts +0 -65
  372. package/objects.d.ts +0 -534
  373. package/objects.min.js +0 -7
  374. /package/{API → _publish/API}/Arrays.d.ts +0 -0
  375. /package/{API → _publish/API}/BaseCompound.d.ts +0 -0
  376. /package/{API → _publish/API}/Constants.d.ts +0 -0
  377. /package/{API → _publish/API}/Conversion.d.ts +0 -0
  378. /package/{API → _publish/API}/Geometry/Interfaces.d.ts +0 -0
  379. /package/{API → _publish/API}/Guid.d.ts +0 -0
  380. /package/{API → _publish/API}/Interfaces/IAmCompany.d.ts +0 -0
  381. /package/{API → _publish/API}/Interfaces/IBelongAsset.d.ts +0 -0
  382. /package/{API → _publish/API}/Interfaces/IBelongBillingProfile.d.ts +0 -0
  383. /package/{API → _publish/API}/Interfaces/IBelongCompany.d.ts +0 -0
  384. /package/{API → _publish/API}/Interfaces/IEnabled.d.ts +0 -0
  385. /package/{API → _publish/API}/Interfaces/IFileSize.d.ts +0 -0
  386. /package/{API → _publish/API}/Interfaces/IGlobal.d.ts +0 -0
  387. /package/{API → _publish/API}/Interfaces/IHavePermissions.d.ts +0 -0
  388. /package/{API → _publish/API}/Interfaces/IHavePreferences.d.ts +0 -0
  389. /package/{API → _publish/API}/Interfaces/IIconic.d.ts +0 -0
  390. /package/{API → _publish/API}/Interfaces/IIdUlong.d.ts +0 -0
  391. /package/{API → _publish/API}/Interfaces/INamed.d.ts +0 -0
  392. /package/{API → _publish/API}/Interfaces/IPictured.d.ts +0 -0
  393. /package/{API → _publish/API}/Interfaces/ISerializable.d.ts +0 -0
  394. /package/{API → _publish/API}/Interfaces/ISuspendable.d.ts +0 -0
  395. /package/{API → _publish/API}/Interfaces/IVisual.d.ts +0 -0
  396. /package/{API → _publish/API}/Maps.d.ts +0 -0
  397. /package/{API → _publish/API}/Timezones.d.ts +0 -0
  398. /package/{Accounts → _publish/Accounts}/NotificationMethod.d.ts +0 -0
  399. /package/{Accounts → _publish/Accounts}/Permissions/Authorizer.d.ts +0 -0
  400. /package/{Accounts → _publish/Accounts}/Permissions/PermissionEscalationType.d.ts +0 -0
  401. /package/{Accounts → _publish/Accounts}/Permissions/PermissionLevel.d.ts +0 -0
  402. /package/{Accounts → _publish/Accounts}/Permissions/PermissionMethod.d.ts +0 -0
  403. /package/{Accounts → _publish/Accounts}/Permissions/PermissionType.d.ts +0 -0
  404. /package/{Accounts → _publish/Accounts}/SessionStatus.d.ts +0 -0
  405. /package/{Accounts → _publish/Accounts}/SystemsOfUnits.d.ts +0 -0
  406. /package/{Assets → _publish/Assets}/AssetPlaceStatusType.d.ts +0 -0
  407. /package/{Assets → _publish/Assets}/AssetType.d.ts +0 -0
  408. /package/{Behaviours → _publish/Behaviours}/BehaviourLogType.d.ts +0 -0
  409. /package/{Behaviours → _publish/Behaviours}/BehaviourParameterType.d.ts +0 -0
  410. /package/{Billing → _publish/Billing}/BillingCurrency.d.ts +0 -0
  411. /package/{Billing → _publish/Billing}/BillingCycle.d.ts +0 -0
  412. /package/{Billing → _publish/Billing}/Hosting/BillableHostingLicenseType.d.ts +0 -0
  413. /package/{Billing → _publish/Billing}/Hosting/BillableHostingType.d.ts +0 -0
  414. /package/{Billing → _publish/Billing}/Report/BillingReportStatus.d.ts +0 -0
  415. /package/{Companies → _publish/Companies}/PasswordExpiryMode.d.ts +0 -0
  416. /package/{Companies → _publish/Companies}/SessionMultiUser.d.ts +0 -0
  417. /package/{Dispatch → _publish/Dispatch}/DispatchJobPriority.d.ts +0 -0
  418. /package/{Dispatch → _publish/Dispatch}/DispatchStepStatus.d.ts +0 -0
  419. /package/{Dispatch → _publish/Dispatch}/DispatchTaskStatus.d.ts +0 -0
  420. /package/{Hosting → _publish/Hosting}/Fields/FormFieldNumericSize.d.ts +0 -0
  421. /package/{Hosting → _publish/Hosting}/FormFieldType.d.ts +0 -0
  422. /package/{Images → _publish/Images}/DashcamMediaType.d.ts +0 -0
  423. /package/{Images → _publish/Images}/IconLayer.d.ts +0 -0
  424. /package/{Maintenance → _publish/Maintenance}/MaintenanceJobStatus.d.ts +0 -0
  425. /package/{Messaging → _publish/Messaging}/AlertPriority.d.ts +0 -0
  426. /package/{Messaging → _publish/Messaging}/MessageFolder.d.ts +0 -0
  427. /package/{Messaging → _publish/Messaging}/MessageStatus.d.ts +0 -0
  428. /package/{Messaging → _publish/Messaging}/MessageType.d.ts +0 -0
  429. /package/{Places → _publish/Places}/PlaceType.d.ts +0 -0
  430. /package/{Providers → _publish/Providers}/Config/ProviderScriptParameterType.d.ts +0 -0
  431. /package/{Providers → _publish/Providers}/Configuration/ProviderGeofenceCircular.d.ts +0 -0
  432. /package/{Providers → _publish/Providers}/Configuration/ProviderGeofencePoint.d.ts +0 -0
  433. /package/{Providers → _publish/Providers}/Configuration/ProviderGeofencePolygon.d.ts +0 -0
  434. /package/{Providers → _publish/Providers}/Configuration/ProviderGeofenceRectangle.d.ts +0 -0
  435. /package/{Providers → _publish/Providers}/ProviderCommandStatus.d.ts +0 -0
  436. /package/{Providers → _publish/Providers}/ProviderCommandType.d.ts +0 -0
  437. /package/{Providers → _publish/Providers}/ProviderType.d.ts +0 -0
  438. /package/{Reports → _publish/Reports}/ReportFilterMode.d.ts +0 -0
  439. /package/{Reports → _publish/Reports}/ReportParameterType.d.ts +0 -0
  440. /package/{Reports → _publish/Reports}/ReportRecurrenceType.d.ts +0 -0
  441. /package/{Reports → _publish/Reports}/ReportResultData.d.ts +0 -0
  442. /package/{Reports → _publish/Reports}/ReportStatus.d.ts +0 -0
  443. /package/{Reports → _publish/Reports}/ReportSummaryReason.d.ts +0 -0
  444. /package/{Reports → _publish/Reports}/ReportType.d.ts +0 -0
@@ -0,0 +1,406 @@
1
+ /**
2
+ * Trak-iT API Object Model.
3
+ * {@link https://github.com/trakitwireless/trakit-ts-objects|Object definition.}
4
+ * All of the Trak-iT APIs use the same object definitions. Use this package in your TypeScript or JavaScript project.
5
+ * Last updated on Friday December 19, 2025
6
+ * @copyright Trak-iT Wireless Inc. 2025
7
+ */
8
+ import { Contact } from "./objects/Accounts/Contact";
9
+ import { Machine } from "./objects/Accounts/Machine";
10
+ import { NotificationMethod } from "./objects/Accounts/NotificationMethod";
11
+ import { compute, computeAll, computeAllComplex, computeAllSimple, computeComplex, computeSimple, computeSimpleLevels, findAllEscalations, findAllLabelEscalations, findAnyComplex, findComplex, findComplexLevel, findEscalations, findLabelEscalation, findSimple, findSimpleLevel, getComplexLevel, getSimpleLevel, hasAnyComplex, hasComplex, hasSimple } from "./objects/Accounts/Permissions/Authorizer";
12
+ import { Permission } from "./objects/Accounts/Permissions/Permission";
13
+ import { PermissionEscalation } from "./objects/Accounts/Permissions/PermissionEscalation";
14
+ import { PermissionEscalationState } from "./objects/Accounts/Permissions/PermissionEscalationState";
15
+ import { PermissionEscalationType } from "./objects/Accounts/Permissions/PermissionEscalationType";
16
+ import { PermissionLevel } from "./objects/Accounts/Permissions/PermissionLevel";
17
+ import { PermissionMethod } from "./objects/Accounts/Permissions/PermissionMethod";
18
+ import { PermissionType } from "./objects/Accounts/Permissions/PermissionType";
19
+ import { Session } from "./objects/Accounts/Session";
20
+ import { SessionStatus } from "./objects/Accounts/SessionStatus";
21
+ import { SystemsOfUnits } from "./objects/Accounts/SystemsOfUnits";
22
+ import { User } from "./objects/Accounts/User";
23
+ import { UserAdvanced } from "./objects/Accounts/UserAdvanced";
24
+ import { UserGeneral } from "./objects/Accounts/UserGeneral";
25
+ import { UserGroup } from "./objects/Accounts/UserGroup";
26
+ import { UserNotifications } from "./objects/Accounts/UserNotifications";
27
+ import { Base } from "./objects/API/Base";
28
+ import { BaseComponent } from "./objects/API/BaseComponent";
29
+ import { BaseCompound } from "./objects/API/BaseCompound";
30
+ import { CODIFY, HIGHLIGHT } from "./objects/API/Codifier";
31
+ import { PASSWORD_DECODE, PASSWORD_ENCODE } from "./objects/API/Encoding";
32
+ import { FILESIZE_HELPER, NUMBER_GROUPS } from "./objects/API/Files";
33
+ import { CAPITALIZE, DATE, DOUGLASPEUCKER, ID, IS_AN, IS_NOTHING, JSON_TO_MAP, JSON_TO_MAP_PREDICATE, MAP_TO_JSON, MAP_TO_JSON_PREDICATE, PHONE_PARSE, PLURALIZE, PYTHAGORA, ROUND_TO, SINGULARIZE } from "./objects/API/Functions";
34
+ import { GEOFENCE_AREA, GEOFENCE_CONTAINS, GEOFENCE_PEUCKER, GEOFENCE_WIDEST, LATITUDE_NORMALIZED, LATLNG_ANGLE, LATLNG_DISTANCE, LATLNG_DISTANCE_VINCENTY, LATLNG_GREAT_CIRCLE, LATLNG_MIDPOINT, LATLNG_TRANSLATE, LONGITUDE_NORMALIZED, ROUTE_DECODE, ROUTE_ENCODE, ROUTE_LENGTH, ROUTE_PEUCKER } from "./objects/API/Geography/Functions";
35
+ import { LatLng } from "./objects/API/Geography/LatLng";
36
+ import { LatLngBounds } from "./objects/API/Geography/LatLngBounds";
37
+ import { Position } from "./objects/API/Geography/Position";
38
+ import { StreetAddress } from "./objects/API/Geography/StreetAddress";
39
+ import { PATH_LENGTH, PATH_ORTHOGONAL, PATH_PEUCKER, POINT_ANGLE, POINT_DISTANCE, POINT_VECTOR, POLY_AREA, POLY_CONTAINS, POLY_PEUCKER, POLY_WRAPPER, RADIAL_AREA, RADIAL_BADOIU_CLARKSON, RADIAL_CIRCUMFERENCE, RADIAL_OVERLAP_RECTANGLE } from "./objects/API/Geometry/Functions";
40
+ import { Point } from "./objects/API/Geometry/Point";
41
+ import { Radial } from "./objects/API/Geometry/Radial";
42
+ import { Rectangle } from "./objects/API/Geometry/Rectangle";
43
+ import { Size } from "./objects/API/Geometry/Size";
44
+ import { GUID } from "./objects/API/Guid";
45
+ import { IDeserializable } from "./objects/API/Interfaces/IDeserializable";
46
+ import { IRequestable } from "./objects/API/Interfaces/IRequestable";
47
+ import { ISerializable } from "./objects/API/Interfaces/ISerializable";
48
+ import { SearchPattern } from "./objects/API/SearchPattern";
49
+ import { TIMESPAN_PARSE, TIMESPAN_STRINGIFY, TimeSpan } from "./objects/API/TimeSpan";
50
+ import { Timezone } from "./objects/API/Timezone";
51
+ import { TIMEZONE_FIND } from "./objects/API/Timezones";
52
+ import { byte, codified, colour, datetime, datetimetemplate, double, email, expression, guid, int, ipv4, JsonArray, JsonObject, JsonValue, long, nothing, phone, polyline, sbyte, short, single, timespan, uint, ulong, url, ushort } from "./objects/API/Types";
53
+ import { Asset } from "./objects/Assets/Asset";
54
+ import { AssetAdvanced } from "./objects/Assets/AssetAdvanced";
55
+ import { AssetAttribute } from "./objects/Assets/AssetAttribute";
56
+ import { AssetDispatch } from "./objects/Assets/AssetDispatch";
57
+ import { AssetGeneral } from "./objects/Assets/AssetGeneral";
58
+ import { AssetPlaceStatus } from "./objects/Assets/AssetPlaceStatus";
59
+ import { AssetPlaceStatusType } from "./objects/Assets/AssetPlaceStatusType";
60
+ import { AssetType } from "./objects/Assets/AssetType";
61
+ import { Behaviour } from "./objects/Behaviours/Behaviour";
62
+ import { BehaviourLog } from "./objects/Behaviours/BehaviourLog";
63
+ import { BehaviourLogType } from "./objects/Behaviours/BehaviourLogType";
64
+ import { BehaviourParameter } from "./objects/Behaviours/BehaviourParameter";
65
+ import { BehaviourParameterType } from "./objects/Behaviours/BehaviourParameterType";
66
+ import { BehaviourScript } from "./objects/Behaviours/BehaviourScript";
67
+ import { BillingCurrency } from "./objects/Billing/BillingCurrency";
68
+ import { BillingCycle } from "./objects/Billing/BillingCycle";
69
+ import { BillingProfile } from "./objects/Billing/BillingProfile";
70
+ import { BillableHostingLicense } from "./objects/Billing/Hosting/BillableHostingLicense";
71
+ import { BillableHostingLicenseType } from "./objects/Billing/Hosting/BillableHostingLicenseType";
72
+ import { BillableHostingRule } from "./objects/Billing/Hosting/BillableHostingRule";
73
+ import { BillableHostingType } from "./objects/Billing/Hosting/BillableHostingType";
74
+ import { BillingReport } from "./objects/Billing/Report/BillingReport";
75
+ import { BillingReportBreakdown } from "./objects/Billing/Report/BillingReportBreakdown";
76
+ import { BillingReportHostingSummary } from "./objects/Billing/Report/BillingReportHostingSummary";
77
+ import { BillingReportLicenseBreakdown } from "./objects/Billing/Report/BillingReportLicenseBreakdown";
78
+ import { BillingReportServiceBreakdown } from "./objects/Billing/Report/BillingReportServiceBreakdown";
79
+ import { BillingReportStatus } from "./objects/Billing/Report/BillingReportStatus";
80
+ import { BillingReportSummary } from "./objects/Billing/Report/BillingReportSummary";
81
+ import { ColourStyle } from "./objects/Companies/ColourStyle";
82
+ import { Company } from "./objects/Companies/Company";
83
+ import { CompanyDirectory } from "./objects/Companies/CompanyDirectory";
84
+ import { CompanyGeneral } from "./objects/Companies/CompanyGeneral";
85
+ import { CompanyPolicy } from "./objects/Companies/CompanyPolicy";
86
+ import { CompanyReseller } from "./objects/Companies/CompanyReseller";
87
+ import { CompanyStyle } from "./objects/Companies/CompanyStyle";
88
+ import { LabelStyle } from "./objects/Companies/LabelStyle";
89
+ import { NotificationServerEmail } from "./objects/Companies/NotificationServerEmail";
90
+ import { NotificationServerSms } from "./objects/Companies/NotificationServerSms";
91
+ import { PasswordExpiryMode } from "./objects/Companies/PasswordExpiryMode";
92
+ import { PasswordPolicy } from "./objects/Companies/PasswordPolicy";
93
+ import { SessionMultiUser } from "./objects/Companies/SessionMultiUser";
94
+ import { SessionPolicy } from "./objects/Companies/SessionPolicy";
95
+ import { DispatchDirection } from "./objects/Dispatch/DispatchDirection";
96
+ import { DispatchJob } from "./objects/Dispatch/DispatchJob";
97
+ import { DispatchJobPriority } from "./objects/Dispatch/DispatchJobPriority";
98
+ import { DispatchStep } from "./objects/Dispatch/DispatchStep";
99
+ import { DispatchStepState } from "./objects/Dispatch/DispatchStepState";
100
+ import { DispatchStepStatus } from "./objects/Dispatch/DispatchStepStatus";
101
+ import { DispatchTask } from "./objects/Dispatch/DispatchTask";
102
+ import { DispatchTaskStatus } from "./objects/Dispatch/DispatchTaskStatus";
103
+ import { Document } from "./objects/Hosting/Document";
104
+ import { FormFieldAttachments } from "./objects/Hosting/Fields/FormFieldAttachments";
105
+ import { FormFieldBase } from "./objects/Hosting/Fields/FormFieldBase";
106
+ import "./objects/Hosting/Fields/FormFieldBase_fromJSON";
107
+ import { FormFieldBoolean } from "./objects/Hosting/Fields/FormFieldBoolean";
108
+ import { FormFieldChoice } from "./objects/Hosting/Fields/FormFieldChoice";
109
+ import { FormFieldDate } from "./objects/Hosting/Fields/FormFieldDate";
110
+ import { FormFieldNumeric } from "./objects/Hosting/Fields/FormFieldNumeric";
111
+ import { FormFieldNumericSize } from "./objects/Hosting/Fields/FormFieldNumericSize";
112
+ import { FormFieldSignature } from "./objects/Hosting/Fields/FormFieldSignature";
113
+ import { FormFieldText } from "./objects/Hosting/Fields/FormFieldText";
114
+ import { FormFieldTime } from "./objects/Hosting/Fields/FormFieldTime";
115
+ import { FormFieldTimezone } from "./objects/Hosting/Fields/FormFieldTimezone";
116
+ import { FormFieldType } from "./objects/Hosting/FormFieldType";
117
+ import { FormResult } from "./objects/Hosting/FormResult";
118
+ import { FormTemplate } from "./objects/Hosting/FormTemplate";
119
+ import { Dashcam } from "./objects/Images/Dashcam";
120
+ import { DashcamBase } from "./objects/Images/DashcamBase";
121
+ import { DashcamLive } from "./objects/Images/DashcamLive";
122
+ import { DashcamMediaType } from "./objects/Images/DashcamMediaType";
123
+ import { Icon } from "./objects/Images/Icon";
124
+ import { IconGlyph } from "./objects/Images/IconGlyph";
125
+ import { IconLabel } from "./objects/Images/IconLabel";
126
+ import { IconLayer } from "./objects/Images/IconLayer";
127
+ import { Picture } from "./objects/Images/Picture";
128
+ import { MaintenanceInterval } from "./objects/Maintenance/MaintenanceInterval";
129
+ import { MaintenanceJob } from "./objects/Maintenance/MaintenanceJob";
130
+ import { MaintenanceJobStatus } from "./objects/Maintenance/MaintenanceJobStatus";
131
+ import { MaintenanceSchedule } from "./objects/Maintenance/MaintenanceSchedule";
132
+ import { AlertPriority } from "./objects/Messaging/AlertPriority";
133
+ import { AssetAlert } from "./objects/Messaging/AssetAlert";
134
+ import { AssetMessage } from "./objects/Messaging/AssetMessage";
135
+ import { MessageFolder } from "./objects/Messaging/MessageFolder";
136
+ import { MessageStatus } from "./objects/Messaging/MessageStatus";
137
+ import { MessageType } from "./objects/Messaging/MessageType";
138
+ import { Place } from "./objects/Places/Place";
139
+ import { PlaceType } from "./objects/Places/PlaceType";
140
+ import { ProviderConfig } from "./objects/Providers/Config/ProviderConfig";
141
+ import { ProviderRegistration } from "./objects/Providers/Config/ProviderRegistration";
142
+ import { ProviderScript } from "./objects/Providers/Config/ProviderScript";
143
+ import { ProviderScriptBlock } from "./objects/Providers/Config/ProviderScriptBlock";
144
+ import { ProviderScriptParameter } from "./objects/Providers/Config/ProviderScriptParameter";
145
+ import { ProviderScriptParameterType } from "./objects/Providers/Config/ProviderScriptParameterType";
146
+ import { ProviderConfiguration } from "./objects/Providers/Configuration/ProviderConfiguration";
147
+ import { ProviderConfigurationNode } from "./objects/Providers/Configuration/ProviderConfigurationNode";
148
+ import { ProviderConfigurationType } from "./objects/Providers/Configuration/ProviderConfigurationType";
149
+ import { ProviderGeofenceBase } from "./objects/Providers/Configuration/ProviderGeofenceBase";
150
+ import "./objects/Providers/Configuration/ProviderGeofenceBase_fromJSON";
151
+ import { ProviderGeofenceCircular } from "./objects/Providers/Configuration/ProviderGeofenceCircular";
152
+ import { ProviderGeofencePoint } from "./objects/Providers/Configuration/ProviderGeofencePoint";
153
+ import { ProviderGeofencePolygon } from "./objects/Providers/Configuration/ProviderGeofencePolygon";
154
+ import { ProviderGeofenceRectangle } from "./objects/Providers/Configuration/ProviderGeofenceRectangle";
155
+ import { Provider } from "./objects/Providers/Provider";
156
+ import { ProviderAdvanced } from "./objects/Providers/ProviderAdvanced";
157
+ import { ProviderCommand } from "./objects/Providers/ProviderCommand";
158
+ import { ProviderCommandStatus } from "./objects/Providers/ProviderCommandStatus";
159
+ import { ProviderCommandType } from "./objects/Providers/ProviderCommandType";
160
+ import { ProviderControl } from "./objects/Providers/ProviderControl";
161
+ import { ProviderData } from "./objects/Providers/ProviderData";
162
+ import { ProviderGeneral } from "./objects/Providers/ProviderGeneral";
163
+ import { ProviderType } from "./objects/Providers/ProviderType";
164
+ import { ReportBreakdown } from "./objects/Reports/ReportBreakdown";
165
+ import "./objects/Reports/ReportBreakdown_fromJSON";
166
+ import { ReportBreakdownJob } from "./objects/Reports/ReportBreakdownJob";
167
+ import { ReportBreakdownMessage } from "./objects/Reports/ReportBreakdownMessage";
168
+ import { ReportBreakdownTask } from "./objects/Reports/ReportBreakdownTask";
169
+ import { ReportFilterMode } from "./objects/Reports/ReportFilterMode";
170
+ import { ReportNotifications } from "./objects/Reports/ReportNotifications";
171
+ import { ReportOptions } from "./objects/Reports/ReportOptions";
172
+ import { ReportParameter } from "./objects/Reports/ReportParameter";
173
+ import { ReportParameterType } from "./objects/Reports/ReportParameterType";
174
+ import { ReportRecurrence } from "./objects/Reports/ReportRecurrence";
175
+ import { ReportRecurrenceType } from "./objects/Reports/ReportRecurrenceType";
176
+ import { ReportResult } from "./objects/Reports/ReportResult";
177
+ import { ReportResultData } from "./objects/Reports/ReportResultData";
178
+ import { ReportSchedule } from "./objects/Reports/ReportSchedule";
179
+ import { ReportScorecard } from "./objects/Reports/ReportScorecard";
180
+ import { ReportScorecardParameter } from "./objects/Reports/ReportScorecardParameter";
181
+ import { ReportScorecardRules } from "./objects/Reports/ReportScorecardRules";
182
+ import { ReportStatus } from "./objects/Reports/ReportStatus";
183
+ import { ReportSummary } from "./objects/Reports/ReportSummary";
184
+ import { ReportSummaryReason } from "./objects/Reports/ReportSummaryReason";
185
+ import { ReportTemplate } from "./objects/Reports/ReportTemplate";
186
+ import { ReportTotal } from "./objects/Reports/ReportTotal";
187
+ import { ReportType } from "./objects/Reports/ReportType";
188
+ /**
189
+ * Version number for this release.
190
+ */
191
+ export declare const version = 5.06;
192
+ /**
193
+ * The names of all main object types in the Trak-iT Object Model.
194
+ */
195
+ export type SyncName = "Company" | "CompanyGeneral" | "CompanyStyle" | "CompanyDirectory" | "CompanyPolicy" | "CompanyReseller" | "Contact" | "Machine" | "Session" | "User" | "UserGeneral" | "UserAdvanced" | "UserGroup" | "Asset" | "AssetGeneral" | "AssetAdvanced" | "AssetDispatch" | "AssetAlert" | "AssetMessage" | "Behaviour" | "BehaviourScript" | "BehaviourLog" | "BillableHostingLicense" | "BillableHostingRule" | "BillingProfile" | "BillingReport" | "DispatchJob" | "DispatchTask" | "Document" | "FormResult" | "FormTemplate" | "Dashcam" | "Icon" | "Picture" | "MaintenanceSchedule" | "MaintenanceJob" | "Place" | "Provider" | "ProviderGeneral" | "ProviderAdvanced" | "ProviderControl" | "ProviderScript" | "ProviderConfig" | "ProviderConfigurationType" | "ProviderConfiguration" | "ProviderRegistration" | "ReportTemplate" | "ReportSchedule" | "ReportResult";
196
+ /**
197
+ * A mapping of all main object types in the Trak-iT Object Model to their class constructors.
198
+ */
199
+ export declare const classes: {
200
+ [key in SyncName]: {
201
+ new (): IRequestable;
202
+ };
203
+ };
204
+ /**
205
+ * Local Maps that store various instances of objects.
206
+ * The storage is used by the sync system.
207
+ */
208
+ export declare const storage: {
209
+ [key in SyncName]: Map<ulong | guid | email | codified | string, IRequestable>;
210
+ };
211
+ /**
212
+ * Common types used throughout the application.
213
+ * These are simply numbers or strings of a specific format.
214
+ */
215
+ export type { JsonArray, JsonObject, JsonValue, byte, double, int, long, phone, sbyte, short, single, uint, ulong, ushort, codified, colour, datetime, datetimetemplate, email, expression, guid, ipv4, nothing, polyline, timespan, url, IRequestable, IDeserializable, ISerializable, };
216
+ /**
217
+ * A group of utility functions for common tasks like dealing with strings.
218
+ */
219
+ export declare const utility: {
220
+ capitalize: typeof CAPITALIZE;
221
+ codify: typeof CODIFY;
222
+ date: typeof DATE;
223
+ douglasPeucker: typeof DOUGLASPEUCKER;
224
+ fileSize: typeof FILESIZE_HELPER;
225
+ findTimeZoneById: typeof TIMEZONE_FIND;
226
+ guid: typeof GUID;
227
+ highlight: typeof HIGHLIGHT;
228
+ id: typeof ID;
229
+ isNothing: typeof IS_NOTHING;
230
+ isntNaN: typeof IS_AN;
231
+ numberGroups: typeof NUMBER_GROUPS;
232
+ roundTo: typeof ROUND_TO;
233
+ parseTime: typeof TIMESPAN_PARSE;
234
+ phoneNumber: typeof PHONE_PARSE;
235
+ pluralize: typeof PLURALIZE;
236
+ singularize: typeof SINGULARIZE;
237
+ stringifyTime: typeof TIMESPAN_STRINGIFY;
238
+ };
239
+ /**
240
+ * A group of functions for converting between different measurement systems.
241
+ */
242
+ export declare const convert: {
243
+ fromTo: typeof import("./objects/API/Conversion").CONVERT_FROM_TO;
244
+ sqmToSqft: typeof import("./objects/API/Conversion").CONVERT_SQM_TO_SQFT;
245
+ sqftToSqm: typeof import("./objects/API/Conversion").CONVERT_SQFT_TO_SQM;
246
+ sqmToSqy: typeof import("./objects/API/Conversion").CONVERT_SQM_TO_YARDS;
247
+ yftToSqm: typeof import("./objects/API/Conversion").CONVERT_YARDS_TO_SQM;
248
+ sqkmToSqmi: typeof import("./objects/API/Conversion").CONVERT_SQKM_TO_SQMI;
249
+ sqmiToSqkm: typeof import("./objects/API/Conversion").CONVERT_SQMI_TO_SQKM;
250
+ haToAc: typeof import("./objects/API/Conversion").CONVERT_HECTARE_TO_ACRE;
251
+ acToHa: typeof import("./objects/API/Conversion").CONVERT_ACRE_TO_HECTARE;
252
+ kmToMi: typeof import("./objects/API/Conversion").CONVERT_KILOMETRES_TO_MILES;
253
+ miToKm: typeof import("./objects/API/Conversion").CONVERT_MILES_TO_KILOMETRES;
254
+ mToYd: typeof import("./objects/API/Conversion").CONVERT_METRES_TO_YARDS;
255
+ ydToM: typeof import("./objects/API/Conversion").CONVERT_YARDS_TO_METRES;
256
+ mToFt: typeof import("./objects/API/Conversion").CONVERT_METRES_TO_FEET;
257
+ ftToM: typeof import("./objects/API/Conversion").CONVERT_FEET_TO_METRES;
258
+ cmToIn: typeof import("./objects/API/Conversion").CONVERT_CENTIMETRES_TO_INCHES;
259
+ inToCm: typeof import("./objects/API/Conversion").CONVERT_INCHES_TO_CENTIMETRES;
260
+ mpgToL100km: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPGUS_AND_L100KM;
261
+ mpgUKToL100km: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPGUK_AND_L100KM;
262
+ mpkwhToKwh100kim: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPKWH_AND_KWH100KM;
263
+ l100kmToMpg: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPGUS_AND_L100KM;
264
+ l100kmToMpgUK: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPGUK_AND_L100KM;
265
+ kwh100kimToMpkwh: typeof import("./objects/API/Conversion").CONVERT_BETWEEN_MPKWH_AND_KWH100KM;
266
+ kpaToPsi: typeof import("./objects/API/Conversion").CONVERT_KPA_TO_PSI;
267
+ psiToKpa: typeof import("./objects/API/Conversion").CONVERT_PSI_TO_KPA;
268
+ kphToMph: typeof import("./objects/API/Conversion").CONVERT_KILOMETRES_TO_MILES;
269
+ mphToKph: typeof import("./objects/API/Conversion").CONVERT_MILES_TO_KILOMETRES;
270
+ mpsToFtps: typeof import("./objects/API/Conversion").CONVERT_METRES_TO_FEET;
271
+ ftpsToMps: typeof import("./objects/API/Conversion").CONVERT_FEET_TO_METRES;
272
+ cmpsToInps: typeof import("./objects/API/Conversion").CONVERT_CENTIMETRES_TO_INCHES;
273
+ inpsToCmps: typeof import("./objects/API/Conversion").CONVERT_INCHES_TO_CENTIMETRES;
274
+ cToF: typeof import("./objects/API/Conversion").CONVERT_CELCIUS_TO_FAHRENHEIT;
275
+ fToC: typeof import("./objects/API/Conversion").CONVERT_FAHRENHEIT_TO_CELCIUS;
276
+ lToGal: typeof import("./objects/API/Conversion").CONVERT_LITRES_TO_GALLONS_US;
277
+ lToGalUK: typeof import("./objects/API/Conversion").CONVERT_LITRES_TO_GALLONS_UK;
278
+ galToL: typeof import("./objects/API/Conversion").CONVERT_GALLONS_US_TO_LITRES;
279
+ galUKToL: typeof import("./objects/API/Conversion").CONVERT_GALLONS_UK_TO_LITRES;
280
+ mlToFloz: typeof import("./objects/API/Conversion").CONVERT_MILLILITRES_TO_OUNCES_US;
281
+ mlToFlozUK: typeof import("./objects/API/Conversion").CONVERT_MILLILITRES_TO_OUNCES_UK;
282
+ flozToMl: typeof import("./objects/API/Conversion").CONVERT_OUNCES_US_TO_MILLILITRES;
283
+ flozUKToMl: typeof import("./objects/API/Conversion").CONVERT_OUNCES_UK_TO_MILLILITRES;
284
+ kgToLbs: typeof import("./objects/API/Conversion").CONVERT_KG_TO_LBS;
285
+ lbsToKg: typeof import("./objects/API/Conversion").CONVERT_LBS_TO_KG;
286
+ gToOz: typeof import("./objects/API/Conversion").CONVERT_GRAM_TO_OZ;
287
+ ozToG: typeof import("./objects/API/Conversion").CONVERT_OZ_TO_GRAM;
288
+ tToTon: typeof import("./objects/API/Conversion").CONVERT_TONNE_TO_TON_US;
289
+ tonToT: typeof import("./objects/API/Conversion").CONVERT_TON_US_TO_TONNE;
290
+ tToTonUK: typeof import("./objects/API/Conversion").CONVERT_TONNE_TO_TON_UK;
291
+ tonUKToT: typeof import("./objects/API/Conversion").CONVERT_TON_UK_TO_TONNE;
292
+ };
293
+ /**
294
+ * Functions for encoding and decoding device passwords.
295
+ */
296
+ export declare const encoding: {
297
+ toPassword: typeof PASSWORD_ENCODE;
298
+ fromPassword: typeof PASSWORD_DECODE;
299
+ };
300
+ /**
301
+ * Functions for converting between JSON objects using our custom serialization.
302
+ */
303
+ export declare const serialization: {
304
+ fromMap: typeof MAP_TO_JSON;
305
+ fromMapPredicate: typeof MAP_TO_JSON_PREDICATE;
306
+ toMap: typeof JSON_TO_MAP;
307
+ toMapPredicate: typeof JSON_TO_MAP_PREDICATE;
308
+ };
309
+ /**
310
+ * Common classes used throughout the API, and the Base classes used for synchronizable objects.
311
+ */
312
+ export { Base, BaseComponent, BaseCompound, SearchPattern, TimeSpan, Timezone };
313
+ /**
314
+ * Utility functions exposing algorithms for a flat plane.
315
+ */
316
+ export declare const geometry: {
317
+ pathLength: typeof PATH_LENGTH;
318
+ pathOrthogonal: typeof PATH_ORTHOGONAL;
319
+ pathReduce: typeof PATH_PEUCKER;
320
+ pointAngle: typeof POINT_ANGLE;
321
+ pointDistance: typeof POINT_DISTANCE;
322
+ pointPythagora: typeof PYTHAGORA;
323
+ pointVector: typeof POINT_VECTOR;
324
+ polyArea: typeof POLY_AREA;
325
+ polyContains: typeof POLY_CONTAINS;
326
+ polyReduce: typeof POLY_PEUCKER;
327
+ polyWrapper: typeof POLY_WRAPPER;
328
+ radialCircumference: typeof RADIAL_CIRCUMFERENCE;
329
+ radialArea: typeof RADIAL_AREA;
330
+ radialSmallest: typeof RADIAL_BADOIU_CLARKSON;
331
+ radialOverlapsRectangle: typeof RADIAL_OVERLAP_RECTANGLE;
332
+ };
333
+ export { Point, Radial, Rectangle, Size };
334
+ /**
335
+ * Utility functions exposing algorithms for a WGS84/NAD83 spheroid.
336
+ */
337
+ export declare const geography: {
338
+ earthRadius: number;
339
+ clampLat: typeof LATITUDE_NORMALIZED;
340
+ clampLng: typeof LONGITUDE_NORMALIZED;
341
+ pathLength: typeof ROUTE_LENGTH;
342
+ pathReduce: typeof ROUTE_PEUCKER;
343
+ pathEncode: typeof ROUTE_ENCODE;
344
+ pathDecode: typeof ROUTE_DECODE;
345
+ pointAngle: typeof LATLNG_ANGLE;
346
+ pointDistance: typeof LATLNG_DISTANCE;
347
+ pointMiddle: typeof LATLNG_MIDPOINT;
348
+ pointOrthogonal: typeof LATLNG_GREAT_CIRCLE;
349
+ pointTranslate: typeof LATLNG_TRANSLATE;
350
+ pointVincenty: typeof LATLNG_DISTANCE_VINCENTY;
351
+ polyArea: typeof GEOFENCE_AREA;
352
+ polyContains: typeof GEOFENCE_CONTAINS;
353
+ polyReduce: typeof GEOFENCE_PEUCKER;
354
+ polyWidest: typeof GEOFENCE_WIDEST;
355
+ };
356
+ export { LatLng, LatLngBounds, Position, StreetAddress };
357
+ export { ColourStyle, Company, CompanyDirectory, CompanyGeneral, CompanyPolicy, CompanyReseller, CompanyStyle, LabelStyle, NotificationServerEmail, NotificationServerSms, PasswordExpiryMode, PasswordPolicy, SessionMultiUser, SessionPolicy };
358
+ /**
359
+ * Functions and collections for validating account permissions.
360
+ */
361
+ export declare const authorizer: {
362
+ computeAll: typeof computeAll;
363
+ compute: typeof compute;
364
+ computeAllSimple: typeof computeAllSimple;
365
+ computeSimple: typeof computeSimple;
366
+ computeSimpleLevels: typeof computeSimpleLevels;
367
+ getSimpleLevel: typeof getSimpleLevel;
368
+ hasSimple: typeof hasSimple;
369
+ findSimple: typeof findSimple;
370
+ findSimpleLevel: typeof findSimpleLevel;
371
+ computeAllComplex: typeof computeAllComplex;
372
+ computeComplex: typeof computeComplex;
373
+ getComplexLevel: typeof getComplexLevel;
374
+ findComplexLevel: typeof findComplexLevel;
375
+ hasComplex: typeof hasComplex;
376
+ findComplex: typeof findComplex;
377
+ hasAnyComplex: typeof hasAnyComplex;
378
+ findAnyComplex: typeof findAnyComplex;
379
+ findAllEscalations: typeof findAllEscalations;
380
+ findEscalations: typeof findEscalations;
381
+ findAllLabelEscalations: typeof findAllLabelEscalations;
382
+ findLabelEscalation: typeof findLabelEscalation;
383
+ /**
384
+ * A list of {@link PermissionType}s which are implied for each user's own company.
385
+ */
386
+ implied: readonly PermissionType[];
387
+ /**
388
+ * {@link PermissionType}s which do not use labels to calculate access.
389
+ */
390
+ simple: readonly PermissionType[];
391
+ /**
392
+ * The {@link PermissionType}s which are calculated using labels.
393
+ */
394
+ complex: readonly PermissionType[];
395
+ };
396
+ export { Contact, Machine, NotificationMethod, Permission, PermissionEscalation, PermissionEscalationState, PermissionEscalationType, PermissionLevel, PermissionMethod, PermissionType, Session, SessionStatus, SystemsOfUnits, User, UserGeneral, UserAdvanced, UserGroup, UserNotifications, };
397
+ export { Asset, AssetAdvanced, AssetAttribute, AssetDispatch, AssetGeneral, AssetPlaceStatus, AssetPlaceStatusType, AssetType, AssetAlert, AssetMessage, AlertPriority, MessageFolder, MessageStatus, MessageType, };
398
+ export { Behaviour, BehaviourLog, BehaviourLogType, BehaviourParameter, BehaviourParameterType, BehaviourScript, };
399
+ export { BillableHostingLicense, BillableHostingLicenseType, BillableHostingRule, BillableHostingType, BillingCurrency, BillingCycle, BillingProfile, BillingReport, BillingReportBreakdown, BillingReportHostingSummary, BillingReportLicenseBreakdown, BillingReportServiceBreakdown, BillingReportStatus, BillingReportSummary, };
400
+ export { DispatchDirection, DispatchJob, DispatchJobPriority, DispatchStep, DispatchStepState, DispatchStepStatus, DispatchTask, DispatchTaskStatus, };
401
+ export { Document, FormResult, FormTemplate, FormFieldType, FormFieldBase, FormFieldAttachments, FormFieldBoolean, FormFieldChoice, FormFieldDate, FormFieldNumeric, FormFieldNumericSize, FormFieldSignature, FormFieldText, FormFieldTime, FormFieldTimezone, };
402
+ export { DashcamBase, Dashcam, DashcamLive, DashcamMediaType, Icon, IconGlyph, IconLabel, IconLayer, Picture, };
403
+ export { MaintenanceSchedule, MaintenanceJob, MaintenanceJobStatus, MaintenanceInterval, };
404
+ export { Place, PlaceType, };
405
+ export { Provider, ProviderGeneral, ProviderAdvanced, ProviderControl, ProviderCommand, ProviderCommandStatus, ProviderCommandType, ProviderType, ProviderRegistration, ProviderData, ProviderScript, ProviderScriptBlock, ProviderScriptParameter, ProviderScriptParameterType, ProviderConfig, ProviderConfiguration, ProviderConfigurationNode, ProviderConfigurationType, ProviderGeofenceBase, ProviderGeofenceCircular, ProviderGeofencePoint, ProviderGeofencePolygon, ProviderGeofenceRectangle, };
406
+ export { ReportResult, ReportResultData, ReportSchedule, ReportTemplate, ReportType, ReportBreakdown, ReportBreakdownJob, ReportBreakdownMessage, ReportBreakdownTask, ReportTotal, ReportFilterMode, ReportNotifications, ReportOptions, ReportParameter, ReportParameterType, ReportRecurrence, ReportRecurrenceType, ReportScorecard, ReportScorecardParameter, ReportScorecardRules, ReportStatus, ReportSummary, ReportSummaryReason, };
@@ -0,0 +1,46 @@
1
+ import { IIdUlong } from "./Interfaces/IIdUlong";
2
+ import { ISerializable } from "./Interfaces/ISerializable";
3
+ import { ulong } from "./Types";
4
+ /**
5
+ * Returns the unique values from an array.
6
+ * @template T
7
+ * @param array
8
+ */
9
+ export declare function ARRAY_UNIQUE<T>(array: T[]): T[];
10
+ /**
11
+ * Returns an array of only those elements that existed in both input arrays.
12
+ * @template T
13
+ * @param array1
14
+ * @param array2
15
+ */
16
+ export declare function ARRAY_INTERSECT<T>(array1: T[], array2: T[]): T[];
17
+ /**
18
+ * Returns an array of only those elements that existe in both array1, and not in array2.
19
+ * @template T
20
+ * @param array1
21
+ * @param array2
22
+ */
23
+ export declare function ARRAY_EXCEPT<T>(array1: T[], array2: T[]): T[];
24
+ /**
25
+ * Given as the first argument to {@link Array#map}, the {@link IIdUlong.id}s are returned.
26
+ * @param object
27
+ */
28
+ export declare function ARRAY_TO_IDS(object: IIdUlong): ulong;
29
+ /**
30
+ * Given as the first argument to {@link Array#map}, the {@link IIdUlong.id}s are returned.
31
+ * @param object
32
+ */
33
+ export declare function ARRAY_TO_JSON(object: ISerializable): any;
34
+ /**
35
+ *
36
+ * @param type
37
+ * @param array
38
+ */
39
+ export declare function ARRAY_TO_ENUMS<T>(type: any, array: string[]): T[];
40
+ /**
41
+ * Given as the first argument to {@link Array#filter} where the second argument is a {@link boolean[]}.
42
+ * @param this The array of booleans to use to filter the source array.
43
+ * @param object Unused.
44
+ * @param index The index of the obect in the source array.
45
+ */
46
+ export declare function FILTER_BY_BOOLEAN_ARRAY(this: boolean[], object: unknown, index: number): boolean;
@@ -0,0 +1,19 @@
1
+ import { IDeserializable } from './Interfaces/IDeserializable';
2
+ import { JsonObject, nothing } from './Types';
3
+ /**
4
+ * A base class used to construct objects from the sync system.
5
+ */
6
+ export declare abstract class Base implements IDeserializable {
7
+ /**
8
+ * Almost all objects can be constructed using a simple JSON object.
9
+ * @param json
10
+ */
11
+ constructor(json?: JsonObject | nothing);
12
+ /**
13
+ * Updates this class from the given input.
14
+ * @param json A JSON value used to update this class.
15
+ * @param forced When true, forces the update.
16
+ * @returns True when an update was completed.
17
+ */
18
+ abstract fromJSON(json: JsonObject, force?: boolean): boolean;
19
+ }
@@ -0,0 +1,40 @@
1
+ import { Base } from './Base';
2
+ import { IRequestable } from './Interfaces/IRequestable';
3
+ import { ISerializable } from './Interfaces/ISerializable';
4
+ import { email, guid, int, ulong } from './Types';
5
+ /**
6
+ * Any derived class can/should be serialized and given to a user.
7
+ */
8
+ export declare abstract class BaseComponent extends Base implements IRequestable, ISerializable {
9
+ /**
10
+ * Object version keys used to validate synchronization for all object properties.
11
+ */
12
+ private _version;
13
+ /**
14
+ * Object version keys used to validate synchronization for all object properties.
15
+ */
16
+ get v(): int[];
17
+ /**
18
+ *
19
+ * @param version
20
+ * @returns
21
+ */
22
+ protected updateVersion(version: int | int[]): boolean;
23
+ /**
24
+ *
25
+ * @param version
26
+ * @returns
27
+ */
28
+ protected updateVersions(versions?: int[]): boolean[];
29
+ /**
30
+ * Returns a value which can be used as a unique identifier for this object.
31
+ * Values are unique for each type of object, but can be identical for different object types.
32
+ * @returns A value unique for this type of object.
33
+ */
34
+ abstract getKey(): ulong | email | guid | string;
35
+ /**
36
+ * Creates a literal of this {@link BaseComponent}.
37
+ * Used internally by {@link JSON.stringify}.
38
+ */
39
+ abstract toJSON(): any;
40
+ }
@@ -1,4 +1,4 @@
1
- import { Component } from './Component';
1
+ import { BaseComponent } from './BaseComponent';
2
2
  import { int } from './Types';
3
3
  /**
4
4
  * Some objects are made up of the pieces of many objects.
@@ -7,11 +7,11 @@ import { int } from './Types';
7
7
  * {@link Provider}
8
8
  * {@link User}
9
9
  */
10
- export declare abstract class Compound extends Component {
10
+ export declare abstract class BaseCompound extends BaseComponent {
11
11
  /**
12
12
  * A list of individually subscribable objects that make up the compound object.
13
13
  */
14
- abstract get pieces(): Component[];
14
+ abstract get pieces(): BaseComponent[];
15
15
  /**
16
16
  * Compound objects have multiple {@link v} values; one for each part of the object.
17
17
  */
@@ -0,0 +1,15 @@
1
+ import { codified } from "./Types";
2
+ /**
3
+ * Creates a searchable/coded string based on a user inputted string. Quotation marks, apostrophes, and accents are removed.
4
+ * @param input
5
+ */
6
+ export declare function CODIFY(input: string): codified;
7
+ /**
8
+ * Wraps the {@code input} using the codified {@code terms} with the {@code prefix}s and {@code suffix}s.
9
+ * When a term is found beside a quotation mark or apostrophe, the mark is included inside the highlight.
10
+ * @param input The string to add HTML highlights to.
11
+ * @param terms Codified search terms from {@link CODIFY}.
12
+ * @param prefix Added to the beginning of each of the {@code terms}.
13
+ * @param suffix Added to the end of each of the {@code terms}.
14
+ */
15
+ export declare function HIGHLIGHT(input: string, terms: codified[], [prefix, suffix]?: [string, string]): string;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Timer methods that get used many places.
3
+ */
4
+ export declare const SET_TIMER: typeof setTimeout, SET_EVERY: typeof setInterval, CLEAR_TIMER: typeof clearTimeout, CLEAR_EVERY: typeof clearInterval;
5
+ /**
6
+ * Parsing functions that get used all over.
7
+ */
8
+ export declare const INT: typeof parseInt, FLOAT: typeof parseFloat;
9
+ /**
10
+ *
11
+ */
12
+ export declare const OBJECT: ObjectConstructor, KEYS: {
13
+ (o: object): string[];
14
+ (o: {}): string[];
15
+ }, FREEZE: {
16
+ <T extends Function>(f: T): T;
17
+ <T extends {
18
+ [idx: string]: U | null | undefined | object;
19
+ }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
20
+ <T>(o: T): Readonly<T>;
21
+ }, JSON_PARSE: (text: string, reviver?: (this: any, key: string, value: any) => any) => any, JSON_STRINGIFY: {
22
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
23
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
24
+ };
25
+ /**
26
+ * Maths (as the Brits would say).
27
+ */
28
+ export declare const MATH: Math, PI: number, ABS: (x: number) => number, ACOS: (x: number) => number, ASIN: (x: number) => number, ATAN: (x: number) => number, ATAN2: (y: number, x: number) => number, CEIL: (x: number) => number, COS: (x: number) => number, EXP: (x: number) => number, FLOOR: (x: number) => number, LOG: (x: number) => number, MAX: (...values: number[]) => number, MIN: (...values: number[]) => number, POW: (x: number, y: number) => number, RANDOM: () => number, ROUND: (x: number) => number, SIN: (x: number) => number, SQRT: (x: number) => number, TAN: (x: number) => number;
29
+ /**
30
+ * Constant values used for calculations in geometry and geography.
31
+ * half of pi (used in mercator projects)
32
+ * radians to degrees: value * (180 / pi)
33
+ * degrees to radians: value * (pi / 180)
34
+ */
35
+ export declare const HALF_PI: number, RADIANS_TO_DEGREES: number, DEGREES_TO_RADIANS: number;
36
+ /**
37
+ *
38
+ */
39
+ export declare const WIN: typeof globalThis, DOC: Document, LOC: Location;