@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,61 @@
|
|
|
1
|
+
import { byte, double, ulong } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
import { FormFieldNumericSize } from "./FormFieldNumericSize";
|
|
5
|
+
/**
|
|
6
|
+
* A numeric value input control with multiple contexts available.
|
|
7
|
+
* @tutorial
|
|
8
|
+
* For this field, the {@link FormFieldBase.kind} is just a helper for the UI, and does not affect input validation.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FormFieldNumeric extends FormFieldBase {
|
|
11
|
+
/**
|
|
12
|
+
* These are the numeric control types.
|
|
13
|
+
*/
|
|
14
|
+
protected get supported(): FormFieldType[];
|
|
15
|
+
/**
|
|
16
|
+
* A context hint for the kind of numeric size for this field.
|
|
17
|
+
* Used only for {@link FormFieldType.distance}, {@link FormFieldType.weight}, {@link FormFieldType.volume},
|
|
18
|
+
* and {@link FormFieldType.speed}.
|
|
19
|
+
*/
|
|
20
|
+
size: FormFieldNumericSize;
|
|
21
|
+
/**
|
|
22
|
+
* Number of decimal places of accuracy are required.
|
|
23
|
+
*/
|
|
24
|
+
precision: byte;
|
|
25
|
+
/**
|
|
26
|
+
* The numeric value increments by this amount.
|
|
27
|
+
*/
|
|
28
|
+
step: double;
|
|
29
|
+
/**
|
|
30
|
+
* An optional suffix for this numeric value, like "%" or "ppm".
|
|
31
|
+
* This value is ignored for {@link FormFieldType.distance}, {@link FormFieldType.weight},
|
|
32
|
+
* {@link FormFieldType.volume}, {@link FormFieldType.speed}, and {@link FormFieldType.area} field types.
|
|
33
|
+
* And for {@link FormFieldType.currency} fields it acts as a prefix, like "$" or "USD".
|
|
34
|
+
*/
|
|
35
|
+
units: string;
|
|
36
|
+
/**
|
|
37
|
+
* The (optional) minimum value.
|
|
38
|
+
*/
|
|
39
|
+
minimum: double;
|
|
40
|
+
/**
|
|
41
|
+
* The (optional) maximum value.
|
|
42
|
+
*/
|
|
43
|
+
maximum: double;
|
|
44
|
+
constructor(id?: ulong, name?: string, kind?: FormFieldType, size?: FormFieldNumericSize, precision?: byte, step?: double, units?: string, minimum?: double, maximum?: double, notes?: string, required?: boolean, value?: string | null, editable?: boolean);
|
|
45
|
+
toJSON(): {
|
|
46
|
+
size: FormFieldNumericSize;
|
|
47
|
+
precision: number | null;
|
|
48
|
+
step: number | null;
|
|
49
|
+
units: string;
|
|
50
|
+
minimum: number | null;
|
|
51
|
+
maximum: number | null;
|
|
52
|
+
id: number | null;
|
|
53
|
+
kind: FormFieldType;
|
|
54
|
+
name: string;
|
|
55
|
+
notes: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
value: string | null;
|
|
58
|
+
editable: boolean;
|
|
59
|
+
};
|
|
60
|
+
isValid(value: string): boolean;
|
|
61
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A context hint for the size of a measurements.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum FormFieldNumericSize {
|
|
5
|
+
/**
|
|
6
|
+
* A small measurement.
|
|
7
|
+
* For {@link FormFieldType.distance}: {@link Units.CENTIMETER}/{@link Units.INCH}
|
|
8
|
+
* For {@link FormFieldType.weight}: {@link Units.GRAM}/{@link Units.OUNCE}
|
|
9
|
+
* For {@link FormFieldType.volume}: {@link Units.MILLILITER}/{@link Units.OUNCE}
|
|
10
|
+
* For {@link FormFieldType.speed}: {@link Units.CENTIMETER_PER_SECOND}/{@link Units.INCH_PER_SECOND}
|
|
11
|
+
* For {@link FormFieldType.area}: {@link Units.SQUARE_METRE}/{@link Units.SQUARE_FOOT}
|
|
12
|
+
*/
|
|
13
|
+
small = "small",
|
|
14
|
+
/**
|
|
15
|
+
* A medium measurement.
|
|
16
|
+
* For {@link FormFieldType.distance}: {@link Units.METER}/{@link Units.FOOT}
|
|
17
|
+
* For {@link FormFieldType.weight}: {@link Units.KILOGRAM}/{@link Units.POUND}
|
|
18
|
+
* For {@link FormFieldType.volume}: same as {@link FormFieldNumericSize.small}
|
|
19
|
+
* For {@link FormFieldType.speed}: {@link Units.METER_PER_SECOND}/{@link Units.FOOT_PER_SECOND}
|
|
20
|
+
* For {@link FormFieldType.area}: {@link Units.SQUARE_KILOMETRE}/{@link Units.SQUARE_MILE}
|
|
21
|
+
*/
|
|
22
|
+
medium = "medium",
|
|
23
|
+
/**
|
|
24
|
+
* A large measurement.
|
|
25
|
+
* For {@link FormFieldType.distance}: {@link Units.KILOMETER}/{@link Units.MILE}
|
|
26
|
+
* For {@link FormFieldType.weight}: {@link Units.TONNE}/{@link Units.TON}
|
|
27
|
+
* For {@link FormFieldType.volume}: {@link Units.LITER}/{@link Units.GALLON}
|
|
28
|
+
* For {@link FormFieldType.speed}: {@link Units.KILOMETER_PER_HOUR}/{@link Units.MILE_PER_HOUR}
|
|
29
|
+
* For {@link FormFieldType.area}: {@link Units.HECTARE}/{@link Units.ACRE}
|
|
30
|
+
*/
|
|
31
|
+
large = "large"
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ulong } from '../../API/Types';
|
|
2
|
+
import { FormFieldType } from '../FormFieldType';
|
|
3
|
+
import { FormFieldBase } from './FormFieldBase';
|
|
4
|
+
/**
|
|
5
|
+
* A control to capture a signature from the user.
|
|
6
|
+
* @tutorial
|
|
7
|
+
* The device making the capture must save the image to the server some other way.
|
|
8
|
+
* When submitting the {@link FormResult}, the value must be a path to the signature file.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FormFieldSignature extends FormFieldBase {
|
|
11
|
+
/**
|
|
12
|
+
* Just {@link FormFieldType.signature} control type.
|
|
13
|
+
*/
|
|
14
|
+
protected get supported(): FormFieldType[];
|
|
15
|
+
constructor(id?: ulong, name?: string, notes?: string, required?: boolean, value?: string | null, editable?: boolean);
|
|
16
|
+
isValid(value: string): boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { byte, ulong, ushort } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
/**
|
|
5
|
+
* A text input control.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormFieldText extends FormFieldBase {
|
|
8
|
+
/**
|
|
9
|
+
* Just {@link FormFieldType.text} control type.
|
|
10
|
+
*/
|
|
11
|
+
protected get supported(): FormFieldType[];
|
|
12
|
+
/**
|
|
13
|
+
* The number of rows of text to display.
|
|
14
|
+
* @tutorial The control should grow to display all entered text even if the UI must add more rows.
|
|
15
|
+
*/
|
|
16
|
+
rows: byte;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum length of entered text to make it a valid entry.
|
|
19
|
+
*/
|
|
20
|
+
minimum: ushort;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum length of entered text to make it a valid entry.
|
|
23
|
+
*/
|
|
24
|
+
maximum: ushort;
|
|
25
|
+
constructor(id?: ulong, name?: string, rows?: byte, minimum?: ushort, maximum?: ushort, notes?: string, required?: boolean, value?: string | null, editable?: boolean);
|
|
26
|
+
toJSON(): {
|
|
27
|
+
rows: number | null;
|
|
28
|
+
minimum: number | null;
|
|
29
|
+
maximum: number | null;
|
|
30
|
+
id: number | null;
|
|
31
|
+
kind: FormFieldType;
|
|
32
|
+
name: string;
|
|
33
|
+
notes: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
value: string | null;
|
|
36
|
+
editable: boolean;
|
|
37
|
+
};
|
|
38
|
+
isValid(value: string): boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TimeSpan } from "../../API/TimeSpan";
|
|
2
|
+
import { timespan, ulong } from "../../API/Types";
|
|
3
|
+
import { FormFieldType } from "../FormFieldType";
|
|
4
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
5
|
+
/**
|
|
6
|
+
* A control to choose a time or duration longer than 24 hours.
|
|
7
|
+
*/
|
|
8
|
+
export declare class FormFieldTime extends FormFieldBase {
|
|
9
|
+
/**
|
|
10
|
+
* These are the clock control types.
|
|
11
|
+
*/
|
|
12
|
+
protected get supported(): FormFieldType[];
|
|
13
|
+
/**
|
|
14
|
+
* The minimum duration or earliest time-of-day.
|
|
15
|
+
*/
|
|
16
|
+
minimum: TimeSpan | null;
|
|
17
|
+
/**
|
|
18
|
+
* The maximum duration or latest time-of-day.
|
|
19
|
+
*/
|
|
20
|
+
maximum: TimeSpan | null;
|
|
21
|
+
constructor(id?: ulong, name?: string, kind?: FormFieldType, minimum?: TimeSpan | timespan | number, maximum?: TimeSpan | timespan | number, notes?: string, required?: boolean, value?: string | null, editable?: boolean);
|
|
22
|
+
toJSON(): {
|
|
23
|
+
minimum: string | null;
|
|
24
|
+
maximum: string | null;
|
|
25
|
+
id: number | null;
|
|
26
|
+
kind: FormFieldType;
|
|
27
|
+
name: string;
|
|
28
|
+
notes: string;
|
|
29
|
+
required: boolean;
|
|
30
|
+
value: string | null;
|
|
31
|
+
editable: boolean;
|
|
32
|
+
};
|
|
33
|
+
isValid(value: string): boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ulong } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
/**
|
|
5
|
+
* A {@link Timezone} selection control.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormFieldTimezone extends FormFieldBase {
|
|
8
|
+
/**
|
|
9
|
+
* Just {@link FormFieldType.timezone} control type.
|
|
10
|
+
*/
|
|
11
|
+
protected get supported(): FormFieldType[];
|
|
12
|
+
constructor(id?: ulong, name?: string, notes?: string, required?: boolean, value?: string | null, editable?: boolean);
|
|
13
|
+
isValid(value: string): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The supported types of user interface modules for a {@link FormTemplate}.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum FormFieldType {
|
|
5
|
+
/**
|
|
6
|
+
* Any text input.
|
|
7
|
+
* {@link FormFieldText}
|
|
8
|
+
*/
|
|
9
|
+
text = "text",
|
|
10
|
+
/**
|
|
11
|
+
* A choice of one (or more) values defined.
|
|
12
|
+
* {@link FormFieldChoice}
|
|
13
|
+
*/
|
|
14
|
+
choice = "choice",
|
|
15
|
+
/**
|
|
16
|
+
* A drop-down or fly-out UI for choosing a single value.
|
|
17
|
+
* Works better than {@link choice} when there are a lot of values. ie; country or province list.
|
|
18
|
+
* {@link FormFieldChoice}
|
|
19
|
+
*/
|
|
20
|
+
dropdown = "dropdown",
|
|
21
|
+
/**
|
|
22
|
+
* A check mark to represent a boolean value.
|
|
23
|
+
* {@link FormFieldBoolean}
|
|
24
|
+
*/
|
|
25
|
+
checkbox = "checkbox",
|
|
26
|
+
/**
|
|
27
|
+
* A toggle box to represent one of two possible values (optionally defined).
|
|
28
|
+
* {@link FormFieldBoolean}
|
|
29
|
+
*/
|
|
30
|
+
toggle = "toggle",
|
|
31
|
+
/**
|
|
32
|
+
* Numeric (optionally decimal) input.
|
|
33
|
+
* {@link FormFieldNumeric}
|
|
34
|
+
*/
|
|
35
|
+
numeric = "numeric",
|
|
36
|
+
/**
|
|
37
|
+
* A slider bar to choose a numeric value between a given high and low value.
|
|
38
|
+
* {@link FormFieldNumeric}
|
|
39
|
+
*/
|
|
40
|
+
range = "range",
|
|
41
|
+
/**
|
|
42
|
+
* A numeric value of distance (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
43
|
+
* {@link FormFieldNumeric}
|
|
44
|
+
*/
|
|
45
|
+
distance = "distance",
|
|
46
|
+
/**
|
|
47
|
+
* A numeric value of area (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
48
|
+
* {@link FormFieldNumeric}
|
|
49
|
+
*/
|
|
50
|
+
area = "area",
|
|
51
|
+
/**
|
|
52
|
+
* A numeric value of temperature (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
53
|
+
* {@link FormFieldNumeric}
|
|
54
|
+
*/
|
|
55
|
+
temperature = "temperature",
|
|
56
|
+
/**
|
|
57
|
+
* A numeric value of weight (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
58
|
+
* {@link FormFieldNumeric}
|
|
59
|
+
*/
|
|
60
|
+
weight = "weight",
|
|
61
|
+
/**
|
|
62
|
+
* A numeric value of volume (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
63
|
+
* {@link FormFieldNumeric}
|
|
64
|
+
*/
|
|
65
|
+
volume = "volume",
|
|
66
|
+
/**
|
|
67
|
+
* A numeric value of pressure (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
68
|
+
* {@link FormFieldNumeric}
|
|
69
|
+
*/
|
|
70
|
+
pressure = "pressure",
|
|
71
|
+
/**
|
|
72
|
+
* A numeric value of speed (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
73
|
+
* {@link FormFieldNumeric}
|
|
74
|
+
*/
|
|
75
|
+
speed = "speed",
|
|
76
|
+
/**
|
|
77
|
+
* A numeric value of fuel economy (for easy conversion between {@link SystemsOfUnits.metric} and {@link SystemsOfUnits.standard}).
|
|
78
|
+
* {@link FormFieldNumeric}
|
|
79
|
+
*/
|
|
80
|
+
fuelEconomy = "fuelEconomy",
|
|
81
|
+
/**
|
|
82
|
+
* A numeric value representing an amount of money.
|
|
83
|
+
* {@link FormFieldNumeric}
|
|
84
|
+
*/
|
|
85
|
+
currency = "currency",
|
|
86
|
+
/**
|
|
87
|
+
* A date and time picker.
|
|
88
|
+
* {@link FormFieldDate}
|
|
89
|
+
*/
|
|
90
|
+
datetime = "datetime",
|
|
91
|
+
/**
|
|
92
|
+
* A calendar/date picker.
|
|
93
|
+
* {@link FormFieldDate}
|
|
94
|
+
*/
|
|
95
|
+
date = "date",
|
|
96
|
+
/**
|
|
97
|
+
* A clock/time picker.
|
|
98
|
+
* {@link FormFieldTime}
|
|
99
|
+
*/
|
|
100
|
+
time = "time",
|
|
101
|
+
/**
|
|
102
|
+
* A duration picker.
|
|
103
|
+
* Different than {@link time} because a duration can be negative, or longer than 24 hours.
|
|
104
|
+
* {@link FormFieldTime}
|
|
105
|
+
*/
|
|
106
|
+
duration = "duration",
|
|
107
|
+
/**
|
|
108
|
+
* Area to capture a signature bitmap.
|
|
109
|
+
* {@link FormFieldSignature}
|
|
110
|
+
*/
|
|
111
|
+
signature = "signature",
|
|
112
|
+
/**
|
|
113
|
+
* A browser of {@link Picture}s that can be attached.
|
|
114
|
+
* {@link FormFieldAttachments}
|
|
115
|
+
*/
|
|
116
|
+
pictures = "pictures",
|
|
117
|
+
/**
|
|
118
|
+
* A browser of {@link Document}s that can be attached.
|
|
119
|
+
* {@link FormFieldAttachments}
|
|
120
|
+
*/
|
|
121
|
+
files = "files",
|
|
122
|
+
/**
|
|
123
|
+
* A list of {@link Timezone}s.
|
|
124
|
+
* {@link FormFieldTimezone}
|
|
125
|
+
*/
|
|
126
|
+
timezone = "timezone"
|
|
127
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { LatLng } from "../API/Geography/LatLng";
|
|
3
|
+
import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
|
|
4
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
5
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
6
|
+
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
7
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
8
|
+
import { codified, ulong } from "../API/Types";
|
|
9
|
+
import { Asset } from "../Assets/Asset";
|
|
10
|
+
import { Company } from "../Companies/Company";
|
|
11
|
+
import { FormTemplate } from "./FormTemplate";
|
|
12
|
+
/**
|
|
13
|
+
* A completed form submitted by a {@link User} or {@link Asset}.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FormResult extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IBelongAsset, ILabelled {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier of this form.
|
|
18
|
+
*/
|
|
19
|
+
id: ulong;
|
|
20
|
+
/**
|
|
21
|
+
* The {@link Company} to which this form belongs.
|
|
22
|
+
* {@link Company.id}
|
|
23
|
+
*/
|
|
24
|
+
companyId: ulong;
|
|
25
|
+
/**
|
|
26
|
+
* The {@link Company} to which this form belongs.
|
|
27
|
+
* {@link Company.id}
|
|
28
|
+
*/
|
|
29
|
+
get company(): Company;
|
|
30
|
+
/**
|
|
31
|
+
* The {@link FormTemplate} to which this form belongs.
|
|
32
|
+
*/
|
|
33
|
+
templateId: ulong;
|
|
34
|
+
/**
|
|
35
|
+
* The {@link FormTemplate} to which this form belongs.
|
|
36
|
+
*/
|
|
37
|
+
get template(): FormTemplate;
|
|
38
|
+
set template(value: FormTemplate);
|
|
39
|
+
/**
|
|
40
|
+
* The {@link Asset} to which this form belongs.
|
|
41
|
+
* {@link Asset.id}
|
|
42
|
+
*/
|
|
43
|
+
assetId: ulong;
|
|
44
|
+
/**
|
|
45
|
+
* The {@link Asset} to which this form belongs.
|
|
46
|
+
* {@link Asset.id}
|
|
47
|
+
*/
|
|
48
|
+
get asset(): Asset;
|
|
49
|
+
/**
|
|
50
|
+
* Name of this form.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Notes about this form.
|
|
55
|
+
*/
|
|
56
|
+
notes: string;
|
|
57
|
+
/**
|
|
58
|
+
* Codified label names used to relate forms to {@link Asset}s.
|
|
59
|
+
*/
|
|
60
|
+
labels: codified[];
|
|
61
|
+
/**
|
|
62
|
+
* All the values for fillable fields by index.
|
|
63
|
+
*/
|
|
64
|
+
fields: Map<ulong, string>;
|
|
65
|
+
/**
|
|
66
|
+
* A timestamp from when this form was completed by a {@link User} or {@link Asset}.
|
|
67
|
+
*/
|
|
68
|
+
completed: Date;
|
|
69
|
+
/**
|
|
70
|
+
* The coordinates of the {@link User} or {@link Asset} from when the form was completed.
|
|
71
|
+
*/
|
|
72
|
+
latlng: LatLng | null;
|
|
73
|
+
/**
|
|
74
|
+
* Clocked-in driver name who made the update.
|
|
75
|
+
* Null if not clocked-in, or no changes have been made.
|
|
76
|
+
*/
|
|
77
|
+
driver: string;
|
|
78
|
+
/**
|
|
79
|
+
* The {@link id} is the key.
|
|
80
|
+
*/
|
|
81
|
+
getKey(): string;
|
|
82
|
+
toJSON(): {
|
|
83
|
+
id: number;
|
|
84
|
+
company: number;
|
|
85
|
+
v: number[];
|
|
86
|
+
template: number | null;
|
|
87
|
+
asset: number | null;
|
|
88
|
+
name: string;
|
|
89
|
+
notes: string;
|
|
90
|
+
labels: string[];
|
|
91
|
+
fields: object;
|
|
92
|
+
completed: string | null;
|
|
93
|
+
latlng: import("../API/Geography/Interfaces").ILatLng | null;
|
|
94
|
+
driver: string | null;
|
|
95
|
+
};
|
|
96
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
97
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
4
|
+
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
5
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
6
|
+
import { IVisual } from "../API/Interfaces/IVisual";
|
|
7
|
+
import { codified, colour, ulong } from "../API/Types";
|
|
8
|
+
import { Company } from "../Companies/Company";
|
|
9
|
+
import { FormFieldAttachments } from './Fields/FormFieldAttachments';
|
|
10
|
+
import { FormFieldBoolean } from './Fields/FormFieldBoolean';
|
|
11
|
+
import { FormFieldChoice } from './Fields/FormFieldChoice';
|
|
12
|
+
import { FormFieldDate } from './Fields/FormFieldDate';
|
|
13
|
+
import { FormFieldNumeric } from './Fields/FormFieldNumeric';
|
|
14
|
+
import { FormFieldSignature } from './Fields/FormFieldSignature';
|
|
15
|
+
import { FormFieldText } from './Fields/FormFieldText';
|
|
16
|
+
import { FormFieldTime } from './Fields/FormFieldTime';
|
|
17
|
+
import { FormFieldTimezone } from './Fields/FormFieldTimezone';
|
|
18
|
+
/**
|
|
19
|
+
* The full definition of a form that needs to be filled out.
|
|
20
|
+
*/
|
|
21
|
+
export declare class FormTemplate extends BaseComponent implements IIdUlong, INamed, IBelongCompany, ILabelled, IVisual {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of this form.
|
|
24
|
+
*/
|
|
25
|
+
id: ulong;
|
|
26
|
+
/**
|
|
27
|
+
* The {@link Company} to which this form belongs.
|
|
28
|
+
* {@link Company.id}
|
|
29
|
+
*/
|
|
30
|
+
companyId: ulong;
|
|
31
|
+
/**
|
|
32
|
+
* The {@link Company} to which this form belongs.
|
|
33
|
+
* {@link Company.id}
|
|
34
|
+
*/
|
|
35
|
+
get company(): Company;
|
|
36
|
+
/**
|
|
37
|
+
* Name of this form.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Notes about this form.
|
|
42
|
+
*/
|
|
43
|
+
notes: string;
|
|
44
|
+
/**
|
|
45
|
+
* Codified label names used to relate forms to {@link Asset}s.
|
|
46
|
+
*/
|
|
47
|
+
labels: codified[];
|
|
48
|
+
/**
|
|
49
|
+
* The fill/background colour of the icon.
|
|
50
|
+
*/
|
|
51
|
+
fill: colour;
|
|
52
|
+
/**
|
|
53
|
+
* Outline and graphic colour.
|
|
54
|
+
*/
|
|
55
|
+
stroke: colour;
|
|
56
|
+
/**
|
|
57
|
+
* The name of the symbol for this template.
|
|
58
|
+
*/
|
|
59
|
+
graphic: codified;
|
|
60
|
+
/**
|
|
61
|
+
* All the user fillable fields by name.
|
|
62
|
+
*/
|
|
63
|
+
fields: (FormFieldText | FormFieldChoice | FormFieldBoolean | FormFieldNumeric | FormFieldDate | FormFieldTime | FormFieldSignature | FormFieldAttachments | FormFieldTimezone)[];
|
|
64
|
+
/**
|
|
65
|
+
* The {@link id} is the key.
|
|
66
|
+
*/
|
|
67
|
+
getKey(): string;
|
|
68
|
+
toJSON(): {
|
|
69
|
+
id: number | null;
|
|
70
|
+
company: number | null;
|
|
71
|
+
v: number[];
|
|
72
|
+
name: string;
|
|
73
|
+
notes: string;
|
|
74
|
+
labels: string[];
|
|
75
|
+
fields: any[];
|
|
76
|
+
fill: string;
|
|
77
|
+
stroke: string;
|
|
78
|
+
graphic: string;
|
|
79
|
+
};
|
|
80
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
81
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ISize } from "../API/Geometry/Interfaces";
|
|
2
|
+
import { Size } from "../API/Geometry/Size";
|
|
3
|
+
import { TimeSpan } from "../API/TimeSpan";
|
|
4
|
+
import { byte, datetime, double, guid, single, ulong } from "../API/Types";
|
|
5
|
+
import { DashcamBase } from "./DashcamBase";
|
|
6
|
+
import { DashcamMediaType } from "./DashcamMediaType";
|
|
7
|
+
/**
|
|
8
|
+
* An image or video received from a dashcam-enabled provider or asset.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Dashcam extends DashcamBase {
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param json
|
|
14
|
+
*/
|
|
15
|
+
static fromJSON(json: any): Dashcam;
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier of this resource.
|
|
18
|
+
*/
|
|
19
|
+
guid: guid;
|
|
20
|
+
/**
|
|
21
|
+
* The type of data being stored.
|
|
22
|
+
*/
|
|
23
|
+
kind: DashcamMediaType;
|
|
24
|
+
/**
|
|
25
|
+
* For {@link DashcamMediaType.video} media files, this indicates the frames-per-second.
|
|
26
|
+
*/
|
|
27
|
+
fps: single;
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp of when this resource started.
|
|
30
|
+
* For {@link DashcamMediaType.image} media files, the start and end are the same.
|
|
31
|
+
*/
|
|
32
|
+
start: Date;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp of when this resource ended.
|
|
35
|
+
* For {@link DashcamMediaType.image} media files, the start and end are the same.
|
|
36
|
+
*/
|
|
37
|
+
end: Date;
|
|
38
|
+
/**
|
|
39
|
+
* For {@link DashcamMediaType.video} media files, the duration of the video clip.
|
|
40
|
+
*/
|
|
41
|
+
get duration(): TimeSpan;
|
|
42
|
+
/**
|
|
43
|
+
* The reason why we're saving this image/video. Or the event name that triggered it.
|
|
44
|
+
*/
|
|
45
|
+
eventName: string;
|
|
46
|
+
constructor(bytes?: ulong, size?: Size | ISize, provider?: string, company?: ulong, asset?: ulong, camera?: byte, latitude?: double, longitude?: double, speed?: double, heading?: double, altitude?: double, guid?: guid, kind?: DashcamMediaType, fps?: single, start?: Date | number | datetime, end?: Date | number | datetime, eventName?: string);
|
|
47
|
+
toJSON(): {
|
|
48
|
+
guid: string;
|
|
49
|
+
kind: DashcamMediaType;
|
|
50
|
+
fps: number | null;
|
|
51
|
+
start: string | null;
|
|
52
|
+
end: string | null;
|
|
53
|
+
eventName: string;
|
|
54
|
+
bytes: number | null;
|
|
55
|
+
size: ISize;
|
|
56
|
+
provider: string;
|
|
57
|
+
company: number | null;
|
|
58
|
+
asset: number | null;
|
|
59
|
+
camera: number | null;
|
|
60
|
+
latitude: number | null;
|
|
61
|
+
longitude: number | null;
|
|
62
|
+
speed: number | null;
|
|
63
|
+
heading: number | null;
|
|
64
|
+
altitude: number | null;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The {@link guid} is the key.
|
|
68
|
+
*/
|
|
69
|
+
getKey(): string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ISize } from "../API/Geometry/Interfaces";
|
|
2
|
+
import { Size } from "../API/Geometry/Size";
|
|
3
|
+
import { IFileSize } from "../API/Interfaces/IFileSize";
|
|
4
|
+
import { IRequestable } from "../API/Interfaces/IRequestable";
|
|
5
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
6
|
+
import { byte, double, ulong } from "../API/Types";
|
|
7
|
+
import { Asset } from "../Assets/Asset";
|
|
8
|
+
import { Company } from "../Companies/Company";
|
|
9
|
+
import { Provider } from "../Providers/Provider";
|
|
10
|
+
/**
|
|
11
|
+
* A base class for Dashcam meta-data.
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class DashcamBase implements IRequestable, IFileSize, ISerializable {
|
|
14
|
+
/**
|
|
15
|
+
* Number bytes in the dashcam media file.
|
|
16
|
+
*/
|
|
17
|
+
bytes: ulong;
|
|
18
|
+
/**
|
|
19
|
+
* Resolution defined in pixels.
|
|
20
|
+
*/
|
|
21
|
+
size: Size;
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the provider that sent the data.
|
|
24
|
+
* {@link Provider.id}
|
|
25
|
+
*/
|
|
26
|
+
providerId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier of the provider that sent the data.
|
|
29
|
+
* {@link Provider.id}
|
|
30
|
+
*/
|
|
31
|
+
get provider(): Provider;
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier of the company of the provider.
|
|
34
|
+
* {@link Company.id}
|
|
35
|
+
*/
|
|
36
|
+
companyId: ulong;
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier of the company of the provider.
|
|
39
|
+
* {@link Company.id}
|
|
40
|
+
*/
|
|
41
|
+
get company(): Company;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the asset tied to the provider at the time.
|
|
44
|
+
* {@link Asset.id}
|
|
45
|
+
*/
|
|
46
|
+
assetId: ulong;
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier of the asset tied to the provider at the time.
|
|
49
|
+
* {@link Asset.id}
|
|
50
|
+
*/
|
|
51
|
+
get asset(): Asset;
|
|
52
|
+
/**
|
|
53
|
+
* Number assigned to the camera that took the image/video.
|
|
54
|
+
*/
|
|
55
|
+
camera: byte;
|
|
56
|
+
/**
|
|
57
|
+
* Latitude of the start of the resource.
|
|
58
|
+
*/
|
|
59
|
+
latitude: double;
|
|
60
|
+
/**
|
|
61
|
+
* Longitude of the start of the resource.
|
|
62
|
+
*/
|
|
63
|
+
longitude: double;
|
|
64
|
+
/**
|
|
65
|
+
* Speed of the start of the resource.
|
|
66
|
+
*/
|
|
67
|
+
speed: double;
|
|
68
|
+
/**
|
|
69
|
+
* Heading of the start of the resource.
|
|
70
|
+
*/
|
|
71
|
+
heading: double;
|
|
72
|
+
/**
|
|
73
|
+
* Altitude of the start of the resource.
|
|
74
|
+
*/
|
|
75
|
+
altitude: double;
|
|
76
|
+
constructor(bytes?: ulong, size?: Size | ISize, provider?: string, company?: ulong, asset?: ulong, camera?: byte, latitude?: double, longitude?: double, speed?: double, heading?: double, altitude?: double);
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
toJSON(): {
|
|
81
|
+
bytes: number | null;
|
|
82
|
+
size: ISize;
|
|
83
|
+
provider: string;
|
|
84
|
+
company: number | null;
|
|
85
|
+
asset: number | null;
|
|
86
|
+
camera: number | null;
|
|
87
|
+
latitude: number | null;
|
|
88
|
+
longitude: number | null;
|
|
89
|
+
speed: number | null;
|
|
90
|
+
heading: number | null;
|
|
91
|
+
altitude: number | null;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* For dashcams, this is either a unique identifier, or a combination of the {@link assetId}, {@link providerId}, and {@link camera} values.
|
|
95
|
+
* @returns A string unique for this type of object.
|
|
96
|
+
*/
|
|
97
|
+
abstract getKey(): string;
|
|
98
|
+
}
|