@trakit/objects 0.0.16 → 0.0.17
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/Companies/NotificationServerEmail.d.ts +0 -2
- package/README.md +24 -24
- package/index.d.ts +1 -1
- package/package.json +37 -37
- package/trakit-objects.min.js +2 -2
- package/objects/API/Arrays.d.ts +0 -46
- package/objects/API/Base.d.ts +0 -19
- package/objects/API/BaseComponent.d.ts +0 -40
- package/objects/API/BaseCompound.d.ts +0 -19
- package/objects/API/Codifier.d.ts +0 -15
- package/objects/API/Constants.d.ts +0 -39
- package/objects/API/Conversion.d.ts +0 -255
- package/objects/API/Encoding.d.ts +0 -9
- package/objects/API/Files.d.ts +0 -21
- package/objects/API/Functions.d.ts +0 -196
- package/objects/API/Geography/Functions.d.ts +0 -236
- package/objects/API/Geography/Interfaces.d.ts +0 -150
- package/objects/API/Geography/LatLng.d.ts +0 -86
- package/objects/API/Geography/LatLngBounds.d.ts +0 -146
- package/objects/API/Geography/Position.d.ts +0 -74
- package/objects/API/Geography/StreetAddress.d.ts +0 -59
- package/objects/API/Geometry/Functions.d.ts +0 -114
- package/objects/API/Geometry/Interfaces.d.ts +0 -111
- package/objects/API/Geometry/Point.d.ts +0 -81
- package/objects/API/Geometry/Radial.d.ts +0 -110
- package/objects/API/Geometry/Rectangle.d.ts +0 -159
- package/objects/API/Geometry/Size.d.ts +0 -58
- package/objects/API/Guid.d.ts +0 -4
- package/objects/API/Interfaces/IAmCompany.d.ts +0 -11
- package/objects/API/Interfaces/IBelongAsset.d.ts +0 -15
- package/objects/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
- package/objects/API/Interfaces/IBelongCompany.d.ts +0 -15
- package/objects/API/Interfaces/IDeserializable.d.ts +0 -13
- package/objects/API/Interfaces/IEnabled.d.ts +0 -10
- package/objects/API/Interfaces/IFileSize.d.ts +0 -9
- package/objects/API/Interfaces/IGlobal.d.ts +0 -11
- package/objects/API/Interfaces/IHavePermissions.d.ts +0 -20
- package/objects/API/Interfaces/IHavePreferences.d.ts +0 -29
- package/objects/API/Interfaces/IIconic.d.ts +0 -15
- package/objects/API/Interfaces/IIdUlong.d.ts +0 -10
- package/objects/API/Interfaces/ILabelled.d.ts +0 -10
- package/objects/API/Interfaces/INamed.d.ts +0 -13
- package/objects/API/Interfaces/IPictured.d.ts +0 -15
- package/objects/API/Interfaces/IRequestable.d.ts +0 -22
- package/objects/API/Interfaces/ISerializable.d.ts +0 -10
- package/objects/API/Interfaces/ISuspendable.d.ts +0 -16
- package/objects/API/Interfaces/IVisual.d.ts +0 -18
- package/objects/API/Maps.d.ts +0 -28
- package/objects/API/Objects.d.ts +0 -5
- package/objects/API/SearchPattern.d.ts +0 -46
- package/objects/API/TimeSpan.d.ts +0 -109
- package/objects/API/Timezone.d.ts +0 -44
- package/objects/API/Timezones.d.ts +0 -7
- package/objects/API/Types.d.ts +0 -132
- package/objects/Accounts/Contact.d.ts +0 -139
- package/objects/Accounts/Machine.d.ts +0 -139
- package/objects/Accounts/MultiFactorType.d.ts +0 -17
- package/objects/Accounts/NotificationMethod.d.ts +0 -17
- package/objects/Accounts/Permissions/Authorizer.d.ts +0 -204
- package/objects/Accounts/Permissions/Permission.d.ts +0 -56
- package/objects/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
- package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
- package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionLevel.d.ts +0 -17
- package/objects/Accounts/Permissions/PermissionMethod.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionType.d.ts +0 -280
- package/objects/Accounts/SSOIdentityProvider.d.ts +0 -25
- package/objects/Accounts/Session.d.ts +0 -89
- package/objects/Accounts/SessionStatus.d.ts +0 -29
- package/objects/Accounts/SystemsOfUnits.d.ts +0 -13
- package/objects/Accounts/User.d.ts +0 -167
- package/objects/Accounts/UserAdvanced.d.ts +0 -53
- package/objects/Accounts/UserAuthentication.d.ts +0 -55
- package/objects/Accounts/UserGeneral.d.ts +0 -98
- package/objects/Accounts/UserGroup.d.ts +0 -51
- package/objects/Accounts/UserMFA.d.ts +0 -47
- package/objects/Accounts/UserNotifications.d.ts +0 -76
- package/objects/Accounts/UserSSO.d.ts +0 -37
- package/objects/Assets/Asset.d.ts +0 -218
- package/objects/Assets/AssetAdvanced.d.ts +0 -77
- package/objects/Assets/AssetAttribute.d.ts +0 -71
- package/objects/Assets/AssetDispatch.d.ts +0 -55
- package/objects/Assets/AssetGeneral.d.ts +0 -127
- package/objects/Assets/AssetPlaceStatus.d.ts +0 -31
- package/objects/Assets/AssetPlaceStatusType.d.ts +0 -17
- package/objects/Assets/AssetType.d.ts +0 -21
- package/objects/Behaviours/Behaviour.d.ts +0 -78
- package/objects/Behaviours/BehaviourLog.d.ts +0 -95
- package/objects/Behaviours/BehaviourLogType.d.ts +0 -21
- package/objects/Behaviours/BehaviourParameter.d.ts +0 -38
- package/objects/Behaviours/BehaviourParameterType.d.ts +0 -21
- package/objects/Behaviours/BehaviourScript.d.ts +0 -83
- package/objects/Billing/BillableBase.d.ts +0 -83
- package/objects/Billing/BillableSmsProfile.d.ts +0 -26
- package/objects/Billing/BillingCurrency.d.ts +0 -17
- package/objects/Billing/BillingCycle.d.ts +0 -17
- package/objects/Billing/BillingProfile.d.ts +0 -104
- package/objects/Billing/Hosting/BillableHostingBase.d.ts +0 -41
- package/objects/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
- package/objects/Billing/Hosting/BillableHostingRule.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingType.d.ts +0 -41
- package/objects/Billing/Report/BillingReport.d.ts +0 -112
- package/objects/Billing/Report/BillingReportBreakdown.d.ts +0 -34
- package/objects/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
- package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -79
- package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -124
- package/objects/Billing/Report/BillingReportStatus.d.ts +0 -25
- package/objects/Billing/Report/BillingReportSummary.d.ts +0 -49
- package/objects/Companies/ColourStyle.d.ts +0 -25
- package/objects/Companies/Company.d.ts +0 -167
- package/objects/Companies/CompanyDirectory.d.ts +0 -52
- package/objects/Companies/CompanyGeneral.d.ts +0 -55
- package/objects/Companies/CompanyPolicy.d.ts +0 -66
- package/objects/Companies/CompanyReseller.d.ts +0 -166
- package/objects/Companies/CompanyStyle.d.ts +0 -50
- package/objects/Companies/LabelStyle.d.ts +0 -46
- package/objects/Companies/NotificationServerEmail.d.ts +0 -99
- package/objects/Companies/NotificationServerSms.d.ts +0 -25
- package/objects/Companies/PasswordExpiryMode.d.ts +0 -17
- package/objects/Companies/PasswordPolicy.d.ts +0 -51
- package/objects/Companies/SessionMultiUser.d.ts +0 -17
- package/objects/Companies/SessionPolicy.d.ts +0 -47
- package/objects/Dispatch/DispatchDirection.d.ts +0 -53
- package/objects/Dispatch/DispatchJob.d.ts +0 -107
- package/objects/Dispatch/DispatchJobPriority.d.ts +0 -25
- package/objects/Dispatch/DispatchStep.d.ts +0 -99
- package/objects/Dispatch/DispatchStepState.d.ts +0 -27
- package/objects/Dispatch/DispatchStepStatus.d.ts +0 -21
- package/objects/Dispatch/DispatchTask.d.ts +0 -154
- package/objects/Dispatch/DispatchTaskStatus.d.ts +0 -50
- package/objects/Hosting/Document.d.ts +0 -70
- package/objects/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
- package/objects/Hosting/Fields/FormFieldBase.d.ts +0 -56
- package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
- package/objects/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
- package/objects/Hosting/Fields/FormFieldChoice.d.ts +0 -46
- package/objects/Hosting/Fields/FormFieldDate.d.ts +0 -26
- package/objects/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
- package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldSignature.d.ts +0 -17
- package/objects/Hosting/Fields/FormFieldText.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldTime.d.ts +0 -37
- package/objects/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
- package/objects/Hosting/FormFieldType.d.ts +0 -127
- package/objects/Hosting/FormResult.d.ts +0 -95
- package/objects/Hosting/FormTemplate.d.ts +0 -80
- package/objects/Images/Dashcam.d.ts +0 -63
- package/objects/Images/DashcamBase.d.ts +0 -97
- package/objects/Images/DashcamLive.d.ts +0 -36
- package/objects/Images/DashcamMediaType.d.ts +0 -17
- package/objects/Images/Icon.d.ts +0 -66
- package/objects/Images/IconGlyph.d.ts +0 -47
- package/objects/Images/IconLabel.d.ts +0 -29
- package/objects/Images/IconLayer.d.ts +0 -33
- package/objects/Images/Picture.d.ts +0 -72
- package/objects/Maintenance/MaintenanceInterval.d.ts +0 -48
- package/objects/Maintenance/MaintenanceJob.d.ts +0 -134
- package/objects/Maintenance/MaintenanceJobStatus.d.ts +0 -21
- package/objects/Maintenance/MaintenanceSchedule.d.ts +0 -118
- package/objects/Messaging/AlertPriority.d.ts +0 -17
- package/objects/Messaging/AssetAlert.d.ts +0 -29
- package/objects/Messaging/AssetMessage.d.ts +0 -40
- package/objects/Messaging/MessageBase.d.ts +0 -99
- package/objects/Messaging/MessageFolder.d.ts +0 -13
- package/objects/Messaging/MessageStatus.d.ts +0 -29
- package/objects/Messaging/MessageType.d.ts +0 -33
- package/objects/Places/Place.d.ts +0 -114
- package/objects/Places/PlaceType.d.ts +0 -25
- package/objects/Providers/Config/ProviderConfig.d.ts +0 -70
- package/objects/Providers/Config/ProviderRegistration.d.ts +0 -119
- package/objects/Providers/Config/ProviderScript.d.ts +0 -86
- package/objects/Providers/Config/ProviderScriptBlock.d.ts +0 -41
- package/objects/Providers/Config/ProviderScriptParameter.d.ts +0 -49
- package/objects/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
- package/objects/Providers/Configuration/ProviderConfiguration.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
- package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
- package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
- package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
- package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
- package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
- package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
- package/objects/Providers/Provider.d.ts +0 -205
- package/objects/Providers/ProviderAdvanced.d.ts +0 -50
- package/objects/Providers/ProviderCommand.d.ts +0 -36
- package/objects/Providers/ProviderCommandStatus.d.ts +0 -29
- package/objects/Providers/ProviderCommandType.d.ts +0 -37
- package/objects/Providers/ProviderControl.d.ts +0 -41
- package/objects/Providers/ProviderData.d.ts +0 -30
- package/objects/Providers/ProviderGeneral.d.ts +0 -121
- package/objects/Providers/ProviderType.d.ts +0 -106
- package/objects/Reports/ReportBreakdown.d.ts +0 -49
- package/objects/Reports/ReportBreakdownJob.d.ts +0 -37
- package/objects/Reports/ReportBreakdownMessage.d.ts +0 -40
- package/objects/Reports/ReportBreakdownTask.d.ts +0 -46
- package/objects/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
- package/objects/Reports/ReportFilterMode.d.ts +0 -17
- package/objects/Reports/ReportNotifications.d.ts +0 -31
- package/objects/Reports/ReportOptions.d.ts +0 -52
- package/objects/Reports/ReportParameter.d.ts +0 -26
- package/objects/Reports/ReportParameterType.d.ts +0 -59
- package/objects/Reports/ReportRecurrence.d.ts +0 -54
- package/objects/Reports/ReportRecurrenceType.d.ts +0 -34
- package/objects/Reports/ReportResult.d.ts +0 -169
- package/objects/Reports/ReportResultData.d.ts +0 -17
- package/objects/Reports/ReportSchedule.d.ts +0 -111
- package/objects/Reports/ReportScorecard.d.ts +0 -38
- package/objects/Reports/ReportScorecardParameter.d.ts +0 -31
- package/objects/Reports/ReportScorecardRules.d.ts +0 -26
- package/objects/Reports/ReportStatus.d.ts +0 -29
- package/objects/Reports/ReportSummary.d.ts +0 -90
- package/objects/Reports/ReportSummaryReason.d.ts +0 -27
- package/objects/Reports/ReportTemplate.d.ts +0 -81
- package/objects/Reports/ReportTotal.d.ts +0 -47
- package/objects/Reports/ReportType.d.ts +0 -42
- package/objects/index.d.ts +0 -406
- package/objects/storage.d.ts +0 -176
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { BaseCompound } from "../API/BaseCompound";
|
|
3
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
4
|
-
import { INamed } from "../API/Interfaces/INamed";
|
|
5
|
-
import { ISuspendable } from "../API/Interfaces/ISuspendable";
|
|
6
|
-
import { JsonObject, ipv4, phone, ulong } from "../API/Types";
|
|
7
|
-
import { Asset } from "../Assets/Asset";
|
|
8
|
-
import { Company } from "../Companies/Company";
|
|
9
|
-
import { ProviderConfig } from "./Config/ProviderConfig";
|
|
10
|
-
import { ProviderConfiguration } from "./Configuration/ProviderConfiguration";
|
|
11
|
-
import { ProviderAdvanced } from "./ProviderAdvanced";
|
|
12
|
-
import { ProviderCommand } from "./ProviderCommand";
|
|
13
|
-
import { ProviderCommandType } from "./ProviderCommandType";
|
|
14
|
-
import { ProviderControl } from "./ProviderControl";
|
|
15
|
-
import { ProviderData } from "./ProviderData";
|
|
16
|
-
import { ProviderGeneral } from "./ProviderGeneral";
|
|
17
|
-
import { ProviderType } from "./ProviderType";
|
|
18
|
-
/**
|
|
19
|
-
* A device, modem, or service which provides events from the field.
|
|
20
|
-
*/
|
|
21
|
-
export declare class Provider extends BaseCompound implements INamed, IBelongCompany, ISuspendable {
|
|
22
|
-
#private;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
get pieces(): BaseComponent[];
|
|
27
|
-
/**
|
|
28
|
-
* Unique identifier of this device.
|
|
29
|
-
*/
|
|
30
|
-
get id(): string;
|
|
31
|
-
/**
|
|
32
|
-
* The company to which this device belongs.
|
|
33
|
-
*/
|
|
34
|
-
get companyId(): ulong;
|
|
35
|
-
/**
|
|
36
|
-
* The company to which this device belongs.
|
|
37
|
-
*/
|
|
38
|
-
get company(): Company;
|
|
39
|
-
set company(value: Company);
|
|
40
|
-
/**
|
|
41
|
-
* The kind of communication protocol this device uses.
|
|
42
|
-
*/
|
|
43
|
-
get kind(): ProviderType;
|
|
44
|
-
get general(): ProviderGeneral;
|
|
45
|
-
/**
|
|
46
|
-
* This thing's name.
|
|
47
|
-
*/
|
|
48
|
-
get name(): string;
|
|
49
|
-
set name(value: string);
|
|
50
|
-
/**
|
|
51
|
-
* Notes about it.
|
|
52
|
-
*/
|
|
53
|
-
get notes(): string;
|
|
54
|
-
set notes(value: string);
|
|
55
|
-
/**
|
|
56
|
-
* The asset for which this device provides field data.
|
|
57
|
-
* {@link Asset.id}
|
|
58
|
-
*/
|
|
59
|
-
get assetId(): ulong;
|
|
60
|
-
set assetId(value: ulong);
|
|
61
|
-
/**
|
|
62
|
-
* The {@link Asset} for which this device provides field data.
|
|
63
|
-
*/
|
|
64
|
-
get asset(): Asset;
|
|
65
|
-
set asset(value: Asset);
|
|
66
|
-
/**
|
|
67
|
-
* The provider's current (or pending) configuration profile.
|
|
68
|
-
* {@link ProviderConfig.id}
|
|
69
|
-
* {@link ProviderConfiguration.id}
|
|
70
|
-
*/
|
|
71
|
-
get configurationId(): ulong;
|
|
72
|
-
set configurationId(value: ulong);
|
|
73
|
-
/**
|
|
74
|
-
* The provider's current (or pending) {@link ProviderConfig} (or {@link ProviderConfiguration}).
|
|
75
|
-
*/
|
|
76
|
-
get configuration(): ProviderConfig | ProviderConfiguration;
|
|
77
|
-
set configuration(value: ProviderConfig | ProviderConfiguration);
|
|
78
|
-
/**
|
|
79
|
-
* The password programmed on the device used to ensure the system is the only client authorized to make changes.
|
|
80
|
-
*/
|
|
81
|
-
get password(): string;
|
|
82
|
-
set password(value: string);
|
|
83
|
-
/**
|
|
84
|
-
* The firmware/application version number.
|
|
85
|
-
*/
|
|
86
|
-
get firmware(): string;
|
|
87
|
-
set firmware(value: string);
|
|
88
|
-
/**
|
|
89
|
-
* The phone number of this device.
|
|
90
|
-
*/
|
|
91
|
-
get phoneNumber(): phone;
|
|
92
|
-
set phoneNumber(value: phone);
|
|
93
|
-
/**
|
|
94
|
-
* A list of read-only values about the device like IMEI, ESN, firmware version, hardware revision, etc...
|
|
95
|
-
*/
|
|
96
|
-
get information(): Map<string, string>;
|
|
97
|
-
set information(value: Map<string, string>);
|
|
98
|
-
/**
|
|
99
|
-
* ICCID of the SIM card installed in this provider
|
|
100
|
-
*/
|
|
101
|
-
get sim(): string;
|
|
102
|
-
set sim(value: string);
|
|
103
|
-
get advanced(): ProviderAdvanced;
|
|
104
|
-
/**
|
|
105
|
-
* The last IP address of the device.
|
|
106
|
-
*/
|
|
107
|
-
get lastIP(): ipv4;
|
|
108
|
-
set lastIP(value: ipv4);
|
|
109
|
-
/**
|
|
110
|
-
* Often changing values like latitude, longitude, speed, wiring state, VBus information, etc...
|
|
111
|
-
*/
|
|
112
|
-
get attributes(): Map<string, Map<string, ProviderData>>;
|
|
113
|
-
set attributes(value: Map<string, Map<string, ProviderData>>);
|
|
114
|
-
/**
|
|
115
|
-
* Store-and-forward information like last sequence number of SnF window
|
|
116
|
-
*/
|
|
117
|
-
get snf(): Map<string, string>;
|
|
118
|
-
set snf(value: Map<string, string>);
|
|
119
|
-
get control(): ProviderControl;
|
|
120
|
-
/**
|
|
121
|
-
* Collection of commands for this provider.
|
|
122
|
-
*/
|
|
123
|
-
get commands(): Map<ProviderCommandType, ProviderCommand>;
|
|
124
|
-
set commands(value: Map<ProviderCommandType, ProviderCommand>);
|
|
125
|
-
toJSON(): {
|
|
126
|
-
suspended: boolean;
|
|
127
|
-
since: string | null;
|
|
128
|
-
id: string | null;
|
|
129
|
-
v: number[];
|
|
130
|
-
company: number | null;
|
|
131
|
-
name: string;
|
|
132
|
-
notes: string;
|
|
133
|
-
kind: ProviderType;
|
|
134
|
-
configuration: number | null;
|
|
135
|
-
} | {
|
|
136
|
-
asset: number | null;
|
|
137
|
-
password: string;
|
|
138
|
-
firmware: string;
|
|
139
|
-
phoneNumber: number | null;
|
|
140
|
-
information: JsonObject;
|
|
141
|
-
sim: string;
|
|
142
|
-
id: string | null;
|
|
143
|
-
v: number[];
|
|
144
|
-
company: number | null;
|
|
145
|
-
name: string;
|
|
146
|
-
notes: string;
|
|
147
|
-
kind: ProviderType;
|
|
148
|
-
configuration: number | null;
|
|
149
|
-
} | {
|
|
150
|
-
control: {
|
|
151
|
-
id: string | null;
|
|
152
|
-
v: number[];
|
|
153
|
-
company: number | null;
|
|
154
|
-
commands: JsonObject;
|
|
155
|
-
};
|
|
156
|
-
v: number[];
|
|
157
|
-
id: string | null;
|
|
158
|
-
company: number;
|
|
159
|
-
lastIP: string;
|
|
160
|
-
attributes: JsonObject;
|
|
161
|
-
snf: JsonObject;
|
|
162
|
-
suspended: boolean;
|
|
163
|
-
since: string | null;
|
|
164
|
-
name: string;
|
|
165
|
-
notes: string;
|
|
166
|
-
kind: ProviderType;
|
|
167
|
-
configuration: number | null;
|
|
168
|
-
} | {
|
|
169
|
-
control: {
|
|
170
|
-
id: string | null;
|
|
171
|
-
v: number[];
|
|
172
|
-
company: number | null;
|
|
173
|
-
commands: JsonObject;
|
|
174
|
-
};
|
|
175
|
-
v: number[];
|
|
176
|
-
id: string | null;
|
|
177
|
-
company: number;
|
|
178
|
-
lastIP: string;
|
|
179
|
-
attributes: JsonObject;
|
|
180
|
-
snf: JsonObject;
|
|
181
|
-
asset: number | null;
|
|
182
|
-
password: string;
|
|
183
|
-
firmware: string;
|
|
184
|
-
phoneNumber: number | null;
|
|
185
|
-
information: JsonObject;
|
|
186
|
-
sim: string;
|
|
187
|
-
name: string;
|
|
188
|
-
notes: string;
|
|
189
|
-
kind: ProviderType;
|
|
190
|
-
configuration: number | null;
|
|
191
|
-
};
|
|
192
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
193
|
-
/**
|
|
194
|
-
* The {@link id} is the key.
|
|
195
|
-
*/
|
|
196
|
-
getKey(): string;
|
|
197
|
-
/**
|
|
198
|
-
* Indicates whether this object is suspended from event processing.
|
|
199
|
-
*/
|
|
200
|
-
get suspended(): boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Timestamp from the action that deleted or suspended this object.
|
|
203
|
-
*/
|
|
204
|
-
get since(): Date;
|
|
205
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { JsonObject, ipv4, ulong } from "../API/Types";
|
|
4
|
-
import { Company } from "../Companies/Company";
|
|
5
|
-
import { ProviderData } from "./ProviderData";
|
|
6
|
-
/**
|
|
7
|
-
* Device/hardware information reported from the field.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ProviderAdvanced extends BaseComponent implements IBelongCompany {
|
|
10
|
-
/**
|
|
11
|
-
* Unique identifier of this device.
|
|
12
|
-
* {@link Provider.id}
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* The company to which this device belongs.
|
|
17
|
-
* {@link Company.id}
|
|
18
|
-
*/
|
|
19
|
-
companyId: ulong;
|
|
20
|
-
/**
|
|
21
|
-
* The {@link Company} to which this device belongs.
|
|
22
|
-
*/
|
|
23
|
-
get company(): Company;
|
|
24
|
-
set company(value: Company);
|
|
25
|
-
/**
|
|
26
|
-
* The last IP address of the device.
|
|
27
|
-
*/
|
|
28
|
-
lastIP: ipv4;
|
|
29
|
-
/**
|
|
30
|
-
* Often changing values like latitude, longitude, speed, wiring state, VBus information, etc...
|
|
31
|
-
*/
|
|
32
|
-
attributes: Map<string, Map<string, ProviderData>>;
|
|
33
|
-
/**
|
|
34
|
-
* Store-and-forward information like last sequence number of SnF window
|
|
35
|
-
*/
|
|
36
|
-
snf: Map<string, string>;
|
|
37
|
-
toJSON(): {
|
|
38
|
-
id: string | null;
|
|
39
|
-
v: number[];
|
|
40
|
-
company: number;
|
|
41
|
-
lastIP: string;
|
|
42
|
-
attributes: JsonObject;
|
|
43
|
-
snf: JsonObject;
|
|
44
|
-
};
|
|
45
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The {@link id} is the key.
|
|
48
|
-
*/
|
|
49
|
-
getKey(): string;
|
|
50
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
-
import { datetime, JsonObject } from "../API/Types";
|
|
3
|
-
import { ProviderCommandStatus } from "./ProviderCommandStatus";
|
|
4
|
-
/**
|
|
5
|
-
* Details regarding a provider command
|
|
6
|
-
*/
|
|
7
|
-
export declare class ProviderCommand implements ISerializable {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param json
|
|
11
|
-
*/
|
|
12
|
-
static fromJSON(json: JsonObject): ProviderCommand;
|
|
13
|
-
/**
|
|
14
|
-
* Current status of this command.
|
|
15
|
-
*/
|
|
16
|
-
status: ProviderCommandStatus;
|
|
17
|
-
/**
|
|
18
|
-
* Command message body.
|
|
19
|
-
*/
|
|
20
|
-
parameters: string[];
|
|
21
|
-
/**
|
|
22
|
-
* Date/time stamp of when the command was created.
|
|
23
|
-
*/
|
|
24
|
-
created: Date;
|
|
25
|
-
/**
|
|
26
|
-
* Date/time stamp of when the command was processed.
|
|
27
|
-
*/
|
|
28
|
-
processed: Date;
|
|
29
|
-
constructor(status?: ProviderCommandStatus, parameters?: string[], created?: Date | number | datetime, processed?: Date | number | datetime);
|
|
30
|
-
toJSON(): {
|
|
31
|
-
status: ProviderCommandStatus;
|
|
32
|
-
parameters: string[];
|
|
33
|
-
created: string | null;
|
|
34
|
-
processed: string | null;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { JsonObject, 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 {@link Company} to which this device belongs.
|
|
23
|
-
*/
|
|
24
|
-
get company(): Company;
|
|
25
|
-
set company(value: Company);
|
|
26
|
-
/**
|
|
27
|
-
* Collection of commands for this provider.
|
|
28
|
-
*/
|
|
29
|
-
commands: Map<ProviderCommandType, ProviderCommand>;
|
|
30
|
-
toJSON(): {
|
|
31
|
-
id: string | null;
|
|
32
|
-
v: number[];
|
|
33
|
-
company: number | null;
|
|
34
|
-
commands: JsonObject;
|
|
35
|
-
};
|
|
36
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The {@link id} is the key.
|
|
39
|
-
*/
|
|
40
|
-
getKey(): string;
|
|
41
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
-
import { datetime, JsonObject } 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: JsonObject): 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
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
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 { JsonObject, 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 {@link Company} to which this device belongs.
|
|
27
|
-
*/
|
|
28
|
-
get company(): Company;
|
|
29
|
-
set company(value: Company);
|
|
30
|
-
/**
|
|
31
|
-
* A nickname given to the device/hardware.
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* Notes!
|
|
36
|
-
*/
|
|
37
|
-
notes: string;
|
|
38
|
-
/**
|
|
39
|
-
* The kind of communication protocol this device uses.
|
|
40
|
-
*/
|
|
41
|
-
kind: ProviderType;
|
|
42
|
-
/**
|
|
43
|
-
* The asset for which this device provides field data.
|
|
44
|
-
* {@link Asset.id}
|
|
45
|
-
*/
|
|
46
|
-
assetId: ulong;
|
|
47
|
-
/**
|
|
48
|
-
* The {@link Asset} for which this device provides field data.
|
|
49
|
-
*/
|
|
50
|
-
get asset(): Asset;
|
|
51
|
-
set asset(value: Asset);
|
|
52
|
-
/**
|
|
53
|
-
* The provider's current (or pending) configuration profile.
|
|
54
|
-
* {@link ProviderConfig.id}
|
|
55
|
-
* {@link ProviderConfiguration.id}
|
|
56
|
-
*/
|
|
57
|
-
configurationId: ulong;
|
|
58
|
-
/**
|
|
59
|
-
* The provider's current (or pending) {@link ProviderConfig} (or {@link ProviderConfiguration}).
|
|
60
|
-
*/
|
|
61
|
-
get configuration(): ProviderConfig | ProviderConfiguration;
|
|
62
|
-
set configuration(value: ProviderConfig | ProviderConfiguration);
|
|
63
|
-
/**
|
|
64
|
-
* The password programmed on the device used to ensure the system is the only client authorized to make changes.
|
|
65
|
-
*/
|
|
66
|
-
password: string;
|
|
67
|
-
/**
|
|
68
|
-
* The firmware/application version number.
|
|
69
|
-
*/
|
|
70
|
-
firmware: string;
|
|
71
|
-
/**
|
|
72
|
-
* The phone number of this device.
|
|
73
|
-
*/
|
|
74
|
-
phoneNumber: phone;
|
|
75
|
-
/**
|
|
76
|
-
* A list of read-only values about the device like IMEI, ESN, firmware version, hardware revision, etc...
|
|
77
|
-
*/
|
|
78
|
-
information: Map<string, string>;
|
|
79
|
-
/**
|
|
80
|
-
* ICCID of the SIM card installed in this provider
|
|
81
|
-
*/
|
|
82
|
-
sim: string;
|
|
83
|
-
toJSON(): {
|
|
84
|
-
suspended: boolean;
|
|
85
|
-
since: string | null;
|
|
86
|
-
id: string | null;
|
|
87
|
-
v: number[];
|
|
88
|
-
company: number | null;
|
|
89
|
-
name: string;
|
|
90
|
-
notes: string;
|
|
91
|
-
kind: ProviderType;
|
|
92
|
-
configuration: number | null;
|
|
93
|
-
} | {
|
|
94
|
-
asset: number | null;
|
|
95
|
-
password: string;
|
|
96
|
-
firmware: string;
|
|
97
|
-
phoneNumber: number | null;
|
|
98
|
-
information: JsonObject;
|
|
99
|
-
sim: string;
|
|
100
|
-
id: string | null;
|
|
101
|
-
v: number[];
|
|
102
|
-
company: number | null;
|
|
103
|
-
name: string;
|
|
104
|
-
notes: string;
|
|
105
|
-
kind: ProviderType;
|
|
106
|
-
configuration: number | null;
|
|
107
|
-
};
|
|
108
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
109
|
-
/**
|
|
110
|
-
* The {@link id} is the key.
|
|
111
|
-
*/
|
|
112
|
-
getKey(): string;
|
|
113
|
-
/**
|
|
114
|
-
* Indicates whether this object is suspended from event processing.
|
|
115
|
-
*/
|
|
116
|
-
suspended: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Timestamp from the action that deleted or suspended this object.
|
|
119
|
-
*/
|
|
120
|
-
since: Date;
|
|
121
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
}
|