@trakit/objects 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accounts/User.d.ts +25 -4
- package/Assets/Asset.d.ts +1 -3
- package/Companies/Company.d.ts +1 -20
- package/Providers/Provider.d.ts +1 -12
- package/README.md +24 -24
- package/index.d.ts +1 -1
- package/objects/API/Arrays.d.ts +46 -0
- package/objects/API/Base.d.ts +19 -0
- package/objects/API/BaseComponent.d.ts +40 -0
- package/objects/API/BaseCompound.d.ts +19 -0
- package/objects/API/Codifier.d.ts +15 -0
- package/objects/API/Constants.d.ts +39 -0
- package/objects/API/Conversion.d.ts +255 -0
- package/objects/API/Encoding.d.ts +9 -0
- package/objects/API/Files.d.ts +21 -0
- package/objects/API/Functions.d.ts +196 -0
- package/objects/API/Geography/Functions.d.ts +236 -0
- package/objects/API/Geography/Interfaces.d.ts +150 -0
- package/objects/API/Geography/LatLng.d.ts +86 -0
- package/objects/API/Geography/LatLngBounds.d.ts +146 -0
- package/objects/API/Geography/Position.d.ts +74 -0
- package/objects/API/Geography/StreetAddress.d.ts +59 -0
- package/objects/API/Geometry/Functions.d.ts +114 -0
- package/objects/API/Geometry/Interfaces.d.ts +111 -0
- package/objects/API/Geometry/Point.d.ts +81 -0
- package/objects/API/Geometry/Radial.d.ts +110 -0
- package/objects/API/Geometry/Rectangle.d.ts +159 -0
- package/objects/API/Geometry/Size.d.ts +58 -0
- package/objects/API/Guid.d.ts +4 -0
- package/objects/API/Interfaces/IAmCompany.d.ts +11 -0
- package/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
- package/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
- package/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
- package/objects/API/Interfaces/IDeserializable.d.ts +13 -0
- package/objects/API/Interfaces/IEnabled.d.ts +10 -0
- package/objects/API/Interfaces/IFileSize.d.ts +9 -0
- package/objects/API/Interfaces/IGlobal.d.ts +11 -0
- package/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
- package/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
- package/objects/API/Interfaces/IIconic.d.ts +15 -0
- package/objects/API/Interfaces/IIdUlong.d.ts +10 -0
- package/objects/API/Interfaces/ILabelled.d.ts +10 -0
- package/objects/API/Interfaces/INamed.d.ts +13 -0
- package/objects/API/Interfaces/IPictured.d.ts +15 -0
- package/objects/API/Interfaces/IRequestable.d.ts +22 -0
- package/objects/API/Interfaces/ISerializable.d.ts +10 -0
- package/objects/API/Interfaces/ISuspendable.d.ts +16 -0
- package/objects/API/Interfaces/IVisual.d.ts +18 -0
- package/objects/API/Maps.d.ts +28 -0
- package/objects/API/Objects.d.ts +5 -0
- package/objects/API/SearchPattern.d.ts +46 -0
- package/objects/API/TimeSpan.d.ts +109 -0
- package/objects/API/Timezone.d.ts +44 -0
- package/objects/API/Timezones.d.ts +7 -0
- package/objects/API/Types.d.ts +132 -0
- package/objects/Accounts/Contact.d.ts +139 -0
- package/objects/Accounts/Machine.d.ts +139 -0
- package/objects/Accounts/MultiFactorType.d.ts +17 -0
- package/objects/Accounts/NotificationMethod.d.ts +17 -0
- package/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
- package/objects/Accounts/Permissions/Permission.d.ts +56 -0
- package/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
- package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
- package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
- package/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
- package/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
- package/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
- package/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
- package/objects/Accounts/Session.d.ts +89 -0
- package/objects/Accounts/SessionStatus.d.ts +29 -0
- package/objects/Accounts/SystemsOfUnits.d.ts +13 -0
- package/objects/Accounts/User.d.ts +167 -0
- package/objects/Accounts/UserAdvanced.d.ts +53 -0
- package/objects/Accounts/UserAuthentication.d.ts +55 -0
- package/objects/Accounts/UserGeneral.d.ts +98 -0
- package/objects/Accounts/UserGroup.d.ts +51 -0
- package/objects/Accounts/UserMFA.d.ts +47 -0
- package/objects/Accounts/UserNotifications.d.ts +76 -0
- package/objects/Accounts/UserSSO.d.ts +37 -0
- package/objects/Assets/Asset.d.ts +218 -0
- package/objects/Assets/AssetAdvanced.d.ts +77 -0
- package/objects/Assets/AssetAttribute.d.ts +71 -0
- package/objects/Assets/AssetDispatch.d.ts +55 -0
- package/objects/Assets/AssetGeneral.d.ts +127 -0
- package/objects/Assets/AssetPlaceStatus.d.ts +31 -0
- package/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
- package/objects/Assets/AssetType.d.ts +21 -0
- package/objects/Behaviours/Behaviour.d.ts +78 -0
- package/objects/Behaviours/BehaviourLog.d.ts +95 -0
- package/objects/Behaviours/BehaviourLogType.d.ts +21 -0
- package/objects/Behaviours/BehaviourParameter.d.ts +38 -0
- package/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
- package/objects/Behaviours/BehaviourScript.d.ts +83 -0
- package/objects/Billing/BillableBase.d.ts +83 -0
- package/objects/Billing/BillableSmsProfile.d.ts +26 -0
- package/objects/Billing/BillingCurrency.d.ts +17 -0
- package/objects/Billing/BillingCycle.d.ts +17 -0
- package/objects/Billing/BillingProfile.d.ts +104 -0
- package/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
- package/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
- package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
- package/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
- package/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
- package/objects/Billing/Report/BillingReport.d.ts +112 -0
- package/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
- package/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
- package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
- package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
- package/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
- package/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
- package/objects/Companies/ColourStyle.d.ts +25 -0
- package/objects/Companies/Company.d.ts +167 -0
- package/objects/Companies/CompanyDirectory.d.ts +52 -0
- package/objects/Companies/CompanyGeneral.d.ts +55 -0
- package/objects/Companies/CompanyPolicy.d.ts +66 -0
- package/objects/Companies/CompanyReseller.d.ts +166 -0
- package/objects/Companies/CompanyStyle.d.ts +50 -0
- package/objects/Companies/LabelStyle.d.ts +46 -0
- package/objects/Companies/NotificationServerEmail.d.ts +99 -0
- package/objects/Companies/NotificationServerSms.d.ts +25 -0
- package/objects/Companies/PasswordExpiryMode.d.ts +17 -0
- package/objects/Companies/PasswordPolicy.d.ts +51 -0
- package/objects/Companies/SessionMultiUser.d.ts +17 -0
- package/objects/Companies/SessionPolicy.d.ts +47 -0
- package/objects/Dispatch/DispatchDirection.d.ts +53 -0
- package/objects/Dispatch/DispatchJob.d.ts +107 -0
- package/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
- package/objects/Dispatch/DispatchStep.d.ts +99 -0
- package/objects/Dispatch/DispatchStepState.d.ts +27 -0
- package/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
- package/objects/Dispatch/DispatchTask.d.ts +154 -0
- package/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
- package/objects/Hosting/Document.d.ts +70 -0
- package/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
- package/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
- package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
- package/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
- package/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
- package/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
- package/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
- package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
- package/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
- package/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
- package/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
- package/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
- package/objects/Hosting/FormFieldType.d.ts +127 -0
- package/objects/Hosting/FormResult.d.ts +95 -0
- package/objects/Hosting/FormTemplate.d.ts +80 -0
- package/objects/Images/Dashcam.d.ts +63 -0
- package/objects/Images/DashcamBase.d.ts +97 -0
- package/objects/Images/DashcamLive.d.ts +36 -0
- package/objects/Images/DashcamMediaType.d.ts +17 -0
- package/objects/Images/Icon.d.ts +66 -0
- package/objects/Images/IconGlyph.d.ts +47 -0
- package/objects/Images/IconLabel.d.ts +29 -0
- package/objects/Images/IconLayer.d.ts +33 -0
- package/objects/Images/Picture.d.ts +72 -0
- package/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
- package/objects/Maintenance/MaintenanceJob.d.ts +134 -0
- package/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
- package/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
- package/objects/Messaging/AlertPriority.d.ts +17 -0
- package/objects/Messaging/AssetAlert.d.ts +29 -0
- package/objects/Messaging/AssetMessage.d.ts +40 -0
- package/objects/Messaging/MessageBase.d.ts +99 -0
- package/objects/Messaging/MessageFolder.d.ts +13 -0
- package/objects/Messaging/MessageStatus.d.ts +29 -0
- package/objects/Messaging/MessageType.d.ts +33 -0
- package/objects/Places/Place.d.ts +114 -0
- package/objects/Places/PlaceType.d.ts +25 -0
- package/objects/Providers/Config/ProviderConfig.d.ts +70 -0
- package/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
- package/objects/Providers/Config/ProviderScript.d.ts +86 -0
- package/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
- package/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
- package/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
- package/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
- package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
- package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
- package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
- package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
- package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
- package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
- package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
- package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
- package/objects/Providers/Provider.d.ts +205 -0
- package/objects/Providers/ProviderAdvanced.d.ts +50 -0
- package/objects/Providers/ProviderCommand.d.ts +36 -0
- package/objects/Providers/ProviderCommandStatus.d.ts +29 -0
- package/objects/Providers/ProviderCommandType.d.ts +37 -0
- package/objects/Providers/ProviderControl.d.ts +41 -0
- package/objects/Providers/ProviderData.d.ts +30 -0
- package/objects/Providers/ProviderGeneral.d.ts +121 -0
- package/objects/Providers/ProviderType.d.ts +106 -0
- package/objects/Reports/ReportBreakdown.d.ts +49 -0
- package/objects/Reports/ReportBreakdownJob.d.ts +37 -0
- package/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
- package/objects/Reports/ReportBreakdownTask.d.ts +46 -0
- package/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
- package/objects/Reports/ReportFilterMode.d.ts +17 -0
- package/objects/Reports/ReportNotifications.d.ts +31 -0
- package/objects/Reports/ReportOptions.d.ts +52 -0
- package/objects/Reports/ReportParameter.d.ts +26 -0
- package/objects/Reports/ReportParameterType.d.ts +59 -0
- package/objects/Reports/ReportRecurrence.d.ts +54 -0
- package/objects/Reports/ReportRecurrenceType.d.ts +34 -0
- package/objects/Reports/ReportResult.d.ts +169 -0
- package/objects/Reports/ReportResultData.d.ts +17 -0
- package/objects/Reports/ReportSchedule.d.ts +111 -0
- package/objects/Reports/ReportScorecard.d.ts +38 -0
- package/objects/Reports/ReportScorecardParameter.d.ts +31 -0
- package/objects/Reports/ReportScorecardRules.d.ts +26 -0
- package/objects/Reports/ReportStatus.d.ts +29 -0
- package/objects/Reports/ReportSummary.d.ts +90 -0
- package/objects/Reports/ReportSummaryReason.d.ts +27 -0
- package/objects/Reports/ReportTemplate.d.ts +81 -0
- package/objects/Reports/ReportTotal.d.ts +47 -0
- package/objects/Reports/ReportType.d.ts +42 -0
- package/objects/index.d.ts +406 -0
- package/objects/storage.d.ts +176 -0
- package/package.json +36 -36
- package/trakit-objects.min.js +2 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { BaseComponent } from '../../API/BaseComponent';
|
|
2
|
+
import { IBelongBillingProfile } from '../../API/Interfaces/IBelongBillingProfile';
|
|
3
|
+
import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
|
|
4
|
+
import { IIdUlong } from '../../API/Interfaces/IIdUlong';
|
|
5
|
+
import { INamed } from '../../API/Interfaces/INamed';
|
|
6
|
+
import { double, JsonObject, ulong } from '../../API/Types';
|
|
7
|
+
import { Company } from '../../Companies/Company';
|
|
8
|
+
import { BillingCurrency } from '../BillingCurrency';
|
|
9
|
+
import { BillingProfile } from '../BillingProfile';
|
|
10
|
+
import { BillingReportBreakdown } from "./BillingReportBreakdown";
|
|
11
|
+
import { BillingReportStatus } from "./BillingReportStatus";
|
|
12
|
+
import { BillingReportSummary } from "./BillingReportSummary";
|
|
13
|
+
/**
|
|
14
|
+
* Report generated per billee company.
|
|
15
|
+
*/
|
|
16
|
+
export declare class BillingReport extends BaseComponent implements IIdUlong, INamed, IBelongCompany, IBelongBillingProfile {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier
|
|
19
|
+
*/
|
|
20
|
+
id: ulong;
|
|
21
|
+
/**
|
|
22
|
+
* The company to which this report belongs and is sending the bill.
|
|
23
|
+
* {@link Company.id}
|
|
24
|
+
*/
|
|
25
|
+
companyId: ulong;
|
|
26
|
+
/**
|
|
27
|
+
* The {@link Company} to which this report belongs and is sending the bill.
|
|
28
|
+
*/
|
|
29
|
+
get company(): Company;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier of the Company receiving the bill.
|
|
32
|
+
* {@link Company.id}
|
|
33
|
+
*/
|
|
34
|
+
billeeId: ulong;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier of the {@link Company} receiving the bill.
|
|
37
|
+
*/
|
|
38
|
+
get billee(): Company;
|
|
39
|
+
/**
|
|
40
|
+
* The profile to which this report belongs
|
|
41
|
+
* {@link BillingProfile.id}
|
|
42
|
+
*/
|
|
43
|
+
profileId: ulong;
|
|
44
|
+
/**
|
|
45
|
+
* The profile to which this report belongs
|
|
46
|
+
* {@link BillingProfile.id}
|
|
47
|
+
*/
|
|
48
|
+
get profile(): BillingProfile;
|
|
49
|
+
/**
|
|
50
|
+
* Name of this report.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Notes about this report.
|
|
55
|
+
*/
|
|
56
|
+
notes: string;
|
|
57
|
+
/**
|
|
58
|
+
* First day of the billing cycle
|
|
59
|
+
*/
|
|
60
|
+
startDate: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Last day of the billing cycle
|
|
63
|
+
*/
|
|
64
|
+
endDate: Date;
|
|
65
|
+
/**
|
|
66
|
+
* Total amount being billed.
|
|
67
|
+
*/
|
|
68
|
+
total: double;
|
|
69
|
+
/**
|
|
70
|
+
* Currency being billed in
|
|
71
|
+
*/
|
|
72
|
+
currency: BillingCurrency;
|
|
73
|
+
/**
|
|
74
|
+
* The processing status of this report.
|
|
75
|
+
*/
|
|
76
|
+
status: BillingReportStatus;
|
|
77
|
+
/**
|
|
78
|
+
* A field which contains report error details if the {@link status} is {@link BillingReportStatus.failed}.
|
|
79
|
+
* {@link BillingReportStatus}
|
|
80
|
+
*/
|
|
81
|
+
error: string;
|
|
82
|
+
/**
|
|
83
|
+
* Summary contains totals per target for this billee
|
|
84
|
+
*/
|
|
85
|
+
summary: BillingReportSummary[];
|
|
86
|
+
/**
|
|
87
|
+
* Individual amounts per company, used to calculate the results of the report.
|
|
88
|
+
*/
|
|
89
|
+
breakdown: BillingReportBreakdown[];
|
|
90
|
+
toJSON(): {
|
|
91
|
+
id: number | null;
|
|
92
|
+
v: number[];
|
|
93
|
+
company: number;
|
|
94
|
+
billee: number;
|
|
95
|
+
profile: number;
|
|
96
|
+
name: string;
|
|
97
|
+
notes: string;
|
|
98
|
+
startDate: string | null;
|
|
99
|
+
endDate: string | null;
|
|
100
|
+
total: number;
|
|
101
|
+
currency: BillingCurrency;
|
|
102
|
+
status: BillingReportStatus;
|
|
103
|
+
error: string;
|
|
104
|
+
summary: any[];
|
|
105
|
+
breakdown: any[];
|
|
106
|
+
};
|
|
107
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The {@link id} is the key.
|
|
110
|
+
*/
|
|
111
|
+
getKey(): number;
|
|
112
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { JsonObject, ulong } from "../../API/Types";
|
|
3
|
+
import { Company } from "../../Companies/Company";
|
|
4
|
+
import { BillingReportLicenseBreakdown } from "./BillingReportLicenseBreakdown";
|
|
5
|
+
import { BillingReportServiceBreakdown } from "./BillingReportServiceBreakdown";
|
|
6
|
+
/**
|
|
7
|
+
* Billing breakdown per target company.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BillingReportBreakdown implements ISerializable {
|
|
10
|
+
static fromJSON(json: JsonObject): BillingReportBreakdown;
|
|
11
|
+
/**
|
|
12
|
+
* The target company to which this breakdown instance belongs.
|
|
13
|
+
* {@link Company.id}
|
|
14
|
+
*/
|
|
15
|
+
targetId: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The target {@link Company} to which this breakdown instance belongs.
|
|
18
|
+
*/
|
|
19
|
+
get target(): Company;
|
|
20
|
+
/**
|
|
21
|
+
* Individual amounts billed per targeted assets.
|
|
22
|
+
*/
|
|
23
|
+
services: BillingReportServiceBreakdown[];
|
|
24
|
+
/**
|
|
25
|
+
* Individual amounts for licensing per targeted providers.
|
|
26
|
+
*/
|
|
27
|
+
licenses: BillingReportLicenseBreakdown[];
|
|
28
|
+
constructor(target?: ulong, services?: BillingReportServiceBreakdown[], licenses?: BillingReportLicenseBreakdown[]);
|
|
29
|
+
toJSON(): {
|
|
30
|
+
target: number | null;
|
|
31
|
+
services: BillingReportServiceBreakdown[];
|
|
32
|
+
licenses: BillingReportLicenseBreakdown[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
2
|
+
import { double, JsonObject } from "../../API/Types";
|
|
3
|
+
/**
|
|
4
|
+
* Amount billed for a type of hosting (service or license) per target company.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BillingReportHostingSummary implements ISerializable {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param json
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
static fromJSON(json: JsonObject): BillingReportHostingSummary;
|
|
13
|
+
/**
|
|
14
|
+
* SKU being billed
|
|
15
|
+
*/
|
|
16
|
+
sku: string;
|
|
17
|
+
/**
|
|
18
|
+
* Cost per billing cycle for this SKU.
|
|
19
|
+
*/
|
|
20
|
+
cost: double;
|
|
21
|
+
/**
|
|
22
|
+
* Number of items for this SKU.
|
|
23
|
+
*/
|
|
24
|
+
count: double;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount being billed for this SKU.
|
|
27
|
+
*/
|
|
28
|
+
total: double;
|
|
29
|
+
constructor(sku?: string, cost?: double, count?: double, total?: double);
|
|
30
|
+
toJSON(): {
|
|
31
|
+
sku: string;
|
|
32
|
+
cost: number | null;
|
|
33
|
+
count: number | null;
|
|
34
|
+
total: number | null;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
2
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
3
|
+
import { datetime, double, JsonObject, ulong } from "../../API/Types";
|
|
4
|
+
import { Provider } from "../../Providers/Provider";
|
|
5
|
+
import { ProviderType } from "../../Providers/ProviderType";
|
|
6
|
+
/**
|
|
7
|
+
* Full breakdown of licensing details per targeted provider.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BillingReportLicenseBreakdown implements INamed, ISerializable {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param json
|
|
13
|
+
*/
|
|
14
|
+
static fromJSON(json: JsonObject): BillingReportLicenseBreakdown;
|
|
15
|
+
/**
|
|
16
|
+
* The provider to which this breakdown instance belongs.
|
|
17
|
+
* {@link Provider.id}
|
|
18
|
+
*/
|
|
19
|
+
providerId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The {@link Provider} to which this breakdown instance belongs.
|
|
22
|
+
*/
|
|
23
|
+
get provider(): Provider;
|
|
24
|
+
set provider(value: Provider);
|
|
25
|
+
/**
|
|
26
|
+
* Type of provider.
|
|
27
|
+
*/
|
|
28
|
+
kind: ProviderType;
|
|
29
|
+
/**
|
|
30
|
+
* Provider name.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Notes about the provider.
|
|
35
|
+
*/
|
|
36
|
+
notes: string;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates when this Provider was created.
|
|
39
|
+
*/
|
|
40
|
+
created: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates when this Provider was deleted.
|
|
43
|
+
*/
|
|
44
|
+
deleted: Date;
|
|
45
|
+
/**
|
|
46
|
+
* The phone number for this provider.
|
|
47
|
+
*/
|
|
48
|
+
phoneNumber: ulong;
|
|
49
|
+
/**
|
|
50
|
+
* The firmware/application version number.
|
|
51
|
+
*/
|
|
52
|
+
firmware: string;
|
|
53
|
+
/**
|
|
54
|
+
* Number of days this Provider is being billed for.
|
|
55
|
+
*/
|
|
56
|
+
billableDays: double;
|
|
57
|
+
/**
|
|
58
|
+
* Licensing cost per billing cycle for this provider.
|
|
59
|
+
*/
|
|
60
|
+
cost: double;
|
|
61
|
+
/**
|
|
62
|
+
* Total amount being billed for this provider.
|
|
63
|
+
*/
|
|
64
|
+
total: double;
|
|
65
|
+
constructor(provider?: string, kind?: ProviderType, name?: string, notes?: string, created?: Date | number | datetime, deleted?: Date | number | datetime, phoneNumber?: ulong, firmware?: string, billableDays?: double, cost?: double, total?: double);
|
|
66
|
+
toJSON(): {
|
|
67
|
+
provider: string;
|
|
68
|
+
kind: ProviderType;
|
|
69
|
+
name: string;
|
|
70
|
+
notes: string;
|
|
71
|
+
created: string | null;
|
|
72
|
+
deleted: string | null;
|
|
73
|
+
phoneNumber: number | null;
|
|
74
|
+
firmware: string;
|
|
75
|
+
billableDays: number | null;
|
|
76
|
+
cost: number | null;
|
|
77
|
+
total: number | null;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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, JsonObject, 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: JsonObject): BillingReportServiceBreakdown;
|
|
18
|
+
/**
|
|
19
|
+
* The asset to which this breakdown instance belongs.
|
|
20
|
+
* {@link Asset.id}
|
|
21
|
+
*/
|
|
22
|
+
assetId: ulong;
|
|
23
|
+
/**
|
|
24
|
+
* The {@link Asset} to which this breakdown instance belongs.
|
|
25
|
+
*/
|
|
26
|
+
get asset(): Asset;
|
|
27
|
+
set asset(value: Asset);
|
|
28
|
+
/**
|
|
29
|
+
* Type of asset.
|
|
30
|
+
*/
|
|
31
|
+
kind: AssetType;
|
|
32
|
+
/**
|
|
33
|
+
* Asset's name.
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Notes about the asset.
|
|
38
|
+
*/
|
|
39
|
+
notes: string;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates when this Asset was created.
|
|
42
|
+
*/
|
|
43
|
+
created: Date;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates when this Asset was deleted.
|
|
46
|
+
*/
|
|
47
|
+
deleted: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates when this Asset wass suspended from event processing.
|
|
50
|
+
*/
|
|
51
|
+
suspended: Date;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates when this Asset was restored after being deleted.
|
|
54
|
+
*/
|
|
55
|
+
restored: Date;
|
|
56
|
+
/**
|
|
57
|
+
* Indicates when this Asset was revived after being suspended.
|
|
58
|
+
*/
|
|
59
|
+
revived: Date;
|
|
60
|
+
/**
|
|
61
|
+
* Codified label names.
|
|
62
|
+
* {@link LabelStyle.code}
|
|
63
|
+
*/
|
|
64
|
+
labels: codified[];
|
|
65
|
+
/**
|
|
66
|
+
* The list of devices providing events for this asset.
|
|
67
|
+
* {@link Provider.id}
|
|
68
|
+
*/
|
|
69
|
+
providerIds: string[];
|
|
70
|
+
/**
|
|
71
|
+
* The list of {@link Provider}s providing events for this asset.
|
|
72
|
+
*/
|
|
73
|
+
get providers(): Provider[];
|
|
74
|
+
set providers(value: Provider[]);
|
|
75
|
+
/**
|
|
76
|
+
* The list of phone numbers for this asset.
|
|
77
|
+
*/
|
|
78
|
+
phoneNumbers: phone[];
|
|
79
|
+
/**
|
|
80
|
+
* Indicates when this Asset was last updated.
|
|
81
|
+
*/
|
|
82
|
+
updatedDts: Date;
|
|
83
|
+
/**
|
|
84
|
+
* Number of days this Asset is being billed for.
|
|
85
|
+
*/
|
|
86
|
+
billableDays: double;
|
|
87
|
+
/**
|
|
88
|
+
* Cost per billing cycle for this asset.
|
|
89
|
+
*/
|
|
90
|
+
cost: double;
|
|
91
|
+
/**
|
|
92
|
+
* Number of days this Asset was suspended.
|
|
93
|
+
*/
|
|
94
|
+
suspendedDays: double;
|
|
95
|
+
/**
|
|
96
|
+
* Cost per billing cycle for suspended asset.
|
|
97
|
+
*/
|
|
98
|
+
suspendedCost: double;
|
|
99
|
+
/**
|
|
100
|
+
* Total amount being billed for this asset.
|
|
101
|
+
*/
|
|
102
|
+
total: double;
|
|
103
|
+
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);
|
|
104
|
+
toJSON(): {
|
|
105
|
+
asset: number | null;
|
|
106
|
+
kind: AssetType;
|
|
107
|
+
name: string;
|
|
108
|
+
notes: string;
|
|
109
|
+
created: string | null;
|
|
110
|
+
deleted: string | null;
|
|
111
|
+
suspended: string | null;
|
|
112
|
+
restored: string | null;
|
|
113
|
+
revived: string | null;
|
|
114
|
+
labels: string[];
|
|
115
|
+
providers: string[];
|
|
116
|
+
phoneNumbers: number[];
|
|
117
|
+
revupdatedDtsived: string | null;
|
|
118
|
+
billableDays: number;
|
|
119
|
+
cost: number;
|
|
120
|
+
suspendedDays: number;
|
|
121
|
+
suspendedCost: number;
|
|
122
|
+
total: number;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -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,49 @@
|
|
|
1
|
+
import { INamed } from "../../API/Interfaces/INamed";
|
|
2
|
+
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
3
|
+
import { JsonObject, 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: JsonObject): BillingReportSummary;
|
|
11
|
+
/**
|
|
12
|
+
* The target company to which this summary instance belongs.
|
|
13
|
+
* {@link Company.id}
|
|
14
|
+
*/
|
|
15
|
+
targetId: ulong;
|
|
16
|
+
/**
|
|
17
|
+
* The target {@link Company} to which this summary instance belongs.
|
|
18
|
+
*/
|
|
19
|
+
get target(): Company;
|
|
20
|
+
/**
|
|
21
|
+
* The target company's parent.
|
|
22
|
+
* {@link Company.id}
|
|
23
|
+
*/
|
|
24
|
+
parentId: ulong;
|
|
25
|
+
/**
|
|
26
|
+
* The target {@link Company}'s parent.
|
|
27
|
+
*/
|
|
28
|
+
get parent(): Company;
|
|
29
|
+
/**
|
|
30
|
+
* Target's name.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Notes about the target.
|
|
35
|
+
*/
|
|
36
|
+
notes: string;
|
|
37
|
+
/**
|
|
38
|
+
* Summary contains totals per type of hosting (services and licenses) for this target
|
|
39
|
+
*/
|
|
40
|
+
hosting: BillingReportHostingSummary[];
|
|
41
|
+
constructor(target?: ulong, parent?: ulong, name?: string, notes?: string, hosting?: BillingReportHostingSummary[]);
|
|
42
|
+
toJSON(): {
|
|
43
|
+
target: number | null;
|
|
44
|
+
parent: number | null;
|
|
45
|
+
name: string;
|
|
46
|
+
notes: string;
|
|
47
|
+
hosting: any[];
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
2
|
+
import { colour, JsonObject } 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: JsonObject): 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,167 @@
|
|
|
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 { JsonObject, codified, ulong } from '../API/Types';
|
|
9
|
+
import { Picture } from '../Images/Picture';
|
|
10
|
+
import { CompanyReseller } from './CompanyReseller';
|
|
11
|
+
import { LabelStyle } from './LabelStyle';
|
|
12
|
+
import { PasswordPolicy } from './PasswordPolicy';
|
|
13
|
+
import { SessionPolicy } from './SessionPolicy';
|
|
14
|
+
/**
|
|
15
|
+
* The full company object which contains all fields.
|
|
16
|
+
*/
|
|
17
|
+
export declare class Company extends BaseCompound implements IIdUlong, INamed, IAmCompany, IBelongCompany {
|
|
18
|
+
#private;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
get pieces(): BaseComponent[];
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of this Company.
|
|
25
|
+
* {@link Asset.id}
|
|
26
|
+
*/
|
|
27
|
+
get id(): ulong;
|
|
28
|
+
/**
|
|
29
|
+
* The parent organization for this {@link Company}.
|
|
30
|
+
*/
|
|
31
|
+
get parent(): Company;
|
|
32
|
+
set parent(value: Company);
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier of the parent {@link Company}.
|
|
35
|
+
*/
|
|
36
|
+
get parentId(): number;
|
|
37
|
+
set parentId(value: number);
|
|
38
|
+
/**
|
|
39
|
+
* The organizational name.
|
|
40
|
+
*/
|
|
41
|
+
get name(): string;
|
|
42
|
+
set name(value: string);
|
|
43
|
+
/**
|
|
44
|
+
* Notes.
|
|
45
|
+
*/
|
|
46
|
+
get notes(): string;
|
|
47
|
+
set notes(value: string);
|
|
48
|
+
/**
|
|
49
|
+
* Name/value collections of custom fields used to refer to external systems.
|
|
50
|
+
*/
|
|
51
|
+
get references(): Map<string, string>;
|
|
52
|
+
set references(value: Map<string, string>);
|
|
53
|
+
/**
|
|
54
|
+
* The list of Contacts from this and other companies broken down by contact role.
|
|
55
|
+
*/
|
|
56
|
+
get employees(): Map<string, ulong[]>;
|
|
57
|
+
set employees(value: Map<string, ulong[]>);
|
|
58
|
+
/**
|
|
59
|
+
* The session lifetime policy.
|
|
60
|
+
*/
|
|
61
|
+
get sessionPolicy(): SessionPolicy;
|
|
62
|
+
set sessionPolicy(value: SessionPolicy);
|
|
63
|
+
/**
|
|
64
|
+
* The password complexity and expiry policy.
|
|
65
|
+
*/
|
|
66
|
+
get passwordPolicy(): PasswordPolicy;
|
|
67
|
+
set passwordPolicy(value: PasswordPolicy);
|
|
68
|
+
/**
|
|
69
|
+
* The styles for labels added to Assets, Places, and other things.
|
|
70
|
+
*/
|
|
71
|
+
get labels(): Map<codified, LabelStyle>;
|
|
72
|
+
set labels(value: Map<codified, LabelStyle>);
|
|
73
|
+
/**
|
|
74
|
+
* The styles for status tags added to Assets.
|
|
75
|
+
*/
|
|
76
|
+
get tags(): Map<codified, LabelStyle>;
|
|
77
|
+
set tags(value: Map<codified, LabelStyle>);
|
|
78
|
+
/**
|
|
79
|
+
* If this company is a reseller, then they have their own theme, support and billing information.
|
|
80
|
+
*/
|
|
81
|
+
reseller: CompanyReseller | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
toJSON(): {
|
|
86
|
+
v: number[];
|
|
87
|
+
id: number | null;
|
|
88
|
+
parent: number;
|
|
89
|
+
contactInfo?: JsonObject | undefined;
|
|
90
|
+
serviceName?: string | undefined;
|
|
91
|
+
logo?: string | undefined;
|
|
92
|
+
icon?: string | undefined;
|
|
93
|
+
favourite?: string | undefined;
|
|
94
|
+
domain?: string | undefined;
|
|
95
|
+
website?: JsonObject | undefined;
|
|
96
|
+
graphics?: JsonObject | undefined;
|
|
97
|
+
languages?: string[] | undefined;
|
|
98
|
+
gamut?: JsonObject | undefined;
|
|
99
|
+
notifyEmail?: {
|
|
100
|
+
incomingType: import("./NotificationServerEmail").IncomingEmailServerType;
|
|
101
|
+
incomingAddress: string;
|
|
102
|
+
incomingPort: number | null;
|
|
103
|
+
incomingLogin: string;
|
|
104
|
+
incomingSecure: boolean;
|
|
105
|
+
incomingMessageNumber: number | null;
|
|
106
|
+
outgoingType: import("./NotificationServerEmail").OutgoingEmailServerType;
|
|
107
|
+
outgoingAddress: string;
|
|
108
|
+
outgoingPort: number | null;
|
|
109
|
+
outgoingLogin: string;
|
|
110
|
+
outgoingSecure: boolean;
|
|
111
|
+
outgoingReplyTo: string;
|
|
112
|
+
} | undefined;
|
|
113
|
+
notifySms?: {
|
|
114
|
+
notifyLimit: number | null;
|
|
115
|
+
phoneNumbers: JsonObject;
|
|
116
|
+
} | undefined;
|
|
117
|
+
termsPreamble?: string | undefined;
|
|
118
|
+
termsUpdated?: string | null | undefined;
|
|
119
|
+
recoverSubject?: string | undefined;
|
|
120
|
+
recoverBody?: string | undefined;
|
|
121
|
+
recoverIsHtml?: boolean | undefined;
|
|
122
|
+
sessionPolicy: {
|
|
123
|
+
applications: string[];
|
|
124
|
+
ipv4Ranges: string[];
|
|
125
|
+
multiUser: import("./SessionMultiUser").SessionMultiUser;
|
|
126
|
+
idleAllowed: boolean;
|
|
127
|
+
expireTimeout: number | null;
|
|
128
|
+
maxSessions: number | null;
|
|
129
|
+
};
|
|
130
|
+
passwordPolicy: {
|
|
131
|
+
minimumLength: number | null;
|
|
132
|
+
includeLetters: boolean;
|
|
133
|
+
includeNumbers: boolean;
|
|
134
|
+
includeUpperLower: boolean;
|
|
135
|
+
includeSpecial: boolean;
|
|
136
|
+
expireMode: import("./PasswordExpiryMode").PasswordExpiryMode;
|
|
137
|
+
expireThreshold: number | null;
|
|
138
|
+
};
|
|
139
|
+
labels: JsonObject;
|
|
140
|
+
tags: JsonObject;
|
|
141
|
+
directory: JsonObject;
|
|
142
|
+
name: string;
|
|
143
|
+
notes: string;
|
|
144
|
+
references: JsonObject;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @param json
|
|
149
|
+
*/
|
|
150
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* The {@link id} is the key.
|
|
153
|
+
*/
|
|
154
|
+
getKey(): number;
|
|
155
|
+
set companyId(value: number);
|
|
156
|
+
get companyId(): number;
|
|
157
|
+
set company(value: Company);
|
|
158
|
+
get company(): Company;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
get contacts(): Contact[];
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
get pictures(): Picture[];
|
|
167
|
+
}
|