@trakit/objects 0.0.1 → 0.0.5

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.
Files changed (155) hide show
  1. package/API/Base.d.ts +3 -2
  2. package/API/BaseComponent.d.ts +9 -6
  3. package/API/Codifier.d.ts +11 -1
  4. package/API/Encoding.d.ts +9 -0
  5. package/API/Files.d.ts +4 -4
  6. package/API/Functions.d.ts +26 -21
  7. package/API/Geography/Functions.d.ts +4 -0
  8. package/API/Geography/Interfaces.d.ts +19 -14
  9. package/API/Geography/LatLng.d.ts +9 -1
  10. package/API/Geography/LatLngBounds.d.ts +2 -1
  11. package/API/Geography/Position.d.ts +23 -11
  12. package/API/Geography/StreetAddress.d.ts +3 -2
  13. package/API/Geometry/Functions.d.ts +1 -1
  14. package/API/Geometry/Point.d.ts +4 -3
  15. package/API/Geometry/Radial.d.ts +5 -4
  16. package/API/Geometry/Rectangle.d.ts +3 -7
  17. package/API/Geometry/Size.d.ts +8 -2
  18. package/API/Interfaces/IAuditable.d.ts +31 -0
  19. package/API/Interfaces/IDeserializable.d.ts +2 -1
  20. package/API/Interfaces/ILabelled.d.ts +2 -1
  21. package/API/Interfaces/IRequestable.d.ts +5 -1
  22. package/API/Objects.d.ts +0 -28
  23. package/API/SearchPattern.d.ts +3 -2
  24. package/API/TimeSpan.d.ts +7 -38
  25. package/API/Timezone.d.ts +3 -3
  26. package/API/Types.d.ts +18 -0
  27. package/Accounts/Contact.d.ts +10 -10
  28. package/Accounts/Machine.d.ts +14 -6
  29. package/Accounts/Permissions/Permission.d.ts +3 -3
  30. package/Accounts/Permissions/PermissionEscalation.d.ts +11 -3
  31. package/Accounts/Permissions/PermissionEscalationState.d.ts +5 -3
  32. package/Accounts/Session.d.ts +2 -2
  33. package/Accounts/User.d.ts +10 -10
  34. package/Accounts/UserAdvanced.d.ts +2 -2
  35. package/Accounts/UserGeneral.d.ts +5 -5
  36. package/Accounts/UserGroup.d.ts +3 -3
  37. package/Accounts/UserNotifications.d.ts +2 -2
  38. package/Assets/Asset.d.ts +56 -24
  39. package/Assets/AssetAdvanced.d.ts +8 -20
  40. package/Assets/AssetAttribute.d.ts +2 -2
  41. package/Assets/AssetDispatch.d.ts +5 -12
  42. package/Assets/AssetGeneral.d.ts +44 -24
  43. package/Assets/AssetPlaceStatus.d.ts +2 -2
  44. package/Behaviours/Behaviour.d.ts +4 -4
  45. package/Behaviours/BehaviourLog.d.ts +3 -3
  46. package/Behaviours/BehaviourParameter.d.ts +2 -1
  47. package/Behaviours/BehaviourScript.d.ts +4 -4
  48. package/Billing/BillableBase.d.ts +3 -3
  49. package/Billing/BillableSmsProfile.d.ts +2 -2
  50. package/Billing/BillingProfile.d.ts +3 -3
  51. package/Billing/Hosting/BillableHostingBase.d.ts +2 -2
  52. package/Billing/Hosting/BillableHostingDiscount.d.ts +2 -1
  53. package/Billing/Hosting/BillableHostingLicense.d.ts +2 -1
  54. package/Billing/Hosting/BillableHostingRule.d.ts +2 -1
  55. package/Billing/Report/BillingReport.d.ts +3 -3
  56. package/Billing/Report/BillingReportBreakdown.d.ts +2 -2
  57. package/Billing/Report/BillingReportHostingSummary.d.ts +2 -2
  58. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +2 -2
  59. package/Billing/Report/BillingReportServiceBreakdown.d.ts +2 -2
  60. package/Billing/Report/BillingReportSummary.d.ts +2 -2
  61. package/Companies/ColourStyle.d.ts +2 -2
  62. package/Companies/Company.d.ts +48 -33
  63. package/Companies/CompanyDirectory.d.ts +10 -5
  64. package/Companies/CompanyGeneral.d.ts +10 -5
  65. package/Companies/{CompanyPolicies.d.ts → CompanyPolicy.d.ts} +9 -4
  66. package/Companies/CompanyReseller.d.ts +14 -9
  67. package/Companies/{CompanyStyles.d.ts → CompanyStyle.d.ts} +11 -6
  68. package/Companies/LabelStyle.d.ts +2 -2
  69. package/Companies/NotificationServerEmail.d.ts +2 -2
  70. package/Companies/NotificationServerSms.d.ts +3 -3
  71. package/Companies/PasswordPolicy.d.ts +2 -2
  72. package/Companies/SessionPolicy.d.ts +2 -2
  73. package/Dispatch/DispatchDirection.d.ts +3 -3
  74. package/Dispatch/DispatchJob.d.ts +4 -4
  75. package/Dispatch/DispatchStep.d.ts +4 -4
  76. package/Dispatch/DispatchStepState.d.ts +3 -3
  77. package/Dispatch/DispatchTask.d.ts +5 -5
  78. package/Hosting/Document.d.ts +3 -3
  79. package/Hosting/Fields/FormFieldAttachments.d.ts +4 -11
  80. package/Hosting/Fields/FormFieldBase.d.ts +8 -23
  81. package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  82. package/Hosting/Fields/FormFieldBoolean.d.ts +4 -12
  83. package/Hosting/Fields/FormFieldChoice.d.ts +10 -12
  84. package/Hosting/Fields/FormFieldDate.d.ts +2 -9
  85. package/Hosting/Fields/FormFieldNumeric.d.ts +2 -9
  86. package/Hosting/Fields/FormFieldSignature.d.ts +2 -2
  87. package/Hosting/Fields/FormFieldText.d.ts +2 -9
  88. package/Hosting/Fields/FormFieldTime.d.ts +12 -9
  89. package/Hosting/Fields/FormFieldTimezone.d.ts +2 -2
  90. package/Hosting/FormResult.d.ts +4 -4
  91. package/Hosting/FormTemplate.d.ts +3 -3
  92. package/Images/Dashcam.d.ts +3 -3
  93. package/Images/DashcamBase.d.ts +2 -2
  94. package/Images/DashcamLive.d.ts +3 -3
  95. package/Images/Icon.d.ts +7 -27
  96. package/Images/IconGlyph.d.ts +5 -12
  97. package/Images/IconLabel.d.ts +5 -8
  98. package/Images/Picture.d.ts +3 -3
  99. package/Maintenance/MaintenanceInterval.d.ts +2 -2
  100. package/Maintenance/MaintenanceJob.d.ts +3 -3
  101. package/Maintenance/MaintenanceSchedule.d.ts +4 -4
  102. package/Messaging/AssetAlert.d.ts +2 -1
  103. package/Messaging/AssetMessage.d.ts +2 -2
  104. package/Messaging/MessageBase.d.ts +3 -3
  105. package/Places/Place.d.ts +4 -4
  106. package/Providers/Config/ProviderConfig.d.ts +4 -4
  107. package/Providers/Config/ProviderRegistration.d.ts +2 -2
  108. package/Providers/Config/ProviderScript.d.ts +4 -4
  109. package/Providers/Config/ProviderScriptBlock.d.ts +2 -1
  110. package/Providers/Config/ProviderScriptParameter.d.ts +2 -2
  111. package/Providers/Configuration/ProviderConfiguration.d.ts +4 -4
  112. package/Providers/Configuration/ProviderConfigurationNode.d.ts +4 -3
  113. package/Providers/Configuration/ProviderConfigurationType.d.ts +4 -4
  114. package/Providers/Configuration/ProviderGeofenceBase.d.ts +6 -8
  115. package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  116. package/Providers/Provider.d.ts +80 -14
  117. package/Providers/ProviderAdvanced.d.ts +4 -4
  118. package/Providers/ProviderCommand.d.ts +2 -2
  119. package/Providers/ProviderControl.d.ts +3 -3
  120. package/Providers/ProviderData.d.ts +2 -2
  121. package/Providers/ProviderGeneral.d.ts +18 -10
  122. package/Reports/ReportBreakdown.d.ts +9 -32
  123. package/Reports/ReportBreakdownJob.d.ts +6 -31
  124. package/Reports/ReportBreakdownMessage.d.ts +7 -32
  125. package/Reports/ReportBreakdownTask.d.ts +6 -31
  126. package/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  127. package/Reports/ReportNotifications.d.ts +3 -3
  128. package/Reports/ReportOptions.d.ts +3 -2
  129. package/Reports/ReportParameter.d.ts +2 -1
  130. package/Reports/ReportRecurrence.d.ts +2 -2
  131. package/Reports/ReportResult.d.ts +9 -9
  132. package/Reports/ReportSchedule.d.ts +3 -3
  133. package/Reports/ReportScorecard.d.ts +3 -3
  134. package/Reports/ReportScorecardParameter.d.ts +2 -2
  135. package/Reports/ReportScorecardRules.d.ts +2 -2
  136. package/Reports/ReportSummary.d.ts +5 -33
  137. package/Reports/ReportTemplate.d.ts +3 -3
  138. package/Reports/ReportTotal.d.ts +2 -2
  139. package/index.d.ts +406 -0
  140. package/package.json +31 -22
  141. package/{Storage.d.ts → storage.d.ts} +11 -1
  142. package/trakit-objects.min.js +8 -0
  143. package/API/Component.d.ts +0 -42
  144. package/API/Compound.d.ts +0 -19
  145. package/Assets/Person.d.ts +0 -25
  146. package/Assets/PersonGeneral.d.ts +0 -35
  147. package/Assets/Trailer.d.ts +0 -42
  148. package/Assets/TrailerGeneral.d.ts +0 -47
  149. package/Assets/Vehicle.d.ts +0 -73
  150. package/Assets/VehicleAdvanced.d.ts +0 -25
  151. package/Assets/VehicleGeneral.d.ts +0 -33
  152. package/README.md +0 -13
  153. package/Reports/ReportDataTotal.d.ts +0 -50
  154. package/objects.d.ts +0 -534
  155. package/objects.min.js +0 -7
@@ -1,6 +1,6 @@
1
1
  import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
2
2
  import { ISerializable } from "../API/Interfaces/ISerializable";
3
- import { datetime, ulong } from "../API/Types";
3
+ import { datetime, ulong, JsonObject } from "../API/Types";
4
4
  import { Provider } from "../Providers/Provider";
5
5
  import { Asset } from "./Asset";
6
6
  /**
@@ -11,7 +11,7 @@ export declare class AssetAttribute implements ISerializable, IBelongAsset {
11
11
  *
12
12
  * @param json
13
13
  */
14
- static fromJSON(json: any): AssetAttribute;
14
+ static fromJSON(json: JsonObject): AssetAttribute;
15
15
  /**
16
16
  * Display name of the attribute.
17
17
  */
@@ -1,7 +1,7 @@
1
1
  import { BaseComponent } from "../API/BaseComponent";
2
2
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
3
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
4
- import { ulong } from "../API/Types";
4
+ import { JsonObject, ulong } from "../API/Types";
5
5
  import { Company } from "../Companies/Company";
6
6
  import { DispatchDirection } from "../Dispatch/DispatchDirection";
7
7
  import { DispatchJob } from "../Dispatch/DispatchJob";
@@ -13,7 +13,7 @@ export declare class AssetDispatch extends BaseComponent implements IIdUlong, IB
13
13
  *
14
14
  * @param json
15
15
  */
16
- static fromJSON(json: any): AssetDispatch;
16
+ static fromJSON(json: JsonObject): AssetDispatch;
17
17
  /**
18
18
  * Unique identifier of this asset.
19
19
  * {@link Asset.id}
@@ -47,17 +47,10 @@ export declare class AssetDispatch extends BaseComponent implements IIdUlong, IB
47
47
  * Timestamp from the last update to this {@link AssetDispatch} by a {@link User}, {@link Machine}, {@link Asset}, or an assigned {@link DispatchJob}.
48
48
  */
49
49
  lastDispatched: Date;
50
- toJSON(): {
51
- id: number | null;
52
- v: number[];
53
- companyId: number | null;
54
- jobs: number[];
55
- directions: DispatchDirection[];
56
- lastDispatched: string;
57
- };
58
- fromJSON(json: any, force?: boolean): boolean;
50
+ toJSON(): JsonObject;
51
+ fromJSON(json: JsonObject, force?: boolean): boolean;
59
52
  /**
60
53
  * The {@link id} is the key.
61
54
  */
62
- getKey(): string;
55
+ getKey(): number;
63
56
  }
@@ -1,3 +1,4 @@
1
+ import { Contact } from "../Accounts/Contact";
1
2
  import { BaseComponent } from "../API/BaseComponent";
2
3
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
4
  import { IIconic } from "../API/Interfaces/IIconic";
@@ -6,21 +7,15 @@ import { ILabelled } from "../API/Interfaces/ILabelled";
6
7
  import { INamed } from "../API/Interfaces/INamed";
7
8
  import { IPictured } from "../API/Interfaces/IPictured";
8
9
  import { ISuspendable } from "../API/Interfaces/ISuspendable";
9
- import { codified, ulong } from "../API/Types";
10
+ import { JsonObject, codified, colour, ulong, ushort } from "../API/Types";
10
11
  import { Company } from "../Companies/Company";
11
12
  import { Icon } from "../Images/Icon";
12
13
  import { Picture } from "../Images/Picture";
13
14
  import { AssetType } from "./AssetType";
14
- import { VehicleGeneral } from "./VehicleGeneral";
15
15
  /**
16
16
  * Seldom changing details about a thing.
17
17
  */
18
18
  export declare class AssetGeneral extends BaseComponent implements IIdUlong, INamed, IIconic, IBelongCompany, ILabelled, IPictured, ISuspendable {
19
- /**
20
- *
21
- * @param json
22
- */
23
- static fromJSON(json: any): AssetGeneral | VehicleGeneral;
24
19
  /**
25
20
  * Unique identifier of this asset.
26
21
  * {@link Asset.id}
@@ -78,26 +73,51 @@ export declare class AssetGeneral extends BaseComponent implements IIdUlong, INa
78
73
  * Name/value collections of custom fields used to refer to external systems.
79
74
  */
80
75
  references: Map<string, string>;
81
- toJSON(): {
82
- pictures?: number[] | undefined;
83
- messagingAddress?: string | undefined;
84
- references?: object | undefined;
85
- suspended?: boolean | undefined;
86
- since?: string | null | undefined;
87
- id: number | null;
88
- company: number;
89
- kind: AssetType;
90
- name: string;
91
- icon: number;
92
- notes: string;
93
- labels: string[];
94
- v: number[];
95
- };
96
- fromJSON(json: any, force?: boolean): boolean;
76
+ /**
77
+ * A reference to their Company's Contact information.
78
+ * {@link Contact.id}
79
+ */
80
+ contactId: ulong;
81
+ /**
82
+ * Contact information for this person.
83
+ * {@link Contact.id}
84
+ */
85
+ get contact(): Contact;
86
+ set contact(value: Contact);
87
+ /**
88
+ * Manufacturer's unique identification number (Vehicle Identification Number).
89
+ */
90
+ vin: string;
91
+ /**
92
+ * The license plate.
93
+ */
94
+ plate: string;
95
+ /**
96
+ * Manufacturer's name.
97
+ */
98
+ make: string;
99
+ /**
100
+ * Manufacturer's model name/number.
101
+ */
102
+ model: string;
103
+ /**
104
+ * Year of manufacturing.
105
+ */
106
+ year: ushort;
107
+ /**
108
+ * Primary colour of the vehicle (given in 24bit hex; #RRGGBB)
109
+ */
110
+ colour: colour;
111
+ /**
112
+ * Manufacturer's unique identification number for this trailer.
113
+ */
114
+ serial: string;
115
+ toJSON(): JsonObject;
116
+ fromJSON(json: JsonObject, force?: boolean): boolean;
97
117
  /**
98
118
  * The {@link id} is the key.
99
119
  */
100
- getKey(): string;
120
+ getKey(): number;
101
121
  /**
102
122
  * Indicates whether this object is suspended from event processing.
103
123
  */
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
- import { datetime } from "../API/Types";
2
+ import { datetime, JsonObject } from "../API/Types";
3
3
  import { AssetPlaceStatusType } from "./AssetPlaceStatusType";
4
4
  /**
5
5
  * A simple status for each place an Asset visits.
@@ -9,7 +9,7 @@ export declare class AssetPlaceStatus implements ISerializable {
9
9
  *
10
10
  * @param json
11
11
  */
12
- static fromJSON(json: any): AssetPlaceStatus;
12
+ static fromJSON(json: JsonObject): AssetPlaceStatus;
13
13
  /**
14
14
  * The kind of interaction.
15
15
  */
@@ -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 { byte, ulong } from "../API/Types";
6
+ import { JsonObject, byte, ulong } from "../API/Types";
7
7
  import { Company } from "../Companies/Company";
8
8
  import { BehaviourParameter } from "./BehaviourParameter";
9
9
  import { BehaviourScript } from "./BehaviourScript";
@@ -69,11 +69,11 @@ export declare class Behaviour extends BaseComponent implements IIdUlong, INamed
69
69
  targets: string | null;
70
70
  filters: string | null;
71
71
  priority: number;
72
- parameters: object;
72
+ parameters: JsonObject;
73
73
  };
74
- fromJSON(json: any, force?: boolean): boolean;
74
+ fromJSON(json: JsonObject, force?: boolean): boolean;
75
75
  /**
76
76
  * The {@link id} is the key.
77
77
  */
78
- getKey(): string;
78
+ getKey(): number;
79
79
  }
@@ -2,7 +2,7 @@ import { BaseComponent } from "../API/BaseComponent";
2
2
  import { IBelongAsset } from "../API/Interfaces/IBelongAsset";
3
3
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
4
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
- import { uint, ulong } from "../API/Types";
5
+ import { JsonObject, uint, ulong } from "../API/Types";
6
6
  import { Asset } from "../Assets/Asset";
7
7
  import { Company } from "../Companies/Company";
8
8
  import { Behaviour } from "./Behaviour";
@@ -89,9 +89,9 @@ export declare class BehaviourLog extends BaseComponent implements IIdUlong, IBe
89
89
  line: number;
90
90
  character: number;
91
91
  };
92
- fromJSON(json: any, force?: boolean): boolean;
92
+ fromJSON(json: JsonObject, force?: boolean): boolean;
93
93
  /**
94
94
  * The {@link id} is the key.
95
95
  */
96
- getKey(): string;
96
+ getKey(): number;
97
97
  }
@@ -1,5 +1,6 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
2
  import { BehaviourParameterType } from "./BehaviourParameterType";
3
+ import { JsonObject } from "../API/Types";
3
4
  /**
4
5
  * Definition of an argument passed to a Behaviour Script.
5
6
  */
@@ -9,7 +10,7 @@ export declare class BehaviourParameter implements ISerializable {
9
10
  * @param json
10
11
  * @returns
11
12
  */
12
- static fromJSON(json: any): BehaviourParameter;
13
+ static fromJSON(json: JsonObject): BehaviourParameter;
13
14
  /**
14
15
  * Simple type information for the compiler.
15
16
  */
@@ -5,7 +5,7 @@ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
5
  import { INamed } from "../API/Interfaces/INamed";
6
6
  import { IVisual } from "../API/Interfaces/IVisual";
7
7
  import { SearchPattern } from "../API/SearchPattern";
8
- import { codified, colour, ulong } from "../API/Types";
8
+ import { JsonObject, codified, colour, ulong } from "../API/Types";
9
9
  import { Company } from "../Companies/Company";
10
10
  import { BehaviourParameter } from "./BehaviourParameter";
11
11
  /**
@@ -71,14 +71,14 @@ export declare class BehaviourScript extends BaseComponent implements IIdUlong,
71
71
  global: boolean;
72
72
  source: string;
73
73
  filters: string | null;
74
- parameters: object;
74
+ parameters: JsonObject;
75
75
  fill: string;
76
76
  stroke: string;
77
77
  graphic: string;
78
78
  };
79
- fromJSON(json: any, force?: boolean): boolean;
79
+ fromJSON(json: JsonObject, force?: boolean): boolean;
80
80
  /**
81
81
  * The {@link id} is the key.
82
82
  */
83
- getKey(): string;
83
+ getKey(): number;
84
84
  }
@@ -3,7 +3,7 @@ import { IBelongBillingProfile } from "../API/Interfaces/IBelongBillingProfile";
3
3
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
4
  import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
5
  import { INamed } from "../API/Interfaces/INamed";
6
- import { double, ulong } from "../API/Types";
6
+ import { JsonObject, double, ulong } from "../API/Types";
7
7
  import { Company } from "../Companies/Company";
8
8
  import { BillingProfile } from "./BillingProfile";
9
9
  /**
@@ -77,9 +77,9 @@ export declare abstract class BillableBase extends BaseComponent implements IIdU
77
77
  end: string | null;
78
78
  amount: number | null;
79
79
  };
80
- fromJSON(json: any, force?: boolean): boolean;
80
+ fromJSON(json: JsonObject, force?: boolean): boolean;
81
81
  /**
82
82
  * The {@link id} is the key.
83
83
  */
84
- getKey(): string;
84
+ getKey(): number;
85
85
  }
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
- import { double, uint } from "../API/Types";
2
+ import { double, uint, JsonObject } from "../API/Types";
3
3
  /**
4
4
  * Description of a tiered SMS messaging limit
5
5
  */
@@ -8,7 +8,7 @@ export declare class BillableSmsProfile implements ISerializable {
8
8
  *
9
9
  * @param json
10
10
  */
11
- static fromJSON(json: any): BillableSmsProfile;
11
+ static fromJSON(json: JsonObject): BillableSmsProfile;
12
12
  /**
13
13
  * The maximum number of messages sent per cycle
14
14
  */
@@ -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 { ulong } from "../API/Types";
5
+ import { ulong, JsonObject } from "../API/Types";
6
6
  import { Company } from "../Companies/Company";
7
7
  import { BillableSmsProfile } from "./BillableSmsProfile";
8
8
  import { BillingCurrency } from "./BillingCurrency";
@@ -99,9 +99,9 @@ export declare class BillingProfile extends BaseComponent implements IIdUlong, I
99
99
  cyclePostDated: boolean;
100
100
  googleServicesEnabled: boolean;
101
101
  };
102
- fromJSON(json: any, force?: boolean): boolean;
102
+ fromJSON(json: JsonObject, force?: boolean): boolean;
103
103
  /**
104
104
  * The {@link id} is the key.
105
105
  */
106
- getKey(): string;
106
+ getKey(): number;
107
107
  }
@@ -2,7 +2,7 @@ import { IBelongBillingProfile } from '../../API/Interfaces/IBelongBillingProfil
2
2
  import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
3
3
  import { IIdUlong } from '../../API/Interfaces/IIdUlong';
4
4
  import { SearchPattern } from '../../API/SearchPattern';
5
- import { uint } from '../../API/Types';
5
+ import { JsonObject, uint } from '../../API/Types';
6
6
  import { BillableBase } from '../BillableBase';
7
7
  /**
8
8
  * Hosted things share a lot of common attributes.
@@ -37,5 +37,5 @@ export declare abstract class BillableHostingBase extends BillableBase implement
37
37
  end: string | null;
38
38
  amount: number | null;
39
39
  };
40
- fromJSON(json: any, force?: boolean): boolean;
40
+ fromJSON(json: JsonObject, force?: boolean): boolean;
41
41
  }
@@ -1,3 +1,4 @@
1
+ import { JsonObject } from '../../API/Types';
1
2
  import { BillableHostingBase } from './BillableHostingBase';
2
3
  import { BillableHostingType } from './BillableHostingType';
3
4
  /**
@@ -31,5 +32,5 @@ export declare class BillableHostingDiscount extends BillableHostingBase {
31
32
  end: string | null;
32
33
  amount: number | null;
33
34
  };
34
- fromJSON(json: any, force?: boolean): boolean;
35
+ fromJSON(json: JsonObject, force?: boolean): boolean;
35
36
  }
@@ -1,3 +1,4 @@
1
+ import { JsonObject } from '../../API/Types';
1
2
  import { BillableHostingBase } from './BillableHostingBase';
2
3
  import { BillableHostingLicenseType } from './BillableHostingLicenseType';
3
4
  /**
@@ -25,5 +26,5 @@ export declare class BillableHostingLicense extends BillableHostingBase {
25
26
  end: string | null;
26
27
  amount: number | null;
27
28
  };
28
- fromJSON(json: any, force?: boolean): boolean;
29
+ fromJSON(json: JsonObject, force?: boolean): boolean;
29
30
  }
@@ -1,3 +1,4 @@
1
+ import { JsonObject } from '../../API/Types';
1
2
  import { BillableHostingBase } from './BillableHostingBase';
2
3
  import { BillableHostingType } from './BillableHostingType';
3
4
  /**
@@ -25,5 +26,5 @@ export declare class BillableHostingRule extends BillableHostingBase {
25
26
  end: string | null;
26
27
  amount: number | null;
27
28
  };
28
- fromJSON(json: any, force?: boolean): boolean;
29
+ fromJSON(json: JsonObject, force?: boolean): boolean;
29
30
  }
@@ -3,7 +3,7 @@ import { IBelongBillingProfile } from '../../API/Interfaces/IBelongBillingProfil
3
3
  import { IBelongCompany } from '../../API/Interfaces/IBelongCompany';
4
4
  import { IIdUlong } from '../../API/Interfaces/IIdUlong';
5
5
  import { INamed } from '../../API/Interfaces/INamed';
6
- import { double, ulong } from '../../API/Types';
6
+ import { double, JsonObject, ulong } from '../../API/Types';
7
7
  import { Company } from '../../Companies/Company';
8
8
  import { BillingCurrency } from '../BillingCurrency';
9
9
  import { BillingProfile } from '../BillingProfile';
@@ -106,9 +106,9 @@ export declare class BillingReport extends BaseComponent implements IIdUlong, IN
106
106
  summary: any[];
107
107
  breakdown: any[];
108
108
  };
109
- fromJSON(json: any, force?: boolean): boolean;
109
+ fromJSON(json: JsonObject, force?: boolean): boolean;
110
110
  /**
111
111
  * The {@link id} is the key.
112
112
  */
113
- getKey(): string;
113
+ getKey(): number;
114
114
  }
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../../API/Interfaces/ISerializable";
2
- import { ulong } from "../../API/Types";
2
+ import { JsonObject, ulong } from "../../API/Types";
3
3
  import { Company } from "../../Companies/Company";
4
4
  import { BillingReportLicenseBreakdown } from "./BillingReportLicenseBreakdown";
5
5
  import { BillingReportServiceBreakdown } from "./BillingReportServiceBreakdown";
@@ -7,7 +7,7 @@ import { BillingReportServiceBreakdown } from "./BillingReportServiceBreakdown";
7
7
  * Billing breakdown per target company.
8
8
  */
9
9
  export declare class BillingReportBreakdown implements ISerializable {
10
- static fromJSON(json: any): BillingReportBreakdown;
10
+ static fromJSON(json: JsonObject): BillingReportBreakdown;
11
11
  /**
12
12
  * The target company to which this breakdown instance belongs.
13
13
  * {@link Company.id}
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../../API/Interfaces/ISerializable";
2
- import { double } from "../../API/Types";
2
+ import { double, JsonObject } from "../../API/Types";
3
3
  /**
4
4
  * Amount billed for a type of hosting (service or license) per target company.
5
5
  */
@@ -9,7 +9,7 @@ export declare class BillingReportHostingSummary implements ISerializable {
9
9
  * @param json
10
10
  * @returns
11
11
  */
12
- static fromJSON(json: any): BillingReportHostingSummary;
12
+ static fromJSON(json: JsonObject): BillingReportHostingSummary;
13
13
  /**
14
14
  * SKU being billed
15
15
  */
@@ -1,6 +1,6 @@
1
1
  import { INamed } from "../../API/Interfaces/INamed";
2
2
  import { ISerializable } from "../../API/Interfaces/ISerializable";
3
- import { datetime, double, ulong } from "../../API/Types";
3
+ import { datetime, double, JsonObject, ulong } from "../../API/Types";
4
4
  import { Provider } from "../../Providers/Provider";
5
5
  import { ProviderType } from "../../Providers/ProviderType";
6
6
  /**
@@ -11,7 +11,7 @@ export declare class BillingReportLicenseBreakdown implements INamed, ISerializa
11
11
  *
12
12
  * @param json
13
13
  */
14
- static fromJSON(json: any): BillingReportLicenseBreakdown;
14
+ static fromJSON(json: JsonObject): BillingReportLicenseBreakdown;
15
15
  /**
16
16
  * The provider to which this breakdown instance belongs.
17
17
  * {@link Provider.id}
@@ -1,7 +1,7 @@
1
1
  import { IBelongAsset } from "../../API/Interfaces/IBelongAsset";
2
2
  import { INamed } from "../../API/Interfaces/INamed";
3
3
  import { ISerializable } from "../../API/Interfaces/ISerializable";
4
- import { codified, datetime, double, phone, ulong } from "../../API/Types";
4
+ import { codified, datetime, double, JsonObject, phone, ulong } from "../../API/Types";
5
5
  import { Asset } from "../../Assets/Asset";
6
6
  import { AssetType } from "../../Assets/AssetType";
7
7
  import { Provider } from "../../Providers/Provider";
@@ -14,7 +14,7 @@ export declare class BillingReportServiceBreakdown implements INamed, IBelongAss
14
14
  * @param json
15
15
  * @returns
16
16
  */
17
- static fromJSON(json: any): BillingReportServiceBreakdown;
17
+ static fromJSON(json: JsonObject): BillingReportServiceBreakdown;
18
18
  /**
19
19
  * The asset to which this breakdown instance belongs.
20
20
  * {@link Asset.id}
@@ -1,13 +1,13 @@
1
1
  import { INamed } from "../../API/Interfaces/INamed";
2
2
  import { ISerializable } from "../../API/Interfaces/ISerializable";
3
- import { ulong } from "../../API/Types";
3
+ import { JsonObject, ulong } from "../../API/Types";
4
4
  import { Company } from "../../Companies/Company";
5
5
  import { BillingReportHostingSummary } from "./BillingReportHostingSummary";
6
6
  /**
7
7
  * Summarized bill per target.
8
8
  */
9
9
  export declare class BillingReportSummary implements INamed, ISerializable {
10
- static fromJSON(json: any): BillingReportSummary;
10
+ static fromJSON(json: JsonObject): BillingReportSummary;
11
11
  /**
12
12
  * The target company to which this summary instance belongs.
13
13
  * {@link Company.id}
@@ -1,5 +1,5 @@
1
1
  import { ISerializable } from "../API/Interfaces/ISerializable";
2
- import { colour } from "../API/Types";
2
+ import { colour, JsonObject } from "../API/Types";
3
3
  /**
4
4
  * Part of the White-labelling profile definitions.
5
5
  */
@@ -8,7 +8,7 @@ export declare class ColourStyle implements ISerializable {
8
8
  *
9
9
  * @param json
10
10
  */
11
- static fromJSON(json: any): ColourStyle;
11
+ static fromJSON(json: JsonObject): ColourStyle;
12
12
  /**
13
13
  * The colour of the background.
14
14
  */
@@ -5,13 +5,9 @@ import { IAmCompany } from '../API/Interfaces/IAmCompany';
5
5
  import { IBelongCompany } from '../API/Interfaces/IBelongCompany';
6
6
  import { IIdUlong } from '../API/Interfaces/IIdUlong';
7
7
  import { INamed } from '../API/Interfaces/INamed';
8
- import { codified, ulong } from '../API/Types';
8
+ import { JsonObject, codified, ulong } from '../API/Types';
9
9
  import { Picture } from '../Images/Picture';
10
- import { CompanyDirectory } from './CompanyDirectory';
11
- import { CompanyGeneral } from './CompanyGeneral';
12
- import { CompanyPolicies } from './CompanyPolicies';
13
10
  import { CompanyReseller } from './CompanyReseller';
14
- import { CompanyStyles } from './CompanyStyles';
15
11
  import { LabelStyle } from './LabelStyle';
16
12
  import { PasswordPolicy } from './PasswordPolicy';
17
13
  import { SessionPolicy } from './SessionPolicy';
@@ -19,6 +15,7 @@ import { SessionPolicy } from './SessionPolicy';
19
15
  * The full company object which contains all fields.
20
16
  */
21
17
  export declare class Company extends BaseCompound implements IIdUlong, INamed, IAmCompany, IBelongCompany {
18
+ #private;
22
19
  /**
23
20
  *
24
21
  */
@@ -36,13 +33,6 @@ export declare class Company extends BaseCompound implements IIdUlong, INamed, I
36
33
  set parent(value: Company);
37
34
  get parentId(): number;
38
35
  set parentId(value: number);
39
- get company(): Company;
40
- get companyId(): number;
41
- set companyId(value: number);
42
- /**
43
- *
44
- */
45
- general: CompanyGeneral;
46
36
  /**
47
37
  * The organizational name.
48
38
  */
@@ -58,19 +48,11 @@ export declare class Company extends BaseCompound implements IIdUlong, INamed, I
58
48
  */
59
49
  get references(): Map<string, string>;
60
50
  set references(value: Map<string, string>);
61
- /**
62
- *
63
- */
64
- directory: CompanyDirectory;
65
51
  /**
66
52
  * The list of Contacts from this and other companies broken down by contact role.
67
53
  */
68
54
  get employees(): Map<string, ulong[]>;
69
55
  set employees(value: Map<string, ulong[]>);
70
- /**
71
- *
72
- */
73
- policies: CompanyPolicies;
74
56
  /**
75
57
  * The session lifetime policy.
76
58
  */
@@ -81,10 +63,6 @@ export declare class Company extends BaseCompound implements IIdUlong, INamed, I
81
63
  */
82
64
  get passwordPolicy(): PasswordPolicy;
83
65
  set passwordPolicy(value: PasswordPolicy);
84
- /**
85
- *
86
- */
87
- styles: CompanyStyles;
88
66
  /**
89
67
  * The styles for labels added to Assets, Places, and other things.
90
68
  */
@@ -103,6 +81,42 @@ export declare class Company extends BaseCompound implements IIdUlong, INamed, I
103
81
  *
104
82
  */
105
83
  toJSON(): {
84
+ v: number[];
85
+ id: number | null;
86
+ parent: number;
87
+ contactInfo?: JsonObject | undefined;
88
+ serviceName?: string | undefined;
89
+ logo?: string | undefined;
90
+ icon?: string | undefined;
91
+ favourite?: string | undefined;
92
+ domain?: string | undefined;
93
+ website?: JsonObject | undefined;
94
+ graphics?: JsonObject | undefined;
95
+ languages?: string[] | undefined;
96
+ gamut?: JsonObject | undefined;
97
+ notifyEmail?: {
98
+ incomingType: import("./NotificationServerEmail").IncomingEmailServerType;
99
+ incomingAddress: string;
100
+ incomingPort: number | null;
101
+ incomingLogin: string;
102
+ incomingSecure: boolean;
103
+ incomingMessageNumber: number | null;
104
+ outgoingType: import("./NotificationServerEmail").OutgoingEmailServerType;
105
+ outgoingAddress: string;
106
+ outgoingPort: number | null;
107
+ outgoingLogin: string;
108
+ outgoingSecure: boolean;
109
+ outgoingReplyTo: string;
110
+ } | undefined;
111
+ notifySms?: {
112
+ notifyLimit: number | null;
113
+ phoneNumbers: JsonObject;
114
+ } | undefined;
115
+ termsPreamble?: string | undefined;
116
+ termsUpdated?: string | null | undefined;
117
+ recoverSubject?: string | undefined;
118
+ recoverBody?: string | undefined;
119
+ recoverIsHtml?: boolean | undefined;
106
120
  sessionPolicy: {
107
121
  applications: string[];
108
122
  ipv4Ranges: string[];
@@ -120,25 +134,26 @@ export declare class Company extends BaseCompound implements IIdUlong, INamed, I
120
134
  expireMode: import("./PasswordExpiryMode").PasswordExpiryMode;
121
135
  expireThreshold: number | null;
122
136
  };
123
- labels: object;
124
- tags: object;
125
- directory: object;
137
+ labels: JsonObject;
138
+ tags: JsonObject;
139
+ directory: JsonObject;
126
140
  name: string;
127
141
  notes: string;
128
- references: object;
129
- id: number | null;
130
- v: number[];
131
- parent: number;
142
+ references: JsonObject;
132
143
  };
133
144
  /**
134
145
  *
135
146
  * @param json
136
147
  */
137
- fromJSON(json: any, force?: boolean): boolean;
148
+ fromJSON(json: JsonObject, force?: boolean): boolean;
138
149
  /**
139
150
  * The {@link id} is the key.
140
151
  */
141
- getKey(): string;
152
+ getKey(): number;
153
+ set companyId(value: number);
154
+ get companyId(): number;
155
+ set company(value: Company);
156
+ get company(): Company;
142
157
  /**
143
158
  *
144
159
  */