@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
@@ -1,4 +1,5 @@
1
1
  import { IDeserializable } from './Interfaces/IDeserializable';
2
+ import { JsonObject, nothing } from './Types';
2
3
  /**
3
4
  * A base class used to construct objects from the sync system.
4
5
  */
@@ -7,12 +8,12 @@ export declare abstract class Base implements IDeserializable {
7
8
  * Almost all objects can be constructed using a simple JSON object.
8
9
  * @param json
9
10
  */
10
- constructor(json?: any | null);
11
+ constructor(json?: JsonObject | nothing);
11
12
  /**
12
13
  * Updates this class from the given input.
13
14
  * @param json A JSON value used to update this class.
14
15
  * @param forced When true, forces the update.
15
16
  * @returns True when an update was completed.
16
17
  */
17
- abstract fromJSON(json: any, force?: boolean): boolean;
18
+ abstract fromJSON(json: JsonObject, force?: boolean): boolean;
18
19
  }
@@ -1,12 +1,15 @@
1
1
  import { Base } from './Base';
2
2
  import { IRequestable } from './Interfaces/IRequestable';
3
3
  import { ISerializable } from './Interfaces/ISerializable';
4
- import { int } from './Types';
4
+ import { email, guid, int, ulong } from './Types';
5
5
  /**
6
6
  * Any derived class can/should be serialized and given to a user.
7
7
  */
8
8
  export declare abstract class BaseComponent extends Base implements IRequestable, ISerializable {
9
- #private;
9
+ /**
10
+ * Object version keys used to validate synchronization for all object properties.
11
+ */
12
+ private _version;
10
13
  /**
11
14
  * Object version keys used to validate synchronization for all object properties.
12
15
  */
@@ -24,11 +27,11 @@ export declare abstract class BaseComponent extends Base implements IRequestable
24
27
  */
25
28
  protected updateVersions(versions?: int[]): boolean[];
26
29
  /**
27
- * Returns a string which can be used as a unique identifier for this object.
28
- * Strings are unique for each type of object, but can be identical for different object types.
29
- * @returns A string unique for this type of object.
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.
30
33
  */
31
- abstract getKey(): string;
34
+ abstract getKey(): ulong | email | guid | string;
32
35
  /**
33
36
  * Creates a literal of this {@link BaseComponent}.
34
37
  * Used internally by {@link JSON.stringify}.
@@ -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,9 @@
1
+ /**
2
+ * Encodes the given string as a {@link Provider#password}.
3
+ */
4
+ export declare function PASSWORD_ENCODE(value: string): string;
5
+ /**
6
+ * Decodes the given {@link Provider#password} as a human readable value.
7
+ * @param value
8
+ * */
9
+ export declare function PASSWORD_DECODE(value: string): string;
@@ -11,11 +11,11 @@ export declare function NUMBER_GROUPS(number: number, size?: number, delimiter?:
11
11
  /**
12
12
  * Creates a more human readable string representation of the filesize.
13
13
  * @param bytes
14
- * @param places The number of decimal places. Default is 1.
15
- * @param maxScale Largest size-scale to use for representing the file-size. Default is 2 (Megabyte), can be a value between 0 (Byte) and 6 (Exabyte).
14
+ * @param places The number of decimal places. Default is 0.
15
+ * @param maxScale Largest size-scale to use for representing the file-size. Default is "MB" (Megabyte), can be a value between 0 (Byte) and 6 (Exabyte).
16
16
  * @param groupSize Quantity of digits per number group. The default is 3.
17
- * @param groupDelimiter Character(s) to use to divide the integer groups. The detauls is ",".
17
+ * @param groupDelimiter Character(s) to use to divide the integer groups. The detauls is ",".
18
18
  * @param decimalDelimiter Character(s) to use to divide the decimal groups. The detauls is same as delimiter.
19
19
  * @param point Character(s) to use to divide the integer groups from the decimal groups. The detauls is ".".
20
20
  * */
21
- export declare function FILESIZE_HELPER(bytes: number, places?: number, maxScale?: number, groupSize?: number, groupDelimiter?: string, decimalDelimiter?: string, point?: string): string;
21
+ export declare function FILESIZE_HELPER(bytes: number, places?: number, maxScale?: string, groupSize?: number, groupDelimiter?: string, decimalDelimiter?: string, point?: string): string;
@@ -1,10 +1,9 @@
1
- import { ISerializable } from "./Interfaces/ISerializable";
2
- import { datetime } from "./Types";
1
+ import { datetime, JsonObject, nothing } from "./Types";
3
2
  /**
4
3
  * Checks for both null and undefined
5
4
  * @param value The variable to check
6
5
  */
7
- export declare function IS_NOTHING(value: any): value is null | undefined;
6
+ export declare function IS_NOTHING(value: any): value is nothing;
8
7
  /**
9
8
  * Checks to see if the given parameter is a number object or number literal.
10
9
  * @param value The variable to check
@@ -65,7 +64,7 @@ export declare function ID(value: any): number;
65
64
  * Creates a Date object out of the given value.
66
65
  * @param value
67
66
  */
68
- export declare function DATE(value?: Date | number | datetime): Date;
67
+ export declare function DATE(value?: Date | number | datetime | nothing): Date;
69
68
  /**
70
69
  * An implementation of the Douglas-Peucker path reduction algorithm.
71
70
  * @template TCoord A type of coordinate like a pixel or lat/lng.
@@ -87,13 +86,26 @@ export declare function DOUGLASPEUCKER_INTERNAL<TCoord>(source: TCoord[], triang
87
86
  */
88
87
  export declare function DOUGLASPEUCKER<TCoord>(source: TCoord[], triangleHeight: (first: TCoord, middle: TCoord, last: TCoord) => number, tolerance: number): TCoord[];
89
88
  /**
90
- * Encodes the given string as a Provider password.
89
+ * Returns a plural version of the given word.
90
+ * This obviously doesn't work for every word imaginable, but covers the standard object names in the Trak-iT APIs.
91
+ * @param word
92
+ * @returns
93
+ */
94
+ export declare function PLURALIZE(word: string): string;
95
+ /**
96
+ * Returns a singular version of the given word.
97
+ * This obviously doesn't work for every word imaginable, but covers the standard object names in the Trak-iT APIs.
98
+ * @param word
99
+ * @returns
91
100
  */
92
- export declare function PASSWORD_ENCODE(value: string): string;
101
+ export declare function SINGULARIZE(word: string): string;
93
102
  /**
94
- * Decodes the given Provider password as a human readable value.
103
+ * Returns the given word with the first letter capitalized (or lower-cased).
104
+ * @param word
105
+ * @param upper
106
+ * @returns
95
107
  */
96
- export declare function PASSWORD_DECODE(value: string): string;
108
+ export declare function CAPITALIZE(word: string, upper?: boolean): string;
97
109
  /**
98
110
  * Parses the input and returns a valid phone number prefixed by 1, or NaN if invalid.
99
111
  * @param phone
@@ -113,49 +125,42 @@ export declare function ZERO_PADDED(num: number, length: number, decimals?: numb
113
125
  * @param deep
114
126
  * @returns
115
127
  */
116
- export declare function MAP_TO_OBJECT(source: Map<any, any>, deep?: boolean): object;
117
- /**
118
- *
119
- * @param source
120
- * @param deep
121
- * @returns
122
- */
123
- export declare function MAP_TO_OBJECT_PREDICATE<K, V>(source: Map<K, V>, predicate: (key: K, value: V) => [string, any]): object;
128
+ export declare function MAP_TO_JSON(source: Map<any, any>, deep?: boolean): JsonObject;
124
129
  /**
125
130
  *
126
131
  * @param source
127
132
  * @param deep
128
133
  * @returns
129
134
  */
130
- export declare function MAP_TO_OBJECT_VALUE_JSON<V extends ISerializable>(source: Map<any, V>): object;
135
+ export declare function MAP_TO_JSON_PREDICATE<K, V>(source: Map<K, V>, predicate: (key: K, value: V) => [string, any]): JsonObject;
131
136
  /**
132
137
  *
133
138
  * @param map
134
139
  * @param deep
135
140
  * @returns
136
141
  */
137
- export declare function OBJECT_TO_MAP_BY_PREDICATE<K, V>(source: object, predicate: (key: string, value: any) => [K, V]): Map<K, V>;
142
+ export declare function JSON_TO_MAP_PREDICATE<K, V>(source: object, predicate: (key: string, value: any) => [K, V]): Map<K, V>;
138
143
  /**
139
144
  *
140
145
  * @param map
141
146
  * @param deep
142
147
  * @returns
143
148
  */
144
- export declare function OBJECT_TO_MAP(source: object, deep?: boolean): Map<string, any>;
149
+ export declare function JSON_TO_MAP(source: object, deep?: boolean): Map<string, any>;
145
150
  /**
146
151
  *
147
152
  * @param map
148
153
  * @param deep
149
154
  * @returns
150
155
  */
151
- export declare function OBJECT_TO_MAP_KEY_CODIFIED(source: object, deep?: boolean): Map<string, any>;
156
+ export declare function JSON_TO_MAP_KEY_CODIFIED(source: object, deep?: boolean): Map<string, any>;
152
157
  /**
153
158
  *
154
159
  * @param map
155
160
  * @param deep
156
161
  * @returns
157
162
  */
158
- export declare function OBJECT_TO_MAP_KEY_ULONG(source: object, deep?: boolean): Map<number, any>;
163
+ export declare function JSON_TO_MAP_KEY_ULONG(source: object, deep?: boolean): Map<number, any>;
159
164
  /**
160
165
  *
161
166
  * @param this
@@ -1,6 +1,10 @@
1
1
  import { IPoint } from '../Geometry/Interfaces';
2
2
  import { int } from '../Types';
3
3
  import { ILatLng, ILatLngBounds } from './Interfaces';
4
+ /**
5
+ * The default precision used to serialize latlngs.
6
+ */
7
+ export declare const DEFAULT_PRECISION = 6;
4
8
  /**
5
9
  * The radius of the Earth in meters taken from the GRS-80, NAD83, and WGS-84 standards.
6
10
  */
@@ -1,3 +1,4 @@
1
+ import { datetime, nothing } from '../Types';
1
2
  /**
2
3
  * A coordinate on the Earth.
3
4
  */
@@ -28,33 +29,37 @@ export declare function ILatLng_clone(dot: ILatLng): ILatLng;
28
29
  */
29
30
  export interface IPosition extends ILatLng {
30
31
  /**
31
- Speed
32
+ * Speed
32
33
  */
33
- speed: number | null;
34
+ speed: number | nothing;
34
35
  /**
35
- Direction of travel
36
+ * Direction of travel
36
37
  */
37
- bearing: number | null;
38
+ bearing: number | nothing;
38
39
  /**
39
- Distance in meters from the sea level
40
+ * Distance in meters from the sea level
40
41
  */
41
- altitude: number | null;
42
+ altitude: number | nothing;
42
43
  /**
43
- Threshold in meters for the accuracy of a position
44
+ * Threshold in meters for the accuracy of a position
44
45
  */
45
- accuracy: number | null;
46
+ accuracy: number | nothing;
46
47
  /**
47
- The Date/Time of the GPS reading
48
+ * The Date/Time of the GPS reading
48
49
  */
49
- dts: string | Date;
50
+ dts: datetime;
50
51
  /**
51
- A better description of the current road-segment
52
+ * A description of the current road-segment
52
53
  */
53
- streetAddress: IStreetAddress | null;
54
+ address: string | nothing;
54
55
  /**
55
- The posted speed limit for the road segment
56
+ * A better description of the current road-segment
56
57
  */
57
- speedLimit: number | null;
58
+ streetAddress: IStreetAddress | nothing;
59
+ /**
60
+ * The posted speed limit for the road segment
61
+ */
62
+ speedLimit: number | nothing;
58
63
  }
59
64
  /**
60
65
  * Returns true if the given pin conforms to the {@link IPosition} interface.
@@ -1,4 +1,5 @@
1
1
  import { Point } from '../Geometry/Point';
2
+ import { JsonObject } from '../Types';
2
3
  import { ILatLng } from './Interfaces';
3
4
  import { LatLngBounds } from './LatLngBounds';
4
5
  /**
@@ -13,7 +14,14 @@ export declare class LatLng implements ILatLng {
13
14
  *
14
15
  * @param json
15
16
  */
16
- static fromJSON(json: any): LatLng;
17
+ static fromJSON(json: ILatLng | JsonObject): LatLng;
18
+ /**
19
+ *
20
+ * @param latlng
21
+ * @param delimiter
22
+ * @returns
23
+ */
24
+ static fromString(latlng: string, delimiter?: string): LatLng;
17
25
  /**
18
26
  * Latitude
19
27
  */
@@ -1,4 +1,5 @@
1
1
  import { ISerializable } from '../Interfaces/ISerializable';
2
+ import { JsonObject } from '../Types';
2
3
  import { ILatLng, ILatLngBounds, LatLngBoundsExpansion } from './Interfaces';
3
4
  import { LatLng } from './LatLng';
4
5
  /**
@@ -9,7 +10,7 @@ export declare class LatLngBounds implements ILatLngBounds, ISerializable {
9
10
  *
10
11
  * @param json
11
12
  */
12
- static fromJSON(json: any): LatLngBounds;
13
+ static fromJSON(json: ILatLngBounds | JsonObject): LatLngBounds;
13
14
  /**
14
15
  * Northern latitude
15
16
  */
@@ -1,4 +1,4 @@
1
- import { datetime } from '../Types';
1
+ import { datetime, JsonObject, nothing } from '../Types';
2
2
  import { IPosition, IStreetAddress } from './Interfaces';
3
3
  import { LatLng } from './LatLng';
4
4
  import { StreetAddress } from './StreetAddress';
@@ -6,26 +6,32 @@ import { StreetAddress } from './StreetAddress';
6
6
  * GPS position information
7
7
  */
8
8
  export declare class Position extends LatLng implements IPosition {
9
+ /**
10
+ *
11
+ * @param json
12
+ * @returns
13
+ */
14
+ static fromJSON(json: IPosition | JsonObject): Position;
9
15
  /**
10
16
  * Speed
11
17
  */
12
- speed: number;
18
+ readonly speed: number;
13
19
  /**
14
20
  * Direction of travel
15
21
  */
16
- bearing: number;
22
+ readonly bearing: number;
17
23
  /**
18
24
  * Distance in meters from the sea level
19
25
  */
20
- altitude: number;
26
+ readonly altitude: number;
21
27
  /**
22
28
  * Threshold in meters for the accuracy of a position
23
29
  */
24
- accuracy: number;
30
+ readonly accuracy: number;
25
31
  /**
26
32
  * The Date/Time of the GPS reading
27
33
  */
28
- date: Date;
34
+ readonly date: Date;
29
35
  /**
30
36
  * The Date/Time of the GPS reading
31
37
  */
@@ -33,20 +39,20 @@ export declare class Position extends LatLng implements IPosition {
33
39
  /**
34
40
  * A better description of the current road-segment
35
41
  */
36
- streetAddress: StreetAddress | null;
42
+ readonly streetAddress: StreetAddress | null;
37
43
  /**
38
44
  * The posted speed limit for the road segment
39
45
  */
40
- speedLimit: number;
46
+ readonly speedLimit: number | nothing;
41
47
  /**
42
48
  * Provider Identifier
43
49
  */
44
- origin: string;
50
+ readonly origin: string;
45
51
  /**
46
52
  * The road segment description
47
53
  */
48
- get address(): string;
49
- constructor(lat?: number, lng?: number, speed?: number, bearing?: number, accuracy?: number, dts?: Date | number | datetime, limit?: number, altitude?: number, street?: IStreetAddress);
54
+ readonly address: string;
55
+ constructor(lat?: number | nothing, lng?: number | nothing, speed?: number | nothing, bearing?: number | nothing, accuracy?: number | nothing, dts?: Date | number | datetime | nothing, address?: string | nothing, limit?: number | nothing, altitude?: number | nothing, street?: IStreetAddress | JsonObject | nothing);
50
56
  /**
51
57
  * Returns a text representation of this position.
52
58
  * Returned strings cannot be converted back into {@link Position}
@@ -59,4 +65,10 @@ export declare class Position extends LatLng implements IPosition {
59
65
  * Used internally by {@link JSON.stringify}.
60
66
  */
61
67
  toJSON(): IPosition;
68
+ /**
69
+ *
70
+ * @param position
71
+ * @returns
72
+ */
73
+ isEqual(position: Position | IPosition): boolean;
62
74
  }
@@ -1,4 +1,5 @@
1
1
  import { ISerializable } from "../Interfaces/ISerializable";
2
+ import { JsonObject, nothing } from "../Types";
2
3
  import { IStreetAddress } from "./Interfaces";
3
4
  /**
4
5
  * A road segment description
@@ -8,7 +9,7 @@ export declare class StreetAddress implements IStreetAddress, ISerializable {
8
9
  *
9
10
  * @param street
10
11
  */
11
- static fromJSON(json: any): StreetAddress;
12
+ static fromJSON(json: IStreetAddress | JsonObject): StreetAddress;
12
13
  /**
13
14
  * House number.
14
15
  */
@@ -43,7 +44,7 @@ export declare class StreetAddress implements IStreetAddress, ISerializable {
43
44
  * Indicates that there is a toll for the current road segment.
44
45
  */
45
46
  isToll: boolean;
46
- constructor(number?: string | null, street?: string | null, city?: string | null, region?: string | null, province?: string, country?: string, postal?: string | null, isToll?: boolean);
47
+ constructor(number?: string | nothing, street?: string | nothing, city?: string | nothing, region?: string | nothing, province?: string | nothing, country?: string | nothing, postal?: string | nothing, isToll?: boolean | nothing);
47
48
  /**
48
49
  * Returns a text representation of this address.
49
50
  * Returned strings cannot be converted back into {@link StreetAddress}
@@ -77,7 +77,7 @@ export declare function RADIAL_AREA(radius: number): number;
77
77
  * @param points The array of points on which to create the Radial
78
78
  * @param iterations The higher the iterations the slower and more accurate the Radial. Default is 10,000.
79
79
  * */
80
- export declare function RADIAL_BADOIU_CLARKSON(points: IPoint[], iterations: number): IRadial;
80
+ export declare function RADIAL_BADOIU_CLARKSON(points: IPoint[], iterations?: number): IRadial;
81
81
  /**
82
82
  * Calculates the circumference of a circle based on the given radius.
83
83
  * @param radius
@@ -1,6 +1,7 @@
1
+ import { ISerializable } from '../Interfaces/ISerializable';
2
+ import { JsonObject } from '../Types';
1
3
  import { IPoint } from './Interfaces';
2
4
  import { Radial } from './Radial';
3
- import { ISerializable } from '../Interfaces/ISerializable';
4
5
  /**
5
6
  * A coordinate on a flat surface.
6
7
  */
@@ -9,7 +10,7 @@ export declare class Point implements IPoint, ISerializable {
9
10
  * Returns a new {@link Radial} from the given object.
10
11
  * @param json
11
12
  */
12
- static fromJSON(json: any): Point;
13
+ static fromJSON(json: IPoint | JsonObject): Point;
13
14
  /**
14
15
  * Horizontal coordinate.
15
16
  */
@@ -39,7 +40,7 @@ export declare class Point implements IPoint, ISerializable {
39
40
  * @param point The other {@link Point} to compare.
40
41
  * @param precision The degree of precision to use; default is full precision.
41
42
  */
42
- isEquals(point: IPoint, precision?: number): point is IPoint;
43
+ isEqual(point: IPoint, precision?: number): point is IPoint;
43
44
  /**
44
45
  * Calculates the distance between two {@link Point}s.
45
46
  * @param point The other {@link Point} to compare
@@ -1,8 +1,9 @@
1
+ import { ISerializable } from '../Interfaces/ISerializable';
2
+ import { JsonObject } from '../Types';
1
3
  import { IPoint, IRadial, RadialExpansion } from './Interfaces';
2
4
  import { Point } from './Point';
3
- import { Size } from './Size';
4
5
  import { Rectangle } from './Rectangle';
5
- import { ISerializable } from '../Interfaces/ISerializable';
6
+ import { Size } from './Size';
6
7
  /**
7
8
  * A boundary on a flat surface based on a centre point and a radius.
8
9
  */
@@ -11,7 +12,7 @@ export declare class Radial implements IRadial, IPoint, ISerializable {
11
12
  * Returns a new {@link Radial} from the given object.
12
13
  * @param object
13
14
  */
14
- static fromObject(object: any): Radial;
15
+ static fromJSON(json: IRadial | JsonObject): Radial;
15
16
  /**
16
17
  * Left coordinate.
17
18
  */
@@ -45,7 +46,7 @@ export declare class Radial implements IRadial, IPoint, ISerializable {
45
46
  * @param circle The other {@link IRadial} to compare
46
47
  * @param precision The degree of precision to use; default is full precision.
47
48
  */
48
- isEquals(circle: IRadial, precision?: number): boolean;
49
+ isEqual(circle: IRadial, precision?: number): boolean;
49
50
  /**
50
51
  * Determines if the given {@link IPoint} is contained by this Radial
51
52
  * @param point
@@ -6,10 +6,11 @@ import { Size } from './Size';
6
6
  * A four-sided box on a flat surface.
7
7
  */
8
8
  export declare class Rectangle implements IRectangle {
9
+ #private;
9
10
  /**
10
11
  * Returns a new {@link Radial} from the given object.
11
12
  */
12
- static fromObject(rectangle: any): IRectangle;
13
+ static fromJSON(rectangle: any): Rectangle;
13
14
  /**
14
15
  * Left-most horizontal coordinate
15
16
  */
@@ -41,7 +42,7 @@ export declare class Rectangle implements IRectangle {
41
42
  * @returns A string in the format of "left,top,right,bottom".
42
43
  */
43
44
  toString(delimiter?: string): string;
44
- /**`
45
+ /**
45
46
  * Creates a literal of this {@link Rectangle}.
46
47
  * Used internally by {@link JSON.stringify}.
47
48
  */
@@ -98,11 +99,6 @@ export declare class Rectangle implements IRectangle {
98
99
  * Returns the {@link Point} at the bottom-most/right-most corner.
99
100
  */
100
101
  getBottomRight(): Point;
101
- /**
102
- * Worker function that actually extends the boundary to envelop the given point(s)/boundary(s).
103
- * @param object The objects used to extend the boundary
104
- */
105
- private __expander;
106
102
  /**
107
103
  * Validates the boundary by ensuring the top value is less than the bottom value,
108
104
  * and the left value is less than the right value.
@@ -1,9 +1,15 @@
1
+ import { JsonObject } from '../Types';
1
2
  import { ISize } from './Interfaces';
2
3
  /**
3
4
  * Dimensions on a flat surface.
4
5
  */
5
6
  export declare class Size implements ISize {
6
- static fromJSON(json: any): Size;
7
+ /**
8
+ *
9
+ * @param json
10
+ * @returns
11
+ */
12
+ static fromJSON(json: ISize | JsonObject): Size;
7
13
  /**
8
14
  * Width.
9
15
  */
@@ -29,7 +35,7 @@ export declare class Size implements ISize {
29
35
  * @param size The other Size to compare
30
36
  * @param precision The degree of precision to use; default is full precision
31
37
  */
32
- equals(size: ISize, precision?: number): size is ISize;
38
+ isEqual(size: ISize, precision?: number): size is ISize;
33
39
  /**
34
40
  * Returns a new instance of a {@link Size} where the width and height are adjusted to the given ratios.
35
41
  * If the second ratio is not given, then the first value is used for both.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * For auditable objects, a record of who and what mad the changes.
3
+ */
4
+ export interface IAuditable {
5
+ /**
6
+ * Details about the change to an object.
7
+ */
8
+ updated: IAuditableUpdated;
9
+ /**
10
+ * When the was change procesed.
11
+ */
12
+ processedUtc: Date;
13
+ }
14
+ /**
15
+ * This class used in conjunction with the {@link version} member help with synchronization.
16
+ */
17
+ export declare class IAuditableUpdated {
18
+ /**
19
+ * The {@link User.login} or {@link Machine.key} when the object is updated,
20
+ * or {@link Service.UserAgent} if a service updates the object itself.
21
+ */
22
+ by: string;
23
+ /**
24
+ * A {@link Service.UserAgent} that handled the update.
25
+ */
26
+ from: string;
27
+ /**
28
+ * Timestamp from when the change was made.
29
+ */
30
+ dts: Date;
31
+ }
@@ -1,3 +1,4 @@
1
+ import { JsonObject } from "../../API/Types";
1
2
  /**
2
3
  * An interface for types that are updated using JSON values.
3
4
  */
@@ -8,5 +9,5 @@ export interface IDeserializable {
8
9
  * @param forced When true, forces the update.
9
10
  * @returns True when an update was completed.
10
11
  */
11
- fromJSON(json: any, force?: boolean): boolean;
12
+ fromJSON(json: JsonObject, force?: boolean): boolean;
12
13
  }
@@ -1,3 +1,4 @@
1
+ import { codified } from "../Types";
1
2
  /**
2
3
  * An interface for objects that have "labels".
3
4
  */
@@ -5,5 +6,5 @@ export interface ILabelled {
5
6
  /**
6
7
  * A list of codified labels for this asset or place.
7
8
  */
8
- labels: string[];
9
+ labels: codified[];
9
10
  }
@@ -1,3 +1,4 @@
1
+ import { email, guid, ulong } from "../Types";
1
2
  /**
2
3
  * The main interface for an object in the Trak-iT system.
3
4
  */
@@ -8,11 +9,14 @@ export interface IRequestable {
8
9
  * {@link IIdUlong.id}
9
10
  * {@link Machine.key}
10
11
  * {@link Provider.id}
12
+ * {@link ProviderGeneral.id}
13
+ * {@link ProviderAdvanced.id}
14
+ * {@link ProviderControl.id}
11
15
  * {@link ProviderRegistration.code}
12
16
  * {@link User.login}
13
17
  * {@link UserGeneral.login}
14
18
  * {@link UserAdvanced.login}
15
19
  * {@link Timezone.code}
16
20
  */
17
- getKey(): string;
21
+ getKey(): ulong | email | guid | string;
18
22
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Used internally by {@link MERGE}.
3
+ * @param value
4
+ */
5
+ export declare function MERGE_INTERNAL(value: any): any;
@@ -1,3 +1,4 @@
1
+ import { nothing } from './Types';
1
2
  /**
2
3
  * A common structure used to implement searching throughout the system.
3
4
  * The input format is described in the {@link /wss/#format-expression|WebSocket reference}.
@@ -7,12 +8,12 @@ export declare class SearchPattern {
7
8
  * Creates an array of {@link SearchPattern}s for easier matching. Used for doing OR matching.
8
9
  * @param expression
9
10
  */
10
- static parse(expression?: string | null): SearchPattern[];
11
+ static parse(expression?: string | nothing): SearchPattern[];
11
12
  /**
12
13
  * Creates a single string from the given array of {@link SearchPattern}s for easier serialization.
13
14
  * @param patterns
14
15
  */
15
- static stringify(patterns?: SearchPattern[] | null): string | null;
16
+ static stringify(patterns?: SearchPattern[] | nothing): string | null;
16
17
  /**
17
18
  * To help qualify matches, all operators must match for the search to be
18
19
  * considered matched.