@trakit/objects 0.0.1 → 0.0.5

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 (155) hide show
  1. package/API/Base.d.ts +3 -2
  2. package/API/BaseComponent.d.ts +9 -6
  3. package/API/Codifier.d.ts +11 -1
  4. package/API/Encoding.d.ts +9 -0
  5. package/API/Files.d.ts +4 -4
  6. package/API/Functions.d.ts +26 -21
  7. package/API/Geography/Functions.d.ts +4 -0
  8. package/API/Geography/Interfaces.d.ts +19 -14
  9. package/API/Geography/LatLng.d.ts +9 -1
  10. package/API/Geography/LatLngBounds.d.ts +2 -1
  11. package/API/Geography/Position.d.ts +23 -11
  12. package/API/Geography/StreetAddress.d.ts +3 -2
  13. package/API/Geometry/Functions.d.ts +1 -1
  14. package/API/Geometry/Point.d.ts +4 -3
  15. package/API/Geometry/Radial.d.ts +5 -4
  16. package/API/Geometry/Rectangle.d.ts +3 -7
  17. package/API/Geometry/Size.d.ts +8 -2
  18. package/API/Interfaces/IAuditable.d.ts +31 -0
  19. package/API/Interfaces/IDeserializable.d.ts +2 -1
  20. package/API/Interfaces/ILabelled.d.ts +2 -1
  21. package/API/Interfaces/IRequestable.d.ts +5 -1
  22. package/API/Objects.d.ts +0 -28
  23. package/API/SearchPattern.d.ts +3 -2
  24. package/API/TimeSpan.d.ts +7 -38
  25. package/API/Timezone.d.ts +3 -3
  26. package/API/Types.d.ts +18 -0
  27. package/Accounts/Contact.d.ts +10 -10
  28. package/Accounts/Machine.d.ts +14 -6
  29. package/Accounts/Permissions/Permission.d.ts +3 -3
  30. package/Accounts/Permissions/PermissionEscalation.d.ts +11 -3
  31. package/Accounts/Permissions/PermissionEscalationState.d.ts +5 -3
  32. package/Accounts/Session.d.ts +2 -2
  33. package/Accounts/User.d.ts +10 -10
  34. package/Accounts/UserAdvanced.d.ts +2 -2
  35. package/Accounts/UserGeneral.d.ts +5 -5
  36. package/Accounts/UserGroup.d.ts +3 -3
  37. package/Accounts/UserNotifications.d.ts +2 -2
  38. package/Assets/Asset.d.ts +56 -24
  39. package/Assets/AssetAdvanced.d.ts +8 -20
  40. package/Assets/AssetAttribute.d.ts +2 -2
  41. package/Assets/AssetDispatch.d.ts +5 -12
  42. package/Assets/AssetGeneral.d.ts +44 -24
  43. package/Assets/AssetPlaceStatus.d.ts +2 -2
  44. package/Behaviours/Behaviour.d.ts +4 -4
  45. package/Behaviours/BehaviourLog.d.ts +3 -3
  46. package/Behaviours/BehaviourParameter.d.ts +2 -1
  47. package/Behaviours/BehaviourScript.d.ts +4 -4
  48. package/Billing/BillableBase.d.ts +3 -3
  49. package/Billing/BillableSmsProfile.d.ts +2 -2
  50. package/Billing/BillingProfile.d.ts +3 -3
  51. package/Billing/Hosting/BillableHostingBase.d.ts +2 -2
  52. package/Billing/Hosting/BillableHostingDiscount.d.ts +2 -1
  53. package/Billing/Hosting/BillableHostingLicense.d.ts +2 -1
  54. package/Billing/Hosting/BillableHostingRule.d.ts +2 -1
  55. package/Billing/Report/BillingReport.d.ts +3 -3
  56. package/Billing/Report/BillingReportBreakdown.d.ts +2 -2
  57. package/Billing/Report/BillingReportHostingSummary.d.ts +2 -2
  58. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +2 -2
  59. package/Billing/Report/BillingReportServiceBreakdown.d.ts +2 -2
  60. package/Billing/Report/BillingReportSummary.d.ts +2 -2
  61. package/Companies/ColourStyle.d.ts +2 -2
  62. package/Companies/Company.d.ts +48 -33
  63. package/Companies/CompanyDirectory.d.ts +10 -5
  64. package/Companies/CompanyGeneral.d.ts +10 -5
  65. package/Companies/{CompanyPolicies.d.ts → CompanyPolicy.d.ts} +9 -4
  66. package/Companies/CompanyReseller.d.ts +14 -9
  67. package/Companies/{CompanyStyles.d.ts → CompanyStyle.d.ts} +11 -6
  68. package/Companies/LabelStyle.d.ts +2 -2
  69. package/Companies/NotificationServerEmail.d.ts +2 -2
  70. package/Companies/NotificationServerSms.d.ts +3 -3
  71. package/Companies/PasswordPolicy.d.ts +2 -2
  72. package/Companies/SessionPolicy.d.ts +2 -2
  73. package/Dispatch/DispatchDirection.d.ts +3 -3
  74. package/Dispatch/DispatchJob.d.ts +4 -4
  75. package/Dispatch/DispatchStep.d.ts +4 -4
  76. package/Dispatch/DispatchStepState.d.ts +3 -3
  77. package/Dispatch/DispatchTask.d.ts +5 -5
  78. package/Hosting/Document.d.ts +3 -3
  79. package/Hosting/Fields/FormFieldAttachments.d.ts +4 -11
  80. package/Hosting/Fields/FormFieldBase.d.ts +8 -23
  81. package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  82. package/Hosting/Fields/FormFieldBoolean.d.ts +4 -12
  83. package/Hosting/Fields/FormFieldChoice.d.ts +10 -12
  84. package/Hosting/Fields/FormFieldDate.d.ts +2 -9
  85. package/Hosting/Fields/FormFieldNumeric.d.ts +2 -9
  86. package/Hosting/Fields/FormFieldSignature.d.ts +2 -2
  87. package/Hosting/Fields/FormFieldText.d.ts +2 -9
  88. package/Hosting/Fields/FormFieldTime.d.ts +12 -9
  89. package/Hosting/Fields/FormFieldTimezone.d.ts +2 -2
  90. package/Hosting/FormResult.d.ts +4 -4
  91. package/Hosting/FormTemplate.d.ts +3 -3
  92. package/Images/Dashcam.d.ts +3 -3
  93. package/Images/DashcamBase.d.ts +2 -2
  94. package/Images/DashcamLive.d.ts +3 -3
  95. package/Images/Icon.d.ts +7 -27
  96. package/Images/IconGlyph.d.ts +5 -12
  97. package/Images/IconLabel.d.ts +5 -8
  98. package/Images/Picture.d.ts +3 -3
  99. package/Maintenance/MaintenanceInterval.d.ts +2 -2
  100. package/Maintenance/MaintenanceJob.d.ts +3 -3
  101. package/Maintenance/MaintenanceSchedule.d.ts +4 -4
  102. package/Messaging/AssetAlert.d.ts +2 -1
  103. package/Messaging/AssetMessage.d.ts +2 -2
  104. package/Messaging/MessageBase.d.ts +3 -3
  105. package/Places/Place.d.ts +4 -4
  106. package/Providers/Config/ProviderConfig.d.ts +4 -4
  107. package/Providers/Config/ProviderRegistration.d.ts +2 -2
  108. package/Providers/Config/ProviderScript.d.ts +4 -4
  109. package/Providers/Config/ProviderScriptBlock.d.ts +2 -1
  110. package/Providers/Config/ProviderScriptParameter.d.ts +2 -2
  111. package/Providers/Configuration/ProviderConfiguration.d.ts +4 -4
  112. package/Providers/Configuration/ProviderConfigurationNode.d.ts +4 -3
  113. package/Providers/Configuration/ProviderConfigurationType.d.ts +4 -4
  114. package/Providers/Configuration/ProviderGeofenceBase.d.ts +6 -8
  115. package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  116. package/Providers/Provider.d.ts +80 -14
  117. package/Providers/ProviderAdvanced.d.ts +4 -4
  118. package/Providers/ProviderCommand.d.ts +2 -2
  119. package/Providers/ProviderControl.d.ts +3 -3
  120. package/Providers/ProviderData.d.ts +2 -2
  121. package/Providers/ProviderGeneral.d.ts +18 -10
  122. package/Reports/ReportBreakdown.d.ts +9 -32
  123. package/Reports/ReportBreakdownJob.d.ts +6 -31
  124. package/Reports/ReportBreakdownMessage.d.ts +7 -32
  125. package/Reports/ReportBreakdownTask.d.ts +6 -31
  126. package/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  127. package/Reports/ReportNotifications.d.ts +3 -3
  128. package/Reports/ReportOptions.d.ts +3 -2
  129. package/Reports/ReportParameter.d.ts +2 -1
  130. package/Reports/ReportRecurrence.d.ts +2 -2
  131. package/Reports/ReportResult.d.ts +9 -9
  132. package/Reports/ReportSchedule.d.ts +3 -3
  133. package/Reports/ReportScorecard.d.ts +3 -3
  134. package/Reports/ReportScorecardParameter.d.ts +2 -2
  135. package/Reports/ReportScorecardRules.d.ts +2 -2
  136. package/Reports/ReportSummary.d.ts +5 -33
  137. package/Reports/ReportTemplate.d.ts +3 -3
  138. package/Reports/ReportTotal.d.ts +2 -2
  139. package/index.d.ts +406 -0
  140. package/package.json +31 -22
  141. package/{Storage.d.ts → storage.d.ts} +11 -1
  142. package/trakit-objects.min.js +8 -0
  143. package/API/Component.d.ts +0 -42
  144. package/API/Compound.d.ts +0 -19
  145. package/Assets/Person.d.ts +0 -25
  146. package/Assets/PersonGeneral.d.ts +0 -35
  147. package/Assets/Trailer.d.ts +0 -42
  148. package/Assets/TrailerGeneral.d.ts +0 -47
  149. package/Assets/Vehicle.d.ts +0 -73
  150. package/Assets/VehicleAdvanced.d.ts +0 -25
  151. package/Assets/VehicleGeneral.d.ts +0 -33
  152. package/README.md +0 -13
  153. package/Reports/ReportDataTotal.d.ts +0 -50
  154. package/objects.d.ts +0 -534
  155. package/objects.min.js +0 -7
@@ -1,4 +1,4 @@
1
- import { uint, ulong } from "../API/Types";
1
+ import { nothing, uint, ulong } from "../API/Types";
2
2
  import { AssetAdvanced } from "../Assets/AssetAdvanced";
3
3
  import { AssetGeneral } from "../Assets/AssetGeneral";
4
4
  import { DispatchTask } from "../Dispatch/DispatchTask";
@@ -11,7 +11,7 @@ export declare class ReportBreakdownTask extends ReportBreakdown {
11
11
  * The Task used.
12
12
  */
13
13
  task: DispatchTask;
14
- constructor(task: DispatchTask, asset?: ulong, instance?: uint, summaryInstances?: uint[], general?: AssetGeneral | null, advanced?: AssetAdvanced | null);
14
+ constructor(task: DispatchTask, asset: ulong, instance: uint, summaryInstances?: uint[] | nothing, general?: AssetGeneral | nothing, advanced?: AssetAdvanced | nothing);
15
15
  toJSON(): {
16
16
  task: {
17
17
  id: number | null;
@@ -19,11 +19,11 @@ export declare class ReportBreakdownTask extends ReportBreakdown {
19
19
  asset: number | null;
20
20
  v: number[];
21
21
  name: string;
22
- references: object;
22
+ references: import("..").JsonObject;
23
23
  place: number | null;
24
24
  address: string;
25
25
  latlng: import("../API/Geography/Interfaces").ILatLng;
26
- status: import("../Dispatch/DispatchTaskStatus").DispatchTaskStatus;
26
+ status: import("..").DispatchTaskStatus;
27
27
  created: string | null;
28
28
  eta: string | null;
29
29
  duration: string;
@@ -40,32 +40,7 @@ export declare class ReportBreakdownTask extends ReportBreakdown {
40
40
  asset: number | null;
41
41
  instance: number | null;
42
42
  summaryInstances: number[];
43
- general: {
44
- suspended?: boolean | undefined;
45
- since?: string | null | undefined;
46
- references?: object | undefined;
47
- messagingAddress?: string | undefined;
48
- pictures?: number[] | undefined;
49
- id: number | null;
50
- v: number[];
51
- company: number;
52
- kind: import("../Assets/AssetType").AssetType;
53
- name: string;
54
- notes: string;
55
- icon: number;
56
- labels: string[];
57
- } | null;
58
- advanced: {
59
- id: number | null;
60
- v: number[];
61
- company: number;
62
- position: import("../API/Geography/Interfaces").IPosition | null;
63
- odometer: number;
64
- tags: string[];
65
- attributes: object;
66
- providers: string[];
67
- relationships: number[];
68
- places: object;
69
- } | null;
43
+ general: import("..").JsonObject | null;
44
+ advanced: import("..").JsonObject | null;
70
45
  };
71
46
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
2
  import { SearchPattern } from "../API/SearchPattern";
3
- import { email } from "../API/Types";
3
+ import { email, nothing, JsonObject } from "../API/Types";
4
4
  /**
5
5
  * A group of users and targeted assets which receive report notifications.
6
6
  */
@@ -9,7 +9,7 @@ export declare class ReportNotifications implements ISerializable {
9
9
  *
10
10
  * @param json
11
11
  */
12
- static fromJSON(json: any): ReportNotifications;
12
+ static fromJSON(json: JsonObject): ReportNotifications;
13
13
  /**
14
14
  * List of users to send emailed report.
15
15
  * Each email will only contain the results for the assets each user is allowed to view.
@@ -23,7 +23,7 @@ export declare class ReportNotifications implements ISerializable {
23
23
  * or for a Person type asset, their {@link Contact.emails}["Email"].
24
24
  */
25
25
  assets: SearchPattern[] | null;
26
- constructor(users?: email[], assets?: SearchPattern[] | null);
26
+ constructor(users?: email[] | nothing, assets?: SearchPattern[] | nothing);
27
27
  toJSON(): {
28
28
  users: string[];
29
29
  assets: string | null;
@@ -1,5 +1,6 @@
1
1
  import { ISerializable } from '../API/Interfaces/ISerializable';
2
2
  import { SearchPattern } from '../API/SearchPattern';
3
+ import { JsonObject, nothing } from '../API/Types';
3
4
  import { ReportFilterMode } from './ReportFilterMode';
4
5
  import { ReportParameter } from './ReportParameter';
5
6
  import { ReportScorecardRules } from './ReportScorecardRules';
@@ -11,7 +12,7 @@ export declare class ReportOptions implements ISerializable {
11
12
  *
12
13
  * @param json
13
14
  */
14
- static fromJSON(json: any): ReportOptions;
15
+ static fromJSON(json: JsonObject): ReportOptions;
15
16
  /**
16
17
  * A list of parameters to better shape the results.
17
18
  */
@@ -36,7 +37,7 @@ export declare class ReportOptions implements ISerializable {
36
37
  * Rules used to generate scorecard for this report.
37
38
  */
38
39
  scorecardRules: ReportScorecardRules | null;
39
- constructor(parameters?: ReportParameter[], targets?: SearchPattern[] | null, filtering?: ReportFilterMode, places?: SearchPattern[] | null, regions?: string[], scorecardRules?: ReportScorecardRules | null);
40
+ constructor(parameters?: ReportParameter[] | nothing, targets?: SearchPattern[] | nothing, filtering?: ReportFilterMode | nothing, places?: SearchPattern[] | nothing, regions?: string[] | nothing, scorecardRules?: ReportScorecardRules | nothing);
40
41
  toJSON(): {
41
42
  parameters: any[];
42
43
  targets: string | null;
@@ -1,5 +1,6 @@
1
1
  import { ISerializable } from '../API/Interfaces/ISerializable';
2
2
  import { ReportParameterType } from './ReportParameterType';
3
+ import { JsonObject } from '../API/Types';
3
4
  /**
4
5
  * An argument passed to the report runner.
5
6
  */
@@ -8,7 +9,7 @@ export declare class ReportParameter implements ISerializable {
8
9
  *
9
10
  * @param json
10
11
  */
11
- static fromJSON(json: any): ReportParameter;
12
+ static fromJSON(json: JsonObject): ReportParameter;
12
13
  /**
13
14
  * The type of argument.
14
15
  */
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
- import { byte, datetime, ulong, ushort } from "../API/Types";
2
+ import { byte, datetime, ulong, ushort, JsonObject } from "../API/Types";
3
3
  import { ReportRecurrenceType } from "./ReportRecurrenceType";
4
4
  /**
5
5
  * Determines when and how often a report schedule runs automatically.
@@ -10,7 +10,7 @@ export declare class ReportRecurrence implements ISerializable {
10
10
  *
11
11
  * @param json
12
12
  */
13
- static fromJSON(json: any): ReportRecurrence;
13
+ static fromJSON(json: JsonObject): ReportRecurrence;
14
14
  /**
15
15
  * How often the report is automatically run. Daily, weekly, monthly, etc...
16
16
  */
@@ -3,16 +3,16 @@ import { LatLngBounds } from "../API/Geography/LatLngBounds";
3
3
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
4
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
5
  import { INamed } from "../API/Interfaces/INamed";
6
- import { byte, email, ulong } from "../API/Types";
7
- import { ReportStatus } from './ReportStatus';
8
- import { ReportTotal } from './ReportTotal';
9
- import { ReportType } from './ReportType';
10
- import { ReportOptions } from './ReportOptions';
11
- import { ReportScorecard } from './ReportScorecard';
12
- import { Company } from "../Companies/Company";
13
6
  import { Timezone } from "../API/Timezone";
7
+ import { JsonObject, byte, email, ulong } from "../API/Types";
8
+ import { Company } from "../Companies/Company";
9
+ import { ReportOptions } from './ReportOptions';
14
10
  import { ReportSchedule } from "./ReportSchedule";
11
+ import { ReportScorecard } from './ReportScorecard';
12
+ import { ReportStatus } from './ReportStatus';
15
13
  import { ReportTemplate } from "./ReportTemplate";
14
+ import { ReportTotal } from './ReportTotal';
15
+ import { ReportType } from './ReportType';
16
16
  /**
17
17
  * Report results
18
18
  */
@@ -162,9 +162,9 @@ export declare class ReportResult extends BaseComponent implements IIdUlong, INa
162
162
  scorecards: ReportScorecard[];
163
163
  error: string;
164
164
  };
165
- fromJSON(json: any, force?: boolean): boolean;
165
+ fromJSON(json: JsonObject, force?: boolean): boolean;
166
166
  /**
167
167
  * The {@link id} is the key.
168
168
  */
169
- getKey(): string;
169
+ getKey(): number;
170
170
  }
@@ -3,7 +3,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
3
  import { IEnabled } from "../API/Interfaces/IEnabled";
4
4
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
5
  import { INamed } from "../API/Interfaces/INamed";
6
- import { email, ulong } from "../API/Types";
6
+ import { email, ulong, JsonObject } from "../API/Types";
7
7
  import { Company } from "../Companies/Company";
8
8
  import { ReportNotifications } from "./ReportNotifications";
9
9
  import { ReportOptions } from "./ReportOptions";
@@ -104,9 +104,9 @@ export declare class ReportSchedule extends BaseComponent implements IIdUlong, I
104
104
  assets: string | null;
105
105
  } | null;
106
106
  };
107
- fromJSON(json: any, force?: boolean): boolean;
107
+ fromJSON(json: JsonObject, force?: boolean): boolean;
108
108
  /**
109
109
  * The {@link id} is the key.
110
110
  */
111
- getKey(): string;
111
+ getKey(): number;
112
112
  }
@@ -1,6 +1,6 @@
1
1
  import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
2
2
  import { ISerializable } from "../API/Interfaces/ISerializable";
3
- import { double, ulong } from "../API/Types";
3
+ import { double, JsonObject, ulong } from "../API/Types";
4
4
  import { Asset } from "../Assets/Asset";
5
5
  /**
6
6
  * Scorecard generated from the results of this report.
@@ -11,7 +11,7 @@ export declare class ReportScorecard implements ISerializable, IBelongAsset {
11
11
  * @param json
12
12
  * @returns
13
13
  */
14
- static fromJSON(json: any): ReportScorecard;
14
+ static fromJSON(json: JsonObject): ReportScorecard;
15
15
  /**
16
16
  * The asset to which this scorecard belongs.
17
17
  * {@link Asset.id}
@@ -34,6 +34,6 @@ export declare class ReportScorecard implements ISerializable, IBelongAsset {
34
34
  toJSON(): {
35
35
  asset: number | null;
36
36
  score: number;
37
- rulePoints: object;
37
+ rulePoints: JsonObject;
38
38
  };
39
39
  }
@@ -1,6 +1,6 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
2
  import { TimeSpan } from "../API/TimeSpan";
3
- import { double, timespan } from "../API/Types";
3
+ import { double, timespan, JsonObject } from "../API/Types";
4
4
  /**
5
5
  * Infraction parameter used to generate scorecard
6
6
  */
@@ -9,7 +9,7 @@ export declare class ReportScorecardParameter implements ISerializable {
9
9
  *
10
10
  * @param json
11
11
  */
12
- static fromJSON(json: any): ReportScorecardParameter;
12
+ static fromJSON(json: JsonObject): ReportScorecardParameter;
13
13
  /**
14
14
  * Type of exception, example speeding, idling, etc.
15
15
  */
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
- import { double } from "../API/Types";
2
+ import { double, JsonObject } from "../API/Types";
3
3
  import { ReportScorecardParameter } from "./ReportScorecardParameter";
4
4
  /**
5
5
  * Rules used for generating a scorecard.
@@ -9,7 +9,7 @@ export declare class ReportScorecardRules implements ISerializable {
9
9
  *
10
10
  * @param json
11
11
  */
12
- static fromJSON(json: any): ReportScorecardRules;
12
+ static fromJSON(json: JsonObject): ReportScorecardRules;
13
13
  /**
14
14
  * Base score for the scorecard.
15
15
  */
@@ -3,7 +3,7 @@ import { LatLng } from "../API/Geography/LatLng";
3
3
  import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
4
4
  import { ISerializable } from "../API/Interfaces/ISerializable";
5
5
  import { TimeSpan } from "../API/TimeSpan";
6
- import { datetime, double, uint, ulong } from "../API/Types";
6
+ import { datetime, double, nothing, uint, ulong, JsonObject } from "../API/Types";
7
7
  import { Asset } from "../Assets/Asset";
8
8
  import { ReportSummaryReason } from './ReportSummaryReason';
9
9
  /**
@@ -14,7 +14,7 @@ export declare class ReportSummary implements ISerializable, IBelongAsset {
14
14
  *
15
15
  * @param json
16
16
  */
17
- static fromJSON(json: any): ReportSummary;
17
+ static fromJSON(json: JsonObject): ReportSummary;
18
18
  /**
19
19
  * The asset to which this summary instance belongs.
20
20
  * {@link Asset.id}
@@ -73,7 +73,7 @@ export declare class ReportSummary implements ISerializable, IBelongAsset {
73
73
  * The asset state that ended this summary instance.
74
74
  */
75
75
  lastState: Asset | null;
76
- constructor(asset?: ulong, stateDetail?: string, instance?: uint, instancesCount?: uint, startingUtc?: Date | number | datetime, startingReason?: ReportSummaryReason, endingUtc?: Date | number | datetime, endingReason?: ReportSummaryReason, distance?: double, polyline?: ILatLng[], firstState?: Asset | null, lastState?: Asset | null);
76
+ constructor(asset: ulong, stateDetail: string, instance: uint, instancesCount: uint, startingUtc: Date | number | datetime, startingReason: ReportSummaryReason, endingUtc: Date | number | datetime, endingReason: ReportSummaryReason, distance?: double | nothing, polyline?: (ILatLng | JsonObject)[] | nothing, firstState?: Asset | nothing, lastState?: Asset | nothing);
77
77
  toJSON(): {
78
78
  asset: number | null;
79
79
  stateDetail: string;
@@ -85,35 +85,7 @@ export declare class ReportSummary implements ISerializable, IBelongAsset {
85
85
  endingReason: ReportSummaryReason;
86
86
  distance: number | null;
87
87
  polyline: any[];
88
- firstState: {
89
- suspended?: boolean | undefined;
90
- since?: string | null | undefined;
91
- references?: object | undefined;
92
- messagingAddress?: string | undefined;
93
- pictures?: number[] | undefined;
94
- id: number | null;
95
- v: number[];
96
- company: number;
97
- kind: import("../Assets/AssetType").AssetType;
98
- name: string;
99
- notes: string;
100
- icon: number;
101
- labels: string[];
102
- } | null;
103
- lastState: {
104
- suspended?: boolean | undefined;
105
- since?: string | null | undefined;
106
- references?: object | undefined;
107
- messagingAddress?: string | undefined;
108
- pictures?: number[] | undefined;
109
- id: number | null;
110
- v: number[];
111
- company: number;
112
- kind: import("../Assets/AssetType").AssetType;
113
- name: string;
114
- notes: string;
115
- icon: number;
116
- labels: string[];
117
- } | null;
88
+ firstState: JsonObject | null;
89
+ lastState: JsonObject | null;
118
90
  };
119
91
  }
@@ -3,7 +3,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
3
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
4
  import { INamed } from "../API/Interfaces/INamed";
5
5
  import { IVisual } from "../API/Interfaces/IVisual";
6
- import { codified, colour, ulong } from "../API/Types";
6
+ import { JsonObject, codified, colour, ulong } from "../API/Types";
7
7
  import { Company } from "../Companies/Company";
8
8
  import { ReportOptions } from "./ReportOptions";
9
9
  import { ReportType } from "./ReportType";
@@ -74,9 +74,9 @@ export declare class ReportTemplate extends BaseComponent implements IIdUlong, I
74
74
  stroke: string;
75
75
  graphic: string;
76
76
  };
77
- fromJSON(json: any, force?: boolean): boolean;
77
+ fromJSON(json: JsonObject, force?: boolean): boolean;
78
78
  /**
79
79
  * The {@link id} is the key.
80
80
  */
81
- getKey(): string;
81
+ getKey(): number;
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
2
  import { TimeSpan } from "../API/TimeSpan";
3
- import { double, timespan, uint, ulong } from "../API/Types";
3
+ import { double, timespan, uint, ulong, JsonObject } from "../API/Types";
4
4
  import { Asset } from "../Assets/Asset";
5
5
  /**
6
6
  * Totalled information from all the results of the report.
@@ -10,7 +10,7 @@ export declare class ReportTotal implements ISerializable {
10
10
  *
11
11
  * @param json
12
12
  */
13
- static fromJSON(json: any): ReportTotal;
13
+ static fromJSON(json: JsonObject): ReportTotal;
14
14
  /**
15
15
  * The asset to which this report total belongs.
16
16
  * {@link Asset.id}