@trakit/objects 0.0.5 → 0.0.7

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 (221) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +24 -0
  3. package/{API → _publish/API}/Arrays.d.ts +1 -0
  4. package/{API → _publish/API}/Base.d.ts +1 -0
  5. package/{API → _publish/API}/BaseComponent.d.ts +1 -0
  6. package/{API → _publish/API}/BaseCompound.d.ts +1 -0
  7. package/{API → _publish/API}/Codifier.d.ts +1 -0
  8. package/{API → _publish/API}/Constants.d.ts +1 -0
  9. package/{API → _publish/API}/Conversion.d.ts +3 -2
  10. package/{API → _publish/API}/Encoding.d.ts +1 -0
  11. package/{API → _publish/API}/Files.d.ts +1 -0
  12. package/{API → _publish/API}/Functions.d.ts +1 -0
  13. package/{API → _publish/API}/Guid.d.ts +1 -0
  14. package/{API → _publish/API}/Maps.d.ts +1 -0
  15. package/{API → _publish/API}/Objects.d.ts +1 -0
  16. package/{API → _publish/API}/SearchPattern.d.ts +1 -0
  17. package/{API → _publish/API}/TimeSpan.d.ts +1 -0
  18. package/{API → _publish/API}/Timezone.d.ts +1 -0
  19. package/{API → _publish/API}/Timezones.d.ts +1 -0
  20. package/{API → _publish/API}/Types.d.ts +24 -23
  21. package/{Accounts → _publish/Accounts}/Contact.d.ts +4 -4
  22. package/{Accounts → _publish/Accounts}/Machine.d.ts +1 -0
  23. package/_publish/Accounts/MultiFactorType.d.ts +18 -0
  24. package/{Accounts → _publish/Accounts}/NotificationMethod.d.ts +1 -0
  25. package/_publish/Accounts/SSOIdentityProvider.d.ts +26 -0
  26. package/{Accounts → _publish/Accounts}/Session.d.ts +12 -14
  27. package/{Accounts → _publish/Accounts}/SessionStatus.d.ts +1 -0
  28. package/{Accounts → _publish/Accounts}/SystemsOfUnits.d.ts +1 -0
  29. package/{Accounts → _publish/Accounts}/User.d.ts +34 -13
  30. package/{Accounts → _publish/Accounts}/UserAdvanced.d.ts +2 -2
  31. package/_publish/Accounts/UserAuthentication.d.ts +56 -0
  32. package/{Accounts → _publish/Accounts}/UserGeneral.d.ts +3 -4
  33. package/{Accounts → _publish/Accounts}/UserGroup.d.ts +2 -2
  34. package/_publish/Accounts/UserMFA.d.ts +48 -0
  35. package/{Accounts → _publish/Accounts}/UserNotifications.d.ts +1 -0
  36. package/_publish/Accounts/UserSSO.d.ts +38 -0
  37. package/{Assets → _publish/Assets}/Asset.d.ts +6 -11
  38. package/{Assets → _publish/Assets}/AssetAdvanced.d.ts +2 -2
  39. package/{Assets → _publish/Assets}/AssetAttribute.d.ts +1 -0
  40. package/{Assets → _publish/Assets}/AssetDispatch.d.ts +2 -2
  41. package/{Assets → _publish/Assets}/AssetGeneral.d.ts +3 -4
  42. package/{Assets → _publish/Assets}/AssetPlaceStatus.d.ts +1 -0
  43. package/{Assets → _publish/Assets}/AssetPlaceStatusType.d.ts +1 -0
  44. package/{Assets → _publish/Assets}/AssetType.d.ts +1 -0
  45. package/{Behaviours → _publish/Behaviours}/Behaviour.d.ts +2 -2
  46. package/{Behaviours → _publish/Behaviours}/BehaviourLog.d.ts +3 -4
  47. package/{Behaviours → _publish/Behaviours}/BehaviourLogType.d.ts +1 -0
  48. package/{Behaviours → _publish/Behaviours}/BehaviourParameter.d.ts +1 -0
  49. package/{Behaviours → _publish/Behaviours}/BehaviourParameterType.d.ts +1 -0
  50. package/{Behaviours → _publish/Behaviours}/BehaviourScript.d.ts +2 -2
  51. package/{Billing → _publish/Billing}/BillableBase.d.ts +3 -4
  52. package/{Billing → _publish/Billing}/BillableSmsProfile.d.ts +1 -0
  53. package/{Billing → _publish/Billing}/BillingCurrency.d.ts +1 -0
  54. package/{Billing → _publish/Billing}/BillingCycle.d.ts +1 -0
  55. package/{Billing → _publish/Billing}/BillingProfile.d.ts +5 -7
  56. package/{Companies → _publish/Companies}/ColourStyle.d.ts +1 -0
  57. package/{Companies → _publish/Companies}/Company.d.ts +5 -2
  58. package/{Companies → _publish/Companies}/CompanyDirectory.d.ts +3 -4
  59. package/{Companies → _publish/Companies}/CompanyGeneral.d.ts +2 -2
  60. package/{Companies → _publish/Companies}/CompanyPolicy.d.ts +2 -2
  61. package/{Companies → _publish/Companies}/CompanyReseller.d.ts +3 -4
  62. package/{Companies → _publish/Companies}/CompanyStyle.d.ts +2 -2
  63. package/{Companies → _publish/Companies}/LabelStyle.d.ts +1 -0
  64. package/{Companies → _publish/Companies}/NotificationServerEmail.d.ts +3 -2
  65. package/{Companies → _publish/Companies}/NotificationServerSms.d.ts +1 -0
  66. package/{Companies → _publish/Companies}/PasswordExpiryMode.d.ts +1 -0
  67. package/{Companies → _publish/Companies}/PasswordPolicy.d.ts +1 -0
  68. package/{Companies → _publish/Companies}/SessionMultiUser.d.ts +1 -0
  69. package/{Companies → _publish/Companies}/SessionPolicy.d.ts +1 -0
  70. package/{Dispatch → _publish/Dispatch}/DispatchDirection.d.ts +1 -0
  71. package/{Dispatch → _publish/Dispatch}/DispatchJob.d.ts +2 -3
  72. package/{Dispatch → _publish/Dispatch}/DispatchJobPriority.d.ts +1 -0
  73. package/{Dispatch → _publish/Dispatch}/DispatchStep.d.ts +1 -0
  74. package/{Dispatch → _publish/Dispatch}/DispatchStepState.d.ts +1 -0
  75. package/{Dispatch → _publish/Dispatch}/DispatchStepStatus.d.ts +1 -0
  76. package/{Dispatch → _publish/Dispatch}/DispatchTask.d.ts +3 -4
  77. package/{Dispatch → _publish/Dispatch}/DispatchTaskStatus.d.ts +1 -0
  78. package/{Hosting → _publish/Hosting}/Document.d.ts +2 -2
  79. package/{Hosting → _publish/Hosting}/FormFieldType.d.ts +1 -0
  80. package/{Hosting → _publish/Hosting}/FormResult.d.ts +1 -2
  81. package/{Hosting → _publish/Hosting}/FormTemplate.d.ts +1 -1
  82. package/{Images → _publish/Images}/Dashcam.d.ts +4 -10
  83. package/{Images → _publish/Images}/DashcamBase.d.ts +9 -9
  84. package/{Images → _publish/Images}/DashcamLive.d.ts +4 -10
  85. package/{Images → _publish/Images}/DashcamMediaType.d.ts +1 -0
  86. package/{Images → _publish/Images}/Icon.d.ts +2 -2
  87. package/{Images → _publish/Images}/IconGlyph.d.ts +1 -0
  88. package/{Images → _publish/Images}/IconLabel.d.ts +1 -0
  89. package/{Images → _publish/Images}/IconLayer.d.ts +1 -0
  90. package/{Images → _publish/Images}/Picture.d.ts +2 -2
  91. package/{Maintenance → _publish/Maintenance}/MaintenanceInterval.d.ts +1 -1
  92. package/{Maintenance → _publish/Maintenance}/MaintenanceJob.d.ts +3 -5
  93. package/{Maintenance → _publish/Maintenance}/MaintenanceJobStatus.d.ts +1 -0
  94. package/{Maintenance → _publish/Maintenance}/MaintenanceSchedule.d.ts +2 -2
  95. package/{Messaging → _publish/Messaging}/AlertPriority.d.ts +1 -0
  96. package/{Messaging → _publish/Messaging}/AssetAlert.d.ts +1 -0
  97. package/{Messaging → _publish/Messaging}/AssetMessage.d.ts +1 -0
  98. package/{Messaging → _publish/Messaging}/MessageBase.d.ts +3 -4
  99. package/{Messaging → _publish/Messaging}/MessageFolder.d.ts +1 -0
  100. package/{Messaging → _publish/Messaging}/MessageStatus.d.ts +1 -0
  101. package/{Messaging → _publish/Messaging}/MessageType.d.ts +1 -0
  102. package/{Places → _publish/Places}/Place.d.ts +3 -4
  103. package/{Places → _publish/Places}/PlaceType.d.ts +1 -0
  104. package/{Providers → _publish/Providers}/Provider.d.ts +3 -8
  105. package/{Providers → _publish/Providers}/ProviderAdvanced.d.ts +2 -2
  106. package/{Providers → _publish/Providers}/ProviderCommand.d.ts +1 -0
  107. package/{Providers → _publish/Providers}/ProviderCommandStatus.d.ts +1 -0
  108. package/{Providers → _publish/Providers}/ProviderCommandType.d.ts +1 -0
  109. package/{Providers → _publish/Providers}/ProviderControl.d.ts +2 -2
  110. package/{Providers → _publish/Providers}/ProviderData.d.ts +1 -0
  111. package/{Providers → _publish/Providers}/ProviderGeneral.d.ts +4 -7
  112. package/{Providers → _publish/Providers}/ProviderType.d.ts +1 -0
  113. package/{Reports → _publish/Reports}/ReportBreakdown.d.ts +1 -0
  114. package/{Reports → _publish/Reports}/ReportBreakdownJob.d.ts +1 -0
  115. package/{Reports → _publish/Reports}/ReportBreakdownMessage.d.ts +1 -0
  116. package/{Reports → _publish/Reports}/ReportBreakdownTask.d.ts +1 -0
  117. package/_publish/Reports/ReportBreakdown_fromJSON.d.ts +2 -0
  118. package/{Reports → _publish/Reports}/ReportFilterMode.d.ts +1 -0
  119. package/{Reports → _publish/Reports}/ReportNotifications.d.ts +1 -0
  120. package/{Reports → _publish/Reports}/ReportOptions.d.ts +1 -0
  121. package/{Reports → _publish/Reports}/ReportParameter.d.ts +1 -0
  122. package/{Reports → _publish/Reports}/ReportParameterType.d.ts +1 -0
  123. package/{Reports → _publish/Reports}/ReportRecurrence.d.ts +1 -0
  124. package/{Reports → _publish/Reports}/ReportRecurrenceType.d.ts +1 -0
  125. package/{Reports → _publish/Reports}/ReportResult.d.ts +2 -2
  126. package/{Reports → _publish/Reports}/ReportResultData.d.ts +1 -0
  127. package/{Reports → _publish/Reports}/ReportSchedule.d.ts +2 -2
  128. package/{Reports → _publish/Reports}/ReportScorecard.d.ts +2 -2
  129. package/{Reports → _publish/Reports}/ReportScorecardParameter.d.ts +1 -0
  130. package/{Reports → _publish/Reports}/ReportScorecardRules.d.ts +1 -0
  131. package/{Reports → _publish/Reports}/ReportStatus.d.ts +1 -0
  132. package/{Reports → _publish/Reports}/ReportSummary.d.ts +2 -2
  133. package/{Reports → _publish/Reports}/ReportSummaryReason.d.ts +1 -0
  134. package/{Reports → _publish/Reports}/ReportTemplate.d.ts +2 -2
  135. package/{Reports → _publish/Reports}/ReportTotal.d.ts +2 -2
  136. package/{Reports → _publish/Reports}/ReportType.d.ts +1 -0
  137. package/{index.d.ts → _publish/index.d.ts} +5 -4
  138. package/{storage.d.ts → _publish/storage.d.ts} +1 -0
  139. package/{trakit-objects.min.js → _publish/trakit-objects.min.js} +2 -2
  140. package/package.json +8 -1
  141. package/API/Geography/Functions.d.ts +0 -236
  142. package/API/Geography/Interfaces.d.ts +0 -150
  143. package/API/Geography/LatLng.d.ts +0 -86
  144. package/API/Geography/LatLngBounds.d.ts +0 -146
  145. package/API/Geography/Position.d.ts +0 -74
  146. package/API/Geography/StreetAddress.d.ts +0 -59
  147. package/API/Geometry/Functions.d.ts +0 -114
  148. package/API/Geometry/Interfaces.d.ts +0 -111
  149. package/API/Geometry/Point.d.ts +0 -81
  150. package/API/Geometry/Radial.d.ts +0 -110
  151. package/API/Geometry/Rectangle.d.ts +0 -159
  152. package/API/Geometry/Size.d.ts +0 -58
  153. package/API/Interfaces/IAmCompany.d.ts +0 -11
  154. package/API/Interfaces/IAuditable.d.ts +0 -31
  155. package/API/Interfaces/IBelongAsset.d.ts +0 -15
  156. package/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
  157. package/API/Interfaces/IBelongCompany.d.ts +0 -15
  158. package/API/Interfaces/IDeserializable.d.ts +0 -13
  159. package/API/Interfaces/IEnabled.d.ts +0 -10
  160. package/API/Interfaces/IFileSize.d.ts +0 -9
  161. package/API/Interfaces/IGlobal.d.ts +0 -11
  162. package/API/Interfaces/IHavePermissions.d.ts +0 -20
  163. package/API/Interfaces/IHavePreferences.d.ts +0 -29
  164. package/API/Interfaces/IIconic.d.ts +0 -15
  165. package/API/Interfaces/IIdUlong.d.ts +0 -10
  166. package/API/Interfaces/ILabelled.d.ts +0 -10
  167. package/API/Interfaces/INamed.d.ts +0 -13
  168. package/API/Interfaces/IPictured.d.ts +0 -15
  169. package/API/Interfaces/IRequestable.d.ts +0 -22
  170. package/API/Interfaces/ISerializable.d.ts +0 -10
  171. package/API/Interfaces/ISuspendable.d.ts +0 -16
  172. package/API/Interfaces/IVisual.d.ts +0 -18
  173. package/Accounts/Permissions/Authorizer.d.ts +0 -204
  174. package/Accounts/Permissions/Permission.d.ts +0 -57
  175. package/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
  176. package/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
  177. package/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
  178. package/Accounts/Permissions/PermissionLevel.d.ts +0 -17
  179. package/Accounts/Permissions/PermissionMethod.d.ts +0 -13
  180. package/Accounts/Permissions/PermissionType.d.ts +0 -280
  181. package/Billing/Hosting/BillableHostingBase.d.ts +0 -41
  182. package/Billing/Hosting/BillableHostingDiscount.d.ts +0 -36
  183. package/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
  184. package/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
  185. package/Billing/Hosting/BillableHostingRule.d.ts +0 -30
  186. package/Billing/Hosting/BillableHostingType.d.ts +0 -41
  187. package/Billing/Report/BillingReport.d.ts +0 -114
  188. package/Billing/Report/BillingReportBreakdown.d.ts +0 -35
  189. package/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
  190. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -80
  191. package/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -126
  192. package/Billing/Report/BillingReportStatus.d.ts +0 -25
  193. package/Billing/Report/BillingReportSummary.d.ts +0 -51
  194. package/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
  195. package/Hosting/Fields/FormFieldBase.d.ts +0 -56
  196. package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
  197. package/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
  198. package/Hosting/Fields/FormFieldChoice.d.ts +0 -46
  199. package/Hosting/Fields/FormFieldDate.d.ts +0 -26
  200. package/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
  201. package/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
  202. package/Hosting/Fields/FormFieldSignature.d.ts +0 -17
  203. package/Hosting/Fields/FormFieldText.d.ts +0 -32
  204. package/Hosting/Fields/FormFieldTime.d.ts +0 -37
  205. package/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
  206. package/Providers/Config/ProviderConfig.d.ts +0 -72
  207. package/Providers/Config/ProviderRegistration.d.ts +0 -123
  208. package/Providers/Config/ProviderScript.d.ts +0 -87
  209. package/Providers/Config/ProviderScriptBlock.d.ts +0 -41
  210. package/Providers/Config/ProviderScriptParameter.d.ts +0 -49
  211. package/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
  212. package/Providers/Configuration/ProviderConfiguration.d.ts +0 -68
  213. package/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
  214. package/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
  215. package/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
  216. package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
  217. package/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
  218. package/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
  219. package/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
  220. package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
  221. package/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
@@ -50,3 +50,4 @@ export declare class ReportOptions implements ISerializable {
50
50
  } | null;
51
51
  };
52
52
  }
53
+ //# sourceMappingURL=ReportOptions.d.ts.map
@@ -24,3 +24,4 @@ export declare class ReportParameter implements ISerializable {
24
24
  value: string;
25
25
  };
26
26
  }
27
+ //# sourceMappingURL=ReportParameter.d.ts.map
@@ -57,3 +57,4 @@ export declare enum ReportParameterType {
57
57
  */
58
58
  attributes = "attributes"
59
59
  }
60
+ //# sourceMappingURL=ReportParameterType.d.ts.map
@@ -52,3 +52,4 @@ export declare class ReportRecurrence implements ISerializable {
52
52
  lastEndDate: string | null;
53
53
  };
54
54
  }
55
+ //# sourceMappingURL=ReportRecurrence.d.ts.map
@@ -32,3 +32,4 @@ export declare enum ReportRecurrenceType {
32
32
  */
33
33
  annually = "annually"
34
34
  }
35
+ //# sourceMappingURL=ReportRecurrenceType.d.ts.map
@@ -27,8 +27,7 @@ export declare class ReportResult extends BaseComponent implements IIdUlong, INa
27
27
  */
28
28
  companyId: ulong;
29
29
  /**
30
- * The company to which this report belongs.
31
- * {@link Company.id}
30
+ * The {@link Company} to which this report belongs.
32
31
  */
33
32
  get company(): Company;
34
33
  /**
@@ -168,3 +167,4 @@ export declare class ReportResult extends BaseComponent implements IIdUlong, INa
168
167
  */
169
168
  getKey(): number;
170
169
  }
170
+ //# sourceMappingURL=ReportResult.d.ts.map
@@ -15,3 +15,4 @@ export declare class ReportResultData extends ReportResult {
15
15
  */
16
16
  breakdown: Map<ulong, ReportBreakdown[]>;
17
17
  }
18
+ //# sourceMappingURL=ReportResultData.d.ts.map
@@ -23,8 +23,7 @@ export declare class ReportSchedule extends BaseComponent implements IIdUlong, I
23
23
  */
24
24
  companyId: ulong;
25
25
  /**
26
- * The company to which this schedule belongs.
27
- * {@link Company.id}
26
+ * The {@link Company} to which this schedule belongs.
28
27
  */
29
28
  get company(): Company;
30
29
  /**
@@ -110,3 +109,4 @@ export declare class ReportSchedule extends BaseComponent implements IIdUlong, I
110
109
  */
111
110
  getKey(): number;
112
111
  }
112
+ //# sourceMappingURL=ReportSchedule.d.ts.map
@@ -18,8 +18,7 @@ export declare class ReportScorecard implements ISerializable, IBelongAsset {
18
18
  */
19
19
  assetId: ulong;
20
20
  /**
21
- * The asset to which this scorecard belongs.
22
- * {@link Asset.id}
21
+ * The {@link Asset} to which this scorecard belongs.
23
22
  */
24
23
  get asset(): Asset;
25
24
  /**
@@ -37,3 +36,4 @@ export declare class ReportScorecard implements ISerializable, IBelongAsset {
37
36
  rulePoints: JsonObject;
38
37
  };
39
38
  }
39
+ //# sourceMappingURL=ReportScorecard.d.ts.map
@@ -29,3 +29,4 @@ export declare class ReportScorecardParameter implements ISerializable {
29
29
  points: number | null;
30
30
  };
31
31
  }
32
+ //# sourceMappingURL=ReportScorecardParameter.d.ts.map
@@ -24,3 +24,4 @@ export declare class ReportScorecardRules implements ISerializable {
24
24
  parameters: any[];
25
25
  };
26
26
  }
27
+ //# sourceMappingURL=ReportScorecardRules.d.ts.map
@@ -27,3 +27,4 @@ export declare enum ReportStatus {
27
27
  */
28
28
  failed = "failed"
29
29
  }
30
+ //# sourceMappingURL=ReportStatus.d.ts.map
@@ -21,8 +21,7 @@ export declare class ReportSummary implements ISerializable, IBelongAsset {
21
21
  */
22
22
  assetId: ulong;
23
23
  /**
24
- * The asset to which this summary instance belongs.
25
- * {@link Asset.id}
24
+ * The {@link Asset} to which this summary instance belongs.
26
25
  */
27
26
  get asset(): Asset;
28
27
  /**
@@ -89,3 +88,4 @@ export declare class ReportSummary implements ISerializable, IBelongAsset {
89
88
  lastState: JsonObject | null;
90
89
  };
91
90
  }
91
+ //# sourceMappingURL=ReportSummary.d.ts.map
@@ -25,3 +25,4 @@ export declare enum ReportSummaryReason {
25
25
  */
26
26
  filterMatch = "filterMatch"
27
27
  }
28
+ //# sourceMappingURL=ReportSummaryReason.d.ts.map
@@ -21,8 +21,7 @@ export declare class ReportTemplate extends BaseComponent implements IIdUlong, I
21
21
  */
22
22
  companyId: ulong;
23
23
  /**
24
- * The company to which this template belongs.
25
- * {@link Company.id}
24
+ * The {@link Company} to which this template belongs.
26
25
  */
27
26
  get company(): Company;
28
27
  /**
@@ -80,3 +79,4 @@ export declare class ReportTemplate extends BaseComponent implements IIdUlong, I
80
79
  */
81
80
  getKey(): number;
82
81
  }
82
+ //# sourceMappingURL=ReportTemplate.d.ts.map
@@ -17,8 +17,7 @@ export declare class ReportTotal implements ISerializable {
17
17
  */
18
18
  assetId: ulong;
19
19
  /**
20
- * The asset to which this report total belongs.
21
- * {@link Asset.id}
20
+ * The {@link Asset} to which this report total belongs.
22
21
  */
23
22
  get asset(): Asset;
24
23
  /**
@@ -46,3 +45,4 @@ export declare class ReportTotal implements ISerializable {
46
45
  distance: number | null;
47
46
  };
48
47
  }
48
+ //# sourceMappingURL=ReportTotal.d.ts.map
@@ -40,3 +40,4 @@ export declare enum ReportType {
40
40
  */
41
41
  positions = "positions"
42
42
  }
43
+ //# sourceMappingURL=ReportType.d.ts.map
@@ -2,9 +2,9 @@
2
2
  * Trak-iT API Object Model.
3
3
  * {@link https://github.com/trakitwireless/trakit-ts-objects|Object definition.}
4
4
  * All of the Trak-iT APIs use the same object definitions. Use this package in your TypeScript or JavaScript project.
5
- * Last updated on Thu Feb 27 2025 11:59:01
5
+ * Last updated on Friday December 19, 2025
6
6
  * @copyright Trak-iT Wireless Inc. 2025
7
- **/
7
+ */
8
8
  import { Contact } from "./Accounts/Contact";
9
9
  import { Machine } from "./Accounts/Machine";
10
10
  import { NotificationMethod } from "./Accounts/NotificationMethod";
@@ -188,7 +188,7 @@ import { ReportType } from "./Reports/ReportType";
188
188
  /**
189
189
  * Version number for this release.
190
190
  */
191
- export declare const version = 5.04;
191
+ export declare const version = 5.06;
192
192
  /**
193
193
  * The names of all main object types in the Trak-iT Object Model.
194
194
  */
@@ -206,7 +206,7 @@ export declare const classes: {
206
206
  * The storage is used by the sync system.
207
207
  */
208
208
  export declare const storage: {
209
- [key in SyncName]: Map<string | guid | email | ulong, IRequestable>;
209
+ [key in SyncName]: Map<ulong | guid | email | codified | string, IRequestable>;
210
210
  };
211
211
  /**
212
212
  * Common types used throughout the application.
@@ -404,3 +404,4 @@ export { MaintenanceSchedule, MaintenanceJob, MaintenanceJobStatus, MaintenanceI
404
404
  export { Place, PlaceType, };
405
405
  export { Provider, ProviderGeneral, ProviderAdvanced, ProviderControl, ProviderCommand, ProviderCommandStatus, ProviderCommandType, ProviderType, ProviderRegistration, ProviderData, ProviderScript, ProviderScriptBlock, ProviderScriptParameter, ProviderScriptParameterType, ProviderConfig, ProviderConfiguration, ProviderConfigurationNode, ProviderConfigurationType, ProviderGeofenceBase, ProviderGeofenceCircular, ProviderGeofencePoint, ProviderGeofencePolygon, ProviderGeofenceRectangle, };
406
406
  export { ReportResult, ReportResultData, ReportSchedule, ReportTemplate, ReportType, ReportBreakdown, ReportBreakdownJob, ReportBreakdownMessage, ReportBreakdownTask, ReportTotal, ReportFilterMode, ReportNotifications, ReportOptions, ReportParameter, ReportParameterType, ReportRecurrence, ReportRecurrenceType, ReportScorecard, ReportScorecardParameter, ReportScorecardRules, ReportStatus, ReportSummary, ReportSummaryReason, };
407
+ //# sourceMappingURL=index.d.ts.map
@@ -174,3 +174,4 @@ export declare const REPORT_SCHEDULES: Map<ulong, ReportSchedule>;
174
174
  *
175
175
  */
176
176
  export declare const REPORT_RESULTS: Map<ulong, ReportResult>;
177
+ //# sourceMappingURL=storage.d.ts.map
@@ -3,6 +3,6 @@ function t(t){const s=[];for(let e=0,i=t.length;e<i;e++)s.indexOf(t[e])<0&&s.pus
3
3
  * Trak-iT API Object Model.
4
4
  * {@link https://github.com/trakitwireless/trakit-ts-objects|Object definition.}
5
5
  * All of the Trak-iT APIs use the same object definitions. Use this package in your TypeScript or JavaScript project.
6
- * Last updated on Thu Feb 27 2025 11:59:01
6
+ * Last updated on Friday December 19, 2025
7
7
  * @copyright Trak-iT Wireless Inc. 2025
8
- */const hh=5.04,ah={Company:kn,CompanyGeneral:wn,CompanyStyle:Jn,CompanyDirectory:Nn,CompanyPolicy:vn,CompanyReseller:On,Contact:ae,Machine:Ne,Session:xe,User:He,UserGeneral:je,UserAdvanced:Ie,UserGroup:qe,Asset:Xi,AssetGeneral:Zi,AssetAdvanced:_i,AssetDispatch:$i,AssetAlert:vr,AssetMessage:Tr,Behaviour:tn,BehaviourScript:en,BehaviourLog:sn,BillableHostingLicense:on,BillableHostingRule:un,BillingProfile:rn,BillingReport:gn,DispatchJob:In,DispatchTask:Mn,Document:An,FormResult:_n,FormTemplate:Yn,Dashcam:Zn,Icon:sr,Picture:er,MaintenanceSchedule:rr,MaintenanceJob:nr,Place:br,Provider:Hr,ProviderGeneral:jr,ProviderAdvanced:Rr,ProviderControl:Lr,ProviderScript:xr,ProviderConfig:Or,ProviderConfigurationType:Mr,ProviderConfiguration:Ur,ProviderRegistration:Cr,ReportTemplate:rh,ReportSchedule:ih,ReportResult:sh},oh={Company:Ss,CompanyGeneral:Ss,CompanyStyle:Ss,CompanyDirectory:Ss,CompanyPolicy:Ss,CompanyReseller:Ss,Contact:vs,Machine:Ts,Session:Cs,User:bs,UserGeneral:bs,UserAdvanced:bs,UserGroup:Os,Asset:Js,AssetGeneral:Js,AssetAdvanced:Js,AssetDispatch:Js,AssetAlert:ks,AssetMessage:ks,Behaviour:xs,BehaviourScript:Us,BehaviourLog:Is,BillingProfile:Ms,BillingReport:As,BillableHostingRule:Ds,BillableHostingLicense:Ps,DispatchTask:Es,DispatchJob:zs,Document:Ks,FormTemplate:Rs,FormResult:Bs,Dashcam:Hs,Icon:js,Picture:Ls,MaintenanceSchedule:qs,MaintenanceJob:Gs,Place:Vs,Provider:Fs,ProviderGeneral:Fs,ProviderAdvanced:Fs,ProviderControl:Fs,ProviderScript:Ws,ProviderConfig:_s,ProviderConfigurationType:Ys,ProviderConfiguration:$s,ProviderRegistration:Zs,ReportTemplate:Xs,ReportSchedule:Qs,ReportResult:te},uh={capitalize:function(t,s=!0){return t?.length?t[0][s?"toUpperCase":"toLowerCase"]()+t.slice(1):""},codify:J,date:m,douglasPeucker:function(t,s,e){if(!Array.isArray(t))throw new TypeError("source is not an Array.");if(!("function"==typeof(i=s)||i instanceof Function))throw new TypeError("triangleHeight is not an Function.");var i;if(!u(e)||e<0)throw new TypeError("tolerance is not an Number or less than zero.");return t.length<3?[...t]:t.filter(n,p(t,s,e))},fileSize:function(t,s=0,e="MB",i=3,n=",",r=n,h="."){let a=0;if(t){const s=oi.includes(e)?oi.indexOf(e):ui;for(;a<s&&t>=1024;)t/=1024,a++}return ot(c(t,s),i,n,r,h)+" "+oi[a]},findTimeZoneById:U,guid:function(){const t=(new Date).valueOf().toString(16).substring(1).split("").reduce(Bt,[...Ti]);for(let s=0;s<36;s++)if(" "===t[s]){let e=16*Zt.random()|0;t[s]=(19!==s?e:3&e|8).toString(16)}return t.join("")},highlight:function(t,s,[e,i]=["<b>","</b>"]){if(!t||!s?.length)return t;let n,r="",h=0;const a=new RegExp(s.map((t=>J(t).split("-").map((t=>t.split("").map((t=>ys+t)).join("")+ys)).join("[^a-z0-9]+"))).join("|"),"gim");for(;n=a.exec(t);)r+=t.slice(h,n.index)+e+n[0]+i,h=n.index+n[0].length;return r+t.slice(h)},id:d,isNothing:h,isntNaN:u,numberGroups:ot,roundTo:c,parseTime:function(t){return new Be(t).totalSeconds},phoneNumber:g,pluralize:function(t){return t.endsWith("y")?t.slice(0,-1)+"ies":t.endsWith("ch")?t+"es":t+"s"},singularize:function(t){return t.endsWith("ies")?t.slice(0,-3)+"y":t.endsWith("ches")?t.slice(0,-2):t.endsWith("s")?t.slice(0,-1):t},stringifyTime:function(t){return new Be(t*Pe).toString()}},ch=ai,lh={toPassword:function(t){return encodeURIComponent([...h(t)?"":String(t)].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),""))},fromPassword:function(t){return[...decodeURIComponent(h(t)?"":String(t))].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),"")}},dh={fromMap:N,fromMapPredicate:w,toMap:S,toMapPredicate:y},mh={pathLength:function(t){let s=0,e=0,i=t.length-1,n=t[e],r=n;for(;e<i;e++)n=t[e],r=t[e+1],s+=l(r.x-n.x,r.y-n.y);return s},pathOrthogonal:At,pathReduce:function(t,s=0){return t.length<3?t.slice():(s>0||(s=0),t.filter(n,p(t,Dt,s)))},pointAngle:xt,pointDistance:Ut,pointPythagora:l,pointVector:Mt,polyArea:Pt,polyContains:function(t,s){let e=t.slice(),i=0,n=e.length,r=n-1,h=!1;if(e[i].x===e[r].x&&e[i].y===e[r].y&&(e.pop(),n=e.length,r=n-1),zt(Et(e),s))for(;i<n;r=i++){const t=e[i],n=e[r];t.y>s.y!=n.y>s.y&&s.x<(n.x-t.x)*(s.y-t.y)/(n.y-t.y)+t.x&&(h=!h)}return h},polyReduce:function(t,s=0){let e=[...t],i=t.length;if(i<3)return e;{let t=0,r=0;s>0||(s=0);for(let s=0;s<i;s++){const n=e[s];for(let h=s+1;h<i;h++){const i=Ut(n,e[h]);i>t&&(r=s,t=i)}}return e=e.splice(r,i).concat(e),Ut(e[0],e[i-1])>0&&(i=e.push(e[0])),e=e.filter(n,p(e,Dt,s)),i=e.length,Ut(e[0],e[i-1])<=0&&e.pop(),e}},polyWrapper:function(t){let s=t.slice().sort(It),e=s[0],i=[e];for(;s.length>1;){let t=0,n=0,r=360;for(let i=0,h=s.length;i<h;i++){const a=s[i],o=xt(e,a),u=Ut(e,a);a!==e&&(u?(o<r||o===r&&u>n)&&(o===r&&(s.splice(t,1),i--,h--),r=o,n=u,t=i):(s.splice(i--,1),h--))}if(0===t)break;i.push(e=s.splice(t,1)[0])}return i},radialCircumference:function(t){return 2*Xt*t},radialArea:function(t){return Xt*(t*t)},radialSmallest:function(t,s){let e=t[0],i=0;switch(t.length){case 1:return{x:e.x,y:e.y,r:i};case 2:return function(t){const s=function(t){return{x:t.left+(t.right-t.left)/2,y:t.top+(t.bottom-t.top)/2}}(t);t.right,t.left,t.bottom,t.top;return{x:s.x,y:s.y,r:Ut(s,{x:t.left,y:t.top})}}(Et(t))}s||(s=1e4);for(let n=0;n<s;n++){let s=t[0],r=0;for(let i=0;i<t.length;i++){const n=t[i],h=Ut(e,n);h>r&&(s=n,r=h)}e={x:e.x+1/(n+1)*(s.x-e.x),y:e.y+1/(n+1)*(s.y-e.y)},i=r}return{x:e.x,y:e.y,r:i}},radialOverlapsRectangle:function(t,s){const e=kt(s),i=kt(s);return e.top-=t.r,e.bottom+=t.r,i.left-=t.r,i.right+=t.r,zt(e,t)||zt(i,t)||Ut(t,{x:s.left,y:s.top})<=t.r||Ut(t,{x:s.right,y:s.top})<=t.r||Ut(t,{x:s.left,y:s.bottom})<=t.r||Ut(t,{x:s.right,y:s.bottom})<=t.r}},ph={earthRadius:ci,clampLat:ct,clampLng:lt,pathLength:function(t){const s=[...t],e=s.length-1;for(let t=0,i=0;t<e;t++)i+=mt(s[t],s[t+1]);return length},pathReduce:function(t,s){return t.length<3?[...t]:(s>0||(s=0),t.filter(n,p(t,Nt,s)))},pathEncode:yt,pathDecode:St,pointAngle:dt,pointDistance:mt,pointMiddle:ft,pointOrthogonal:pt,pointTranslate:gt,pointVincenty:function(t,s){const e=ct(t.lat),i=ct(s.lat),n=lt(t.lng,e),r=(lt(s.lng,i)-n)*ms,h=ss((1-li)*ls(e*ms)),a=ss((1-li)*ls(e*ms)),o=us(h),c=is(h),l=us(a),d=is(a);let m,p,g,f,N,w,y,S,v,T,b=r,O=100;do{if(p=us(b),g=is(b),f=cs(d*p*(d*p)+(c*l-o*d*g)*(c*l-o*d*g)),0===f)return 0;N=o*l+c*d*g,w=es(f,N),y=c*d*p/f,S=1-y*y,v=N-2*o*l/S,T=li/16*S*(4+li*(4-3*S)),u(v)||(v=0),m=b,b=r+(1-T)*li*y*(w+T*f*(v+T*N*(2*v*v-1)))}while(Qt(b-m)>1e-12&&--O>0);if(!O)return 0;const C=272331606107.5547*S/40408299984661.445,J=C/1024*(256+C*(C*(74-47*C)-128));return di*(1+C/16384*(4096+C*(C*(320-175*C)-768)))*(w-J*f*(v+J/4*(N*(2*v*v-1)-J/6*v*(4*f*f-3)*(4*v*v-3))))},polyArea:function(t){const s=[...t];let e,i=0,n=0,r=s.length-1,h=s[n],a=s[r];if(h&&a&&mt(h,a)<=mi&&(s.pop(),r--),r<1)throw new Error("Not enough coordinates");if(r>1)for(n=1;n<r;n++)e=s[n],a=s[n+1],i+=Tt(h,e,a)*bt(h,e,a);return Qt(40680631590769*i)},polyContains:function(t,s){throw"not implemented"},polyReduce:function(t,s=1e-9){let e=[...t],i=t.length;if(i>2){const[t,r,h]=vt(e);s>0||(s=mi),e=e.splice(r,i).concat(e),mt(e[0],e[i-1])>s&&(i=e.push(e[0])),e=e.filter(n,p(e,Nt,s)),i=e.length,mt(e[0],e[i-1])<=s&&e.pop()}return e},polyWidest:vt},gh={computeAll:j,compute:H,computeAllSimple:function(t,s,e){return j(t,(s||[]).filter(R),(e||[]).filter(R))},computeSimple:q,computeSimpleLevels:function(t,s,e,i){const n=new Map;return q(t,s,e,i).forEach((function(t){n.set(t.kind,t.level)})),n},getSimpleLevel:function(t,s,e,i,n){return V(t,q(t,s,e,i),n)},hasSimple:function(t,s,e,i,n,r){return G(t,q(t,s,e,i),n,r)},findSimple:G,findSimpleLevel:V,computeAllComplex:function(t,s,e){const i=new Map;return j(t,(s||[]).filter(K),(e||[]).filter(K)).forEach((function(t,s){for(let s,e=0;s=t[e];e++)K(s)||t.splice(e--,1);t.length>0&&i.set(s,t)})),i},computeComplex:F,getComplexLevel:function(t,s,e,i,n,r,h){return _(t,F(t,s,e,i),n,r,h)},findComplexLevel:_,hasComplex:function(t,s,e,i,n,r,h,a){return W(t,F(t,s,e,i),n,r,h,a)},findComplex:W,hasAnyComplex:function(t,s,e,i,n,r){return Y(t,F(t,s,e,i),n,r)},findAnyComplex:Y,findAllEscalations:function(t,s,e,i){const n=new Map;return e.forEach((function(e,r){if(s.has(r)){const h=$(t,s.get(r),e,i&&i.get(r));h.length&&n.set(r,h)}else n.set(r,e.map((function(t){return new ye(ge.vertical,t.companyId,t.kind,t.level,t.labels)})))})),n},findEscalations:$,findAllLabelEscalations:function(t,s,e,i,n,r){const h=[];return(e||[]).length>0&&e.forEach((function(e){const a=Z(t,s,e,i,n,r);a&&h.push(a)})),h},findLabelEscalation:Z,implied:$t(ve),simple:$t(s(Yt(de),Te)),complex:$t(Te)};export{hr as AlertPriority,Xi as Asset,_i as AssetAdvanced,vr as AssetAlert,xi as AssetAttribute,$i as AssetDispatch,Zi as AssetGeneral,Tr as AssetMessage,Wi as AssetPlaceStatus,Ui as AssetPlaceStatusType,Ii as AssetType,Gt as Base,Vt as BaseComponent,Ue as BaseCompound,tn as Behaviour,sn as BehaviourLog,Ai as BehaviourLogType,Qi as BehaviourParameter,Mi as BehaviourParameterType,en as BehaviourScript,on as BillableHostingLicense,Ei as BillableHostingLicenseType,un as BillableHostingRule,zi as BillableHostingType,Di as BillingCurrency,Pi as BillingCycle,rn as BillingProfile,gn as BillingReport,dn as BillingReportBreakdown,mn as BillingReportHostingSummary,cn as BillingReportLicenseBreakdown,ln as BillingReportServiceBreakdown,Ri as BillingReportStatus,pn as BillingReportSummary,fn as ColourStyle,kn as Company,Nn as CompanyDirectory,wn as CompanyGeneral,vn as CompanyPolicy,On as CompanyReseller,Jn as CompanyStyle,ae as Contact,Zn as Dashcam,$n as DashcamBase,Xn as DashcamLive,Ln as DashcamMediaType,Yi as DispatchDirection,In as DispatchJob,qi as DispatchJobPriority,Un as DispatchStep,xn as DispatchStepState,Gi as DispatchStepStatus,Mn as DispatchTask,Vi as DispatchTaskStatus,An as Document,Pn as FormFieldAttachments,Dn as FormFieldBase,En as FormFieldBoolean,Kn as FormFieldChoice,Rn as FormFieldDate,qn as FormFieldNumeric,Bn as FormFieldNumericSize,Gn as FormFieldSignature,Vn as FormFieldText,Fn as FormFieldTime,Wn as FormFieldTimezone,Fi as FormFieldType,_n as FormResult,Yn as FormTemplate,sr as Icon,Qn as IconGlyph,tr as IconLabel,jn as IconLayer,Cn as LabelStyle,yi as LatLng,wi as LatLngBounds,Ne as Machine,ir as MaintenanceInterval,nr as MaintenanceJob,Hn as MaintenanceJobStatus,rr as MaintenanceSchedule,ur as MessageFolder,ar as MessageStatus,or as MessageType,pe as NotificationMethod,Tn as NotificationServerEmail,bn as NotificationServerSms,Bi as PasswordExpiryMode,yn as PasswordPolicy,fe as Permission,ye as PermissionEscalation,we as PermissionEscalationState,ge as PermissionEscalationType,ce as PermissionLevel,le as PermissionMethod,de as PermissionType,er as Picture,br as Place,cr as PlaceType,Ni as Point,vi as Position,Hr as Provider,Rr as ProviderAdvanced,Br as ProviderCommand,dr as ProviderCommandStatus,mr as ProviderCommandType,Or as ProviderConfig,Ur as ProviderConfiguration,Ir as ProviderConfigurationNode,Mr as ProviderConfigurationType,Lr as ProviderControl,Kr as ProviderData,jr as ProviderGeneral,Ar as ProviderGeofenceBase,Dr as ProviderGeofenceCircular,Pr as ProviderGeofencePoint,Er as ProviderGeofencePolygon,zr as ProviderGeofenceRectangle,Cr as ProviderRegistration,xr as ProviderScript,Jr as ProviderScriptBlock,kr as ProviderScriptParameter,lr as ProviderScriptParameterType,Ki as ProviderType,fi as Radial,gi as Rectangle,qr as ReportBreakdown,Gr as ReportBreakdownJob,Vr as ReportBreakdownMessage,Fr as ReportBreakdownTask,pr as ReportFilterMode,Wr as ReportNotifications,Zr as ReportOptions,_r as ReportParameter,gr as ReportParameterType,Xr as ReportRecurrence,fr as ReportRecurrenceType,sh as ReportResult,eh as ReportResultData,ih as ReportSchedule,Qr as ReportScorecard,Yr as ReportScorecardParameter,$r as ReportScorecardRules,Nr as ReportStatus,nh as ReportSummary,yr as ReportSummaryReason,rh as ReportTemplate,th as ReportTotal,wr as ReportType,ki as SearchPattern,xe as Session,Li as SessionMultiUser,Sn as SessionPolicy,Ce as SessionStatus,pi as Size,Si as StreetAddress,me as SystemsOfUnits,Be as TimeSpan,oe as Timezone,He as User,Ie as UserAdvanced,je as UserGeneral,qe as UserGroup,Le as UserNotifications,gh as authorizer,ah as classes,ch as convert,lh as encoding,ph as geography,mh as geometry,dh as serialization,oh as storage,uh as utility,hh as version};
8
+ */const hh=5.06,ah={Company:kn,CompanyGeneral:wn,CompanyStyle:Jn,CompanyDirectory:Nn,CompanyPolicy:vn,CompanyReseller:On,Contact:ae,Machine:Ne,Session:xe,User:He,UserGeneral:je,UserAdvanced:Ie,UserGroup:qe,Asset:Xi,AssetGeneral:Zi,AssetAdvanced:_i,AssetDispatch:$i,AssetAlert:vr,AssetMessage:Tr,Behaviour:tn,BehaviourScript:en,BehaviourLog:sn,BillableHostingLicense:on,BillableHostingRule:un,BillingProfile:rn,BillingReport:gn,DispatchJob:In,DispatchTask:Mn,Document:An,FormResult:_n,FormTemplate:Yn,Dashcam:Zn,Icon:sr,Picture:er,MaintenanceSchedule:rr,MaintenanceJob:nr,Place:br,Provider:Hr,ProviderGeneral:jr,ProviderAdvanced:Rr,ProviderControl:Lr,ProviderScript:xr,ProviderConfig:Or,ProviderConfigurationType:Mr,ProviderConfiguration:Ur,ProviderRegistration:Cr,ReportTemplate:rh,ReportSchedule:ih,ReportResult:sh},oh={Company:Ss,CompanyGeneral:Ss,CompanyStyle:Ss,CompanyDirectory:Ss,CompanyPolicy:Ss,CompanyReseller:Ss,Contact:vs,Machine:Ts,Session:Cs,User:bs,UserGeneral:bs,UserAdvanced:bs,UserGroup:Os,Asset:Js,AssetGeneral:Js,AssetAdvanced:Js,AssetDispatch:Js,AssetAlert:ks,AssetMessage:ks,Behaviour:xs,BehaviourScript:Us,BehaviourLog:Is,BillingProfile:Ms,BillingReport:As,BillableHostingRule:Ds,BillableHostingLicense:Ps,DispatchTask:Es,DispatchJob:zs,Document:Ks,FormTemplate:Rs,FormResult:Bs,Dashcam:Hs,Icon:js,Picture:Ls,MaintenanceSchedule:qs,MaintenanceJob:Gs,Place:Vs,Provider:Fs,ProviderGeneral:Fs,ProviderAdvanced:Fs,ProviderControl:Fs,ProviderScript:Ws,ProviderConfig:_s,ProviderConfigurationType:Ys,ProviderConfiguration:$s,ProviderRegistration:Zs,ReportTemplate:Xs,ReportSchedule:Qs,ReportResult:te},uh={capitalize:function(t,s=!0){return t?.length?t[0][s?"toUpperCase":"toLowerCase"]()+t.slice(1):""},codify:J,date:m,douglasPeucker:function(t,s,e){if(!Array.isArray(t))throw new TypeError("source is not an Array.");if(!("function"==typeof(i=s)||i instanceof Function))throw new TypeError("triangleHeight is not an Function.");var i;if(!u(e)||e<0)throw new TypeError("tolerance is not an Number or less than zero.");return t.length<3?[...t]:t.filter(n,p(t,s,e))},fileSize:function(t,s=0,e="MB",i=3,n=",",r=n,h="."){let a=0;if(t){const s=oi.includes(e)?oi.indexOf(e):ui;for(;a<s&&t>=1024;)t/=1024,a++}return ot(c(t,s),i,n,r,h)+" "+oi[a]},findTimeZoneById:U,guid:function(){const t=(new Date).valueOf().toString(16).substring(1).split("").reduce(Bt,[...Ti]);for(let s=0;s<36;s++)if(" "===t[s]){let e=16*Zt.random()|0;t[s]=(19!==s?e:3&e|8).toString(16)}return t.join("")},highlight:function(t,s,[e,i]=["<b>","</b>"]){if(!t||!s?.length)return t;let n,r="",h=0;const a=new RegExp(s.map((t=>J(t).split("-").map((t=>t.split("").map((t=>ys+t)).join("")+ys)).join("[^a-z0-9]+"))).join("|"),"gim");for(;n=a.exec(t);)r+=t.slice(h,n.index)+e+n[0]+i,h=n.index+n[0].length;return r+t.slice(h)},id:d,isNothing:h,isntNaN:u,numberGroups:ot,roundTo:c,parseTime:function(t){return new Be(t).totalSeconds},phoneNumber:g,pluralize:function(t){return t.endsWith("y")?t.slice(0,-1)+"ies":t.endsWith("ch")?t+"es":t+"s"},singularize:function(t){return t.endsWith("ies")?t.slice(0,-3)+"y":t.endsWith("ches")?t.slice(0,-2):t.endsWith("s")?t.slice(0,-1):t},stringifyTime:function(t){return new Be(t*Pe).toString()}},ch=ai,lh={toPassword:function(t){return encodeURIComponent([...h(t)?"":String(t)].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),""))},fromPassword:function(t){return[...decodeURIComponent(h(t)?"":String(t))].reduce((function(t,s){return t+String.fromCharCode(111^s.charCodeAt(0))}),"")}},dh={fromMap:N,fromMapPredicate:w,toMap:S,toMapPredicate:y},mh={pathLength:function(t){let s=0,e=0,i=t.length-1,n=t[e],r=n;for(;e<i;e++)n=t[e],r=t[e+1],s+=l(r.x-n.x,r.y-n.y);return s},pathOrthogonal:At,pathReduce:function(t,s=0){return t.length<3?t.slice():(s>0||(s=0),t.filter(n,p(t,Dt,s)))},pointAngle:xt,pointDistance:Ut,pointPythagora:l,pointVector:Mt,polyArea:Pt,polyContains:function(t,s){let e=t.slice(),i=0,n=e.length,r=n-1,h=!1;if(e[i].x===e[r].x&&e[i].y===e[r].y&&(e.pop(),n=e.length,r=n-1),zt(Et(e),s))for(;i<n;r=i++){const t=e[i],n=e[r];t.y>s.y!=n.y>s.y&&s.x<(n.x-t.x)*(s.y-t.y)/(n.y-t.y)+t.x&&(h=!h)}return h},polyReduce:function(t,s=0){let e=[...t],i=t.length;if(i<3)return e;{let t=0,r=0;s>0||(s=0);for(let s=0;s<i;s++){const n=e[s];for(let h=s+1;h<i;h++){const i=Ut(n,e[h]);i>t&&(r=s,t=i)}}return e=e.splice(r,i).concat(e),Ut(e[0],e[i-1])>0&&(i=e.push(e[0])),e=e.filter(n,p(e,Dt,s)),i=e.length,Ut(e[0],e[i-1])<=0&&e.pop(),e}},polyWrapper:function(t){let s=t.slice().sort(It),e=s[0],i=[e];for(;s.length>1;){let t=0,n=0,r=360;for(let i=0,h=s.length;i<h;i++){const a=s[i],o=xt(e,a),u=Ut(e,a);a!==e&&(u?(o<r||o===r&&u>n)&&(o===r&&(s.splice(t,1),i--,h--),r=o,n=u,t=i):(s.splice(i--,1),h--))}if(0===t)break;i.push(e=s.splice(t,1)[0])}return i},radialCircumference:function(t){return 2*Xt*t},radialArea:function(t){return Xt*(t*t)},radialSmallest:function(t,s){let e=t[0],i=0;switch(t.length){case 1:return{x:e.x,y:e.y,r:i};case 2:return function(t){const s=function(t){return{x:t.left+(t.right-t.left)/2,y:t.top+(t.bottom-t.top)/2}}(t);t.right,t.left,t.bottom,t.top;return{x:s.x,y:s.y,r:Ut(s,{x:t.left,y:t.top})}}(Et(t))}s||(s=1e4);for(let n=0;n<s;n++){let s=t[0],r=0;for(let i=0;i<t.length;i++){const n=t[i],h=Ut(e,n);h>r&&(s=n,r=h)}e={x:e.x+1/(n+1)*(s.x-e.x),y:e.y+1/(n+1)*(s.y-e.y)},i=r}return{x:e.x,y:e.y,r:i}},radialOverlapsRectangle:function(t,s){const e=kt(s),i=kt(s);return e.top-=t.r,e.bottom+=t.r,i.left-=t.r,i.right+=t.r,zt(e,t)||zt(i,t)||Ut(t,{x:s.left,y:s.top})<=t.r||Ut(t,{x:s.right,y:s.top})<=t.r||Ut(t,{x:s.left,y:s.bottom})<=t.r||Ut(t,{x:s.right,y:s.bottom})<=t.r}},ph={earthRadius:ci,clampLat:ct,clampLng:lt,pathLength:function(t){const s=[...t],e=s.length-1;for(let t=0,i=0;t<e;t++)i+=mt(s[t],s[t+1]);return length},pathReduce:function(t,s){return t.length<3?[...t]:(s>0||(s=0),t.filter(n,p(t,Nt,s)))},pathEncode:yt,pathDecode:St,pointAngle:dt,pointDistance:mt,pointMiddle:ft,pointOrthogonal:pt,pointTranslate:gt,pointVincenty:function(t,s){const e=ct(t.lat),i=ct(s.lat),n=lt(t.lng,e),r=(lt(s.lng,i)-n)*ms,h=ss((1-li)*ls(e*ms)),a=ss((1-li)*ls(e*ms)),o=us(h),c=is(h),l=us(a),d=is(a);let m,p,g,f,N,w,y,S,v,T,b=r,O=100;do{if(p=us(b),g=is(b),f=cs(d*p*(d*p)+(c*l-o*d*g)*(c*l-o*d*g)),0===f)return 0;N=o*l+c*d*g,w=es(f,N),y=c*d*p/f,S=1-y*y,v=N-2*o*l/S,T=li/16*S*(4+li*(4-3*S)),u(v)||(v=0),m=b,b=r+(1-T)*li*y*(w+T*f*(v+T*N*(2*v*v-1)))}while(Qt(b-m)>1e-12&&--O>0);if(!O)return 0;const C=272331606107.5547*S/40408299984661.445,J=C/1024*(256+C*(C*(74-47*C)-128));return di*(1+C/16384*(4096+C*(C*(320-175*C)-768)))*(w-J*f*(v+J/4*(N*(2*v*v-1)-J/6*v*(4*f*f-3)*(4*v*v-3))))},polyArea:function(t){const s=[...t];let e,i=0,n=0,r=s.length-1,h=s[n],a=s[r];if(h&&a&&mt(h,a)<=mi&&(s.pop(),r--),r<1)throw new Error("Not enough coordinates");if(r>1)for(n=1;n<r;n++)e=s[n],a=s[n+1],i+=Tt(h,e,a)*bt(h,e,a);return Qt(40680631590769*i)},polyContains:function(t,s){throw"not implemented"},polyReduce:function(t,s=1e-9){let e=[...t],i=t.length;if(i>2){const[t,r,h]=vt(e);s>0||(s=mi),e=e.splice(r,i).concat(e),mt(e[0],e[i-1])>s&&(i=e.push(e[0])),e=e.filter(n,p(e,Nt,s)),i=e.length,mt(e[0],e[i-1])<=s&&e.pop()}return e},polyWidest:vt},gh={computeAll:j,compute:H,computeAllSimple:function(t,s,e){return j(t,(s||[]).filter(R),(e||[]).filter(R))},computeSimple:q,computeSimpleLevels:function(t,s,e,i){const n=new Map;return q(t,s,e,i).forEach((function(t){n.set(t.kind,t.level)})),n},getSimpleLevel:function(t,s,e,i,n){return V(t,q(t,s,e,i),n)},hasSimple:function(t,s,e,i,n,r){return G(t,q(t,s,e,i),n,r)},findSimple:G,findSimpleLevel:V,computeAllComplex:function(t,s,e){const i=new Map;return j(t,(s||[]).filter(K),(e||[]).filter(K)).forEach((function(t,s){for(let s,e=0;s=t[e];e++)K(s)||t.splice(e--,1);t.length>0&&i.set(s,t)})),i},computeComplex:F,getComplexLevel:function(t,s,e,i,n,r,h){return _(t,F(t,s,e,i),n,r,h)},findComplexLevel:_,hasComplex:function(t,s,e,i,n,r,h,a){return W(t,F(t,s,e,i),n,r,h,a)},findComplex:W,hasAnyComplex:function(t,s,e,i,n,r){return Y(t,F(t,s,e,i),n,r)},findAnyComplex:Y,findAllEscalations:function(t,s,e,i){const n=new Map;return e.forEach((function(e,r){if(s.has(r)){const h=$(t,s.get(r),e,i&&i.get(r));h.length&&n.set(r,h)}else n.set(r,e.map((function(t){return new ye(ge.vertical,t.companyId,t.kind,t.level,t.labels)})))})),n},findEscalations:$,findAllLabelEscalations:function(t,s,e,i,n,r){const h=[];return(e||[]).length>0&&e.forEach((function(e){const a=Z(t,s,e,i,n,r);a&&h.push(a)})),h},findLabelEscalation:Z,implied:$t(ve),simple:$t(s(Yt(de),Te)),complex:$t(Te)};export{hr as AlertPriority,Xi as Asset,_i as AssetAdvanced,vr as AssetAlert,xi as AssetAttribute,$i as AssetDispatch,Zi as AssetGeneral,Tr as AssetMessage,Wi as AssetPlaceStatus,Ui as AssetPlaceStatusType,Ii as AssetType,Gt as Base,Vt as BaseComponent,Ue as BaseCompound,tn as Behaviour,sn as BehaviourLog,Ai as BehaviourLogType,Qi as BehaviourParameter,Mi as BehaviourParameterType,en as BehaviourScript,on as BillableHostingLicense,Ei as BillableHostingLicenseType,un as BillableHostingRule,zi as BillableHostingType,Di as BillingCurrency,Pi as BillingCycle,rn as BillingProfile,gn as BillingReport,dn as BillingReportBreakdown,mn as BillingReportHostingSummary,cn as BillingReportLicenseBreakdown,ln as BillingReportServiceBreakdown,Ri as BillingReportStatus,pn as BillingReportSummary,fn as ColourStyle,kn as Company,Nn as CompanyDirectory,wn as CompanyGeneral,vn as CompanyPolicy,On as CompanyReseller,Jn as CompanyStyle,ae as Contact,Zn as Dashcam,$n as DashcamBase,Xn as DashcamLive,Ln as DashcamMediaType,Yi as DispatchDirection,In as DispatchJob,qi as DispatchJobPriority,Un as DispatchStep,xn as DispatchStepState,Gi as DispatchStepStatus,Mn as DispatchTask,Vi as DispatchTaskStatus,An as Document,Pn as FormFieldAttachments,Dn as FormFieldBase,En as FormFieldBoolean,Kn as FormFieldChoice,Rn as FormFieldDate,qn as FormFieldNumeric,Bn as FormFieldNumericSize,Gn as FormFieldSignature,Vn as FormFieldText,Fn as FormFieldTime,Wn as FormFieldTimezone,Fi as FormFieldType,_n as FormResult,Yn as FormTemplate,sr as Icon,Qn as IconGlyph,tr as IconLabel,jn as IconLayer,Cn as LabelStyle,yi as LatLng,wi as LatLngBounds,Ne as Machine,ir as MaintenanceInterval,nr as MaintenanceJob,Hn as MaintenanceJobStatus,rr as MaintenanceSchedule,ur as MessageFolder,ar as MessageStatus,or as MessageType,pe as NotificationMethod,Tn as NotificationServerEmail,bn as NotificationServerSms,Bi as PasswordExpiryMode,yn as PasswordPolicy,fe as Permission,ye as PermissionEscalation,we as PermissionEscalationState,ge as PermissionEscalationType,ce as PermissionLevel,le as PermissionMethod,de as PermissionType,er as Picture,br as Place,cr as PlaceType,Ni as Point,vi as Position,Hr as Provider,Rr as ProviderAdvanced,Br as ProviderCommand,dr as ProviderCommandStatus,mr as ProviderCommandType,Or as ProviderConfig,Ur as ProviderConfiguration,Ir as ProviderConfigurationNode,Mr as ProviderConfigurationType,Lr as ProviderControl,Kr as ProviderData,jr as ProviderGeneral,Ar as ProviderGeofenceBase,Dr as ProviderGeofenceCircular,Pr as ProviderGeofencePoint,Er as ProviderGeofencePolygon,zr as ProviderGeofenceRectangle,Cr as ProviderRegistration,xr as ProviderScript,Jr as ProviderScriptBlock,kr as ProviderScriptParameter,lr as ProviderScriptParameterType,Ki as ProviderType,fi as Radial,gi as Rectangle,qr as ReportBreakdown,Gr as ReportBreakdownJob,Vr as ReportBreakdownMessage,Fr as ReportBreakdownTask,pr as ReportFilterMode,Wr as ReportNotifications,Zr as ReportOptions,_r as ReportParameter,gr as ReportParameterType,Xr as ReportRecurrence,fr as ReportRecurrenceType,sh as ReportResult,eh as ReportResultData,ih as ReportSchedule,Qr as ReportScorecard,Yr as ReportScorecardParameter,$r as ReportScorecardRules,Nr as ReportStatus,nh as ReportSummary,yr as ReportSummaryReason,rh as ReportTemplate,th as ReportTotal,wr as ReportType,ki as SearchPattern,xe as Session,Li as SessionMultiUser,Sn as SessionPolicy,Ce as SessionStatus,pi as Size,Si as StreetAddress,me as SystemsOfUnits,Be as TimeSpan,oe as Timezone,He as User,Ie as UserAdvanced,je as UserGeneral,qe as UserGroup,Le as UserNotifications,gh as authorizer,ah as classes,ch as convert,lh as encoding,ph as geography,mh as geometry,dh as serialization,oh as storage,uh as utility,hh as version};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trakit/objects",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "main": "./_publish/trakit-objects.min.js",
6
6
  "types": "./_publish/index.d.ts",
7
7
  "scripts": {
@@ -16,6 +16,13 @@
16
16
  ],
17
17
  "author": "Alex Lein",
18
18
  "license": "AGPL-3.0-only",
19
+ "files": [
20
+ "_publish/*.js",
21
+ "_publish/*.d.ts",
22
+ "_publish/*/*.d.ts",
23
+ "LICENSE.md",
24
+ "README.md"
25
+ ],
19
26
  "bugs": {
20
27
  "url": "https://github.com/trakitwireless/trakit-ts-objects/issues"
21
28
  },
@@ -1,236 +0,0 @@
1
- import { IPoint } from '../Geometry/Interfaces';
2
- import { int } from '../Types';
3
- import { ILatLng, ILatLngBounds } from './Interfaces';
4
- /**
5
- * The default precision used to serialize latlngs.
6
- */
7
- export declare const DEFAULT_PRECISION = 6;
8
- /**
9
- * The radius of the Earth in meters taken from the GRS-80, NAD83, and WGS-84 standards.
10
- */
11
- export declare const EARTH_RADIUS: number;
12
- /**
13
- * The ellipsoid of the Earth taken from the WGS-84 standard.
14
- * @default ~298.2572
15
- */
16
- export declare const EARTH_ELLIPSOID: number;
17
- /**
18
- * Inversion of the ellipsoid value for calculations.
19
- */
20
- export declare const EARTH_FLATENING: number;
21
- /**
22
- * The minor axis radius of an ellipsoid Earth as per WGS-84.
23
- * @default ~6356752.3142
24
- */
25
- export declare const EARTH_RADIUS_MINOR: number;
26
- /**
27
- * The surface area of the Earth in meters squared.
28
- * @default 511207893395811
29
- */
30
- export declare const EARTH_SURFACE: number;
31
- /**
32
- *
33
- */
34
- export declare const EARTH_RADIUS_RATIO: number;
35
- /**
36
- *
37
- */
38
- export declare const EARTH_RADIUS_ECCENT: number;
39
- /**
40
- *
41
- */
42
- export declare const EARTH_RADIUS_COM: number;
43
- /**
44
- *
45
- */
46
- export declare const TILE_SIZE_PX: number;
47
- /**
48
- *
49
- */
50
- export declare const MAX_TILE_LAT: number;
51
- /**
52
- *
53
- */
54
- export declare const MAX_TILE_LNG: number;
55
- /**
56
- * Determines the map width and height (in pixels) at a specified level of detail.
57
- * @param zoom Level of detail, from 1 (lowest detail) to 23 (highest detail).
58
- * @returns The map width and height in pixels.
59
- */
60
- export declare function tileMapSize(zoom: int): int;
61
- /**
62
- * Converts tile coordinates into pixel coordinates of the upper-left pixel of the specified tile.
63
- * @param tile
64
- */
65
- export declare function tileToPixel(tile: IPoint): IPoint;
66
- /**
67
- * Converts pixel coordinates into tile coordinates of the tile containing the specified pixel.
68
- * @param pixel
69
- */
70
- export declare function pixelToTile(pixel: IPoint): IPoint;
71
- /**
72
- * Converts a pixel coordinate into a LatLng at a specified level of detail.
73
- * @param pixel
74
- * @param zoom Level of detail, from 1 (lowest detail) to 23 (highest detail).
75
- */
76
- export declare function pixelToLatlng(pixel: IPoint, zoom: int): ILatLng;
77
- /**
78
- * Converts a LatLng into a pixel coordinate at a specified level of detail.
79
- * @param latlng
80
- * @param zoom Level of detail, from 1 (lowest detail) to 23 (highest detail).
81
- */
82
- export declare function latlngToPixel(latlng: ILatLng, zoom: int): IPoint;
83
- /**
84
- * Converts tile coordinates into a lat/lng boundary representing a complete tile.
85
- * @param tile
86
- * @param zoom Level of detail, from 1 (lowest detail) to 23 (highest detail).
87
- * @param grow Number of pixels to grow the tilesize (helps with detecting stroke/border overlaps).
88
- */
89
- export declare function tileToBounds(tile: IPoint, zoom: int, grow?: number): ILatLngBounds;
90
- /**
91
- * Converts pixel coordinates of a tile into a lat/lng boundary.
92
- * @param pixel
93
- * @param zoom Level of detail, from 1 (lowest detail) to 23 (highest detail).
94
- * @param grow Number of pixels to grow the tilesize (helps with detecting stroke/border overlaps).
95
- */
96
- export declare function pixelToBounds(pixel: IPoint, zoom: int, grow?: number): ILatLngBounds;
97
- /**
98
- * Returns the number of meters per pixel at the given latitude and zoom level.
99
- * @param lat
100
- * @param zoom
101
- */
102
- export declare function metresPerPixel(lat: number, zoom: int): number;
103
- /**
104
- * Checks to see if a given latitude is at one of the poles.
105
- * @param latitude
106
- */
107
- export declare function LATITUDE_IS_POLE(latitude: number): boolean;
108
- /**
109
- * Normalizes a latitude value between +/- 90.
110
- * Values of greater than 90 are returned as 90, and values less than -90 are returned as -90.
111
- * @param latitude
112
- * @param edge
113
- */
114
- export declare function LATITUDE_NORMALIZED(latitude: number, edge?: number): number;
115
- /**
116
- * Normalizes a longitude value between +/- 180.
117
- * Values of greater than 180 are returned as a negative difference of 360, and values less than -180 are returned as a positive difference of 360.
118
- * @param longitude
119
- * @param latitude When given, will check if the latitude is a pole, and converts the longitude to zero.
120
- */
121
- export declare function LONGITUDE_NORMALIZED(longitude: number, latitude?: number): number;
122
- /**
123
- * The distance in meters before considering to coordinates to have the same location.
124
- * @default 0.000000001
125
- */
126
- export declare const MAX_SAME_DISTANCE = 1e-9;
127
- /**
128
- * Bearing from coordinate A to coordinate B in degrees from North.
129
- * @param first The starting coordinate.
130
- * @param last The ending coordinate.
131
- * @return Degrees from North.
132
- */
133
- export declare function LATLNG_ANGLE(first: ILatLng, last: ILatLng): number;
134
- /**
135
- * Calculates the distance between two coordinates on a sphere.
136
- * @param first The starting coordinate.
137
- * @param last The ending coordinate.
138
- */
139
- export declare function LATLNG_DISTANCE(first: ILatLng, last: ILatLng): number;
140
- /**
141
- * Calculates the distance between two coordinates on a Bessel 1841 ellipsoid.
142
- * @param start The starting coordinate.
143
- * @param end The ending coordinate.
144
- */
145
- export declare function LATLNG_DISTANCE_VINCENTY(start: ILatLng, end: ILatLng): number;
146
- /**
147
- * Calculates the orthogonal height of a triangle. The orthogonal height is
148
- * calculated by drawing a line between the coordinate A and coordinate B,
149
- * then getting the length of a line drawn up from the line to the mid
150
- * coordinate at a 90 degree angle.
151
- * @param first Left-most coordinate on the great circle.
152
- * @param middle Top-most coordinate's latitude.
153
- * @param last Right-most coordinate's longitude on the great circle.
154
- * @return Value is negative when distance is to the right, and positive when distance to the left.
155
- */
156
- export declare function LATLNG_GREAT_CIRCLE(first: ILatLng, middle: ILatLng, last: ILatLng): number;
157
- /**
158
- * Calculates the final coordinate based on the given starting coordinate and vector.
159
- * @param pin The staring coordinate.
160
- * @param meters The distance away from this LatLng.
161
- * @param bearing The direction in which to calculate the new position in degrees from North.
162
- * @throws {Error} Either latitude or longitude is NaN.
163
- */
164
- export declare function LATLNG_TRANSLATE(pin: ILatLng, meters: number, bearing: number): ILatLng;
165
- /**
166
- * Calculates the mid-point between to given coordinate.
167
- * @param first Left-most coordinate.
168
- * @param last Right-most coordinate.
169
- * @throws {Error} Either latitude or longitude is NaN.
170
- */
171
- export declare function LATLNG_MIDPOINT(first: ILatLng, last: ILatLng): ILatLng;
172
- /**
173
- * Calculates the spherical-cap area occupied by the given radial distance.
174
- * @param pin The coordinate at which to calculate the area.
175
- * @param radius The distance from the centre of the circle to any point along the edge.
176
- */
177
- export declare function SPHERECAP_AREA(pin: ILatLng, radius: number): void;
178
- /**
179
- * Calculates the length of the given route.
180
- * @param route
181
- */
182
- export declare function ROUTE_LENGTH(route: ILatLng[]): number;
183
- /**
184
- * Performs a Douglas-Peucker path reduction based on the given tolerance.
185
- * @param route The array of coordinates representing a path.
186
- * @param tolerance Distance (in meters) threshold for candidate coordinates. Default is 0.
187
- */
188
- export declare function ROUTE_PEUCKER(route: ILatLng[], tolerance: number): ILatLng[];
189
- /**
190
- * An implementation of Google's Encoded Polyline Algorithm format.
191
- * https://developers.google.com/maps/documentation/utilities/polylinealgorithm
192
- * @param route The array of coordinates representing a path.
193
- * @param precision Optional number of decimal places to use to calculate the results. Default is 5.
194
- */
195
- export declare function ROUTE_ENCODE(route: ILatLng[], precision?: number): string;
196
- /**
197
- * An implementation of Google's Decoded Polyline Algorithm format.
198
- * https://developers.google.com/maps/documentation/utilities/polylinealgorithm
199
- * @param route The encoded string which represents the coordinates in a path.
200
- * @param precision Optional number of decimal places used to recalculate the results. Default is 5.
201
- */
202
- export declare function ROUTE_DECODE(route: string, precision?: number): ILatLng[];
203
- /**
204
- * Finds the widest section of the given route.
205
- * This is useful for path reduction and reorientation.
206
- * @param route The array of coordinates representing a path
207
- * @return An array of three items; the first is the widest distance, and the others are the start and end index within the given route.
208
- */
209
- export declare function GEOFENCE_WIDEST(route: ILatLng[]): [number, number, number];
210
- /**
211
- * Performs a Douglas-Peucker path reduction on a polygon for the given
212
- * tolerance. The start/end coordinates are variable and the end coordinate
213
- * is trimmed from the result.
214
- * @param route The array of coordinates representing a path
215
- * @param tolerance Distance (in meters) threshold for candidate coordinates. Default is 0.
216
- */
217
- export declare function GEOFENCE_PEUCKER(route: ILatLng[], tolerance?: number): ILatLng[];
218
- /**
219
- * Calculates the total area occupied by the given geofence.
220
- * @param route The array of coordinates representing a geofence.
221
- * @throws {Error} Not enough coordinates.
222
- */
223
- export declare function GEOFENCE_AREA(route: ILatLng[]): number;
224
- /**
225
- * A utility export function to determine if a given coordinate is inside the given geofence.
226
- * @param route The array of coordinates represents the path of the polygon.
227
- * @param pin The coordinate to be checked.
228
- */
229
- export declare function GEOFENCE_CONTAINS(route: ILatLng[], pin: ILatLng): boolean;
230
- /**
231
- * Wraps the given coordinates into a polygonal path.
232
- * The given coordinates do not need to be a path.
233
- * The returned path is not closed.
234
- * @param coordinates The array of coordinates on which to create the non-closed path
235
- */
236
- export declare function GEOFENCE_WRAPPER(route: ILatLng[]): ILatLng[];