@trakit/objects 0.0.15 → 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/Accounts/User.d.ts +25 -4
- package/Assets/Asset.d.ts +1 -3
- package/Companies/Company.d.ts +1 -20
- package/Providers/Provider.d.ts +1 -12
- package/README.md +24 -24
- 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,56 @@
|
|
|
1
|
+
import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
|
|
2
|
+
import { ISerializable } from '../../API/Interfaces/ISerializable';
|
|
3
|
+
import { codified, JsonObject, nothing, ulong } from '../../API/Types';
|
|
4
|
+
import { Company } from '../../Companies/Company';
|
|
5
|
+
import { PermissionLevel } from './PermissionLevel';
|
|
6
|
+
import { PermissionMethod } from './PermissionMethod';
|
|
7
|
+
import { PermissionType } from './PermissionType';
|
|
8
|
+
/**
|
|
9
|
+
* A defined permission for {@link User}s, {@link UserGroup}s, and {@link Machine}s.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Permission implements IBelongCompany, ISerializable {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param json
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
static fromJSON(json: JsonObject): Permission;
|
|
18
|
+
/**
|
|
19
|
+
* The {@link Company.id} that this permission targets.
|
|
20
|
+
*/
|
|
21
|
+
companyId: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The {@link Company} that this permission targets.
|
|
24
|
+
*/
|
|
25
|
+
get company(): Company;
|
|
26
|
+
/**
|
|
27
|
+
* The type of permission.
|
|
28
|
+
*/
|
|
29
|
+
kind: PermissionType;
|
|
30
|
+
/**
|
|
31
|
+
* The kind of permission.
|
|
32
|
+
* @deprecated Use {@link kind} instead.
|
|
33
|
+
*/
|
|
34
|
+
get type(): string;
|
|
35
|
+
set type(value: string);
|
|
36
|
+
/**
|
|
37
|
+
* The level of access being defined.
|
|
38
|
+
*/
|
|
39
|
+
level: PermissionLevel;
|
|
40
|
+
/**
|
|
41
|
+
* The way the access is used.
|
|
42
|
+
*/
|
|
43
|
+
method: PermissionMethod;
|
|
44
|
+
/**
|
|
45
|
+
* Codified names of {@link LabelStyle}s. If list is empty, this permission applies for all labels.
|
|
46
|
+
*/
|
|
47
|
+
labels: codified[];
|
|
48
|
+
constructor(company?: ulong | nothing, kind?: PermissionType | nothing, level?: PermissionLevel | nothing, method?: PermissionMethod | nothing, labels?: codified[] | nothing);
|
|
49
|
+
toJSON(): {
|
|
50
|
+
company: number | null;
|
|
51
|
+
kind: PermissionType;
|
|
52
|
+
level: PermissionLevel;
|
|
53
|
+
method: PermissionMethod;
|
|
54
|
+
labels: string[];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { codified, JsonObject, nothing, ulong } from "../../API/Types";
|
|
3
|
+
import { PermissionEscalationState } from "./PermissionEscalationState";
|
|
4
|
+
import { PermissionEscalationType } from "./PermissionEscalationType";
|
|
5
|
+
import { PermissionLevel } from "./PermissionLevel";
|
|
6
|
+
import { PermissionType } from "./PermissionType";
|
|
7
|
+
/**
|
|
8
|
+
* Used to throw permission escalation exceptions, this is similar to a {@link Permission},
|
|
9
|
+
* but defines a {@link before} and {@link after} for a proposed change.
|
|
10
|
+
*/
|
|
11
|
+
export declare class PermissionEscalation implements ISerializable {
|
|
12
|
+
/**
|
|
13
|
+
* Parses a JSON object into a PermissionEscalation instance.
|
|
14
|
+
* @param json The JSON to parse.
|
|
15
|
+
* @returns A PermissionEscalation instance.
|
|
16
|
+
*/
|
|
17
|
+
static fromJSON(json: JsonObject): PermissionEscalation;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the direction of the escalation.
|
|
20
|
+
*/
|
|
21
|
+
direction: PermissionEscalationType;
|
|
22
|
+
/**
|
|
23
|
+
* The {@link Company} that this permission targets.
|
|
24
|
+
* {@link Company.id}
|
|
25
|
+
*/
|
|
26
|
+
company: ulong;
|
|
27
|
+
/**
|
|
28
|
+
* The type of permission.
|
|
29
|
+
*/
|
|
30
|
+
kind: PermissionType;
|
|
31
|
+
/**
|
|
32
|
+
* Effective permission after the proposed change.
|
|
33
|
+
*/
|
|
34
|
+
after: PermissionEscalationState;
|
|
35
|
+
/**
|
|
36
|
+
* Effective permission before the proposed change.
|
|
37
|
+
*/
|
|
38
|
+
before: PermissionEscalationState;
|
|
39
|
+
constructor(direction: PermissionEscalationType, company: ulong, kind: PermissionType, levelAfter: PermissionLevel, labelsAfter?: codified[] | nothing, levelBefore?: PermissionLevel | nothing, labelsBefore?: codified[] | nothing);
|
|
40
|
+
toJSON(): JsonObject;
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { codified, JsonObject, nothing } from "../../API/Types";
|
|
3
|
+
import { PermissionLevel } from "./PermissionLevel";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the changes in state that raised the escalation.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PermissionEscalationState implements ISerializable {
|
|
8
|
+
/**
|
|
9
|
+
* The level of access defined before the proposed change.
|
|
10
|
+
*/
|
|
11
|
+
level: PermissionLevel | null;
|
|
12
|
+
/**
|
|
13
|
+
* Codified names of {@link LabelStyle}s.
|
|
14
|
+
* If list is empty, this permission applies for all labels.
|
|
15
|
+
*/
|
|
16
|
+
labels: codified[] | null;
|
|
17
|
+
constructor(level?: PermissionLevel | nothing, labels?: codified[] | nothing);
|
|
18
|
+
toJSON(): JsonObject;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Definition for the kinds of permission escalations.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionEscalationType {
|
|
5
|
+
/**
|
|
6
|
+
* Increase in privileges.
|
|
7
|
+
*/
|
|
8
|
+
vertical = "vertical",
|
|
9
|
+
/**
|
|
10
|
+
* Increase in access to an object.
|
|
11
|
+
*/
|
|
12
|
+
horizontal = "horizontal"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The levels of permission available.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionLevel {
|
|
5
|
+
/**
|
|
6
|
+
* Read-only access, no changes allowed.
|
|
7
|
+
*/
|
|
8
|
+
read = "read",
|
|
9
|
+
/**
|
|
10
|
+
* Read and write access, but things cannot be deleted or new things created.
|
|
11
|
+
*/
|
|
12
|
+
update = "update",
|
|
13
|
+
/**
|
|
14
|
+
* Full control to read, write, delete and create things.
|
|
15
|
+
*/
|
|
16
|
+
full = "full"
|
|
17
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of permissions available for a UserPermission.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PermissionType {
|
|
5
|
+
/**
|
|
6
|
+
* Basic information about a {@link Company}.
|
|
7
|
+
* This permissions is required to have access to other aspects of the company.
|
|
8
|
+
* {@link Company}
|
|
9
|
+
* {@link CompanyGeneral}
|
|
10
|
+
*/
|
|
11
|
+
companyGeneral = "companyGeneral",
|
|
12
|
+
/**
|
|
13
|
+
* Updating the company's {@link CompanyDirectory|directory} of {@link Contact}s. Not the same as {@link PermissionType.contact}.
|
|
14
|
+
* {@link CompanyDirectory}
|
|
15
|
+
*/
|
|
16
|
+
companyDirectory = "companyDirectory",
|
|
17
|
+
/**
|
|
18
|
+
* Company's {@link CompanyStyles|label and tag styles}.
|
|
19
|
+
* {@link CompanyStyles}
|
|
20
|
+
*/
|
|
21
|
+
companyLabels = "companyLabels",
|
|
22
|
+
/**
|
|
23
|
+
* Company's {@link SessionPolicy} and {@link PasswordPolicy}.
|
|
24
|
+
* {@link CompanyPolicies}
|
|
25
|
+
*/
|
|
26
|
+
companyPolicies = "companyPolicies",
|
|
27
|
+
/**
|
|
28
|
+
* {@link CompanyReseller|White-labeler} specific settings.
|
|
29
|
+
* {@link CompanyReseller}
|
|
30
|
+
*/
|
|
31
|
+
companyReseller = "companyReseller",
|
|
32
|
+
/**
|
|
33
|
+
* Access to add a new child {@link Company}.
|
|
34
|
+
* {@link CompanyGeneral}
|
|
35
|
+
*/
|
|
36
|
+
companyCreate = "companyCreate",
|
|
37
|
+
/**
|
|
38
|
+
* Assets' {@link AssetGeneral|general properties} such as name = "* Assets' {@link AssetGeneral|general properties} such as name", icon, and labels.
|
|
39
|
+
* {@link Asset}
|
|
40
|
+
* {@link AssetGeneral}
|
|
41
|
+
* {@link Person}
|
|
42
|
+
* {@link PersonGeneral}
|
|
43
|
+
* {@link Vehicle}
|
|
44
|
+
* {@link VehicleGeneral}
|
|
45
|
+
* {@link Trailer}
|
|
46
|
+
* {@link TrailerGeneral}
|
|
47
|
+
*/
|
|
48
|
+
assetGeneral = "assetGeneral",
|
|
49
|
+
/**
|
|
50
|
+
* Assets' {@link AssetAdvanced|advanced properties} such as position = "* Assets' {@link AssetAdvanced|advanced properties} such as position", attributes, and status tags.
|
|
51
|
+
* {@link AssetAdvanced}
|
|
52
|
+
* {@link VehicleAdvanced}
|
|
53
|
+
*/
|
|
54
|
+
assetAdvanced = "assetAdvanced",
|
|
55
|
+
/**
|
|
56
|
+
* {@link AssetMessage}s from assets and {@link AssetAlert}s.
|
|
57
|
+
* {@link AssetMessage}
|
|
58
|
+
* {@link PndMessage}
|
|
59
|
+
*/
|
|
60
|
+
assetMessage = "assetMessage",
|
|
61
|
+
/**
|
|
62
|
+
* {@link Asset}'s {@link DispatchTask} order = "* {@link Asset}'s {@link DispatchTask} order", turn by turn directions, and required route.
|
|
63
|
+
* {@link AssetDispatch}
|
|
64
|
+
*/
|
|
65
|
+
assetDispatch = "assetDispatch",
|
|
66
|
+
/**
|
|
67
|
+
* {@link Place} information.
|
|
68
|
+
* {@link Place}
|
|
69
|
+
* {@link Place}
|
|
70
|
+
*/
|
|
71
|
+
placeGeneral = "placeGeneral",
|
|
72
|
+
/**
|
|
73
|
+
* {@link Provider} information like name = "* {@link Provider} information like name", notes, and selected asset.
|
|
74
|
+
* {@link Provider}
|
|
75
|
+
* {@link ProviderGeneral}
|
|
76
|
+
*/
|
|
77
|
+
providerGeneral = "providerGeneral",
|
|
78
|
+
/**
|
|
79
|
+
* Raw {@link Provider} data like GPS coordinates and parsed ODB-II values.
|
|
80
|
+
* {@link ProviderAdvanced}
|
|
81
|
+
*/
|
|
82
|
+
providerAdvanced = "providerAdvanced",
|
|
83
|
+
/**
|
|
84
|
+
* Sending and reading {@link Provider} commands.
|
|
85
|
+
* {@link ProviderControl}
|
|
86
|
+
*/
|
|
87
|
+
providerControl = "providerControl",
|
|
88
|
+
/**
|
|
89
|
+
* {@link Provider} configurations.
|
|
90
|
+
* {@link ProviderConfig}
|
|
91
|
+
* {@link ProviderConfiguration}
|
|
92
|
+
* {@link ProviderConfigurationType}
|
|
93
|
+
*/
|
|
94
|
+
providerConfiguration = "providerConfiguration",
|
|
95
|
+
/**
|
|
96
|
+
* Legacy {@link Provider} configuration types.
|
|
97
|
+
* {@link ProviderConfigurationType}
|
|
98
|
+
* @deprecated Use {@link providerConfiguration} instead
|
|
99
|
+
*/
|
|
100
|
+
providerConfigType = "providerConfigType",
|
|
101
|
+
/**
|
|
102
|
+
* Allows access to {@link Provider} logic scripts.
|
|
103
|
+
* {@link ProviderScript}
|
|
104
|
+
*/
|
|
105
|
+
providerScript = "providerScript",
|
|
106
|
+
/**
|
|
107
|
+
* Sending and reading {@link Provider} commands.
|
|
108
|
+
* {@link ProviderCommand}
|
|
109
|
+
* @deprecated Use {@link providerControl} instead
|
|
110
|
+
*/
|
|
111
|
+
providerCommand = "providerCommand",
|
|
112
|
+
/**
|
|
113
|
+
* Historical {@link Asset} details like breadcrumb trails.
|
|
114
|
+
* {@link ReportResult}
|
|
115
|
+
*/
|
|
116
|
+
reportResult = "reportResult",
|
|
117
|
+
/**
|
|
118
|
+
* {@link ReportTemplate} configurations.
|
|
119
|
+
* {@link ReportTemplate}
|
|
120
|
+
*/
|
|
121
|
+
reportTemplate = "reportTemplate",
|
|
122
|
+
/**
|
|
123
|
+
* {@link ReportSchedule}s used to automatically create {@link ReportResult}s overnight.
|
|
124
|
+
* {@link ReportSchedule}
|
|
125
|
+
*/
|
|
126
|
+
reportSchedule = "reportSchedule",
|
|
127
|
+
/**
|
|
128
|
+
* General {@link UserGeneral|user information} such as name = "* General {@link UserGeneral|user information} such as name", contact information, and preferences.
|
|
129
|
+
* {@link UserGeneral}
|
|
130
|
+
*/
|
|
131
|
+
userGeneral = "userGeneral",
|
|
132
|
+
/**
|
|
133
|
+
* {@link UserAdvanced|User information} such as permissions and group membership.
|
|
134
|
+
* {@link UserAdvanced}
|
|
135
|
+
*/
|
|
136
|
+
userAdvanced = "userAdvanced",
|
|
137
|
+
/**
|
|
138
|
+
* {@link UserGroup} information for easy access control.
|
|
139
|
+
* {@link UserGroup}
|
|
140
|
+
*/
|
|
141
|
+
userGroup = "userGroup",
|
|
142
|
+
/**
|
|
143
|
+
* {@link Machine} information and permissions.
|
|
144
|
+
* {@link Machine}
|
|
145
|
+
*/
|
|
146
|
+
machine = "machine",
|
|
147
|
+
/**
|
|
148
|
+
* Access to retrieve a list of active sessions and kill sessions.
|
|
149
|
+
* {@link Tentacles.RespSession}
|
|
150
|
+
* {@link Tentacles.RespSessionFull}
|
|
151
|
+
*/
|
|
152
|
+
session = "session",
|
|
153
|
+
/**
|
|
154
|
+
* Configured {@link Behaviour}.
|
|
155
|
+
* {@link Behaviour}
|
|
156
|
+
*/
|
|
157
|
+
behaviour = "behaviour",
|
|
158
|
+
/**
|
|
159
|
+
* View and clear the log of debug messages for a {@link BehaviourScript} or {@link Behaviour}.
|
|
160
|
+
* {@link BehaviourLog}
|
|
161
|
+
*/
|
|
162
|
+
behaviourLog = "behaviourLog",
|
|
163
|
+
/**
|
|
164
|
+
* {@link BehaviourScript} logic.
|
|
165
|
+
* {@link BehaviourScript}
|
|
166
|
+
*/
|
|
167
|
+
behaviourScript = "behaviourScript",
|
|
168
|
+
/**
|
|
169
|
+
* {@link Asset}'s tasks information.
|
|
170
|
+
* {@link DispatchTask}
|
|
171
|
+
*/
|
|
172
|
+
dispatchTask = "dispatchTask",
|
|
173
|
+
/**
|
|
174
|
+
* Pre-set routes = "* Pre-set routes", lists of {@link DispatchJob}s, and driving directions.
|
|
175
|
+
* {@link DispatchTemplate}
|
|
176
|
+
*/
|
|
177
|
+
dispatchTemplate = "dispatchTemplate",
|
|
178
|
+
/**
|
|
179
|
+
* {@link Contact} information.
|
|
180
|
+
* {@link Contact}
|
|
181
|
+
*/
|
|
182
|
+
contact = "contact",
|
|
183
|
+
/**
|
|
184
|
+
* Hours of Service {@link HosCarrier|Carrier}s.
|
|
185
|
+
* {@link HosCarrier}
|
|
186
|
+
* @deprecated Feature retired
|
|
187
|
+
*/
|
|
188
|
+
hosCarrier = "hosCarrier",
|
|
189
|
+
/**
|
|
190
|
+
* Driver's {@link HosEvent|E-log event} records.
|
|
191
|
+
* {@link HosEvent}
|
|
192
|
+
* @deprecated Feature retired
|
|
193
|
+
*/
|
|
194
|
+
hosEvent = "hosEvent",
|
|
195
|
+
/**
|
|
196
|
+
* Driver {@link HosInspection|vehicle inspection} reports.
|
|
197
|
+
* {@link HosInspection}
|
|
198
|
+
* @deprecated Feature retired
|
|
199
|
+
*/
|
|
200
|
+
hosInspection = "hosInspection",
|
|
201
|
+
/**
|
|
202
|
+
* Historical {@link Vehicle} and {@link Trailer} maintenance work.
|
|
203
|
+
* {@link MaintenanceJob}
|
|
204
|
+
*/
|
|
205
|
+
maintenanceJob = "maintenanceJob",
|
|
206
|
+
/**
|
|
207
|
+
* Recurring {@link MaintenanceJob}s for {@link Vehicle} and {@link Trailer}.
|
|
208
|
+
* {@link MaintenanceSchedule}
|
|
209
|
+
*/
|
|
210
|
+
maintenanceSchedule = "maintenanceSchedule",
|
|
211
|
+
/**
|
|
212
|
+
* Rules definiting real-time analytic calculations.
|
|
213
|
+
* {@link AnalyticRule}
|
|
214
|
+
* @deprecated Feature retired
|
|
215
|
+
*/
|
|
216
|
+
analyticRule = "analyticRule",
|
|
217
|
+
/**
|
|
218
|
+
* Updates to the calculations of real-time analytics.
|
|
219
|
+
* {@link AnalyticSummary}
|
|
220
|
+
* @deprecated Feature retired
|
|
221
|
+
*/
|
|
222
|
+
analyticSummary = "analyticSummary",
|
|
223
|
+
/**
|
|
224
|
+
* {@link Icon} information.
|
|
225
|
+
* {@link Icon}
|
|
226
|
+
*/
|
|
227
|
+
icon = "icon",
|
|
228
|
+
/**
|
|
229
|
+
* {@link Picture} information.
|
|
230
|
+
* {@link Picture}
|
|
231
|
+
*/
|
|
232
|
+
picture = "picture",
|
|
233
|
+
/**
|
|
234
|
+
* Hosted {@link Document} information.
|
|
235
|
+
* {@link Document}
|
|
236
|
+
*/
|
|
237
|
+
document = "document",
|
|
238
|
+
/**
|
|
239
|
+
* Profile used to generate {@link BillingReport} for a customer.
|
|
240
|
+
* {@link BillingProfile}
|
|
241
|
+
*/
|
|
242
|
+
billingProfile = "billingProfile",
|
|
243
|
+
/**
|
|
244
|
+
* Billing rule for {@link Asset}s.
|
|
245
|
+
* {@link BillableHostingRule}
|
|
246
|
+
*/
|
|
247
|
+
billingHosting = "billingHosting",
|
|
248
|
+
/**
|
|
249
|
+
* Discount rule for {@link Asset}s.
|
|
250
|
+
* {@link BillableHostingDiscount}
|
|
251
|
+
* @deprecated Feature retired
|
|
252
|
+
*/
|
|
253
|
+
billingDiscount = "billingDiscount",
|
|
254
|
+
/**
|
|
255
|
+
* Hardware License for {@link Provider}s.
|
|
256
|
+
* {@link BillableHostingLicense}
|
|
257
|
+
*/
|
|
258
|
+
billingLicense = "billingLicense",
|
|
259
|
+
/**
|
|
260
|
+
* Generated bill for a {@link Company|customer}.
|
|
261
|
+
* {@link BillingReport}
|
|
262
|
+
*/
|
|
263
|
+
billingReport = "billingReport",
|
|
264
|
+
/**
|
|
265
|
+
* Custom {@link FormTemplate|forms} to be filled.
|
|
266
|
+
* {@link FormTemplate}
|
|
267
|
+
*/
|
|
268
|
+
formTemplate = "formTemplate",
|
|
269
|
+
/**
|
|
270
|
+
* Filled out {@link FormResult|forms}.
|
|
271
|
+
* {@link FormResult}
|
|
272
|
+
*/
|
|
273
|
+
formResult = "formResult",
|
|
274
|
+
/**
|
|
275
|
+
* Some work that needs to be completed by an {@link Asset}.
|
|
276
|
+
* Like a multi-step {@link DispatchTask}.
|
|
277
|
+
* {@link DispatchJob}
|
|
278
|
+
*/
|
|
279
|
+
dispatchJob = "dispatchJob"
|
|
280
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported SSO Identity Providers.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SSOIdentityProvider {
|
|
5
|
+
/**
|
|
6
|
+
* Google Identity Provider.
|
|
7
|
+
*/
|
|
8
|
+
google = "google",
|
|
9
|
+
/**
|
|
10
|
+
* Apple Identity Provider.
|
|
11
|
+
*/
|
|
12
|
+
apple = "apple",
|
|
13
|
+
/**
|
|
14
|
+
* Facebook Identity Provider.
|
|
15
|
+
*/
|
|
16
|
+
facebook = "facebook",
|
|
17
|
+
/**
|
|
18
|
+
* X Identity Provider, formerly known as Twitter.
|
|
19
|
+
*/
|
|
20
|
+
twitter = "twitter",
|
|
21
|
+
/**
|
|
22
|
+
* Microsoft Identity Provider.
|
|
23
|
+
*/
|
|
24
|
+
microsoft = "microsoft"
|
|
25
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
2
|
+
import { IDeserializable } from "../API/Interfaces/IDeserializable";
|
|
3
|
+
import { IRequestable } from "../API/Interfaces/IRequestable";
|
|
4
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
5
|
+
import { int, JsonObject, nothing, ulong } from "../API/Types";
|
|
6
|
+
import { Company } from "../Companies/Company";
|
|
7
|
+
import { SessionStatus } from "./SessionStatus";
|
|
8
|
+
/**
|
|
9
|
+
* Information about another {@link User}'s {@link Session}.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Session implements IBelongCompany, IRequestable, ISerializable, IDeserializable {
|
|
12
|
+
/**
|
|
13
|
+
* A "handle" identifying a resource.
|
|
14
|
+
*/
|
|
15
|
+
handle: string;
|
|
16
|
+
/**
|
|
17
|
+
* Getter shortcut for the {@link User}'s {@link Company.id}.
|
|
18
|
+
*/
|
|
19
|
+
companyId: ulong;
|
|
20
|
+
/**
|
|
21
|
+
* The {@link Company} to which this contact belongs
|
|
22
|
+
*/
|
|
23
|
+
get company(): Company;
|
|
24
|
+
/**
|
|
25
|
+
* The IP address of the {@link User} last used to connect using this session.
|
|
26
|
+
*/
|
|
27
|
+
ipAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
* `UserAgent` identification string
|
|
30
|
+
*/
|
|
31
|
+
userAgent: string;
|
|
32
|
+
/**
|
|
33
|
+
* The IP address the user last used to connect
|
|
34
|
+
/**
|
|
35
|
+
* The number of currently connected WebSocket clients.
|
|
36
|
+
*/
|
|
37
|
+
sockets: int;
|
|
38
|
+
/**
|
|
39
|
+
* The {@link User} to which the {@link Session} belongs.
|
|
40
|
+
* {@link User.login}
|
|
41
|
+
*/
|
|
42
|
+
login: string;
|
|
43
|
+
/**
|
|
44
|
+
* This {@link Session}'s current state.
|
|
45
|
+
*/
|
|
46
|
+
status: SessionStatus;
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp from the moment this {@link Session} was created.
|
|
49
|
+
*/
|
|
50
|
+
created: Date;
|
|
51
|
+
/**
|
|
52
|
+
* A timestamp for when the {@link RespSession} will expire.
|
|
53
|
+
*/
|
|
54
|
+
expiry: Date;
|
|
55
|
+
/**
|
|
56
|
+
* The name or path of the last command executed.
|
|
57
|
+
*/
|
|
58
|
+
lastCommand: string;
|
|
59
|
+
/**
|
|
60
|
+
* A timestamp from the last command or call to the system.
|
|
61
|
+
*/
|
|
62
|
+
lastActivity: Date;
|
|
63
|
+
/**
|
|
64
|
+
* Indicator that this {@link Session} is using at least one WebSocket connection.
|
|
65
|
+
*/
|
|
66
|
+
get active(): boolean;
|
|
67
|
+
constructor(json?: JsonObject | nothing);
|
|
68
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
toJSON(): {
|
|
73
|
+
handle: string;
|
|
74
|
+
company: number | null;
|
|
75
|
+
login: string;
|
|
76
|
+
status: SessionStatus;
|
|
77
|
+
userAgent: string;
|
|
78
|
+
ipAddress: string;
|
|
79
|
+
created: string;
|
|
80
|
+
expires: string;
|
|
81
|
+
lastActivity: string;
|
|
82
|
+
lastCommand: string;
|
|
83
|
+
sockets: number;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* The {@link handle} is the key.
|
|
87
|
+
*/
|
|
88
|
+
getKey(): string;
|
|
89
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Current state of a session
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SessionStatus {
|
|
5
|
+
/**
|
|
6
|
+
* Invalid session reference.
|
|
7
|
+
*/
|
|
8
|
+
notFound = "notFound",
|
|
9
|
+
/**
|
|
10
|
+
* Session created but user hasn't logged-in yet.
|
|
11
|
+
*/
|
|
12
|
+
created = "created",
|
|
13
|
+
/**
|
|
14
|
+
* User is logged-in and one or more WebSocket connections are open.
|
|
15
|
+
*/
|
|
16
|
+
active = "active",
|
|
17
|
+
/**
|
|
18
|
+
* User is logged-in but no WebSocket connections are open.
|
|
19
|
+
*/
|
|
20
|
+
idle = "idle",
|
|
21
|
+
/**
|
|
22
|
+
* User is logged-in and password is expired and needs to be changed before any commands can be processed.
|
|
23
|
+
*/
|
|
24
|
+
passwordExpired = "passwordExpired",
|
|
25
|
+
/**
|
|
26
|
+
* Session is being killed because it has expired.
|
|
27
|
+
*/
|
|
28
|
+
expired = "expired"
|
|
29
|
+
}
|