@trakit/objects 0.0.15 → 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 (222) hide show
  1. package/Accounts/User.d.ts +25 -4
  2. package/Assets/Asset.d.ts +1 -3
  3. package/Companies/Company.d.ts +1 -20
  4. package/Providers/Provider.d.ts +1 -12
  5. package/README.md +24 -24
  6. package/index.d.ts +1 -1
  7. package/objects/API/Arrays.d.ts +46 -0
  8. package/objects/API/Base.d.ts +19 -0
  9. package/objects/API/BaseComponent.d.ts +40 -0
  10. package/objects/API/BaseCompound.d.ts +19 -0
  11. package/objects/API/Codifier.d.ts +15 -0
  12. package/objects/API/Constants.d.ts +39 -0
  13. package/objects/API/Conversion.d.ts +255 -0
  14. package/objects/API/Encoding.d.ts +9 -0
  15. package/objects/API/Files.d.ts +21 -0
  16. package/objects/API/Functions.d.ts +196 -0
  17. package/objects/API/Geography/Functions.d.ts +236 -0
  18. package/objects/API/Geography/Interfaces.d.ts +150 -0
  19. package/objects/API/Geography/LatLng.d.ts +86 -0
  20. package/objects/API/Geography/LatLngBounds.d.ts +146 -0
  21. package/objects/API/Geography/Position.d.ts +74 -0
  22. package/objects/API/Geography/StreetAddress.d.ts +59 -0
  23. package/objects/API/Geometry/Functions.d.ts +114 -0
  24. package/objects/API/Geometry/Interfaces.d.ts +111 -0
  25. package/objects/API/Geometry/Point.d.ts +81 -0
  26. package/objects/API/Geometry/Radial.d.ts +110 -0
  27. package/objects/API/Geometry/Rectangle.d.ts +159 -0
  28. package/objects/API/Geometry/Size.d.ts +58 -0
  29. package/objects/API/Guid.d.ts +4 -0
  30. package/objects/API/Interfaces/IAmCompany.d.ts +11 -0
  31. package/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
  32. package/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
  33. package/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
  34. package/objects/API/Interfaces/IDeserializable.d.ts +13 -0
  35. package/objects/API/Interfaces/IEnabled.d.ts +10 -0
  36. package/objects/API/Interfaces/IFileSize.d.ts +9 -0
  37. package/objects/API/Interfaces/IGlobal.d.ts +11 -0
  38. package/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
  39. package/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
  40. package/objects/API/Interfaces/IIconic.d.ts +15 -0
  41. package/objects/API/Interfaces/IIdUlong.d.ts +10 -0
  42. package/objects/API/Interfaces/ILabelled.d.ts +10 -0
  43. package/objects/API/Interfaces/INamed.d.ts +13 -0
  44. package/objects/API/Interfaces/IPictured.d.ts +15 -0
  45. package/objects/API/Interfaces/IRequestable.d.ts +22 -0
  46. package/objects/API/Interfaces/ISerializable.d.ts +10 -0
  47. package/objects/API/Interfaces/ISuspendable.d.ts +16 -0
  48. package/objects/API/Interfaces/IVisual.d.ts +18 -0
  49. package/objects/API/Maps.d.ts +28 -0
  50. package/objects/API/Objects.d.ts +5 -0
  51. package/objects/API/SearchPattern.d.ts +46 -0
  52. package/objects/API/TimeSpan.d.ts +109 -0
  53. package/objects/API/Timezone.d.ts +44 -0
  54. package/objects/API/Timezones.d.ts +7 -0
  55. package/objects/API/Types.d.ts +132 -0
  56. package/objects/Accounts/Contact.d.ts +139 -0
  57. package/objects/Accounts/Machine.d.ts +139 -0
  58. package/objects/Accounts/MultiFactorType.d.ts +17 -0
  59. package/objects/Accounts/NotificationMethod.d.ts +17 -0
  60. package/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
  61. package/objects/Accounts/Permissions/Permission.d.ts +56 -0
  62. package/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
  63. package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
  64. package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
  65. package/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
  66. package/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
  67. package/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
  68. package/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
  69. package/objects/Accounts/Session.d.ts +89 -0
  70. package/objects/Accounts/SessionStatus.d.ts +29 -0
  71. package/objects/Accounts/SystemsOfUnits.d.ts +13 -0
  72. package/objects/Accounts/User.d.ts +167 -0
  73. package/objects/Accounts/UserAdvanced.d.ts +53 -0
  74. package/objects/Accounts/UserAuthentication.d.ts +55 -0
  75. package/objects/Accounts/UserGeneral.d.ts +98 -0
  76. package/objects/Accounts/UserGroup.d.ts +51 -0
  77. package/objects/Accounts/UserMFA.d.ts +47 -0
  78. package/objects/Accounts/UserNotifications.d.ts +76 -0
  79. package/objects/Accounts/UserSSO.d.ts +37 -0
  80. package/objects/Assets/Asset.d.ts +218 -0
  81. package/objects/Assets/AssetAdvanced.d.ts +77 -0
  82. package/objects/Assets/AssetAttribute.d.ts +71 -0
  83. package/objects/Assets/AssetDispatch.d.ts +55 -0
  84. package/objects/Assets/AssetGeneral.d.ts +127 -0
  85. package/objects/Assets/AssetPlaceStatus.d.ts +31 -0
  86. package/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
  87. package/objects/Assets/AssetType.d.ts +21 -0
  88. package/objects/Behaviours/Behaviour.d.ts +78 -0
  89. package/objects/Behaviours/BehaviourLog.d.ts +95 -0
  90. package/objects/Behaviours/BehaviourLogType.d.ts +21 -0
  91. package/objects/Behaviours/BehaviourParameter.d.ts +38 -0
  92. package/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
  93. package/objects/Behaviours/BehaviourScript.d.ts +83 -0
  94. package/objects/Billing/BillableBase.d.ts +83 -0
  95. package/objects/Billing/BillableSmsProfile.d.ts +26 -0
  96. package/objects/Billing/BillingCurrency.d.ts +17 -0
  97. package/objects/Billing/BillingCycle.d.ts +17 -0
  98. package/objects/Billing/BillingProfile.d.ts +104 -0
  99. package/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
  100. package/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
  101. package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
  102. package/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
  103. package/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
  104. package/objects/Billing/Report/BillingReport.d.ts +112 -0
  105. package/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
  106. package/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
  107. package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
  108. package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
  109. package/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
  110. package/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
  111. package/objects/Companies/ColourStyle.d.ts +25 -0
  112. package/objects/Companies/Company.d.ts +167 -0
  113. package/objects/Companies/CompanyDirectory.d.ts +52 -0
  114. package/objects/Companies/CompanyGeneral.d.ts +55 -0
  115. package/objects/Companies/CompanyPolicy.d.ts +66 -0
  116. package/objects/Companies/CompanyReseller.d.ts +166 -0
  117. package/objects/Companies/CompanyStyle.d.ts +50 -0
  118. package/objects/Companies/LabelStyle.d.ts +46 -0
  119. package/objects/Companies/NotificationServerEmail.d.ts +99 -0
  120. package/objects/Companies/NotificationServerSms.d.ts +25 -0
  121. package/objects/Companies/PasswordExpiryMode.d.ts +17 -0
  122. package/objects/Companies/PasswordPolicy.d.ts +51 -0
  123. package/objects/Companies/SessionMultiUser.d.ts +17 -0
  124. package/objects/Companies/SessionPolicy.d.ts +47 -0
  125. package/objects/Dispatch/DispatchDirection.d.ts +53 -0
  126. package/objects/Dispatch/DispatchJob.d.ts +107 -0
  127. package/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
  128. package/objects/Dispatch/DispatchStep.d.ts +99 -0
  129. package/objects/Dispatch/DispatchStepState.d.ts +27 -0
  130. package/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
  131. package/objects/Dispatch/DispatchTask.d.ts +154 -0
  132. package/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
  133. package/objects/Hosting/Document.d.ts +70 -0
  134. package/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
  135. package/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
  136. package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  137. package/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
  138. package/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
  139. package/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
  140. package/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
  141. package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
  142. package/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
  143. package/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
  144. package/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
  145. package/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
  146. package/objects/Hosting/FormFieldType.d.ts +127 -0
  147. package/objects/Hosting/FormResult.d.ts +95 -0
  148. package/objects/Hosting/FormTemplate.d.ts +80 -0
  149. package/objects/Images/Dashcam.d.ts +63 -0
  150. package/objects/Images/DashcamBase.d.ts +97 -0
  151. package/objects/Images/DashcamLive.d.ts +36 -0
  152. package/objects/Images/DashcamMediaType.d.ts +17 -0
  153. package/objects/Images/Icon.d.ts +66 -0
  154. package/objects/Images/IconGlyph.d.ts +47 -0
  155. package/objects/Images/IconLabel.d.ts +29 -0
  156. package/objects/Images/IconLayer.d.ts +33 -0
  157. package/objects/Images/Picture.d.ts +72 -0
  158. package/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
  159. package/objects/Maintenance/MaintenanceJob.d.ts +134 -0
  160. package/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
  161. package/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
  162. package/objects/Messaging/AlertPriority.d.ts +17 -0
  163. package/objects/Messaging/AssetAlert.d.ts +29 -0
  164. package/objects/Messaging/AssetMessage.d.ts +40 -0
  165. package/objects/Messaging/MessageBase.d.ts +99 -0
  166. package/objects/Messaging/MessageFolder.d.ts +13 -0
  167. package/objects/Messaging/MessageStatus.d.ts +29 -0
  168. package/objects/Messaging/MessageType.d.ts +33 -0
  169. package/objects/Places/Place.d.ts +114 -0
  170. package/objects/Places/PlaceType.d.ts +25 -0
  171. package/objects/Providers/Config/ProviderConfig.d.ts +70 -0
  172. package/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
  173. package/objects/Providers/Config/ProviderScript.d.ts +86 -0
  174. package/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
  175. package/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
  176. package/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
  177. package/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
  178. package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
  179. package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
  180. package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
  181. package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  182. package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
  183. package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
  184. package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
  185. package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
  186. package/objects/Providers/Provider.d.ts +205 -0
  187. package/objects/Providers/ProviderAdvanced.d.ts +50 -0
  188. package/objects/Providers/ProviderCommand.d.ts +36 -0
  189. package/objects/Providers/ProviderCommandStatus.d.ts +29 -0
  190. package/objects/Providers/ProviderCommandType.d.ts +37 -0
  191. package/objects/Providers/ProviderControl.d.ts +41 -0
  192. package/objects/Providers/ProviderData.d.ts +30 -0
  193. package/objects/Providers/ProviderGeneral.d.ts +121 -0
  194. package/objects/Providers/ProviderType.d.ts +106 -0
  195. package/objects/Reports/ReportBreakdown.d.ts +49 -0
  196. package/objects/Reports/ReportBreakdownJob.d.ts +37 -0
  197. package/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
  198. package/objects/Reports/ReportBreakdownTask.d.ts +46 -0
  199. package/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  200. package/objects/Reports/ReportFilterMode.d.ts +17 -0
  201. package/objects/Reports/ReportNotifications.d.ts +31 -0
  202. package/objects/Reports/ReportOptions.d.ts +52 -0
  203. package/objects/Reports/ReportParameter.d.ts +26 -0
  204. package/objects/Reports/ReportParameterType.d.ts +59 -0
  205. package/objects/Reports/ReportRecurrence.d.ts +54 -0
  206. package/objects/Reports/ReportRecurrenceType.d.ts +34 -0
  207. package/objects/Reports/ReportResult.d.ts +169 -0
  208. package/objects/Reports/ReportResultData.d.ts +17 -0
  209. package/objects/Reports/ReportSchedule.d.ts +111 -0
  210. package/objects/Reports/ReportScorecard.d.ts +38 -0
  211. package/objects/Reports/ReportScorecardParameter.d.ts +31 -0
  212. package/objects/Reports/ReportScorecardRules.d.ts +26 -0
  213. package/objects/Reports/ReportStatus.d.ts +29 -0
  214. package/objects/Reports/ReportSummary.d.ts +90 -0
  215. package/objects/Reports/ReportSummaryReason.d.ts +27 -0
  216. package/objects/Reports/ReportTemplate.d.ts +81 -0
  217. package/objects/Reports/ReportTotal.d.ts +47 -0
  218. package/objects/Reports/ReportType.d.ts +42 -0
  219. package/objects/index.d.ts +406 -0
  220. package/objects/storage.d.ts +176 -0
  221. package/package.json +36 -36
  222. package/trakit-objects.min.js +2 -2
@@ -0,0 +1,218 @@
1
+ import { Contact } from "../Accounts/Contact";
2
+ import { BaseComponent } from "../API/BaseComponent";
3
+ import { BaseCompound } from "../API/BaseCompound";
4
+ import { Position } from "../API/Geography/Position";
5
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
6
+ import { IIconic } from "../API/Interfaces/IIconic";
7
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
8
+ import { ILabelled } from "../API/Interfaces/ILabelled";
9
+ import { INamed } from "../API/Interfaces/INamed";
10
+ import { IPictured } from "../API/Interfaces/IPictured";
11
+ import { ISuspendable } from "../API/Interfaces/ISuspendable";
12
+ import { JsonObject, codified, colour, double, ulong, ushort } from "../API/Types";
13
+ import { Company } from "../Companies/Company";
14
+ import { Icon } from "../Images/Icon";
15
+ import { Picture } from "../Images/Picture";
16
+ import { Provider } from "../Providers/Provider";
17
+ import { AssetAdvanced } from "./AssetAdvanced";
18
+ import { AssetAttribute } from "./AssetAttribute";
19
+ import { AssetDispatch } from "./AssetDispatch";
20
+ import { AssetGeneral } from "./AssetGeneral";
21
+ import { AssetPlaceStatus } from "./AssetPlaceStatus";
22
+ import { AssetType } from "./AssetType";
23
+ /**
24
+ * The full details of an Asset, containing all the properties from the {@link AssetGeneral} and {@link AssetAdvanced} objects.
25
+ */
26
+ export declare class Asset extends BaseCompound implements IIdUlong, INamed, IIconic, IBelongCompany, ILabelled, IPictured, ISuspendable {
27
+ #private;
28
+ /**
29
+ *
30
+ */
31
+ get pieces(): BaseComponent[];
32
+ /**
33
+ * Unique identifier of this asset.
34
+ */
35
+ get id(): ulong;
36
+ /**
37
+ * The company to which this asset belongs.
38
+ * {@link Company.id}
39
+ */
40
+ get companyId(): ulong;
41
+ /**
42
+ * The {@link Company} to which this asset belongs.
43
+ */
44
+ get company(): Company;
45
+ /**
46
+ * Type of asset.
47
+ */
48
+ get kind(): AssetType;
49
+ /**
50
+ *
51
+ */
52
+ get general(): AssetGeneral;
53
+ /**
54
+ * This thing's name.
55
+ */
56
+ get name(): string;
57
+ set name(value: string);
58
+ /**
59
+ * Notes about it.
60
+ */
61
+ get notes(): string;
62
+ set notes(value: string);
63
+ /**
64
+ * The icon that represents this asset on the map and in lists.
65
+ * {@link Icon.id}
66
+ */
67
+ get iconId(): ulong;
68
+ set iconId(value: ulong);
69
+ /**
70
+ * The {@link Icon} that represents this asset on the map and in lists.
71
+ */
72
+ get icon(): Icon;
73
+ set icon(value: Icon);
74
+ /**
75
+ * Codified label names.
76
+ * {@link LabelStyle.code}
77
+ */
78
+ get labels(): codified[];
79
+ set labels(value: codified[]);
80
+ /**
81
+ * A list of photos of this thing.
82
+ * {@link Picture.id}
83
+ */
84
+ get pictureIds(): ulong[];
85
+ set pictureIds(value: ulong[]);
86
+ /**
87
+ * A list of {@link Picture}s of this thing.
88
+ */
89
+ get pictures(): Picture[];
90
+ set pictures(value: Picture[]);
91
+ /**
92
+ * The fall-back address which is used to send Messages if the asset is a Person and has no Contact phone or email.
93
+ */
94
+ get messagingAddress(): string;
95
+ set messagingAddress(value: string);
96
+ /**
97
+ * Name/value collections of custom fields used to refer to external systems.
98
+ */
99
+ get references(): Map<string, string>;
100
+ set references(value: Map<string, string>);
101
+ /**
102
+ * Contact information for this user.
103
+ * {@link Contact.id}
104
+ */
105
+ get contactId(): ulong;
106
+ set contactId(value: ulong);
107
+ /**
108
+ * {@link Contact} information for this user.
109
+ */
110
+ get contact(): Contact;
111
+ set contact(value: Contact);
112
+ /**
113
+ * The license plate.
114
+ */
115
+ get plate(): string;
116
+ /**
117
+ * Manufacturer's unique identification number (Vehicle Identification Number).
118
+ */
119
+ get vin(): string;
120
+ set vin(value: string);
121
+ /**
122
+ * Manufacturer's name.
123
+ */
124
+ get make(): string;
125
+ set make(value: string);
126
+ /**
127
+ * Manufacturer's model name/number.
128
+ */
129
+ get model(): string;
130
+ set model(value: string);
131
+ /**
132
+ * Year of manufacturing.
133
+ */
134
+ get year(): ushort;
135
+ set year(value: ushort);
136
+ /**
137
+ * Primary colour of the trailer (given in 24bit hex; #RRGGBB)
138
+ */
139
+ get colour(): colour;
140
+ set colour(value: colour);
141
+ /**
142
+ * Manufacturer's unique identification number for this trailer.
143
+ */
144
+ get serial(): string;
145
+ set serial(value: string);
146
+ /**
147
+ *
148
+ */
149
+ get advanced(): AssetAdvanced;
150
+ /**
151
+ * The things GPS coordinates including speed, bearing, and street information.
152
+ */
153
+ get position(): Position | null;
154
+ set position(value: Position | null);
155
+ /**
156
+ * The cumulative distance travelled in kilometres.
157
+ */
158
+ get odometer(): double;
159
+ set odometer(value: double);
160
+ /**
161
+ * The codified status tag names.
162
+ */
163
+ get tags(): codified[];
164
+ set tags(value: codified[]);
165
+ /**
166
+ * A list of attributes given to this asset by the connection device such as wiring state, VBus, etc.
167
+ */
168
+ get attributes(): Map<codified, AssetAttribute>;
169
+ set attributes(value: Map<codified, AssetAttribute>);
170
+ /**
171
+ * The list of devices providing events for this asset.
172
+ */
173
+ get providerIds(): string[];
174
+ /**
175
+ * The list of devices providing events for this asset.
176
+ */
177
+ get providers(): Provider[];
178
+ /**
179
+ * A list of assets related to this one; like a Person for a Vehicle (driver).
180
+ * {@link Asset.id}
181
+ */
182
+ get relationshipIds(): ulong[];
183
+ set relationshipIds(value: ulong[]);
184
+ /**
185
+ * A list of {@link Asset}s related to this one; like a Person for a Vehicle (driver).
186
+ */
187
+ get relationships(): Asset[];
188
+ set relationships(value: Asset[]);
189
+ /**
190
+ * The current state of this asset's interaction with known Places.
191
+ * {@link Place.id}
192
+ */
193
+ get places(): Map<ulong, AssetPlaceStatus>;
194
+ set places(value: Map<ulong, AssetPlaceStatus>);
195
+ /**
196
+ * The cumulative duration that the vehicle's engine has been running (in decimal hours).
197
+ */
198
+ get engineHours(): double;
199
+ set engineHours(value: double);
200
+ /**
201
+ *
202
+ */
203
+ get dispatch(): AssetDispatch;
204
+ toJSON(): JsonObject;
205
+ fromJSON(json: JsonObject, force?: boolean): boolean;
206
+ /**
207
+ * The {@link id} is the key.
208
+ */
209
+ getKey(): number;
210
+ /**
211
+ * Indicates whether this object is suspended from event processing.
212
+ */
213
+ get suspended(): boolean;
214
+ /**
215
+ * Timestamp from the action that deleted or suspended this object.
216
+ */
217
+ get since(): Date;
218
+ }
@@ -0,0 +1,77 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { Position } from "../API/Geography/Position";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { JsonObject, codified, double, ulong } from "../API/Types";
6
+ import { Company } from "../Companies/Company";
7
+ import { Provider } from "../Providers/Provider";
8
+ import { Asset } from "./Asset";
9
+ import { AssetAttribute } from "./AssetAttribute";
10
+ import { AssetPlaceStatus } from "./AssetPlaceStatus";
11
+ /**
12
+ * Often changing details about a thing.
13
+ */
14
+ export declare class AssetAdvanced extends BaseComponent implements IIdUlong, IBelongCompany {
15
+ /**
16
+ * Unique identifier of this asset.
17
+ * {@link Asset.id}
18
+ */
19
+ id: ulong;
20
+ /**
21
+ * The company to which this asset belongs.
22
+ * {@link Company.id}
23
+ */
24
+ companyId: ulong;
25
+ /**
26
+ * The {@link Company} to which this asset belongs.
27
+ */
28
+ get company(): Company;
29
+ /**
30
+ * The things GPS coordinates including speed, bearing, and street information.
31
+ */
32
+ position: Position | null;
33
+ /**
34
+ * The cumulative distance travelled in kilometres.
35
+ */
36
+ odometer: double;
37
+ /**
38
+ * The codified status tag names.
39
+ */
40
+ tags: codified[];
41
+ /**
42
+ * A list of attributes given to this asset by the connection device such as wiring state, VBus, etc.
43
+ */
44
+ attributes: Map<codified, AssetAttribute>;
45
+ /**
46
+ * The list of {@link Provider.id|device identifiers} providing events for this asset.
47
+ */
48
+ providerIds: string[];
49
+ /**
50
+ * The list of {@link Provider|devices} providing events for this asset.
51
+ */
52
+ get providers(): Provider[];
53
+ set providers(value: Provider[]);
54
+ /**
55
+ * A list of {@link Asset.id}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
56
+ */
57
+ relationshipIds: ulong[];
58
+ /**
59
+ * A list of {@link Asset}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
60
+ */
61
+ get relationships(): Asset[];
62
+ set relationships(value: Asset[]);
63
+ /**
64
+ * The current state of this asset's interaction with known {@link Place}s.
65
+ */
66
+ places: Map<ulong, AssetPlaceStatus>;
67
+ /**
68
+ * The cumulative duration that the vehicle's engine has been running (in decimal hours).
69
+ */
70
+ engineHours: double;
71
+ toJSON(): JsonObject;
72
+ fromJSON(json: JsonObject, force?: boolean): boolean;
73
+ /**
74
+ * The {@link id} is the key.
75
+ */
76
+ getKey(): number;
77
+ }
@@ -0,0 +1,71 @@
1
+ import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
2
+ import { ISerializable } from "../API/Interfaces/ISerializable";
3
+ import { datetime, ulong, JsonObject } from "../API/Types";
4
+ import { Provider } from "../Providers/Provider";
5
+ import { Asset } from "./Asset";
6
+ /**
7
+ * An attribute given to an asset by a behaviour script.
8
+ */
9
+ export declare class AssetAttribute implements ISerializable, IBelongAsset {
10
+ /**
11
+ *
12
+ * @param json
13
+ */
14
+ static fromJSON(json: JsonObject): AssetAttribute;
15
+ /**
16
+ * Display name of the attribute.
17
+ */
18
+ name: string;
19
+ /**
20
+ * Computed/contextual value from the behaviour. Like "3.76 volts" or "on".
21
+ */
22
+ simple: string;
23
+ /**
24
+ * Parse-able/formatted string for complex display. May contain HTML.
25
+ */
26
+ complex: string;
27
+ /**
28
+ * Raw value like 3.76 (volts) or true (on).
29
+ */
30
+ raw: any;
31
+ /**
32
+ * Text representation of unit like "°C" or "Km".
33
+ * {@link Units}
34
+ */
35
+ unit: string;
36
+ /**
37
+ * The {@link Provider.id|device id} which provided this attribute.
38
+ */
39
+ providerId: string;
40
+ /**
41
+ * The {@link Provider|device} which provided this attribute.
42
+ */
43
+ get provider(): Provider;
44
+ /**
45
+ * The related {@link Asset.id} which provided this attribute.
46
+ */
47
+ assetId: ulong;
48
+ /**
49
+ * The related {@link Asset} which provided this attribute.
50
+ */
51
+ get asset(): Asset;
52
+ /**
53
+ * Date/time stamp from when this attribute was recorded (or reported) by the device.
54
+ */
55
+ dts: Date;
56
+ /**
57
+ * When false, indicates that this attribute is used by an internal system and should be left untouched.
58
+ */
59
+ global: boolean;
60
+ constructor(name?: string, simple?: string, complex?: string, raw?: any, unit?: string, provider?: string, asset?: ulong, dts?: Date | number | datetime, global?: boolean);
61
+ toJSON(): {
62
+ name: string;
63
+ simple: string;
64
+ complex: string;
65
+ raw: any;
66
+ provider: string;
67
+ asset: number | null;
68
+ dts: string | null;
69
+ global: boolean;
70
+ };
71
+ }
@@ -0,0 +1,55 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
+ import { JsonObject, ulong } from "../API/Types";
5
+ import { Company } from "../Companies/Company";
6
+ import { DispatchDirection } from "../Dispatch/DispatchDirection";
7
+ import { DispatchJob } from "../Dispatch/DispatchJob";
8
+ /**
9
+ * The current state of an asset's {@link DispatchJob} route progress.
10
+ */
11
+ export declare class AssetDispatch extends BaseComponent implements IIdUlong, IBelongCompany {
12
+ /**
13
+ *
14
+ * @param json
15
+ */
16
+ static fromJSON(json: JsonObject): AssetDispatch;
17
+ /**
18
+ * Unique identifier of this asset.
19
+ * {@link Asset.id}
20
+ */
21
+ id: ulong;
22
+ /**
23
+ * The company to which this asset belongs.
24
+ * {@link Company.id}
25
+ */
26
+ companyId: ulong;
27
+ /**
28
+ * The {@link Company} to which this asset belongs.
29
+ */
30
+ get company(): Company;
31
+ /**
32
+ * The current list of {@link DispatchJob}s assigned to the asset.
33
+ * {@link DispatchJob}
34
+ */
35
+ jobIds: ulong[];
36
+ /**
37
+ * A list of {@link Asset}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
38
+ */
39
+ get jobs(): DispatchJob[];
40
+ set jobs(value: DispatchJob[]);
41
+ /**
42
+ * Driving directions and route path details.
43
+ */
44
+ directions: DispatchDirection[];
45
+ /**
46
+ * Timestamp from the last update to this {@link AssetDispatch} by a {@link User}, {@link Machine}, {@link Asset}, or an assigned {@link DispatchJob}.
47
+ */
48
+ lastDispatched: Date;
49
+ toJSON(): JsonObject;
50
+ fromJSON(json: JsonObject, force?: boolean): boolean;
51
+ /**
52
+ * The {@link id} is the key.
53
+ */
54
+ getKey(): number;
55
+ }
@@ -0,0 +1,127 @@
1
+ import { Contact } from "../Accounts/Contact";
2
+ import { BaseComponent } from "../API/BaseComponent";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIconic } from "../API/Interfaces/IIconic";
5
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
6
+ import { ILabelled } from "../API/Interfaces/ILabelled";
7
+ import { INamed } from "../API/Interfaces/INamed";
8
+ import { IPictured } from "../API/Interfaces/IPictured";
9
+ import { ISuspendable } from "../API/Interfaces/ISuspendable";
10
+ import { JsonObject, codified, colour, ulong, ushort } from "../API/Types";
11
+ import { Company } from "../Companies/Company";
12
+ import { Icon } from "../Images/Icon";
13
+ import { Picture } from "../Images/Picture";
14
+ import { AssetType } from "./AssetType";
15
+ /**
16
+ * Seldom changing details about a thing.
17
+ */
18
+ export declare class AssetGeneral extends BaseComponent implements IIdUlong, INamed, IIconic, IBelongCompany, ILabelled, IPictured, ISuspendable {
19
+ /**
20
+ * Unique identifier of this asset.
21
+ * {@link Asset.id}
22
+ */
23
+ id: ulong;
24
+ /**
25
+ * The company to which this asset belongs.
26
+ * {@link Company.id}
27
+ */
28
+ companyId: ulong;
29
+ /**
30
+ * The {@link Company} to which this asset belongs.
31
+ */
32
+ get company(): Company;
33
+ /**
34
+ * Type of asset.
35
+ */
36
+ kind: AssetType;
37
+ /**
38
+ * This thing's name.
39
+ */
40
+ name: string;
41
+ /**
42
+ * The {@link Icon.id} that represents this asset on the map and in lists.
43
+ */
44
+ iconId: ulong;
45
+ /**
46
+ * The {@link Icon} that represents this asset on the map and in lists.
47
+ */
48
+ get icon(): Icon;
49
+ set icon(value: Icon);
50
+ /**
51
+ * Notes about it.
52
+ */
53
+ notes: string;
54
+ /**
55
+ * Codified label names.
56
+ */
57
+ labels: codified[];
58
+ /**
59
+ * {@link Picture.id}s of this asset.
60
+ */
61
+ pictureIds: ulong[];
62
+ /**
63
+ * {@link Picture}s of this asset.
64
+ */
65
+ get pictures(): Picture[];
66
+ set pictures(values: Picture[]);
67
+ /**
68
+ * The fall-back address which is used to send Messages if the asset is a Person and has no Contact phone or email.
69
+ */
70
+ messagingAddress: string;
71
+ /**
72
+ * Name/value collections of custom fields used to refer to external systems.
73
+ */
74
+ references: Map<string, string>;
75
+ /**
76
+ * A reference to their Company's Contact information.
77
+ * {@link Contact.id}
78
+ */
79
+ contactId: ulong;
80
+ /**
81
+ * {@link Contact} information for this person.
82
+ */
83
+ get contact(): Contact;
84
+ set contact(value: Contact);
85
+ /**
86
+ * Manufacturer's unique identification number (Vehicle Identification Number).
87
+ */
88
+ vin: string;
89
+ /**
90
+ * The license plate.
91
+ */
92
+ plate: string;
93
+ /**
94
+ * Manufacturer's name.
95
+ */
96
+ make: string;
97
+ /**
98
+ * Manufacturer's model name/number.
99
+ */
100
+ model: string;
101
+ /**
102
+ * Year of manufacturing.
103
+ */
104
+ year: ushort;
105
+ /**
106
+ * Primary colour of the vehicle (given in 24bit hex; #RRGGBB)
107
+ */
108
+ colour: colour;
109
+ /**
110
+ * Manufacturer's unique identification number for this trailer.
111
+ */
112
+ serial: string;
113
+ toJSON(): JsonObject;
114
+ fromJSON(json: JsonObject, force?: boolean): boolean;
115
+ /**
116
+ * The {@link id} is the key.
117
+ */
118
+ getKey(): number;
119
+ /**
120
+ * Indicates whether this object is suspended from event processing.
121
+ */
122
+ suspended: boolean;
123
+ /**
124
+ * Timestamp from the action that deleted or suspended this object.
125
+ */
126
+ since: Date;
127
+ }
@@ -0,0 +1,31 @@
1
+ import { ISerializable } from "../API/Interfaces/ISerializable";
2
+ import { datetime, JsonObject } from "../API/Types";
3
+ import { AssetPlaceStatusType } from "./AssetPlaceStatusType";
4
+ /**
5
+ * A simple status for each place an Asset visits.
6
+ */
7
+ export declare class AssetPlaceStatus implements ISerializable {
8
+ /**
9
+ *
10
+ * @param json
11
+ */
12
+ static fromJSON(json: JsonObject): AssetPlaceStatus;
13
+ /**
14
+ * The kind of interaction.
15
+ */
16
+ kind: AssetPlaceStatusType;
17
+ /**
18
+ * The date/time stamp for when the Asset first began interacting with the Place.
19
+ */
20
+ enter: Date;
21
+ /**
22
+ * The most recent date/time stamp for the interaction.
23
+ */
24
+ latest: Date;
25
+ constructor(kind?: AssetPlaceStatusType, enter?: Date | number | datetime, latest?: Date | number | datetime);
26
+ toJSON(): {
27
+ kind: AssetPlaceStatusType;
28
+ enter: string | null;
29
+ latest: string | null;
30
+ };
31
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The kinds of interactions had with a Place.
3
+ */
4
+ export declare enum AssetPlaceStatusType {
5
+ /**
6
+ * Occurs when an asset is outside a Place, then goes inside the boundary.
7
+ */
8
+ enter = "enter",
9
+ /**
10
+ * Occurs when the asset was inside the boundary before, and is still inside the boundary now.
11
+ */
12
+ inside = "inside",
13
+ /**
14
+ * Occurs when an asset was inside the boundary of a Place, but then moves outside the boundary.
15
+ */
16
+ exit = "exit"
17
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The four supported types of trackable things.
3
+ */
4
+ export declare enum AssetType {
5
+ /**
6
+ * Generic thing.
7
+ */
8
+ asset = "asset",
9
+ /**
10
+ * Human (or alien) Person.
11
+ */
12
+ person = "person",
13
+ /**
14
+ * A towed vehicle without an engine.
15
+ */
16
+ trailer = "trailer",
17
+ /**
18
+ * A vehicle that moves with its own power.
19
+ */
20
+ vehicle = "vehicle"
21
+ }
@@ -0,0 +1,78 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
+ import { INamed } from "../API/Interfaces/INamed";
5
+ import { SearchPattern } from "../API/SearchPattern";
6
+ import { JsonObject, byte, ulong } from "../API/Types";
7
+ import { Company } from "../Companies/Company";
8
+ import { BehaviourParameter } from "./BehaviourParameter";
9
+ import { BehaviourScript } from "./BehaviourScript";
10
+ /**
11
+ * The applied behaviour which includes all parameters and targets specific assets.
12
+ */
13
+ export declare class Behaviour extends BaseComponent implements IIdUlong, INamed, IBelongCompany {
14
+ /**
15
+ * Unique identifier of this behaviour.
16
+ */
17
+ id: ulong;
18
+ /**
19
+ * The company to which this behaviour belongs.
20
+ * {@link Company.id}
21
+ */
22
+ companyId: ulong;
23
+ /**
24
+ * The {@link Company} to which this behaviour belongs.
25
+ */
26
+ get company(): Company;
27
+ /**
28
+ * The script which this behaviour implements.
29
+ * {@link BehaviourScript.id}
30
+ */
31
+ scriptId: ulong;
32
+ /**
33
+ * The script which this behaviour implements.
34
+ * {@link BehaviourScript.id}
35
+ */
36
+ get script(): BehaviourScript;
37
+ /**
38
+ * The name of this behaviour.
39
+ */
40
+ name: string;
41
+ /**
42
+ * Notes.
43
+ */
44
+ notes: string;
45
+ /**
46
+ * The priority flag allows you to define an execution order for all behaviours for a provider.
47
+ */
48
+ priority: byte;
49
+ /**
50
+ * The search pattern used to target the assets which will embed this behaviour in their execution context.
51
+ */
52
+ targets: SearchPattern[] | null;
53
+ /**
54
+ * A search pattern used to filter the providers which can implement this behaviour.
55
+ */
56
+ filters: SearchPattern[] | null;
57
+ /**
58
+ * The list of defined variable name/value pairs for the script requires.
59
+ */
60
+ parameters: Map<string, BehaviourParameter>;
61
+ toJSON(): {
62
+ id: number | null;
63
+ v: number[];
64
+ company: number | null;
65
+ script: number | null;
66
+ name: string;
67
+ notes: string;
68
+ targets: string | null;
69
+ filters: string | null;
70
+ priority: number;
71
+ parameters: JsonObject;
72
+ };
73
+ fromJSON(json: JsonObject, force?: boolean): boolean;
74
+ /**
75
+ * The {@link id} is the key.
76
+ */
77
+ getKey(): number;
78
+ }