@trakit/objects 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Companies/NotificationServerEmail.d.ts +0 -2
- package/README.md +24 -24
- package/index.d.ts +1 -1
- package/package.json +37 -37
- package/trakit-objects.min.js +2 -2
- package/objects/API/Arrays.d.ts +0 -46
- package/objects/API/Base.d.ts +0 -19
- package/objects/API/BaseComponent.d.ts +0 -40
- package/objects/API/BaseCompound.d.ts +0 -19
- package/objects/API/Codifier.d.ts +0 -15
- package/objects/API/Constants.d.ts +0 -39
- package/objects/API/Conversion.d.ts +0 -255
- package/objects/API/Encoding.d.ts +0 -9
- package/objects/API/Files.d.ts +0 -21
- package/objects/API/Functions.d.ts +0 -196
- package/objects/API/Geography/Functions.d.ts +0 -236
- package/objects/API/Geography/Interfaces.d.ts +0 -150
- package/objects/API/Geography/LatLng.d.ts +0 -86
- package/objects/API/Geography/LatLngBounds.d.ts +0 -146
- package/objects/API/Geography/Position.d.ts +0 -74
- package/objects/API/Geography/StreetAddress.d.ts +0 -59
- package/objects/API/Geometry/Functions.d.ts +0 -114
- package/objects/API/Geometry/Interfaces.d.ts +0 -111
- package/objects/API/Geometry/Point.d.ts +0 -81
- package/objects/API/Geometry/Radial.d.ts +0 -110
- package/objects/API/Geometry/Rectangle.d.ts +0 -159
- package/objects/API/Geometry/Size.d.ts +0 -58
- package/objects/API/Guid.d.ts +0 -4
- package/objects/API/Interfaces/IAmCompany.d.ts +0 -11
- package/objects/API/Interfaces/IBelongAsset.d.ts +0 -15
- package/objects/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
- package/objects/API/Interfaces/IBelongCompany.d.ts +0 -15
- package/objects/API/Interfaces/IDeserializable.d.ts +0 -13
- package/objects/API/Interfaces/IEnabled.d.ts +0 -10
- package/objects/API/Interfaces/IFileSize.d.ts +0 -9
- package/objects/API/Interfaces/IGlobal.d.ts +0 -11
- package/objects/API/Interfaces/IHavePermissions.d.ts +0 -20
- package/objects/API/Interfaces/IHavePreferences.d.ts +0 -29
- package/objects/API/Interfaces/IIconic.d.ts +0 -15
- package/objects/API/Interfaces/IIdUlong.d.ts +0 -10
- package/objects/API/Interfaces/ILabelled.d.ts +0 -10
- package/objects/API/Interfaces/INamed.d.ts +0 -13
- package/objects/API/Interfaces/IPictured.d.ts +0 -15
- package/objects/API/Interfaces/IRequestable.d.ts +0 -22
- package/objects/API/Interfaces/ISerializable.d.ts +0 -10
- package/objects/API/Interfaces/ISuspendable.d.ts +0 -16
- package/objects/API/Interfaces/IVisual.d.ts +0 -18
- package/objects/API/Maps.d.ts +0 -28
- package/objects/API/Objects.d.ts +0 -5
- package/objects/API/SearchPattern.d.ts +0 -46
- package/objects/API/TimeSpan.d.ts +0 -109
- package/objects/API/Timezone.d.ts +0 -44
- package/objects/API/Timezones.d.ts +0 -7
- package/objects/API/Types.d.ts +0 -132
- package/objects/Accounts/Contact.d.ts +0 -139
- package/objects/Accounts/Machine.d.ts +0 -139
- package/objects/Accounts/MultiFactorType.d.ts +0 -17
- package/objects/Accounts/NotificationMethod.d.ts +0 -17
- package/objects/Accounts/Permissions/Authorizer.d.ts +0 -204
- package/objects/Accounts/Permissions/Permission.d.ts +0 -56
- package/objects/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
- package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
- package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionLevel.d.ts +0 -17
- package/objects/Accounts/Permissions/PermissionMethod.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionType.d.ts +0 -280
- package/objects/Accounts/SSOIdentityProvider.d.ts +0 -25
- package/objects/Accounts/Session.d.ts +0 -89
- package/objects/Accounts/SessionStatus.d.ts +0 -29
- package/objects/Accounts/SystemsOfUnits.d.ts +0 -13
- package/objects/Accounts/User.d.ts +0 -167
- package/objects/Accounts/UserAdvanced.d.ts +0 -53
- package/objects/Accounts/UserAuthentication.d.ts +0 -55
- package/objects/Accounts/UserGeneral.d.ts +0 -98
- package/objects/Accounts/UserGroup.d.ts +0 -51
- package/objects/Accounts/UserMFA.d.ts +0 -47
- package/objects/Accounts/UserNotifications.d.ts +0 -76
- package/objects/Accounts/UserSSO.d.ts +0 -37
- package/objects/Assets/Asset.d.ts +0 -218
- package/objects/Assets/AssetAdvanced.d.ts +0 -77
- package/objects/Assets/AssetAttribute.d.ts +0 -71
- package/objects/Assets/AssetDispatch.d.ts +0 -55
- package/objects/Assets/AssetGeneral.d.ts +0 -127
- package/objects/Assets/AssetPlaceStatus.d.ts +0 -31
- package/objects/Assets/AssetPlaceStatusType.d.ts +0 -17
- package/objects/Assets/AssetType.d.ts +0 -21
- package/objects/Behaviours/Behaviour.d.ts +0 -78
- package/objects/Behaviours/BehaviourLog.d.ts +0 -95
- package/objects/Behaviours/BehaviourLogType.d.ts +0 -21
- package/objects/Behaviours/BehaviourParameter.d.ts +0 -38
- package/objects/Behaviours/BehaviourParameterType.d.ts +0 -21
- package/objects/Behaviours/BehaviourScript.d.ts +0 -83
- package/objects/Billing/BillableBase.d.ts +0 -83
- package/objects/Billing/BillableSmsProfile.d.ts +0 -26
- package/objects/Billing/BillingCurrency.d.ts +0 -17
- package/objects/Billing/BillingCycle.d.ts +0 -17
- package/objects/Billing/BillingProfile.d.ts +0 -104
- package/objects/Billing/Hosting/BillableHostingBase.d.ts +0 -41
- package/objects/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
- package/objects/Billing/Hosting/BillableHostingRule.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingType.d.ts +0 -41
- package/objects/Billing/Report/BillingReport.d.ts +0 -112
- package/objects/Billing/Report/BillingReportBreakdown.d.ts +0 -34
- package/objects/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
- package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -79
- package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -124
- package/objects/Billing/Report/BillingReportStatus.d.ts +0 -25
- package/objects/Billing/Report/BillingReportSummary.d.ts +0 -49
- package/objects/Companies/ColourStyle.d.ts +0 -25
- package/objects/Companies/Company.d.ts +0 -167
- package/objects/Companies/CompanyDirectory.d.ts +0 -52
- package/objects/Companies/CompanyGeneral.d.ts +0 -55
- package/objects/Companies/CompanyPolicy.d.ts +0 -66
- package/objects/Companies/CompanyReseller.d.ts +0 -166
- package/objects/Companies/CompanyStyle.d.ts +0 -50
- package/objects/Companies/LabelStyle.d.ts +0 -46
- package/objects/Companies/NotificationServerEmail.d.ts +0 -99
- package/objects/Companies/NotificationServerSms.d.ts +0 -25
- package/objects/Companies/PasswordExpiryMode.d.ts +0 -17
- package/objects/Companies/PasswordPolicy.d.ts +0 -51
- package/objects/Companies/SessionMultiUser.d.ts +0 -17
- package/objects/Companies/SessionPolicy.d.ts +0 -47
- package/objects/Dispatch/DispatchDirection.d.ts +0 -53
- package/objects/Dispatch/DispatchJob.d.ts +0 -107
- package/objects/Dispatch/DispatchJobPriority.d.ts +0 -25
- package/objects/Dispatch/DispatchStep.d.ts +0 -99
- package/objects/Dispatch/DispatchStepState.d.ts +0 -27
- package/objects/Dispatch/DispatchStepStatus.d.ts +0 -21
- package/objects/Dispatch/DispatchTask.d.ts +0 -154
- package/objects/Dispatch/DispatchTaskStatus.d.ts +0 -50
- package/objects/Hosting/Document.d.ts +0 -70
- package/objects/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
- package/objects/Hosting/Fields/FormFieldBase.d.ts +0 -56
- package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
- package/objects/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
- package/objects/Hosting/Fields/FormFieldChoice.d.ts +0 -46
- package/objects/Hosting/Fields/FormFieldDate.d.ts +0 -26
- package/objects/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
- package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldSignature.d.ts +0 -17
- package/objects/Hosting/Fields/FormFieldText.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldTime.d.ts +0 -37
- package/objects/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
- package/objects/Hosting/FormFieldType.d.ts +0 -127
- package/objects/Hosting/FormResult.d.ts +0 -95
- package/objects/Hosting/FormTemplate.d.ts +0 -80
- package/objects/Images/Dashcam.d.ts +0 -63
- package/objects/Images/DashcamBase.d.ts +0 -97
- package/objects/Images/DashcamLive.d.ts +0 -36
- package/objects/Images/DashcamMediaType.d.ts +0 -17
- package/objects/Images/Icon.d.ts +0 -66
- package/objects/Images/IconGlyph.d.ts +0 -47
- package/objects/Images/IconLabel.d.ts +0 -29
- package/objects/Images/IconLayer.d.ts +0 -33
- package/objects/Images/Picture.d.ts +0 -72
- package/objects/Maintenance/MaintenanceInterval.d.ts +0 -48
- package/objects/Maintenance/MaintenanceJob.d.ts +0 -134
- package/objects/Maintenance/MaintenanceJobStatus.d.ts +0 -21
- package/objects/Maintenance/MaintenanceSchedule.d.ts +0 -118
- package/objects/Messaging/AlertPriority.d.ts +0 -17
- package/objects/Messaging/AssetAlert.d.ts +0 -29
- package/objects/Messaging/AssetMessage.d.ts +0 -40
- package/objects/Messaging/MessageBase.d.ts +0 -99
- package/objects/Messaging/MessageFolder.d.ts +0 -13
- package/objects/Messaging/MessageStatus.d.ts +0 -29
- package/objects/Messaging/MessageType.d.ts +0 -33
- package/objects/Places/Place.d.ts +0 -114
- package/objects/Places/PlaceType.d.ts +0 -25
- package/objects/Providers/Config/ProviderConfig.d.ts +0 -70
- package/objects/Providers/Config/ProviderRegistration.d.ts +0 -119
- package/objects/Providers/Config/ProviderScript.d.ts +0 -86
- package/objects/Providers/Config/ProviderScriptBlock.d.ts +0 -41
- package/objects/Providers/Config/ProviderScriptParameter.d.ts +0 -49
- package/objects/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
- package/objects/Providers/Configuration/ProviderConfiguration.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
- package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
- package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
- package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
- package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
- package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
- package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
- package/objects/Providers/Provider.d.ts +0 -205
- package/objects/Providers/ProviderAdvanced.d.ts +0 -50
- package/objects/Providers/ProviderCommand.d.ts +0 -36
- package/objects/Providers/ProviderCommandStatus.d.ts +0 -29
- package/objects/Providers/ProviderCommandType.d.ts +0 -37
- package/objects/Providers/ProviderControl.d.ts +0 -41
- package/objects/Providers/ProviderData.d.ts +0 -30
- package/objects/Providers/ProviderGeneral.d.ts +0 -121
- package/objects/Providers/ProviderType.d.ts +0 -106
- package/objects/Reports/ReportBreakdown.d.ts +0 -49
- package/objects/Reports/ReportBreakdownJob.d.ts +0 -37
- package/objects/Reports/ReportBreakdownMessage.d.ts +0 -40
- package/objects/Reports/ReportBreakdownTask.d.ts +0 -46
- package/objects/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
- package/objects/Reports/ReportFilterMode.d.ts +0 -17
- package/objects/Reports/ReportNotifications.d.ts +0 -31
- package/objects/Reports/ReportOptions.d.ts +0 -52
- package/objects/Reports/ReportParameter.d.ts +0 -26
- package/objects/Reports/ReportParameterType.d.ts +0 -59
- package/objects/Reports/ReportRecurrence.d.ts +0 -54
- package/objects/Reports/ReportRecurrenceType.d.ts +0 -34
- package/objects/Reports/ReportResult.d.ts +0 -169
- package/objects/Reports/ReportResultData.d.ts +0 -17
- package/objects/Reports/ReportSchedule.d.ts +0 -111
- package/objects/Reports/ReportScorecard.d.ts +0 -38
- package/objects/Reports/ReportScorecardParameter.d.ts +0 -31
- package/objects/Reports/ReportScorecardRules.d.ts +0 -26
- package/objects/Reports/ReportStatus.d.ts +0 -29
- package/objects/Reports/ReportSummary.d.ts +0 -90
- package/objects/Reports/ReportSummaryReason.d.ts +0 -27
- package/objects/Reports/ReportTemplate.d.ts +0 -81
- package/objects/Reports/ReportTotal.d.ts +0 -47
- package/objects/Reports/ReportType.d.ts +0 -42
- package/objects/index.d.ts +0 -406
- package/objects/storage.d.ts +0 -176
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ulong } from '../Types';
|
|
2
|
-
import { IIdUlong } from './IIdUlong';
|
|
3
|
-
/**
|
|
4
|
-
* An interface for all the Company___ classes.
|
|
5
|
-
*/
|
|
6
|
-
export interface IAmCompany extends IIdUlong {
|
|
7
|
-
/**
|
|
8
|
-
* The {@link Company} to which this {@link Company} belongs.
|
|
9
|
-
*/
|
|
10
|
-
parentId: ulong;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Asset } from "../../Assets/Asset";
|
|
2
|
-
import { ulong } from "../Types";
|
|
3
|
-
/**
|
|
4
|
-
* An interface for objects that belong to a single asset.
|
|
5
|
-
*/
|
|
6
|
-
export interface IBelongAsset {
|
|
7
|
-
/**
|
|
8
|
-
* The {@link Asset.id} to which this object belongs.
|
|
9
|
-
*/
|
|
10
|
-
assetId: ulong;
|
|
11
|
-
/**
|
|
12
|
-
* The {@link Asset} to which this object belongs.
|
|
13
|
-
*/
|
|
14
|
-
get asset(): Asset;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BillingProfile } from "../../Billing/BillingProfile";
|
|
2
|
-
import { ulong } from "../Types";
|
|
3
|
-
/**
|
|
4
|
-
* An interface for objects that belong to a single billing profile.
|
|
5
|
-
*/
|
|
6
|
-
export interface IBelongBillingProfile {
|
|
7
|
-
/**
|
|
8
|
-
* The {@link BillingProfile} to which this object belongs.
|
|
9
|
-
*/
|
|
10
|
-
get profileId(): ulong;
|
|
11
|
-
/**
|
|
12
|
-
* The {@link BillingProfile} to which this object belongs.
|
|
13
|
-
*/
|
|
14
|
-
readonly profile: BillingProfile;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ulong } from "../Types";
|
|
2
|
-
import { Company } from "../../Companies/Company";
|
|
3
|
-
/**
|
|
4
|
-
* An interface for objects that belong to a single company.
|
|
5
|
-
*/
|
|
6
|
-
export interface IBelongCompany {
|
|
7
|
-
/**
|
|
8
|
-
* The {@link Company} to which this object belongs.
|
|
9
|
-
*/
|
|
10
|
-
get companyId(): ulong;
|
|
11
|
-
/**
|
|
12
|
-
* The {@link Company} to which this object belongs.
|
|
13
|
-
*/
|
|
14
|
-
get company(): Company;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { JsonObject } from "../../API/Types";
|
|
2
|
-
/**
|
|
3
|
-
* An interface for types that are updated using JSON values.
|
|
4
|
-
*/
|
|
5
|
-
export interface IDeserializable {
|
|
6
|
-
/**
|
|
7
|
-
* Updates this {@link IDeserializable} from the given input.
|
|
8
|
-
* @param json A JSON value used to update this class.
|
|
9
|
-
* @param forced When true, forces the update.
|
|
10
|
-
* @returns True when an update was completed.
|
|
11
|
-
*/
|
|
12
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IBelongCompany } from './IBelongCompany';
|
|
2
|
-
/**
|
|
3
|
-
* An interface for objects that can be marked as "global".
|
|
4
|
-
* "Global" objects can be listed in child companies.
|
|
5
|
-
*/
|
|
6
|
-
export interface IGlobal extends IBelongCompany {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates whether this icon is available to child companies.
|
|
9
|
-
*/
|
|
10
|
-
global: boolean;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Permission } from '../../Accounts/Permissions/Permission';
|
|
2
|
-
import { UserGroup } from '../../Accounts/UserGroup';
|
|
3
|
-
import { ulong } from '../Types';
|
|
4
|
-
/**
|
|
5
|
-
* This interface exists so that I can work with Machine and UserAdvanced objects the same way.
|
|
6
|
-
*/
|
|
7
|
-
export interface IHavePermissions {
|
|
8
|
-
/**
|
|
9
|
-
* A list of groups to which this object.
|
|
10
|
-
*/
|
|
11
|
-
get groups(): UserGroup[];
|
|
12
|
-
/**
|
|
13
|
-
* A list of groups to which this object.
|
|
14
|
-
*/
|
|
15
|
-
groupIds: ulong[];
|
|
16
|
-
/**
|
|
17
|
-
* Permission rules which override the group rules.
|
|
18
|
-
*/
|
|
19
|
-
permissions: Permission[];
|
|
20
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SystemsOfUnits } from '../../Accounts/SystemsOfUnits';
|
|
2
|
-
import { Timezone } from '../Timezone';
|
|
3
|
-
import { codified } from '../Types';
|
|
4
|
-
/**
|
|
5
|
-
* This interface exists so that I can work with Machine and UserGeneral objects the same way.
|
|
6
|
-
*/
|
|
7
|
-
export interface IHavePreferences {
|
|
8
|
-
/**
|
|
9
|
-
* The local timezone for this object.
|
|
10
|
-
*/
|
|
11
|
-
timezone: Timezone;
|
|
12
|
-
/**
|
|
13
|
-
* Preferred region/language for the UI and notifications.
|
|
14
|
-
* Valid formats use <ISO 639-1><dash><ISO 3166-2> such as "fr-CA" or "en-US".
|
|
15
|
-
*/
|
|
16
|
-
language: codified;
|
|
17
|
-
/**
|
|
18
|
-
* The format strings defining the preferred way to display ambiguous values.
|
|
19
|
-
*/
|
|
20
|
-
formats: Map<codified, string>;
|
|
21
|
-
/**
|
|
22
|
-
* Preferred way of displaying ambiguous numbers in the context of measurements.
|
|
23
|
-
*/
|
|
24
|
-
measurements: Map<codified, SystemsOfUnits>;
|
|
25
|
-
/**
|
|
26
|
-
* Additional options which do not fit in with the formats or measurements preferences.
|
|
27
|
-
*/
|
|
28
|
-
options: Map<codified, string>;
|
|
29
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Icon } from '../../Images/Icon';
|
|
2
|
-
import { ulong } from '../Types';
|
|
3
|
-
/**
|
|
4
|
-
* An interface for objcts that have an "icon".
|
|
5
|
-
*/
|
|
6
|
-
export interface IIconic {
|
|
7
|
-
/**
|
|
8
|
-
* This thing's {@link Icon.id}.
|
|
9
|
-
*/
|
|
10
|
-
iconId: ulong;
|
|
11
|
-
/**
|
|
12
|
-
* This thing's {@link Icon}.
|
|
13
|
-
*/
|
|
14
|
-
get icon(): Icon;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ulong } from '../Types';
|
|
2
|
-
import { Picture } from '../../Images/Picture';
|
|
3
|
-
/**
|
|
4
|
-
* An interface for objects that have "pictures".
|
|
5
|
-
*/
|
|
6
|
-
export interface IPictured {
|
|
7
|
-
/**
|
|
8
|
-
* An array of picture identifiers of this object.
|
|
9
|
-
*/
|
|
10
|
-
pictureIds: ulong[];
|
|
11
|
-
/**
|
|
12
|
-
* An array of {@link Picture}s of this object.
|
|
13
|
-
*/
|
|
14
|
-
get pictures(): Picture[];
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { codified, email, guid, ulong } from "../Types";
|
|
2
|
-
/**
|
|
3
|
-
* The main interface for an object in the Trak-iT system.
|
|
4
|
-
*/
|
|
5
|
-
export interface IRequestable {
|
|
6
|
-
/**
|
|
7
|
-
* Returns a unique identifier as a string.
|
|
8
|
-
* {@link Dashcam.guid}
|
|
9
|
-
* {@link IIdUlong.id}
|
|
10
|
-
* {@link Machine.key}
|
|
11
|
-
* {@link Provider.id}
|
|
12
|
-
* {@link ProviderGeneral.id}
|
|
13
|
-
* {@link ProviderAdvanced.id}
|
|
14
|
-
* {@link ProviderControl.id}
|
|
15
|
-
* {@link ProviderRegistration.code}
|
|
16
|
-
* {@link User.login}
|
|
17
|
-
* {@link UserGeneral.login}
|
|
18
|
-
* {@link UserAdvanced.login}
|
|
19
|
-
* {@link Timezone.code}
|
|
20
|
-
*/
|
|
21
|
-
getKey(): ulong | email | guid | codified | string;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An interface for types that can be converted to JSON for transmission or storage.
|
|
3
|
-
*/
|
|
4
|
-
export interface ISerializable {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a literal of this {@link ISerializable} object.
|
|
7
|
-
* Used internally by {@link JSON.stringify}.
|
|
8
|
-
*/
|
|
9
|
-
toJSON(): any;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An interface for objects that can be marked as "suspended".
|
|
3
|
-
* "Suspended" objects can be "revived", but are otherwise treated as "achived" or "inert" (events are not processed).
|
|
4
|
-
*/
|
|
5
|
-
export interface ISuspendable {
|
|
6
|
-
/**
|
|
7
|
-
* Marked as true for objects that have been suspended.
|
|
8
|
-
* This value is not present in the JSON scheme when {@link deleted} is false.
|
|
9
|
-
*/
|
|
10
|
-
suspended?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* A timestamp from when the object was most recently suspended or revived.
|
|
13
|
-
* This value is not present in the JSON scheme when {@link suspended} is false.
|
|
14
|
-
*/
|
|
15
|
-
since?: Date;
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { codified, colour } from "../Types";
|
|
2
|
-
/**
|
|
3
|
-
* An interface for objects that make them more easily visually identifiable.
|
|
4
|
-
*/
|
|
5
|
-
export interface IVisual {
|
|
6
|
-
/**
|
|
7
|
-
* The background colour of the graphic.
|
|
8
|
-
*/
|
|
9
|
-
fill: colour;
|
|
10
|
-
/**
|
|
11
|
-
* Outline and graphic colour.
|
|
12
|
-
*/
|
|
13
|
-
stroke: colour;
|
|
14
|
-
/**
|
|
15
|
-
* The name of the symbol for this object.
|
|
16
|
-
*/
|
|
17
|
-
graphic: codified;
|
|
18
|
-
}
|
package/objects/API/Maps.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IBelongAsset } from './Interfaces/IBelongAsset';
|
|
2
|
-
import { IBelongBillingProfile } from './Interfaces/IBelongBillingProfile';
|
|
3
|
-
import { IBelongCompany } from './Interfaces/IBelongCompany';
|
|
4
|
-
import { ulong } from './Types';
|
|
5
|
-
/**
|
|
6
|
-
* Returns an array of values where the {@link Map}'s key is present in the {@link keys} array.
|
|
7
|
-
* @param map Map of objects to filter.
|
|
8
|
-
* @param keys Array of keys to select.
|
|
9
|
-
*/
|
|
10
|
-
export declare function MAP_FILTERED_BY_KEYS<K, T>(map: Map<K, T>, keys: K[]): T[];
|
|
11
|
-
/**
|
|
12
|
-
* Returns an array of values where the `value.companyId` matches the given {@link companyId}.
|
|
13
|
-
* @param map Map of objects to filter.
|
|
14
|
-
* @param companyId {@link Company.id} used to filter.
|
|
15
|
-
*/
|
|
16
|
-
export declare function MAP_FILTERED_BY_COMPANY<K, T extends IBelongCompany>(map: Map<K, T>, companyId: ulong): T[];
|
|
17
|
-
/**
|
|
18
|
-
* Returns an array of values where the `value.assetId` matches the given {@link assetId}.
|
|
19
|
-
* @param map Map of objects to filter.
|
|
20
|
-
* @param assetId {@link Asset.id} used to filter.
|
|
21
|
-
*/
|
|
22
|
-
export declare function MAP_FILTERED_BY_ASSET<K, T extends IBelongAsset>(map: Map<K, T>, assetId: ulong): T[];
|
|
23
|
-
/**
|
|
24
|
-
* Returns an array of values where the `value.profileId` matches the given {@link profileId}.
|
|
25
|
-
* @param map Map of objects to filter.
|
|
26
|
-
* @param profileId {@link BillingProfile.id} used to filter.
|
|
27
|
-
*/
|
|
28
|
-
export declare function MAP_FILTERED_BY_BILLING<K, T extends IBelongBillingProfile>(map: Map<K, T>, profileId: ulong): T[];
|
package/objects/API/Objects.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { nothing } from './Types';
|
|
2
|
-
/**
|
|
3
|
-
* A common structure used to implement searching throughout the system.
|
|
4
|
-
* The input format is described in the {@link /wss/#format-expression|WebSocket reference}.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SearchPattern {
|
|
7
|
-
/**
|
|
8
|
-
* Creates an array of {@link SearchPattern}s for easier matching. Used for doing OR matching.
|
|
9
|
-
* @param expression
|
|
10
|
-
*/
|
|
11
|
-
static parse(expression?: string | nothing): SearchPattern[];
|
|
12
|
-
/**
|
|
13
|
-
* Creates a single string from the given array of {@link SearchPattern}s for easier serialization.
|
|
14
|
-
* @param patterns
|
|
15
|
-
*/
|
|
16
|
-
static stringify(patterns?: SearchPattern[] | nothing): string | null;
|
|
17
|
-
/**
|
|
18
|
-
* To help qualify matches, all operators must match for the search to be
|
|
19
|
-
* considered matched.
|
|
20
|
-
* Operators are formatted as "operator:terms".
|
|
21
|
-
*/
|
|
22
|
-
operators: Map<string, string[]>;
|
|
23
|
-
/**
|
|
24
|
-
* If any term matches, then the search should be considered matched.
|
|
25
|
-
* Terms are any string contained by single/double-quotes or not parsed as an
|
|
26
|
-
* operator.
|
|
27
|
-
*/
|
|
28
|
-
terms: string[];
|
|
29
|
-
constructor(pattern?: string);
|
|
30
|
-
/**
|
|
31
|
-
* True when this pattern will match all.
|
|
32
|
-
*/
|
|
33
|
-
get wildcard(): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Returns a re-parseable string representation of the pattern.
|
|
36
|
-
*/
|
|
37
|
-
toString(): string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
toJSON: () => string;
|
|
42
|
-
/**
|
|
43
|
-
* Returns a new, identical instance of the pattern.
|
|
44
|
-
*/
|
|
45
|
-
copy(): SearchPattern;
|
|
46
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { nothing, timespan } from "./Types";
|
|
2
|
-
/**
|
|
3
|
-
* An object which represents an interval of time.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TimeSpan {
|
|
6
|
-
#private;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new TimeSpan with the value specified in days.
|
|
9
|
-
*/
|
|
10
|
-
static fromDays(value: number): TimeSpan;
|
|
11
|
-
/**
|
|
12
|
-
* Constructs a new TimeSpan with the value specified in hours.
|
|
13
|
-
*/
|
|
14
|
-
static fromHours(value: number): TimeSpan;
|
|
15
|
-
/**
|
|
16
|
-
* Constructs a new TimeSpan with the value specified in minutes.
|
|
17
|
-
*/
|
|
18
|
-
static fromMinutes(value: number): TimeSpan;
|
|
19
|
-
/**
|
|
20
|
-
* Constructs a new TimeSpan with the value specified in seconds.
|
|
21
|
-
*/
|
|
22
|
-
static fromSeconds(value: number): TimeSpan;
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new TimeSpan with the value specified in milliseconds.
|
|
25
|
-
*/
|
|
26
|
-
static fromMilliseconds(value: number): TimeSpan;
|
|
27
|
-
/**
|
|
28
|
-
* @param duration A time-span formatted string, or a number representing milliseconds
|
|
29
|
-
*/
|
|
30
|
-
constructor(duration?: TimeSpan | timespan | number | nothing);
|
|
31
|
-
/**
|
|
32
|
-
* Days component of the time-span.
|
|
33
|
-
*/
|
|
34
|
-
get days(): number;
|
|
35
|
-
/**
|
|
36
|
-
* Hours component of the time-span.
|
|
37
|
-
*/
|
|
38
|
-
get hours(): number;
|
|
39
|
-
/**
|
|
40
|
-
* Minutes component of the time-span.
|
|
41
|
-
*/
|
|
42
|
-
get minutes(): number;
|
|
43
|
-
/**
|
|
44
|
-
* Seconds component of the time-span.
|
|
45
|
-
*/
|
|
46
|
-
get seconds(): number;
|
|
47
|
-
/**
|
|
48
|
-
* Millisecond component of the time-span.
|
|
49
|
-
*/
|
|
50
|
-
get milliseconds(): number;
|
|
51
|
-
/**
|
|
52
|
-
* Total time-span value in decimal days.
|
|
53
|
-
*/
|
|
54
|
-
get totalDays(): number;
|
|
55
|
-
/**
|
|
56
|
-
* Total time-span value in decimal hours.
|
|
57
|
-
*/
|
|
58
|
-
get totalHours(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Total time-span value in decimal minutes.
|
|
61
|
-
*/
|
|
62
|
-
get totalMinutes(): number;
|
|
63
|
-
/**
|
|
64
|
-
* Total time-span value in decimal seconds.
|
|
65
|
-
*/
|
|
66
|
-
get totalSeconds(): number;
|
|
67
|
-
/**
|
|
68
|
-
* Total time-span value in milliseconds.
|
|
69
|
-
*/
|
|
70
|
-
get totalMilliseconds(): number;
|
|
71
|
-
/**
|
|
72
|
-
* Parses the time-span into a serialized TimeSpan string.
|
|
73
|
-
* The format follows the {@link timespan} definition.
|
|
74
|
-
* @param format Use format strings like "HH:mm" for just hours and minutes. Valid flags are d, h, H, m, s, and f. If you use
|
|
75
|
-
*/
|
|
76
|
-
toString(format?: timespan): timespan;
|
|
77
|
-
/**
|
|
78
|
-
* Same as {@link TimeSpan#toString}.
|
|
79
|
-
*/
|
|
80
|
-
toJSON: (format?: timespan) => timespan;
|
|
81
|
-
/**
|
|
82
|
-
* Gets the comparable value of this time-span as total milliseconds.
|
|
83
|
-
*/
|
|
84
|
-
valueOf(): number;
|
|
85
|
-
/**
|
|
86
|
-
* Adds the given value to the current time-span.
|
|
87
|
-
* @param duration A time-span formatted string, or a number representing milliseconds
|
|
88
|
-
* @param subtract When true, the value is subtracted from the time-span instead of added.
|
|
89
|
-
*/
|
|
90
|
-
add(duration: TimeSpan | timespan | number, subtract?: boolean): number;
|
|
91
|
-
/**
|
|
92
|
-
* Subtracts the given value from the time-span.
|
|
93
|
-
* @param duration A time-span formatted string, or a number representing milliseconds
|
|
94
|
-
* @param add When true, the value is added from the time-span instead of subtracted.
|
|
95
|
-
*/
|
|
96
|
-
subtract(duration: TimeSpan | timespan | number, add?: boolean): number;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Parses a serialized TimeSpan into a number representing the total seconds.
|
|
100
|
-
* For example the string "1.07:42:03.467" equals 114123.467, which is 1 day, 7 hours, 42 minutes, 3 seconds, and 467 milliseconds.
|
|
101
|
-
* @param duration A valid timespan string. The format is [-]( d | [d.]hh:mm[:ss[.fff]] )
|
|
102
|
-
*/
|
|
103
|
-
export declare function TIMESPAN_PARSE(duration: TimeSpan | timespan | number): number;
|
|
104
|
-
/**
|
|
105
|
-
* Parses a number representing the total seconds into a serialized TimeSpan string.
|
|
106
|
-
* For example the number 114123.467 would be serialized as "1.07:42:03.467".
|
|
107
|
-
* @param value Use a decimal to show milliseconds.
|
|
108
|
-
*/
|
|
109
|
-
export declare function TIMESPAN_STRINGIFY(value: number): timespan;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { IRequestable } from "./Interfaces/IRequestable";
|
|
2
|
-
import { ISerializable } from "./Interfaces/ISerializable";
|
|
3
|
-
import { short, JsonObject } from "./Types";
|
|
4
|
-
/**
|
|
5
|
-
* Timezone definition
|
|
6
|
-
*/
|
|
7
|
-
export declare class Timezone implements IRequestable, ISerializable {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param json
|
|
11
|
-
*/
|
|
12
|
-
static fromJSON(json: JsonObject): Timezone;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
static utc: Timezone;
|
|
17
|
-
/**
|
|
18
|
-
* Unique timezone code
|
|
19
|
-
*/
|
|
20
|
-
code: string;
|
|
21
|
-
/**
|
|
22
|
-
* Common timezone name
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
* Minutes offset from GMT
|
|
27
|
-
*/
|
|
28
|
-
offset: short;
|
|
29
|
-
/**
|
|
30
|
-
* Indicates whether this timezone abides by daylight savings
|
|
31
|
-
*/
|
|
32
|
-
dst: boolean;
|
|
33
|
-
constructor(code: string, name?: string, offset?: short, dst?: boolean);
|
|
34
|
-
toJSON(): {
|
|
35
|
-
code: string;
|
|
36
|
-
name: string;
|
|
37
|
-
offset: number;
|
|
38
|
-
dst: boolean;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* The {@link code} is the key.
|
|
42
|
-
*/
|
|
43
|
-
getKey(): string;
|
|
44
|
-
}
|