@trakit/objects 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API/Arrays.d.ts +46 -0
- package/API/Base.d.ts +18 -0
- package/API/BaseComponent.d.ts +37 -0
- package/API/BaseCompound.d.ts +19 -0
- package/API/Codifier.d.ts +5 -0
- package/API/Component.d.ts +42 -0
- package/API/Compound.d.ts +19 -0
- package/API/Constants.d.ts +39 -0
- package/API/Conversion.d.ts +255 -0
- package/API/Files.d.ts +21 -0
- package/API/Functions.d.ts +191 -0
- package/API/Geography/Functions.d.ts +232 -0
- package/API/Geography/Interfaces.d.ts +145 -0
- package/API/Geography/LatLng.d.ts +78 -0
- package/API/Geography/LatLngBounds.d.ts +145 -0
- package/API/Geography/Position.d.ts +62 -0
- package/API/Geography/StreetAddress.d.ts +58 -0
- package/API/Geometry/Functions.d.ts +114 -0
- package/API/Geometry/Interfaces.d.ts +111 -0
- package/API/Geometry/Point.d.ts +80 -0
- package/API/Geometry/Radial.d.ts +109 -0
- package/API/Geometry/Rectangle.d.ts +163 -0
- package/API/Geometry/Size.d.ts +52 -0
- package/API/Guid.d.ts +4 -0
- package/API/Interfaces/IAmCompany.d.ts +11 -0
- package/API/Interfaces/IBelongAsset.d.ts +15 -0
- package/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
- package/API/Interfaces/IBelongCompany.d.ts +15 -0
- package/API/Interfaces/IDeserializable.d.ts +12 -0
- package/API/Interfaces/IEnabled.d.ts +10 -0
- package/API/Interfaces/IFileSize.d.ts +9 -0
- package/API/Interfaces/IGlobal.d.ts +11 -0
- package/API/Interfaces/IHavePermissions.d.ts +20 -0
- package/API/Interfaces/IHavePreferences.d.ts +29 -0
- package/API/Interfaces/IIconic.d.ts +15 -0
- package/API/Interfaces/IIdUlong.d.ts +10 -0
- package/API/Interfaces/ILabelled.d.ts +9 -0
- package/API/Interfaces/INamed.d.ts +13 -0
- package/API/Interfaces/IPictured.d.ts +15 -0
- package/API/Interfaces/IRequestable.d.ts +18 -0
- package/API/Interfaces/ISerializable.d.ts +10 -0
- package/API/Interfaces/ISuspendable.d.ts +16 -0
- package/API/Interfaces/IVisual.d.ts +18 -0
- package/API/Maps.d.ts +28 -0
- package/API/Objects.d.ts +33 -0
- package/API/SearchPattern.d.ts +45 -0
- package/API/TimeSpan.d.ts +140 -0
- package/API/Timezone.d.ts +44 -0
- package/API/Timezones.d.ts +7 -0
- package/API/Types.d.ts +114 -0
- package/Accounts/Contact.d.ts +140 -0
- package/Accounts/Machine.d.ts +131 -0
- package/Accounts/NotificationMethod.d.ts +17 -0
- package/Accounts/Permissions/Authorizer.d.ts +204 -0
- package/Accounts/Permissions/Permission.d.ts +57 -0
- package/Accounts/Permissions/PermissionEscalation.d.ts +33 -0
- package/Accounts/Permissions/PermissionEscalationState.d.ts +17 -0
- package/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
- package/Accounts/Permissions/PermissionLevel.d.ts +17 -0
- package/Accounts/Permissions/PermissionMethod.d.ts +13 -0
- package/Accounts/Permissions/PermissionType.d.ts +280 -0
- package/Accounts/Session.d.ts +92 -0
- package/Accounts/SessionStatus.d.ts +29 -0
- package/Accounts/SystemsOfUnits.d.ts +13 -0
- package/Accounts/User.d.ts +147 -0
- package/Accounts/UserAdvanced.d.ts +54 -0
- package/Accounts/UserGeneral.d.ts +100 -0
- package/Accounts/UserGroup.d.ts +52 -0
- package/Accounts/UserNotifications.d.ts +76 -0
- package/Assets/Asset.d.ts +192 -0
- package/Assets/AssetAdvanced.d.ts +90 -0
- package/Assets/AssetAttribute.d.ts +71 -0
- package/Assets/AssetDispatch.d.ts +63 -0
- package/Assets/AssetGeneral.d.ts +109 -0
- package/Assets/AssetPlaceStatus.d.ts +31 -0
- package/Assets/AssetPlaceStatusType.d.ts +17 -0
- package/Assets/AssetType.d.ts +21 -0
- package/Assets/Person.d.ts +25 -0
- package/Assets/PersonGeneral.d.ts +35 -0
- package/Assets/Trailer.d.ts +42 -0
- package/Assets/TrailerGeneral.d.ts +47 -0
- package/Assets/Vehicle.d.ts +73 -0
- package/Assets/VehicleAdvanced.d.ts +25 -0
- package/Assets/VehicleGeneral.d.ts +33 -0
- package/Behaviours/Behaviour.d.ts +79 -0
- package/Behaviours/BehaviourLog.d.ts +97 -0
- package/Behaviours/BehaviourLogType.d.ts +21 -0
- package/Behaviours/BehaviourParameter.d.ts +37 -0
- package/Behaviours/BehaviourParameterType.d.ts +21 -0
- package/Behaviours/BehaviourScript.d.ts +84 -0
- package/Billing/BillableBase.d.ts +85 -0
- package/Billing/BillableSmsProfile.d.ts +26 -0
- package/Billing/BillingCurrency.d.ts +17 -0
- package/Billing/BillingCycle.d.ts +17 -0
- package/Billing/BillingProfile.d.ts +107 -0
- package/Billing/Hosting/BillableHostingBase.d.ts +41 -0
- package/Billing/Hosting/BillableHostingDiscount.d.ts +35 -0
- package/Billing/Hosting/BillableHostingLicense.d.ts +29 -0
- package/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
- package/Billing/Hosting/BillableHostingRule.d.ts +29 -0
- package/Billing/Hosting/BillableHostingType.d.ts +41 -0
- package/Billing/Report/BillingReport.d.ts +114 -0
- package/Billing/Report/BillingReportBreakdown.d.ts +35 -0
- package/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
- package/Billing/Report/BillingReportLicenseBreakdown.d.ts +80 -0
- package/Billing/Report/BillingReportServiceBreakdown.d.ts +126 -0
- package/Billing/Report/BillingReportStatus.d.ts +25 -0
- package/Billing/Report/BillingReportSummary.d.ts +51 -0
- package/Companies/ColourStyle.d.ts +25 -0
- package/Companies/Company.d.ts +150 -0
- package/Companies/CompanyDirectory.d.ts +49 -0
- package/Companies/CompanyGeneral.d.ts +51 -0
- package/Companies/CompanyPolicies.d.ts +62 -0
- package/Companies/CompanyReseller.d.ts +163 -0
- package/Companies/CompanyStyles.d.ts +46 -0
- package/Companies/LabelStyle.d.ts +46 -0
- package/Companies/NotificationServerEmail.d.ts +99 -0
- package/Companies/NotificationServerSms.d.ts +25 -0
- package/Companies/PasswordExpiryMode.d.ts +17 -0
- package/Companies/PasswordPolicy.d.ts +51 -0
- package/Companies/SessionMultiUser.d.ts +17 -0
- package/Companies/SessionPolicy.d.ts +47 -0
- package/Dispatch/DispatchDirection.d.ts +53 -0
- package/Dispatch/DispatchJob.d.ts +109 -0
- package/Dispatch/DispatchJobPriority.d.ts +25 -0
- package/Dispatch/DispatchStep.d.ts +99 -0
- package/Dispatch/DispatchStepState.d.ts +27 -0
- package/Dispatch/DispatchStepStatus.d.ts +21 -0
- package/Dispatch/DispatchTask.d.ts +156 -0
- package/Dispatch/DispatchTaskStatus.d.ts +50 -0
- package/Hosting/Document.d.ts +71 -0
- package/Hosting/Fields/FormFieldAttachments.d.ts +38 -0
- package/Hosting/Fields/FormFieldBase.d.ts +71 -0
- package/Hosting/Fields/FormFieldBoolean.d.ts +46 -0
- package/Hosting/Fields/FormFieldChoice.d.ts +48 -0
- package/Hosting/Fields/FormFieldDate.d.ts +33 -0
- package/Hosting/Fields/FormFieldNumeric.d.ts +61 -0
- package/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
- package/Hosting/Fields/FormFieldSignature.d.ts +17 -0
- package/Hosting/Fields/FormFieldText.d.ts +39 -0
- package/Hosting/Fields/FormFieldTime.d.ts +34 -0
- package/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
- package/Hosting/FormFieldType.d.ts +127 -0
- package/Hosting/FormResult.d.ts +97 -0
- package/Hosting/FormTemplate.d.ts +81 -0
- package/Images/Dashcam.d.ts +70 -0
- package/Images/DashcamBase.d.ts +98 -0
- package/Images/DashcamLive.d.ts +43 -0
- package/Images/DashcamMediaType.d.ts +17 -0
- package/Images/Icon.d.ts +87 -0
- package/Images/IconGlyph.d.ts +54 -0
- package/Images/IconLabel.d.ts +32 -0
- package/Images/IconLayer.d.ts +33 -0
- package/Images/Picture.d.ts +73 -0
- package/Maintenance/MaintenanceInterval.d.ts +49 -0
- package/Maintenance/MaintenanceJob.d.ts +137 -0
- package/Maintenance/MaintenanceJobStatus.d.ts +21 -0
- package/Maintenance/MaintenanceSchedule.d.ts +119 -0
- package/Messaging/AlertPriority.d.ts +17 -0
- package/Messaging/AssetAlert.d.ts +28 -0
- package/Messaging/AssetMessage.d.ts +40 -0
- package/Messaging/MessageBase.d.ts +101 -0
- package/Messaging/MessageFolder.d.ts +13 -0
- package/Messaging/MessageStatus.d.ts +29 -0
- package/Messaging/MessageType.d.ts +33 -0
- package/Places/Place.d.ts +116 -0
- package/Places/PlaceType.d.ts +25 -0
- package/Providers/Config/ProviderConfig.d.ts +72 -0
- package/Providers/Config/ProviderRegistration.d.ts +123 -0
- package/Providers/Config/ProviderScript.d.ts +87 -0
- package/Providers/Config/ProviderScriptBlock.d.ts +40 -0
- package/Providers/Config/ProviderScriptParameter.d.ts +49 -0
- package/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
- package/Providers/Configuration/ProviderConfiguration.d.ts +68 -0
- package/Providers/Configuration/ProviderConfigurationNode.d.ts +65 -0
- package/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
- package/Providers/Configuration/ProviderGeofenceBase.d.ts +31 -0
- package/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
- package/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
- package/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
- package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
- package/Providers/Provider.d.ts +145 -0
- package/Providers/ProviderAdvanced.d.ts +51 -0
- package/Providers/ProviderCommand.d.ts +36 -0
- package/Providers/ProviderCommandStatus.d.ts +29 -0
- package/Providers/ProviderCommandType.d.ts +37 -0
- package/Providers/ProviderControl.d.ts +42 -0
- package/Providers/ProviderData.d.ts +30 -0
- package/Providers/ProviderGeneral.d.ts +117 -0
- package/Providers/ProviderType.d.ts +106 -0
- package/README.md +13 -0
- package/Reports/ReportBreakdown.d.ts +72 -0
- package/Reports/ReportBreakdownJob.d.ts +62 -0
- package/Reports/ReportBreakdownMessage.d.ts +65 -0
- package/Reports/ReportBreakdownTask.d.ts +71 -0
- package/Reports/ReportDataTotal.d.ts +50 -0
- package/Reports/ReportFilterMode.d.ts +17 -0
- package/Reports/ReportNotifications.d.ts +31 -0
- package/Reports/ReportOptions.d.ts +51 -0
- package/Reports/ReportParameter.d.ts +25 -0
- package/Reports/ReportParameterType.d.ts +59 -0
- package/Reports/ReportRecurrence.d.ts +54 -0
- package/Reports/ReportRecurrenceType.d.ts +34 -0
- package/Reports/ReportResult.d.ts +170 -0
- package/Reports/ReportResultData.d.ts +17 -0
- package/Reports/ReportSchedule.d.ts +112 -0
- package/Reports/ReportScorecard.d.ts +39 -0
- package/Reports/ReportScorecardParameter.d.ts +31 -0
- package/Reports/ReportScorecardRules.d.ts +26 -0
- package/Reports/ReportStatus.d.ts +29 -0
- package/Reports/ReportSummary.d.ts +119 -0
- package/Reports/ReportSummaryReason.d.ts +27 -0
- package/Reports/ReportTemplate.d.ts +82 -0
- package/Reports/ReportTotal.d.ts +48 -0
- package/Reports/ReportType.d.ts +42 -0
- package/Storage.d.ts +166 -0
- package/objects.d.ts +534 -0
- package/objects.min.js +7 -0
- package/package.json +22 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { IBelongAsset } from "../../API/Interfaces/IBelongAsset";
|
|
2
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
3
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
4
|
+
import { codified, datetime, double, phone, ulong } from "../../API/Types";
|
|
5
|
+
import { Asset } from "../../Assets/Asset";
|
|
6
|
+
import { AssetType } from "../../Assets/AssetType";
|
|
7
|
+
import { Provider } from "../../Providers/Provider";
|
|
8
|
+
/**
|
|
9
|
+
* Full breakdown of billable details per targeted asset.
|
|
10
|
+
*/
|
|
11
|
+
export declare class BillingReportServiceBreakdown implements INamed, IBelongAsset, ISerializable {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param json
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
static fromJSON(json: any): BillingReportServiceBreakdown;
|
|
18
|
+
/**
|
|
19
|
+
* The asset to which this breakdown instance belongs.
|
|
20
|
+
* {@link Asset.id}
|
|
21
|
+
*/
|
|
22
|
+
assetId: ulong;
|
|
23
|
+
/**
|
|
24
|
+
* The asset to which this breakdown instance belongs.
|
|
25
|
+
* {@link Asset.id}
|
|
26
|
+
*/
|
|
27
|
+
get asset(): Asset;
|
|
28
|
+
set asset(value: Asset);
|
|
29
|
+
/**
|
|
30
|
+
* Type of asset.
|
|
31
|
+
*/
|
|
32
|
+
kind: AssetType;
|
|
33
|
+
/**
|
|
34
|
+
* Asset's name.
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Notes about the asset.
|
|
39
|
+
*/
|
|
40
|
+
notes: string;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates when this Asset was created.
|
|
43
|
+
*/
|
|
44
|
+
created: Date;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates when this Asset was deleted.
|
|
47
|
+
*/
|
|
48
|
+
deleted: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates when this Asset wass suspended from event processing.
|
|
51
|
+
*/
|
|
52
|
+
suspended: Date;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates when this Asset was restored after being deleted.
|
|
55
|
+
*/
|
|
56
|
+
restored: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates when this Asset was revived after being suspended.
|
|
59
|
+
*/
|
|
60
|
+
revived: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Codified label names.
|
|
63
|
+
* {@link LabelStyle.code}
|
|
64
|
+
*/
|
|
65
|
+
labels: codified[];
|
|
66
|
+
/**
|
|
67
|
+
* The list of devices providing events for this asset.
|
|
68
|
+
* {@link Provider.id}
|
|
69
|
+
*/
|
|
70
|
+
providerIds: string[];
|
|
71
|
+
/**
|
|
72
|
+
* The list of devices providing events for this asset.
|
|
73
|
+
* {@link Provider.id}
|
|
74
|
+
*/
|
|
75
|
+
get providers(): Provider[];
|
|
76
|
+
set providers(value: Provider[]);
|
|
77
|
+
/**
|
|
78
|
+
* The list of phone numbers for this asset.
|
|
79
|
+
*/
|
|
80
|
+
phoneNumbers: phone[];
|
|
81
|
+
/**
|
|
82
|
+
* Indicates when this Asset was last updated.
|
|
83
|
+
*/
|
|
84
|
+
updatedDts: Date;
|
|
85
|
+
/**
|
|
86
|
+
* Number of days this Asset is being billed for.
|
|
87
|
+
*/
|
|
88
|
+
billableDays: double;
|
|
89
|
+
/**
|
|
90
|
+
* Cost per billing cycle for this asset.
|
|
91
|
+
*/
|
|
92
|
+
cost: double;
|
|
93
|
+
/**
|
|
94
|
+
* Number of days this Asset was suspended.
|
|
95
|
+
*/
|
|
96
|
+
suspendedDays: double;
|
|
97
|
+
/**
|
|
98
|
+
* Cost per billing cycle for suspended asset.
|
|
99
|
+
*/
|
|
100
|
+
suspendedCost: double;
|
|
101
|
+
/**
|
|
102
|
+
* Total amount being billed for this asset.
|
|
103
|
+
*/
|
|
104
|
+
total: double;
|
|
105
|
+
constructor(asset?: ulong, kind?: AssetType, name?: string, notes?: string, created?: Date | number | datetime, deleted?: Date | number | datetime, suspended?: Date | number | datetime, restored?: Date | number | datetime, revived?: Date | number | datetime, labels?: codified[], providers?: string[], phoneNumbers?: phone[], updatedDts?: Date | number | datetime, billableDays?: double, cost?: double, suspendedDays?: double, suspendedCost?: double, total?: double);
|
|
106
|
+
toJSON(): {
|
|
107
|
+
asset: number | null;
|
|
108
|
+
kind: AssetType;
|
|
109
|
+
name: string;
|
|
110
|
+
notes: string;
|
|
111
|
+
created: string | null;
|
|
112
|
+
deleted: string | null;
|
|
113
|
+
suspended: string | null;
|
|
114
|
+
restored: string | null;
|
|
115
|
+
revived: string | null;
|
|
116
|
+
labels: string[];
|
|
117
|
+
providers: string[];
|
|
118
|
+
phoneNumbers: number[];
|
|
119
|
+
revupdatedDtsived: string | null;
|
|
120
|
+
billableDays: number;
|
|
121
|
+
cost: number;
|
|
122
|
+
suspendedDays: number;
|
|
123
|
+
suspendedCost: number;
|
|
124
|
+
total: number;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The lifetime of building a {@link BillingReport}.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum BillingReportStatus {
|
|
5
|
+
/**
|
|
6
|
+
* The {@link BillingReport} has been requested, but not yet begun processing.
|
|
7
|
+
*/
|
|
8
|
+
created = "created",
|
|
9
|
+
/**
|
|
10
|
+
* The {@link BillingReport} is waiting for required resources to begin processing.
|
|
11
|
+
*/
|
|
12
|
+
queued = "queued",
|
|
13
|
+
/**
|
|
14
|
+
* The {@link BillingReport} is currently being processed.
|
|
15
|
+
*/
|
|
16
|
+
running = "running",
|
|
17
|
+
/**
|
|
18
|
+
* The {@link BillingReport} is available for retrieval.
|
|
19
|
+
*/
|
|
20
|
+
completed = "completed",
|
|
21
|
+
/**
|
|
22
|
+
* There was an error processing the {@link BillingReport}; see the {@link BillingReport.error} for a description.
|
|
23
|
+
*/
|
|
24
|
+
failed = "failed"
|
|
25
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
2
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
3
|
+
import { ulong } from "../../API/Types";
|
|
4
|
+
import { Company } from "../../Companies/Company";
|
|
5
|
+
import { BillingReportHostingSummary } from "./BillingReportHostingSummary";
|
|
6
|
+
/**
|
|
7
|
+
* Summarized bill per target.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BillingReportSummary implements INamed, ISerializable {
|
|
10
|
+
static fromJSON(json: any): BillingReportSummary;
|
|
11
|
+
/**
|
|
12
|
+
* The target company to which this summary instance belongs.
|
|
13
|
+
* {@link Company.id}
|
|
14
|
+
*/
|
|
15
|
+
targetId: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The target company to which this summary instance belongs.
|
|
18
|
+
* {@link Company.id}
|
|
19
|
+
*/
|
|
20
|
+
get target(): Company;
|
|
21
|
+
/**
|
|
22
|
+
* The target company's parent.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
parentId: ulong;
|
|
26
|
+
/**
|
|
27
|
+
* The target company's parent.
|
|
28
|
+
* {@link Company.id}
|
|
29
|
+
*/
|
|
30
|
+
get parent(): Company;
|
|
31
|
+
/**
|
|
32
|
+
* Target's name.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Notes about the target.
|
|
37
|
+
*/
|
|
38
|
+
notes: string;
|
|
39
|
+
/**
|
|
40
|
+
* Summary contains totals per type of hosting (services and licenses) for this target
|
|
41
|
+
*/
|
|
42
|
+
hosting: BillingReportHostingSummary[];
|
|
43
|
+
constructor(target?: ulong, parent?: ulong, name?: string, notes?: string, hosting?: BillingReportHostingSummary[]);
|
|
44
|
+
toJSON(): {
|
|
45
|
+
target: number | null;
|
|
46
|
+
parent: number | null;
|
|
47
|
+
name: string;
|
|
48
|
+
notes: string;
|
|
49
|
+
hosting: any[];
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
+
import { colour } from "../API/Types";
|
|
3
|
+
/**
|
|
4
|
+
* Part of the White-labelling profile definitions.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ColourStyle implements ISerializable {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param json
|
|
10
|
+
*/
|
|
11
|
+
static fromJSON(json: any): ColourStyle;
|
|
12
|
+
/**
|
|
13
|
+
* The colour of the background.
|
|
14
|
+
*/
|
|
15
|
+
fill: colour;
|
|
16
|
+
/**
|
|
17
|
+
* The colour of the text or outline.
|
|
18
|
+
*/
|
|
19
|
+
stroke: colour;
|
|
20
|
+
constructor(fill?: colour, stroke?: colour);
|
|
21
|
+
toJSON(): {
|
|
22
|
+
fill: string;
|
|
23
|
+
stroke: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Contact } from '../Accounts/Contact';
|
|
2
|
+
import { BaseComponent } from '../API/BaseComponent';
|
|
3
|
+
import { BaseCompound } from '../API/BaseCompound';
|
|
4
|
+
import { IAmCompany } from '../API/Interfaces/IAmCompany';
|
|
5
|
+
import { IBelongCompany } from '../API/Interfaces/IBelongCompany';
|
|
6
|
+
import { IIdUlong } from '../API/Interfaces/IIdUlong';
|
|
7
|
+
import { INamed } from '../API/Interfaces/INamed';
|
|
8
|
+
import { codified, ulong } from '../API/Types';
|
|
9
|
+
import { Picture } from '../Images/Picture';
|
|
10
|
+
import { CompanyDirectory } from './CompanyDirectory';
|
|
11
|
+
import { CompanyGeneral } from './CompanyGeneral';
|
|
12
|
+
import { CompanyPolicies } from './CompanyPolicies';
|
|
13
|
+
import { CompanyReseller } from './CompanyReseller';
|
|
14
|
+
import { CompanyStyles } from './CompanyStyles';
|
|
15
|
+
import { LabelStyle } from './LabelStyle';
|
|
16
|
+
import { PasswordPolicy } from './PasswordPolicy';
|
|
17
|
+
import { SessionPolicy } from './SessionPolicy';
|
|
18
|
+
/**
|
|
19
|
+
* The full company object which contains all fields.
|
|
20
|
+
*/
|
|
21
|
+
export declare class Company extends BaseCompound implements IIdUlong, INamed, IAmCompany, IBelongCompany {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
get pieces(): BaseComponent[];
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier of this Company.
|
|
28
|
+
* {@link Asset.id}
|
|
29
|
+
*/
|
|
30
|
+
get id(): ulong;
|
|
31
|
+
/**
|
|
32
|
+
* The parent organization for this Company.
|
|
33
|
+
* {@link Company.id}
|
|
34
|
+
*/
|
|
35
|
+
get parent(): Company;
|
|
36
|
+
set parent(value: Company);
|
|
37
|
+
get parentId(): number;
|
|
38
|
+
set parentId(value: number);
|
|
39
|
+
get company(): Company;
|
|
40
|
+
get companyId(): number;
|
|
41
|
+
set companyId(value: number);
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
general: CompanyGeneral;
|
|
46
|
+
/**
|
|
47
|
+
* The organizational name.
|
|
48
|
+
*/
|
|
49
|
+
get name(): string;
|
|
50
|
+
set name(value: string);
|
|
51
|
+
/**
|
|
52
|
+
* Notes.
|
|
53
|
+
*/
|
|
54
|
+
get notes(): string;
|
|
55
|
+
set notes(value: string);
|
|
56
|
+
/**
|
|
57
|
+
* Name/value collections of custom fields used to refer to external systems.
|
|
58
|
+
*/
|
|
59
|
+
get references(): Map<string, string>;
|
|
60
|
+
set references(value: Map<string, string>);
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
directory: CompanyDirectory;
|
|
65
|
+
/**
|
|
66
|
+
* The list of Contacts from this and other companies broken down by contact role.
|
|
67
|
+
*/
|
|
68
|
+
get employees(): Map<string, ulong[]>;
|
|
69
|
+
set employees(value: Map<string, ulong[]>);
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
policies: CompanyPolicies;
|
|
74
|
+
/**
|
|
75
|
+
* The session lifetime policy.
|
|
76
|
+
*/
|
|
77
|
+
get sessionPolicy(): SessionPolicy;
|
|
78
|
+
set sessionPolicy(value: SessionPolicy);
|
|
79
|
+
/**
|
|
80
|
+
* The password complexity and expiry policy.
|
|
81
|
+
*/
|
|
82
|
+
get passwordPolicy(): PasswordPolicy;
|
|
83
|
+
set passwordPolicy(value: PasswordPolicy);
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
styles: CompanyStyles;
|
|
88
|
+
/**
|
|
89
|
+
* The styles for labels added to Assets, Places, and other things.
|
|
90
|
+
*/
|
|
91
|
+
get labels(): Map<codified, LabelStyle>;
|
|
92
|
+
set labels(value: Map<codified, LabelStyle>);
|
|
93
|
+
/**
|
|
94
|
+
* The styles for status tags added to Assets.
|
|
95
|
+
*/
|
|
96
|
+
get tags(): Map<codified, LabelStyle>;
|
|
97
|
+
set tags(value: Map<codified, LabelStyle>);
|
|
98
|
+
/**
|
|
99
|
+
* If this company is a reseller, then they have their own theme, support and billing information.
|
|
100
|
+
*/
|
|
101
|
+
reseller: CompanyReseller | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
toJSON(): {
|
|
106
|
+
sessionPolicy: {
|
|
107
|
+
applications: string[];
|
|
108
|
+
ipv4Ranges: string[];
|
|
109
|
+
multiUser: import("./SessionMultiUser").SessionMultiUser;
|
|
110
|
+
idleAllowed: boolean;
|
|
111
|
+
expireTimeout: number | null;
|
|
112
|
+
maxSessions: number | null;
|
|
113
|
+
};
|
|
114
|
+
passwordPolicy: {
|
|
115
|
+
minimumLength: number | null;
|
|
116
|
+
includeLetters: boolean;
|
|
117
|
+
includeNumbers: boolean;
|
|
118
|
+
includeUpperLower: boolean;
|
|
119
|
+
includeSpecial: boolean;
|
|
120
|
+
expireMode: import("./PasswordExpiryMode").PasswordExpiryMode;
|
|
121
|
+
expireThreshold: number | null;
|
|
122
|
+
};
|
|
123
|
+
labels: object;
|
|
124
|
+
tags: object;
|
|
125
|
+
directory: object;
|
|
126
|
+
name: string;
|
|
127
|
+
notes: string;
|
|
128
|
+
references: object;
|
|
129
|
+
id: number | null;
|
|
130
|
+
v: number[];
|
|
131
|
+
parent: number;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @param json
|
|
136
|
+
*/
|
|
137
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The {@link id} is the key.
|
|
140
|
+
*/
|
|
141
|
+
getKey(): string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
get contacts(): Contact[];
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
get pictures(): Picture[];
|
|
150
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IAmCompany } from "../API/Interfaces/IAmCompany";
|
|
3
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
4
|
+
import { codified, ulong } from "../API/Types";
|
|
5
|
+
import { Company } from "./Company";
|
|
6
|
+
/**
|
|
7
|
+
* The list of Contacts from this and other companies broken down by contact role.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CompanyDirectory extends BaseComponent implements IIdUlong, IAmCompany {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier of the Company.
|
|
12
|
+
* {@link Company.id}
|
|
13
|
+
*/
|
|
14
|
+
id: ulong;
|
|
15
|
+
/**
|
|
16
|
+
* The unique identifier of this company's parent organization.
|
|
17
|
+
* {@link Company.id}
|
|
18
|
+
*/
|
|
19
|
+
parentId: ulong;
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier of this company's parent organization.
|
|
22
|
+
* {@link Company.id}
|
|
23
|
+
*/
|
|
24
|
+
get parent(): Company;
|
|
25
|
+
/**
|
|
26
|
+
* The list of Contacts from this and other companies broken down by contact role.
|
|
27
|
+
* {@link Contact.id}
|
|
28
|
+
*/
|
|
29
|
+
employees: Map<codified, ulong[]>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
toJSON(): {
|
|
35
|
+
id: number | null;
|
|
36
|
+
v: number[];
|
|
37
|
+
parent: number;
|
|
38
|
+
directory: object;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param json
|
|
43
|
+
*/
|
|
44
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The {@link id} is the key.
|
|
47
|
+
*/
|
|
48
|
+
getKey(): string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IAmCompany } from "../API/Interfaces/IAmCompany";
|
|
3
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
4
|
+
import { INamed } from "../API/Interfaces/INamed";
|
|
5
|
+
import { ulong } from "../API/Types";
|
|
6
|
+
import { Company } from "./Company";
|
|
7
|
+
/**
|
|
8
|
+
* General details about a company.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CompanyGeneral extends BaseComponent implements IIdUlong, INamed, IAmCompany {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of the Company.
|
|
13
|
+
* {@link Company.id}
|
|
14
|
+
*/
|
|
15
|
+
id: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of this company's parent organization.
|
|
18
|
+
* {@link Company.id}
|
|
19
|
+
*/
|
|
20
|
+
parentId: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of this company's parent organization.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
get parent(): Company;
|
|
26
|
+
/**
|
|
27
|
+
* The organizational name.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Notes.
|
|
32
|
+
*/
|
|
33
|
+
notes: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name/value collections of custom fields used to refer to external systems.
|
|
36
|
+
*/
|
|
37
|
+
references: Map<string, string>;
|
|
38
|
+
toJSON(): {
|
|
39
|
+
id: number | null;
|
|
40
|
+
v: number[];
|
|
41
|
+
parent: number;
|
|
42
|
+
name: string;
|
|
43
|
+
notes: string;
|
|
44
|
+
references: object;
|
|
45
|
+
};
|
|
46
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The {@link id} is the key.
|
|
49
|
+
*/
|
|
50
|
+
getKey(): string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
+
import { IAmCompany } from "../API/Interfaces/IAmCompany";
|
|
3
|
+
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
4
|
+
import { ulong } from "../API/Types";
|
|
5
|
+
import { Company } from "./Company";
|
|
6
|
+
import { PasswordPolicy } from "./PasswordPolicy";
|
|
7
|
+
import { SessionPolicy } from "./SessionPolicy";
|
|
8
|
+
/**
|
|
9
|
+
* The password and session lifetime policies for this Company.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CompanyPolicies extends BaseComponent implements IIdUlong, IAmCompany {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier of the Company.
|
|
14
|
+
* {@link Company.id}
|
|
15
|
+
*/
|
|
16
|
+
id: ulong;
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier of this company's parent organization.
|
|
19
|
+
* {@link Company.id}
|
|
20
|
+
*/
|
|
21
|
+
parentId: ulong;
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of this company's parent organization.
|
|
24
|
+
* {@link Company.id}
|
|
25
|
+
*/
|
|
26
|
+
get parent(): Company;
|
|
27
|
+
/**
|
|
28
|
+
* The session lifetime policy.
|
|
29
|
+
*/
|
|
30
|
+
sessionPolicy: SessionPolicy;
|
|
31
|
+
/**
|
|
32
|
+
* The password complexity and expiry policy.
|
|
33
|
+
*/
|
|
34
|
+
passwordPolicy: PasswordPolicy;
|
|
35
|
+
toJSON(): {
|
|
36
|
+
id: number | null;
|
|
37
|
+
v: number[];
|
|
38
|
+
parent: number;
|
|
39
|
+
sessionPolicy: {
|
|
40
|
+
applications: string[];
|
|
41
|
+
ipv4Ranges: string[];
|
|
42
|
+
multiUser: import("./SessionMultiUser").SessionMultiUser;
|
|
43
|
+
idleAllowed: boolean;
|
|
44
|
+
expireTimeout: number | null;
|
|
45
|
+
maxSessions: number | null;
|
|
46
|
+
};
|
|
47
|
+
passwordPolicy: {
|
|
48
|
+
minimumLength: number | null;
|
|
49
|
+
includeLetters: boolean;
|
|
50
|
+
includeNumbers: boolean;
|
|
51
|
+
includeUpperLower: boolean;
|
|
52
|
+
includeSpecial: boolean;
|
|
53
|
+
expireMode: import("./PasswordExpiryMode").PasswordExpiryMode;
|
|
54
|
+
expireThreshold: number | null;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
fromJSON(json: any, force?: boolean): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The {@link id} is the key.
|
|
60
|
+
*/
|
|
61
|
+
getKey(): string;
|
|
62
|
+
}
|