@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,28 @@
1
+ import { AlertPriority } from './AlertPriority';
2
+ import { MessageBase } from './MessageBase';
3
+ /**
4
+ * An automatically generated notification sent to a user by the system.
5
+ */
6
+ export declare class AssetAlert extends MessageBase {
7
+ /**
8
+ * The priority for which this message must send.
9
+ */
10
+ priority: AlertPriority;
11
+ toJSON(): {
12
+ priority: AlertPriority;
13
+ id: number | null;
14
+ v: number[];
15
+ company: number;
16
+ status: import("./MessageStatus").MessageStatus;
17
+ kind: import("./MessageType").MessageType;
18
+ to: string;
19
+ from: string;
20
+ body: string;
21
+ processed: string | null;
22
+ delivered: string | null;
23
+ subject: string;
24
+ asset: number;
25
+ user: string;
26
+ };
27
+ fromJSON(json: any, force?: boolean): boolean;
28
+ }
@@ -0,0 +1,40 @@
1
+ import { email } from '../API/Types';
2
+ import { MessageBase } from './MessageBase';
3
+ import { MessageFolder } from './MessageFolder';
4
+ /**
5
+ * A conversational message between users and assets.
6
+ */
7
+ export declare class AssetMessage extends MessageBase {
8
+ /**
9
+ * The folder under which this message is stored.
10
+ */
11
+ folder: MessageFolder;
12
+ /**
13
+ * Indicates that this is a received message instead of a sent message.
14
+ */
15
+ incoming: boolean;
16
+ /**
17
+ * The user that read this message. This field is blank/null when unread.
18
+ * {@link User.login}
19
+ */
20
+ readBy: email;
21
+ toJSON(): {
22
+ folder: MessageFolder;
23
+ incoming: boolean;
24
+ readBy: string;
25
+ id: number | null;
26
+ v: number[];
27
+ company: number;
28
+ status: import("./MessageStatus").MessageStatus;
29
+ kind: import("./MessageType").MessageType;
30
+ to: string;
31
+ from: string;
32
+ body: string;
33
+ processed: string | null;
34
+ delivered: string | null;
35
+ subject: string;
36
+ asset: number;
37
+ user: string;
38
+ };
39
+ fromJSON(json: any, force?: boolean): boolean;
40
+ }
@@ -0,0 +1,101 @@
1
+ import { User } from "../Accounts/User";
2
+ import { BaseComponent } from "../API/BaseComponent";
3
+ import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
4
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
5
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
6
+ import { email, ulong } from "../API/Types";
7
+ import { Asset } from "../Assets/Asset";
8
+ import { Company } from "../Companies/Company";
9
+ import { MessageStatus } from './MessageStatus';
10
+ import { MessageType } from './MessageType';
11
+ /**
12
+ * A base class for Alerts and Messages.
13
+ */
14
+ export declare abstract class MessageBase extends BaseComponent implements IIdUlong, IBelongCompany, IBelongAsset {
15
+ /**
16
+ * Unique identifier of this memo.
17
+ */
18
+ id: ulong;
19
+ /**
20
+ * The company to which this memo belongs.
21
+ * {@link Company.id}
22
+ */
23
+ companyId: ulong;
24
+ /**
25
+ * The company to which this memo belongs.
26
+ * {@link Company.id}
27
+ */
28
+ get company(): Company;
29
+ /**
30
+ * Lifetime status
31
+ */
32
+ status: MessageStatus;
33
+ /**
34
+ * Protocol type
35
+ */
36
+ kind: MessageType;
37
+ /**
38
+ * Recipient address.
39
+ */
40
+ to: email;
41
+ /**
42
+ * Sender address.
43
+ */
44
+ from: email;
45
+ /**
46
+ * The main contents of the memo.
47
+ */
48
+ body: string;
49
+ /**
50
+ * Date/time stamp of when the memo was processed.
51
+ */
52
+ processed: Date;
53
+ /**
54
+ * Date/time stamp of when the memo was delivered (or sent if delivery information unavailable).
55
+ */
56
+ delivered: Date;
57
+ /**
58
+ * The subject of this message.
59
+ */
60
+ subject: string;
61
+ /**
62
+ * The asset to which this message relates.
63
+ * {@link Asset.id}
64
+ */
65
+ assetId: ulong;
66
+ /**
67
+ * The asset to which this message relates.
68
+ * {@link Asset.id}
69
+ */
70
+ get asset(): Asset;
71
+ /**
72
+ * The user who sent/received this message.
73
+ * {@link User.login}
74
+ */
75
+ userLogin: email;
76
+ /**
77
+ * The user who sent/received this message.
78
+ * {@link User.login}
79
+ */
80
+ get user(): User;
81
+ toJSON(): {
82
+ id: number | null;
83
+ v: number[];
84
+ company: number;
85
+ status: MessageStatus;
86
+ kind: MessageType;
87
+ to: string;
88
+ from: string;
89
+ body: string;
90
+ processed: string | null;
91
+ delivered: string | null;
92
+ subject: string;
93
+ asset: number;
94
+ user: string;
95
+ };
96
+ fromJSON(json: any, force?: boolean): boolean;
97
+ /**
98
+ * The {@link id} is the key.
99
+ */
100
+ getKey(): string;
101
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The name of folder where the message is stored.
3
+ */
4
+ export declare enum MessageFolder {
5
+ /**
6
+ * The inbox is loaded quickly from memory, but messages regularly move to the archive.
7
+ */
8
+ inbox = "inbox",
9
+ /**
10
+ * The archive contains all previous messages, but must be queried from disk for retrieval.
11
+ */
12
+ archive = "archive"
13
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Memos have a lifetime and each status represents a memos's progress through it's life.
3
+ */
4
+ export declare enum MessageStatus {
5
+ /**
6
+ * Waiting to be sent.
7
+ */
8
+ created = "created",
9
+ /**
10
+ * Sent or received.
11
+ */
12
+ processed = "processed",
13
+ /**
14
+ * Failed to send.
15
+ */
16
+ failed = "failed",
17
+ /**
18
+ * Failed to send because too many memos were sent.
19
+ */
20
+ throttled = "throttled",
21
+ /**
22
+ * Memo sent, but returned with error from receiving server.
23
+ */
24
+ bounceback = "bounceback",
25
+ /**
26
+ * Memo has been responded to or acknowledged by the recipient.
27
+ */
28
+ acknowledged = "acknowledged"
29
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The kind of protocol used for this memo.
3
+ */
4
+ export declare enum MessageType {
5
+ /**
6
+ * If the type of memo has not yet been determined, or there was an error determining its type.
7
+ */
8
+ unknown = "unknown",
9
+ /**
10
+ * Short Message Service (text message)
11
+ */
12
+ sms = "sms",
13
+ /**
14
+ * Email
15
+ */
16
+ email = "email",
17
+ /**
18
+ * Garmin/Magellan/etc (Personal Navigation Device)
19
+ */
20
+ pnd = "pnd",
21
+ /**
22
+ * Google Cloud Message
23
+ */
24
+ gcm = "gcm",
25
+ /**
26
+ * Apple Push Notification Service
27
+ */
28
+ apn = "apn",
29
+ /**
30
+ * WebSocket alert message
31
+ */
32
+ socket = "socket"
33
+ }
@@ -0,0 +1,116 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { LatLng } from "../API/Geography/LatLng";
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 { codified, colour, double, ulong } from "../API/Types";
10
+ import { Company } from "../Companies/Company";
11
+ import { Icon } from "../Images/Icon";
12
+ import { Picture } from "../Images/Picture";
13
+ import { PlaceType } from "./PlaceType";
14
+ /**
15
+ * A POI (point-of-interest) saved to the system to help determine an asset's real-world position.
16
+ */
17
+ export declare class Place extends BaseComponent implements IIdUlong, INamed, IIconic, IBelongCompany, ILabelled, IPictured {
18
+ /**
19
+ * Unique identifier of this POI.
20
+ */
21
+ id: ulong;
22
+ /**
23
+ * The company to which this POI belongs.
24
+ * {@link Company.id}
25
+ */
26
+ companyId: ulong;
27
+ /**
28
+ * The company to which this POI belongs.
29
+ * {@link Company.id}
30
+ */
31
+ get company(): Company;
32
+ /**
33
+ * The kind of geography represented by this POI.
34
+ */
35
+ kind: PlaceType;
36
+ /**
37
+ * POI's common name instead of street address.
38
+ */
39
+ name: string;
40
+ /**
41
+ * Full street address including province/state, country, and postal/zip code.
42
+ */
43
+ address: string;
44
+ /**
45
+ * The icon used to display this POI in lists and on the map.
46
+ * {@link Icon.id}
47
+ */
48
+ iconId: ulong;
49
+ /**
50
+ * The icon used to display this POI in lists and on the map.
51
+ * {@link Icon.id}
52
+ */
53
+ get icon(): Icon;
54
+ set icon(value: Icon);
55
+ /**
56
+ * Notes!
57
+ */
58
+ notes: string;
59
+ /**
60
+ * The codified names of labels
61
+ */
62
+ labels: codified[];
63
+ /**
64
+ * The fill colour given to this place for easy visual identification on the map (given in 24bit hex; #RRGGBB)
65
+ */
66
+ colour: colour;
67
+ /**
68
+ * {@link Picture.id}s of this POI.
69
+ */
70
+ pictureIds: ulong[];
71
+ /**
72
+ * {@link Picture}s of this POI.
73
+ */
74
+ get pictures(): Picture[];
75
+ set pictures(values: Picture[]);
76
+ /**
77
+ * A custom field used to refer to an external system.
78
+ */
79
+ reference: string;
80
+ /**
81
+ * A central point of the shape.
82
+ * This is the exact centre of a {@link PlaceType.radial} and {@link PlaceType.point} shaped places, and the location of the pin on the map for all types.
83
+ * When routing, {@link PlaceType.polygon} and {@link PlaceType.rectangle} shapes use the anchor as the location within the place for deliveries.
84
+ */
85
+ anchor: LatLng | null;
86
+ /**
87
+ * This member is only present for {@link PlaceType.radial} shapes, and is the radius in meters from the centre anchor.
88
+ */
89
+ radius: double;
90
+ /**
91
+ * A list of points forming a non-self-intersecting polygon.
92
+ */
93
+ points: LatLng[] | null;
94
+ toJSON(): {
95
+ id: number | null;
96
+ v: number[];
97
+ company: number;
98
+ icon: number;
99
+ name: string;
100
+ notes: string;
101
+ address: string;
102
+ kind: PlaceType;
103
+ labels: string[];
104
+ colour: string;
105
+ pictures: number[];
106
+ reference: string;
107
+ anchor: import("../API/Geography/Interfaces").ILatLng | null;
108
+ radius: number | null;
109
+ shape: any[] | null;
110
+ };
111
+ fromJSON(json: any, force?: boolean): boolean;
112
+ /**
113
+ * The {@link id} is the key.
114
+ */
115
+ getKey(): string;
116
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The types of geography the system supports
3
+ */
4
+ export declare enum PlaceType {
5
+ /**
6
+ * A lat/long coordinate pair.
7
+ * Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} or {@link Vorgon.PlaceGeneral.shape} keys.
8
+ */
9
+ point = "point",
10
+ /**
11
+ * Defined as a radius around a lat/long pair used to create a circular boundary.
12
+ * Places of this type do not contain the {@link Vorgon.PlaceGeneral.shape} key.
13
+ */
14
+ radial = "radial",
15
+ /**
16
+ * The {@link Vorgon.PlaceGeneral.shape} is an array of lat/long coordinates used to create a boundary.
17
+ * Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} key.
18
+ */
19
+ polygon = "polygon",
20
+ /**
21
+ * The {@link Vorgon.PlaceGeneral.shape} is an array of two lat/long coordinates defined as north-east and south-west corners.
22
+ * Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} key.
23
+ */
24
+ rectangle = "rectangle"
25
+ }
@@ -0,0 +1,72 @@
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 { ulong } from "../../API/Types";
7
+ import { Company } from "../../Companies/Company";
8
+ import { ProviderScript } from "./ProviderScript";
9
+ /**
10
+ * The configured script loaded onto the provider over-the-air to control it's reporting schedule and behaviour.
11
+ */
12
+ export declare class ProviderConfig extends BaseComponent implements IIdUlong, INamed, IBelongCompany {
13
+ /**
14
+ * Unique identifier of this configuration.
15
+ */
16
+ id: ulong;
17
+ /**
18
+ * The company to which this configuration belongs.
19
+ * {@link Company.id}
20
+ */
21
+ companyId: ulong;
22
+ /**
23
+ * The company to which this configuration belongs.
24
+ * {@link Company.id}
25
+ */
26
+ get company(): Company;
27
+ /**
28
+ * The script which this configuration implements.
29
+ * {@link ProviderScript.id}
30
+ */
31
+ scriptId: ulong;
32
+ /**
33
+ * The script which this configuration implements.
34
+ * {@link ProviderScript.id}
35
+ */
36
+ get script(): ProviderScript;
37
+ set script(value: ProviderScript);
38
+ /**
39
+ * The nickname given to this configuration
40
+ */
41
+ name: string;
42
+ /**
43
+ * Simple details about how the providers are expected to behave.
44
+ */
45
+ notes: string;
46
+ /**
47
+ * The list of defined variable name/value pairs that the script requires.
48
+ */
49
+ parameters: Map<string, string>;
50
+ /**
51
+ * A search pattern used to filter which Places' geometry are used as geofences.
52
+ * Use null to disable.
53
+ * Use "*" to match all the Places the Provider's Asset can match.
54
+ * Or use "#123456" or "label:term" like other Place search patterns.
55
+ */
56
+ geofences: SearchPattern[] | null;
57
+ toJSON(): {
58
+ id: number | null;
59
+ v: number[];
60
+ company: number | null;
61
+ script: number | null;
62
+ name: string;
63
+ notes: string;
64
+ parameters: object;
65
+ geofences: string | null;
66
+ };
67
+ fromJSON(json: any, force?: boolean): boolean;
68
+ /**
69
+ * The {@link id} is the key.
70
+ */
71
+ getKey(): string;
72
+ }
@@ -0,0 +1,123 @@
1
+ import { Base } from "../../API/Base";
2
+ import { IBelongAsset } from "../../API/Interfaces/IBelongAsset";
3
+ import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
4
+ import { INamed } from "../../API/Interfaces/INamed";
5
+ import { IRequestable } from "../../API/Interfaces/IRequestable";
6
+ import { ISerializable } from "../../API/Interfaces/ISerializable";
7
+ import { email, phone, ulong } from "../../API/Types";
8
+ import { User } from "../../Accounts/User";
9
+ import { Asset } from "../../Assets/Asset";
10
+ import { Company } from "../../Companies/Company";
11
+ import { ProviderConfiguration } from "../Configuration/ProviderConfiguration";
12
+ import { ProviderType } from "../ProviderType";
13
+ import { ProviderConfig } from "./ProviderConfig";
14
+ /**
15
+ * The temporary reference to a device whose ownership is pending.
16
+ */
17
+ export declare class ProviderRegistration extends Base implements IRequestable, INamed, IBelongCompany, IBelongAsset, ISerializable {
18
+ /**
19
+ * A unique six digit code.
20
+ */
21
+ code: string;
22
+ /**
23
+ * The company to which the device will belong.
24
+ * {@link Company.id}
25
+ */
26
+ companyId: ulong;
27
+ /**
28
+ * The company to which the device will belong.
29
+ * {@link Company.id}
30
+ */
31
+ get company(): Company;
32
+ /**
33
+ * A nickname given to the device once it has been provisioned.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Notes!
38
+ */
39
+ notes: string;
40
+ /**
41
+ * The password programmed on the device used to ensure the system is the only client authorized to make changes.
42
+ */
43
+ password: string;
44
+ /**
45
+ * The unique identifier the user who generated this registration.
46
+ * {@link User.login}
47
+ */
48
+ userLogin: email;
49
+ /**
50
+ * The unique identifier the user who generated this registration.
51
+ * {@link User.login}
52
+ */
53
+ get user(): User;
54
+ /**
55
+ * The predefined configuration this device will use.
56
+ * {@link ProviderConfig.id}
57
+ * {@link ProviderConfiguration.id}
58
+ */
59
+ configId: ulong;
60
+ /**
61
+ * The predefined configuration this device will use.
62
+ * {@link ProviderConfig.id}
63
+ * {@link ProviderConfiguration.id}
64
+ */
65
+ get config(): ProviderConfig | ProviderConfiguration;
66
+ /**
67
+ * The kind of protocol this device supports.
68
+ */
69
+ kind: ProviderType;
70
+ /**
71
+ * Date/time stamp of when this registration began.
72
+ */
73
+ since: Date;
74
+ /**
75
+ * Date/time stamp of when this registration ended successfully.
76
+ */
77
+ completed: Date;
78
+ /**
79
+ * The expiry date for this registration.
80
+ */
81
+ expires: Date;
82
+ /**
83
+ * The unique identifier of the device that completed this registration.
84
+ * {@link Provider.id}
85
+ */
86
+ identifier: string;
87
+ /**
88
+ * The Asset for which this device will provide data.
89
+ * {@link Asset.id}
90
+ */
91
+ assetId: ulong;
92
+ /**
93
+ * The Asset for which this device will provide data.
94
+ * {@link Asset.id}
95
+ */
96
+ get asset(): Asset;
97
+ /**
98
+ * The phone number of the device being provisioned.
99
+ * This is set by the user for long-term registrations, or by the client during serial port setup.
100
+ */
101
+ phoneNumber: phone;
102
+ toJSON(): {
103
+ code: string | null;
104
+ company: number | null;
105
+ name: string;
106
+ notes: string;
107
+ password: string;
108
+ user: string;
109
+ config: number | null;
110
+ kind: ProviderType;
111
+ since: string | null;
112
+ completed: string | null;
113
+ expires: string | null;
114
+ identifier: string;
115
+ asset: number | null;
116
+ phoneNumber: number | null;
117
+ };
118
+ fromJSON(json: any, force?: boolean): boolean;
119
+ /**
120
+ * The {@link code} is the key.
121
+ */
122
+ getKey(): string;
123
+ }
@@ -0,0 +1,87 @@
1
+ import { BaseComponent } from "../../API/BaseComponent";
2
+ import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
3
+ import { IGlobal } from "../../API/Interfaces/IGlobal";
4
+ import { IIdUlong } from "../../API/Interfaces/IIdUlong";
5
+ import { INamed } from "../../API/Interfaces/INamed";
6
+ import { IVisual } from "../../API/Interfaces/IVisual";
7
+ import { codified, colour, ulong } from "../../API/Types";
8
+ import { Company } from "../../Companies/Company";
9
+ import { ProviderType } from "../ProviderType";
10
+ import { ProviderScriptBlock } from "./ProviderScriptBlock";
11
+ import { ProviderScriptParameter } from "./ProviderScriptParameter";
12
+ /**
13
+ * This class describes a type of logic applied to a provider.
14
+ * A script will generate a file which is loaded onto a provider in the field.
15
+ */
16
+ export declare class ProviderScript extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IGlobal, IVisual {
17
+ /**
18
+ * Unique identifier of this configuration.
19
+ */
20
+ id: ulong;
21
+ /**
22
+ * The company to which this configuration belongs.
23
+ * {@link Company.id}
24
+ */
25
+ companyId: ulong;
26
+ /**
27
+ * The company to which this configuration belongs.
28
+ * {@link Company.id}
29
+ */
30
+ get company(): Company;
31
+ /**
32
+ * The nickname given to this configuration
33
+ */
34
+ name: string;
35
+ /**
36
+ * Simple details about how the providers are expected to behave.
37
+ */
38
+ notes: string;
39
+ /**
40
+ * The fill/background colour of the icon.
41
+ */
42
+ fill: colour;
43
+ /**
44
+ * Outline and graphic colour.
45
+ */
46
+ stroke: colour;
47
+ /**
48
+ * The name of the symbol for this script.
49
+ */
50
+ graphic: codified;
51
+ /**
52
+ * Indicates whether this script is available to child companies.
53
+ */
54
+ global: boolean;
55
+ /**
56
+ * The type of provider for which this script can be used.
57
+ * Limiting to a specific model from a manufacturer is accomplished through the block conditions.
58
+ */
59
+ kind: ProviderType;
60
+ /**
61
+ * Blocks of file data which are (optionally) included in the script data file.
62
+ */
63
+ blocks: ProviderScriptBlock[];
64
+ /**
65
+ * Parameter definitions for this script, including type-hints and default values.
66
+ */
67
+ parameters: Map<string, ProviderScriptParameter>;
68
+ toJSON(): {
69
+ id: number | null;
70
+ v: number[];
71
+ company: number;
72
+ name: string;
73
+ notes: string;
74
+ fill: string;
75
+ stroke: string;
76
+ graphic: string;
77
+ global: boolean;
78
+ kind: ProviderType;
79
+ blocks: any[];
80
+ parameters: object;
81
+ };
82
+ fromJSON(json: any, force?: boolean): boolean;
83
+ /**
84
+ * The {@link id} is the key.
85
+ */
86
+ getKey(): string;
87
+ }