@trakit/objects 0.0.1

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 (219) hide show
  1. package/API/Arrays.d.ts +46 -0
  2. package/API/Base.d.ts +18 -0
  3. package/API/BaseComponent.d.ts +37 -0
  4. package/API/BaseCompound.d.ts +19 -0
  5. package/API/Codifier.d.ts +5 -0
  6. package/API/Component.d.ts +42 -0
  7. package/API/Compound.d.ts +19 -0
  8. package/API/Constants.d.ts +39 -0
  9. package/API/Conversion.d.ts +255 -0
  10. package/API/Files.d.ts +21 -0
  11. package/API/Functions.d.ts +191 -0
  12. package/API/Geography/Functions.d.ts +232 -0
  13. package/API/Geography/Interfaces.d.ts +145 -0
  14. package/API/Geography/LatLng.d.ts +78 -0
  15. package/API/Geography/LatLngBounds.d.ts +145 -0
  16. package/API/Geography/Position.d.ts +62 -0
  17. package/API/Geography/StreetAddress.d.ts +58 -0
  18. package/API/Geometry/Functions.d.ts +114 -0
  19. package/API/Geometry/Interfaces.d.ts +111 -0
  20. package/API/Geometry/Point.d.ts +80 -0
  21. package/API/Geometry/Radial.d.ts +109 -0
  22. package/API/Geometry/Rectangle.d.ts +163 -0
  23. package/API/Geometry/Size.d.ts +52 -0
  24. package/API/Guid.d.ts +4 -0
  25. package/API/Interfaces/IAmCompany.d.ts +11 -0
  26. package/API/Interfaces/IBelongAsset.d.ts +15 -0
  27. package/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
  28. package/API/Interfaces/IBelongCompany.d.ts +15 -0
  29. package/API/Interfaces/IDeserializable.d.ts +12 -0
  30. package/API/Interfaces/IEnabled.d.ts +10 -0
  31. package/API/Interfaces/IFileSize.d.ts +9 -0
  32. package/API/Interfaces/IGlobal.d.ts +11 -0
  33. package/API/Interfaces/IHavePermissions.d.ts +20 -0
  34. package/API/Interfaces/IHavePreferences.d.ts +29 -0
  35. package/API/Interfaces/IIconic.d.ts +15 -0
  36. package/API/Interfaces/IIdUlong.d.ts +10 -0
  37. package/API/Interfaces/ILabelled.d.ts +9 -0
  38. package/API/Interfaces/INamed.d.ts +13 -0
  39. package/API/Interfaces/IPictured.d.ts +15 -0
  40. package/API/Interfaces/IRequestable.d.ts +18 -0
  41. package/API/Interfaces/ISerializable.d.ts +10 -0
  42. package/API/Interfaces/ISuspendable.d.ts +16 -0
  43. package/API/Interfaces/IVisual.d.ts +18 -0
  44. package/API/Maps.d.ts +28 -0
  45. package/API/Objects.d.ts +33 -0
  46. package/API/SearchPattern.d.ts +45 -0
  47. package/API/TimeSpan.d.ts +140 -0
  48. package/API/Timezone.d.ts +44 -0
  49. package/API/Timezones.d.ts +7 -0
  50. package/API/Types.d.ts +114 -0
  51. package/Accounts/Contact.d.ts +140 -0
  52. package/Accounts/Machine.d.ts +131 -0
  53. package/Accounts/NotificationMethod.d.ts +17 -0
  54. package/Accounts/Permissions/Authorizer.d.ts +204 -0
  55. package/Accounts/Permissions/Permission.d.ts +57 -0
  56. package/Accounts/Permissions/PermissionEscalation.d.ts +33 -0
  57. package/Accounts/Permissions/PermissionEscalationState.d.ts +17 -0
  58. package/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
  59. package/Accounts/Permissions/PermissionLevel.d.ts +17 -0
  60. package/Accounts/Permissions/PermissionMethod.d.ts +13 -0
  61. package/Accounts/Permissions/PermissionType.d.ts +280 -0
  62. package/Accounts/Session.d.ts +92 -0
  63. package/Accounts/SessionStatus.d.ts +29 -0
  64. package/Accounts/SystemsOfUnits.d.ts +13 -0
  65. package/Accounts/User.d.ts +147 -0
  66. package/Accounts/UserAdvanced.d.ts +54 -0
  67. package/Accounts/UserGeneral.d.ts +100 -0
  68. package/Accounts/UserGroup.d.ts +52 -0
  69. package/Accounts/UserNotifications.d.ts +76 -0
  70. package/Assets/Asset.d.ts +192 -0
  71. package/Assets/AssetAdvanced.d.ts +90 -0
  72. package/Assets/AssetAttribute.d.ts +71 -0
  73. package/Assets/AssetDispatch.d.ts +63 -0
  74. package/Assets/AssetGeneral.d.ts +109 -0
  75. package/Assets/AssetPlaceStatus.d.ts +31 -0
  76. package/Assets/AssetPlaceStatusType.d.ts +17 -0
  77. package/Assets/AssetType.d.ts +21 -0
  78. package/Assets/Person.d.ts +25 -0
  79. package/Assets/PersonGeneral.d.ts +35 -0
  80. package/Assets/Trailer.d.ts +42 -0
  81. package/Assets/TrailerGeneral.d.ts +47 -0
  82. package/Assets/Vehicle.d.ts +73 -0
  83. package/Assets/VehicleAdvanced.d.ts +25 -0
  84. package/Assets/VehicleGeneral.d.ts +33 -0
  85. package/Behaviours/Behaviour.d.ts +79 -0
  86. package/Behaviours/BehaviourLog.d.ts +97 -0
  87. package/Behaviours/BehaviourLogType.d.ts +21 -0
  88. package/Behaviours/BehaviourParameter.d.ts +37 -0
  89. package/Behaviours/BehaviourParameterType.d.ts +21 -0
  90. package/Behaviours/BehaviourScript.d.ts +84 -0
  91. package/Billing/BillableBase.d.ts +85 -0
  92. package/Billing/BillableSmsProfile.d.ts +26 -0
  93. package/Billing/BillingCurrency.d.ts +17 -0
  94. package/Billing/BillingCycle.d.ts +17 -0
  95. package/Billing/BillingProfile.d.ts +107 -0
  96. package/Billing/Hosting/BillableHostingBase.d.ts +41 -0
  97. package/Billing/Hosting/BillableHostingDiscount.d.ts +35 -0
  98. package/Billing/Hosting/BillableHostingLicense.d.ts +29 -0
  99. package/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
  100. package/Billing/Hosting/BillableHostingRule.d.ts +29 -0
  101. package/Billing/Hosting/BillableHostingType.d.ts +41 -0
  102. package/Billing/Report/BillingReport.d.ts +114 -0
  103. package/Billing/Report/BillingReportBreakdown.d.ts +35 -0
  104. package/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
  105. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +80 -0
  106. package/Billing/Report/BillingReportServiceBreakdown.d.ts +126 -0
  107. package/Billing/Report/BillingReportStatus.d.ts +25 -0
  108. package/Billing/Report/BillingReportSummary.d.ts +51 -0
  109. package/Companies/ColourStyle.d.ts +25 -0
  110. package/Companies/Company.d.ts +150 -0
  111. package/Companies/CompanyDirectory.d.ts +49 -0
  112. package/Companies/CompanyGeneral.d.ts +51 -0
  113. package/Companies/CompanyPolicies.d.ts +62 -0
  114. package/Companies/CompanyReseller.d.ts +163 -0
  115. package/Companies/CompanyStyles.d.ts +46 -0
  116. package/Companies/LabelStyle.d.ts +46 -0
  117. package/Companies/NotificationServerEmail.d.ts +99 -0
  118. package/Companies/NotificationServerSms.d.ts +25 -0
  119. package/Companies/PasswordExpiryMode.d.ts +17 -0
  120. package/Companies/PasswordPolicy.d.ts +51 -0
  121. package/Companies/SessionMultiUser.d.ts +17 -0
  122. package/Companies/SessionPolicy.d.ts +47 -0
  123. package/Dispatch/DispatchDirection.d.ts +53 -0
  124. package/Dispatch/DispatchJob.d.ts +109 -0
  125. package/Dispatch/DispatchJobPriority.d.ts +25 -0
  126. package/Dispatch/DispatchStep.d.ts +99 -0
  127. package/Dispatch/DispatchStepState.d.ts +27 -0
  128. package/Dispatch/DispatchStepStatus.d.ts +21 -0
  129. package/Dispatch/DispatchTask.d.ts +156 -0
  130. package/Dispatch/DispatchTaskStatus.d.ts +50 -0
  131. package/Hosting/Document.d.ts +71 -0
  132. package/Hosting/Fields/FormFieldAttachments.d.ts +38 -0
  133. package/Hosting/Fields/FormFieldBase.d.ts +71 -0
  134. package/Hosting/Fields/FormFieldBoolean.d.ts +46 -0
  135. package/Hosting/Fields/FormFieldChoice.d.ts +48 -0
  136. package/Hosting/Fields/FormFieldDate.d.ts +33 -0
  137. package/Hosting/Fields/FormFieldNumeric.d.ts +61 -0
  138. package/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
  139. package/Hosting/Fields/FormFieldSignature.d.ts +17 -0
  140. package/Hosting/Fields/FormFieldText.d.ts +39 -0
  141. package/Hosting/Fields/FormFieldTime.d.ts +34 -0
  142. package/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
  143. package/Hosting/FormFieldType.d.ts +127 -0
  144. package/Hosting/FormResult.d.ts +97 -0
  145. package/Hosting/FormTemplate.d.ts +81 -0
  146. package/Images/Dashcam.d.ts +70 -0
  147. package/Images/DashcamBase.d.ts +98 -0
  148. package/Images/DashcamLive.d.ts +43 -0
  149. package/Images/DashcamMediaType.d.ts +17 -0
  150. package/Images/Icon.d.ts +87 -0
  151. package/Images/IconGlyph.d.ts +54 -0
  152. package/Images/IconLabel.d.ts +32 -0
  153. package/Images/IconLayer.d.ts +33 -0
  154. package/Images/Picture.d.ts +73 -0
  155. package/Maintenance/MaintenanceInterval.d.ts +49 -0
  156. package/Maintenance/MaintenanceJob.d.ts +137 -0
  157. package/Maintenance/MaintenanceJobStatus.d.ts +21 -0
  158. package/Maintenance/MaintenanceSchedule.d.ts +119 -0
  159. package/Messaging/AlertPriority.d.ts +17 -0
  160. package/Messaging/AssetAlert.d.ts +28 -0
  161. package/Messaging/AssetMessage.d.ts +40 -0
  162. package/Messaging/MessageBase.d.ts +101 -0
  163. package/Messaging/MessageFolder.d.ts +13 -0
  164. package/Messaging/MessageStatus.d.ts +29 -0
  165. package/Messaging/MessageType.d.ts +33 -0
  166. package/Places/Place.d.ts +116 -0
  167. package/Places/PlaceType.d.ts +25 -0
  168. package/Providers/Config/ProviderConfig.d.ts +72 -0
  169. package/Providers/Config/ProviderRegistration.d.ts +123 -0
  170. package/Providers/Config/ProviderScript.d.ts +87 -0
  171. package/Providers/Config/ProviderScriptBlock.d.ts +40 -0
  172. package/Providers/Config/ProviderScriptParameter.d.ts +49 -0
  173. package/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
  174. package/Providers/Configuration/ProviderConfiguration.d.ts +68 -0
  175. package/Providers/Configuration/ProviderConfigurationNode.d.ts +65 -0
  176. package/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
  177. package/Providers/Configuration/ProviderGeofenceBase.d.ts +31 -0
  178. package/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
  179. package/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
  180. package/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
  181. package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
  182. package/Providers/Provider.d.ts +145 -0
  183. package/Providers/ProviderAdvanced.d.ts +51 -0
  184. package/Providers/ProviderCommand.d.ts +36 -0
  185. package/Providers/ProviderCommandStatus.d.ts +29 -0
  186. package/Providers/ProviderCommandType.d.ts +37 -0
  187. package/Providers/ProviderControl.d.ts +42 -0
  188. package/Providers/ProviderData.d.ts +30 -0
  189. package/Providers/ProviderGeneral.d.ts +117 -0
  190. package/Providers/ProviderType.d.ts +106 -0
  191. package/README.md +13 -0
  192. package/Reports/ReportBreakdown.d.ts +72 -0
  193. package/Reports/ReportBreakdownJob.d.ts +62 -0
  194. package/Reports/ReportBreakdownMessage.d.ts +65 -0
  195. package/Reports/ReportBreakdownTask.d.ts +71 -0
  196. package/Reports/ReportDataTotal.d.ts +50 -0
  197. package/Reports/ReportFilterMode.d.ts +17 -0
  198. package/Reports/ReportNotifications.d.ts +31 -0
  199. package/Reports/ReportOptions.d.ts +51 -0
  200. package/Reports/ReportParameter.d.ts +25 -0
  201. package/Reports/ReportParameterType.d.ts +59 -0
  202. package/Reports/ReportRecurrence.d.ts +54 -0
  203. package/Reports/ReportRecurrenceType.d.ts +34 -0
  204. package/Reports/ReportResult.d.ts +170 -0
  205. package/Reports/ReportResultData.d.ts +17 -0
  206. package/Reports/ReportSchedule.d.ts +112 -0
  207. package/Reports/ReportScorecard.d.ts +39 -0
  208. package/Reports/ReportScorecardParameter.d.ts +31 -0
  209. package/Reports/ReportScorecardRules.d.ts +26 -0
  210. package/Reports/ReportStatus.d.ts +29 -0
  211. package/Reports/ReportSummary.d.ts +119 -0
  212. package/Reports/ReportSummaryReason.d.ts +27 -0
  213. package/Reports/ReportTemplate.d.ts +82 -0
  214. package/Reports/ReportTotal.d.ts +48 -0
  215. package/Reports/ReportType.d.ts +42 -0
  216. package/Storage.d.ts +166 -0
  217. package/objects.d.ts +534 -0
  218. package/objects.min.js +7 -0
  219. package/package.json +22 -0
@@ -0,0 +1,192 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { BaseCompound } from "../API/BaseCompound";
3
+ import { Position } from "../API/Geography/Position";
4
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
5
+ import { IIconic } from "../API/Interfaces/IIconic";
6
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
7
+ import { ILabelled } from "../API/Interfaces/ILabelled";
8
+ import { INamed } from "../API/Interfaces/INamed";
9
+ import { IPictured } from "../API/Interfaces/IPictured";
10
+ import { ISuspendable } from "../API/Interfaces/ISuspendable";
11
+ import { codified, double, ulong } from "../API/Types";
12
+ import { Company } from "../Companies/Company";
13
+ import { Icon } from "../Images/Icon";
14
+ import { Picture } from "../Images/Picture";
15
+ import { Provider } from "../Providers/Provider";
16
+ import { AssetAdvanced } from "./AssetAdvanced";
17
+ import { AssetAttribute } from "./AssetAttribute";
18
+ import { AssetDispatch } from "./AssetDispatch";
19
+ import { AssetGeneral } from "./AssetGeneral";
20
+ import { AssetPlaceStatus } from "./AssetPlaceStatus";
21
+ import { AssetType } from "./AssetType";
22
+ import { Vehicle } from "./Vehicle";
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
+ * @param json
31
+ */
32
+ static fromJSON(json: any): Asset | Vehicle;
33
+ /**
34
+ *
35
+ */
36
+ get pieces(): BaseComponent[];
37
+ /**
38
+ * Unique identifier of this asset.
39
+ * {@link Asset.id}
40
+ */
41
+ get id(): ulong;
42
+ /**
43
+ * The company to which this asset belongs.
44
+ * {@link Company.id}
45
+ */
46
+ get companyId(): ulong;
47
+ /**
48
+ * The company to which this asset belongs.
49
+ * {@link Company.id}
50
+ */
51
+ get company(): Company;
52
+ /**
53
+ * Type of asset.
54
+ */
55
+ get kind(): AssetType;
56
+ /**
57
+ *
58
+ */
59
+ get general(): AssetGeneral;
60
+ /**
61
+ * This thing's name.
62
+ */
63
+ get name(): string;
64
+ set name(value: string);
65
+ /**
66
+ * Notes about it.
67
+ */
68
+ get notes(): string;
69
+ set notes(value: string);
70
+ /**
71
+ * The icon that represents this asset on the map and in lists.
72
+ * {@link Icon.id}
73
+ */
74
+ get iconId(): ulong;
75
+ set iconId(value: ulong);
76
+ /**
77
+ * The icon that represents this asset on the map and in lists.
78
+ * {@link Icon.id}
79
+ */
80
+ get icon(): Icon;
81
+ set icon(value: Icon);
82
+ /**
83
+ * Codified label names.
84
+ * {@link LabelStyle.code}
85
+ */
86
+ get labels(): codified[];
87
+ set labels(value: codified[]);
88
+ /**
89
+ * A list of photos of this thing.
90
+ * {@link Picture.id}
91
+ */
92
+ get pictureIds(): ulong[];
93
+ set pictureIds(value: ulong[]);
94
+ /**
95
+ * A list of photos of this thing.
96
+ * {@link Picture.id}
97
+ */
98
+ get pictures(): Picture[];
99
+ set pictures(value: Picture[]);
100
+ /**
101
+ * The fall-back address which is used to send Messages if the asset is a Person and has no Contact phone or email.
102
+ */
103
+ get messagingAddress(): string;
104
+ set messagingAddress(value: string);
105
+ /**
106
+ * Name/value collections of custom fields used to refer to external systems.
107
+ */
108
+ get references(): Map<string, string>;
109
+ set references(value: Map<string, string>);
110
+ /**
111
+ *
112
+ */
113
+ get advanced(): AssetAdvanced;
114
+ /**
115
+ * The things GPS coordinates including speed, bearing, and street information.
116
+ */
117
+ get position(): Position | null;
118
+ set position(value: Position | null);
119
+ /**
120
+ * The cumulative distance travelled in kilometres.
121
+ */
122
+ get odometer(): double;
123
+ set odometer(value: double);
124
+ /**
125
+ * The codified status tag names.
126
+ */
127
+ get tags(): codified[];
128
+ set tags(value: codified[]);
129
+ /**
130
+ * A list of attributes given to this asset by the connection device such as wiring state, VBus, etc.
131
+ */
132
+ get attributes(): Map<codified, AssetAttribute>;
133
+ set attributes(value: Map<codified, AssetAttribute>);
134
+ /**
135
+ * The list of devices providing events for this asset.
136
+ */
137
+ get providerIds(): string[];
138
+ /**
139
+ * The list of devices providing events for this asset.
140
+ */
141
+ get providers(): Provider[];
142
+ /**
143
+ * A list of assets related to this one; like a Person for a Vehicle (driver).
144
+ * {@link Asset.id}
145
+ */
146
+ get relationshipIds(): ulong[];
147
+ set relationshipIds(value: ulong[]);
148
+ /**
149
+ * A list of assets related to this one; like a Person for a Vehicle (driver).
150
+ * {@link Asset.id}
151
+ */
152
+ get relationships(): Asset[];
153
+ set relationships(value: Asset[]);
154
+ /**
155
+ * The current state of this asset's interaction with known Places.
156
+ * {@link Place.id}
157
+ */
158
+ get places(): Map<ulong, AssetPlaceStatus>;
159
+ set places(value: Map<ulong, AssetPlaceStatus>);
160
+ /**
161
+ *
162
+ */
163
+ get dispatch(): AssetDispatch;
164
+ toJSON(): {
165
+ pictures?: number[] | undefined;
166
+ messagingAddress?: string | undefined;
167
+ references?: object | undefined;
168
+ suspended?: boolean | undefined;
169
+ since?: string | null | undefined;
170
+ id: number | null;
171
+ company: number;
172
+ kind: AssetType;
173
+ name: string;
174
+ notes: string;
175
+ icon: number;
176
+ labels: string[];
177
+ v: number[];
178
+ };
179
+ fromJSON(json: any, force?: boolean): boolean;
180
+ /**
181
+ * The {@link id} is the key.
182
+ */
183
+ getKey(): string;
184
+ /**
185
+ * Indicates whether this object is suspended from event processing.
186
+ */
187
+ get suspended(): boolean;
188
+ /**
189
+ * Timestamp from the action that deleted or suspended this object.
190
+ */
191
+ get since(): Date;
192
+ }
@@ -0,0 +1,90 @@
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 { 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
+ *
17
+ * @param json
18
+ */
19
+ static fromJSON(json: any): AssetAdvanced;
20
+ /**
21
+ * Unique identifier of this asset.
22
+ * {@link Asset.id}
23
+ */
24
+ id: ulong;
25
+ /**
26
+ * The company to which this asset belongs.
27
+ * {@link Company.id}
28
+ */
29
+ companyId: ulong;
30
+ /**
31
+ * The company to which this asset belongs.
32
+ * {@link Company.id}
33
+ */
34
+ get company(): Company;
35
+ /**
36
+ * The things GPS coordinates including speed, bearing, and street information.
37
+ */
38
+ position: Position | null;
39
+ /**
40
+ * The cumulative distance travelled in kilometres.
41
+ */
42
+ odometer: double;
43
+ /**
44
+ * The codified status tag names.
45
+ */
46
+ tags: codified[];
47
+ /**
48
+ * A list of attributes given to this asset by the connection device such as wiring state, VBus, etc.
49
+ */
50
+ attributes: Map<codified, AssetAttribute>;
51
+ /**
52
+ * The list of {@link Provider.id|device identifiers} providing events for this asset.
53
+ */
54
+ providerIds: string[];
55
+ /**
56
+ * The list of {@link Provider|devices} providing events for this asset.
57
+ */
58
+ get providers(): Provider[];
59
+ set providers(value: Provider[]);
60
+ /**
61
+ * A list of {@link Asset.id}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
62
+ */
63
+ relationshipIds: ulong[];
64
+ /**
65
+ * A list of {@link Asset}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
66
+ */
67
+ get relationships(): Asset[];
68
+ set relationships(value: Asset[]);
69
+ /**
70
+ * The current state of this asset's interaction with known {@link Place}s.
71
+ */
72
+ places: Map<ulong, AssetPlaceStatus>;
73
+ toJSON(): {
74
+ id: number | null;
75
+ v: number[];
76
+ company: number;
77
+ position: import("../API/Geography/Interfaces").IPosition | null;
78
+ odometer: number;
79
+ tags: string[];
80
+ attributes: object;
81
+ providers: string[];
82
+ relationships: number[];
83
+ places: object;
84
+ };
85
+ fromJSON(json: any, force?: boolean): boolean;
86
+ /**
87
+ * The {@link id} is the key.
88
+ */
89
+ getKey(): string;
90
+ }
@@ -0,0 +1,71 @@
1
+ import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
2
+ import { ISerializable } from "../API/Interfaces/ISerializable";
3
+ import { datetime, ulong } 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: any): 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,63 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
+ import { 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: any): 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 company to which this asset belongs.
29
+ * {@link Company.id}
30
+ */
31
+ get company(): Company;
32
+ /**
33
+ * The current list of {@link DispatchJob}s assigned to the asset.
34
+ * {@link DispatchJob}
35
+ */
36
+ jobIds: ulong[];
37
+ /**
38
+ * A list of {@link Asset}s related to this one; like a {@link Person} for a {@link Vehicle} (driver).
39
+ */
40
+ get jobs(): DispatchJob[];
41
+ set jobs(value: DispatchJob[]);
42
+ /**
43
+ * Driving directions and route path details.
44
+ */
45
+ directions: DispatchDirection[];
46
+ /**
47
+ * Timestamp from the last update to this {@link AssetDispatch} by a {@link User}, {@link Machine}, {@link Asset}, or an assigned {@link DispatchJob}.
48
+ */
49
+ lastDispatched: Date;
50
+ toJSON(): {
51
+ id: number | null;
52
+ v: number[];
53
+ companyId: number | null;
54
+ jobs: number[];
55
+ directions: DispatchDirection[];
56
+ lastDispatched: string;
57
+ };
58
+ fromJSON(json: any, force?: boolean): boolean;
59
+ /**
60
+ * The {@link id} is the key.
61
+ */
62
+ getKey(): string;
63
+ }
@@ -0,0 +1,109 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { IIconic } from "../API/Interfaces/IIconic";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { ILabelled } from "../API/Interfaces/ILabelled";
6
+ import { INamed } from "../API/Interfaces/INamed";
7
+ import { IPictured } from "../API/Interfaces/IPictured";
8
+ import { ISuspendable } from "../API/Interfaces/ISuspendable";
9
+ import { codified, ulong } from "../API/Types";
10
+ import { Company } from "../Companies/Company";
11
+ import { Icon } from "../Images/Icon";
12
+ import { Picture } from "../Images/Picture";
13
+ import { AssetType } from "./AssetType";
14
+ import { VehicleGeneral } from "./VehicleGeneral";
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
+ *
21
+ * @param json
22
+ */
23
+ static fromJSON(json: any): AssetGeneral | VehicleGeneral;
24
+ /**
25
+ * Unique identifier of this asset.
26
+ * {@link Asset.id}
27
+ */
28
+ id: ulong;
29
+ /**
30
+ * The company to which this asset belongs.
31
+ * {@link Company.id}
32
+ */
33
+ companyId: ulong;
34
+ /**
35
+ * The company to which this asset belongs.
36
+ * {@link Company.id}
37
+ */
38
+ get company(): Company;
39
+ /**
40
+ * Type of asset.
41
+ */
42
+ kind: AssetType;
43
+ /**
44
+ * This thing's name.
45
+ */
46
+ name: string;
47
+ /**
48
+ * The {@link Icon.id} that represents this asset on the map and in lists.
49
+ */
50
+ iconId: ulong;
51
+ /**
52
+ * The {@link Icon} that represents this asset on the map and in lists.
53
+ */
54
+ get icon(): Icon;
55
+ set icon(value: Icon);
56
+ /**
57
+ * Notes about it.
58
+ */
59
+ notes: string;
60
+ /**
61
+ * Codified label names.
62
+ */
63
+ labels: codified[];
64
+ /**
65
+ * {@link Picture.id}s of this asset.
66
+ */
67
+ pictureIds: ulong[];
68
+ /**
69
+ * {@link Picture}s of this asset.
70
+ */
71
+ get pictures(): Picture[];
72
+ set pictures(values: Picture[]);
73
+ /**
74
+ * The fall-back address which is used to send Messages if the asset is a Person and has no Contact phone or email.
75
+ */
76
+ messagingAddress: string;
77
+ /**
78
+ * Name/value collections of custom fields used to refer to external systems.
79
+ */
80
+ references: Map<string, string>;
81
+ toJSON(): {
82
+ pictures?: number[] | undefined;
83
+ messagingAddress?: string | undefined;
84
+ references?: object | undefined;
85
+ suspended?: boolean | undefined;
86
+ since?: string | null | undefined;
87
+ id: number | null;
88
+ company: number;
89
+ kind: AssetType;
90
+ name: string;
91
+ icon: number;
92
+ notes: string;
93
+ labels: string[];
94
+ v: number[];
95
+ };
96
+ fromJSON(json: any, force?: boolean): boolean;
97
+ /**
98
+ * The {@link id} is the key.
99
+ */
100
+ getKey(): string;
101
+ /**
102
+ * Indicates whether this object is suspended from event processing.
103
+ */
104
+ suspended: boolean;
105
+ /**
106
+ * Timestamp from the action that deleted or suspended this object.
107
+ */
108
+ since: Date;
109
+ }
@@ -0,0 +1,31 @@
1
+ import { ISerializable } from "../API/Interfaces/ISerializable";
2
+ import { datetime } 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: any): 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,25 @@
1
+ import { Contact } from '../Accounts/Contact';
2
+ import { ulong } from '../API/Types';
3
+ import { Asset } from './Asset';
4
+ import { PersonGeneral } from './PersonGeneral';
5
+ /**
6
+ * The full details of a Person, containing all the properties from the {@link PersonGeneral} and {@link AssetAdvanced} objects.
7
+ */
8
+ export declare class Person extends Asset {
9
+ /**
10
+ * General details about this person.
11
+ */
12
+ get general(): PersonGeneral;
13
+ /**
14
+ * Contact information for this user.
15
+ * {@link Contact.id}
16
+ */
17
+ get contactId(): ulong;
18
+ set contactId(value: ulong);
19
+ /**
20
+ * Contact information for this user.
21
+ * {@link Contact.id}
22
+ */
23
+ get contact(): Contact;
24
+ set contact(value: Contact);
25
+ }
@@ -0,0 +1,35 @@
1
+ import { Contact } from "../Accounts/Contact";
2
+ import { ulong } from "../API/Types";
3
+ import { AssetGeneral } from "./AssetGeneral";
4
+ /**
5
+ * Seldom changing details about a person.
6
+ */
7
+ export declare class PersonGeneral extends AssetGeneral {
8
+ /**
9
+ * A reference to their Company's Contact information.
10
+ * {@link Contact.id}
11
+ */
12
+ contactId: ulong;
13
+ /**
14
+ * Contact information for this person.
15
+ * {@link Contact.id}
16
+ */
17
+ get contact(): Contact;
18
+ set contact(value: Contact);
19
+ toJSON(): {
20
+ suspended?: boolean | undefined;
21
+ since?: string | null | undefined;
22
+ references?: object | undefined;
23
+ messagingAddress?: string | undefined;
24
+ pictures?: number[] | undefined;
25
+ id: number | null;
26
+ v: number[];
27
+ company: number;
28
+ kind: import("./AssetType").AssetType;
29
+ name: string;
30
+ notes: string;
31
+ icon: number;
32
+ labels: string[];
33
+ };
34
+ fromJSON(json: any, force?: boolean): boolean;
35
+ }