@trakit/objects 0.0.5 → 0.0.7

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 (221) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +24 -0
  3. package/{API → _publish/API}/Arrays.d.ts +1 -0
  4. package/{API → _publish/API}/Base.d.ts +1 -0
  5. package/{API → _publish/API}/BaseComponent.d.ts +1 -0
  6. package/{API → _publish/API}/BaseCompound.d.ts +1 -0
  7. package/{API → _publish/API}/Codifier.d.ts +1 -0
  8. package/{API → _publish/API}/Constants.d.ts +1 -0
  9. package/{API → _publish/API}/Conversion.d.ts +3 -2
  10. package/{API → _publish/API}/Encoding.d.ts +1 -0
  11. package/{API → _publish/API}/Files.d.ts +1 -0
  12. package/{API → _publish/API}/Functions.d.ts +1 -0
  13. package/{API → _publish/API}/Guid.d.ts +1 -0
  14. package/{API → _publish/API}/Maps.d.ts +1 -0
  15. package/{API → _publish/API}/Objects.d.ts +1 -0
  16. package/{API → _publish/API}/SearchPattern.d.ts +1 -0
  17. package/{API → _publish/API}/TimeSpan.d.ts +1 -0
  18. package/{API → _publish/API}/Timezone.d.ts +1 -0
  19. package/{API → _publish/API}/Timezones.d.ts +1 -0
  20. package/{API → _publish/API}/Types.d.ts +24 -23
  21. package/{Accounts → _publish/Accounts}/Contact.d.ts +4 -4
  22. package/{Accounts → _publish/Accounts}/Machine.d.ts +1 -0
  23. package/_publish/Accounts/MultiFactorType.d.ts +18 -0
  24. package/{Accounts → _publish/Accounts}/NotificationMethod.d.ts +1 -0
  25. package/_publish/Accounts/SSOIdentityProvider.d.ts +26 -0
  26. package/{Accounts → _publish/Accounts}/Session.d.ts +12 -14
  27. package/{Accounts → _publish/Accounts}/SessionStatus.d.ts +1 -0
  28. package/{Accounts → _publish/Accounts}/SystemsOfUnits.d.ts +1 -0
  29. package/{Accounts → _publish/Accounts}/User.d.ts +34 -13
  30. package/{Accounts → _publish/Accounts}/UserAdvanced.d.ts +2 -2
  31. package/_publish/Accounts/UserAuthentication.d.ts +56 -0
  32. package/{Accounts → _publish/Accounts}/UserGeneral.d.ts +3 -4
  33. package/{Accounts → _publish/Accounts}/UserGroup.d.ts +2 -2
  34. package/_publish/Accounts/UserMFA.d.ts +48 -0
  35. package/{Accounts → _publish/Accounts}/UserNotifications.d.ts +1 -0
  36. package/_publish/Accounts/UserSSO.d.ts +38 -0
  37. package/{Assets → _publish/Assets}/Asset.d.ts +6 -11
  38. package/{Assets → _publish/Assets}/AssetAdvanced.d.ts +2 -2
  39. package/{Assets → _publish/Assets}/AssetAttribute.d.ts +1 -0
  40. package/{Assets → _publish/Assets}/AssetDispatch.d.ts +2 -2
  41. package/{Assets → _publish/Assets}/AssetGeneral.d.ts +3 -4
  42. package/{Assets → _publish/Assets}/AssetPlaceStatus.d.ts +1 -0
  43. package/{Assets → _publish/Assets}/AssetPlaceStatusType.d.ts +1 -0
  44. package/{Assets → _publish/Assets}/AssetType.d.ts +1 -0
  45. package/{Behaviours → _publish/Behaviours}/Behaviour.d.ts +2 -2
  46. package/{Behaviours → _publish/Behaviours}/BehaviourLog.d.ts +3 -4
  47. package/{Behaviours → _publish/Behaviours}/BehaviourLogType.d.ts +1 -0
  48. package/{Behaviours → _publish/Behaviours}/BehaviourParameter.d.ts +1 -0
  49. package/{Behaviours → _publish/Behaviours}/BehaviourParameterType.d.ts +1 -0
  50. package/{Behaviours → _publish/Behaviours}/BehaviourScript.d.ts +2 -2
  51. package/{Billing → _publish/Billing}/BillableBase.d.ts +3 -4
  52. package/{Billing → _publish/Billing}/BillableSmsProfile.d.ts +1 -0
  53. package/{Billing → _publish/Billing}/BillingCurrency.d.ts +1 -0
  54. package/{Billing → _publish/Billing}/BillingCycle.d.ts +1 -0
  55. package/{Billing → _publish/Billing}/BillingProfile.d.ts +5 -7
  56. package/{Companies → _publish/Companies}/ColourStyle.d.ts +1 -0
  57. package/{Companies → _publish/Companies}/Company.d.ts +5 -2
  58. package/{Companies → _publish/Companies}/CompanyDirectory.d.ts +3 -4
  59. package/{Companies → _publish/Companies}/CompanyGeneral.d.ts +2 -2
  60. package/{Companies → _publish/Companies}/CompanyPolicy.d.ts +2 -2
  61. package/{Companies → _publish/Companies}/CompanyReseller.d.ts +3 -4
  62. package/{Companies → _publish/Companies}/CompanyStyle.d.ts +2 -2
  63. package/{Companies → _publish/Companies}/LabelStyle.d.ts +1 -0
  64. package/{Companies → _publish/Companies}/NotificationServerEmail.d.ts +3 -2
  65. package/{Companies → _publish/Companies}/NotificationServerSms.d.ts +1 -0
  66. package/{Companies → _publish/Companies}/PasswordExpiryMode.d.ts +1 -0
  67. package/{Companies → _publish/Companies}/PasswordPolicy.d.ts +1 -0
  68. package/{Companies → _publish/Companies}/SessionMultiUser.d.ts +1 -0
  69. package/{Companies → _publish/Companies}/SessionPolicy.d.ts +1 -0
  70. package/{Dispatch → _publish/Dispatch}/DispatchDirection.d.ts +1 -0
  71. package/{Dispatch → _publish/Dispatch}/DispatchJob.d.ts +2 -3
  72. package/{Dispatch → _publish/Dispatch}/DispatchJobPriority.d.ts +1 -0
  73. package/{Dispatch → _publish/Dispatch}/DispatchStep.d.ts +1 -0
  74. package/{Dispatch → _publish/Dispatch}/DispatchStepState.d.ts +1 -0
  75. package/{Dispatch → _publish/Dispatch}/DispatchStepStatus.d.ts +1 -0
  76. package/{Dispatch → _publish/Dispatch}/DispatchTask.d.ts +3 -4
  77. package/{Dispatch → _publish/Dispatch}/DispatchTaskStatus.d.ts +1 -0
  78. package/{Hosting → _publish/Hosting}/Document.d.ts +2 -2
  79. package/{Hosting → _publish/Hosting}/FormFieldType.d.ts +1 -0
  80. package/{Hosting → _publish/Hosting}/FormResult.d.ts +1 -2
  81. package/{Hosting → _publish/Hosting}/FormTemplate.d.ts +1 -1
  82. package/{Images → _publish/Images}/Dashcam.d.ts +4 -10
  83. package/{Images → _publish/Images}/DashcamBase.d.ts +9 -9
  84. package/{Images → _publish/Images}/DashcamLive.d.ts +4 -10
  85. package/{Images → _publish/Images}/DashcamMediaType.d.ts +1 -0
  86. package/{Images → _publish/Images}/Icon.d.ts +2 -2
  87. package/{Images → _publish/Images}/IconGlyph.d.ts +1 -0
  88. package/{Images → _publish/Images}/IconLabel.d.ts +1 -0
  89. package/{Images → _publish/Images}/IconLayer.d.ts +1 -0
  90. package/{Images → _publish/Images}/Picture.d.ts +2 -2
  91. package/{Maintenance → _publish/Maintenance}/MaintenanceInterval.d.ts +1 -1
  92. package/{Maintenance → _publish/Maintenance}/MaintenanceJob.d.ts +3 -5
  93. package/{Maintenance → _publish/Maintenance}/MaintenanceJobStatus.d.ts +1 -0
  94. package/{Maintenance → _publish/Maintenance}/MaintenanceSchedule.d.ts +2 -2
  95. package/{Messaging → _publish/Messaging}/AlertPriority.d.ts +1 -0
  96. package/{Messaging → _publish/Messaging}/AssetAlert.d.ts +1 -0
  97. package/{Messaging → _publish/Messaging}/AssetMessage.d.ts +1 -0
  98. package/{Messaging → _publish/Messaging}/MessageBase.d.ts +3 -4
  99. package/{Messaging → _publish/Messaging}/MessageFolder.d.ts +1 -0
  100. package/{Messaging → _publish/Messaging}/MessageStatus.d.ts +1 -0
  101. package/{Messaging → _publish/Messaging}/MessageType.d.ts +1 -0
  102. package/{Places → _publish/Places}/Place.d.ts +3 -4
  103. package/{Places → _publish/Places}/PlaceType.d.ts +1 -0
  104. package/{Providers → _publish/Providers}/Provider.d.ts +3 -8
  105. package/{Providers → _publish/Providers}/ProviderAdvanced.d.ts +2 -2
  106. package/{Providers → _publish/Providers}/ProviderCommand.d.ts +1 -0
  107. package/{Providers → _publish/Providers}/ProviderCommandStatus.d.ts +1 -0
  108. package/{Providers → _publish/Providers}/ProviderCommandType.d.ts +1 -0
  109. package/{Providers → _publish/Providers}/ProviderControl.d.ts +2 -2
  110. package/{Providers → _publish/Providers}/ProviderData.d.ts +1 -0
  111. package/{Providers → _publish/Providers}/ProviderGeneral.d.ts +4 -7
  112. package/{Providers → _publish/Providers}/ProviderType.d.ts +1 -0
  113. package/{Reports → _publish/Reports}/ReportBreakdown.d.ts +1 -0
  114. package/{Reports → _publish/Reports}/ReportBreakdownJob.d.ts +1 -0
  115. package/{Reports → _publish/Reports}/ReportBreakdownMessage.d.ts +1 -0
  116. package/{Reports → _publish/Reports}/ReportBreakdownTask.d.ts +1 -0
  117. package/_publish/Reports/ReportBreakdown_fromJSON.d.ts +2 -0
  118. package/{Reports → _publish/Reports}/ReportFilterMode.d.ts +1 -0
  119. package/{Reports → _publish/Reports}/ReportNotifications.d.ts +1 -0
  120. package/{Reports → _publish/Reports}/ReportOptions.d.ts +1 -0
  121. package/{Reports → _publish/Reports}/ReportParameter.d.ts +1 -0
  122. package/{Reports → _publish/Reports}/ReportParameterType.d.ts +1 -0
  123. package/{Reports → _publish/Reports}/ReportRecurrence.d.ts +1 -0
  124. package/{Reports → _publish/Reports}/ReportRecurrenceType.d.ts +1 -0
  125. package/{Reports → _publish/Reports}/ReportResult.d.ts +2 -2
  126. package/{Reports → _publish/Reports}/ReportResultData.d.ts +1 -0
  127. package/{Reports → _publish/Reports}/ReportSchedule.d.ts +2 -2
  128. package/{Reports → _publish/Reports}/ReportScorecard.d.ts +2 -2
  129. package/{Reports → _publish/Reports}/ReportScorecardParameter.d.ts +1 -0
  130. package/{Reports → _publish/Reports}/ReportScorecardRules.d.ts +1 -0
  131. package/{Reports → _publish/Reports}/ReportStatus.d.ts +1 -0
  132. package/{Reports → _publish/Reports}/ReportSummary.d.ts +2 -2
  133. package/{Reports → _publish/Reports}/ReportSummaryReason.d.ts +1 -0
  134. package/{Reports → _publish/Reports}/ReportTemplate.d.ts +2 -2
  135. package/{Reports → _publish/Reports}/ReportTotal.d.ts +2 -2
  136. package/{Reports → _publish/Reports}/ReportType.d.ts +1 -0
  137. package/{index.d.ts → _publish/index.d.ts} +5 -4
  138. package/{storage.d.ts → _publish/storage.d.ts} +1 -0
  139. package/{trakit-objects.min.js → _publish/trakit-objects.min.js} +2 -2
  140. package/package.json +8 -1
  141. package/API/Geography/Functions.d.ts +0 -236
  142. package/API/Geography/Interfaces.d.ts +0 -150
  143. package/API/Geography/LatLng.d.ts +0 -86
  144. package/API/Geography/LatLngBounds.d.ts +0 -146
  145. package/API/Geography/Position.d.ts +0 -74
  146. package/API/Geography/StreetAddress.d.ts +0 -59
  147. package/API/Geometry/Functions.d.ts +0 -114
  148. package/API/Geometry/Interfaces.d.ts +0 -111
  149. package/API/Geometry/Point.d.ts +0 -81
  150. package/API/Geometry/Radial.d.ts +0 -110
  151. package/API/Geometry/Rectangle.d.ts +0 -159
  152. package/API/Geometry/Size.d.ts +0 -58
  153. package/API/Interfaces/IAmCompany.d.ts +0 -11
  154. package/API/Interfaces/IAuditable.d.ts +0 -31
  155. package/API/Interfaces/IBelongAsset.d.ts +0 -15
  156. package/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
  157. package/API/Interfaces/IBelongCompany.d.ts +0 -15
  158. package/API/Interfaces/IDeserializable.d.ts +0 -13
  159. package/API/Interfaces/IEnabled.d.ts +0 -10
  160. package/API/Interfaces/IFileSize.d.ts +0 -9
  161. package/API/Interfaces/IGlobal.d.ts +0 -11
  162. package/API/Interfaces/IHavePermissions.d.ts +0 -20
  163. package/API/Interfaces/IHavePreferences.d.ts +0 -29
  164. package/API/Interfaces/IIconic.d.ts +0 -15
  165. package/API/Interfaces/IIdUlong.d.ts +0 -10
  166. package/API/Interfaces/ILabelled.d.ts +0 -10
  167. package/API/Interfaces/INamed.d.ts +0 -13
  168. package/API/Interfaces/IPictured.d.ts +0 -15
  169. package/API/Interfaces/IRequestable.d.ts +0 -22
  170. package/API/Interfaces/ISerializable.d.ts +0 -10
  171. package/API/Interfaces/ISuspendable.d.ts +0 -16
  172. package/API/Interfaces/IVisual.d.ts +0 -18
  173. package/Accounts/Permissions/Authorizer.d.ts +0 -204
  174. package/Accounts/Permissions/Permission.d.ts +0 -57
  175. package/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
  176. package/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
  177. package/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
  178. package/Accounts/Permissions/PermissionLevel.d.ts +0 -17
  179. package/Accounts/Permissions/PermissionMethod.d.ts +0 -13
  180. package/Accounts/Permissions/PermissionType.d.ts +0 -280
  181. package/Billing/Hosting/BillableHostingBase.d.ts +0 -41
  182. package/Billing/Hosting/BillableHostingDiscount.d.ts +0 -36
  183. package/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
  184. package/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
  185. package/Billing/Hosting/BillableHostingRule.d.ts +0 -30
  186. package/Billing/Hosting/BillableHostingType.d.ts +0 -41
  187. package/Billing/Report/BillingReport.d.ts +0 -114
  188. package/Billing/Report/BillingReportBreakdown.d.ts +0 -35
  189. package/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
  190. package/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -80
  191. package/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -126
  192. package/Billing/Report/BillingReportStatus.d.ts +0 -25
  193. package/Billing/Report/BillingReportSummary.d.ts +0 -51
  194. package/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
  195. package/Hosting/Fields/FormFieldBase.d.ts +0 -56
  196. package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
  197. package/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
  198. package/Hosting/Fields/FormFieldChoice.d.ts +0 -46
  199. package/Hosting/Fields/FormFieldDate.d.ts +0 -26
  200. package/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
  201. package/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
  202. package/Hosting/Fields/FormFieldSignature.d.ts +0 -17
  203. package/Hosting/Fields/FormFieldText.d.ts +0 -32
  204. package/Hosting/Fields/FormFieldTime.d.ts +0 -37
  205. package/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
  206. package/Providers/Config/ProviderConfig.d.ts +0 -72
  207. package/Providers/Config/ProviderRegistration.d.ts +0 -123
  208. package/Providers/Config/ProviderScript.d.ts +0 -87
  209. package/Providers/Config/ProviderScriptBlock.d.ts +0 -41
  210. package/Providers/Config/ProviderScriptParameter.d.ts +0 -49
  211. package/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
  212. package/Providers/Configuration/ProviderConfiguration.d.ts +0 -68
  213. package/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
  214. package/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
  215. package/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
  216. package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
  217. package/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
  218. package/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
  219. package/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
  220. package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
  221. package/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
package/README.md ADDED
@@ -0,0 +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
@@ -44,3 +44,4 @@ export declare function ARRAY_TO_ENUMS<T>(type: any, array: string[]): T[];
44
44
  * @param index The index of the obect in the source array.
45
45
  */
46
46
  export declare function FILTER_BY_BOOLEAN_ARRAY(this: boolean[], object: unknown, index: number): boolean;
47
+ //# sourceMappingURL=Arrays.d.ts.map
@@ -17,3 +17,4 @@ export declare abstract class Base implements IDeserializable {
17
17
  */
18
18
  abstract fromJSON(json: JsonObject, force?: boolean): boolean;
19
19
  }
20
+ //# sourceMappingURL=Base.d.ts.map
@@ -38,3 +38,4 @@ export declare abstract class BaseComponent extends Base implements IRequestable
38
38
  */
39
39
  abstract toJSON(): any;
40
40
  }
41
+ //# sourceMappingURL=BaseComponent.d.ts.map
@@ -17,3 +17,4 @@ export declare abstract class BaseCompound extends BaseComponent {
17
17
  */
18
18
  get v(): int[];
19
19
  }
20
+ //# sourceMappingURL=BaseCompound.d.ts.map
@@ -13,3 +13,4 @@ export declare function CODIFY(input: string): codified;
13
13
  * @param suffix Added to the end of each of the {@code terms}.
14
14
  */
15
15
  export declare function HIGHLIGHT(input: string, terms: codified[], [prefix, suffix]?: [string, string]): string;
16
+ //# sourceMappingURL=Codifier.d.ts.map
@@ -37,3 +37,4 @@ export declare const HALF_PI: number, RADIANS_TO_DEGREES: number, DEGREES_TO_RAD
37
37
  *
38
38
  */
39
39
  export declare const WIN: typeof globalThis, DOC: Document, LOC: Location;
40
+ //# sourceMappingURL=Constants.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * @param number
6
6
  * @param fromUnit
7
7
  * @param toUnit
8
- **/
8
+ */
9
9
  export declare function CONVERT_FROM_TO(number: number, fromUnit: string, toUnit: string): number;
10
10
  /**
11
11
  * Value in square meters converted to square feet.
@@ -200,7 +200,7 @@ export declare function CONVERT_BETWEEN_MPGUK_AND_L100KM(fuelEconomy: number): n
200
200
  /**
201
201
  * Returns the corollary of either miles per kilowatt hour or kilowatt hour per 100 kilometres.
202
202
  * @param electricEconomy
203
- **/
203
+ */
204
204
  export declare function CONVERT_BETWEEN_MPKWH_AND_KWH100KM(electricEconomy: number): number;
205
205
  export declare const CONVERT: {
206
206
  fromTo: typeof CONVERT_FROM_TO;
@@ -253,3 +253,4 @@ export declare const CONVERT: {
253
253
  tToTonUK: typeof CONVERT_TONNE_TO_TON_UK;
254
254
  tonUKToT: typeof CONVERT_TON_UK_TO_TONNE;
255
255
  };
256
+ //# sourceMappingURL=Conversion.d.ts.map
@@ -7,3 +7,4 @@ export declare function PASSWORD_ENCODE(value: string): string;
7
7
  * @param value
8
8
  * */
9
9
  export declare function PASSWORD_DECODE(value: string): string;
10
+ //# sourceMappingURL=Encoding.d.ts.map
@@ -19,3 +19,4 @@ export declare function NUMBER_GROUPS(number: number, size?: number, delimiter?:
19
19
  * @param point Character(s) to use to divide the integer groups from the decimal groups. The detauls is ".".
20
20
  * */
21
21
  export declare function FILESIZE_HELPER(bytes: number, places?: number, maxScale?: string, groupSize?: number, groupDelimiter?: string, decimalDelimiter?: string, point?: string): string;
22
+ //# sourceMappingURL=Files.d.ts.map
@@ -194,3 +194,4 @@ export declare function WEEKDAYS_PARSE(days: string | boolean[]): boolean[];
194
194
  * Creates as string of 7 characters (either `1` or `0`).
195
195
  */
196
196
  export declare function WEEKDAYS_JSON(days: string | boolean[]): string;
197
+ //# sourceMappingURL=Functions.d.ts.map
@@ -2,3 +2,4 @@
2
2
  * Delivers a GUID-like string with a mixed in location/refresh unique seed
3
3
  */
4
4
  export declare function GUID(): string;
5
+ //# sourceMappingURL=Guid.d.ts.map
@@ -26,3 +26,4 @@ export declare function MAP_FILTERED_BY_ASSET<K, T extends IBelongAsset>(map: Ma
26
26
  * @param profileId {@link BillingProfile.id} used to filter.
27
27
  */
28
28
  export declare function MAP_FILTERED_BY_BILLING<K, T extends IBelongBillingProfile>(map: Map<K, T>, profileId: ulong): T[];
29
+ //# sourceMappingURL=Maps.d.ts.map
@@ -3,3 +3,4 @@
3
3
  * @param value
4
4
  */
5
5
  export declare function MERGE_INTERNAL(value: any): any;
6
+ //# sourceMappingURL=Objects.d.ts.map
@@ -44,3 +44,4 @@ export declare class SearchPattern {
44
44
  */
45
45
  copy(): SearchPattern;
46
46
  }
47
+ //# sourceMappingURL=SearchPattern.d.ts.map
@@ -107,3 +107,4 @@ export declare function TIMESPAN_PARSE(duration: TimeSpan | timespan | number):
107
107
  * @param value Use a decimal to show milliseconds.
108
108
  */
109
109
  export declare function TIMESPAN_STRINGIFY(value: number): timespan;
110
+ //# sourceMappingURL=TimeSpan.d.ts.map
@@ -42,3 +42,4 @@ export declare class Timezone implements IRequestable, ISerializable {
42
42
  */
43
43
  getKey(): string;
44
44
  }
45
+ //# sourceMappingURL=Timezone.d.ts.map
@@ -5,3 +5,4 @@ import { codified } from './Types';
5
5
  * @param code
6
6
  */
7
7
  export declare function TIMEZONE_FIND(code: codified): Timezone | undefined;
8
+ //# sourceMappingURL=Timezones.d.ts.map
@@ -1,120 +1,120 @@
1
1
  /**
2
2
  * Represents the absence of a value.
3
- **/
3
+ */
4
4
  export type nothing = undefined | null;
5
5
  /**
6
6
  * 8bit integer
7
7
  * @example minimum value (-128) to maximum value (127)
8
- **/
8
+ */
9
9
  export type sbyte = number;
10
10
  /**
11
11
  * 16bit integer
12
12
  * @example minimum value (-32768) to maximum value (32767)
13
- **/
13
+ */
14
14
  export type short = number;
15
15
  /**
16
16
  * 32bit integer
17
17
  * @example minimum value (-2147483648) to maximum value (2147483647)
18
- **/
18
+ */
19
19
  export type int = number;
20
20
  /**
21
21
  * 64bit integer
22
22
  * @example minimum value (-9223372036854775808) to maximum value (9223372036854775807)
23
- **/
23
+ */
24
24
  export type long = number;
25
25
  /**
26
26
  * 8bit unsigned integer
27
27
  * @example minimum value (0) to maximum value (255)
28
- **/
28
+ */
29
29
  export type byte = number;
30
30
  /**
31
31
  * 16bit unsigned integer
32
32
  * @example minimum value (0) to maximum value (65535)
33
- **/
33
+ */
34
34
  export type ushort = number;
35
35
  /**
36
36
  * 32bit unsigned integer
37
37
  * @example minimum value (0) to maximum value (4294967295)
38
- **/
38
+ */
39
39
  export type uint = number;
40
40
  /**
41
41
  * 64bit unsigned integer
42
42
  * @example minimum value (0) to maximum value (18446744073709551615)
43
- **/
43
+ */
44
44
  export type ulong = number;
45
45
  /**
46
46
  * Single-precision floating point number
47
47
  * @example minimum value (-3.40282347E+38F) to maximum value (3.40282347E+38F)
48
- **/
48
+ */
49
49
  export type single = number;
50
50
  /**
51
51
  * Double-precision floating point number
52
52
  * @example minimum value (-1.7976931348623157e+308) to maximum value (1.7976931348623157e+308)
53
- **/
53
+ */
54
54
  export type double = number;
55
55
  /**
56
56
  * A phone number for a phone in Canada or the United States of America. All phone numbers start with a 1 and are eleven digits long.
57
57
  * @example "[1]AAALLLSSSS"
58
- **/
58
+ */
59
59
  export type phone = number;
60
60
  /**
61
61
  * A lower-case string with all the apostrophes and quotation marks [`"`, `'`, ```, `“`, and `”`] removed, and all non-alphanumeric character sequences replaced with a single minus sign. Diacritics such as `®`, `é`, and `ç` are also replaced with their alhpabetic equivalents (`r`, `e`, and `c`).
62
- **/
62
+ */
63
63
  export type codified = string;
64
64
  /**
65
65
  * A string that contains only a valid CSS colour.
66
66
  * More: {@link https://developer.mozilla.org/en-US/docs/Web/CSS/color_value}
67
- **/
67
+ */
68
68
  export type colour = string;
69
69
  /**
70
70
  * A serialized-string representation of a date and time in ISO-8601 format. Square brackets `[]` are used to show optional format information. All other non-alphabetic characters are required.
71
71
  * @example "yyyy-MM-ddTHH:mm:ss[.fff]Z"
72
- **/
72
+ */
73
73
  export type datetime = string;
74
74
  /**
75
75
  * These formats define the text representation of dates and times.
76
- **/
76
+ */
77
77
  export type datetimetemplate = string;
78
78
  /**
79
79
  * An email address identifies a mailbox to which messages are delivered. We follow the `RFC 2822` pattern for addresses.
80
80
  * More: {@link https://tools.ietf.org/html/rfc2822}
81
81
  * @example "user@domain.tld"
82
- **/
82
+ */
83
83
  export type email = string;
84
84
  /**
85
85
  * A targeting pattern is a string that represents an in-the-moment search for objects. The operators used depend entirely on the context of the search, and compatibility with the sub-system.
86
86
  * More: {@link https://fleetfreedom.freshdesk.com/en/support/solutions/articles/3000061325-advanced-search-options}
87
87
  * @example "operator:terms terms"
88
- **/
88
+ */
89
89
  export type expression = string;
90
90
  /**
91
91
  * Globally/Universally Unique Identifier. It is a 36 character long string made up of letters, numbers, and dashes. The letters can be transmitted as upper-case, lower-case, or a combination.
92
92
  * More: {@link https://docs.microsoft.com/en-us/dotnet/api/system.guid?view=net-5.0}
93
93
  * @example "xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx"
94
- **/
94
+ */
95
95
  export type guid = string;
96
96
  /**
97
97
  * A serialized-string representation of an IPv4 Address. Square brackets `[]` are used to show optional format information. All other non-alphabetic characters are required.
98
98
  * @example "n.n.n.n[/r]"
99
- **/
99
+ */
100
100
  export type ipv4 = string;
101
101
  /**
102
102
  * The algorithm is a lossy compression that stores a series of coordinates as a single string. All coordinates are rounded to six decimal places before encoding, but this should be accurate to within roughly one and a half meters.
103
103
  * More: {@link https://developers.google.com/maps/documentation/utilities/polylinealgorithm}
104
- **/
104
+ */
105
105
  export type polyline = string;
106
106
  /**
107
107
  * A serialized-string representation of a duration of time. There are two possible formats when using a duration string. Square brackets `[]` are used to show optional format information. All other non-alphabetic characters are required.
108
108
  * @example "[-][d.]H:mm[:ss[.fff]]"
109
109
  * @example "[-]d"
110
- **/
110
+ */
111
111
  export type timespan = string;
112
112
  /**
113
113
  * Most commonly a website address, but can also be any other type of locator like `ssh:`. We follow the `RFC 1738` pattern for addresses.
114
114
  * More: {@link https://tools.ietf.org/html/rfc1738}
115
115
  * @example "http[s]://domain.tld/path?query#fragment"
116
116
  * @example "protocol:path?query"
117
- **/
117
+ */
118
118
  export type url = string;
119
119
  /**
120
120
  * A JSON object is an unordered collection of key/value pairs.
@@ -130,3 +130,4 @@ export type JsonArray = JsonValue[];
130
130
  * Any valid JSON value.
131
131
  */
132
132
  export type JsonValue = null | boolean | number | string | JsonArray | JsonObject;
133
+ //# sourceMappingURL=Types.d.ts.map
@@ -20,8 +20,7 @@ export declare class Contact extends BaseComponent implements IIdUlong, INamed,
20
20
  */
21
21
  companyId: ulong;
22
22
  /**
23
- * The company to which this contact belongs
24
- * {@link Company.id}
23
+ * The {@link Company} to which this contact belongs
25
24
  */
26
25
  get company(): Company;
27
26
  /**
@@ -78,11 +77,11 @@ export declare class Contact extends BaseComponent implements IIdUlong, INamed,
78
77
  */
79
78
  roles: codified[];
80
79
  /**
81
- * {@link Picture.id}s of this Contact.
80
+ * {@link Picture.id}s of this {@link Contact}.
82
81
  */
83
82
  pictureIds: ulong[];
84
83
  /**
85
- * {@link Picture}s of this Contact.
84
+ * {@link Picture}s of this {@link Contact}.
86
85
  */
87
86
  get pictures(): Picture[];
88
87
  set pictures(values: Picture[]);
@@ -138,3 +137,4 @@ export declare class Contact extends BaseComponent implements IIdUlong, INamed,
138
137
  */
139
138
  getKey(): number;
140
139
  }
140
+ //# sourceMappingURL=Contact.d.ts.map
@@ -137,3 +137,4 @@ export declare class Machine extends BaseComponent implements IEnabled, IBelongC
137
137
  */
138
138
  createHmacSignature(absoluteUri: URL | string, method?: string, contentLength?: number, date?: Date): Promise<string>;
139
139
  }
140
+ //# sourceMappingURL=Machine.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Types of multi-factor authentication implementations for a {@link Company}.
3
+ */
4
+ export declare enum MultiFactorType {
5
+ /**
6
+ * Use a mobile authenticator app from Apple, Google, Microsoft, or others.
7
+ */
8
+ app = "app",
9
+ /**
10
+ * Receive an SMS message with a PIN code to continue logging-in.
11
+ */
12
+ sms = "sms",
13
+ /**
14
+ * Receive an email with a PIN code to continue logging-in.
15
+ */
16
+ email = "email"
17
+ }
18
+ //# sourceMappingURL=MultiFactorType.d.ts.map
@@ -15,3 +15,4 @@ export declare enum NotificationMethod {
15
15
  */
16
16
  email = "email"
17
17
  }
18
+ //# sourceMappingURL=NotificationMethod.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Supported SSO Identity Providers.
3
+ */
4
+ export declare enum SSOIdentityProvider {
5
+ /**
6
+ * Google Identity Provider.
7
+ */
8
+ google = "google",
9
+ /**
10
+ * Apple Identity Provider.
11
+ */
12
+ apple = "apple",
13
+ /**
14
+ * Facebook Identity Provider.
15
+ */
16
+ facebook = "facebook",
17
+ /**
18
+ * X Identity Provider, formerly known as Twitter.
19
+ */
20
+ twitter = "twitter",
21
+ /**
22
+ * Microsoft Identity Provider.
23
+ */
24
+ microsoft = "microsoft"
25
+ }
26
+ //# sourceMappingURL=SSOIdentityProvider.d.ts.map
@@ -1,18 +1,14 @@
1
1
  import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
2
+ import { IDeserializable } from "../API/Interfaces/IDeserializable";
2
3
  import { IRequestable } from "../API/Interfaces/IRequestable";
3
4
  import { ISerializable } from "../API/Interfaces/ISerializable";
4
- import { datetime, int, JsonObject, ulong } from "../API/Types";
5
+ import { int, JsonObject, nothing, ulong } from "../API/Types";
5
6
  import { Company } from "../Companies/Company";
6
7
  import { SessionStatus } from "./SessionStatus";
7
8
  /**
8
9
  * Information about another {@link User}'s {@link Session}.
9
10
  */
10
- export declare class Session implements IBelongCompany, IRequestable, ISerializable {
11
- /**
12
- *
13
- * @param json
14
- */
15
- static fromJSON(json: JsonObject): Session;
11
+ export declare class Session implements IBelongCompany, IRequestable, ISerializable, IDeserializable {
16
12
  /**
17
13
  * A "handle" identifying a resource.
18
14
  */
@@ -22,8 +18,7 @@ export declare class Session implements IBelongCompany, IRequestable, ISerializa
22
18
  */
23
19
  companyId: ulong;
24
20
  /**
25
- * The company to which this contact belongs
26
- * {@link Company.id}
21
+ * The {@link Company} to which this contact belongs
27
22
  */
28
23
  get company(): Company;
29
24
  /**
@@ -69,20 +64,22 @@ export declare class Session implements IBelongCompany, IRequestable, ISerializa
69
64
  * Indicator that this {@link Session} is using at least one WebSocket connection.
70
65
  */
71
66
  get active(): boolean;
72
- constructor(handle?: string, company?: ulong, ipAddress?: string, userAgent?: string, sockets?: int, login?: string, status?: SessionStatus, created?: Date | number | datetime, expiry?: Date | number | datetime, lastCommand?: string, lastActivity?: Date | number | datetime);
67
+ constructor(json?: JsonObject | nothing);
68
+ fromJSON(json: JsonObject, force?: boolean): boolean;
73
69
  /**
74
70
  *
75
71
  */
76
72
  toJSON(): {
77
73
  handle: string;
74
+ company: number | null;
78
75
  login: string;
79
- company: number;
76
+ status: SessionStatus;
77
+ userAgent: string;
78
+ ipAddress: string;
80
79
  created: string;
80
+ expires: string;
81
81
  lastActivity: string;
82
- ipAddress: string;
83
- userAgent: string;
84
82
  lastCommand: string;
85
- active: boolean;
86
83
  sockets: number;
87
84
  };
88
85
  /**
@@ -90,3 +87,4 @@ export declare class Session implements IBelongCompany, IRequestable, ISerializa
90
87
  */
91
88
  getKey(): string;
92
89
  }
90
+ //# sourceMappingURL=Session.d.ts.map
@@ -27,3 +27,4 @@ export declare enum SessionStatus {
27
27
  */
28
28
  expired = "expired"
29
29
  }
30
+ //# sourceMappingURL=SessionStatus.d.ts.map
@@ -11,3 +11,4 @@ export declare enum SystemsOfUnits {
11
11
  */
12
12
  standard = "standard"
13
13
  }
14
+ //# sourceMappingURL=SystemsOfUnits.d.ts.map
@@ -11,9 +11,12 @@ import { Contact } from "./Contact";
11
11
  import { Permission } from "./Permissions/Permission";
12
12
  import { SystemsOfUnits } from "./SystemsOfUnits";
13
13
  import { UserAdvanced } from "./UserAdvanced";
14
+ import { UserAuthentication } from "./UserAuthentication";
14
15
  import { UserGeneral } from "./UserGeneral";
15
16
  import { UserGroup } from "./UserGroup";
17
+ import { UserMFA } from "./UserMFA";
16
18
  import { UserNotifications } from "./UserNotifications";
19
+ import { UserSSO } from "./UserSSO";
17
20
  /**
18
21
  * A grouping of credentials, information, preferences, and permissions for a person or machine to login to the system and access its resources.
19
22
  */
@@ -34,19 +37,13 @@ export declare class User extends BaseCompound implements IEnabled, IBelongCompa
34
37
  */
35
38
  get companyId(): ulong;
36
39
  /**
37
- * The company to which this user belongs.
38
- * {@link Company.id}
40
+ * The {@link Company} to which this user belongs.
39
41
  */
40
42
  get company(): Company;
41
43
  /**
42
44
  *
43
45
  */
44
46
  get general(): UserGeneral;
45
- /**
46
- * Indicated whether the credentials have expired according to the company's policy.
47
- */
48
- get passwordExpired(): boolean;
49
- set passwordExpired(value: boolean);
50
47
  /**
51
48
  * Indicates whether system access is disabled.
52
49
  */
@@ -64,14 +61,12 @@ export declare class User extends BaseCompound implements IEnabled, IBelongCompa
64
61
  get contactId(): ulong;
65
62
  set contactId(value: ulong | nothing);
66
63
  /**
67
- * Contact information for this user.
68
- * {@link Contact.id}
64
+ * {@link Contact} information for this user.
69
65
  */
70
66
  get contact(): Contact;
71
67
  set contact(value: Contact | nothing);
72
68
  /**
73
69
  * The user's local timezone.
74
- * {@link Timezone.code}
75
70
  */
76
71
  get timezone(): Timezone;
77
72
  set timezone(value: Timezone);
@@ -106,14 +101,13 @@ export declare class User extends BaseCompound implements IEnabled, IBelongCompa
106
101
  */
107
102
  get advanced(): UserAdvanced;
108
103
  /**
109
- * A list of groups to which this user belongs.
104
+ * A list of {@link UserGroup}s to which this user belongs.
110
105
  * {@link UserGroup.id}
111
106
  */
112
107
  get groupIds(): ulong[];
113
108
  set groupIds(value: ulong[]);
114
109
  /**
115
110
  * A list of groups to which this user belongs.
116
- * {@link UserGroup.id}
117
111
  */
118
112
  get groups(): UserGroup[];
119
113
  set groups(value: UserGroup[]);
@@ -122,16 +116,42 @@ export declare class User extends BaseCompound implements IEnabled, IBelongCompa
122
116
  */
123
117
  get permissions(): Permission[];
124
118
  set permissions(value: Permission[]);
119
+ /**
120
+ *
121
+ */
122
+ get authentication(): UserAuthentication;
123
+ /**
124
+ * Indicated whether the credentials have expired according to the company's policy.
125
+ */
126
+ get passwordExpired(): boolean;
127
+ set passwordExpired(value: boolean);
128
+ /**
129
+ * Multi-factor authentication details for the user.
130
+ */
131
+ get mfa(): UserMFA[];
132
+ set mfa(value: UserMFA[]);
133
+ /**
134
+ * Single Sign-On details for the user.
135
+ */
136
+ get sso(): UserSSO;
137
+ set sso(value: UserSSO);
125
138
  toJSON(): {
126
139
  v: number[];
127
140
  login: string;
128
141
  company: number;
142
+ passwordExpired: boolean;
143
+ mfa: any[];
144
+ sso: {
145
+ enabled: boolean;
146
+ provider: import("./SSOIdentityProvider").SSOIdentityProvider;
147
+ lastAuthentication: string | null;
148
+ externalId: string | null;
149
+ };
129
150
  groups: number[];
130
151
  permissions: any[];
131
152
  nickname: string;
132
153
  enabled: boolean;
133
154
  contact: boolean;
134
- passwordExpired: boolean;
135
155
  timezone: string;
136
156
  language: string;
137
157
  formats: JsonObject;
@@ -145,3 +165,4 @@ export declare class User extends BaseCompound implements IEnabled, IBelongCompa
145
165
  */
146
166
  getKey(): string;
147
167
  }
168
+ //# sourceMappingURL=User.d.ts.map
@@ -20,8 +20,7 @@ export declare class UserAdvanced extends BaseComponent implements IBelongCompan
20
20
  */
21
21
  companyId: ulong;
22
22
  /**
23
- * The company to which this user belongs.
24
- * {@link Company.id}
23
+ * The {@link Company} to which this user belongs.
25
24
  */
26
25
  get company(): Company;
27
26
  /**
@@ -52,3 +51,4 @@ export declare class UserAdvanced extends BaseComponent implements IBelongCompan
52
51
  */
53
52
  getKey(): string;
54
53
  }
54
+ //# sourceMappingURL=UserAdvanced.d.ts.map
@@ -0,0 +1,56 @@
1
+ import { BaseComponent } from "../API/BaseComponent";
2
+ import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
3
+ import { JsonObject, email, ulong } from "../API/Types";
4
+ import { Company } from "../Companies/Company";
5
+ import { UserMFA } from "./UserMFA";
6
+ import { UserSSO } from "./UserSSO";
7
+ /**
8
+ * Credentials, information, and preferences about a user.
9
+ */
10
+ export declare class UserAuthentication extends BaseComponent implements IBelongCompany {
11
+ /**
12
+ * The unique public email address used to access the system.
13
+ * {@link User.login}
14
+ */
15
+ login: email;
16
+ /**
17
+ * The company to which this user belongs.
18
+ * {@link Company.id}
19
+ */
20
+ companyId: ulong;
21
+ /**
22
+ * The {@link Company} to which this user belongs.
23
+ */
24
+ get company(): Company;
25
+ /**
26
+ * Indicated whether the credentials have expired according to the company's policy.
27
+ */
28
+ passwordExpired: boolean;
29
+ /**
30
+ * Multi-factor authentication details for the user.
31
+ */
32
+ mfa: UserMFA[];
33
+ /**
34
+ * Single Sign-On details for the user.
35
+ */
36
+ sso: UserSSO;
37
+ toJSON(): {
38
+ login: string;
39
+ v: number[];
40
+ company: number;
41
+ passwordExpired: boolean;
42
+ mfa: any[];
43
+ sso: {
44
+ enabled: boolean;
45
+ provider: import("./SSOIdentityProvider").SSOIdentityProvider;
46
+ lastAuthentication: string | null;
47
+ externalId: string | null;
48
+ };
49
+ };
50
+ fromJSON(json: JsonObject, force?: boolean): boolean;
51
+ /**
52
+ * The {@link login} is the key.
53
+ */
54
+ getKey(): string;
55
+ }
56
+ //# sourceMappingURL=UserAuthentication.d.ts.map