@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,121 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { INamed } from "../API/Interfaces/INamed";
4
+ import { ISuspendable } from "../API/Interfaces/ISuspendable";
5
+ import { JsonObject, phone, ulong } from "../API/Types";
6
+ import { Asset } from "../Assets/Asset";
7
+ import { Company } from "../Companies/Company";
8
+ import { ProviderConfig } from "./Config/ProviderConfig";
9
+ import { ProviderConfiguration } from "./Configuration/ProviderConfiguration";
10
+ import { ProviderType } from "./ProviderType";
11
+ /**
12
+ * Device/hardware information and configuration.
13
+ */
14
+ export declare class ProviderGeneral extends BaseComponent implements INamed, IBelongCompany, ISuspendable {
15
+ /**
16
+ * Unique identifier of this device.
17
+ * {@link Provider.id}
18
+ */
19
+ id: string;
20
+ /**
21
+ * The company to which this device belongs.
22
+ * {@link Company.id}
23
+ */
24
+ companyId: ulong;
25
+ /**
26
+ * The {@link Company} to which this device belongs.
27
+ */
28
+ get company(): Company;
29
+ set company(value: Company);
30
+ /**
31
+ * A nickname given to the device/hardware.
32
+ */
33
+ name: string;
34
+ /**
35
+ * Notes!
36
+ */
37
+ notes: string;
38
+ /**
39
+ * The kind of communication protocol this device uses.
40
+ */
41
+ kind: ProviderType;
42
+ /**
43
+ * The asset for which this device provides field data.
44
+ * {@link Asset.id}
45
+ */
46
+ assetId: ulong;
47
+ /**
48
+ * The {@link Asset} for which this device provides field data.
49
+ */
50
+ get asset(): Asset;
51
+ set asset(value: Asset);
52
+ /**
53
+ * The provider's current (or pending) configuration profile.
54
+ * {@link ProviderConfig.id}
55
+ * {@link ProviderConfiguration.id}
56
+ */
57
+ configurationId: ulong;
58
+ /**
59
+ * The provider's current (or pending) {@link ProviderConfig} (or {@link ProviderConfiguration}).
60
+ */
61
+ get configuration(): ProviderConfig | ProviderConfiguration;
62
+ set configuration(value: ProviderConfig | ProviderConfiguration);
63
+ /**
64
+ * The password programmed on the device used to ensure the system is the only client authorized to make changes.
65
+ */
66
+ password: string;
67
+ /**
68
+ * The firmware/application version number.
69
+ */
70
+ firmware: string;
71
+ /**
72
+ * The phone number of this device.
73
+ */
74
+ phoneNumber: phone;
75
+ /**
76
+ * A list of read-only values about the device like IMEI, ESN, firmware version, hardware revision, etc...
77
+ */
78
+ information: Map<string, string>;
79
+ /**
80
+ * ICCID of the SIM card installed in this provider
81
+ */
82
+ sim: string;
83
+ toJSON(): {
84
+ suspended: boolean;
85
+ since: string | null;
86
+ id: string | null;
87
+ v: number[];
88
+ company: number | null;
89
+ name: string;
90
+ notes: string;
91
+ kind: ProviderType;
92
+ configuration: number | null;
93
+ } | {
94
+ asset: number | null;
95
+ password: string;
96
+ firmware: string;
97
+ phoneNumber: number | null;
98
+ information: JsonObject;
99
+ sim: string;
100
+ id: string | null;
101
+ v: number[];
102
+ company: number | null;
103
+ name: string;
104
+ notes: string;
105
+ kind: ProviderType;
106
+ configuration: number | null;
107
+ };
108
+ fromJSON(json: JsonObject, force?: boolean): boolean;
109
+ /**
110
+ * The {@link id} is the key.
111
+ */
112
+ getKey(): string;
113
+ /**
114
+ * Indicates whether this object is suspended from event processing.
115
+ */
116
+ suspended: boolean;
117
+ /**
118
+ * Timestamp from the action that deleted or suspended this object.
119
+ */
120
+ since: Date;
121
+ }
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Protocols supported by the system.
3
+ */
4
+ export declare enum ProviderType {
5
+ /**
6
+ * Your guess is as good as mine.
7
+ * It should never be this.
8
+ */
9
+ unknown = "unknown",
10
+ /**
11
+ * Sierra Wireless AirLink RAP protocol
12
+ * @deprecated No longer supported
13
+ */
14
+ airlink = "airlink",
15
+ /**
16
+ * Sixnet BlueTree BEP protocol
17
+ * @deprecated No longer supported
18
+ */
19
+ bluetree = "bluetree",
20
+ /**
21
+ * Gen-X modem protocol
22
+ */
23
+ genx = "genx",
24
+ /**
25
+ * CalAmp LMU series protocol
26
+ * @deprecated Use calamp instead
27
+ */
28
+ lmu = "lmu",
29
+ /**
30
+ * CalAmp TTU series protocol
31
+ * @deprecated Use calamp instead
32
+ */
33
+ ttu = "ttu",
34
+ /**
35
+ * Novotel Enfora SpiderAT protocol
36
+ * @deprecated Use enfora instead
37
+ */
38
+ spiderAT = "spiderAT",
39
+ /**
40
+ * Novotel Enfora SpiderMT protocol
41
+ * @deprecated Use enfora instead
42
+ */
43
+ spiderMT = "spiderMT",
44
+ /**
45
+ * Trak iT Wireless Mobile App
46
+ */
47
+ mobile = "mobile",
48
+ /**
49
+ * TachWest DataTrans protocol
50
+ */
51
+ datatrans = "datatrans",
52
+ /**
53
+ * Xirgo modem protocol
54
+ * @deprecated No longer supported
55
+ */
56
+ xirgo = "xirgo",
57
+ /**
58
+ * Bell Mobility LBS
59
+ */
60
+ lbs = "lbs",
61
+ /**
62
+ * Certified Tracking protocol
63
+ * @deprecated No longer supported
64
+ */
65
+ titan = "titan",
66
+ /**
67
+ * Concox Tracker protocol
68
+ * @deprecated No longer supported
69
+ */
70
+ concox = "concox",
71
+ /**
72
+ * Aspenta Open API format
73
+ * @deprecated No longer supported
74
+ */
75
+ aspenta = "aspenta",
76
+ /**
77
+ * Fleet Freedom JSON protocol
78
+ * @deprecated No longer supported
79
+ */
80
+ json = "json",
81
+ /**
82
+ * SmartWitness dashcam formats
83
+ */
84
+ smartwitness = "smartwitness",
85
+ /**
86
+ * CalAmp LMU/TTU modem protocols
87
+ */
88
+ calamp = "calamp",
89
+ /**
90
+ * Enfora (Novotel) modem protocols
91
+ * @deprecated No longer supported
92
+ */
93
+ enfora = "enfora",
94
+ /**
95
+ * BeWhere beacon protocols
96
+ */
97
+ bewhere = "bewhere",
98
+ /**
99
+ * ATrack device protocols
100
+ */
101
+ atrack = "atrack",
102
+ /**
103
+ * Teltonika device protocols
104
+ */
105
+ teltonika = "teltonika"
106
+ }
@@ -0,0 +1,49 @@
1
+ import { ISerializable } from "../API/Interfaces/ISerializable";
2
+ import { JsonObject, nothing, uint, ulong } from "../API/Types";
3
+ import { Asset } from "../Assets/Asset";
4
+ import { AssetAdvanced } from "../Assets/AssetAdvanced";
5
+ import { AssetGeneral } from "../Assets/AssetGeneral";
6
+ /**
7
+ * Asset information used in calculating a summary instance.
8
+ */
9
+ export declare class ReportBreakdown implements ISerializable {
10
+ /**
11
+ * Instantiates a {@link ReportBreakdown} or one of its subclasses based on the shape of the JSON.
12
+ * Implementation is in {@link ReportBreakdown_fromJSON.ts}
13
+ * @param json The JSON to parse.
14
+ * @returns An instance of a {@link ReportBreakdown} or one of its subclasses.
15
+ */
16
+ static fromJSON: (json: JsonObject) => ReportBreakdown;
17
+ /**
18
+ * The asset to which this event data belongs.
19
+ */
20
+ assetId: ulong;
21
+ /**
22
+ * The asset to which this event data belongs.
23
+ */
24
+ get asset(): Asset;
25
+ /**
26
+ * Report specific identifier of the event data.
27
+ */
28
+ instance: uint;
29
+ /**
30
+ * Identifiers of the summary instances that used this event.
31
+ */
32
+ summaryInstances: uint[];
33
+ /**
34
+ * General Asset information.
35
+ */
36
+ general: AssetGeneral | null;
37
+ /**
38
+ * Advanced/detailed information used.
39
+ */
40
+ advanced: AssetAdvanced | null;
41
+ constructor(asset: ulong, instance: uint, summaryInstances?: uint[] | nothing, general?: AssetGeneral | nothing, advanced?: AssetAdvanced | nothing);
42
+ toJSON(): {
43
+ asset: number | null;
44
+ instance: number | null;
45
+ summaryInstances: number[];
46
+ general: JsonObject | null;
47
+ advanced: JsonObject | null;
48
+ };
49
+ }
@@ -0,0 +1,37 @@
1
+ import { nothing, uint, ulong } from "../API/Types";
2
+ import { AssetAdvanced } from "../Assets/AssetAdvanced";
3
+ import { AssetGeneral } from "../Assets/AssetGeneral";
4
+ import { DispatchJob } from "../Dispatch/DispatchJob";
5
+ import { ReportBreakdown } from "./ReportBreakdown";
6
+ /**
7
+ * Dispatch Job information used in this report.
8
+ */
9
+ export declare class ReportBreakdownJob extends ReportBreakdown {
10
+ /**
11
+ * The Job used.
12
+ */
13
+ job: DispatchJob;
14
+ constructor(job: DispatchJob, asset: ulong, instance: uint, summaryInstances?: uint[] | nothing, general?: AssetGeneral | nothing, advanced?: AssetAdvanced | nothing);
15
+ toJSON(): {
16
+ job: {
17
+ id: number | null;
18
+ company: number | null;
19
+ v: number[];
20
+ driver: string;
21
+ created: string | null;
22
+ name: string;
23
+ instructions: string;
24
+ priority: import("..").DispatchJobPriority;
25
+ references: import("..").JsonObject;
26
+ labels: string[];
27
+ tags: string[];
28
+ forms: number[];
29
+ steps: any[];
30
+ };
31
+ asset: number | null;
32
+ instance: number | null;
33
+ summaryInstances: number[];
34
+ general: import("..").JsonObject | null;
35
+ advanced: import("..").JsonObject | null;
36
+ };
37
+ }
@@ -0,0 +1,40 @@
1
+ import { nothing, uint, ulong } from "../API/Types";
2
+ import { AssetAdvanced } from "../Assets/AssetAdvanced";
3
+ import { AssetGeneral } from "../Assets/AssetGeneral";
4
+ import { AssetMessage } from "../Messaging/AssetMessage";
5
+ import { ReportBreakdown } from "./ReportBreakdown";
6
+ /**
7
+ * Message information used in this report.
8
+ */
9
+ export declare class ReportBreakdownMessage extends ReportBreakdown {
10
+ /**
11
+ * The Message used.
12
+ */
13
+ message: AssetMessage;
14
+ constructor(message: AssetMessage, asset: ulong, instance: uint, summaryInstances?: uint[] | nothing, general?: AssetGeneral | nothing, advanced?: AssetAdvanced | nothing);
15
+ toJSON(): {
16
+ message: {
17
+ folder: import("..").MessageFolder;
18
+ incoming: boolean;
19
+ readBy: string;
20
+ id: number | null;
21
+ v: number[];
22
+ company: number;
23
+ status: import("..").MessageStatus;
24
+ kind: import("..").MessageType;
25
+ to: string;
26
+ from: string;
27
+ body: string;
28
+ processed: string | null;
29
+ delivered: string | null;
30
+ subject: string;
31
+ asset: number;
32
+ user: string;
33
+ };
34
+ asset: number | null;
35
+ instance: number | null;
36
+ summaryInstances: number[];
37
+ general: import("..").JsonObject | null;
38
+ advanced: import("..").JsonObject | null;
39
+ };
40
+ }
@@ -0,0 +1,46 @@
1
+ import { nothing, uint, ulong } from "../API/Types";
2
+ import { AssetAdvanced } from "../Assets/AssetAdvanced";
3
+ import { AssetGeneral } from "../Assets/AssetGeneral";
4
+ import { DispatchTask } from "../Dispatch/DispatchTask";
5
+ import { ReportBreakdown } from "./ReportBreakdown";
6
+ /**
7
+ * Dispatch Task information used in this report.
8
+ */
9
+ export declare class ReportBreakdownTask extends ReportBreakdown {
10
+ /**
11
+ * The Task used.
12
+ */
13
+ task: DispatchTask;
14
+ constructor(task: DispatchTask, asset: ulong, instance: uint, summaryInstances?: uint[] | nothing, general?: AssetGeneral | nothing, advanced?: AssetAdvanced | nothing);
15
+ toJSON(): {
16
+ task: {
17
+ id: number | null;
18
+ company: number | null;
19
+ asset: number | null;
20
+ v: number[];
21
+ name: string;
22
+ references: import("..").JsonObject;
23
+ place: number | null;
24
+ address: string;
25
+ latlng: import("../API/Geography/Interfaces").ILatLng;
26
+ status: import("..").DispatchTaskStatus;
27
+ created: string | null;
28
+ eta: string | null;
29
+ duration: string;
30
+ arrived: string | null;
31
+ completed: string | null;
32
+ instructions: string;
33
+ signature: boolean;
34
+ signatory: string;
35
+ notes: string;
36
+ attachments: number[];
37
+ updatedBy: string;
38
+ updatedUtc: string | null;
39
+ };
40
+ asset: number | null;
41
+ instance: number | null;
42
+ summaryInstances: number[];
43
+ general: import("..").JsonObject | null;
44
+ advanced: import("..").JsonObject | null;
45
+ };
46
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Drill-down mechanism for highlighting only those places and regions desired in report results.
3
+ */
4
+ export declare enum ReportFilterMode {
5
+ /**
6
+ * Filtering is not enabled for the report.
7
+ */
8
+ none = "none",
9
+ /**
10
+ * Include any results for those whose filters match.
11
+ */
12
+ inclusive = "inclusive",
13
+ /**
14
+ * Exclude all results except those whose filters match.
15
+ */
16
+ exclusive = "exclusive"
17
+ }
@@ -0,0 +1,31 @@
1
+ import { ISerializable } from "../API/Interfaces/ISerializable";
2
+ import { SearchPattern } from "../API/SearchPattern";
3
+ import { email, nothing, JsonObject } from "../API/Types";
4
+ /**
5
+ * A group of users and targeted assets which receive report notifications.
6
+ */
7
+ export declare class ReportNotifications implements ISerializable {
8
+ /**
9
+ *
10
+ * @param json
11
+ */
12
+ static fromJSON(json: JsonObject): ReportNotifications;
13
+ /**
14
+ * List of users to send emailed report.
15
+ * Each email will only contain the results for the assets each user is allowed to view.
16
+ * {@link UserGeneral.login}
17
+ */
18
+ users: email[];
19
+ /**
20
+ * A targeting expression to identify which assets receive the report results.
21
+ * The results emailed to each asset will only be for themselves, not all assets.
22
+ * To receive the emailed results, the Asset must have a {@link AssetGeneral.messagingAddress},
23
+ * or for a Person type asset, their {@link Contact.emails}["Email"].
24
+ */
25
+ assets: SearchPattern[] | null;
26
+ constructor(users?: email[] | nothing, assets?: SearchPattern[] | nothing);
27
+ toJSON(): {
28
+ users: string[];
29
+ assets: string | null;
30
+ };
31
+ }
@@ -0,0 +1,52 @@
1
+ import { ISerializable } from '../API/Interfaces/ISerializable';
2
+ import { SearchPattern } from '../API/SearchPattern';
3
+ import { JsonObject, nothing } from '../API/Types';
4
+ import { ReportFilterMode } from './ReportFilterMode';
5
+ import { ReportParameter } from './ReportParameter';
6
+ import { ReportScorecardRules } from './ReportScorecardRules';
7
+ /**
8
+ * The options used by the report runner to process results.
9
+ */
10
+ export declare class ReportOptions implements ISerializable {
11
+ /**
12
+ *
13
+ * @param json
14
+ */
15
+ static fromJSON(json: JsonObject): ReportOptions;
16
+ /**
17
+ * A list of parameters to better shape the results.
18
+ */
19
+ parameters: ReportParameter[];
20
+ /**
21
+ * A targeting expression for including/excluding Assets.
22
+ */
23
+ targets: SearchPattern[] | null;
24
+ /**
25
+ * The mechanism to use for filtering based on places and regions.
26
+ */
27
+ filtering: ReportFilterMode;
28
+ /**
29
+ * A targeting expression for limiting results which only include data from Assets interacting with the targeted Places.
30
+ */
31
+ places: SearchPattern[] | null;
32
+ /**
33
+ * A list of provinces and states, where only assets within those regions will be included in the results.
34
+ */
35
+ regions: string[];
36
+ /**
37
+ * Rules used to generate scorecard for this report.
38
+ */
39
+ scorecardRules: ReportScorecardRules | null;
40
+ constructor(parameters?: ReportParameter[] | nothing, targets?: SearchPattern[] | nothing, filtering?: ReportFilterMode | nothing, places?: SearchPattern[] | nothing, regions?: string[] | nothing, scorecardRules?: ReportScorecardRules | nothing);
41
+ toJSON(): {
42
+ parameters: any[];
43
+ targets: string | null;
44
+ filtering: ReportFilterMode;
45
+ places: string | null;
46
+ regions: string[];
47
+ scorecardRules: {
48
+ baseScore: number | null;
49
+ parameters: any[];
50
+ } | null;
51
+ };
52
+ }
@@ -0,0 +1,26 @@
1
+ import { ISerializable } from '../API/Interfaces/ISerializable';
2
+ import { ReportParameterType } from './ReportParameterType';
3
+ import { JsonObject } from '../API/Types';
4
+ /**
5
+ * An argument passed to the report runner.
6
+ */
7
+ export declare class ReportParameter implements ISerializable {
8
+ /**
9
+ *
10
+ * @param json
11
+ */
12
+ static fromJSON(json: JsonObject): ReportParameter;
13
+ /**
14
+ * The type of argument.
15
+ */
16
+ kind: ReportParameterType;
17
+ /**
18
+ * The parsed value of the argument. Each type of argument has a different parsing.
19
+ */
20
+ value: string;
21
+ constructor(kind?: ReportParameterType, value?: string);
22
+ toJSON(): {
23
+ kind: ReportParameterType;
24
+ value: string;
25
+ };
26
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * The kinds of parameters required and optional to build Report Results
3
+ */
4
+ export declare enum ReportParameterType {
5
+ /**
6
+ * The staring date/time range for events to be included in the results.
7
+ * The date should be a valid ISO-8601 string.
8
+ */
9
+ startDate = "startDate",
10
+ /**
11
+ * The ending date/time range for events to be included in the results.
12
+ * The date should be a valid ISO-8601 string.
13
+ */
14
+ endDate = "endDate",
15
+ /**
16
+ * Time-span processed on each day.
17
+ * Only data within the time-span is included in the results.
18
+ * The times should be 2 space separated duration strings.
19
+ */
20
+ timeOfDay = "timeOfDay",
21
+ /**
22
+ * A list of status tags an Asset must have to be included in the results.
23
+ * Should be a comma separated string of codified tag names.
24
+ */
25
+ tags = "tags",
26
+ /**
27
+ * The minimum amount of time for a Summary nice before it is included in the results.
28
+ * Supplied as a <format id="timespan">duration string</format>.
29
+ */
30
+ duration = "duration",
31
+ /**
32
+ * The maximum amount of time in a Summary Instance before it is split into two and the latter marked as an exception in the results.
33
+ * Supplied as a <format id="timespan">duration string</format>.
34
+ */
35
+ prolonged = "prolonged",
36
+ /**
37
+ * The minimum distance travelled in a Summary Instance before it is included in the results.
38
+ * Supplied as a number of meters.
39
+ */
40
+ distance = "distance",
41
+ /**
42
+ * The maximum distance travelled in a Summary Instance before it is split into two and the latter marked as an exception in the results.
43
+ * Supplied as a number of meters.
44
+ */
45
+ rubicon = "rubicon",
46
+ /**
47
+ * A choice in the method used to calculate a Summary Instance's values.
48
+ * For an attribute report, the possible values are "instance" where if the attribute is present it is included,
49
+ * and "value" where each attribute's simple value becomes it's own summary instance.
50
+ * For a Tag Summary report, the possible values are "inclusive" where any of the given tags must match, and
51
+ * "exclusive" where all the given tags must match.
52
+ */
53
+ collate = "collate",
54
+ /**
55
+ * A list of attribute names an Asset must have to be included in the results.
56
+ * Should be a comma separated string of codified tag names.
57
+ */
58
+ attributes = "attributes"
59
+ }
@@ -0,0 +1,54 @@
1
+ import { ISerializable } from "../API/Interfaces/ISerializable";
2
+ import { byte, datetime, ulong, ushort, JsonObject } from "../API/Types";
3
+ import { ReportRecurrenceType } from "./ReportRecurrenceType";
4
+ /**
5
+ * Determines when and how often a report schedule runs automatically.
6
+ */
7
+ export declare class ReportRecurrence implements ISerializable {
8
+ #private;
9
+ /**
10
+ *
11
+ * @param json
12
+ */
13
+ static fromJSON(json: JsonObject): ReportRecurrence;
14
+ /**
15
+ * How often the report is automatically run. Daily, weekly, monthly, etc...
16
+ */
17
+ kind: ReportRecurrenceType;
18
+ /**
19
+ * Used only for daily schedules, this 7 item, boolean array, determines if the schedule should recur on that day of the week.
20
+ */
21
+ weekdays: boolean[];
22
+ /**
23
+ * Used only for weekly schedules, it's a number between 0 and 6 representing the day of the week, with Sunday being the first day of the week.
24
+ */
25
+ weekday: byte;
26
+ /**
27
+ * When the schedule is to begin recurring in local-time (not UTC).
28
+ */
29
+ start: Date;
30
+ /**
31
+ * The optional time when the schedule stops recurring in local-time (not UTC).
32
+ */
33
+ end: Date;
34
+ get iterations(): ushort;
35
+ get lastResult(): ulong;
36
+ get nextStartDate(): Date;
37
+ get nextEndDate(): Date;
38
+ get lastStartDate(): Date;
39
+ get lastEndDate(): Date;
40
+ constructor(kind?: ReportRecurrenceType, weekdays?: boolean[] | string, weekday?: byte, start?: Date | number | datetime, end?: Date | number | datetime, iterations?: ushort, lastResult?: ulong, nextStartDate?: Date | number | datetime, nextEndDate?: Date | number | datetime, lastStartDate?: Date | number | datetime, lastEndDate?: Date | number | datetime);
41
+ toJSON(): {
42
+ kind: ReportRecurrenceType;
43
+ weekdays: string;
44
+ weekday: number | null;
45
+ start: string | null;
46
+ end: string | null;
47
+ iterations: number | null;
48
+ lastResult: number | null;
49
+ nextStartDate: string | null;
50
+ nextEndDate: string | null;
51
+ lastStartDate: string | null;
52
+ lastEndDate: string | null;
53
+ };
54
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Specifies how often a Report Template is automatically generates a Report Result.
3
+ */
4
+ export declare enum ReportRecurrenceType {
5
+ /**
6
+ * Runs only once. This type is used for large reports which need to run overnight.
7
+ */
8
+ once = "once",
9
+ /**
10
+ * Daily at midnight in the local timezone for the previous day based on the ReportRecurrence.weekdays.
11
+ * {@link ReportRecurrence.weekdays}
12
+ */
13
+ daily = "daily",
14
+ /**
15
+ * Weekly at midnight in the local timezone for the previous 7 days based on the ReportRecurrence.weekday.
16
+ * {@link ReportRecurrence.weekday}
17
+ */
18
+ weekly = "weekly",
19
+ /**
20
+ * Monthly at midnight in the local timezone for the previous month based on the ReportRecurrence.start date.
21
+ * {@link ReportRecurrence.start}
22
+ */
23
+ monthly = "monthly",
24
+ /**
25
+ * Runs once every three months at midnight in the local timezone for the previous 3 months based on the ReportRecurrence.start date.
26
+ * {@link ReportRecurrence.start}
27
+ */
28
+ quarterly = "quarterly",
29
+ /**
30
+ * Yearly at midnight in the local timezone based on the ReportRecurrence.start date.
31
+ * {@link ReportRecurrence.start}
32
+ */
33
+ annually = "annually"
34
+ }