@trakit/objects 0.0.5 → 0.0.7
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/LICENSE +661 -0
- package/README.md +24 -0
- package/{API → _publish/API}/Arrays.d.ts +1 -0
- package/{API → _publish/API}/Base.d.ts +1 -0
- package/{API → _publish/API}/BaseComponent.d.ts +1 -0
- package/{API → _publish/API}/BaseCompound.d.ts +1 -0
- package/{API → _publish/API}/Codifier.d.ts +1 -0
- package/{API → _publish/API}/Constants.d.ts +1 -0
- package/{API → _publish/API}/Conversion.d.ts +3 -2
- package/{API → _publish/API}/Encoding.d.ts +1 -0
- package/{API → _publish/API}/Files.d.ts +1 -0
- package/{API → _publish/API}/Functions.d.ts +1 -0
- package/{API → _publish/API}/Guid.d.ts +1 -0
- package/{API → _publish/API}/Maps.d.ts +1 -0
- package/{API → _publish/API}/Objects.d.ts +1 -0
- package/{API → _publish/API}/SearchPattern.d.ts +1 -0
- package/{API → _publish/API}/TimeSpan.d.ts +1 -0
- package/{API → _publish/API}/Timezone.d.ts +1 -0
- package/{API → _publish/API}/Timezones.d.ts +1 -0
- package/{API → _publish/API}/Types.d.ts +24 -23
- package/{Accounts → _publish/Accounts}/Contact.d.ts +4 -4
- package/{Accounts → _publish/Accounts}/Machine.d.ts +1 -0
- package/_publish/Accounts/MultiFactorType.d.ts +18 -0
- package/{Accounts → _publish/Accounts}/NotificationMethod.d.ts +1 -0
- package/_publish/Accounts/SSOIdentityProvider.d.ts +26 -0
- package/{Accounts → _publish/Accounts}/Session.d.ts +12 -14
- package/{Accounts → _publish/Accounts}/SessionStatus.d.ts +1 -0
- package/{Accounts → _publish/Accounts}/SystemsOfUnits.d.ts +1 -0
- package/{Accounts → _publish/Accounts}/User.d.ts +34 -13
- package/{Accounts → _publish/Accounts}/UserAdvanced.d.ts +2 -2
- package/_publish/Accounts/UserAuthentication.d.ts +56 -0
- package/{Accounts → _publish/Accounts}/UserGeneral.d.ts +3 -4
- package/{Accounts → _publish/Accounts}/UserGroup.d.ts +2 -2
- package/_publish/Accounts/UserMFA.d.ts +48 -0
- package/{Accounts → _publish/Accounts}/UserNotifications.d.ts +1 -0
- package/_publish/Accounts/UserSSO.d.ts +38 -0
- package/{Assets → _publish/Assets}/Asset.d.ts +6 -11
- package/{Assets → _publish/Assets}/AssetAdvanced.d.ts +2 -2
- package/{Assets → _publish/Assets}/AssetAttribute.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetDispatch.d.ts +2 -2
- package/{Assets → _publish/Assets}/AssetGeneral.d.ts +3 -4
- package/{Assets → _publish/Assets}/AssetPlaceStatus.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetPlaceStatusType.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/Behaviour.d.ts +2 -2
- package/{Behaviours → _publish/Behaviours}/BehaviourLog.d.ts +3 -4
- package/{Behaviours → _publish/Behaviours}/BehaviourLogType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourParameter.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourParameterType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourScript.d.ts +2 -2
- package/{Billing → _publish/Billing}/BillableBase.d.ts +3 -4
- package/{Billing → _publish/Billing}/BillableSmsProfile.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingCurrency.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingCycle.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingProfile.d.ts +5 -7
- package/{Companies → _publish/Companies}/ColourStyle.d.ts +1 -0
- package/{Companies → _publish/Companies}/Company.d.ts +5 -2
- package/{Companies → _publish/Companies}/CompanyDirectory.d.ts +3 -4
- package/{Companies → _publish/Companies}/CompanyGeneral.d.ts +2 -2
- package/{Companies → _publish/Companies}/CompanyPolicy.d.ts +2 -2
- package/{Companies → _publish/Companies}/CompanyReseller.d.ts +3 -4
- package/{Companies → _publish/Companies}/CompanyStyle.d.ts +2 -2
- package/{Companies → _publish/Companies}/LabelStyle.d.ts +1 -0
- package/{Companies → _publish/Companies}/NotificationServerEmail.d.ts +3 -2
- package/{Companies → _publish/Companies}/NotificationServerSms.d.ts +1 -0
- package/{Companies → _publish/Companies}/PasswordExpiryMode.d.ts +1 -0
- package/{Companies → _publish/Companies}/PasswordPolicy.d.ts +1 -0
- package/{Companies → _publish/Companies}/SessionMultiUser.d.ts +1 -0
- package/{Companies → _publish/Companies}/SessionPolicy.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchDirection.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchJob.d.ts +2 -3
- package/{Dispatch → _publish/Dispatch}/DispatchJobPriority.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStep.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStepState.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStepStatus.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchTask.d.ts +3 -4
- package/{Dispatch → _publish/Dispatch}/DispatchTaskStatus.d.ts +1 -0
- package/{Hosting → _publish/Hosting}/Document.d.ts +2 -2
- package/{Hosting → _publish/Hosting}/FormFieldType.d.ts +1 -0
- package/{Hosting → _publish/Hosting}/FormResult.d.ts +1 -2
- package/{Hosting → _publish/Hosting}/FormTemplate.d.ts +1 -1
- package/{Images → _publish/Images}/Dashcam.d.ts +4 -10
- package/{Images → _publish/Images}/DashcamBase.d.ts +9 -9
- package/{Images → _publish/Images}/DashcamLive.d.ts +4 -10
- package/{Images → _publish/Images}/DashcamMediaType.d.ts +1 -0
- package/{Images → _publish/Images}/Icon.d.ts +2 -2
- package/{Images → _publish/Images}/IconGlyph.d.ts +1 -0
- package/{Images → _publish/Images}/IconLabel.d.ts +1 -0
- package/{Images → _publish/Images}/IconLayer.d.ts +1 -0
- package/{Images → _publish/Images}/Picture.d.ts +2 -2
- package/{Maintenance → _publish/Maintenance}/MaintenanceInterval.d.ts +1 -1
- package/{Maintenance → _publish/Maintenance}/MaintenanceJob.d.ts +3 -5
- package/{Maintenance → _publish/Maintenance}/MaintenanceJobStatus.d.ts +1 -0
- package/{Maintenance → _publish/Maintenance}/MaintenanceSchedule.d.ts +2 -2
- package/{Messaging → _publish/Messaging}/AlertPriority.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/AssetAlert.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/AssetMessage.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageBase.d.ts +3 -4
- package/{Messaging → _publish/Messaging}/MessageFolder.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageStatus.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageType.d.ts +1 -0
- package/{Places → _publish/Places}/Place.d.ts +3 -4
- package/{Places → _publish/Places}/PlaceType.d.ts +1 -0
- package/{Providers → _publish/Providers}/Provider.d.ts +3 -8
- package/{Providers → _publish/Providers}/ProviderAdvanced.d.ts +2 -2
- package/{Providers → _publish/Providers}/ProviderCommand.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderCommandStatus.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderCommandType.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderControl.d.ts +2 -2
- package/{Providers → _publish/Providers}/ProviderData.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderGeneral.d.ts +4 -7
- package/{Providers → _publish/Providers}/ProviderType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdown.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownJob.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownMessage.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownTask.d.ts +1 -0
- package/_publish/Reports/ReportBreakdown_fromJSON.d.ts +2 -0
- package/{Reports → _publish/Reports}/ReportFilterMode.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportNotifications.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportOptions.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportParameter.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportParameterType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportRecurrence.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportRecurrenceType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportResult.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportResultData.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportSchedule.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportScorecard.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportScorecardParameter.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportScorecardRules.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportStatus.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportSummary.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportSummaryReason.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportTemplate.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportTotal.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportType.d.ts +1 -0
- package/{index.d.ts → _publish/index.d.ts} +5 -4
- package/{storage.d.ts → _publish/storage.d.ts} +1 -0
- package/{trakit-objects.min.js → _publish/trakit-objects.min.js} +2 -2
- package/package.json +8 -1
- package/API/Geography/Functions.d.ts +0 -236
- package/API/Geography/Interfaces.d.ts +0 -150
- package/API/Geography/LatLng.d.ts +0 -86
- package/API/Geography/LatLngBounds.d.ts +0 -146
- package/API/Geography/Position.d.ts +0 -74
- package/API/Geography/StreetAddress.d.ts +0 -59
- package/API/Geometry/Functions.d.ts +0 -114
- package/API/Geometry/Interfaces.d.ts +0 -111
- package/API/Geometry/Point.d.ts +0 -81
- package/API/Geometry/Radial.d.ts +0 -110
- package/API/Geometry/Rectangle.d.ts +0 -159
- package/API/Geometry/Size.d.ts +0 -58
- package/API/Interfaces/IAmCompany.d.ts +0 -11
- package/API/Interfaces/IAuditable.d.ts +0 -31
- package/API/Interfaces/IBelongAsset.d.ts +0 -15
- package/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
- package/API/Interfaces/IBelongCompany.d.ts +0 -15
- package/API/Interfaces/IDeserializable.d.ts +0 -13
- package/API/Interfaces/IEnabled.d.ts +0 -10
- package/API/Interfaces/IFileSize.d.ts +0 -9
- package/API/Interfaces/IGlobal.d.ts +0 -11
- package/API/Interfaces/IHavePermissions.d.ts +0 -20
- package/API/Interfaces/IHavePreferences.d.ts +0 -29
- package/API/Interfaces/IIconic.d.ts +0 -15
- package/API/Interfaces/IIdUlong.d.ts +0 -10
- package/API/Interfaces/ILabelled.d.ts +0 -10
- package/API/Interfaces/INamed.d.ts +0 -13
- package/API/Interfaces/IPictured.d.ts +0 -15
- package/API/Interfaces/IRequestable.d.ts +0 -22
- package/API/Interfaces/ISerializable.d.ts +0 -10
- package/API/Interfaces/ISuspendable.d.ts +0 -16
- package/API/Interfaces/IVisual.d.ts +0 -18
- package/Accounts/Permissions/Authorizer.d.ts +0 -204
- package/Accounts/Permissions/Permission.d.ts +0 -57
- package/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
- package/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
- package/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
- package/Accounts/Permissions/PermissionLevel.d.ts +0 -17
- package/Accounts/Permissions/PermissionMethod.d.ts +0 -13
- package/Accounts/Permissions/PermissionType.d.ts +0 -280
- package/Billing/Hosting/BillableHostingBase.d.ts +0 -41
- package/Billing/Hosting/BillableHostingDiscount.d.ts +0 -36
- package/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
- package/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
- package/Billing/Hosting/BillableHostingRule.d.ts +0 -30
- package/Billing/Hosting/BillableHostingType.d.ts +0 -41
- package/Billing/Report/BillingReport.d.ts +0 -114
- package/Billing/Report/BillingReportBreakdown.d.ts +0 -35
- package/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
- package/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -80
- package/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -126
- package/Billing/Report/BillingReportStatus.d.ts +0 -25
- package/Billing/Report/BillingReportSummary.d.ts +0 -51
- package/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
- package/Hosting/Fields/FormFieldBase.d.ts +0 -56
- package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
- package/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
- package/Hosting/Fields/FormFieldChoice.d.ts +0 -46
- package/Hosting/Fields/FormFieldDate.d.ts +0 -26
- package/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
- package/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
- package/Hosting/Fields/FormFieldSignature.d.ts +0 -17
- package/Hosting/Fields/FormFieldText.d.ts +0 -32
- package/Hosting/Fields/FormFieldTime.d.ts +0 -37
- package/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
- package/Providers/Config/ProviderConfig.d.ts +0 -72
- package/Providers/Config/ProviderRegistration.d.ts +0 -123
- package/Providers/Config/ProviderScript.d.ts +0 -87
- package/Providers/Config/ProviderScriptBlock.d.ts +0 -41
- package/Providers/Config/ProviderScriptParameter.d.ts +0 -49
- package/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
- package/Providers/Configuration/ProviderConfiguration.d.ts +0 -68
- package/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
- package/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
- package/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
- package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
- package/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
- package/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
- package/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
- package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
- package/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A coordinate on a flat surface.
|
|
3
|
-
*/
|
|
4
|
-
export interface IPoint {
|
|
5
|
-
/**
|
|
6
|
-
* Horizontal coordinate.
|
|
7
|
-
*/
|
|
8
|
-
x: number;
|
|
9
|
-
/**
|
|
10
|
-
* Vertical coordinate.
|
|
11
|
-
*/
|
|
12
|
-
y: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Returns true if the given point conforms to the {@link IPoint} interface.
|
|
16
|
-
* @param dot
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export declare function IPoint_instanceOf(dot: any): dot is IPoint;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param dot
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
export declare function IPoint_clone(dot: IPoint): IPoint;
|
|
26
|
-
/**
|
|
27
|
-
* A boundary on a flat surface based on a centre point and a radius.
|
|
28
|
-
*/
|
|
29
|
-
export interface IRadial extends IPoint {
|
|
30
|
-
/**
|
|
31
|
-
* Radius.
|
|
32
|
-
*/
|
|
33
|
-
r: number;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The types used to extend a {@link Radial}'s radius.
|
|
37
|
-
*/
|
|
38
|
-
export type RadialExpansion = IPoint | IRadial | RadialExpansion[];
|
|
39
|
-
/**
|
|
40
|
-
* Returns true if the given radial conforms to the {@link IRadial} interface.
|
|
41
|
-
* @param radial
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
export declare function IRadial_instanceOf(radial: any): radial is IRadial;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @param circle
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
export declare function IRadial_clone(circle: IRadial): IRadial;
|
|
51
|
-
/**
|
|
52
|
-
* A rectangular boundary on a flat surface.
|
|
53
|
-
*/
|
|
54
|
-
export interface IRectangle {
|
|
55
|
-
/**
|
|
56
|
-
* Left-most horizontal coordinate
|
|
57
|
-
*/
|
|
58
|
-
left: number;
|
|
59
|
-
/**
|
|
60
|
-
* Highest vertical coordinate.
|
|
61
|
-
*/
|
|
62
|
-
top: number;
|
|
63
|
-
/**
|
|
64
|
-
* Right-most horizontal coordinate
|
|
65
|
-
*/
|
|
66
|
-
right: number;
|
|
67
|
-
/**
|
|
68
|
-
* Lowest vertical coordinate
|
|
69
|
-
*/
|
|
70
|
-
bottom: number;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns true if the given rect conforms to the {@link Rectangle} interface.
|
|
74
|
-
* @param rect
|
|
75
|
-
*/
|
|
76
|
-
export declare function IRectangle_instanceOf(rect: any): rect is IRectangle;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @param rect
|
|
80
|
-
* @returns
|
|
81
|
-
*/
|
|
82
|
-
export declare function IRectangle_clone(rect: IRectangle): IRectangle;
|
|
83
|
-
/**
|
|
84
|
-
* The types used to extend a {@link Rectangle}'s edges.
|
|
85
|
-
*/
|
|
86
|
-
export type RectangleExpansion = IPoint | IRectangle | IRadial | RectangleExpansion[];
|
|
87
|
-
/**
|
|
88
|
-
* Dimensions on a flat surface.
|
|
89
|
-
*/
|
|
90
|
-
export interface ISize {
|
|
91
|
-
/**
|
|
92
|
-
* Width.
|
|
93
|
-
*/
|
|
94
|
-
width: number;
|
|
95
|
-
/**
|
|
96
|
-
* Height.
|
|
97
|
-
*/
|
|
98
|
-
height: number;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Returns true if the given size conforms to the {@link Size} interface.
|
|
102
|
-
* @param size
|
|
103
|
-
* @returns
|
|
104
|
-
*/
|
|
105
|
-
export declare function ISize_instanceOf(size: any): size is ISize;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @param size
|
|
109
|
-
* @returns
|
|
110
|
-
*/
|
|
111
|
-
export declare function ISize_clone(size: ISize): ISize;
|
package/API/Geometry/Point.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from '../Interfaces/ISerializable';
|
|
2
|
-
import { JsonObject } from '../Types';
|
|
3
|
-
import { IPoint } from './Interfaces';
|
|
4
|
-
import { Radial } from './Radial';
|
|
5
|
-
/**
|
|
6
|
-
* A coordinate on a flat surface.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Point implements IPoint, ISerializable {
|
|
9
|
-
/**
|
|
10
|
-
* Returns a new {@link Radial} from the given object.
|
|
11
|
-
* @param json
|
|
12
|
-
*/
|
|
13
|
-
static fromJSON(json: IPoint | JsonObject): Point;
|
|
14
|
-
/**
|
|
15
|
-
* Horizontal coordinate.
|
|
16
|
-
*/
|
|
17
|
-
x: number;
|
|
18
|
-
/**
|
|
19
|
-
* Vertical coordinate.
|
|
20
|
-
*/
|
|
21
|
-
y: number;
|
|
22
|
-
constructor(x: number, y: number);
|
|
23
|
-
/**
|
|
24
|
-
* Returns a string representation of this {@link Point}.
|
|
25
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value.
|
|
26
|
-
* @returns A string in the format of "x,y".
|
|
27
|
-
*/
|
|
28
|
-
toString(delimiter?: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a literal of this {@link Point}.
|
|
31
|
-
* Used internally by {@link JSON.stringify}.
|
|
32
|
-
*/
|
|
33
|
-
toJSON(): IPoint;
|
|
34
|
-
/**
|
|
35
|
-
* Creates a duplicate of this {@link Point}.
|
|
36
|
-
*/
|
|
37
|
-
copy(): Point;
|
|
38
|
-
/**
|
|
39
|
-
* Compares this {@link Point} to another to see if they are equal.
|
|
40
|
-
* @param point The other {@link Point} to compare.
|
|
41
|
-
* @param precision The degree of precision to use; default is full precision.
|
|
42
|
-
*/
|
|
43
|
-
isEqual(point: IPoint, precision?: number): point is IPoint;
|
|
44
|
-
/**
|
|
45
|
-
* Calculates the distance between two {@link Point}s.
|
|
46
|
-
* @param point The other {@link Point} to compare
|
|
47
|
-
*/
|
|
48
|
-
distanceTo(point: IPoint): number;
|
|
49
|
-
/**
|
|
50
|
-
* Calculates the angle (in degrees) to the given {@link Point}.
|
|
51
|
-
* @param point
|
|
52
|
-
*/
|
|
53
|
-
angleTo(point: IPoint): number;
|
|
54
|
-
/**
|
|
55
|
-
* Updates this {@link Point} with the given angle and distance.
|
|
56
|
-
* @param distance
|
|
57
|
-
* @param degrees
|
|
58
|
-
*/
|
|
59
|
-
translateTo(distance: number, degrees: number): this;
|
|
60
|
-
/**
|
|
61
|
-
* Updates this {@link Point} with the given offset.
|
|
62
|
-
* @param dot
|
|
63
|
-
*/
|
|
64
|
-
offsetTo(dot: IPoint): this;
|
|
65
|
-
/**
|
|
66
|
-
* Creates a new {@link Point} at the given angle and distance.
|
|
67
|
-
* @param distance
|
|
68
|
-
* @param degrees
|
|
69
|
-
*/
|
|
70
|
-
toTranslated(distance: number, degrees: number): Point;
|
|
71
|
-
/**
|
|
72
|
-
* Creates a new {@link Point} based on the given offset.
|
|
73
|
-
* @param offset
|
|
74
|
-
*/
|
|
75
|
-
toOffset(offset: IPoint): Point;
|
|
76
|
-
/**
|
|
77
|
-
* Creates a new {@link Radial} based on the given radius.
|
|
78
|
-
* @param radius
|
|
79
|
-
*/
|
|
80
|
-
toRadial(radius: number): Radial;
|
|
81
|
-
}
|
package/API/Geometry/Radial.d.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from '../Interfaces/ISerializable';
|
|
2
|
-
import { JsonObject } from '../Types';
|
|
3
|
-
import { IPoint, IRadial, RadialExpansion } from './Interfaces';
|
|
4
|
-
import { Point } from './Point';
|
|
5
|
-
import { Rectangle } from './Rectangle';
|
|
6
|
-
import { Size } from './Size';
|
|
7
|
-
/**
|
|
8
|
-
* A boundary on a flat surface based on a centre point and a radius.
|
|
9
|
-
*/
|
|
10
|
-
export declare class Radial implements IRadial, IPoint, ISerializable {
|
|
11
|
-
/**
|
|
12
|
-
* Returns a new {@link Radial} from the given object.
|
|
13
|
-
* @param object
|
|
14
|
-
*/
|
|
15
|
-
static fromJSON(json: IRadial | JsonObject): Radial;
|
|
16
|
-
/**
|
|
17
|
-
* Left coordinate.
|
|
18
|
-
*/
|
|
19
|
-
x: number;
|
|
20
|
-
/**
|
|
21
|
-
* Top coordinate.
|
|
22
|
-
*/
|
|
23
|
-
y: number;
|
|
24
|
-
/**
|
|
25
|
-
* Radial distance.
|
|
26
|
-
*/
|
|
27
|
-
r: number;
|
|
28
|
-
constructor(x?: number, y?: number, r?: number);
|
|
29
|
-
/**
|
|
30
|
-
* Returns a string representation of this {@link Radial}.
|
|
31
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value.
|
|
32
|
-
* @returns A string in the format of "x,y,r".
|
|
33
|
-
*/
|
|
34
|
-
toString(delimiter?: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a literal of this {@link Radial}.
|
|
37
|
-
* Used internally by {@link JSON.stringify}.
|
|
38
|
-
*/
|
|
39
|
-
toJSON(): IRadial;
|
|
40
|
-
/**
|
|
41
|
-
* Creates a duplicate of this {@link Radial}.
|
|
42
|
-
*/
|
|
43
|
-
copy(): Radial;
|
|
44
|
-
/**
|
|
45
|
-
* Compares this Point to another to see if they are equal.
|
|
46
|
-
* @param circle The other {@link IRadial} to compare
|
|
47
|
-
* @param precision The degree of precision to use; default is full precision.
|
|
48
|
-
*/
|
|
49
|
-
isEqual(circle: IRadial, precision?: number): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Determines if the given {@link IPoint} is contained by this Radial
|
|
52
|
-
* @param point
|
|
53
|
-
*/
|
|
54
|
-
contains(point: IPoint): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Determines if the given {@link IRadial} is overlaps this {@link Radial} in any way
|
|
57
|
-
* @param circle
|
|
58
|
-
*/
|
|
59
|
-
overlaps(circle: IRadial): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Returns the centre point representation.
|
|
62
|
-
*/
|
|
63
|
-
getCentre(): Point;
|
|
64
|
-
/**
|
|
65
|
-
* Returns the {@link Size} of the diameter.
|
|
66
|
-
*/
|
|
67
|
-
getSize(): Size;
|
|
68
|
-
/**
|
|
69
|
-
* Worker function that actually extends the boundary to envelop the given point(s)/boundary(s).
|
|
70
|
-
* @param object
|
|
71
|
-
*/
|
|
72
|
-
__expander(object: RadialExpansion): void;
|
|
73
|
-
/**
|
|
74
|
-
* Extends the boundary to envelop the given point(s).
|
|
75
|
-
* @param object The objects used to extend the radius.
|
|
76
|
-
*/
|
|
77
|
-
extend(object: RadialExpansion): this;
|
|
78
|
-
/**
|
|
79
|
-
* Increases the boundary radius.
|
|
80
|
-
* @param length
|
|
81
|
-
*/
|
|
82
|
-
grow(length: number): this;
|
|
83
|
-
/**
|
|
84
|
-
* Updates this {@link Radial} with the given angle and distance.
|
|
85
|
-
* @param distance
|
|
86
|
-
* @param degrees
|
|
87
|
-
*/
|
|
88
|
-
translateTo(distance: number, degrees: number): this;
|
|
89
|
-
/**
|
|
90
|
-
* Updates this {@link Radial} with the given offset.
|
|
91
|
-
* @param dot
|
|
92
|
-
*/
|
|
93
|
-
offsetTo(dot: IPoint): this;
|
|
94
|
-
/**
|
|
95
|
-
* Creates a new {@link Radial} at the given distance and direction.
|
|
96
|
-
* @param distance
|
|
97
|
-
* @param degrees
|
|
98
|
-
*/
|
|
99
|
-
toTranslated(distance: number, degrees: number): Radial;
|
|
100
|
-
/**
|
|
101
|
-
* Creates a new {@link Radial} offset by the given amounts.
|
|
102
|
-
* @param point
|
|
103
|
-
*/
|
|
104
|
-
toOffset(point: IPoint): Radial;
|
|
105
|
-
/**
|
|
106
|
-
* Converts this radial boundary into a {@link Rectangle}.
|
|
107
|
-
* @param clip If true, [()], if false ([]).
|
|
108
|
-
*/
|
|
109
|
-
toRectangle(clip?: boolean): Rectangle;
|
|
110
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { IPoint, IRectangle, RectangleExpansion } from './Interfaces';
|
|
2
|
-
import { Point } from './Point';
|
|
3
|
-
import { Radial } from './Radial';
|
|
4
|
-
import { Size } from './Size';
|
|
5
|
-
/**
|
|
6
|
-
* A four-sided box on a flat surface.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Rectangle implements IRectangle {
|
|
9
|
-
#private;
|
|
10
|
-
/**
|
|
11
|
-
* Returns a new {@link Radial} from the given object.
|
|
12
|
-
*/
|
|
13
|
-
static fromJSON(rectangle: any): Rectangle;
|
|
14
|
-
/**
|
|
15
|
-
* Left-most horizontal coordinate
|
|
16
|
-
*/
|
|
17
|
-
left: number;
|
|
18
|
-
/**
|
|
19
|
-
* Highest vertical coordinate.
|
|
20
|
-
*/
|
|
21
|
-
top: number;
|
|
22
|
-
/**
|
|
23
|
-
* Right-most horizontal coordinate
|
|
24
|
-
*/
|
|
25
|
-
right: number;
|
|
26
|
-
/**
|
|
27
|
-
* Lowest vertical coordinate
|
|
28
|
-
*/
|
|
29
|
-
bottom: number;
|
|
30
|
-
/**
|
|
31
|
-
* The absolute width of this Rectangle.
|
|
32
|
-
*/
|
|
33
|
-
get width(): number;
|
|
34
|
-
/**
|
|
35
|
-
* The absolute height of this Rectangle.
|
|
36
|
-
*/
|
|
37
|
-
get height(): number;
|
|
38
|
-
constructor(left?: number | RectangleExpansion, top?: number | RectangleExpansion, right?: number | RectangleExpansion, bottom?: number | RectangleExpansion);
|
|
39
|
-
/**
|
|
40
|
-
* Validates the boundary and returns a string representation
|
|
41
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value (optional)
|
|
42
|
-
* @returns A string in the format of "left,top,right,bottom".
|
|
43
|
-
*/
|
|
44
|
-
toString(delimiter?: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a literal of this {@link Rectangle}.
|
|
47
|
-
* Used internally by {@link JSON.stringify}.
|
|
48
|
-
*/
|
|
49
|
-
toJSON(): IRectangle;
|
|
50
|
-
/**
|
|
51
|
-
* Compares this Rectangle to another to see if they are equal.
|
|
52
|
-
* @param rect The other Rectangle to compare.
|
|
53
|
-
* @param precision The degree of precision to use; default is full precision.
|
|
54
|
-
*/
|
|
55
|
-
isEqual(rect: IRectangle, precision?: number): rect is IRectangle;
|
|
56
|
-
/**
|
|
57
|
-
* Checks to see if the bounds are valid (not inside-out).
|
|
58
|
-
*/
|
|
59
|
-
isValid(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Checks to see if the bounds are valid, and that the corners are different coordinates.
|
|
62
|
-
*/
|
|
63
|
-
isEmpty(): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Determines if the given {@link IPoint} is contained by this {@link Rectangle}.
|
|
66
|
-
* @param dot
|
|
67
|
-
*/
|
|
68
|
-
contains(dot: IPoint): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Determines if the given {@link IRectangle} is overlaps this {@link Rectangle} in any way
|
|
71
|
-
* @param rect
|
|
72
|
-
*/
|
|
73
|
-
overlaps(rect: IRectangle): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Validates the boundary and creates a duplicate of this {@link Rectangle}.
|
|
76
|
-
*/
|
|
77
|
-
copy(): Rectangle;
|
|
78
|
-
/**
|
|
79
|
-
* Returns the {@link Point} at the centre.
|
|
80
|
-
*/
|
|
81
|
-
getCentre(): Point;
|
|
82
|
-
/**
|
|
83
|
-
* Validates the boundary and creates a {@link Size} representation.
|
|
84
|
-
*/
|
|
85
|
-
getSize(): Size;
|
|
86
|
-
/**
|
|
87
|
-
* Returns the {@link Point} at the top-most/left-most corner.
|
|
88
|
-
*/
|
|
89
|
-
getTopLeft(): Point;
|
|
90
|
-
/**
|
|
91
|
-
* Returns the {@link Point} at the top-most/right-most corner.
|
|
92
|
-
*/
|
|
93
|
-
getTopRight(): Point;
|
|
94
|
-
/**
|
|
95
|
-
* Returns the {@link Point} at the bottom-most/left-most corner.
|
|
96
|
-
*/
|
|
97
|
-
getBottomLeft(): Point;
|
|
98
|
-
/**
|
|
99
|
-
* Returns the {@link Point} at the bottom-most/right-most corner.
|
|
100
|
-
*/
|
|
101
|
-
getBottomRight(): Point;
|
|
102
|
-
/**
|
|
103
|
-
* Validates the boundary by ensuring the top value is less than the bottom value,
|
|
104
|
-
* and the left value is less than the right value.
|
|
105
|
-
* Also adjusts the width and height values.
|
|
106
|
-
*/
|
|
107
|
-
validate(): this;
|
|
108
|
-
/**
|
|
109
|
-
* Extends the boundary to envelop the given point(s) but does not automatically validate.
|
|
110
|
-
* This comes in efficient when doing many operations on a single {@link Rectangle}.
|
|
111
|
-
* @param object The objects used to extend the boundary
|
|
112
|
-
*/
|
|
113
|
-
expand(object: RectangleExpansion): this;
|
|
114
|
-
/**
|
|
115
|
-
* Extends the boundary to envelop the given point(s) and automatically validates
|
|
116
|
-
* @param object The objects used to extend the boundary
|
|
117
|
-
*/
|
|
118
|
-
extend(object: RectangleExpansion): this;
|
|
119
|
-
/**
|
|
120
|
-
* Increases the size of the boundary by the given width and height.
|
|
121
|
-
* If the direction contains the word "top", the {@link Rectangle#top} decreases by the given height.
|
|
122
|
-
* If the direction contains the word "bottom", the {@link Rectangle#bottom} increases by the given height.
|
|
123
|
-
* If the direction does not contain either "top" or "bottom", the {@link Rectangle#top} decreases by half the given height, and the {@link Rectangle#bottom} increases by half the given height.
|
|
124
|
-
* If the direction contains the word "left", the {@link Rectangle#left} decreases by the given width.
|
|
125
|
-
* If the direction contains the word "right", the {@link Rectangle#right} increases by the given width.
|
|
126
|
-
* If the direction does not contain either "left" or "right", the {@link Rectangle#left} decreases by half the given width, and the {@link Rectangle#right} increases by half the given height.
|
|
127
|
-
* @param width
|
|
128
|
-
* @param height
|
|
129
|
-
* @param direction
|
|
130
|
-
*/
|
|
131
|
-
grow(width?: number, height?: number, direction?: string): this;
|
|
132
|
-
/**
|
|
133
|
-
* Updates this {@link Rectangle} with the given angle and distance.
|
|
134
|
-
* @param distance
|
|
135
|
-
* @param degrees
|
|
136
|
-
*/
|
|
137
|
-
translateTo(distance: number, degrees: number): this;
|
|
138
|
-
/**
|
|
139
|
-
* Updates this {@link Rectangle} with the given offset.
|
|
140
|
-
* @param dot
|
|
141
|
-
*/
|
|
142
|
-
offsetTo(dot: IPoint): this;
|
|
143
|
-
/**
|
|
144
|
-
* Creates a new {@link Rectangle} at the given angle and distance.
|
|
145
|
-
* @param distance
|
|
146
|
-
* @param degrees
|
|
147
|
-
*/
|
|
148
|
-
toTranslated(distance: number, degrees: number): Rectangle;
|
|
149
|
-
/**
|
|
150
|
-
* Creates a new {@link Rectangle} offset by the given amounts.
|
|
151
|
-
* @param dot
|
|
152
|
-
*/
|
|
153
|
-
toOffset(dot: IPoint): Rectangle;
|
|
154
|
-
/**
|
|
155
|
-
* Validates the boundary and returns a {@link Radial}.
|
|
156
|
-
* @param clip If true, [()], if false ([]).
|
|
157
|
-
*/
|
|
158
|
-
toRadial(clip?: boolean): Radial;
|
|
159
|
-
}
|
package/API/Geometry/Size.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { JsonObject } from '../Types';
|
|
2
|
-
import { ISize } from './Interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Dimensions on a flat surface.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Size implements ISize {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @param json
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
static fromJSON(json: ISize | JsonObject): Size;
|
|
13
|
-
/**
|
|
14
|
-
* Width.
|
|
15
|
-
*/
|
|
16
|
-
width: number;
|
|
17
|
-
/**
|
|
18
|
-
* Height.
|
|
19
|
-
*/
|
|
20
|
-
height: number;
|
|
21
|
-
constructor(width: number, height: number);
|
|
22
|
-
/**
|
|
23
|
-
* Returns a string representation.
|
|
24
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value.
|
|
25
|
-
* @returns A string in the format of "width,height".
|
|
26
|
-
*/
|
|
27
|
-
toString(delimiter?: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Creates a literal of this {@link Size}.
|
|
30
|
-
* Used internally by {@link JSON.stringify}.
|
|
31
|
-
*/
|
|
32
|
-
toJSON(): ISize;
|
|
33
|
-
/**
|
|
34
|
-
* Compares this Size to another to see if they are equal
|
|
35
|
-
* @param size The other Size to compare
|
|
36
|
-
* @param precision The degree of precision to use; default is full precision
|
|
37
|
-
*/
|
|
38
|
-
isEqual(size: ISize, precision?: number): size is ISize;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a new instance of a {@link Size} where the width and height are adjusted to the given ratios.
|
|
41
|
-
* If the second ratio is not given, then the first value is used for both.
|
|
42
|
-
* The ratios are given as a percentage between 0 and 1.
|
|
43
|
-
* To double the size of the Size, give a ratio of 2, and to shrink it to half size use 0.5.
|
|
44
|
-
* @param ratioX
|
|
45
|
-
* @param ratioY
|
|
46
|
-
*/
|
|
47
|
-
resize(ratioX?: number, ratioY?: number): Size;
|
|
48
|
-
/**
|
|
49
|
-
* Returns a new {@link Size} where the width is the same as the given value, and the height is resized to preserve aspect ratio.
|
|
50
|
-
* @param width
|
|
51
|
-
*/
|
|
52
|
-
resizeToWidth(width: number): Size;
|
|
53
|
-
/**
|
|
54
|
-
* Returns a new {@link Size} where the height is the same as the given value, and the width is resized to preserve aspect ratio.
|
|
55
|
-
* @param height
|
|
56
|
-
*/
|
|
57
|
-
resizeToHeight(height: number): Size;
|
|
58
|
-
}
|
|
@@ -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,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* For auditable objects, a record of who and what mad the changes.
|
|
3
|
-
*/
|
|
4
|
-
export interface IAuditable {
|
|
5
|
-
/**
|
|
6
|
-
* Details about the change to an object.
|
|
7
|
-
*/
|
|
8
|
-
updated: IAuditableUpdated;
|
|
9
|
-
/**
|
|
10
|
-
* When the was change procesed.
|
|
11
|
-
*/
|
|
12
|
-
processedUtc: Date;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This class used in conjunction with the {@link version} member help with synchronization.
|
|
16
|
-
*/
|
|
17
|
-
export declare class IAuditableUpdated {
|
|
18
|
-
/**
|
|
19
|
-
* The {@link User.login} or {@link Machine.key} when the object is updated,
|
|
20
|
-
* or {@link Service.UserAgent} if a service updates the object itself.
|
|
21
|
-
*/
|
|
22
|
-
by: string;
|
|
23
|
-
/**
|
|
24
|
-
* A {@link Service.UserAgent} that handled the update.
|
|
25
|
-
*/
|
|
26
|
-
from: string;
|
|
27
|
-
/**
|
|
28
|
-
* Timestamp from when the change was made.
|
|
29
|
-
*/
|
|
30
|
-
dts: Date;
|
|
31
|
-
}
|
|
@@ -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
|
-
}
|