@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.
Files changed (275) hide show
  1. package/API/Base.d.ts +1 -6
  2. package/Accounts/Contact.d.ts +2 -2
  3. package/Accounts/Machine.d.ts +2 -1
  4. package/Accounts/Session.d.ts +1 -16
  5. package/Accounts/User.d.ts +2 -3
  6. package/Accounts/UserAdvanced.d.ts +2 -1
  7. package/Accounts/UserAuthentication.d.ts +2 -1
  8. package/Accounts/UserGeneral.d.ts +2 -1
  9. package/Accounts/UserGroup.d.ts +2 -1
  10. package/Assets/Asset.d.ts +35 -5
  11. package/Assets/AssetAdvanced.d.ts +2 -1
  12. package/Assets/AssetDispatch.d.ts +18 -2
  13. package/Assets/AssetGeneral.d.ts +34 -2
  14. package/Behaviours/Behaviour.d.ts +1 -0
  15. package/Behaviours/BehaviourLog.d.ts +1 -0
  16. package/Behaviours/BehaviourScript.d.ts +1 -0
  17. package/Billing/BillingProfile.d.ts +1 -0
  18. package/Billing/Hosting/BillableHostingLicense.d.ts +1 -0
  19. package/Billing/Hosting/BillableHostingRule.d.ts +1 -0
  20. package/Billing/Report/BillingReport.d.ts +1 -0
  21. package/Companies/Company.d.ts +3 -24
  22. package/Companies/CompanyDirectory.d.ts +2 -9
  23. package/Companies/CompanyGeneral.d.ts +2 -1
  24. package/Companies/CompanyPolicy.d.ts +2 -1
  25. package/Companies/CompanyReseller.d.ts +2 -1
  26. package/Companies/CompanyStyle.d.ts +2 -1
  27. package/Dispatch/DispatchJob.d.ts +2 -1
  28. package/Dispatch/DispatchTask.d.ts +1 -0
  29. package/Hosting/Document.d.ts +2 -1
  30. package/Hosting/FormResult.d.ts +2 -1
  31. package/Hosting/FormTemplate.d.ts +2 -1
  32. package/Images/Dashcam.d.ts +3 -2
  33. package/Images/DashcamLive.d.ts +3 -2
  34. package/Images/Icon.d.ts +15 -2
  35. package/Images/Picture.d.ts +2 -1
  36. package/Maintenance/MaintenanceJob.d.ts +2 -1
  37. package/Maintenance/MaintenanceSchedule.d.ts +2 -1
  38. package/Messaging/AssetAlert.d.ts +2 -1
  39. package/Messaging/AssetMessage.d.ts +2 -1
  40. package/Places/Place.d.ts +2 -1
  41. package/Providers/Config/ProviderConfig.d.ts +2 -1
  42. package/Providers/Config/ProviderRegistration.d.ts +2 -1
  43. package/Providers/Config/ProviderScript.d.ts +2 -1
  44. package/Providers/Configuration/ProviderConfiguration.d.ts +2 -1
  45. package/Providers/Configuration/ProviderConfigurationType.d.ts +2 -1
  46. package/Providers/Provider.d.ts +3 -13
  47. package/Providers/ProviderAdvanced.d.ts +2 -1
  48. package/Providers/ProviderControl.d.ts +2 -1
  49. package/Providers/ProviderGeneral.d.ts +2 -1
  50. package/README.md +24 -24
  51. package/Reports/ReportBreakdown.d.ts +32 -1
  52. package/Reports/ReportBreakdownJob.d.ts +32 -1
  53. package/Reports/ReportBreakdownMessage.d.ts +32 -1
  54. package/Reports/ReportBreakdownTask.d.ts +32 -1
  55. package/Reports/ReportResult.d.ts +2 -1
  56. package/Reports/ReportSchedule.d.ts +2 -1
  57. package/Reports/ReportSummary.d.ts +64 -2
  58. package/Reports/ReportTemplate.d.ts +2 -1
  59. package/index.d.ts +1 -1
  60. package/objects/API/Arrays.d.ts +46 -0
  61. package/objects/API/Base.d.ts +19 -0
  62. package/objects/API/BaseComponent.d.ts +40 -0
  63. package/objects/API/BaseCompound.d.ts +19 -0
  64. package/objects/API/Codifier.d.ts +15 -0
  65. package/objects/API/Constants.d.ts +39 -0
  66. package/objects/API/Conversion.d.ts +255 -0
  67. package/objects/API/Encoding.d.ts +9 -0
  68. package/objects/API/Files.d.ts +21 -0
  69. package/objects/API/Functions.d.ts +196 -0
  70. package/objects/API/Geography/Functions.d.ts +236 -0
  71. package/objects/API/Geography/Interfaces.d.ts +150 -0
  72. package/objects/API/Geography/LatLng.d.ts +86 -0
  73. package/objects/API/Geography/LatLngBounds.d.ts +146 -0
  74. package/objects/API/Geography/Position.d.ts +74 -0
  75. package/objects/API/Geography/StreetAddress.d.ts +59 -0
  76. package/objects/API/Geometry/Functions.d.ts +114 -0
  77. package/objects/API/Geometry/Interfaces.d.ts +111 -0
  78. package/objects/API/Geometry/Point.d.ts +81 -0
  79. package/objects/API/Geometry/Radial.d.ts +110 -0
  80. package/objects/API/Geometry/Rectangle.d.ts +159 -0
  81. package/objects/API/Geometry/Size.d.ts +58 -0
  82. package/objects/API/Guid.d.ts +4 -0
  83. package/objects/API/Interfaces/IAmCompany.d.ts +11 -0
  84. package/objects/API/Interfaces/IBelongAsset.d.ts +15 -0
  85. package/objects/API/Interfaces/IBelongBillingProfile.d.ts +15 -0
  86. package/objects/API/Interfaces/IBelongCompany.d.ts +15 -0
  87. package/objects/API/Interfaces/IDeserializable.d.ts +13 -0
  88. package/objects/API/Interfaces/IEnabled.d.ts +10 -0
  89. package/objects/API/Interfaces/IFileSize.d.ts +9 -0
  90. package/objects/API/Interfaces/IGlobal.d.ts +11 -0
  91. package/objects/API/Interfaces/IHavePermissions.d.ts +20 -0
  92. package/objects/API/Interfaces/IHavePreferences.d.ts +29 -0
  93. package/objects/API/Interfaces/IIconic.d.ts +15 -0
  94. package/objects/API/Interfaces/IIdUlong.d.ts +10 -0
  95. package/objects/API/Interfaces/ILabelled.d.ts +10 -0
  96. package/objects/API/Interfaces/INamed.d.ts +13 -0
  97. package/objects/API/Interfaces/IPictured.d.ts +15 -0
  98. package/objects/API/Interfaces/IRequestable.d.ts +22 -0
  99. package/objects/API/Interfaces/ISerializable.d.ts +10 -0
  100. package/objects/API/Interfaces/ISuspendable.d.ts +16 -0
  101. package/objects/API/Interfaces/IVisual.d.ts +18 -0
  102. package/objects/API/Maps.d.ts +28 -0
  103. package/objects/API/Objects.d.ts +5 -0
  104. package/objects/API/SearchPattern.d.ts +46 -0
  105. package/objects/API/TimeSpan.d.ts +109 -0
  106. package/objects/API/Timezone.d.ts +44 -0
  107. package/objects/API/Timezones.d.ts +7 -0
  108. package/objects/API/Types.d.ts +132 -0
  109. package/objects/Accounts/Contact.d.ts +139 -0
  110. package/objects/Accounts/Machine.d.ts +139 -0
  111. package/objects/Accounts/MultiFactorType.d.ts +17 -0
  112. package/objects/Accounts/NotificationMethod.d.ts +17 -0
  113. package/objects/Accounts/Permissions/Authorizer.d.ts +204 -0
  114. package/objects/Accounts/Permissions/Permission.d.ts +56 -0
  115. package/objects/Accounts/Permissions/PermissionEscalation.d.ts +41 -0
  116. package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +19 -0
  117. package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +13 -0
  118. package/objects/Accounts/Permissions/PermissionLevel.d.ts +17 -0
  119. package/objects/Accounts/Permissions/PermissionMethod.d.ts +13 -0
  120. package/objects/Accounts/Permissions/PermissionType.d.ts +280 -0
  121. package/objects/Accounts/SSOIdentityProvider.d.ts +25 -0
  122. package/objects/Accounts/Session.d.ts +89 -0
  123. package/objects/Accounts/SessionStatus.d.ts +29 -0
  124. package/objects/Accounts/SystemsOfUnits.d.ts +13 -0
  125. package/objects/Accounts/User.d.ts +167 -0
  126. package/objects/Accounts/UserAdvanced.d.ts +53 -0
  127. package/objects/Accounts/UserAuthentication.d.ts +55 -0
  128. package/objects/Accounts/UserGeneral.d.ts +98 -0
  129. package/objects/Accounts/UserGroup.d.ts +51 -0
  130. package/objects/Accounts/UserMFA.d.ts +47 -0
  131. package/objects/Accounts/UserNotifications.d.ts +76 -0
  132. package/objects/Accounts/UserSSO.d.ts +37 -0
  133. package/objects/Assets/Asset.d.ts +218 -0
  134. package/objects/Assets/AssetAdvanced.d.ts +77 -0
  135. package/objects/Assets/AssetAttribute.d.ts +71 -0
  136. package/objects/Assets/AssetDispatch.d.ts +55 -0
  137. package/objects/Assets/AssetGeneral.d.ts +127 -0
  138. package/objects/Assets/AssetPlaceStatus.d.ts +31 -0
  139. package/objects/Assets/AssetPlaceStatusType.d.ts +17 -0
  140. package/objects/Assets/AssetType.d.ts +21 -0
  141. package/objects/Behaviours/Behaviour.d.ts +78 -0
  142. package/objects/Behaviours/BehaviourLog.d.ts +95 -0
  143. package/objects/Behaviours/BehaviourLogType.d.ts +21 -0
  144. package/objects/Behaviours/BehaviourParameter.d.ts +38 -0
  145. package/objects/Behaviours/BehaviourParameterType.d.ts +21 -0
  146. package/objects/Behaviours/BehaviourScript.d.ts +83 -0
  147. package/objects/Billing/BillableBase.d.ts +83 -0
  148. package/objects/Billing/BillableSmsProfile.d.ts +26 -0
  149. package/objects/Billing/BillingCurrency.d.ts +17 -0
  150. package/objects/Billing/BillingCycle.d.ts +17 -0
  151. package/objects/Billing/BillingProfile.d.ts +104 -0
  152. package/objects/Billing/Hosting/BillableHostingBase.d.ts +41 -0
  153. package/objects/Billing/Hosting/BillableHostingLicense.d.ts +30 -0
  154. package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +20 -0
  155. package/objects/Billing/Hosting/BillableHostingRule.d.ts +30 -0
  156. package/objects/Billing/Hosting/BillableHostingType.d.ts +41 -0
  157. package/objects/Billing/Report/BillingReport.d.ts +112 -0
  158. package/objects/Billing/Report/BillingReportBreakdown.d.ts +34 -0
  159. package/objects/Billing/Report/BillingReportHostingSummary.d.ts +36 -0
  160. package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +79 -0
  161. package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +124 -0
  162. package/objects/Billing/Report/BillingReportStatus.d.ts +25 -0
  163. package/objects/Billing/Report/BillingReportSummary.d.ts +49 -0
  164. package/objects/Companies/ColourStyle.d.ts +25 -0
  165. package/objects/Companies/Company.d.ts +167 -0
  166. package/objects/Companies/CompanyDirectory.d.ts +52 -0
  167. package/objects/Companies/CompanyGeneral.d.ts +55 -0
  168. package/objects/Companies/CompanyPolicy.d.ts +66 -0
  169. package/objects/Companies/CompanyReseller.d.ts +166 -0
  170. package/objects/Companies/CompanyStyle.d.ts +50 -0
  171. package/objects/Companies/LabelStyle.d.ts +46 -0
  172. package/objects/Companies/NotificationServerEmail.d.ts +99 -0
  173. package/objects/Companies/NotificationServerSms.d.ts +25 -0
  174. package/objects/Companies/PasswordExpiryMode.d.ts +17 -0
  175. package/objects/Companies/PasswordPolicy.d.ts +51 -0
  176. package/objects/Companies/SessionMultiUser.d.ts +17 -0
  177. package/objects/Companies/SessionPolicy.d.ts +47 -0
  178. package/objects/Dispatch/DispatchDirection.d.ts +53 -0
  179. package/objects/Dispatch/DispatchJob.d.ts +107 -0
  180. package/objects/Dispatch/DispatchJobPriority.d.ts +25 -0
  181. package/objects/Dispatch/DispatchStep.d.ts +99 -0
  182. package/objects/Dispatch/DispatchStepState.d.ts +27 -0
  183. package/objects/Dispatch/DispatchStepStatus.d.ts +21 -0
  184. package/objects/Dispatch/DispatchTask.d.ts +154 -0
  185. package/objects/Dispatch/DispatchTaskStatus.d.ts +50 -0
  186. package/objects/Hosting/Document.d.ts +70 -0
  187. package/objects/Hosting/Fields/FormFieldAttachments.d.ts +31 -0
  188. package/objects/Hosting/Fields/FormFieldBase.d.ts +56 -0
  189. package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +1 -0
  190. package/objects/Hosting/Fields/FormFieldBoolean.d.ts +38 -0
  191. package/objects/Hosting/Fields/FormFieldChoice.d.ts +46 -0
  192. package/objects/Hosting/Fields/FormFieldDate.d.ts +26 -0
  193. package/objects/Hosting/Fields/FormFieldNumeric.d.ts +54 -0
  194. package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +32 -0
  195. package/objects/Hosting/Fields/FormFieldSignature.d.ts +17 -0
  196. package/objects/Hosting/Fields/FormFieldText.d.ts +32 -0
  197. package/objects/Hosting/Fields/FormFieldTime.d.ts +37 -0
  198. package/objects/Hosting/Fields/FormFieldTimezone.d.ts +14 -0
  199. package/objects/Hosting/FormFieldType.d.ts +127 -0
  200. package/objects/Hosting/FormResult.d.ts +95 -0
  201. package/objects/Hosting/FormTemplate.d.ts +80 -0
  202. package/objects/Images/Dashcam.d.ts +63 -0
  203. package/objects/Images/DashcamBase.d.ts +97 -0
  204. package/objects/Images/DashcamLive.d.ts +36 -0
  205. package/objects/Images/DashcamMediaType.d.ts +17 -0
  206. package/objects/Images/Icon.d.ts +66 -0
  207. package/objects/Images/IconGlyph.d.ts +47 -0
  208. package/objects/Images/IconLabel.d.ts +29 -0
  209. package/objects/Images/IconLayer.d.ts +33 -0
  210. package/objects/Images/Picture.d.ts +72 -0
  211. package/objects/Maintenance/MaintenanceInterval.d.ts +48 -0
  212. package/objects/Maintenance/MaintenanceJob.d.ts +134 -0
  213. package/objects/Maintenance/MaintenanceJobStatus.d.ts +21 -0
  214. package/objects/Maintenance/MaintenanceSchedule.d.ts +118 -0
  215. package/objects/Messaging/AlertPriority.d.ts +17 -0
  216. package/objects/Messaging/AssetAlert.d.ts +29 -0
  217. package/objects/Messaging/AssetMessage.d.ts +40 -0
  218. package/objects/Messaging/MessageBase.d.ts +99 -0
  219. package/objects/Messaging/MessageFolder.d.ts +13 -0
  220. package/objects/Messaging/MessageStatus.d.ts +29 -0
  221. package/objects/Messaging/MessageType.d.ts +33 -0
  222. package/objects/Places/Place.d.ts +114 -0
  223. package/objects/Places/PlaceType.d.ts +25 -0
  224. package/objects/Providers/Config/ProviderConfig.d.ts +70 -0
  225. package/objects/Providers/Config/ProviderRegistration.d.ts +119 -0
  226. package/objects/Providers/Config/ProviderScript.d.ts +86 -0
  227. package/objects/Providers/Config/ProviderScriptBlock.d.ts +41 -0
  228. package/objects/Providers/Config/ProviderScriptParameter.d.ts +49 -0
  229. package/objects/Providers/Config/ProviderScriptParameterType.d.ts +17 -0
  230. package/objects/Providers/Configuration/ProviderConfiguration.d.ts +66 -0
  231. package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +66 -0
  232. package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +62 -0
  233. package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +29 -0
  234. package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +1 -0
  235. package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +28 -0
  236. package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +12 -0
  237. package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +23 -0
  238. package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +28 -0
  239. package/objects/Providers/Provider.d.ts +205 -0
  240. package/objects/Providers/ProviderAdvanced.d.ts +50 -0
  241. package/objects/Providers/ProviderCommand.d.ts +36 -0
  242. package/objects/Providers/ProviderCommandStatus.d.ts +29 -0
  243. package/objects/Providers/ProviderCommandType.d.ts +37 -0
  244. package/objects/Providers/ProviderControl.d.ts +41 -0
  245. package/objects/Providers/ProviderData.d.ts +30 -0
  246. package/objects/Providers/ProviderGeneral.d.ts +121 -0
  247. package/objects/Providers/ProviderType.d.ts +106 -0
  248. package/objects/Reports/ReportBreakdown.d.ts +49 -0
  249. package/objects/Reports/ReportBreakdownJob.d.ts +37 -0
  250. package/objects/Reports/ReportBreakdownMessage.d.ts +40 -0
  251. package/objects/Reports/ReportBreakdownTask.d.ts +46 -0
  252. package/objects/Reports/ReportBreakdown_fromJSON.d.ts +1 -0
  253. package/objects/Reports/ReportFilterMode.d.ts +17 -0
  254. package/objects/Reports/ReportNotifications.d.ts +31 -0
  255. package/objects/Reports/ReportOptions.d.ts +52 -0
  256. package/objects/Reports/ReportParameter.d.ts +26 -0
  257. package/objects/Reports/ReportParameterType.d.ts +59 -0
  258. package/objects/Reports/ReportRecurrence.d.ts +54 -0
  259. package/objects/Reports/ReportRecurrenceType.d.ts +34 -0
  260. package/objects/Reports/ReportResult.d.ts +169 -0
  261. package/objects/Reports/ReportResultData.d.ts +17 -0
  262. package/objects/Reports/ReportSchedule.d.ts +111 -0
  263. package/objects/Reports/ReportScorecard.d.ts +38 -0
  264. package/objects/Reports/ReportScorecardParameter.d.ts +31 -0
  265. package/objects/Reports/ReportScorecardRules.d.ts +26 -0
  266. package/objects/Reports/ReportStatus.d.ts +29 -0
  267. package/objects/Reports/ReportSummary.d.ts +90 -0
  268. package/objects/Reports/ReportSummaryReason.d.ts +27 -0
  269. package/objects/Reports/ReportTemplate.d.ts +81 -0
  270. package/objects/Reports/ReportTotal.d.ts +47 -0
  271. package/objects/Reports/ReportType.d.ts +42 -0
  272. package/objects/index.d.ts +406 -0
  273. package/objects/storage.d.ts +176 -0
  274. package/package.json +36 -36
  275. package/trakit-objects.min.js +2 -2
@@ -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
+ }
@@ -0,0 +1,52 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IAmCompany } from "../API/Interfaces/IAmCompany";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { JsonObject, codified, ulong } from "../API/Types";
6
+ import { Company } from "./Company";
7
+ /**
8
+ * The list of Contacts from this and other companies broken down by contact role.
9
+ */
10
+ export declare class CompanyDirectory extends BaseComponent implements IIdUlong, IAmCompany, IBelongCompany {
11
+ /**
12
+ * Unique identifier of the Company.
13
+ * {@link Company.id}
14
+ */
15
+ id: ulong;
16
+ /**
17
+ * The unique identifier of this company's parent organization.
18
+ * {@link Company.id}
19
+ */
20
+ parentId: ulong;
21
+ /**
22
+ * The unique identifier of this {@link Company}'s parent organization.
23
+ */
24
+ get parent(): Company;
25
+ /**
26
+ * The list of {@link Contact}s from this and other companies broken down by contact role.
27
+ */
28
+ employees: Map<codified, ulong[]>;
29
+ /**
30
+ *
31
+ * @returns
32
+ */
33
+ toJSON(): {
34
+ id: number | null;
35
+ v: number[];
36
+ parent: number;
37
+ directory: JsonObject;
38
+ };
39
+ /**
40
+ *
41
+ * @param json
42
+ */
43
+ fromJSON(json: JsonObject, force?: boolean): boolean;
44
+ /**
45
+ * The {@link id} is the key.
46
+ */
47
+ getKey(): number;
48
+ set companyId(value: number);
49
+ get companyId(): number;
50
+ set company(value: Company);
51
+ get company(): Company;
52
+ }
@@ -0,0 +1,55 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IAmCompany } from "../API/Interfaces/IAmCompany";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { INamed } from "../API/Interfaces/INamed";
6
+ import { JsonObject, ulong } from "../API/Types";
7
+ import { Company } from "./Company";
8
+ /**
9
+ * General details about a company.
10
+ */
11
+ export declare class CompanyGeneral extends BaseComponent implements IIdUlong, INamed, IAmCompany, IBelongCompany {
12
+ /**
13
+ * Unique identifier of the Company.
14
+ * {@link Company.id}
15
+ */
16
+ id: ulong;
17
+ /**
18
+ * The unique identifier of this company's parent organization.
19
+ * {@link Company.id}
20
+ */
21
+ parentId: ulong;
22
+ /**
23
+ * The unique identifier of this {@link Company}'s parent organization.
24
+ */
25
+ get parent(): Company;
26
+ /**
27
+ * The organizational name.
28
+ */
29
+ name: string;
30
+ /**
31
+ * Notes.
32
+ */
33
+ notes: string;
34
+ /**
35
+ * Name/value collections of custom fields used to refer to external systems.
36
+ */
37
+ references: Map<string, string>;
38
+ toJSON(): {
39
+ id: number | null;
40
+ v: number[];
41
+ parent: number;
42
+ name: string;
43
+ notes: string;
44
+ references: JsonObject;
45
+ };
46
+ fromJSON(json: JsonObject, force?: boolean): boolean;
47
+ /**
48
+ * The {@link id} is the key.
49
+ */
50
+ getKey(): number;
51
+ set companyId(value: number);
52
+ get companyId(): number;
53
+ set company(value: Company);
54
+ get company(): Company;
55
+ }
@@ -0,0 +1,66 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IAmCompany } from "../API/Interfaces/IAmCompany";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { JsonObject, ulong } from "../API/Types";
6
+ import { Company } from "./Company";
7
+ import { PasswordPolicy } from "./PasswordPolicy";
8
+ import { SessionPolicy } from "./SessionPolicy";
9
+ /**
10
+ * The password and session lifetime policies for this Company.
11
+ */
12
+ export declare class CompanyPolicy extends BaseComponent implements IIdUlong, IAmCompany, IBelongCompany {
13
+ /**
14
+ * Unique identifier of the Company.
15
+ * {@link Company.id}
16
+ */
17
+ id: ulong;
18
+ /**
19
+ * The unique identifier of this company's parent organization.
20
+ * {@link Company.id}
21
+ */
22
+ parentId: ulong;
23
+ /**
24
+ * The unique identifier of this {@link Company}'s parent organization.
25
+ */
26
+ get parent(): Company;
27
+ /**
28
+ * The session lifetime policy.
29
+ */
30
+ sessionPolicy: SessionPolicy;
31
+ /**
32
+ * The password complexity and expiry policy.
33
+ */
34
+ passwordPolicy: PasswordPolicy;
35
+ toJSON(): {
36
+ id: number | null;
37
+ v: number[];
38
+ parent: number;
39
+ sessionPolicy: {
40
+ applications: string[];
41
+ ipv4Ranges: string[];
42
+ multiUser: import("./SessionMultiUser").SessionMultiUser;
43
+ idleAllowed: boolean;
44
+ expireTimeout: number | null;
45
+ maxSessions: number | null;
46
+ };
47
+ passwordPolicy: {
48
+ minimumLength: number | null;
49
+ includeLetters: boolean;
50
+ includeNumbers: boolean;
51
+ includeUpperLower: boolean;
52
+ includeSpecial: boolean;
53
+ expireMode: import("./PasswordExpiryMode").PasswordExpiryMode;
54
+ expireThreshold: number | null;
55
+ };
56
+ };
57
+ fromJSON(json: JsonObject, force?: boolean): boolean;
58
+ /**
59
+ * The {@link id} is the key.
60
+ */
61
+ getKey(): number;
62
+ set companyId(value: number);
63
+ get companyId(): number;
64
+ set company(value: Company);
65
+ get company(): Company;
66
+ }
@@ -0,0 +1,166 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IAmCompany } from "../API/Interfaces/IAmCompany";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { JsonObject, codified, colour, ulong } from "../API/Types";
6
+ import { ColourStyle } from "./ColourStyle";
7
+ import { Company } from "./Company";
8
+ import { NotificationServerEmail } from "./NotificationServerEmail";
9
+ import { NotificationServerSms } from "./NotificationServerSms";
10
+ /**
11
+ * Defines the seller company's details for white-labelling.
12
+ */
13
+ export declare class CompanyReseller extends BaseComponent implements IIdUlong, IAmCompany, IBelongCompany {
14
+ /**
15
+ * Unique identifier of the Company.
16
+ * {@link Company.id}
17
+ */
18
+ id: ulong;
19
+ /**
20
+ * The unique identifier of this company's parent organization.
21
+ * {@link Company.id}
22
+ */
23
+ parentId: ulong;
24
+ /**
25
+ * The unique identifier of this {@link Company}'s parent organization.
26
+ */
27
+ get parent(): Company;
28
+ /**
29
+ * A list of {@link Contact}s for company specific things like Technical Support, Billing, etc...
30
+ */
31
+ contactInfo: Map<string, ulong>;
32
+ /**
33
+ * The name of the branded service being provided to the seller's customers.
34
+ */
35
+ serviceName: string;
36
+ /**
37
+ * The name of the image uploaded as the logo (used for regular view).
38
+ */
39
+ logo: string;
40
+ /**
41
+ * The name of the image uploaded as the logo (used for collapsed/mobile view).
42
+ */
43
+ icon: string;
44
+ /**
45
+ * The name of the icon file used for browser bookmarks.
46
+ */
47
+ favourite: string;
48
+ /**
49
+ * The URN and path to the instance of v4.
50
+ * It does not contain the protocol because all instances are required to be HTTPS.
51
+ */
52
+ domain: string;
53
+ /**
54
+ * Themed colours used in the web-based UI.
55
+ */
56
+ website: Map<string, colour>;
57
+ /**
58
+ * A list of symbol names and their corresponding FontAwesome icon names.
59
+ */
60
+ graphics: Map<string, codified>;
61
+ /**
62
+ * A list of supported languages for your customers.
63
+ */
64
+ languages: string[];
65
+ /**
66
+ * Colours used as templates for status tags, labels, and places.
67
+ */
68
+ gamut: Map<string, ColourStyle>;
69
+ /**
70
+ * The server used for notification and conversational email messages sent and received by the system.
71
+ */
72
+ notifyEmail: NotificationServerEmail;
73
+ /**
74
+ * Definition for load-balanced outbound SMS numbers for the reseller.
75
+ */
76
+ notifySms: NotificationServerSms;
77
+ /**
78
+ * A preamble to the general terms and conditions offered by Fleet Freedom.
79
+ */
80
+ termsPreamble: string;
81
+ /**
82
+ * The date and time when the terms were updated.
83
+ * This will promt users who are logging-in to re-agree to the new terms
84
+ */
85
+ termsUpdated: Date;
86
+ /**
87
+ * The subject of the email sent to a user requesting a password reset.
88
+ * @tutorial The following strings are replaced:
89
+ * - %SERVICE% with {serviceName}
90
+ * - %URL% with https://{URN}/recover
91
+ * - %NAME% with user's nickname, contact name, or login
92
+ * - %GUID% with the unique identifier of the reset request
93
+ * - %CLIENT% with the client software's userAgent used to create the request
94
+ * - %IP% with IP address used to create the request
95
+ * - %SERVER% with the server software's userAgent or the software (Kraken, Medusa, Mindflayer)
96
+ */
97
+ recoverSubject: string;
98
+ /**
99
+ * The body of the email sent to a user requesting a password reset.
100
+ * @tutorial The following strings are replaced:
101
+ * - %SERVICE% with {serviceName}
102
+ * - %URL% with https://{URN}/recover
103
+ * - %NAME% with user's nickname, contact name, or login
104
+ * - %GUID% with the unique identifier of the reset request
105
+ * - %CLIENT% with the client software's userAgent used to create the request
106
+ * - %IP% with IP address used to create the request
107
+ * - %SERVER% with the server software's userAgent or the software (Kraken, Medusa, Mindflayer)
108
+ */
109
+ recoverBody: string;
110
+ /**
111
+ * When true, sends the password reset email as an HTML email instead of plain text.
112
+ * @tutorial When false, the following strings are replaced:
113
+ * - &reg; with char 0174
114
+ * - &trade; with char 8482
115
+ * - &copy; with char 0169
116
+ * - &amp; with "&"
117
+ */
118
+ recoverIsHtml: boolean;
119
+ toJSON(): {
120
+ id: number | null;
121
+ v: number[];
122
+ parent: number;
123
+ contactInfo: JsonObject;
124
+ serviceName: string;
125
+ logo: string;
126
+ icon: string;
127
+ favourite: string;
128
+ domain: string;
129
+ website: JsonObject;
130
+ graphics: JsonObject;
131
+ languages: string[];
132
+ gamut: JsonObject;
133
+ notifyEmail: {
134
+ incomingType: import("./NotificationServerEmail").IncomingEmailServerType;
135
+ incomingAddress: string;
136
+ incomingPort: number | null;
137
+ incomingLogin: string;
138
+ incomingSecure: boolean;
139
+ incomingMessageNumber: number | null;
140
+ outgoingType: import("./NotificationServerEmail").OutgoingEmailServerType;
141
+ outgoingAddress: string;
142
+ outgoingPort: number | null;
143
+ outgoingLogin: string;
144
+ outgoingSecure: boolean;
145
+ outgoingReplyTo: string;
146
+ };
147
+ notifySms: {
148
+ notifyLimit: number | null;
149
+ phoneNumbers: JsonObject;
150
+ };
151
+ termsPreamble: string;
152
+ termsUpdated: string | null;
153
+ recoverSubject: string;
154
+ recoverBody: string;
155
+ recoverIsHtml: boolean;
156
+ };
157
+ fromJSON(json: JsonObject, force?: boolean): boolean;
158
+ /**
159
+ * The {@link id} is the key.
160
+ */
161
+ getKey(): number;
162
+ set companyId(value: number);
163
+ get companyId(): number;
164
+ set company(value: Company);
165
+ get company(): Company;
166
+ }
@@ -0,0 +1,50 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IAmCompany } from "../API/Interfaces/IAmCompany";
3
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
4
+ import { IIdUlong } from "../API/Interfaces/IIdUlong";
5
+ import { JsonObject, codified, ulong } from "../API/Types";
6
+ import { Company } from "./Company";
7
+ import { LabelStyle } from "./LabelStyle";
8
+ /**
9
+ * The colours and styles used by this company to tag and label Assets, Places, and other things.
10
+ */
11
+ export declare class CompanyStyle extends BaseComponent implements IIdUlong, IAmCompany, IBelongCompany {
12
+ /**
13
+ * Unique identifier of the Company.
14
+ * {@link Company.id}
15
+ */
16
+ id: ulong;
17
+ /**
18
+ * The unique identifier of this company's parent organization.
19
+ * {@link Company.id}
20
+ */
21
+ parentId: ulong;
22
+ /**
23
+ * The unique identifier of this {@link Company}'s parent organization.
24
+ */
25
+ get parent(): Company;
26
+ /**
27
+ * The styles for labels added to Assets, Places, and other things.
28
+ */
29
+ labels: Map<codified, LabelStyle>;
30
+ /**
31
+ * The styles for status tags added to Assets.
32
+ */
33
+ tags: Map<codified, LabelStyle>;
34
+ toJSON(): {
35
+ id: number | null;
36
+ v: number[];
37
+ parent: number;
38
+ labels: JsonObject;
39
+ tags: JsonObject;
40
+ };
41
+ fromJSON(json: JsonObject, force?: boolean): boolean;
42
+ /**
43
+ * The {@link id} is the key.
44
+ */
45
+ getKey(): number;
46
+ set companyId(value: number);
47
+ get companyId(): number;
48
+ set company(value: Company);
49
+ get company(): Company;
50
+ }
@@ -0,0 +1,46 @@
1
+ import { INamed } from "../API/Interfaces/INamed";
2
+ import { ISerializable } from "../API/Interfaces/ISerializable";
3
+ import { IVisual } from "../API/Interfaces/IVisual";
4
+ import { codified, colour, JsonObject } from "../API/Types";
5
+ /**
6
+ * Visual style identification helper.
7
+ */
8
+ export declare class LabelStyle implements INamed, IVisual, ISerializable {
9
+ /**
10
+ *
11
+ * @param json
12
+ */
13
+ static fromJSON(json: JsonObject): LabelStyle;
14
+ /**
15
+ * The name of this visual style.
16
+ */
17
+ name: string;
18
+ /**
19
+ * The background colour given to this style for easy visual identification.
20
+ */
21
+ fill: colour;
22
+ /**
23
+ * The text/graphic colour given to this style for easy visual identification.
24
+ */
25
+ stroke: colour;
26
+ /**
27
+ * The codified graphic name given to this script for easy visual identification.
28
+ */
29
+ graphic: codified;
30
+ /**
31
+ * Notes!
32
+ */
33
+ notes: string;
34
+ /**
35
+ * The codified name of this style
36
+ */
37
+ get code(): codified;
38
+ constructor(name?: string, fill?: colour, stroke?: colour, graphic?: codified, notes?: string);
39
+ toJSON(): {
40
+ name: string;
41
+ notes: string;
42
+ fill: string;
43
+ stroke: string;
44
+ graphic: string;
45
+ };
46
+ }