@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,154 @@
|
|
|
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 { TimeSpan } from "../API/TimeSpan";
|
|
7
|
+
import { JsonObject, ulong } from "../API/Types";
|
|
8
|
+
import { Asset } from "../Assets/Asset";
|
|
9
|
+
import { Company } from "../Companies/Company";
|
|
10
|
+
import { Document } from "../Hosting/Document";
|
|
11
|
+
import { Place } from "../Places/Place";
|
|
12
|
+
import { DispatchTaskStatus } from "./DispatchTaskStatus";
|
|
13
|
+
/**
|
|
14
|
+
* A task assigned to an asset which represents a coordinate on the map which must be visited.
|
|
15
|
+
* @deprecated Use DispatchJob instead
|
|
16
|
+
*/
|
|
17
|
+
export declare class DispatchTask extends BaseComponent implements IIdUlong, IBelongCompany, IBelongAsset {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of this task.
|
|
20
|
+
*/
|
|
21
|
+
id: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The company to which this task belongs.
|
|
24
|
+
* {@link Company.id}
|
|
25
|
+
*/
|
|
26
|
+
companyId: ulong;
|
|
27
|
+
/**
|
|
28
|
+
* The {@link Company} to which this task belongs.
|
|
29
|
+
*/
|
|
30
|
+
get company(): Company;
|
|
31
|
+
/**
|
|
32
|
+
* The asset to which this task belongs.
|
|
33
|
+
* {@link Asset.id}
|
|
34
|
+
*/
|
|
35
|
+
assetId: ulong;
|
|
36
|
+
/**
|
|
37
|
+
* The {@link Asset} to which this task belongs.
|
|
38
|
+
*/
|
|
39
|
+
get asset(): Asset;
|
|
40
|
+
set asset(value: Asset);
|
|
41
|
+
/**
|
|
42
|
+
* The name of this task or the work needed to be performed.
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Name/value collections of custom fields used to refer to external systems.
|
|
47
|
+
*/
|
|
48
|
+
references: Map<string, string>;
|
|
49
|
+
/**
|
|
50
|
+
* An optional place which can be used as a template instead of providing lat/long coordinates and a street address.
|
|
51
|
+
* {@link Place.id}
|
|
52
|
+
*/
|
|
53
|
+
placeId: ulong;
|
|
54
|
+
/**
|
|
55
|
+
* An optional place which can be used as a template instead of providing lat/long coordinates and a street address.
|
|
56
|
+
* {@link Place.id}
|
|
57
|
+
*/
|
|
58
|
+
get place(): Place;
|
|
59
|
+
set place(value: Place);
|
|
60
|
+
/**
|
|
61
|
+
* The street address of where the task must be completed.
|
|
62
|
+
*/
|
|
63
|
+
address: string;
|
|
64
|
+
/**
|
|
65
|
+
* The lat/long coordinates of where the task must be completed.
|
|
66
|
+
*/
|
|
67
|
+
latlng: LatLng;
|
|
68
|
+
/**
|
|
69
|
+
* The progress of this task.
|
|
70
|
+
*/
|
|
71
|
+
status: DispatchTaskStatus;
|
|
72
|
+
/**
|
|
73
|
+
* When this task was created.
|
|
74
|
+
*/
|
|
75
|
+
created: Date;
|
|
76
|
+
/**
|
|
77
|
+
* The optional estimated time of arrival for the asset.
|
|
78
|
+
*/
|
|
79
|
+
eta: Date;
|
|
80
|
+
/**
|
|
81
|
+
* The optional expected duration of the work for this task.
|
|
82
|
+
*/
|
|
83
|
+
duration: TimeSpan;
|
|
84
|
+
/**
|
|
85
|
+
* The date/time stamp of when the asset arrived at this task.
|
|
86
|
+
*/
|
|
87
|
+
arrived: Date;
|
|
88
|
+
/**
|
|
89
|
+
* The date/time stamp of when this task was completed.
|
|
90
|
+
*/
|
|
91
|
+
completed: Date;
|
|
92
|
+
/**
|
|
93
|
+
* Instructions (filled out by dispatcher) for the field-employee to help them completed the task.
|
|
94
|
+
*/
|
|
95
|
+
instructions: string;
|
|
96
|
+
/**
|
|
97
|
+
* Indicates whether the task has a signature.
|
|
98
|
+
*/
|
|
99
|
+
signature: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the person who signed the task's completion.
|
|
102
|
+
*/
|
|
103
|
+
signatory: string;
|
|
104
|
+
/**
|
|
105
|
+
* Notes about the status of the work filled in by field-employee.
|
|
106
|
+
*/
|
|
107
|
+
notes: string;
|
|
108
|
+
/**
|
|
109
|
+
* A list of hosted {@link Document} identifiers attached to this task.
|
|
110
|
+
*/
|
|
111
|
+
attachmentIds: ulong[];
|
|
112
|
+
/**
|
|
113
|
+
* A list of hosted {@link Document} identifiers attached to this task.
|
|
114
|
+
*/
|
|
115
|
+
get attachments(): Document[];
|
|
116
|
+
set attachments(value: Document[]);
|
|
117
|
+
/**
|
|
118
|
+
* Either the user's login, or provider's identifier that changed this task
|
|
119
|
+
*/
|
|
120
|
+
updatedBy: string;
|
|
121
|
+
/**
|
|
122
|
+
* Timestamp from the last change made to this task
|
|
123
|
+
*/
|
|
124
|
+
updatedUtc: Date;
|
|
125
|
+
toJSON(): {
|
|
126
|
+
id: number | null;
|
|
127
|
+
company: number | null;
|
|
128
|
+
asset: number | null;
|
|
129
|
+
v: number[];
|
|
130
|
+
name: string;
|
|
131
|
+
references: JsonObject;
|
|
132
|
+
place: number | null;
|
|
133
|
+
address: string;
|
|
134
|
+
latlng: import("../API/Geography/Interfaces").ILatLng;
|
|
135
|
+
status: DispatchTaskStatus;
|
|
136
|
+
created: string | null;
|
|
137
|
+
eta: string | null;
|
|
138
|
+
duration: string;
|
|
139
|
+
arrived: string | null;
|
|
140
|
+
completed: string | null;
|
|
141
|
+
instructions: string;
|
|
142
|
+
signature: boolean;
|
|
143
|
+
signatory: string;
|
|
144
|
+
notes: string;
|
|
145
|
+
attachments: number[];
|
|
146
|
+
updatedBy: string;
|
|
147
|
+
updatedUtc: string | null;
|
|
148
|
+
};
|
|
149
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* The {@link id} is the key.
|
|
152
|
+
*/
|
|
153
|
+
getKey(): number;
|
|
154
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tasks have a lifetime and each status represents a task's progress through it's life.
|
|
3
|
+
* @deprecated Use {@link DispatchStepStatus} instead
|
|
4
|
+
*/
|
|
5
|
+
export declare enum DispatchTaskStatus {
|
|
6
|
+
/**
|
|
7
|
+
* The task has been created, but not yet assigned to an asset.
|
|
8
|
+
*/
|
|
9
|
+
created = "created",
|
|
10
|
+
/**
|
|
11
|
+
* The task has been given to an asset (and delivered to the asset's primary device).
|
|
12
|
+
*/
|
|
13
|
+
queued = "queued",
|
|
14
|
+
/**
|
|
15
|
+
* The asset is on the way to the task's location next.
|
|
16
|
+
*/
|
|
17
|
+
onRoute = "onRoute",
|
|
18
|
+
/**
|
|
19
|
+
* The asset has arrived at the task's location.
|
|
20
|
+
*/
|
|
21
|
+
arrived = "arrived",
|
|
22
|
+
/**
|
|
23
|
+
* The task is done.
|
|
24
|
+
*/
|
|
25
|
+
completed = "completed",
|
|
26
|
+
/**
|
|
27
|
+
* The task was cancelled by either the asset or a user.
|
|
28
|
+
*/
|
|
29
|
+
cancelled = "cancelled",
|
|
30
|
+
/**
|
|
31
|
+
* An item was picked-up for this task.
|
|
32
|
+
*/
|
|
33
|
+
pickedUp = "pickedUp",
|
|
34
|
+
/**
|
|
35
|
+
* An item was dropped-off for this task.
|
|
36
|
+
*/
|
|
37
|
+
droppedOff = "droppedOff",
|
|
38
|
+
/**
|
|
39
|
+
* The asset is waiting and can't complete the task.
|
|
40
|
+
*/
|
|
41
|
+
waiting = "waiting",
|
|
42
|
+
/**
|
|
43
|
+
* An item associated with this task is damaged.
|
|
44
|
+
*/
|
|
45
|
+
damaged = "damaged",
|
|
46
|
+
/**
|
|
47
|
+
* The task couldn't be completed by the asset.
|
|
48
|
+
*/
|
|
49
|
+
unsuccessful = "unsuccessful"
|
|
50
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
+
import { IFileSize } from "../API/Interfaces/IFileSize";
|
|
4
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
5
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
6
|
+
import { ulong, JsonObject } from "../API/Types";
|
|
7
|
+
import { Company } from "../Companies/Company";
|
|
8
|
+
/**
|
|
9
|
+
* A file stored temporarily by the system.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Document extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IFileSize {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier of this file.
|
|
14
|
+
*/
|
|
15
|
+
id: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The company to which this file belongs.
|
|
18
|
+
* {@link Company.id}
|
|
19
|
+
*/
|
|
20
|
+
companyId: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The {@link Company} to which this file belongs.
|
|
23
|
+
*/
|
|
24
|
+
get company(): Company;
|
|
25
|
+
/**
|
|
26
|
+
* The file name of this file.
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Notes about this file.
|
|
31
|
+
*/
|
|
32
|
+
notes: string;
|
|
33
|
+
/**
|
|
34
|
+
* The URL/path to find this file.
|
|
35
|
+
*/
|
|
36
|
+
src: string;
|
|
37
|
+
/**
|
|
38
|
+
* The file-size on the disk.
|
|
39
|
+
*/
|
|
40
|
+
bytes: ulong;
|
|
41
|
+
/**
|
|
42
|
+
* The MIME type of the file.
|
|
43
|
+
*/
|
|
44
|
+
mime: string;
|
|
45
|
+
/**
|
|
46
|
+
* The date and time this fill will be automatically purged from our system.
|
|
47
|
+
*/
|
|
48
|
+
expiry: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Name/value collections of custom fields used to refer to external systems.
|
|
51
|
+
*/
|
|
52
|
+
references: Map<string, string>;
|
|
53
|
+
toJSON(): {
|
|
54
|
+
id: number | null;
|
|
55
|
+
v: number[];
|
|
56
|
+
company: number;
|
|
57
|
+
name: string;
|
|
58
|
+
notes: string;
|
|
59
|
+
src: string;
|
|
60
|
+
mime: string;
|
|
61
|
+
bytes: number;
|
|
62
|
+
expiry: string | null;
|
|
63
|
+
references: Map<string, any>;
|
|
64
|
+
};
|
|
65
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The {@link id} is the key.
|
|
68
|
+
*/
|
|
69
|
+
getKey(): number;
|
|
70
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { byte, nothing, ulong } from '../../API/Types';
|
|
2
|
+
import { FormFieldType } from '../FormFieldType';
|
|
3
|
+
import { FormFieldBase } from './FormFieldBase';
|
|
4
|
+
/**
|
|
5
|
+
* A control to allow the user to attach {@link Picture}s or {@link Document}s.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormFieldAttachments extends FormFieldBase {
|
|
8
|
+
/**
|
|
9
|
+
* Takes a string as input and returns an array split by comma with trimmed items.
|
|
10
|
+
* @param values
|
|
11
|
+
*/
|
|
12
|
+
static split(values: string): string[];
|
|
13
|
+
/**
|
|
14
|
+
* These are the attachment types.
|
|
15
|
+
*/
|
|
16
|
+
protected get supported(): FormFieldType[];
|
|
17
|
+
/**
|
|
18
|
+
* Minimum number of {@link Document}s and/or {@link Picture}s that must be attached.
|
|
19
|
+
*/
|
|
20
|
+
minimum: byte;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of {@link Document}s and/or {@link Picture}s that must be attached.
|
|
23
|
+
*/
|
|
24
|
+
maximum: byte;
|
|
25
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, minimum?: byte | nothing, maximum?: byte | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
26
|
+
toJSON(): {
|
|
27
|
+
minimum: number | null;
|
|
28
|
+
maximum: number | null;
|
|
29
|
+
};
|
|
30
|
+
isValid(value: string): boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IIdUlong } from '../../API/Interfaces/IIdUlong';
|
|
2
|
+
import { INamed } from '../../API/Interfaces/INamed';
|
|
3
|
+
import { ISerializable } from '../../API/Interfaces/ISerializable';
|
|
4
|
+
import { JsonObject, nothing, ulong } from '../../API/Types';
|
|
5
|
+
import { FormFieldType } from '../FormFieldType';
|
|
6
|
+
/**
|
|
7
|
+
* A base class for the common form field UI members.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class FormFieldBase implements IIdUlong, INamed, ISerializable {
|
|
10
|
+
/**
|
|
11
|
+
* Instantiates a form field subclass based on the `kind` property in the JSON.
|
|
12
|
+
* Implementation is in {@link FormFieldBase_fromJSON.ts}
|
|
13
|
+
* @param json The JSON to parse.
|
|
14
|
+
* @returns An instance of a form field subclass, or null if the JSON is null or does not contain a recognized "kind" property.
|
|
15
|
+
*/
|
|
16
|
+
static fromJSON: (json: JsonObject) => FormFieldBase;
|
|
17
|
+
/**
|
|
18
|
+
* A list of supported {@link FormFieldType}s that this class supports.
|
|
19
|
+
*/
|
|
20
|
+
protected get supported(): FormFieldType[];
|
|
21
|
+
/**
|
|
22
|
+
* The type of interface control that should be presented to the user.
|
|
23
|
+
*/
|
|
24
|
+
kind: FormFieldType;
|
|
25
|
+
/**
|
|
26
|
+
* Identifier for this field.
|
|
27
|
+
* This value is unique per {@link FormTemplate}, but is not unique system-wide.
|
|
28
|
+
*/
|
|
29
|
+
id: ulong;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the field.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Notes or special instructions for this control.
|
|
36
|
+
*/
|
|
37
|
+
notes: string;
|
|
38
|
+
/**
|
|
39
|
+
* When true, a valid value must be given for this field.
|
|
40
|
+
*/
|
|
41
|
+
required: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The default value for the field in the template.
|
|
44
|
+
*/
|
|
45
|
+
value: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* When false, this field's value is treated as read-only.
|
|
48
|
+
*/
|
|
49
|
+
editable: boolean;
|
|
50
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
51
|
+
toJSON(): JsonObject;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the value can be parsed by the field type.
|
|
54
|
+
*/
|
|
55
|
+
abstract isValid(value: string): boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { nothing, ulong } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
/**
|
|
5
|
+
* A true/false (or either-or) input control.
|
|
6
|
+
* @tutorial
|
|
7
|
+
* For choices, the field definition will be an array of three values.
|
|
8
|
+
* The first value is the "true", second is the "false", and third is "indeterminate".
|
|
9
|
+
* For example:
|
|
10
|
+
* - "true", "false", ""
|
|
11
|
+
* - "on", "off", "unknown"
|
|
12
|
+
* - "yes", "no", "maybe"
|
|
13
|
+
*/
|
|
14
|
+
export declare class FormFieldBoolean extends FormFieldBase {
|
|
15
|
+
/**
|
|
16
|
+
* If no choices are given, then these choices are used.
|
|
17
|
+
*/
|
|
18
|
+
static readonly DEFAULT_CHOICES: [string, string, string];
|
|
19
|
+
/**
|
|
20
|
+
* Returns an array of 3 strings representing the checked, unchecked, and indeterminate values.
|
|
21
|
+
* @param choices
|
|
22
|
+
*/
|
|
23
|
+
static normalize(choices?: (string | nothing)[] | nothing): [string, string, string];
|
|
24
|
+
/**
|
|
25
|
+
* These are the boolean control types.
|
|
26
|
+
*/
|
|
27
|
+
protected get supported(): FormFieldType[];
|
|
28
|
+
/**
|
|
29
|
+
* These three values are the values of the choices presented.
|
|
30
|
+
* The first value is the "checked" value, second is the "unchecked" value, and third is "indeterminate" value.
|
|
31
|
+
*/
|
|
32
|
+
choices: [string, string, string];
|
|
33
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, choices?: (string | nothing)[] | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
34
|
+
toJSON(): {
|
|
35
|
+
choices: string[];
|
|
36
|
+
};
|
|
37
|
+
isValid(value: string): boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { byte, nothing, ulong } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
/**
|
|
5
|
+
* A single- or multiple-choice input control.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormFieldChoice extends FormFieldBase {
|
|
8
|
+
/**
|
|
9
|
+
* Splits the given value using commas (so long as the comma did not get escaped).
|
|
10
|
+
* @param values
|
|
11
|
+
*/
|
|
12
|
+
static split(values: string): string[];
|
|
13
|
+
/**
|
|
14
|
+
* Replaces all the commas in a given value with backslash-comma.
|
|
15
|
+
* @param value
|
|
16
|
+
*/
|
|
17
|
+
static escape(value: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Replaces all the commas in a given value with backslash-comma.
|
|
20
|
+
* @param value
|
|
21
|
+
*/
|
|
22
|
+
static unescape(value: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Just {@link FormFieldType.choice} control type.
|
|
25
|
+
*/
|
|
26
|
+
protected get supported(): FormFieldType[];
|
|
27
|
+
/**
|
|
28
|
+
* The list of choices available and their values.
|
|
29
|
+
*/
|
|
30
|
+
choices: Map<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Minimum number of choices that must be selected.
|
|
33
|
+
*/
|
|
34
|
+
minimum: byte;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum number of choices that must be selected.
|
|
37
|
+
*/
|
|
38
|
+
maximum: byte;
|
|
39
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, choices?: Map<string, string> | nothing, minimum?: byte | nothing, maximum?: byte | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
40
|
+
toJSON(): {
|
|
41
|
+
choices: import("../..").JsonObject;
|
|
42
|
+
minimum: number | null;
|
|
43
|
+
maximum: number | null;
|
|
44
|
+
};
|
|
45
|
+
isValid(value: string): boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { datetime, nothing, ulong } from "../../API/Types";
|
|
2
|
+
import { FormFieldType } from "../FormFieldType";
|
|
3
|
+
import { FormFieldBase } from "./FormFieldBase";
|
|
4
|
+
/**
|
|
5
|
+
* A control to choose a date and (optionally) a time.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormFieldDate extends FormFieldBase {
|
|
8
|
+
/**
|
|
9
|
+
* These are the calendar control types.
|
|
10
|
+
*/
|
|
11
|
+
protected get supported(): FormFieldType[];
|
|
12
|
+
/**
|
|
13
|
+
* The earliest date or date/time.
|
|
14
|
+
*/
|
|
15
|
+
minimum: Date;
|
|
16
|
+
/**
|
|
17
|
+
* The latest date or date/time.
|
|
18
|
+
*/
|
|
19
|
+
maximum: Date;
|
|
20
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, minimum?: Date | number | datetime | nothing, maximum?: Date | number | datetime | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
21
|
+
toJSON(): {
|
|
22
|
+
minimum: string | null;
|
|
23
|
+
maximum: string | null;
|
|
24
|
+
};
|
|
25
|
+
isValid(value: string): boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { byte, double, nothing, 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 | nothing, name?: string | nothing, kind?: FormFieldType | nothing, size?: FormFieldNumericSize | nothing, precision?: byte | nothing, step?: double | nothing, units?: string | nothing, minimum?: double | nothing, maximum?: double | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
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
|
+
};
|
|
53
|
+
isValid(value: string): boolean;
|
|
54
|
+
}
|
|
@@ -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 { nothing, 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 | nothing, name?: string | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
16
|
+
isValid(value: string): boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { byte, nothing, 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 | nothing, name?: string | nothing, rows?: byte | nothing, minimum?: ushort | nothing, maximum?: ushort | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
26
|
+
toJSON(): {
|
|
27
|
+
rows: number | null;
|
|
28
|
+
minimum: number | null;
|
|
29
|
+
maximum: number | null;
|
|
30
|
+
};
|
|
31
|
+
isValid(value: string): boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TimeSpan } from "../../API/TimeSpan";
|
|
2
|
+
import { nothing, 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
|
+
* For a 24 hour day, anything negative span would be considered invalid.
|
|
11
|
+
* As such, the minimum time for a {@link FormFieldType.time} is midnight (zero).
|
|
12
|
+
*/
|
|
13
|
+
static readonly MINIMUM_TIME_OF_DAY: TimeSpan;
|
|
14
|
+
/**
|
|
15
|
+
* For a 24 hour day, anything over a 24 hour span would be considered invalid.
|
|
16
|
+
* As such, the maximum time for a {@link FormFieldType.time} is midnight the next day.
|
|
17
|
+
*/
|
|
18
|
+
static readonly MAXIMUM_TIME_OF_DAY: TimeSpan;
|
|
19
|
+
/**
|
|
20
|
+
* These are the clock control types.
|
|
21
|
+
*/
|
|
22
|
+
protected get supported(): FormFieldType[];
|
|
23
|
+
/**
|
|
24
|
+
* The minimum duration or earliest time-of-day.
|
|
25
|
+
*/
|
|
26
|
+
minimum: TimeSpan | null;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum duration or latest time-of-day.
|
|
29
|
+
*/
|
|
30
|
+
maximum: TimeSpan | null;
|
|
31
|
+
constructor(id?: ulong | nothing, name?: string | nothing, kind?: FormFieldType | nothing, minimum?: TimeSpan | timespan | number | nothing, maximum?: TimeSpan | timespan | number | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
32
|
+
toJSON(): {
|
|
33
|
+
minimum: string | null;
|
|
34
|
+
maximum: string | null;
|
|
35
|
+
};
|
|
36
|
+
isValid(value: string): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { nothing, 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 | nothing, name?: string | nothing, notes?: string | nothing, required?: boolean | nothing, value?: string | nothing, editable?: boolean | nothing);
|
|
13
|
+
isValid(value: string): boolean;
|
|
14
|
+
}
|