@trakit/objects 0.0.14 → 0.0.16
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/Base.d.ts +1 -6
- package/Accounts/Contact.d.ts +2 -2
- package/Accounts/Machine.d.ts +2 -1
- package/Accounts/Session.d.ts +1 -16
- package/Accounts/User.d.ts +2 -3
- package/Accounts/UserAdvanced.d.ts +2 -1
- package/Accounts/UserAuthentication.d.ts +2 -1
- package/Accounts/UserGeneral.d.ts +2 -1
- package/Accounts/UserGroup.d.ts +2 -1
- package/Assets/Asset.d.ts +35 -5
- package/Assets/AssetAdvanced.d.ts +2 -1
- package/Assets/AssetDispatch.d.ts +18 -2
- package/Assets/AssetGeneral.d.ts +34 -2
- package/Behaviours/Behaviour.d.ts +1 -0
- package/Behaviours/BehaviourLog.d.ts +1 -0
- package/Behaviours/BehaviourScript.d.ts +1 -0
- package/Billing/BillingProfile.d.ts +1 -0
- package/Billing/Hosting/BillableHostingLicense.d.ts +1 -0
- package/Billing/Hosting/BillableHostingRule.d.ts +1 -0
- package/Billing/Report/BillingReport.d.ts +1 -0
- package/Companies/Company.d.ts +3 -24
- package/Companies/CompanyDirectory.d.ts +2 -9
- package/Companies/CompanyGeneral.d.ts +2 -1
- package/Companies/CompanyPolicy.d.ts +2 -1
- package/Companies/CompanyReseller.d.ts +2 -1
- package/Companies/CompanyStyle.d.ts +2 -1
- package/Dispatch/DispatchJob.d.ts +2 -1
- package/Dispatch/DispatchTask.d.ts +1 -0
- package/Hosting/Document.d.ts +2 -1
- package/Hosting/FormResult.d.ts +2 -1
- package/Hosting/FormTemplate.d.ts +2 -1
- package/Images/Dashcam.d.ts +3 -2
- package/Images/DashcamLive.d.ts +3 -2
- package/Images/Icon.d.ts +15 -2
- package/Images/Picture.d.ts +2 -1
- package/Maintenance/MaintenanceJob.d.ts +2 -1
- package/Maintenance/MaintenanceSchedule.d.ts +2 -1
- package/Messaging/AssetAlert.d.ts +2 -1
- package/Messaging/AssetMessage.d.ts +2 -1
- package/Places/Place.d.ts +2 -1
- package/Providers/Config/ProviderConfig.d.ts +2 -1
- package/Providers/Config/ProviderRegistration.d.ts +2 -1
- package/Providers/Config/ProviderScript.d.ts +2 -1
- package/Providers/Configuration/ProviderConfiguration.d.ts +2 -1
- package/Providers/Configuration/ProviderConfigurationType.d.ts +2 -1
- package/Providers/Provider.d.ts +3 -13
- package/Providers/ProviderAdvanced.d.ts +2 -1
- package/Providers/ProviderControl.d.ts +2 -1
- package/Providers/ProviderGeneral.d.ts +2 -1
- package/README.md +24 -24
- package/Reports/ReportBreakdown.d.ts +32 -1
- package/Reports/ReportBreakdownJob.d.ts +32 -1
- package/Reports/ReportBreakdownMessage.d.ts +32 -1
- package/Reports/ReportBreakdownTask.d.ts +32 -1
- package/Reports/ReportResult.d.ts +2 -1
- package/Reports/ReportSchedule.d.ts +2 -1
- package/Reports/ReportSummary.d.ts +64 -2
- package/Reports/ReportTemplate.d.ts +2 -1
- package/index.d.ts +1 -1
- package/objects/API/Arrays.d.ts +46 -0
- package/objects/API/Base.d.ts +19 -0
- package/objects/API/BaseComponent.d.ts +40 -0
- package/objects/API/BaseCompound.d.ts +19 -0
- package/objects/API/Codifier.d.ts +15 -0
- package/objects/API/Constants.d.ts +39 -0
- package/objects/API/Conversion.d.ts +255 -0
- package/objects/API/Encoding.d.ts +9 -0
- package/objects/API/Files.d.ts +21 -0
- package/objects/API/Functions.d.ts +196 -0
- package/objects/API/Geography/Functions.d.ts +236 -0
- package/objects/API/Geography/Interfaces.d.ts +150 -0
- package/objects/API/Geography/LatLng.d.ts +86 -0
- package/objects/API/Geography/LatLngBounds.d.ts +146 -0
- package/objects/API/Geography/Position.d.ts +74 -0
- package/objects/API/Geography/StreetAddress.d.ts +59 -0
- package/objects/API/Geometry/Functions.d.ts +114 -0
- package/objects/API/Geometry/Interfaces.d.ts +111 -0
- package/objects/API/Geometry/Point.d.ts +81 -0
- package/objects/API/Geometry/Radial.d.ts +110 -0
- package/objects/API/Geometry/Rectangle.d.ts +159 -0
- package/objects/API/Geometry/Size.d.ts +58 -0
- package/objects/API/Guid.d.ts +4 -0
- package/objects/API/Interfaces/IAmCompany.d.ts +11 -0
- package/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
- package/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
- package/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
- package/objects/API/Interfaces/IDeserializable.d.ts +13 -0
- package/objects/API/Interfaces/IEnabled.d.ts +10 -0
- package/objects/API/Interfaces/IFileSize.d.ts +9 -0
- package/objects/API/Interfaces/IGlobal.d.ts +11 -0
- package/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
- package/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
- package/objects/API/Interfaces/IIconic.d.ts +15 -0
- package/objects/API/Interfaces/IIdUlong.d.ts +10 -0
- package/objects/API/Interfaces/ILabelled.d.ts +10 -0
- package/objects/API/Interfaces/INamed.d.ts +13 -0
- package/objects/API/Interfaces/IPictured.d.ts +15 -0
- package/objects/API/Interfaces/IRequestable.d.ts +22 -0
- package/objects/API/Interfaces/ISerializable.d.ts +10 -0
- package/objects/API/Interfaces/ISuspendable.d.ts +16 -0
- package/objects/API/Interfaces/IVisual.d.ts +18 -0
- package/objects/API/Maps.d.ts +28 -0
- package/objects/API/Objects.d.ts +5 -0
- package/objects/API/SearchPattern.d.ts +46 -0
- package/objects/API/TimeSpan.d.ts +109 -0
- package/objects/API/Timezone.d.ts +44 -0
- package/objects/API/Timezones.d.ts +7 -0
- package/objects/API/Types.d.ts +132 -0
- package/objects/Accounts/Contact.d.ts +139 -0
- package/objects/Accounts/Machine.d.ts +139 -0
- package/objects/Accounts/MultiFactorType.d.ts +17 -0
- package/objects/Accounts/NotificationMethod.d.ts +17 -0
- package/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
- package/objects/Accounts/Permissions/Permission.d.ts +56 -0
- package/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
- package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
- package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
- package/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
- package/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
- package/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
- package/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
- package/objects/Accounts/Session.d.ts +89 -0
- package/objects/Accounts/SessionStatus.d.ts +29 -0
- package/objects/Accounts/SystemsOfUnits.d.ts +13 -0
- package/objects/Accounts/User.d.ts +167 -0
- package/objects/Accounts/UserAdvanced.d.ts +53 -0
- package/objects/Accounts/UserAuthentication.d.ts +55 -0
- package/objects/Accounts/UserGeneral.d.ts +98 -0
- package/objects/Accounts/UserGroup.d.ts +51 -0
- package/objects/Accounts/UserMFA.d.ts +47 -0
- package/objects/Accounts/UserNotifications.d.ts +76 -0
- package/objects/Accounts/UserSSO.d.ts +37 -0
- package/objects/Assets/Asset.d.ts +218 -0
- package/objects/Assets/AssetAdvanced.d.ts +77 -0
- package/objects/Assets/AssetAttribute.d.ts +71 -0
- package/objects/Assets/AssetDispatch.d.ts +55 -0
- package/objects/Assets/AssetGeneral.d.ts +127 -0
- package/objects/Assets/AssetPlaceStatus.d.ts +31 -0
- package/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
- package/objects/Assets/AssetType.d.ts +21 -0
- package/objects/Behaviours/Behaviour.d.ts +78 -0
- package/objects/Behaviours/BehaviourLog.d.ts +95 -0
- package/objects/Behaviours/BehaviourLogType.d.ts +21 -0
- package/objects/Behaviours/BehaviourParameter.d.ts +38 -0
- package/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
- package/objects/Behaviours/BehaviourScript.d.ts +83 -0
- package/objects/Billing/BillableBase.d.ts +83 -0
- package/objects/Billing/BillableSmsProfile.d.ts +26 -0
- package/objects/Billing/BillingCurrency.d.ts +17 -0
- package/objects/Billing/BillingCycle.d.ts +17 -0
- package/objects/Billing/BillingProfile.d.ts +104 -0
- package/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
- package/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
- package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
- package/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
- package/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
- package/objects/Billing/Report/BillingReport.d.ts +112 -0
- package/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
- package/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
- package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
- package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
- package/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
- package/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
- package/objects/Companies/ColourStyle.d.ts +25 -0
- package/objects/Companies/Company.d.ts +167 -0
- package/objects/Companies/CompanyDirectory.d.ts +52 -0
- package/objects/Companies/CompanyGeneral.d.ts +55 -0
- package/objects/Companies/CompanyPolicy.d.ts +66 -0
- package/objects/Companies/CompanyReseller.d.ts +166 -0
- package/objects/Companies/CompanyStyle.d.ts +50 -0
- package/objects/Companies/LabelStyle.d.ts +46 -0
- package/objects/Companies/NotificationServerEmail.d.ts +99 -0
- package/objects/Companies/NotificationServerSms.d.ts +25 -0
- package/objects/Companies/PasswordExpiryMode.d.ts +17 -0
- package/objects/Companies/PasswordPolicy.d.ts +51 -0
- package/objects/Companies/SessionMultiUser.d.ts +17 -0
- package/objects/Companies/SessionPolicy.d.ts +47 -0
- package/objects/Dispatch/DispatchDirection.d.ts +53 -0
- package/objects/Dispatch/DispatchJob.d.ts +107 -0
- package/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
- package/objects/Dispatch/DispatchStep.d.ts +99 -0
- package/objects/Dispatch/DispatchStepState.d.ts +27 -0
- package/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
- package/objects/Dispatch/DispatchTask.d.ts +154 -0
- package/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
- package/objects/Hosting/Document.d.ts +70 -0
- package/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
- package/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
- package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
- package/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
- package/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
- package/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
- package/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
- package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
- package/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
- package/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
- package/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
- package/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
- package/objects/Hosting/FormFieldType.d.ts +127 -0
- package/objects/Hosting/FormResult.d.ts +95 -0
- package/objects/Hosting/FormTemplate.d.ts +80 -0
- package/objects/Images/Dashcam.d.ts +63 -0
- package/objects/Images/DashcamBase.d.ts +97 -0
- package/objects/Images/DashcamLive.d.ts +36 -0
- package/objects/Images/DashcamMediaType.d.ts +17 -0
- package/objects/Images/Icon.d.ts +66 -0
- package/objects/Images/IconGlyph.d.ts +47 -0
- package/objects/Images/IconLabel.d.ts +29 -0
- package/objects/Images/IconLayer.d.ts +33 -0
- package/objects/Images/Picture.d.ts +72 -0
- package/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
- package/objects/Maintenance/MaintenanceJob.d.ts +134 -0
- package/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
- package/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
- package/objects/Messaging/AlertPriority.d.ts +17 -0
- package/objects/Messaging/AssetAlert.d.ts +29 -0
- package/objects/Messaging/AssetMessage.d.ts +40 -0
- package/objects/Messaging/MessageBase.d.ts +99 -0
- package/objects/Messaging/MessageFolder.d.ts +13 -0
- package/objects/Messaging/MessageStatus.d.ts +29 -0
- package/objects/Messaging/MessageType.d.ts +33 -0
- package/objects/Places/Place.d.ts +114 -0
- package/objects/Places/PlaceType.d.ts +25 -0
- package/objects/Providers/Config/ProviderConfig.d.ts +70 -0
- package/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
- package/objects/Providers/Config/ProviderScript.d.ts +86 -0
- package/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
- package/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
- package/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
- package/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
- package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
- package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
- package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
- package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
- package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
- package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
- package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
- package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
- package/objects/Providers/Provider.d.ts +205 -0
- package/objects/Providers/ProviderAdvanced.d.ts +50 -0
- package/objects/Providers/ProviderCommand.d.ts +36 -0
- package/objects/Providers/ProviderCommandStatus.d.ts +29 -0
- package/objects/Providers/ProviderCommandType.d.ts +37 -0
- package/objects/Providers/ProviderControl.d.ts +41 -0
- package/objects/Providers/ProviderData.d.ts +30 -0
- package/objects/Providers/ProviderGeneral.d.ts +121 -0
- package/objects/Providers/ProviderType.d.ts +106 -0
- package/objects/Reports/ReportBreakdown.d.ts +49 -0
- package/objects/Reports/ReportBreakdownJob.d.ts +37 -0
- package/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
- package/objects/Reports/ReportBreakdownTask.d.ts +46 -0
- package/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
- package/objects/Reports/ReportFilterMode.d.ts +17 -0
- package/objects/Reports/ReportNotifications.d.ts +31 -0
- package/objects/Reports/ReportOptions.d.ts +52 -0
- package/objects/Reports/ReportParameter.d.ts +26 -0
- package/objects/Reports/ReportParameterType.d.ts +59 -0
- package/objects/Reports/ReportRecurrence.d.ts +54 -0
- package/objects/Reports/ReportRecurrenceType.d.ts +34 -0
- package/objects/Reports/ReportResult.d.ts +169 -0
- package/objects/Reports/ReportResultData.d.ts +17 -0
- package/objects/Reports/ReportSchedule.d.ts +111 -0
- package/objects/Reports/ReportScorecard.d.ts +38 -0
- package/objects/Reports/ReportScorecardParameter.d.ts +31 -0
- package/objects/Reports/ReportScorecardRules.d.ts +26 -0
- package/objects/Reports/ReportStatus.d.ts +29 -0
- package/objects/Reports/ReportSummary.d.ts +90 -0
- package/objects/Reports/ReportSummaryReason.d.ts +27 -0
- package/objects/Reports/ReportTemplate.d.ts +81 -0
- package/objects/Reports/ReportTotal.d.ts +47 -0
- package/objects/Reports/ReportType.d.ts +42 -0
- package/objects/index.d.ts +406 -0
- package/objects/storage.d.ts +176 -0
- package/package.json +36 -36
- package/trakit-objects.min.js +2 -2
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { LatLng } from "../API/Geography/LatLng";
|
|
3
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
4
|
+
import { IIconic } from "../API/Interfaces/IIconic";
|
|
5
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
6
|
+
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
7
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
8
|
+
import { IPictured } from "../API/Interfaces/IPictured";
|
|
9
|
+
import { JsonObject, codified, colour, double, ulong } from "../API/Types";
|
|
10
|
+
import { Company } from "../Companies/Company";
|
|
11
|
+
import { Icon } from "../Images/Icon";
|
|
12
|
+
import { Picture } from "../Images/Picture";
|
|
13
|
+
import { PlaceType } from "./PlaceType";
|
|
14
|
+
/**
|
|
15
|
+
* A POI (point-of-interest) saved to the system to help determine an asset's real-world position.
|
|
16
|
+
*/
|
|
17
|
+
export declare class Place extends BaseComponent implements IIdUlong, INamed, IIconic, IBelongCompany, ILabelled, IPictured {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of this POI.
|
|
20
|
+
*/
|
|
21
|
+
id: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The company to which this POI belongs.
|
|
24
|
+
* {@link Company.id}
|
|
25
|
+
*/
|
|
26
|
+
companyId: ulong;
|
|
27
|
+
/**
|
|
28
|
+
* The {@link Company} to which this POI belongs.
|
|
29
|
+
*/
|
|
30
|
+
get company(): Company;
|
|
31
|
+
/**
|
|
32
|
+
* The kind of geography represented by this POI.
|
|
33
|
+
*/
|
|
34
|
+
kind: PlaceType;
|
|
35
|
+
/**
|
|
36
|
+
* POI's common name instead of street address.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Full street address including province/state, country, and postal/zip code.
|
|
41
|
+
*/
|
|
42
|
+
address: string;
|
|
43
|
+
/**
|
|
44
|
+
* The icon used to display this POI in lists and on the map.
|
|
45
|
+
* {@link Icon.id}
|
|
46
|
+
*/
|
|
47
|
+
iconId: ulong;
|
|
48
|
+
/**
|
|
49
|
+
* The {@link Icon} used to display this POI in lists and on the map.
|
|
50
|
+
*/
|
|
51
|
+
get icon(): Icon;
|
|
52
|
+
set icon(value: Icon);
|
|
53
|
+
/**
|
|
54
|
+
* Notes!
|
|
55
|
+
*/
|
|
56
|
+
notes: string;
|
|
57
|
+
/**
|
|
58
|
+
* The codified names of labels
|
|
59
|
+
*/
|
|
60
|
+
labels: codified[];
|
|
61
|
+
/**
|
|
62
|
+
* The fill colour given to this place for easy visual identification on the map (given in 24bit hex; #RRGGBB)
|
|
63
|
+
*/
|
|
64
|
+
colour: colour;
|
|
65
|
+
/**
|
|
66
|
+
* {@link Picture.id}s of this POI.
|
|
67
|
+
*/
|
|
68
|
+
pictureIds: ulong[];
|
|
69
|
+
/**
|
|
70
|
+
* {@link Picture}s of this POI.
|
|
71
|
+
*/
|
|
72
|
+
get pictures(): Picture[];
|
|
73
|
+
set pictures(values: Picture[]);
|
|
74
|
+
/**
|
|
75
|
+
* A custom field used to refer to an external system.
|
|
76
|
+
*/
|
|
77
|
+
reference: string;
|
|
78
|
+
/**
|
|
79
|
+
* A central point of the shape.
|
|
80
|
+
* This is the exact centre of a {@link PlaceType.radial} and {@link PlaceType.point} shaped places, and the location of the pin on the map for all types.
|
|
81
|
+
* When routing, {@link PlaceType.polygon} and {@link PlaceType.rectangle} shapes use the anchor as the location within the place for deliveries.
|
|
82
|
+
*/
|
|
83
|
+
anchor: LatLng | null;
|
|
84
|
+
/**
|
|
85
|
+
* This member is only present for {@link PlaceType.radial} shapes, and is the radius in meters from the centre anchor.
|
|
86
|
+
*/
|
|
87
|
+
radius: double;
|
|
88
|
+
/**
|
|
89
|
+
* A list of points forming a non-self-intersecting polygon.
|
|
90
|
+
*/
|
|
91
|
+
points: LatLng[] | null;
|
|
92
|
+
toJSON(): {
|
|
93
|
+
id: number | null;
|
|
94
|
+
v: number[];
|
|
95
|
+
company: number;
|
|
96
|
+
icon: number;
|
|
97
|
+
name: string;
|
|
98
|
+
notes: string;
|
|
99
|
+
address: string;
|
|
100
|
+
kind: PlaceType;
|
|
101
|
+
labels: string[];
|
|
102
|
+
colour: string;
|
|
103
|
+
pictures: number[];
|
|
104
|
+
reference: string;
|
|
105
|
+
anchor: import("../API/Geography/Interfaces").ILatLng | null;
|
|
106
|
+
radius: number | null;
|
|
107
|
+
shape: string | null;
|
|
108
|
+
};
|
|
109
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The {@link id} is the key.
|
|
112
|
+
*/
|
|
113
|
+
getKey(): number;
|
|
114
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The types of geography the system supports
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PlaceType {
|
|
5
|
+
/**
|
|
6
|
+
* A lat/long coordinate pair.
|
|
7
|
+
* Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} or {@link Vorgon.PlaceGeneral.shape} keys.
|
|
8
|
+
*/
|
|
9
|
+
point = "point",
|
|
10
|
+
/**
|
|
11
|
+
* Defined as a radius around a lat/long pair used to create a circular boundary.
|
|
12
|
+
* Places of this type do not contain the {@link Vorgon.PlaceGeneral.shape} key.
|
|
13
|
+
*/
|
|
14
|
+
radial = "radial",
|
|
15
|
+
/**
|
|
16
|
+
* The {@link Vorgon.PlaceGeneral.shape} is an array of lat/long coordinates used to create a boundary.
|
|
17
|
+
* Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} key.
|
|
18
|
+
*/
|
|
19
|
+
polygon = "polygon",
|
|
20
|
+
/**
|
|
21
|
+
* The {@link Vorgon.PlaceGeneral.shape} is an array of two lat/long coordinates defined as north-east and south-west corners.
|
|
22
|
+
* Places of this type do not contain the {@link Vorgon.PlaceGeneral.radius} key.
|
|
23
|
+
*/
|
|
24
|
+
rectangle = "rectangle"
|
|
25
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BaseComponent } from "../../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
4
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
|
+
import { SearchPattern } from "../../API/SearchPattern";
|
|
6
|
+
import { JsonObject, ulong } from "../../API/Types";
|
|
7
|
+
import { Company } from "../../Companies/Company";
|
|
8
|
+
import { ProviderScript } from "./ProviderScript";
|
|
9
|
+
/**
|
|
10
|
+
* The configured script loaded onto the provider over-the-air to control it's reporting schedule and behaviour.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ProviderConfig extends BaseComponent implements IIdUlong, INamed, IBelongCompany {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier of this configuration.
|
|
15
|
+
*/
|
|
16
|
+
id: ulong;
|
|
17
|
+
/**
|
|
18
|
+
* The company to which this configuration belongs.
|
|
19
|
+
* {@link Company.id}
|
|
20
|
+
*/
|
|
21
|
+
companyId: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The {@link Company} to which this configuration belongs.
|
|
24
|
+
*/
|
|
25
|
+
get company(): Company;
|
|
26
|
+
/**
|
|
27
|
+
* The script which this configuration implements.
|
|
28
|
+
* {@link ProviderScript.id}
|
|
29
|
+
*/
|
|
30
|
+
scriptId: ulong;
|
|
31
|
+
/**
|
|
32
|
+
* The {@link ProviderScript} which this configuration implements.
|
|
33
|
+
*/
|
|
34
|
+
get script(): ProviderScript;
|
|
35
|
+
set script(value: ProviderScript);
|
|
36
|
+
/**
|
|
37
|
+
* The nickname given to this configuration
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Simple details about how the providers are expected to behave.
|
|
42
|
+
*/
|
|
43
|
+
notes: string;
|
|
44
|
+
/**
|
|
45
|
+
* The list of defined variable name/value pairs that the script requires.
|
|
46
|
+
*/
|
|
47
|
+
parameters: Map<string, string>;
|
|
48
|
+
/**
|
|
49
|
+
* A search pattern used to filter which Places' geometry are used as geofences.
|
|
50
|
+
* Use null to disable.
|
|
51
|
+
* Use "*" to match all the Places the Provider's Asset can match.
|
|
52
|
+
* Or use "#123456" or "label:term" like other Place search patterns.
|
|
53
|
+
*/
|
|
54
|
+
geofences: SearchPattern[] | null;
|
|
55
|
+
toJSON(): {
|
|
56
|
+
id: number | null;
|
|
57
|
+
v: number[];
|
|
58
|
+
company: number | null;
|
|
59
|
+
script: number | null;
|
|
60
|
+
name: string;
|
|
61
|
+
notes: string;
|
|
62
|
+
parameters: JsonObject;
|
|
63
|
+
geofences: string | null;
|
|
64
|
+
};
|
|
65
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The {@link id} is the key.
|
|
68
|
+
*/
|
|
69
|
+
getKey(): number;
|
|
70
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Base } from "../../API/Base";
|
|
2
|
+
import { IBelongAsset } from "../../API/Interfaces/IBelongAsset";
|
|
3
|
+
import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
4
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
|
+
import { IRequestable } from "../../API/Interfaces/IRequestable";
|
|
6
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
7
|
+
import { email, phone, ulong, JsonObject } from "../../API/Types";
|
|
8
|
+
import { User } from "../../Accounts/User";
|
|
9
|
+
import { Asset } from "../../Assets/Asset";
|
|
10
|
+
import { Company } from "../../Companies/Company";
|
|
11
|
+
import { ProviderConfiguration } from "../Configuration/ProviderConfiguration";
|
|
12
|
+
import { ProviderType } from "../ProviderType";
|
|
13
|
+
import { ProviderConfig } from "./ProviderConfig";
|
|
14
|
+
/**
|
|
15
|
+
* The temporary reference to a device whose ownership is pending.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ProviderRegistration extends Base implements IRequestable, INamed, IBelongCompany, IBelongAsset, ISerializable {
|
|
18
|
+
/**
|
|
19
|
+
* A unique six digit code.
|
|
20
|
+
*/
|
|
21
|
+
code: string;
|
|
22
|
+
/**
|
|
23
|
+
* The company to which the device will belong.
|
|
24
|
+
* {@link Company.id}
|
|
25
|
+
*/
|
|
26
|
+
companyId: ulong;
|
|
27
|
+
/**
|
|
28
|
+
* The {@link Company} to which the device will belong.
|
|
29
|
+
*/
|
|
30
|
+
get company(): Company;
|
|
31
|
+
/**
|
|
32
|
+
* A nickname given to the device once it has been provisioned.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Notes!
|
|
37
|
+
*/
|
|
38
|
+
notes: string;
|
|
39
|
+
/**
|
|
40
|
+
* The password programmed on the device used to ensure the system is the only client authorized to make changes.
|
|
41
|
+
*/
|
|
42
|
+
password: string;
|
|
43
|
+
/**
|
|
44
|
+
* The unique identifier the user who generated this registration.
|
|
45
|
+
* {@link User.login}
|
|
46
|
+
*/
|
|
47
|
+
userLogin: email;
|
|
48
|
+
/**
|
|
49
|
+
* The unique identifier the user who generated this registration.
|
|
50
|
+
* {@link User.login}
|
|
51
|
+
*/
|
|
52
|
+
get user(): User;
|
|
53
|
+
/**
|
|
54
|
+
* The predefined configuration this device will use.
|
|
55
|
+
* {@link ProviderConfig.id}
|
|
56
|
+
* {@link ProviderConfiguration.id}
|
|
57
|
+
*/
|
|
58
|
+
configId: ulong;
|
|
59
|
+
/**
|
|
60
|
+
* The predefined {@link ProviderConfig} (or {@link ProviderConfiguration}) this device will use.
|
|
61
|
+
*/
|
|
62
|
+
get config(): ProviderConfig | ProviderConfiguration;
|
|
63
|
+
/**
|
|
64
|
+
* The kind of protocol this device supports.
|
|
65
|
+
*/
|
|
66
|
+
kind: ProviderType;
|
|
67
|
+
/**
|
|
68
|
+
* Date/time stamp of when this registration began.
|
|
69
|
+
*/
|
|
70
|
+
since: Date;
|
|
71
|
+
/**
|
|
72
|
+
* Date/time stamp of when this registration ended successfully.
|
|
73
|
+
*/
|
|
74
|
+
completed: Date;
|
|
75
|
+
/**
|
|
76
|
+
* The expiry date for this registration.
|
|
77
|
+
*/
|
|
78
|
+
expires: Date;
|
|
79
|
+
/**
|
|
80
|
+
* The unique identifier of the device that completed this registration.
|
|
81
|
+
* {@link Provider.id}
|
|
82
|
+
*/
|
|
83
|
+
identifier: string;
|
|
84
|
+
/**
|
|
85
|
+
* The Asset for which this device will provide data.
|
|
86
|
+
* {@link Asset.id}
|
|
87
|
+
*/
|
|
88
|
+
assetId: ulong;
|
|
89
|
+
/**
|
|
90
|
+
* The {@link Asset} for which this device will provide data.
|
|
91
|
+
*/
|
|
92
|
+
get asset(): Asset;
|
|
93
|
+
/**
|
|
94
|
+
* The phone number of the device being provisioned.
|
|
95
|
+
* This is set by the user for long-term registrations, or by the client during serial port setup.
|
|
96
|
+
*/
|
|
97
|
+
phoneNumber: phone;
|
|
98
|
+
toJSON(): {
|
|
99
|
+
code: string | null;
|
|
100
|
+
company: number | null;
|
|
101
|
+
name: string;
|
|
102
|
+
notes: string;
|
|
103
|
+
password: string;
|
|
104
|
+
user: string;
|
|
105
|
+
config: number | null;
|
|
106
|
+
kind: ProviderType;
|
|
107
|
+
since: string | null;
|
|
108
|
+
completed: string | null;
|
|
109
|
+
expires: string | null;
|
|
110
|
+
identifier: string;
|
|
111
|
+
asset: number | null;
|
|
112
|
+
phoneNumber: number | null;
|
|
113
|
+
};
|
|
114
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The {@link code} is the key.
|
|
117
|
+
*/
|
|
118
|
+
getKey(): string;
|
|
119
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { BaseComponent } from "../../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { IGlobal } from "../../API/Interfaces/IGlobal";
|
|
4
|
+
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
5
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
6
|
+
import { IVisual } from "../../API/Interfaces/IVisual";
|
|
7
|
+
import { JsonObject, codified, colour, ulong } from "../../API/Types";
|
|
8
|
+
import { Company } from "../../Companies/Company";
|
|
9
|
+
import { ProviderType } from "../ProviderType";
|
|
10
|
+
import { ProviderScriptBlock } from "./ProviderScriptBlock";
|
|
11
|
+
import { ProviderScriptParameter } from "./ProviderScriptParameter";
|
|
12
|
+
/**
|
|
13
|
+
* This class describes a type of logic applied to a provider.
|
|
14
|
+
* A script will generate a file which is loaded onto a provider in the field.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ProviderScript extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IGlobal, IVisual {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of this configuration.
|
|
19
|
+
*/
|
|
20
|
+
id: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The company to which this configuration belongs.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
companyId: ulong;
|
|
26
|
+
/**
|
|
27
|
+
* The {@link Company} to which this configuration belongs.
|
|
28
|
+
*/
|
|
29
|
+
get company(): Company;
|
|
30
|
+
/**
|
|
31
|
+
* The nickname given to this configuration
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Simple details about how the providers are expected to behave.
|
|
36
|
+
*/
|
|
37
|
+
notes: string;
|
|
38
|
+
/**
|
|
39
|
+
* The fill/background colour of the icon.
|
|
40
|
+
*/
|
|
41
|
+
fill: colour;
|
|
42
|
+
/**
|
|
43
|
+
* Outline and graphic colour.
|
|
44
|
+
*/
|
|
45
|
+
stroke: colour;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the symbol for this script.
|
|
48
|
+
*/
|
|
49
|
+
graphic: codified;
|
|
50
|
+
/**
|
|
51
|
+
* Indicates whether this script is available to child companies.
|
|
52
|
+
*/
|
|
53
|
+
global: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The type of provider for which this script can be used.
|
|
56
|
+
* Limiting to a specific model from a manufacturer is accomplished through the block conditions.
|
|
57
|
+
*/
|
|
58
|
+
kind: ProviderType;
|
|
59
|
+
/**
|
|
60
|
+
* Blocks of file data which are (optionally) included in the script data file.
|
|
61
|
+
*/
|
|
62
|
+
blocks: ProviderScriptBlock[];
|
|
63
|
+
/**
|
|
64
|
+
* Parameter definitions for this script, including type-hints and default values.
|
|
65
|
+
*/
|
|
66
|
+
parameters: Map<string, ProviderScriptParameter>;
|
|
67
|
+
toJSON(): {
|
|
68
|
+
id: number | null;
|
|
69
|
+
v: number[];
|
|
70
|
+
company: number;
|
|
71
|
+
name: string;
|
|
72
|
+
notes: string;
|
|
73
|
+
fill: string;
|
|
74
|
+
stroke: string;
|
|
75
|
+
graphic: string;
|
|
76
|
+
global: boolean;
|
|
77
|
+
kind: ProviderType;
|
|
78
|
+
blocks: any[];
|
|
79
|
+
parameters: JsonObject;
|
|
80
|
+
};
|
|
81
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The {@link id} is the key.
|
|
84
|
+
*/
|
|
85
|
+
getKey(): number;
|
|
86
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { JsonObject } from "../../API/Types";
|
|
3
|
+
/**
|
|
4
|
+
* A chunk of script and variables used to assemble a working ProviderScript.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProviderScriptBlock implements ISerializable {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param json
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
static fromJSON(json: JsonObject): ProviderScriptBlock;
|
|
13
|
+
/**
|
|
14
|
+
* A chunk of the file loaded onto a provider with it's variables replaced with configurable variables.
|
|
15
|
+
* Trailing or leading whitespace should be included here, so when blocks are merged, so too is the newline characters.
|
|
16
|
+
*/
|
|
17
|
+
content: string;
|
|
18
|
+
/**
|
|
19
|
+
* A regular expression used to match variables in the content.
|
|
20
|
+
* The regex must contain at least one match-group.
|
|
21
|
+
* The value fom the last group is what's used as a parameter name.
|
|
22
|
+
* @example {{([a-z]+)}}
|
|
23
|
+
* @example <(var[a-z]+)>
|
|
24
|
+
*/
|
|
25
|
+
replace: string;
|
|
26
|
+
/**
|
|
27
|
+
* When defined, this condition matches a {@link ProviderScriptParameter} defined in the {@link ProviderConfig} to include or exclude this chunk from the script.
|
|
28
|
+
*/
|
|
29
|
+
condition: string;
|
|
30
|
+
/**
|
|
31
|
+
* Used in conjunction with condition, this value must match the given ProviderScriptParameter value to have the chunk included.
|
|
32
|
+
*/
|
|
33
|
+
validate: string;
|
|
34
|
+
constructor(content?: string, replace?: string, condition?: string, validate?: string);
|
|
35
|
+
toJSON(): {
|
|
36
|
+
content: string;
|
|
37
|
+
replace: string;
|
|
38
|
+
condition: string;
|
|
39
|
+
validate: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { uint, JsonObject } from "../../API/Types";
|
|
3
|
+
import { ProviderScriptParameterType } from "./ProviderScriptParameterType";
|
|
4
|
+
/**
|
|
5
|
+
* Definition of an argument passed to a ProviderScript.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProviderScriptParameter implements ISerializable {
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param json
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
static fromJSON(json: JsonObject): ProviderScriptParameter;
|
|
14
|
+
/**
|
|
15
|
+
* Simple type information for the gateway to process.
|
|
16
|
+
*/
|
|
17
|
+
kind: ProviderScriptParameterType;
|
|
18
|
+
/**
|
|
19
|
+
* The value is given as a string, but parsed into native type when used by the gateway.
|
|
20
|
+
*/
|
|
21
|
+
value: string;
|
|
22
|
+
/**
|
|
23
|
+
* Usage notes.
|
|
24
|
+
*/
|
|
25
|
+
notes: string;
|
|
26
|
+
/**
|
|
27
|
+
* Gives a hint to the client on the best UI to use for editing.
|
|
28
|
+
* For example, "checkbox" is a good UI hint for boolean parameter types.
|
|
29
|
+
*/
|
|
30
|
+
context: string;
|
|
31
|
+
/**
|
|
32
|
+
* The order in which this parameter is displayed compared to other parameters.
|
|
33
|
+
* The value has no effect on how this parameter is inserted into the ProviderScriptBlocks.
|
|
34
|
+
*/
|
|
35
|
+
order: uint;
|
|
36
|
+
/**
|
|
37
|
+
* Used as a hint that this parameter controls an advanced script option and should only be set if you really know what you're doing.
|
|
38
|
+
*/
|
|
39
|
+
advanced: boolean;
|
|
40
|
+
constructor(kind?: ProviderScriptParameterType, value?: string, notes?: string, context?: string, order?: uint, advanced?: boolean);
|
|
41
|
+
toJSON(): {
|
|
42
|
+
kind: ProviderScriptParameterType;
|
|
43
|
+
value: string;
|
|
44
|
+
notes: string;
|
|
45
|
+
context: string;
|
|
46
|
+
order: number;
|
|
47
|
+
advanced: boolean;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Possible data-types given to ProviderScriptParameter.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ProviderScriptParameterType {
|
|
5
|
+
/**
|
|
6
|
+
* True or false.
|
|
7
|
+
*/
|
|
8
|
+
boolean = "boolean",
|
|
9
|
+
/**
|
|
10
|
+
* Numeric value (double-precision floating point number).
|
|
11
|
+
*/
|
|
12
|
+
number = "number",
|
|
13
|
+
/**
|
|
14
|
+
* Text.
|
|
15
|
+
*/
|
|
16
|
+
text = "text"
|
|
17
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BaseComponent } from "../../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
4
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
|
+
import { JsonObject, ulong } from "../../API/Types";
|
|
6
|
+
import { Company } from "../../Companies/Company";
|
|
7
|
+
import { ProviderConfigurationType } from "./ProviderConfigurationType";
|
|
8
|
+
/**
|
|
9
|
+
* The configured logic loaded onto the provider over-the-air to control it's reporting schedule and behaviour.
|
|
10
|
+
* @deprecated Use {@link ProviderConfig} instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ProviderConfiguration extends BaseComponent implements IIdUlong, INamed, IBelongCompany {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier of this configuration.
|
|
15
|
+
*/
|
|
16
|
+
id: ulong;
|
|
17
|
+
/**
|
|
18
|
+
* The company to which this configuration belongs.
|
|
19
|
+
* {@link Company.id}
|
|
20
|
+
*/
|
|
21
|
+
companyId: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The {@link Company} to which this configuration belongs.
|
|
24
|
+
*/
|
|
25
|
+
get company(): Company;
|
|
26
|
+
/**
|
|
27
|
+
* The nickname given to this configuration
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Simple details about how the providers are expected to behave.
|
|
32
|
+
*/
|
|
33
|
+
notes: string;
|
|
34
|
+
/**
|
|
35
|
+
* The logic type which this configuration implements.
|
|
36
|
+
* {@link ProviderConfigurationType.id}
|
|
37
|
+
*/
|
|
38
|
+
typeId: ulong;
|
|
39
|
+
/**
|
|
40
|
+
* The {@link ProviderConfigurationType} which this configuration implements.
|
|
41
|
+
*/
|
|
42
|
+
get type(): ProviderConfigurationType;
|
|
43
|
+
/**
|
|
44
|
+
* The list of defined variables given to the {@link ProviderConfigurationType.scriptOptions|logic type's options} pairs for the logic type requires.
|
|
45
|
+
*/
|
|
46
|
+
scriptParameters: Map<string, any>;
|
|
47
|
+
/**
|
|
48
|
+
* List of Places loaded directly onto the provider.
|
|
49
|
+
*/
|
|
50
|
+
geofences: ulong[];
|
|
51
|
+
toJSON(): {
|
|
52
|
+
id: number;
|
|
53
|
+
company: number;
|
|
54
|
+
v: number[];
|
|
55
|
+
name: string;
|
|
56
|
+
notes: string;
|
|
57
|
+
type: number | null;
|
|
58
|
+
scriptParameters: JsonObject;
|
|
59
|
+
geofences: number[];
|
|
60
|
+
};
|
|
61
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The {@link id} is the key.
|
|
64
|
+
*/
|
|
65
|
+
getKey(): number;
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ISerializable } from '../../API/Interfaces/ISerializable';
|
|
2
|
+
import { JsonObject } from '../../API/Types';
|
|
3
|
+
/**
|
|
4
|
+
* This tree-like structure is given to the script processor for the device type so that the device can follow a program.
|
|
5
|
+
* @deprecated Use ProviderScriptBlock instead
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProviderConfigurationNode implements ISerializable {
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param json
|
|
11
|
+
*/
|
|
12
|
+
static nodesFromJSON(json: JsonObject): Map<string, ProviderConfigurationNode>;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param json
|
|
16
|
+
*/
|
|
17
|
+
static fromJSON(json: JsonObject): ProviderConfigurationNode;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that this configuration is an advanced property and should only be set by someone who knows what they're doing.
|
|
20
|
+
*/
|
|
21
|
+
isAdvanced: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the value being mapped.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The value being set.
|
|
28
|
+
*/
|
|
29
|
+
value: any;
|
|
30
|
+
/**
|
|
31
|
+
* The minimum possible value for this confugration node.
|
|
32
|
+
*/
|
|
33
|
+
min: any;
|
|
34
|
+
/**
|
|
35
|
+
* The maximum possible value for this confugration node.
|
|
36
|
+
*/
|
|
37
|
+
max: any;
|
|
38
|
+
/**
|
|
39
|
+
* Type hint used by the script processor to help format the value.
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unit hint used to help the script processor format the value.
|
|
44
|
+
*/
|
|
45
|
+
unit: string;
|
|
46
|
+
/**
|
|
47
|
+
* Description of what this configuration does when mapped to a device.
|
|
48
|
+
*/
|
|
49
|
+
notes: string;
|
|
50
|
+
/**
|
|
51
|
+
* Child configuration nodes.
|
|
52
|
+
*/
|
|
53
|
+
nodes: Map<string, ProviderConfigurationNode>;
|
|
54
|
+
constructor(id?: string, notes?: string, isAdvanced?: boolean, type?: string, min?: any, max?: any, value?: any, unit?: string, nodes?: Map<string, ProviderConfigurationNode>);
|
|
55
|
+
toJSON(): {
|
|
56
|
+
id: string;
|
|
57
|
+
value: any;
|
|
58
|
+
min: any;
|
|
59
|
+
max: any;
|
|
60
|
+
type: string;
|
|
61
|
+
unit: string;
|
|
62
|
+
notes: string;
|
|
63
|
+
isAdvanced: boolean;
|
|
64
|
+
nodes: JsonObject;
|
|
65
|
+
};
|
|
66
|
+
}
|