@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.
- package/API/Arrays.d.ts +46 -0
- package/API/Base.d.ts +18 -0
- package/API/BaseComponent.d.ts +37 -0
- package/API/BaseCompound.d.ts +19 -0
- package/API/Codifier.d.ts +5 -0
- package/API/Component.d.ts +42 -0
- package/API/Compound.d.ts +19 -0
- package/API/Constants.d.ts +39 -0
- package/API/Conversion.d.ts +255 -0
- package/API/Files.d.ts +21 -0
- package/API/Functions.d.ts +191 -0
- package/API/Geography/Functions.d.ts +232 -0
- package/API/Geography/Interfaces.d.ts +145 -0
- package/API/Geography/LatLng.d.ts +78 -0
- package/API/Geography/LatLngBounds.d.ts +145 -0
- package/API/Geography/Position.d.ts +62 -0
- package/API/Geography/StreetAddress.d.ts +58 -0
- package/API/Geometry/Functions.d.ts +114 -0
- package/API/Geometry/Interfaces.d.ts +111 -0
- package/API/Geometry/Point.d.ts +80 -0
- package/API/Geometry/Radial.d.ts +109 -0
- package/API/Geometry/Rectangle.d.ts +163 -0
- package/API/Geometry/Size.d.ts +52 -0
- package/API/Guid.d.ts +4 -0
- package/API/Interfaces/IAmCompany.d.ts +11 -0
- package/API/Interfaces/IBelongAsset.d.ts +15 -0
- package/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
- package/API/Interfaces/IBelongCompany.d.ts +15 -0
- package/API/Interfaces/IDeserializable.d.ts +12 -0
- package/API/Interfaces/IEnabled.d.ts +10 -0
- package/API/Interfaces/IFileSize.d.ts +9 -0
- package/API/Interfaces/IGlobal.d.ts +11 -0
- package/API/Interfaces/IHavePermissions.d.ts +20 -0
- package/API/Interfaces/IHavePreferences.d.ts +29 -0
- package/API/Interfaces/IIconic.d.ts +15 -0
- package/API/Interfaces/IIdUlong.d.ts +10 -0
- package/API/Interfaces/ILabelled.d.ts +9 -0
- package/API/Interfaces/INamed.d.ts +13 -0
- package/API/Interfaces/IPictured.d.ts +15 -0
- package/API/Interfaces/IRequestable.d.ts +18 -0
- package/API/Interfaces/ISerializable.d.ts +10 -0
- package/API/Interfaces/ISuspendable.d.ts +16 -0
- package/API/Interfaces/IVisual.d.ts +18 -0
- package/API/Maps.d.ts +28 -0
- package/API/Objects.d.ts +33 -0
- package/API/SearchPattern.d.ts +45 -0
- package/API/TimeSpan.d.ts +140 -0
- package/API/Timezone.d.ts +44 -0
- package/API/Timezones.d.ts +7 -0
- package/API/Types.d.ts +114 -0
- package/Accounts/Contact.d.ts +140 -0
- package/Accounts/Machine.d.ts +131 -0
- package/Accounts/NotificationMethod.d.ts +17 -0
- package/Accounts/Permissions/Authorizer.d.ts +204 -0
- package/Accounts/Permissions/Permission.d.ts +57 -0
- package/Accounts/Permissions/PermissionEscalation.d.ts +33 -0
- package/Accounts/Permissions/PermissionEscalationState.d.ts +17 -0
- package/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
- package/Accounts/Permissions/PermissionLevel.d.ts +17 -0
- package/Accounts/Permissions/PermissionMethod.d.ts +13 -0
- package/Accounts/Permissions/PermissionType.d.ts +280 -0
- package/Accounts/Session.d.ts +92 -0
- package/Accounts/SessionStatus.d.ts +29 -0
- package/Accounts/SystemsOfUnits.d.ts +13 -0
- package/Accounts/User.d.ts +147 -0
- package/Accounts/UserAdvanced.d.ts +54 -0
- package/Accounts/UserGeneral.d.ts +100 -0
- package/Accounts/UserGroup.d.ts +52 -0
- package/Accounts/UserNotifications.d.ts +76 -0
- package/Assets/Asset.d.ts +192 -0
- package/Assets/AssetAdvanced.d.ts +90 -0
- package/Assets/AssetAttribute.d.ts +71 -0
- package/Assets/AssetDispatch.d.ts +63 -0
- package/Assets/AssetGeneral.d.ts +109 -0
- package/Assets/AssetPlaceStatus.d.ts +31 -0
- package/Assets/AssetPlaceStatusType.d.ts +17 -0
- package/Assets/AssetType.d.ts +21 -0
- package/Assets/Person.d.ts +25 -0
- package/Assets/PersonGeneral.d.ts +35 -0
- package/Assets/Trailer.d.ts +42 -0
- package/Assets/TrailerGeneral.d.ts +47 -0
- package/Assets/Vehicle.d.ts +73 -0
- package/Assets/VehicleAdvanced.d.ts +25 -0
- package/Assets/VehicleGeneral.d.ts +33 -0
- package/Behaviours/Behaviour.d.ts +79 -0
- package/Behaviours/BehaviourLog.d.ts +97 -0
- package/Behaviours/BehaviourLogType.d.ts +21 -0
- package/Behaviours/BehaviourParameter.d.ts +37 -0
- package/Behaviours/BehaviourParameterType.d.ts +21 -0
- package/Behaviours/BehaviourScript.d.ts +84 -0
- package/Billing/BillableBase.d.ts +85 -0
- package/Billing/BillableSmsProfile.d.ts +26 -0
- package/Billing/BillingCurrency.d.ts +17 -0
- package/Billing/BillingCycle.d.ts +17 -0
- package/Billing/BillingProfile.d.ts +107 -0
- package/Billing/Hosting/BillableHostingBase.d.ts +41 -0
- package/Billing/Hosting/BillableHostingDiscount.d.ts +35 -0
- package/Billing/Hosting/BillableHostingLicense.d.ts +29 -0
- package/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
- package/Billing/Hosting/BillableHostingRule.d.ts +29 -0
- package/Billing/Hosting/BillableHostingType.d.ts +41 -0
- package/Billing/Report/BillingReport.d.ts +114 -0
- package/Billing/Report/BillingReportBreakdown.d.ts +35 -0
- package/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
- package/Billing/Report/BillingReportLicenseBreakdown.d.ts +80 -0
- package/Billing/Report/BillingReportServiceBreakdown.d.ts +126 -0
- package/Billing/Report/BillingReportStatus.d.ts +25 -0
- package/Billing/Report/BillingReportSummary.d.ts +51 -0
- package/Companies/ColourStyle.d.ts +25 -0
- package/Companies/Company.d.ts +150 -0
- package/Companies/CompanyDirectory.d.ts +49 -0
- package/Companies/CompanyGeneral.d.ts +51 -0
- package/Companies/CompanyPolicies.d.ts +62 -0
- package/Companies/CompanyReseller.d.ts +163 -0
- package/Companies/CompanyStyles.d.ts +46 -0
- package/Companies/LabelStyle.d.ts +46 -0
- package/Companies/NotificationServerEmail.d.ts +99 -0
- package/Companies/NotificationServerSms.d.ts +25 -0
- package/Companies/PasswordExpiryMode.d.ts +17 -0
- package/Companies/PasswordPolicy.d.ts +51 -0
- package/Companies/SessionMultiUser.d.ts +17 -0
- package/Companies/SessionPolicy.d.ts +47 -0
- package/Dispatch/DispatchDirection.d.ts +53 -0
- package/Dispatch/DispatchJob.d.ts +109 -0
- package/Dispatch/DispatchJobPriority.d.ts +25 -0
- package/Dispatch/DispatchStep.d.ts +99 -0
- package/Dispatch/DispatchStepState.d.ts +27 -0
- package/Dispatch/DispatchStepStatus.d.ts +21 -0
- package/Dispatch/DispatchTask.d.ts +156 -0
- package/Dispatch/DispatchTaskStatus.d.ts +50 -0
- package/Hosting/Document.d.ts +71 -0
- package/Hosting/Fields/FormFieldAttachments.d.ts +38 -0
- package/Hosting/Fields/FormFieldBase.d.ts +71 -0
- package/Hosting/Fields/FormFieldBoolean.d.ts +46 -0
- package/Hosting/Fields/FormFieldChoice.d.ts +48 -0
- package/Hosting/Fields/FormFieldDate.d.ts +33 -0
- package/Hosting/Fields/FormFieldNumeric.d.ts +61 -0
- package/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
- package/Hosting/Fields/FormFieldSignature.d.ts +17 -0
- package/Hosting/Fields/FormFieldText.d.ts +39 -0
- package/Hosting/Fields/FormFieldTime.d.ts +34 -0
- package/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
- package/Hosting/FormFieldType.d.ts +127 -0
- package/Hosting/FormResult.d.ts +97 -0
- package/Hosting/FormTemplate.d.ts +81 -0
- package/Images/Dashcam.d.ts +70 -0
- package/Images/DashcamBase.d.ts +98 -0
- package/Images/DashcamLive.d.ts +43 -0
- package/Images/DashcamMediaType.d.ts +17 -0
- package/Images/Icon.d.ts +87 -0
- package/Images/IconGlyph.d.ts +54 -0
- package/Images/IconLabel.d.ts +32 -0
- package/Images/IconLayer.d.ts +33 -0
- package/Images/Picture.d.ts +73 -0
- package/Maintenance/MaintenanceInterval.d.ts +49 -0
- package/Maintenance/MaintenanceJob.d.ts +137 -0
- package/Maintenance/MaintenanceJobStatus.d.ts +21 -0
- package/Maintenance/MaintenanceSchedule.d.ts +119 -0
- package/Messaging/AlertPriority.d.ts +17 -0
- package/Messaging/AssetAlert.d.ts +28 -0
- package/Messaging/AssetMessage.d.ts +40 -0
- package/Messaging/MessageBase.d.ts +101 -0
- package/Messaging/MessageFolder.d.ts +13 -0
- package/Messaging/MessageStatus.d.ts +29 -0
- package/Messaging/MessageType.d.ts +33 -0
- package/Places/Place.d.ts +116 -0
- package/Places/PlaceType.d.ts +25 -0
- package/Providers/Config/ProviderConfig.d.ts +72 -0
- package/Providers/Config/ProviderRegistration.d.ts +123 -0
- package/Providers/Config/ProviderScript.d.ts +87 -0
- package/Providers/Config/ProviderScriptBlock.d.ts +40 -0
- package/Providers/Config/ProviderScriptParameter.d.ts +49 -0
- package/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
- package/Providers/Configuration/ProviderConfiguration.d.ts +68 -0
- package/Providers/Configuration/ProviderConfigurationNode.d.ts +65 -0
- package/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
- package/Providers/Configuration/ProviderGeofenceBase.d.ts +31 -0
- package/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
- package/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
- package/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
- package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
- package/Providers/Provider.d.ts +145 -0
- package/Providers/ProviderAdvanced.d.ts +51 -0
- package/Providers/ProviderCommand.d.ts +36 -0
- package/Providers/ProviderCommandStatus.d.ts +29 -0
- package/Providers/ProviderCommandType.d.ts +37 -0
- package/Providers/ProviderControl.d.ts +42 -0
- package/Providers/ProviderData.d.ts +30 -0
- package/Providers/ProviderGeneral.d.ts +117 -0
- package/Providers/ProviderType.d.ts +106 -0
- package/README.md +13 -0
- package/Reports/ReportBreakdown.d.ts +72 -0
- package/Reports/ReportBreakdownJob.d.ts +62 -0
- package/Reports/ReportBreakdownMessage.d.ts +65 -0
- package/Reports/ReportBreakdownTask.d.ts +71 -0
- package/Reports/ReportDataTotal.d.ts +50 -0
- package/Reports/ReportFilterMode.d.ts +17 -0
- package/Reports/ReportNotifications.d.ts +31 -0
- package/Reports/ReportOptions.d.ts +51 -0
- package/Reports/ReportParameter.d.ts +25 -0
- package/Reports/ReportParameterType.d.ts +59 -0
- package/Reports/ReportRecurrence.d.ts +54 -0
- package/Reports/ReportRecurrenceType.d.ts +34 -0
- package/Reports/ReportResult.d.ts +170 -0
- package/Reports/ReportResultData.d.ts +17 -0
- package/Reports/ReportSchedule.d.ts +112 -0
- package/Reports/ReportScorecard.d.ts +39 -0
- package/Reports/ReportScorecardParameter.d.ts +31 -0
- package/Reports/ReportScorecardRules.d.ts +26 -0
- package/Reports/ReportStatus.d.ts +29 -0
- package/Reports/ReportSummary.d.ts +119 -0
- package/Reports/ReportSummaryReason.d.ts +27 -0
- package/Reports/ReportTemplate.d.ts +82 -0
- package/Reports/ReportTotal.d.ts +48 -0
- package/Reports/ReportType.d.ts +42 -0
- package/Storage.d.ts +166 -0
- package/objects.d.ts +534 -0
- package/objects.min.js +7 -0
- package/package.json +22 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress lifetime of command for the device/modem.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ProviderCommandStatus {
|
|
5
|
+
/**
|
|
6
|
+
* The new command has been created, but not yet sent to the provider.
|
|
7
|
+
*/
|
|
8
|
+
created = "created",
|
|
9
|
+
/**
|
|
10
|
+
* Command was processed and sent to the provider.
|
|
11
|
+
*/
|
|
12
|
+
pending = "pending",
|
|
13
|
+
/**
|
|
14
|
+
* Provider is taking some action related to this command. eg. Checking in for config update or getting tasks list.
|
|
15
|
+
*/
|
|
16
|
+
inProgress = "inProgress",
|
|
17
|
+
/**
|
|
18
|
+
* Command was successfully processed by the provider.
|
|
19
|
+
*/
|
|
20
|
+
completed = "completed",
|
|
21
|
+
/**
|
|
22
|
+
* Something went wrong while trying to send or process the command.
|
|
23
|
+
*/
|
|
24
|
+
failed = "failed",
|
|
25
|
+
/**
|
|
26
|
+
* Sending of the new command was halted by a user.
|
|
27
|
+
*/
|
|
28
|
+
cancelled = "cancelled"
|
|
29
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kind of command for the device/modem.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ProviderCommandType {
|
|
5
|
+
/**
|
|
6
|
+
* If the type of command has not yet been determined, or there was an error determining its type.
|
|
7
|
+
*/
|
|
8
|
+
unknown = "unknown",
|
|
9
|
+
/**
|
|
10
|
+
* Configuration
|
|
11
|
+
*/
|
|
12
|
+
config = "config",
|
|
13
|
+
/**
|
|
14
|
+
* Geofence
|
|
15
|
+
*/
|
|
16
|
+
geofence = "geofence",
|
|
17
|
+
/**
|
|
18
|
+
* Dispatch Job
|
|
19
|
+
*/
|
|
20
|
+
dispatch = "dispatch",
|
|
21
|
+
/**
|
|
22
|
+
* GPS report
|
|
23
|
+
*/
|
|
24
|
+
gps = "gps",
|
|
25
|
+
/**
|
|
26
|
+
* Status report
|
|
27
|
+
*/
|
|
28
|
+
status = "status",
|
|
29
|
+
/**
|
|
30
|
+
* Control output wire
|
|
31
|
+
*/
|
|
32
|
+
output = "output",
|
|
33
|
+
/**
|
|
34
|
+
* Custom (modem specific) message
|
|
35
|
+
*/
|
|
36
|
+
custom = "custom"
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { ulong } from "../API/Types";
|
|
4
|
+
import { Company } from "../Companies/Company";
|
|
5
|
+
import { ProviderCommand } from "./ProviderCommand";
|
|
6
|
+
import { ProviderCommandType } from "./ProviderCommandType";
|
|
7
|
+
/**
|
|
8
|
+
* Managing communication with Device/hardware.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ProviderControl extends BaseComponent implements IBelongCompany {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of this device.
|
|
13
|
+
* {@link Provider.id}
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* The company to which this device belongs.
|
|
18
|
+
* {@link Company.id}
|
|
19
|
+
*/
|
|
20
|
+
companyId: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The company to which this device belongs.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
get company(): Company;
|
|
26
|
+
set company(value: Company);
|
|
27
|
+
/**
|
|
28
|
+
* Collection of commands for this provider.
|
|
29
|
+
*/
|
|
30
|
+
commands: Map<ProviderCommandType, ProviderCommand>;
|
|
31
|
+
toJSON(): {
|
|
32
|
+
id: string | null;
|
|
33
|
+
v: number[];
|
|
34
|
+
company: number | null;
|
|
35
|
+
commands: object;
|
|
36
|
+
};
|
|
37
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The {@link id} is the key.
|
|
40
|
+
*/
|
|
41
|
+
getKey(): string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
+
import { datetime } from "../API/Types";
|
|
3
|
+
/**
|
|
4
|
+
* A fragment of data given by a device.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProviderData implements ISerializable {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param json
|
|
10
|
+
*/
|
|
11
|
+
static fromJSON(json: any): ProviderData;
|
|
12
|
+
/**
|
|
13
|
+
* The value of the data given like true, 17.3, "asdf", etc...
|
|
14
|
+
*/
|
|
15
|
+
value: any;
|
|
16
|
+
/**
|
|
17
|
+
* Date/time stamp from when the device recorded (or reported) the data.
|
|
18
|
+
*/
|
|
19
|
+
dts: Date;
|
|
20
|
+
/**
|
|
21
|
+
* The relevant unit for the data provided like Km/h, degrees, volts, RPM, etc...
|
|
22
|
+
*/
|
|
23
|
+
unit: string;
|
|
24
|
+
constructor(value?: any, dts?: Date | number | datetime, unit?: string);
|
|
25
|
+
toJSON(): {
|
|
26
|
+
value: any;
|
|
27
|
+
dts: string | null;
|
|
28
|
+
unit: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
4
|
+
import { ISuspendable } from "../API/Interfaces/ISuspendable";
|
|
5
|
+
import { phone, ulong } from "../API/Types";
|
|
6
|
+
import { Asset } from "../Assets/Asset";
|
|
7
|
+
import { Company } from "../Companies/Company";
|
|
8
|
+
import { ProviderConfig } from "./Config/ProviderConfig";
|
|
9
|
+
import { ProviderConfiguration } from "./Configuration/ProviderConfiguration";
|
|
10
|
+
import { ProviderType } from "./ProviderType";
|
|
11
|
+
/**
|
|
12
|
+
* Device/hardware information and configuration.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ProviderGeneral extends BaseComponent implements INamed, IBelongCompany, ISuspendable {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier of this device.
|
|
17
|
+
* {@link Provider.id}
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The company to which this device belongs.
|
|
22
|
+
* {@link Company.id}
|
|
23
|
+
*/
|
|
24
|
+
companyId: ulong;
|
|
25
|
+
/**
|
|
26
|
+
* The company to which this device belongs.
|
|
27
|
+
* {@link Company.id}
|
|
28
|
+
*/
|
|
29
|
+
get company(): Company;
|
|
30
|
+
set company(value: Company);
|
|
31
|
+
/**
|
|
32
|
+
* A nickname given to the device/hardware.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Notes!
|
|
37
|
+
*/
|
|
38
|
+
notes: string;
|
|
39
|
+
/**
|
|
40
|
+
* The kind of communication protocol this device uses.
|
|
41
|
+
*/
|
|
42
|
+
kind: ProviderType;
|
|
43
|
+
/**
|
|
44
|
+
* The asset for which this device provides field data.
|
|
45
|
+
* {@link Asset.id}
|
|
46
|
+
*/
|
|
47
|
+
assetId: ulong;
|
|
48
|
+
/**
|
|
49
|
+
* The asset for which this device provides field data.
|
|
50
|
+
* {@link Asset.id}
|
|
51
|
+
*/
|
|
52
|
+
get asset(): Asset;
|
|
53
|
+
set asset(value: Asset);
|
|
54
|
+
/**
|
|
55
|
+
* The provider's current (or pending) configuration profile.
|
|
56
|
+
* {@link ProviderConfig.id}
|
|
57
|
+
* {@link ProviderConfiguration.id}
|
|
58
|
+
*/
|
|
59
|
+
configurationId: ulong;
|
|
60
|
+
/**
|
|
61
|
+
* The provider's current (or pending) configuration profile.
|
|
62
|
+
* {@link ProviderConfig.id}
|
|
63
|
+
* {@link ProviderConfiguration.id}
|
|
64
|
+
*/
|
|
65
|
+
get configuration(): ProviderConfig | ProviderConfiguration;
|
|
66
|
+
set configuration(value: ProviderConfig | ProviderConfiguration);
|
|
67
|
+
/**
|
|
68
|
+
* The password programmed on the device used to ensure the system is the only client authorized to make changes.
|
|
69
|
+
*/
|
|
70
|
+
password: string;
|
|
71
|
+
/**
|
|
72
|
+
* The firmware/application version number.
|
|
73
|
+
*/
|
|
74
|
+
firmware: string;
|
|
75
|
+
/**
|
|
76
|
+
* The phone number of this device.
|
|
77
|
+
*/
|
|
78
|
+
phoneNumber: phone;
|
|
79
|
+
/**
|
|
80
|
+
* A list of read-only values about the device like IMEI, ESN, firmware version, hardware revision, etc...
|
|
81
|
+
*/
|
|
82
|
+
information: Map<string, string>;
|
|
83
|
+
/**
|
|
84
|
+
* ICCID of the SIM card installed in this provider
|
|
85
|
+
*/
|
|
86
|
+
sim: string;
|
|
87
|
+
toJSON(): {
|
|
88
|
+
asset?: number | null | undefined;
|
|
89
|
+
password?: string | undefined;
|
|
90
|
+
firmware?: string | undefined;
|
|
91
|
+
phoneNumber?: number | null | undefined;
|
|
92
|
+
information?: object | undefined;
|
|
93
|
+
sim?: string | undefined;
|
|
94
|
+
suspended?: boolean | undefined;
|
|
95
|
+
since?: string | null | undefined;
|
|
96
|
+
id: string | null;
|
|
97
|
+
company: number | null;
|
|
98
|
+
name: string;
|
|
99
|
+
notes: string;
|
|
100
|
+
kind: ProviderType;
|
|
101
|
+
configuration: number | null;
|
|
102
|
+
v: number[];
|
|
103
|
+
};
|
|
104
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The {@link id} is the key.
|
|
107
|
+
*/
|
|
108
|
+
getKey(): string;
|
|
109
|
+
/**
|
|
110
|
+
* Indicates whether this object is suspended from event processing.
|
|
111
|
+
*/
|
|
112
|
+
suspended: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Timestamp from the action that deleted or suspended this object.
|
|
115
|
+
*/
|
|
116
|
+
since: Date;
|
|
117
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocols supported by the system.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ProviderType {
|
|
5
|
+
/**
|
|
6
|
+
* Your guess is as good as mine.
|
|
7
|
+
* It should never be this.
|
|
8
|
+
*/
|
|
9
|
+
unknown = "unknown",
|
|
10
|
+
/**
|
|
11
|
+
* Sierra Wireless AirLink RAP protocol
|
|
12
|
+
* @deprecated No longer supported
|
|
13
|
+
*/
|
|
14
|
+
airlink = "airlink",
|
|
15
|
+
/**
|
|
16
|
+
* Sixnet BlueTree BEP protocol
|
|
17
|
+
* @deprecated No longer supported
|
|
18
|
+
*/
|
|
19
|
+
bluetree = "bluetree",
|
|
20
|
+
/**
|
|
21
|
+
* Gen-X modem protocol
|
|
22
|
+
*/
|
|
23
|
+
genx = "genx",
|
|
24
|
+
/**
|
|
25
|
+
* CalAmp LMU series protocol
|
|
26
|
+
* @deprecated Use calamp instead
|
|
27
|
+
*/
|
|
28
|
+
lmu = "lmu",
|
|
29
|
+
/**
|
|
30
|
+
* CalAmp TTU series protocol
|
|
31
|
+
* @deprecated Use calamp instead
|
|
32
|
+
*/
|
|
33
|
+
ttu = "ttu",
|
|
34
|
+
/**
|
|
35
|
+
* Novotel Enfora SpiderAT protocol
|
|
36
|
+
* @deprecated Use enfora instead
|
|
37
|
+
*/
|
|
38
|
+
spiderAT = "spiderAT",
|
|
39
|
+
/**
|
|
40
|
+
* Novotel Enfora SpiderMT protocol
|
|
41
|
+
* @deprecated Use enfora instead
|
|
42
|
+
*/
|
|
43
|
+
spiderMT = "spiderMT",
|
|
44
|
+
/**
|
|
45
|
+
* Trak iT Wireless Mobile App
|
|
46
|
+
*/
|
|
47
|
+
mobile = "mobile",
|
|
48
|
+
/**
|
|
49
|
+
* TachWest DataTrans protocol
|
|
50
|
+
*/
|
|
51
|
+
datatrans = "datatrans",
|
|
52
|
+
/**
|
|
53
|
+
* Xirgo modem protocol
|
|
54
|
+
* @deprecated No longer supported
|
|
55
|
+
*/
|
|
56
|
+
xirgo = "xirgo",
|
|
57
|
+
/**
|
|
58
|
+
* Bell Mobility LBS
|
|
59
|
+
*/
|
|
60
|
+
lbs = "lbs",
|
|
61
|
+
/**
|
|
62
|
+
* Certified Tracking protocol
|
|
63
|
+
* @deprecated No longer supported
|
|
64
|
+
*/
|
|
65
|
+
titan = "titan",
|
|
66
|
+
/**
|
|
67
|
+
* Concox Tracker protocol
|
|
68
|
+
* @deprecated No longer supported
|
|
69
|
+
*/
|
|
70
|
+
concox = "concox",
|
|
71
|
+
/**
|
|
72
|
+
* Aspenta Open API format
|
|
73
|
+
* @deprecated No longer supported
|
|
74
|
+
*/
|
|
75
|
+
aspenta = "aspenta",
|
|
76
|
+
/**
|
|
77
|
+
* Fleet Freedom JSON protocol
|
|
78
|
+
* @deprecated No longer supported
|
|
79
|
+
*/
|
|
80
|
+
json = "json",
|
|
81
|
+
/**
|
|
82
|
+
* SmartWitness dashcam formats
|
|
83
|
+
*/
|
|
84
|
+
smartwitness = "smartwitness",
|
|
85
|
+
/**
|
|
86
|
+
* CalAmp LMU/TTU modem protocols
|
|
87
|
+
*/
|
|
88
|
+
calamp = "calamp",
|
|
89
|
+
/**
|
|
90
|
+
* Enfora (Novotel) modem protocols
|
|
91
|
+
* @deprecated No longer supported
|
|
92
|
+
*/
|
|
93
|
+
enfora = "enfora",
|
|
94
|
+
/**
|
|
95
|
+
* BeWhere beacon protocols
|
|
96
|
+
*/
|
|
97
|
+
bewhere = "bewhere",
|
|
98
|
+
/**
|
|
99
|
+
* ATrack device protocols
|
|
100
|
+
*/
|
|
101
|
+
atrack = "atrack",
|
|
102
|
+
/**
|
|
103
|
+
* Teltonika device protocols
|
|
104
|
+
*/
|
|
105
|
+
teltonika = "teltonika"
|
|
106
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Trak-iT API Object Model
|
|
2
|
+
|
|
3
|
+
All of the Trak-iT APIs use the same object definitions.
|
|
4
|
+
Other Trak-iT API libraries are available on [GitHub](https://github.com/trakitwireless) and [npm](https://www.npmjs.com/org/trakit).
|
|
5
|
+
|
|
6
|
+
### Prerequisites
|
|
7
|
+
|
|
8
|
+
We do not require any other packages, however, we are targetting `ESNext`, so if your project uses CommonJS or another module manager, you will need to account for that yourself.
|
|
9
|
+
|
|
10
|
+
## Questions and Feedback
|
|
11
|
+
|
|
12
|
+
If you have any questions, please start for the project on GitHub
|
|
13
|
+
https://github.com/trakitwireless/trakit-ts-objects/issues
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
+
import { uint, ulong } from "../API/Types";
|
|
3
|
+
import { Asset } from "../Assets/Asset";
|
|
4
|
+
import { AssetAdvanced } from "../Assets/AssetAdvanced";
|
|
5
|
+
import { AssetGeneral } from "../Assets/AssetGeneral";
|
|
6
|
+
/**
|
|
7
|
+
* Asset information used in calculating a summary instance.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ReportBreakdown implements ISerializable {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param json
|
|
13
|
+
*/
|
|
14
|
+
static fromJSON(json: any): ReportBreakdown;
|
|
15
|
+
/**
|
|
16
|
+
* The asset to which this event data belongs.
|
|
17
|
+
*/
|
|
18
|
+
assetId: ulong;
|
|
19
|
+
/**
|
|
20
|
+
* The asset to which this event data belongs.
|
|
21
|
+
*/
|
|
22
|
+
get asset(): Asset;
|
|
23
|
+
/**
|
|
24
|
+
* Report specific identifier of the event data.
|
|
25
|
+
*/
|
|
26
|
+
instance: uint;
|
|
27
|
+
/**
|
|
28
|
+
* Identifiers of the summary instances that used this event.
|
|
29
|
+
*/
|
|
30
|
+
summaryInstances: uint[];
|
|
31
|
+
/**
|
|
32
|
+
* General Asset information.
|
|
33
|
+
*/
|
|
34
|
+
general: AssetGeneral | null;
|
|
35
|
+
/**
|
|
36
|
+
* Advanced/detailed information used.
|
|
37
|
+
*/
|
|
38
|
+
advanced: AssetAdvanced | null;
|
|
39
|
+
constructor(asset?: ulong, instance?: uint, summaryInstances?: uint[], general?: AssetGeneral | null, advanced?: AssetAdvanced | null);
|
|
40
|
+
toJSON(): {
|
|
41
|
+
asset: number | null;
|
|
42
|
+
instance: number | null;
|
|
43
|
+
summaryInstances: number[];
|
|
44
|
+
general: {
|
|
45
|
+
suspended?: boolean | undefined;
|
|
46
|
+
since?: string | null | undefined;
|
|
47
|
+
references?: object | undefined;
|
|
48
|
+
messagingAddress?: string | undefined;
|
|
49
|
+
pictures?: number[] | undefined;
|
|
50
|
+
id: number | null;
|
|
51
|
+
v: number[];
|
|
52
|
+
company: number;
|
|
53
|
+
kind: import("../Assets/AssetType").AssetType;
|
|
54
|
+
name: string;
|
|
55
|
+
notes: string;
|
|
56
|
+
icon: number;
|
|
57
|
+
labels: string[];
|
|
58
|
+
} | null;
|
|
59
|
+
advanced: {
|
|
60
|
+
id: number | null;
|
|
61
|
+
v: number[];
|
|
62
|
+
company: number;
|
|
63
|
+
position: import("../API/Geography/Interfaces").IPosition | null;
|
|
64
|
+
odometer: number;
|
|
65
|
+
tags: string[];
|
|
66
|
+
attributes: object;
|
|
67
|
+
providers: string[];
|
|
68
|
+
relationships: number[];
|
|
69
|
+
places: object;
|
|
70
|
+
} | null;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { uint, ulong } from "../API/Types";
|
|
2
|
+
import { AssetAdvanced } from "../Assets/AssetAdvanced";
|
|
3
|
+
import { AssetGeneral } from "../Assets/AssetGeneral";
|
|
4
|
+
import { DispatchJob } from "../Dispatch/DispatchJob";
|
|
5
|
+
import { ReportBreakdown } from "./ReportBreakdown";
|
|
6
|
+
/**
|
|
7
|
+
* Dispatch Job information used in this report.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ReportBreakdownJob extends ReportBreakdown {
|
|
10
|
+
/**
|
|
11
|
+
* The Job used.
|
|
12
|
+
*/
|
|
13
|
+
job: DispatchJob;
|
|
14
|
+
constructor(job: DispatchJob, asset?: ulong, instance?: uint, summaryInstances?: uint[], general?: AssetGeneral | null, advanced?: AssetAdvanced | null);
|
|
15
|
+
toJSON(): {
|
|
16
|
+
job: {
|
|
17
|
+
id: number | null;
|
|
18
|
+
company: number | null;
|
|
19
|
+
v: number[];
|
|
20
|
+
driver: string;
|
|
21
|
+
created: string | null;
|
|
22
|
+
name: string;
|
|
23
|
+
instructions: string;
|
|
24
|
+
priority: import("../Dispatch/DispatchJobPriority").DispatchJobPriority;
|
|
25
|
+
references: object;
|
|
26
|
+
labels: string[];
|
|
27
|
+
tags: string[];
|
|
28
|
+
forms: number[];
|
|
29
|
+
steps: any[];
|
|
30
|
+
};
|
|
31
|
+
asset: number | null;
|
|
32
|
+
instance: number | null;
|
|
33
|
+
summaryInstances: number[];
|
|
34
|
+
general: {
|
|
35
|
+
suspended?: boolean | undefined;
|
|
36
|
+
since?: string | null | undefined;
|
|
37
|
+
references?: object | undefined;
|
|
38
|
+
messagingAddress?: string | undefined;
|
|
39
|
+
pictures?: number[] | undefined;
|
|
40
|
+
id: number | null;
|
|
41
|
+
v: number[];
|
|
42
|
+
company: number;
|
|
43
|
+
kind: import("../Assets/AssetType").AssetType;
|
|
44
|
+
name: string;
|
|
45
|
+
notes: string;
|
|
46
|
+
icon: number;
|
|
47
|
+
labels: string[];
|
|
48
|
+
} | null;
|
|
49
|
+
advanced: {
|
|
50
|
+
id: number | null;
|
|
51
|
+
v: number[];
|
|
52
|
+
company: number;
|
|
53
|
+
position: import("../API/Geography/Interfaces").IPosition | null;
|
|
54
|
+
odometer: number;
|
|
55
|
+
tags: string[];
|
|
56
|
+
attributes: object;
|
|
57
|
+
providers: string[];
|
|
58
|
+
relationships: number[];
|
|
59
|
+
places: object;
|
|
60
|
+
} | null;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { uint, ulong } from "../API/Types";
|
|
2
|
+
import { AssetAdvanced } from "../Assets/AssetAdvanced";
|
|
3
|
+
import { AssetGeneral } from "../Assets/AssetGeneral";
|
|
4
|
+
import { AssetMessage } from "../Messaging/AssetMessage";
|
|
5
|
+
import { ReportBreakdown } from "./ReportBreakdown";
|
|
6
|
+
/**
|
|
7
|
+
* Message information used in this report.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ReportBreakdownMessage extends ReportBreakdown {
|
|
10
|
+
/**
|
|
11
|
+
* The Message used.
|
|
12
|
+
*/
|
|
13
|
+
message: AssetMessage;
|
|
14
|
+
constructor(message: AssetMessage, asset?: ulong, instance?: uint, summaryInstances?: uint[], general?: AssetGeneral | null, advanced?: AssetAdvanced | null);
|
|
15
|
+
toJSON(): {
|
|
16
|
+
message: {
|
|
17
|
+
folder: import("../Messaging/MessageFolder").MessageFolder;
|
|
18
|
+
incoming: boolean;
|
|
19
|
+
readBy: string;
|
|
20
|
+
id: number | null;
|
|
21
|
+
v: number[];
|
|
22
|
+
company: number;
|
|
23
|
+
kind: import("../Messaging/MessageType").MessageType;
|
|
24
|
+
status: import("../Messaging/MessageStatus").MessageStatus;
|
|
25
|
+
to: string;
|
|
26
|
+
from: string;
|
|
27
|
+
body: string;
|
|
28
|
+
processed: string | null;
|
|
29
|
+
delivered: string | null;
|
|
30
|
+
subject: string;
|
|
31
|
+
asset: number;
|
|
32
|
+
user: string;
|
|
33
|
+
};
|
|
34
|
+
asset: number | null;
|
|
35
|
+
instance: number | null;
|
|
36
|
+
summaryInstances: number[];
|
|
37
|
+
general: {
|
|
38
|
+
suspended?: boolean | undefined;
|
|
39
|
+
since?: string | null | undefined;
|
|
40
|
+
references?: object | undefined;
|
|
41
|
+
messagingAddress?: string | undefined;
|
|
42
|
+
pictures?: number[] | undefined;
|
|
43
|
+
id: number | null;
|
|
44
|
+
v: number[];
|
|
45
|
+
company: number;
|
|
46
|
+
kind: import("../Assets/AssetType").AssetType;
|
|
47
|
+
name: string;
|
|
48
|
+
notes: string;
|
|
49
|
+
icon: number;
|
|
50
|
+
labels: string[];
|
|
51
|
+
} | null;
|
|
52
|
+
advanced: {
|
|
53
|
+
id: number | null;
|
|
54
|
+
v: number[];
|
|
55
|
+
company: number;
|
|
56
|
+
position: import("../API/Geography/Interfaces").IPosition | null;
|
|
57
|
+
odometer: number;
|
|
58
|
+
tags: string[];
|
|
59
|
+
attributes: object;
|
|
60
|
+
providers: string[];
|
|
61
|
+
relationships: number[];
|
|
62
|
+
places: object;
|
|
63
|
+
} | null;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { uint, ulong } from "../API/Types";
|
|
2
|
+
import { AssetAdvanced } from "../Assets/AssetAdvanced";
|
|
3
|
+
import { AssetGeneral } from "../Assets/AssetGeneral";
|
|
4
|
+
import { DispatchTask } from "../Dispatch/DispatchTask";
|
|
5
|
+
import { ReportBreakdown } from "./ReportBreakdown";
|
|
6
|
+
/**
|
|
7
|
+
* Dispatch Task information used in this report.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ReportBreakdownTask extends ReportBreakdown {
|
|
10
|
+
/**
|
|
11
|
+
* The Task used.
|
|
12
|
+
*/
|
|
13
|
+
task: DispatchTask;
|
|
14
|
+
constructor(task: DispatchTask, asset?: ulong, instance?: uint, summaryInstances?: uint[], general?: AssetGeneral | null, advanced?: AssetAdvanced | null);
|
|
15
|
+
toJSON(): {
|
|
16
|
+
task: {
|
|
17
|
+
id: number | null;
|
|
18
|
+
company: number | null;
|
|
19
|
+
asset: number | null;
|
|
20
|
+
v: number[];
|
|
21
|
+
name: string;
|
|
22
|
+
references: object;
|
|
23
|
+
place: number | null;
|
|
24
|
+
address: string;
|
|
25
|
+
latlng: import("../API/Geography/Interfaces").ILatLng;
|
|
26
|
+
status: import("../Dispatch/DispatchTaskStatus").DispatchTaskStatus;
|
|
27
|
+
created: string | null;
|
|
28
|
+
eta: string | null;
|
|
29
|
+
duration: string;
|
|
30
|
+
arrived: string | null;
|
|
31
|
+
completed: string | null;
|
|
32
|
+
instructions: string;
|
|
33
|
+
signature: boolean;
|
|
34
|
+
signatory: string;
|
|
35
|
+
notes: string;
|
|
36
|
+
attachments: number[];
|
|
37
|
+
updatedBy: string;
|
|
38
|
+
updatedUtc: string | null;
|
|
39
|
+
};
|
|
40
|
+
asset: number | null;
|
|
41
|
+
instance: number | null;
|
|
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;
|
|
70
|
+
};
|
|
71
|
+
}
|