@trakit/objects 0.0.14 → 0.0.16

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 (275) hide show
  1. package/API/Base.d.ts +1 -6
  2. package/Accounts/Contact.d.ts +2 -2
  3. package/Accounts/Machine.d.ts +2 -1
  4. package/Accounts/Session.d.ts +1 -16
  5. package/Accounts/User.d.ts +2 -3
  6. package/Accounts/UserAdvanced.d.ts +2 -1
  7. package/Accounts/UserAuthentication.d.ts +2 -1
  8. package/Accounts/UserGeneral.d.ts +2 -1
  9. package/Accounts/UserGroup.d.ts +2 -1
  10. package/Assets/Asset.d.ts +35 -5
  11. package/Assets/AssetAdvanced.d.ts +2 -1
  12. package/Assets/AssetDispatch.d.ts +18 -2
  13. package/Assets/AssetGeneral.d.ts +34 -2
  14. package/Behaviours/Behaviour.d.ts +1 -0
  15. package/Behaviours/BehaviourLog.d.ts +1 -0
  16. package/Behaviours/BehaviourScript.d.ts +1 -0
  17. package/Billing/BillingProfile.d.ts +1 -0
  18. package/Billing/Hosting/BillableHostingLicense.d.ts +1 -0
  19. package/Billing/Hosting/BillableHostingRule.d.ts +1 -0
  20. package/Billing/Report/BillingReport.d.ts +1 -0
  21. package/Companies/Company.d.ts +3 -24
  22. package/Companies/CompanyDirectory.d.ts +2 -9
  23. package/Companies/CompanyGeneral.d.ts +2 -1
  24. package/Companies/CompanyPolicy.d.ts +2 -1
  25. package/Companies/CompanyReseller.d.ts +2 -1
  26. package/Companies/CompanyStyle.d.ts +2 -1
  27. package/Dispatch/DispatchJob.d.ts +2 -1
  28. package/Dispatch/DispatchTask.d.ts +1 -0
  29. package/Hosting/Document.d.ts +2 -1
  30. package/Hosting/FormResult.d.ts +2 -1
  31. package/Hosting/FormTemplate.d.ts +2 -1
  32. package/Images/Dashcam.d.ts +3 -2
  33. package/Images/DashcamLive.d.ts +3 -2
  34. package/Images/Icon.d.ts +15 -2
  35. package/Images/Picture.d.ts +2 -1
  36. package/Maintenance/MaintenanceJob.d.ts +2 -1
  37. package/Maintenance/MaintenanceSchedule.d.ts +2 -1
  38. package/Messaging/AssetAlert.d.ts +2 -1
  39. package/Messaging/AssetMessage.d.ts +2 -1
  40. package/Places/Place.d.ts +2 -1
  41. package/Providers/Config/ProviderConfig.d.ts +2 -1
  42. package/Providers/Config/ProviderRegistration.d.ts +2 -1
  43. package/Providers/Config/ProviderScript.d.ts +2 -1
  44. package/Providers/Configuration/ProviderConfiguration.d.ts +2 -1
  45. package/Providers/Configuration/ProviderConfigurationType.d.ts +2 -1
  46. package/Providers/Provider.d.ts +3 -13
  47. package/Providers/ProviderAdvanced.d.ts +2 -1
  48. package/Providers/ProviderControl.d.ts +2 -1
  49. package/Providers/ProviderGeneral.d.ts +2 -1
  50. package/README.md +24 -24
  51. package/Reports/ReportBreakdown.d.ts +32 -1
  52. package/Reports/ReportBreakdownJob.d.ts +32 -1
  53. package/Reports/ReportBreakdownMessage.d.ts +32 -1
  54. package/Reports/ReportBreakdownTask.d.ts +32 -1
  55. package/Reports/ReportResult.d.ts +2 -1
  56. package/Reports/ReportSchedule.d.ts +2 -1
  57. package/Reports/ReportSummary.d.ts +64 -2
  58. package/Reports/ReportTemplate.d.ts +2 -1
  59. package/index.d.ts +1 -1
  60. package/objects/API/Arrays.d.ts +46 -0
  61. package/objects/API/Base.d.ts +19 -0
  62. package/objects/API/BaseComponent.d.ts +40 -0
  63. package/objects/API/BaseCompound.d.ts +19 -0
  64. package/objects/API/Codifier.d.ts +15 -0
  65. package/objects/API/Constants.d.ts +39 -0
  66. package/objects/API/Conversion.d.ts +255 -0
  67. package/objects/API/Encoding.d.ts +9 -0
  68. package/objects/API/Files.d.ts +21 -0
  69. package/objects/API/Functions.d.ts +196 -0
  70. package/objects/API/Geography/Functions.d.ts +236 -0
  71. package/objects/API/Geography/Interfaces.d.ts +150 -0
  72. package/objects/API/Geography/LatLng.d.ts +86 -0
  73. package/objects/API/Geography/LatLngBounds.d.ts +146 -0
  74. package/objects/API/Geography/Position.d.ts +74 -0
  75. package/objects/API/Geography/StreetAddress.d.ts +59 -0
  76. package/objects/API/Geometry/Functions.d.ts +114 -0
  77. package/objects/API/Geometry/Interfaces.d.ts +111 -0
  78. package/objects/API/Geometry/Point.d.ts +81 -0
  79. package/objects/API/Geometry/Radial.d.ts +110 -0
  80. package/objects/API/Geometry/Rectangle.d.ts +159 -0
  81. package/objects/API/Geometry/Size.d.ts +58 -0
  82. package/objects/API/Guid.d.ts +4 -0
  83. package/objects/API/Interfaces/IAmCompany.d.ts +11 -0
  84. package/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
  85. package/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
  86. package/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
  87. package/objects/API/Interfaces/IDeserializable.d.ts +13 -0
  88. package/objects/API/Interfaces/IEnabled.d.ts +10 -0
  89. package/objects/API/Interfaces/IFileSize.d.ts +9 -0
  90. package/objects/API/Interfaces/IGlobal.d.ts +11 -0
  91. package/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
  92. package/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
  93. package/objects/API/Interfaces/IIconic.d.ts +15 -0
  94. package/objects/API/Interfaces/IIdUlong.d.ts +10 -0
  95. package/objects/API/Interfaces/ILabelled.d.ts +10 -0
  96. package/objects/API/Interfaces/INamed.d.ts +13 -0
  97. package/objects/API/Interfaces/IPictured.d.ts +15 -0
  98. package/objects/API/Interfaces/IRequestable.d.ts +22 -0
  99. package/objects/API/Interfaces/ISerializable.d.ts +10 -0
  100. package/objects/API/Interfaces/ISuspendable.d.ts +16 -0
  101. package/objects/API/Interfaces/IVisual.d.ts +18 -0
  102. package/objects/API/Maps.d.ts +28 -0
  103. package/objects/API/Objects.d.ts +5 -0
  104. package/objects/API/SearchPattern.d.ts +46 -0
  105. package/objects/API/TimeSpan.d.ts +109 -0
  106. package/objects/API/Timezone.d.ts +44 -0
  107. package/objects/API/Timezones.d.ts +7 -0
  108. package/objects/API/Types.d.ts +132 -0
  109. package/objects/Accounts/Contact.d.ts +139 -0
  110. package/objects/Accounts/Machine.d.ts +139 -0
  111. package/objects/Accounts/MultiFactorType.d.ts +17 -0
  112. package/objects/Accounts/NotificationMethod.d.ts +17 -0
  113. package/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
  114. package/objects/Accounts/Permissions/Permission.d.ts +56 -0
  115. package/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
  116. package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
  117. package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
  118. package/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
  119. package/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
  120. package/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
  121. package/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
  122. package/objects/Accounts/Session.d.ts +89 -0
  123. package/objects/Accounts/SessionStatus.d.ts +29 -0
  124. package/objects/Accounts/SystemsOfUnits.d.ts +13 -0
  125. package/objects/Accounts/User.d.ts +167 -0
  126. package/objects/Accounts/UserAdvanced.d.ts +53 -0
  127. package/objects/Accounts/UserAuthentication.d.ts +55 -0
  128. package/objects/Accounts/UserGeneral.d.ts +98 -0
  129. package/objects/Accounts/UserGroup.d.ts +51 -0
  130. package/objects/Accounts/UserMFA.d.ts +47 -0
  131. package/objects/Accounts/UserNotifications.d.ts +76 -0
  132. package/objects/Accounts/UserSSO.d.ts +37 -0
  133. package/objects/Assets/Asset.d.ts +218 -0
  134. package/objects/Assets/AssetAdvanced.d.ts +77 -0
  135. package/objects/Assets/AssetAttribute.d.ts +71 -0
  136. package/objects/Assets/AssetDispatch.d.ts +55 -0
  137. package/objects/Assets/AssetGeneral.d.ts +127 -0
  138. package/objects/Assets/AssetPlaceStatus.d.ts +31 -0
  139. package/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
  140. package/objects/Assets/AssetType.d.ts +21 -0
  141. package/objects/Behaviours/Behaviour.d.ts +78 -0
  142. package/objects/Behaviours/BehaviourLog.d.ts +95 -0
  143. package/objects/Behaviours/BehaviourLogType.d.ts +21 -0
  144. package/objects/Behaviours/BehaviourParameter.d.ts +38 -0
  145. package/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
  146. package/objects/Behaviours/BehaviourScript.d.ts +83 -0
  147. package/objects/Billing/BillableBase.d.ts +83 -0
  148. package/objects/Billing/BillableSmsProfile.d.ts +26 -0
  149. package/objects/Billing/BillingCurrency.d.ts +17 -0
  150. package/objects/Billing/BillingCycle.d.ts +17 -0
  151. package/objects/Billing/BillingProfile.d.ts +104 -0
  152. package/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
  153. package/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
  154. package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
  155. package/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
  156. package/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
  157. package/objects/Billing/Report/BillingReport.d.ts +112 -0
  158. package/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
  159. package/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
  160. package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
  161. package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
  162. package/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
  163. package/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
  164. package/objects/Companies/ColourStyle.d.ts +25 -0
  165. package/objects/Companies/Company.d.ts +167 -0
  166. package/objects/Companies/CompanyDirectory.d.ts +52 -0
  167. package/objects/Companies/CompanyGeneral.d.ts +55 -0
  168. package/objects/Companies/CompanyPolicy.d.ts +66 -0
  169. package/objects/Companies/CompanyReseller.d.ts +166 -0
  170. package/objects/Companies/CompanyStyle.d.ts +50 -0
  171. package/objects/Companies/LabelStyle.d.ts +46 -0
  172. package/objects/Companies/NotificationServerEmail.d.ts +99 -0
  173. package/objects/Companies/NotificationServerSms.d.ts +25 -0
  174. package/objects/Companies/PasswordExpiryMode.d.ts +17 -0
  175. package/objects/Companies/PasswordPolicy.d.ts +51 -0
  176. package/objects/Companies/SessionMultiUser.d.ts +17 -0
  177. package/objects/Companies/SessionPolicy.d.ts +47 -0
  178. package/objects/Dispatch/DispatchDirection.d.ts +53 -0
  179. package/objects/Dispatch/DispatchJob.d.ts +107 -0
  180. package/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
  181. package/objects/Dispatch/DispatchStep.d.ts +99 -0
  182. package/objects/Dispatch/DispatchStepState.d.ts +27 -0
  183. package/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
  184. package/objects/Dispatch/DispatchTask.d.ts +154 -0
  185. package/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
  186. package/objects/Hosting/Document.d.ts +70 -0
  187. package/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
  188. package/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
  189. package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  190. package/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
  191. package/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
  192. package/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
  193. package/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
  194. package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
  195. package/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
  196. package/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
  197. package/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
  198. package/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
  199. package/objects/Hosting/FormFieldType.d.ts +127 -0
  200. package/objects/Hosting/FormResult.d.ts +95 -0
  201. package/objects/Hosting/FormTemplate.d.ts +80 -0
  202. package/objects/Images/Dashcam.d.ts +63 -0
  203. package/objects/Images/DashcamBase.d.ts +97 -0
  204. package/objects/Images/DashcamLive.d.ts +36 -0
  205. package/objects/Images/DashcamMediaType.d.ts +17 -0
  206. package/objects/Images/Icon.d.ts +66 -0
  207. package/objects/Images/IconGlyph.d.ts +47 -0
  208. package/objects/Images/IconLabel.d.ts +29 -0
  209. package/objects/Images/IconLayer.d.ts +33 -0
  210. package/objects/Images/Picture.d.ts +72 -0
  211. package/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
  212. package/objects/Maintenance/MaintenanceJob.d.ts +134 -0
  213. package/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
  214. package/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
  215. package/objects/Messaging/AlertPriority.d.ts +17 -0
  216. package/objects/Messaging/AssetAlert.d.ts +29 -0
  217. package/objects/Messaging/AssetMessage.d.ts +40 -0
  218. package/objects/Messaging/MessageBase.d.ts +99 -0
  219. package/objects/Messaging/MessageFolder.d.ts +13 -0
  220. package/objects/Messaging/MessageStatus.d.ts +29 -0
  221. package/objects/Messaging/MessageType.d.ts +33 -0
  222. package/objects/Places/Place.d.ts +114 -0
  223. package/objects/Places/PlaceType.d.ts +25 -0
  224. package/objects/Providers/Config/ProviderConfig.d.ts +70 -0
  225. package/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
  226. package/objects/Providers/Config/ProviderScript.d.ts +86 -0
  227. package/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
  228. package/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
  229. package/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
  230. package/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
  231. package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
  232. package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
  233. package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
  234. package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  235. package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
  236. package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
  237. package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
  238. package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
  239. package/objects/Providers/Provider.d.ts +205 -0
  240. package/objects/Providers/ProviderAdvanced.d.ts +50 -0
  241. package/objects/Providers/ProviderCommand.d.ts +36 -0
  242. package/objects/Providers/ProviderCommandStatus.d.ts +29 -0
  243. package/objects/Providers/ProviderCommandType.d.ts +37 -0
  244. package/objects/Providers/ProviderControl.d.ts +41 -0
  245. package/objects/Providers/ProviderData.d.ts +30 -0
  246. package/objects/Providers/ProviderGeneral.d.ts +121 -0
  247. package/objects/Providers/ProviderType.d.ts +106 -0
  248. package/objects/Reports/ReportBreakdown.d.ts +49 -0
  249. package/objects/Reports/ReportBreakdownJob.d.ts +37 -0
  250. package/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
  251. package/objects/Reports/ReportBreakdownTask.d.ts +46 -0
  252. package/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  253. package/objects/Reports/ReportFilterMode.d.ts +17 -0
  254. package/objects/Reports/ReportNotifications.d.ts +31 -0
  255. package/objects/Reports/ReportOptions.d.ts +52 -0
  256. package/objects/Reports/ReportParameter.d.ts +26 -0
  257. package/objects/Reports/ReportParameterType.d.ts +59 -0
  258. package/objects/Reports/ReportRecurrence.d.ts +54 -0
  259. package/objects/Reports/ReportRecurrenceType.d.ts +34 -0
  260. package/objects/Reports/ReportResult.d.ts +169 -0
  261. package/objects/Reports/ReportResultData.d.ts +17 -0
  262. package/objects/Reports/ReportSchedule.d.ts +111 -0
  263. package/objects/Reports/ReportScorecard.d.ts +38 -0
  264. package/objects/Reports/ReportScorecardParameter.d.ts +31 -0
  265. package/objects/Reports/ReportScorecardRules.d.ts +26 -0
  266. package/objects/Reports/ReportStatus.d.ts +29 -0
  267. package/objects/Reports/ReportSummary.d.ts +90 -0
  268. package/objects/Reports/ReportSummaryReason.d.ts +27 -0
  269. package/objects/Reports/ReportTemplate.d.ts +81 -0
  270. package/objects/Reports/ReportTotal.d.ts +47 -0
  271. package/objects/Reports/ReportType.d.ts +42 -0
  272. package/objects/index.d.ts +406 -0
  273. package/objects/storage.d.ts +176 -0
  274. package/package.json +36 -36
  275. package/trakit-objects.min.js +2 -2
@@ -0,0 +1,127 @@
1
+ /**
2
+ * The supported types of user interface modules for a {@link FormTemplate}.
3
+ */
4
+ export declare enum FormFieldType {
5
+ /**
6
+ * Any text input.
7
+ * {@link FormFieldText}
8
+ */
9
+ text = "text",
10
+ /**
11
+ * A choice of one (or more) values defined.
12
+ * {@link FormFieldChoice}
13
+ */
14
+ choice = "choice",
15
+ /**
16
+ * A drop-down or fly-out UI for choosing a single value.
17
+ * Works better than {@link choice} when there are a lot of values. ie; country or province list.
18
+ * {@link FormFieldChoice}
19
+ */
20
+ dropdown = "dropdown",
21
+ /**
22
+ * A check mark to represent a boolean value.
23
+ * {@link FormFieldBoolean}
24
+ */
25
+ checkbox = "checkbox",
26
+ /**
27
+ * A toggle box to represent one of two possible values (optionally defined).
28
+ * {@link FormFieldBoolean}
29
+ */
30
+ toggle = "toggle",
31
+ /**
32
+ * Numeric (optionally decimal) input.
33
+ * {@link FormFieldNumeric}
34
+ */
35
+ numeric = "numeric",
36
+ /**
37
+ * A slider bar to choose a numeric value between a given high and low value.
38
+ * {@link FormFieldNumeric}
39
+ */
40
+ range = "range",
41
+ /**
42
+ * A numeric value of distance (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
43
+ * {@link FormFieldNumeric}
44
+ */
45
+ distance = "distance",
46
+ /**
47
+ * A numeric value of area (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
48
+ * {@link FormFieldNumeric}
49
+ */
50
+ area = "area",
51
+ /**
52
+ * A numeric value of temperature (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
53
+ * {@link FormFieldNumeric}
54
+ */
55
+ temperature = "temperature",
56
+ /**
57
+ * A numeric value of weight (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
58
+ * {@link FormFieldNumeric}
59
+ */
60
+ weight = "weight",
61
+ /**
62
+ * A numeric value of volume (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
63
+ * {@link FormFieldNumeric}
64
+ */
65
+ volume = "volume",
66
+ /**
67
+ * A numeric value of pressure (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
68
+ * {@link FormFieldNumeric}
69
+ */
70
+ pressure = "pressure",
71
+ /**
72
+ * A numeric value of speed (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
73
+ * {@link FormFieldNumeric}
74
+ */
75
+ speed = "speed",
76
+ /**
77
+ * A numeric value of fuel economy (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
78
+ * {@link FormFieldNumeric}
79
+ */
80
+ fuelEconomy = "fuelEconomy",
81
+ /**
82
+ * A numeric value representing an amount of money.
83
+ * {@link FormFieldNumeric}
84
+ */
85
+ currency = "currency",
86
+ /**
87
+ * A date and time picker.
88
+ * {@link FormFieldDate}
89
+ */
90
+ datetime = "datetime",
91
+ /**
92
+ * A calendar/date picker.
93
+ * {@link FormFieldDate}
94
+ */
95
+ date = "date",
96
+ /**
97
+ * A clock/time picker.
98
+ * {@link FormFieldTime}
99
+ */
100
+ time = "time",
101
+ /**
102
+ * A duration picker.
103
+ * Different than {@link time} because a duration can be negative, or longer than 24 hours.
104
+ * {@link FormFieldTime}
105
+ */
106
+ duration = "duration",
107
+ /**
108
+ * Area to capture a signature bitmap.
109
+ * {@link FormFieldSignature}
110
+ */
111
+ signature = "signature",
112
+ /**
113
+ * A browser of {@link Picture}s that can be attached.
114
+ * {@link FormFieldAttachments}
115
+ */
116
+ pictures = "pictures",
117
+ /**
118
+ * A browser of {@link Document}s that can be attached.
119
+ * {@link FormFieldAttachments}
120
+ */
121
+ files = "files",
122
+ /**
123
+ * A list of {@link Timezone}s.
124
+ * {@link FormFieldTimezone}
125
+ */
126
+ timezone = "timezone"
127
+ }
@@ -0,0 +1,95 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { LatLng } from "../API/Geography/LatLng";
3
+ import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
4
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
5
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
6
+ import { ILabelled } from "../API/Interfaces/ILabelled";
7
+ import { INamed } from "../API/Interfaces/INamed";
8
+ import { codified, ulong, JsonObject } from "../API/Types";
9
+ import { Asset } from "../Assets/Asset";
10
+ import { Company } from "../Companies/Company";
11
+ import { FormTemplate } from "./FormTemplate";
12
+ /**
13
+ * A completed form submitted by a {@link User} or {@link Asset}.
14
+ */
15
+ export declare class FormResult extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IBelongAsset, ILabelled {
16
+ /**
17
+ * Unique identifier of this form.
18
+ */
19
+ id: ulong;
20
+ /**
21
+ * The {@link Company} to which this form belongs.
22
+ * {@link Company.id}
23
+ */
24
+ companyId: ulong;
25
+ /**
26
+ * The {@link Company} to which this form belongs.
27
+ */
28
+ get company(): Company;
29
+ /**
30
+ * The {@link FormTemplate} to which this form belongs.
31
+ */
32
+ templateId: ulong;
33
+ /**
34
+ * The {@link FormTemplate} to which this form belongs.
35
+ */
36
+ get template(): FormTemplate;
37
+ set template(value: FormTemplate);
38
+ /**
39
+ * The {@link Asset} to which this form belongs.
40
+ * {@link Asset.id}
41
+ */
42
+ assetId: ulong;
43
+ /**
44
+ * The {@link Asset} to which this form belongs.
45
+ */
46
+ get asset(): Asset;
47
+ /**
48
+ * Name of this form.
49
+ */
50
+ name: string;
51
+ /**
52
+ * Notes about this form.
53
+ */
54
+ notes: string;
55
+ /**
56
+ * Codified label names used to relate forms to {@link Asset}s.
57
+ */
58
+ labels: codified[];
59
+ /**
60
+ * All the values for fillable fields by index.
61
+ */
62
+ fields: Map<ulong, string>;
63
+ /**
64
+ * A timestamp from when this form was completed by a {@link User} or {@link Asset}.
65
+ */
66
+ completed: Date;
67
+ /**
68
+ * The coordinates of the {@link User} or {@link Asset} from when the form was completed.
69
+ */
70
+ latlng: LatLng | null;
71
+ /**
72
+ * Clocked-in driver name who made the update.
73
+ * Null if not clocked-in, or no changes have been made.
74
+ */
75
+ driver: string;
76
+ /**
77
+ * The {@link id} is the key.
78
+ */
79
+ getKey(): number;
80
+ toJSON(): {
81
+ id: number;
82
+ company: number;
83
+ v: number[];
84
+ template: number | null;
85
+ asset: number | null;
86
+ name: string;
87
+ notes: string;
88
+ labels: string[];
89
+ fields: JsonObject;
90
+ completed: string | null;
91
+ latlng: import("../API/Geography/Interfaces").ILatLng | null;
92
+ driver: string | null;
93
+ };
94
+ fromJSON(json: JsonObject, force?: boolean): boolean;
95
+ }
@@ -0,0 +1,80 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
+ import { ILabelled } from "../API/Interfaces/ILabelled";
5
+ import { INamed } from "../API/Interfaces/INamed";
6
+ import { IVisual } from "../API/Interfaces/IVisual";
7
+ import { codified, colour, ulong, JsonObject } from "../API/Types";
8
+ import { Company } from "../Companies/Company";
9
+ import { FormFieldAttachments } from './Fields/FormFieldAttachments';
10
+ import { FormFieldBoolean } from './Fields/FormFieldBoolean';
11
+ import { FormFieldChoice } from './Fields/FormFieldChoice';
12
+ import { FormFieldDate } from './Fields/FormFieldDate';
13
+ import { FormFieldNumeric } from './Fields/FormFieldNumeric';
14
+ import { FormFieldSignature } from './Fields/FormFieldSignature';
15
+ import { FormFieldText } from './Fields/FormFieldText';
16
+ import { FormFieldTime } from './Fields/FormFieldTime';
17
+ import { FormFieldTimezone } from './Fields/FormFieldTimezone';
18
+ /**
19
+ * The full definition of a form that needs to be filled out.
20
+ */
21
+ export declare class FormTemplate extends BaseComponent implements IIdUlong, INamed, IBelongCompany, ILabelled, IVisual {
22
+ /**
23
+ * Unique identifier of this form.
24
+ */
25
+ id: ulong;
26
+ /**
27
+ * The {@link Company} to which this form belongs.
28
+ * {@link Company.id}
29
+ */
30
+ companyId: ulong;
31
+ /**
32
+ * The {@link Company} to which this form belongs.
33
+ */
34
+ get company(): Company;
35
+ /**
36
+ * Name of this form.
37
+ */
38
+ name: string;
39
+ /**
40
+ * Notes about this form.
41
+ */
42
+ notes: string;
43
+ /**
44
+ * Codified label names used to relate forms to {@link Asset}s.
45
+ */
46
+ labels: codified[];
47
+ /**
48
+ * The fill/background colour of the icon.
49
+ */
50
+ fill: colour;
51
+ /**
52
+ * Outline and graphic colour.
53
+ */
54
+ stroke: colour;
55
+ /**
56
+ * The name of the symbol for this template.
57
+ */
58
+ graphic: codified;
59
+ /**
60
+ * All the user fillable fields by name.
61
+ */
62
+ fields: (FormFieldText | FormFieldChoice | FormFieldBoolean | FormFieldNumeric | FormFieldDate | FormFieldTime | FormFieldSignature | FormFieldAttachments | FormFieldTimezone)[];
63
+ /**
64
+ * The {@link id} is the key.
65
+ */
66
+ getKey(): number;
67
+ toJSON(): {
68
+ id: number | null;
69
+ company: number | null;
70
+ v: number[];
71
+ name: string;
72
+ notes: string;
73
+ labels: string[];
74
+ fields: any[];
75
+ fill: string;
76
+ stroke: string;
77
+ graphic: string;
78
+ };
79
+ fromJSON(json: JsonObject, force?: boolean): boolean;
80
+ }
@@ -0,0 +1,63 @@
1
+ import { TimeSpan } from "../API/TimeSpan";
2
+ import { guid, JsonObject, single } from "../API/Types";
3
+ import { DashcamBase } from "./DashcamBase";
4
+ import { DashcamMediaType } from "./DashcamMediaType";
5
+ /**
6
+ * An image or video received from a dashcam-enabled provider or asset.
7
+ */
8
+ export declare class Dashcam extends DashcamBase {
9
+ /**
10
+ * Unique identifier of this resource.
11
+ */
12
+ guid: guid;
13
+ /**
14
+ * The type of data being stored.
15
+ */
16
+ kind: DashcamMediaType;
17
+ /**
18
+ * For {@link DashcamMediaType.video} media files, this indicates the frames-per-second.
19
+ */
20
+ fps: single;
21
+ /**
22
+ * Timestamp of when this resource started.
23
+ * For {@link DashcamMediaType.image} media files, the start and end are the same.
24
+ */
25
+ start: Date;
26
+ /**
27
+ * Timestamp of when this resource ended.
28
+ * For {@link DashcamMediaType.image} media files, the start and end are the same.
29
+ */
30
+ end: Date;
31
+ /**
32
+ * For {@link DashcamMediaType.video} media files, the duration of the video clip.
33
+ */
34
+ get duration(): TimeSpan;
35
+ /**
36
+ * The reason why we're saving this image/video. Or the event name that triggered it.
37
+ */
38
+ eventName: string;
39
+ fromJSON(json: JsonObject, force?: boolean): boolean;
40
+ toJSON(): {
41
+ guid: string;
42
+ kind: DashcamMediaType;
43
+ fps: number | null;
44
+ start: string | null;
45
+ end: string | null;
46
+ eventName: string;
47
+ bytes: number | null;
48
+ size: import("../API/Geometry/Interfaces").ISize;
49
+ provider: string;
50
+ company: number | null;
51
+ asset: number | null;
52
+ camera: number | null;
53
+ latitude: number | null;
54
+ longitude: number | null;
55
+ speed: number | null;
56
+ heading: number | null;
57
+ altitude: number | null;
58
+ };
59
+ /**
60
+ * The {@link guid} is the key.
61
+ */
62
+ getKey(): string;
63
+ }
@@ -0,0 +1,97 @@
1
+ import { ISize } from "../API/Geometry/Interfaces";
2
+ import { Size } from "../API/Geometry/Size";
3
+ import { IDeserializable } from "../API/Interfaces/IDeserializable";
4
+ import { IFileSize } from "../API/Interfaces/IFileSize";
5
+ import { IRequestable } from "../API/Interfaces/IRequestable";
6
+ import { ISerializable } from "../API/Interfaces/ISerializable";
7
+ import { byte, double, JsonObject, ulong } from "../API/Types";
8
+ import { Asset } from "../Assets/Asset";
9
+ import { Company } from "../Companies/Company";
10
+ import { Provider } from "../Providers/Provider";
11
+ /**
12
+ * A base class for Dashcam meta-data.
13
+ */
14
+ export declare abstract class DashcamBase implements IRequestable, IFileSize, ISerializable, IDeserializable {
15
+ /**
16
+ * Number bytes in the dashcam media file.
17
+ */
18
+ bytes: ulong;
19
+ /**
20
+ * Resolution defined in pixels.
21
+ */
22
+ size: Size;
23
+ /**
24
+ * Unique identifier of the provider that sent the data.
25
+ * {@link Provider.id}
26
+ */
27
+ providerId: string;
28
+ /**
29
+ * The {@link Provider} that sent the data.
30
+ */
31
+ get provider(): Provider;
32
+ /**
33
+ * Unique identifier of the company of the provider.
34
+ * {@link Company.id}
35
+ */
36
+ companyId: ulong;
37
+ /**
38
+ * Unique identifier of the {@link Company} of the provider.
39
+ */
40
+ get company(): Company;
41
+ /**
42
+ * Unique identifier of the asset tied to the provider at the time.
43
+ * {@link Asset.id}
44
+ */
45
+ assetId: ulong;
46
+ /**
47
+ * Unique identifier of the {@link Asset} tied to the provider at the time.
48
+ */
49
+ get asset(): Asset;
50
+ /**
51
+ * Number assigned to the camera that took the image/video.
52
+ */
53
+ camera: byte;
54
+ /**
55
+ * Latitude of the start of the resource.
56
+ */
57
+ latitude: double;
58
+ /**
59
+ * Longitude of the start of the resource.
60
+ */
61
+ longitude: double;
62
+ /**
63
+ * Speed of the start of the resource.
64
+ */
65
+ speed: double;
66
+ /**
67
+ * Heading of the start of the resource.
68
+ */
69
+ heading: double;
70
+ /**
71
+ * Altitude of the start of the resource.
72
+ */
73
+ altitude: double;
74
+ constructor(json?: JsonObject);
75
+ fromJSON(json: JsonObject, force?: boolean): boolean;
76
+ /**
77
+ *
78
+ */
79
+ toJSON(): {
80
+ bytes: number | null;
81
+ size: ISize;
82
+ provider: string;
83
+ company: number | null;
84
+ asset: number | null;
85
+ camera: number | null;
86
+ latitude: number | null;
87
+ longitude: number | null;
88
+ speed: number | null;
89
+ heading: number | null;
90
+ altitude: number | null;
91
+ };
92
+ /**
93
+ * For dashcams, this is either a unique identifier, or a combination of the {@link assetId}, {@link providerId}, and {@link camera} values.
94
+ * @returns A string unique for this type of object.
95
+ */
96
+ abstract getKey(): string;
97
+ }
@@ -0,0 +1,36 @@
1
+ import { JsonObject } from "../API/Types";
2
+ import { DashcamBase } from "./DashcamBase";
3
+ import { DashcamMediaType } from "./DashcamMediaType";
4
+ /**
5
+ * A live snapshot a dashcam-enabled provider or asset.
6
+ */
7
+ export declare class DashcamLive extends DashcamBase {
8
+ /**
9
+ * The type of data being stored.
10
+ */
11
+ readonly kind = DashcamMediaType.image;
12
+ /**
13
+ * Timestamp of this live camera image.
14
+ */
15
+ dts: Date;
16
+ fromJSON(json: JsonObject, force?: boolean): boolean;
17
+ toJSON(): {
18
+ kind: DashcamMediaType;
19
+ dts: string | null;
20
+ bytes: number | null;
21
+ size: import("../API/Geometry/Interfaces").ISize;
22
+ provider: string;
23
+ company: number | null;
24
+ asset: number | null;
25
+ camera: number | null;
26
+ latitude: number | null;
27
+ longitude: number | null;
28
+ speed: number | null;
29
+ heading: number | null;
30
+ altitude: number | null;
31
+ };
32
+ /**
33
+ * A combination of the asset, provider, and camera number.
34
+ */
35
+ getKey(): string;
36
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The type of dashcam data being stored.
3
+ */
4
+ export declare enum DashcamMediaType {
5
+ /**
6
+ * Unknown or other.
7
+ */
8
+ unknown = "unknown",
9
+ /**
10
+ * Image
11
+ */
12
+ image = "image",
13
+ /**
14
+ * Video
15
+ */
16
+ video = "video"
17
+ }
@@ -0,0 +1,66 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IGlobal } from "../API/Interfaces/IGlobal";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { INamed } from "../API/Interfaces/INamed";
6
+ import { JsonObject, ulong } from "../API/Types";
7
+ import { Company } from "../Companies/Company";
8
+ import { IconGlyph } from "./IconGlyph";
9
+ import { IconLabel } from "./IconLabel";
10
+ /**
11
+ * A visual representation of a thing on a map or in a list.
12
+ */
13
+ export declare class Icon extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IGlobal {
14
+ /**
15
+ * Unique identifier of this icon.
16
+ */
17
+ id: ulong;
18
+ /**
19
+ * The company to which this icon belongs.
20
+ * {@link Company.id}
21
+ */
22
+ companyId: ulong;
23
+ /**
24
+ * The {@link Company} to which this icon belongs.
25
+ */
26
+ get company(): Company;
27
+ /**
28
+ * A noun to describe the type of thing represented. Like Truck, Car, Trailer, Hot-Air Balloon, etc...
29
+ */
30
+ category: string;
31
+ /**
32
+ * A specific adjective to describe the thing. Like Blue, Red, Empty, Full, etc...
33
+ */
34
+ name: string;
35
+ /**
36
+ * Notes.
37
+ */
38
+ notes: string;
39
+ /**
40
+ * Indicates whether this icon is available to child companies.
41
+ */
42
+ global: boolean;
43
+ /**
44
+ * A list of things that this icon can be used to represent. Like asset, place, user, etc...
45
+ */
46
+ usage: string[];
47
+ /**
48
+ * Definition for the name bubble above the icon on a map.
49
+ */
50
+ label: IconLabel;
51
+ /**
52
+ * Where the notification will appear for a mapped icon.
53
+ * Such as the number of dispatches an asset is working on, or the number of dispatches at a place.
54
+ */
55
+ badge: IconLabel;
56
+ /**
57
+ * The images used to show the detail of this icon.
58
+ */
59
+ glyphs: IconGlyph[];
60
+ toJSON(): JsonObject;
61
+ fromJSON(json: JsonObject, force?: boolean): boolean;
62
+ /**
63
+ * The {@link id} is the key.
64
+ */
65
+ getKey(): number;
66
+ }
@@ -0,0 +1,47 @@
1
+ import { IPoint, ISize } from "../API/Geometry/Interfaces";
2
+ import { Point } from "../API/Geometry/Point";
3
+ import { Size } from "../API/Geometry/Size";
4
+ import { ISerializable } from "../API/Interfaces/ISerializable";
5
+ import { codified, ushort, JsonObject } from "../API/Types";
6
+ import { IconLayer } from "./IconLayer";
7
+ /**
8
+ * The image source and defined status tags which need to be applied to an asset in order to show the image.
9
+ */
10
+ export declare class IconGlyph implements ISerializable {
11
+ /**
12
+ *
13
+ * @param json
14
+ */
15
+ static fromJSON(json: JsonObject): IconGlyph;
16
+ /**
17
+ * A list of codified status tag names. Any of the tags must be applied to the asset for the image to appear.
18
+ */
19
+ tags: codified[];
20
+ /**
21
+ * Path to the image.
22
+ */
23
+ src: string;
24
+ /**
25
+ * Size of the glyph in pixels.
26
+ */
27
+ size: Size;
28
+ /**
29
+ * The offset from the lat/long in pixels.
30
+ */
31
+ anchor: Point;
32
+ /**
33
+ * The layer on which this glyph is displayed.
34
+ */
35
+ layer: IconLayer;
36
+ /**
37
+ * The z-order of this glyph compared to other glyphs on the same layer.
38
+ */
39
+ zIndex: ushort;
40
+ /**
41
+ * Indicates that this glyph rotate based on GPS bearing.
42
+ */
43
+ rotates: boolean;
44
+ constructor(tags?: codified[], src?: string, size?: ISize | JsonObject, anchor?: IPoint | JsonObject, layer?: IconLayer, zIndex?: ushort, rotates?: boolean);
45
+ toJSON(): JsonObject;
46
+ isEqual(other: IconGlyph): boolean;
47
+ }
@@ -0,0 +1,29 @@
1
+ import { IPoint } from "../API/Geometry/Interfaces";
2
+ import { Point } from "../API/Geometry/Point";
3
+ import { ISerializable } from "../API/Interfaces/ISerializable";
4
+ import { colour, JsonObject } from "../API/Types";
5
+ /**
6
+ * Definition for the name bubble above the icon on a map.
7
+ */
8
+ export declare class IconLabel implements ISerializable {
9
+ /**
10
+ *
11
+ * @param json
12
+ */
13
+ static fromJSON(json: JsonObject): IconLabel;
14
+ /**
15
+ * The offset from the lat/long in pixels.
16
+ */
17
+ anchor: Point;
18
+ /**
19
+ * Determines which corner of the label is attached to the anchor.
20
+ */
21
+ align: string;
22
+ /**
23
+ * Background colour of the label.
24
+ */
25
+ colour: colour;
26
+ constructor(anchor?: IPoint | JsonObject, align?: string, colour?: colour);
27
+ toJSON(): JsonObject;
28
+ isEqual(other: IconLabel): boolean;
29
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The layers of the map used to visualize the icon.
3
+ */
4
+ export declare enum IconLayer {
5
+ /**
6
+ * An SVG only layer just above the roads used for solid Places and accuracy radius fill.
7
+ */
8
+ fills = "fills",
9
+ /**
10
+ * An HTML only layer intended for use by an icon's drop-shadow.
11
+ */
12
+ shadows = "shadows",
13
+ /**
14
+ * An SVG only layer intended for use by shape and accuracy radius outlines.
15
+ */
16
+ outlines = "outlines",
17
+ /**
18
+ * An HTML only layer intended for use by an icon's main images.
19
+ */
20
+ markers = "markers",
21
+ /**
22
+ * An HTML only layer intended for use by an icon's label.
23
+ */
24
+ labels = "labels",
25
+ /**
26
+ * An SVG only layer for special drawing controls. Icons should not use this layer.
27
+ */
28
+ drawings = "drawings",
29
+ /**
30
+ * An HTML only layer for special drawing controls. Icons should not use this layer.
31
+ */
32
+ edits = "edits"
33
+ }