@trakit/objects 0.0.14 → 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/API/Base.d.ts +1 -6
- package/Accounts/Contact.d.ts +2 -2
- package/Accounts/Machine.d.ts +2 -1
- package/Accounts/Session.d.ts +1 -16
- package/Accounts/User.d.ts +2 -3
- package/Accounts/UserAdvanced.d.ts +2 -1
- package/Accounts/UserAuthentication.d.ts +2 -1
- package/Accounts/UserGeneral.d.ts +2 -1
- package/Accounts/UserGroup.d.ts +2 -1
- package/Assets/Asset.d.ts +35 -5
- package/Assets/AssetAdvanced.d.ts +2 -1
- package/Assets/AssetDispatch.d.ts +18 -2
- package/Assets/AssetGeneral.d.ts +34 -2
- package/Behaviours/Behaviour.d.ts +1 -0
- package/Behaviours/BehaviourLog.d.ts +1 -0
- package/Behaviours/BehaviourScript.d.ts +1 -0
- package/Billing/BillingProfile.d.ts +1 -0
- package/Billing/Hosting/BillableHostingLicense.d.ts +1 -0
- package/Billing/Hosting/BillableHostingRule.d.ts +1 -0
- package/Billing/Report/BillingReport.d.ts +1 -0
- package/Companies/Company.d.ts +3 -24
- package/Companies/CompanyDirectory.d.ts +2 -9
- package/Companies/CompanyGeneral.d.ts +2 -1
- package/Companies/CompanyPolicy.d.ts +2 -1
- package/Companies/CompanyReseller.d.ts +2 -1
- package/Companies/CompanyStyle.d.ts +2 -1
- package/Dispatch/DispatchJob.d.ts +2 -1
- package/Dispatch/DispatchTask.d.ts +1 -0
- package/Hosting/Document.d.ts +2 -1
- package/Hosting/FormResult.d.ts +2 -1
- package/Hosting/FormTemplate.d.ts +2 -1
- package/Images/Dashcam.d.ts +3 -2
- package/Images/DashcamLive.d.ts +3 -2
- package/Images/Icon.d.ts +15 -2
- package/Images/Picture.d.ts +2 -1
- package/Maintenance/MaintenanceJob.d.ts +2 -1
- package/Maintenance/MaintenanceSchedule.d.ts +2 -1
- package/Messaging/AssetAlert.d.ts +2 -1
- package/Messaging/AssetMessage.d.ts +2 -1
- package/Places/Place.d.ts +2 -1
- package/Providers/Config/ProviderConfig.d.ts +2 -1
- package/Providers/Config/ProviderRegistration.d.ts +2 -1
- package/Providers/Config/ProviderScript.d.ts +2 -1
- package/Providers/Configuration/ProviderConfiguration.d.ts +2 -1
- package/Providers/Configuration/ProviderConfigurationType.d.ts +2 -1
- package/Providers/Provider.d.ts +3 -13
- package/Providers/ProviderAdvanced.d.ts +2 -1
- package/Providers/ProviderControl.d.ts +2 -1
- package/Providers/ProviderGeneral.d.ts +2 -1
- package/README.md +24 -24
- package/Reports/ReportBreakdown.d.ts +32 -1
- package/Reports/ReportBreakdownJob.d.ts +32 -1
- package/Reports/ReportBreakdownMessage.d.ts +32 -1
- package/Reports/ReportBreakdownTask.d.ts +32 -1
- package/Reports/ReportResult.d.ts +2 -1
- package/Reports/ReportSchedule.d.ts +2 -1
- package/Reports/ReportSummary.d.ts +64 -2
- package/Reports/ReportTemplate.d.ts +2 -1
- 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
package/Hosting/FormResult.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
|
5
5
|
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
6
6
|
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
7
7
|
import { INamed } from "../API/Interfaces/INamed";
|
|
8
|
-
import { codified, ulong, JsonObject } from "../API/Types";
|
|
8
|
+
import { codified, ulong, JsonObject, nothing } from "../API/Types";
|
|
9
9
|
import { Asset } from "../Assets/Asset";
|
|
10
10
|
import { Company } from "../Companies/Company";
|
|
11
11
|
import { FormTemplate } from "./FormTemplate";
|
|
@@ -77,6 +77,7 @@ export declare class FormResult extends BaseComponent implements IIdUlong, IName
|
|
|
77
77
|
* The {@link id} is the key.
|
|
78
78
|
*/
|
|
79
79
|
getKey(): number;
|
|
80
|
+
constructor(json?: JsonObject | nothing);
|
|
80
81
|
toJSON(): {
|
|
81
82
|
id: number;
|
|
82
83
|
company: number;
|
|
@@ -4,7 +4,7 @@ import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
|
4
4
|
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
5
5
|
import { INamed } from "../API/Interfaces/INamed";
|
|
6
6
|
import { IVisual } from "../API/Interfaces/IVisual";
|
|
7
|
-
import { codified, colour, ulong, JsonObject } from "../API/Types";
|
|
7
|
+
import { codified, colour, ulong, JsonObject, nothing } from "../API/Types";
|
|
8
8
|
import { Company } from "../Companies/Company";
|
|
9
9
|
import { FormFieldAttachments } from './Fields/FormFieldAttachments';
|
|
10
10
|
import { FormFieldBoolean } from './Fields/FormFieldBoolean';
|
|
@@ -64,6 +64,7 @@ export declare class FormTemplate extends BaseComponent implements IIdUlong, INa
|
|
|
64
64
|
* The {@link id} is the key.
|
|
65
65
|
*/
|
|
66
66
|
getKey(): number;
|
|
67
|
+
constructor(json?: JsonObject | nothing);
|
|
67
68
|
toJSON(): {
|
|
68
69
|
id: number | null;
|
|
69
70
|
company: number | null;
|
package/Images/Dashcam.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimeSpan } from "../API/TimeSpan";
|
|
2
|
-
import { guid, JsonObject, single } from "../API/Types";
|
|
2
|
+
import { guid, JsonObject, nothing, single } from "../API/Types";
|
|
3
3
|
import { DashcamBase } from "./DashcamBase";
|
|
4
4
|
import { DashcamMediaType } from "./DashcamMediaType";
|
|
5
5
|
/**
|
|
@@ -36,7 +36,7 @@ export declare class Dashcam extends DashcamBase {
|
|
|
36
36
|
* The reason why we're saving this image/video. Or the event name that triggered it.
|
|
37
37
|
*/
|
|
38
38
|
eventName: string;
|
|
39
|
-
|
|
39
|
+
constructor(json?: JsonObject | nothing);
|
|
40
40
|
toJSON(): {
|
|
41
41
|
guid: string;
|
|
42
42
|
kind: DashcamMediaType;
|
|
@@ -56,6 +56,7 @@ export declare class Dashcam extends DashcamBase {
|
|
|
56
56
|
heading: number | null;
|
|
57
57
|
altitude: number | null;
|
|
58
58
|
};
|
|
59
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
59
60
|
/**
|
|
60
61
|
* The {@link guid} is the key.
|
|
61
62
|
*/
|
package/Images/DashcamLive.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonObject } from "../API/Types";
|
|
1
|
+
import { JsonObject, nothing } from "../API/Types";
|
|
2
2
|
import { DashcamBase } from "./DashcamBase";
|
|
3
3
|
import { DashcamMediaType } from "./DashcamMediaType";
|
|
4
4
|
/**
|
|
@@ -13,7 +13,7 @@ export declare class DashcamLive extends DashcamBase {
|
|
|
13
13
|
* Timestamp of this live camera image.
|
|
14
14
|
*/
|
|
15
15
|
dts: Date;
|
|
16
|
-
|
|
16
|
+
constructor(json?: JsonObject | nothing);
|
|
17
17
|
toJSON(): {
|
|
18
18
|
kind: DashcamMediaType;
|
|
19
19
|
dts: string | null;
|
|
@@ -29,6 +29,7 @@ export declare class DashcamLive extends DashcamBase {
|
|
|
29
29
|
heading: number | null;
|
|
30
30
|
altitude: number | null;
|
|
31
31
|
};
|
|
32
|
+
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
32
33
|
/**
|
|
33
34
|
* A combination of the asset, provider, and camera number.
|
|
34
35
|
*/
|
package/Images/Icon.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
|
3
3
|
import { IGlobal } from "../API/Interfaces/IGlobal";
|
|
4
4
|
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
5
5
|
import { INamed } from "../API/Interfaces/INamed";
|
|
6
|
-
import { JsonObject, ulong } from "../API/Types";
|
|
6
|
+
import { JsonObject, nothing, ulong } from "../API/Types";
|
|
7
7
|
import { Company } from "../Companies/Company";
|
|
8
8
|
import { IconGlyph } from "./IconGlyph";
|
|
9
9
|
import { IconLabel } from "./IconLabel";
|
|
@@ -57,7 +57,20 @@ export declare class Icon extends BaseComponent implements IIdUlong, INamed, IBe
|
|
|
57
57
|
* The images used to show the detail of this icon.
|
|
58
58
|
*/
|
|
59
59
|
glyphs: IconGlyph[];
|
|
60
|
-
|
|
60
|
+
constructor(json?: JsonObject | nothing);
|
|
61
|
+
toJSON(): {
|
|
62
|
+
id: number | null;
|
|
63
|
+
v: number[];
|
|
64
|
+
company: number;
|
|
65
|
+
category: string;
|
|
66
|
+
name: string;
|
|
67
|
+
notes: string;
|
|
68
|
+
global: boolean;
|
|
69
|
+
usage: string[];
|
|
70
|
+
label: JsonObject;
|
|
71
|
+
badge: JsonObject;
|
|
72
|
+
glyphs: JsonObject[];
|
|
73
|
+
};
|
|
61
74
|
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
62
75
|
/**
|
|
63
76
|
* The {@link id} is the key.
|
package/Images/Picture.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
|
5
5
|
import { IFileSize } from "../API/Interfaces/IFileSize";
|
|
6
6
|
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
7
7
|
import { INamed } from "../API/Interfaces/INamed";
|
|
8
|
-
import { uint, ulong, JsonObject } from "../API/Types";
|
|
8
|
+
import { uint, ulong, JsonObject, nothing } from "../API/Types";
|
|
9
9
|
import { Company } from "../Companies/Company";
|
|
10
10
|
/**
|
|
11
11
|
* An image stored by the system.
|
|
@@ -52,6 +52,7 @@ export declare class Picture extends BaseComponent implements IIdUlong, INamed,
|
|
|
52
52
|
* A count of the times this image was used for something (asset, contact, task, etc).
|
|
53
53
|
*/
|
|
54
54
|
uses: uint;
|
|
55
|
+
constructor(json?: JsonObject | nothing);
|
|
55
56
|
toJSON(): {
|
|
56
57
|
id: number | null;
|
|
57
58
|
v: number[];
|
|
@@ -5,7 +5,7 @@ import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
|
5
5
|
import { INamed } from "../API/Interfaces/INamed";
|
|
6
6
|
import { IPictured } from "../API/Interfaces/IPictured";
|
|
7
7
|
import { TimeSpan } from "../API/TimeSpan";
|
|
8
|
-
import { double, JsonObject, ulong } from "../API/Types";
|
|
8
|
+
import { double, JsonObject, nothing, ulong } from "../API/Types";
|
|
9
9
|
import { Asset } from "../Assets/Asset";
|
|
10
10
|
import { Company } from "../Companies/Company";
|
|
11
11
|
import { Picture } from "../Images/Picture";
|
|
@@ -106,6 +106,7 @@ export declare class MaintenanceJob extends BaseComponent implements IIdUlong, I
|
|
|
106
106
|
*/
|
|
107
107
|
get pictures(): Picture[];
|
|
108
108
|
set pictures(values: Picture[]);
|
|
109
|
+
constructor(json?: JsonObject | nothing);
|
|
109
110
|
toJSON(): {
|
|
110
111
|
id: number | null;
|
|
111
112
|
v: number[];
|
|
@@ -5,7 +5,7 @@ import { INamed } from "../API/Interfaces/INamed";
|
|
|
5
5
|
import { IVisual } from "../API/Interfaces/IVisual";
|
|
6
6
|
import { SearchPattern } from "../API/SearchPattern";
|
|
7
7
|
import { TimeSpan } from "../API/TimeSpan";
|
|
8
|
-
import { codified, colour, double, email, JsonObject, uint, ulong } from "../API/Types";
|
|
8
|
+
import { codified, colour, double, email, JsonObject, nothing, uint, ulong } from "../API/Types";
|
|
9
9
|
import { Company } from "../Companies/Company";
|
|
10
10
|
import { MaintenanceInterval } from "./MaintenanceInterval";
|
|
11
11
|
/**
|
|
@@ -89,6 +89,7 @@ export declare class MaintenanceSchedule extends BaseComponent implements IIdUlo
|
|
|
89
89
|
* A reference code used to track this job.
|
|
90
90
|
*/
|
|
91
91
|
reference: string;
|
|
92
|
+
constructor(json?: JsonObject | nothing);
|
|
92
93
|
toJSON(): {
|
|
93
94
|
id: number | null;
|
|
94
95
|
v: number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonObject } from '../API/Types';
|
|
1
|
+
import { JsonObject, nothing } from '../API/Types';
|
|
2
2
|
import { AlertPriority } from './AlertPriority';
|
|
3
3
|
import { MessageBase } from './MessageBase';
|
|
4
4
|
/**
|
|
@@ -9,6 +9,7 @@ export declare class AssetAlert extends MessageBase {
|
|
|
9
9
|
* The priority for which this message must send.
|
|
10
10
|
*/
|
|
11
11
|
priority: AlertPriority;
|
|
12
|
+
constructor(json?: JsonObject | nothing);
|
|
12
13
|
toJSON(): {
|
|
13
14
|
priority: AlertPriority;
|
|
14
15
|
id: number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { email, JsonObject } from '../API/Types';
|
|
1
|
+
import { email, JsonObject, nothing } from '../API/Types';
|
|
2
2
|
import { MessageBase } from './MessageBase';
|
|
3
3
|
import { MessageFolder } from './MessageFolder';
|
|
4
4
|
/**
|
|
@@ -18,6 +18,7 @@ export declare class AssetMessage extends MessageBase {
|
|
|
18
18
|
* {@link User.login}
|
|
19
19
|
*/
|
|
20
20
|
readBy: email;
|
|
21
|
+
constructor(json?: JsonObject | nothing);
|
|
21
22
|
toJSON(): {
|
|
22
23
|
folder: MessageFolder;
|
|
23
24
|
incoming: boolean;
|
package/Places/Place.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
|
6
6
|
import { ILabelled } from "../API/Interfaces/ILabelled";
|
|
7
7
|
import { INamed } from "../API/Interfaces/INamed";
|
|
8
8
|
import { IPictured } from "../API/Interfaces/IPictured";
|
|
9
|
-
import { JsonObject, codified, colour, double, ulong } from "../API/Types";
|
|
9
|
+
import { JsonObject, codified, colour, double, nothing, ulong } from "../API/Types";
|
|
10
10
|
import { Company } from "../Companies/Company";
|
|
11
11
|
import { Icon } from "../Images/Icon";
|
|
12
12
|
import { Picture } from "../Images/Picture";
|
|
@@ -89,6 +89,7 @@ export declare class Place extends BaseComponent implements IIdUlong, INamed, II
|
|
|
89
89
|
* A list of points forming a non-self-intersecting polygon.
|
|
90
90
|
*/
|
|
91
91
|
points: LatLng[] | null;
|
|
92
|
+
constructor(json?: JsonObject | nothing);
|
|
92
93
|
toJSON(): {
|
|
93
94
|
id: number | null;
|
|
94
95
|
v: number[];
|
|
@@ -3,7 +3,7 @@ import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
|
3
3
|
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
4
4
|
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
5
|
import { SearchPattern } from "../../API/SearchPattern";
|
|
6
|
-
import { JsonObject, ulong } from "../../API/Types";
|
|
6
|
+
import { JsonObject, nothing, ulong } from "../../API/Types";
|
|
7
7
|
import { Company } from "../../Companies/Company";
|
|
8
8
|
import { ProviderScript } from "./ProviderScript";
|
|
9
9
|
/**
|
|
@@ -52,6 +52,7 @@ export declare class ProviderConfig extends BaseComponent implements IIdUlong, I
|
|
|
52
52
|
* Or use "#123456" or "label:term" like other Place search patterns.
|
|
53
53
|
*/
|
|
54
54
|
geofences: SearchPattern[] | null;
|
|
55
|
+
constructor(json?: JsonObject | nothing);
|
|
55
56
|
toJSON(): {
|
|
56
57
|
id: number | null;
|
|
57
58
|
v: number[];
|
|
@@ -4,7 +4,7 @@ import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
|
4
4
|
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
5
|
import { IRequestable } from "../../API/Interfaces/IRequestable";
|
|
6
6
|
import { ISerializable } from "../../API/Interfaces/ISerializable";
|
|
7
|
-
import { email, phone, ulong, JsonObject } from "../../API/Types";
|
|
7
|
+
import { email, phone, ulong, JsonObject, nothing } from "../../API/Types";
|
|
8
8
|
import { User } from "../../Accounts/User";
|
|
9
9
|
import { Asset } from "../../Assets/Asset";
|
|
10
10
|
import { Company } from "../../Companies/Company";
|
|
@@ -95,6 +95,7 @@ export declare class ProviderRegistration extends Base implements IRequestable,
|
|
|
95
95
|
* This is set by the user for long-term registrations, or by the client during serial port setup.
|
|
96
96
|
*/
|
|
97
97
|
phoneNumber: phone;
|
|
98
|
+
constructor(json?: JsonObject | nothing);
|
|
98
99
|
toJSON(): {
|
|
99
100
|
code: string | null;
|
|
100
101
|
company: number | null;
|
|
@@ -4,7 +4,7 @@ import { IGlobal } from "../../API/Interfaces/IGlobal";
|
|
|
4
4
|
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
5
5
|
import { INamed } from "../../API/Interfaces/INamed";
|
|
6
6
|
import { IVisual } from "../../API/Interfaces/IVisual";
|
|
7
|
-
import { JsonObject, codified, colour, ulong } from "../../API/Types";
|
|
7
|
+
import { JsonObject, codified, colour, nothing, ulong } from "../../API/Types";
|
|
8
8
|
import { Company } from "../../Companies/Company";
|
|
9
9
|
import { ProviderType } from "../ProviderType";
|
|
10
10
|
import { ProviderScriptBlock } from "./ProviderScriptBlock";
|
|
@@ -64,6 +64,7 @@ export declare class ProviderScript extends BaseComponent implements IIdUlong, I
|
|
|
64
64
|
* Parameter definitions for this script, including type-hints and default values.
|
|
65
65
|
*/
|
|
66
66
|
parameters: Map<string, ProviderScriptParameter>;
|
|
67
|
+
constructor(json?: JsonObject | nothing);
|
|
67
68
|
toJSON(): {
|
|
68
69
|
id: number | null;
|
|
69
70
|
v: number[];
|
|
@@ -2,7 +2,7 @@ import { BaseComponent } from "../../API/BaseComponent";
|
|
|
2
2
|
import { IBelongCompany } from "../../API/Interfaces/IBelongCompany";
|
|
3
3
|
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
4
4
|
import { INamed } from "../../API/Interfaces/INamed";
|
|
5
|
-
import { JsonObject, ulong } from "../../API/Types";
|
|
5
|
+
import { JsonObject, nothing, ulong } from "../../API/Types";
|
|
6
6
|
import { Company } from "../../Companies/Company";
|
|
7
7
|
import { ProviderConfigurationType } from "./ProviderConfigurationType";
|
|
8
8
|
/**
|
|
@@ -48,6 +48,7 @@ export declare class ProviderConfiguration extends BaseComponent implements IIdU
|
|
|
48
48
|
* List of Places loaded directly onto the provider.
|
|
49
49
|
*/
|
|
50
50
|
geofences: ulong[];
|
|
51
|
+
constructor(json?: JsonObject | nothing);
|
|
51
52
|
toJSON(): {
|
|
52
53
|
id: number;
|
|
53
54
|
company: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseComponent } from "../../API/BaseComponent";
|
|
2
2
|
import { IIdUlong } from "../../API/Interfaces/IIdUlong";
|
|
3
3
|
import { INamed } from "../../API/Interfaces/INamed";
|
|
4
|
-
import { JsonObject, uint, ulong } from "../../API/Types";
|
|
4
|
+
import { JsonObject, nothing, uint, ulong } from "../../API/Types";
|
|
5
5
|
import { PlaceType } from "../../Places/PlaceType";
|
|
6
6
|
import { ProviderType } from "../ProviderType";
|
|
7
7
|
import { ProviderConfigurationNode } from "./ProviderConfigurationNode";
|
|
@@ -43,6 +43,7 @@ export declare class ProviderConfigurationType extends BaseComponent implements
|
|
|
43
43
|
* A list of supported types of geofences which can be programmed directly onto the device.
|
|
44
44
|
*/
|
|
45
45
|
geofenceTypes: PlaceType[];
|
|
46
|
+
constructor(json?: JsonObject | nothing);
|
|
46
47
|
toJSON(): {
|
|
47
48
|
id: number;
|
|
48
49
|
v: number[];
|
package/Providers/Provider.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BaseCompound } from "../API/BaseCompound";
|
|
|
3
3
|
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
4
4
|
import { INamed } from "../API/Interfaces/INamed";
|
|
5
5
|
import { ISuspendable } from "../API/Interfaces/ISuspendable";
|
|
6
|
-
import { JsonObject, ipv4, phone, ulong } from "../API/Types";
|
|
6
|
+
import { JsonObject, ipv4, nothing, phone, ulong } from "../API/Types";
|
|
7
7
|
import { Asset } from "../Assets/Asset";
|
|
8
8
|
import { Company } from "../Companies/Company";
|
|
9
9
|
import { ProviderConfig } from "./Config/ProviderConfig";
|
|
@@ -19,6 +19,7 @@ import { ProviderType } from "./ProviderType";
|
|
|
19
19
|
* A device, modem, or service which provides events from the field.
|
|
20
20
|
*/
|
|
21
21
|
export declare class Provider extends BaseCompound implements INamed, IBelongCompany, ISuspendable {
|
|
22
|
+
#private;
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
25
|
*/
|
|
@@ -40,10 +41,6 @@ export declare class Provider extends BaseCompound implements INamed, IBelongCom
|
|
|
40
41
|
* The kind of communication protocol this device uses.
|
|
41
42
|
*/
|
|
42
43
|
get kind(): ProviderType;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
protected _general: ProviderGeneral;
|
|
47
44
|
get general(): ProviderGeneral;
|
|
48
45
|
/**
|
|
49
46
|
* This thing's name.
|
|
@@ -103,10 +100,6 @@ export declare class Provider extends BaseCompound implements INamed, IBelongCom
|
|
|
103
100
|
*/
|
|
104
101
|
get sim(): string;
|
|
105
102
|
set sim(value: string);
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
protected _advanced: ProviderAdvanced;
|
|
110
103
|
get advanced(): ProviderAdvanced;
|
|
111
104
|
/**
|
|
112
105
|
* The last IP address of the device.
|
|
@@ -123,16 +116,13 @@ export declare class Provider extends BaseCompound implements INamed, IBelongCom
|
|
|
123
116
|
*/
|
|
124
117
|
get snf(): Map<string, string>;
|
|
125
118
|
set snf(value: Map<string, string>);
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
protected _control: ProviderControl;
|
|
130
119
|
get control(): ProviderControl;
|
|
131
120
|
/**
|
|
132
121
|
* Collection of commands for this provider.
|
|
133
122
|
*/
|
|
134
123
|
get commands(): Map<ProviderCommandType, ProviderCommand>;
|
|
135
124
|
set commands(value: Map<ProviderCommandType, ProviderCommand>);
|
|
125
|
+
constructor(json?: JsonObject | nothing);
|
|
136
126
|
toJSON(): {
|
|
137
127
|
suspended: boolean;
|
|
138
128
|
since: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseComponent } from "../API/BaseComponent";
|
|
2
2
|
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { JsonObject, ipv4, ulong } from "../API/Types";
|
|
3
|
+
import { JsonObject, ipv4, nothing, ulong } from "../API/Types";
|
|
4
4
|
import { Company } from "../Companies/Company";
|
|
5
5
|
import { ProviderData } from "./ProviderData";
|
|
6
6
|
/**
|
|
@@ -34,6 +34,7 @@ export declare class ProviderAdvanced extends BaseComponent implements IBelongCo
|
|
|
34
34
|
* Store-and-forward information like last sequence number of SnF window
|
|
35
35
|
*/
|
|
36
36
|
snf: Map<string, string>;
|
|
37
|
+
constructor(json?: JsonObject | nothing);
|
|
37
38
|
toJSON(): {
|
|
38
39
|
id: string | null;
|
|
39
40
|
v: number[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseComponent } from "../API/BaseComponent";
|
|
2
2
|
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { JsonObject, ulong } from "../API/Types";
|
|
3
|
+
import { JsonObject, nothing, ulong } from "../API/Types";
|
|
4
4
|
import { Company } from "../Companies/Company";
|
|
5
5
|
import { ProviderCommand } from "./ProviderCommand";
|
|
6
6
|
import { ProviderCommandType } from "./ProviderCommandType";
|
|
@@ -27,6 +27,7 @@ export declare class ProviderControl extends BaseComponent implements IBelongCom
|
|
|
27
27
|
* Collection of commands for this provider.
|
|
28
28
|
*/
|
|
29
29
|
commands: Map<ProviderCommandType, ProviderCommand>;
|
|
30
|
+
constructor(json?: JsonObject | nothing);
|
|
30
31
|
toJSON(): {
|
|
31
32
|
id: string | null;
|
|
32
33
|
v: number[];
|
|
@@ -2,7 +2,7 @@ import { BaseComponent } from "../API/BaseComponent";
|
|
|
2
2
|
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
3
|
import { INamed } from "../API/Interfaces/INamed";
|
|
4
4
|
import { ISuspendable } from "../API/Interfaces/ISuspendable";
|
|
5
|
-
import { JsonObject, phone, ulong } from "../API/Types";
|
|
5
|
+
import { JsonObject, nothing, phone, ulong } from "../API/Types";
|
|
6
6
|
import { Asset } from "../Assets/Asset";
|
|
7
7
|
import { Company } from "../Companies/Company";
|
|
8
8
|
import { ProviderConfig } from "./Config/ProviderConfig";
|
|
@@ -80,6 +80,7 @@ export declare class ProviderGeneral extends BaseComponent implements INamed, IB
|
|
|
80
80
|
* ICCID of the SIM card installed in this provider
|
|
81
81
|
*/
|
|
82
82
|
sim: string;
|
|
83
|
+
constructor(json?: JsonObject | nothing);
|
|
83
84
|
toJSON(): {
|
|
84
85
|
suspended: boolean;
|
|
85
86
|
since: string | null;
|
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Trak-iT API Object Model
|
|
2
|
-
|
|
3
|
-
All of the Trak-iT APIs use the same object definitions.
|
|
4
|
-
Other Trak-iT API libraries are available on [GitHub](https://github.com/trakitwireless) and [npm](https://www.npmjs.com/org/trakit).
|
|
5
|
-
|
|
6
|
-
### Prerequisites
|
|
7
|
-
|
|
8
|
-
We do not require any other packages, however, we are targetting `ESNext`, so if your project uses CommonJS or another module manager, you will need to account for that yourself.
|
|
9
|
-
|
|
10
|
-
### Building
|
|
11
|
-
|
|
12
|
-
In order to build this project, you need to install the RollupJS, and plugins for TypeScript and Minifying.
|
|
13
|
-
```
|
|
14
|
-
npm i rollup rollup-plugin-typescript2 @rollup/plugin-terser
|
|
15
|
-
```
|
|
16
|
-
After those have been installed, build the project normally.
|
|
17
|
-
```
|
|
18
|
-
rollup --config rollup.config.js
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Questions and Feedback
|
|
22
|
-
|
|
23
|
-
If you have any questions, please start for the project on GitHub
|
|
24
|
-
https://github.com/trakitwireless/trakit-ts-objects/issues
|
|
1
|
+
# Trak-iT API Object Model
|
|
2
|
+
|
|
3
|
+
All of the Trak-iT APIs use the same object definitions.
|
|
4
|
+
Other Trak-iT API libraries are available on [GitHub](https://github.com/trakitwireless) and [npm](https://www.npmjs.com/org/trakit).
|
|
5
|
+
|
|
6
|
+
### Prerequisites
|
|
7
|
+
|
|
8
|
+
We do not require any other packages, however, we are targetting `ESNext`, so if your project uses CommonJS or another module manager, you will need to account for that yourself.
|
|
9
|
+
|
|
10
|
+
### Building
|
|
11
|
+
|
|
12
|
+
In order to build this project, you need to install the RollupJS, and plugins for TypeScript and Minifying.
|
|
13
|
+
```
|
|
14
|
+
npm i rollup rollup-plugin-typescript2 @rollup/plugin-terser
|
|
15
|
+
```
|
|
16
|
+
After those have been installed, build the project normally.
|
|
17
|
+
```
|
|
18
|
+
rollup --config rollup.config.js
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Questions and Feedback
|
|
22
|
+
|
|
23
|
+
If you have any questions, please start for the project on GitHub
|
|
24
|
+
https://github.com/trakitwireless/trakit-ts-objects/issues
|
|
@@ -43,7 +43,38 @@ export declare class ReportBreakdown implements ISerializable {
|
|
|
43
43
|
asset: number | null;
|
|
44
44
|
instance: number | null;
|
|
45
45
|
summaryInstances: number[];
|
|
46
|
-
general:
|
|
46
|
+
general: {
|
|
47
|
+
suspended: boolean;
|
|
48
|
+
since: string | null;
|
|
49
|
+
id: number | null;
|
|
50
|
+
v: number[];
|
|
51
|
+
company: number;
|
|
52
|
+
kind: import("..").AssetType;
|
|
53
|
+
name: string;
|
|
54
|
+
notes: string;
|
|
55
|
+
icon: number;
|
|
56
|
+
labels: string[];
|
|
57
|
+
} | {
|
|
58
|
+
references: JsonObject;
|
|
59
|
+
messagingAddress: string;
|
|
60
|
+
pictures: number[];
|
|
61
|
+
contact: number;
|
|
62
|
+
vin: string;
|
|
63
|
+
plate: string;
|
|
64
|
+
make: string;
|
|
65
|
+
model: string;
|
|
66
|
+
year: number | null;
|
|
67
|
+
colour: string;
|
|
68
|
+
serial: string;
|
|
69
|
+
id: number | null;
|
|
70
|
+
v: number[];
|
|
71
|
+
company: number;
|
|
72
|
+
kind: import("..").AssetType;
|
|
73
|
+
name: string;
|
|
74
|
+
notes: string;
|
|
75
|
+
icon: number;
|
|
76
|
+
labels: string[];
|
|
77
|
+
} | null;
|
|
47
78
|
advanced: JsonObject | null;
|
|
48
79
|
};
|
|
49
80
|
}
|
|
@@ -31,7 +31,38 @@ export declare class ReportBreakdownJob extends ReportBreakdown {
|
|
|
31
31
|
asset: number | null;
|
|
32
32
|
instance: number | null;
|
|
33
33
|
summaryInstances: number[];
|
|
34
|
-
general:
|
|
34
|
+
general: {
|
|
35
|
+
suspended: boolean;
|
|
36
|
+
since: string | null;
|
|
37
|
+
id: number | null;
|
|
38
|
+
v: number[];
|
|
39
|
+
company: number;
|
|
40
|
+
kind: import("..").AssetType;
|
|
41
|
+
name: string;
|
|
42
|
+
notes: string;
|
|
43
|
+
icon: number;
|
|
44
|
+
labels: string[];
|
|
45
|
+
} | {
|
|
46
|
+
references: import("..").JsonObject;
|
|
47
|
+
messagingAddress: string;
|
|
48
|
+
pictures: number[];
|
|
49
|
+
contact: number;
|
|
50
|
+
vin: string;
|
|
51
|
+
plate: string;
|
|
52
|
+
make: string;
|
|
53
|
+
model: string;
|
|
54
|
+
year: number | null;
|
|
55
|
+
colour: string;
|
|
56
|
+
serial: string;
|
|
57
|
+
id: number | null;
|
|
58
|
+
v: number[];
|
|
59
|
+
company: number;
|
|
60
|
+
kind: import("..").AssetType;
|
|
61
|
+
name: string;
|
|
62
|
+
notes: string;
|
|
63
|
+
icon: number;
|
|
64
|
+
labels: string[];
|
|
65
|
+
} | null;
|
|
35
66
|
advanced: import("..").JsonObject | null;
|
|
36
67
|
};
|
|
37
68
|
}
|
|
@@ -34,7 +34,38 @@ export declare class ReportBreakdownMessage extends ReportBreakdown {
|
|
|
34
34
|
asset: number | null;
|
|
35
35
|
instance: number | null;
|
|
36
36
|
summaryInstances: number[];
|
|
37
|
-
general:
|
|
37
|
+
general: {
|
|
38
|
+
suspended: boolean;
|
|
39
|
+
since: string | null;
|
|
40
|
+
id: number | null;
|
|
41
|
+
v: number[];
|
|
42
|
+
company: number;
|
|
43
|
+
kind: import("..").AssetType;
|
|
44
|
+
name: string;
|
|
45
|
+
notes: string;
|
|
46
|
+
icon: number;
|
|
47
|
+
labels: string[];
|
|
48
|
+
} | {
|
|
49
|
+
references: import("..").JsonObject;
|
|
50
|
+
messagingAddress: string;
|
|
51
|
+
pictures: number[];
|
|
52
|
+
contact: number;
|
|
53
|
+
vin: string;
|
|
54
|
+
plate: string;
|
|
55
|
+
make: string;
|
|
56
|
+
model: string;
|
|
57
|
+
year: number | null;
|
|
58
|
+
colour: string;
|
|
59
|
+
serial: string;
|
|
60
|
+
id: number | null;
|
|
61
|
+
v: number[];
|
|
62
|
+
company: number;
|
|
63
|
+
kind: import("..").AssetType;
|
|
64
|
+
name: string;
|
|
65
|
+
notes: string;
|
|
66
|
+
icon: number;
|
|
67
|
+
labels: string[];
|
|
68
|
+
} | null;
|
|
38
69
|
advanced: import("..").JsonObject | null;
|
|
39
70
|
};
|
|
40
71
|
}
|
|
@@ -40,7 +40,38 @@ export declare class ReportBreakdownTask extends ReportBreakdown {
|
|
|
40
40
|
asset: number | null;
|
|
41
41
|
instance: number | null;
|
|
42
42
|
summaryInstances: number[];
|
|
43
|
-
general:
|
|
43
|
+
general: {
|
|
44
|
+
suspended: boolean;
|
|
45
|
+
since: string | null;
|
|
46
|
+
id: number | null;
|
|
47
|
+
v: number[];
|
|
48
|
+
company: number;
|
|
49
|
+
kind: import("..").AssetType;
|
|
50
|
+
name: string;
|
|
51
|
+
notes: string;
|
|
52
|
+
icon: number;
|
|
53
|
+
labels: string[];
|
|
54
|
+
} | {
|
|
55
|
+
references: import("..").JsonObject;
|
|
56
|
+
messagingAddress: string;
|
|
57
|
+
pictures: number[];
|
|
58
|
+
contact: number;
|
|
59
|
+
vin: string;
|
|
60
|
+
plate: string;
|
|
61
|
+
make: string;
|
|
62
|
+
model: string;
|
|
63
|
+
year: number | null;
|
|
64
|
+
colour: string;
|
|
65
|
+
serial: string;
|
|
66
|
+
id: number | null;
|
|
67
|
+
v: number[];
|
|
68
|
+
company: number;
|
|
69
|
+
kind: import("..").AssetType;
|
|
70
|
+
name: string;
|
|
71
|
+
notes: string;
|
|
72
|
+
icon: number;
|
|
73
|
+
labels: string[];
|
|
74
|
+
} | null;
|
|
44
75
|
advanced: import("..").JsonObject | null;
|
|
45
76
|
};
|
|
46
77
|
}
|
|
@@ -4,7 +4,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
|
4
4
|
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
5
5
|
import { INamed } from "../API/Interfaces/INamed";
|
|
6
6
|
import { Timezone } from "../API/Timezone";
|
|
7
|
-
import { JsonObject, byte, email, ulong } from "../API/Types";
|
|
7
|
+
import { JsonObject, byte, email, nothing, ulong } from "../API/Types";
|
|
8
8
|
import { Company } from "../Companies/Company";
|
|
9
9
|
import { ReportOptions } from './ReportOptions';
|
|
10
10
|
import { ReportSchedule } from "./ReportSchedule";
|
|
@@ -123,6 +123,7 @@ export declare class ReportResult extends BaseComponent implements IIdUlong, INa
|
|
|
123
123
|
* {@link ReportStatus}
|
|
124
124
|
*/
|
|
125
125
|
error: string;
|
|
126
|
+
constructor(json?: JsonObject | nothing);
|
|
126
127
|
toJSON(): {
|
|
127
128
|
id: number | null;
|
|
128
129
|
company: number | null;
|
|
@@ -3,7 +3,7 @@ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
|
3
3
|
import { IEnabled } from "../API/Interfaces/IEnabled";
|
|
4
4
|
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
5
5
|
import { INamed } from "../API/Interfaces/INamed";
|
|
6
|
-
import { email, ulong, JsonObject } from "../API/Types";
|
|
6
|
+
import { email, ulong, JsonObject, nothing } from "../API/Types";
|
|
7
7
|
import { Company } from "../Companies/Company";
|
|
8
8
|
import { ReportNotifications } from "./ReportNotifications";
|
|
9
9
|
import { ReportOptions } from "./ReportOptions";
|
|
@@ -65,6 +65,7 @@ export declare class ReportSchedule extends BaseComponent implements IIdUlong, I
|
|
|
65
65
|
* A list of users and a targeting expression for assets which receive report results notifications.
|
|
66
66
|
*/
|
|
67
67
|
notify: ReportNotifications | null;
|
|
68
|
+
constructor(json?: JsonObject | nothing);
|
|
68
69
|
toJSON(): {
|
|
69
70
|
id: number | null;
|
|
70
71
|
company: number | null;
|