@trakit/objects 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Companies/NotificationServerEmail.d.ts +0 -2
- package/README.md +24 -24
- package/index.d.ts +1 -1
- package/package.json +37 -37
- package/trakit-objects.min.js +2 -2
- package/objects/API/Arrays.d.ts +0 -46
- package/objects/API/Base.d.ts +0 -19
- package/objects/API/BaseComponent.d.ts +0 -40
- package/objects/API/BaseCompound.d.ts +0 -19
- package/objects/API/Codifier.d.ts +0 -15
- package/objects/API/Constants.d.ts +0 -39
- package/objects/API/Conversion.d.ts +0 -255
- package/objects/API/Encoding.d.ts +0 -9
- package/objects/API/Files.d.ts +0 -21
- package/objects/API/Functions.d.ts +0 -196
- package/objects/API/Geography/Functions.d.ts +0 -236
- package/objects/API/Geography/Interfaces.d.ts +0 -150
- package/objects/API/Geography/LatLng.d.ts +0 -86
- package/objects/API/Geography/LatLngBounds.d.ts +0 -146
- package/objects/API/Geography/Position.d.ts +0 -74
- package/objects/API/Geography/StreetAddress.d.ts +0 -59
- package/objects/API/Geometry/Functions.d.ts +0 -114
- package/objects/API/Geometry/Interfaces.d.ts +0 -111
- package/objects/API/Geometry/Point.d.ts +0 -81
- package/objects/API/Geometry/Radial.d.ts +0 -110
- package/objects/API/Geometry/Rectangle.d.ts +0 -159
- package/objects/API/Geometry/Size.d.ts +0 -58
- package/objects/API/Guid.d.ts +0 -4
- package/objects/API/Interfaces/IAmCompany.d.ts +0 -11
- package/objects/API/Interfaces/IBelongAsset.d.ts +0 -15
- package/objects/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
- package/objects/API/Interfaces/IBelongCompany.d.ts +0 -15
- package/objects/API/Interfaces/IDeserializable.d.ts +0 -13
- package/objects/API/Interfaces/IEnabled.d.ts +0 -10
- package/objects/API/Interfaces/IFileSize.d.ts +0 -9
- package/objects/API/Interfaces/IGlobal.d.ts +0 -11
- package/objects/API/Interfaces/IHavePermissions.d.ts +0 -20
- package/objects/API/Interfaces/IHavePreferences.d.ts +0 -29
- package/objects/API/Interfaces/IIconic.d.ts +0 -15
- package/objects/API/Interfaces/IIdUlong.d.ts +0 -10
- package/objects/API/Interfaces/ILabelled.d.ts +0 -10
- package/objects/API/Interfaces/INamed.d.ts +0 -13
- package/objects/API/Interfaces/IPictured.d.ts +0 -15
- package/objects/API/Interfaces/IRequestable.d.ts +0 -22
- package/objects/API/Interfaces/ISerializable.d.ts +0 -10
- package/objects/API/Interfaces/ISuspendable.d.ts +0 -16
- package/objects/API/Interfaces/IVisual.d.ts +0 -18
- package/objects/API/Maps.d.ts +0 -28
- package/objects/API/Objects.d.ts +0 -5
- package/objects/API/SearchPattern.d.ts +0 -46
- package/objects/API/TimeSpan.d.ts +0 -109
- package/objects/API/Timezone.d.ts +0 -44
- package/objects/API/Timezones.d.ts +0 -7
- package/objects/API/Types.d.ts +0 -132
- package/objects/Accounts/Contact.d.ts +0 -139
- package/objects/Accounts/Machine.d.ts +0 -139
- package/objects/Accounts/MultiFactorType.d.ts +0 -17
- package/objects/Accounts/NotificationMethod.d.ts +0 -17
- package/objects/Accounts/Permissions/Authorizer.d.ts +0 -204
- package/objects/Accounts/Permissions/Permission.d.ts +0 -56
- package/objects/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
- package/objects/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
- package/objects/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionLevel.d.ts +0 -17
- package/objects/Accounts/Permissions/PermissionMethod.d.ts +0 -13
- package/objects/Accounts/Permissions/PermissionType.d.ts +0 -280
- package/objects/Accounts/SSOIdentityProvider.d.ts +0 -25
- package/objects/Accounts/Session.d.ts +0 -89
- package/objects/Accounts/SessionStatus.d.ts +0 -29
- package/objects/Accounts/SystemsOfUnits.d.ts +0 -13
- package/objects/Accounts/User.d.ts +0 -167
- package/objects/Accounts/UserAdvanced.d.ts +0 -53
- package/objects/Accounts/UserAuthentication.d.ts +0 -55
- package/objects/Accounts/UserGeneral.d.ts +0 -98
- package/objects/Accounts/UserGroup.d.ts +0 -51
- package/objects/Accounts/UserMFA.d.ts +0 -47
- package/objects/Accounts/UserNotifications.d.ts +0 -76
- package/objects/Accounts/UserSSO.d.ts +0 -37
- package/objects/Assets/Asset.d.ts +0 -218
- package/objects/Assets/AssetAdvanced.d.ts +0 -77
- package/objects/Assets/AssetAttribute.d.ts +0 -71
- package/objects/Assets/AssetDispatch.d.ts +0 -55
- package/objects/Assets/AssetGeneral.d.ts +0 -127
- package/objects/Assets/AssetPlaceStatus.d.ts +0 -31
- package/objects/Assets/AssetPlaceStatusType.d.ts +0 -17
- package/objects/Assets/AssetType.d.ts +0 -21
- package/objects/Behaviours/Behaviour.d.ts +0 -78
- package/objects/Behaviours/BehaviourLog.d.ts +0 -95
- package/objects/Behaviours/BehaviourLogType.d.ts +0 -21
- package/objects/Behaviours/BehaviourParameter.d.ts +0 -38
- package/objects/Behaviours/BehaviourParameterType.d.ts +0 -21
- package/objects/Behaviours/BehaviourScript.d.ts +0 -83
- package/objects/Billing/BillableBase.d.ts +0 -83
- package/objects/Billing/BillableSmsProfile.d.ts +0 -26
- package/objects/Billing/BillingCurrency.d.ts +0 -17
- package/objects/Billing/BillingCycle.d.ts +0 -17
- package/objects/Billing/BillingProfile.d.ts +0 -104
- package/objects/Billing/Hosting/BillableHostingBase.d.ts +0 -41
- package/objects/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
- package/objects/Billing/Hosting/BillableHostingRule.d.ts +0 -30
- package/objects/Billing/Hosting/BillableHostingType.d.ts +0 -41
- package/objects/Billing/Report/BillingReport.d.ts +0 -112
- package/objects/Billing/Report/BillingReportBreakdown.d.ts +0 -34
- package/objects/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
- package/objects/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -79
- package/objects/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -124
- package/objects/Billing/Report/BillingReportStatus.d.ts +0 -25
- package/objects/Billing/Report/BillingReportSummary.d.ts +0 -49
- package/objects/Companies/ColourStyle.d.ts +0 -25
- package/objects/Companies/Company.d.ts +0 -167
- package/objects/Companies/CompanyDirectory.d.ts +0 -52
- package/objects/Companies/CompanyGeneral.d.ts +0 -55
- package/objects/Companies/CompanyPolicy.d.ts +0 -66
- package/objects/Companies/CompanyReseller.d.ts +0 -166
- package/objects/Companies/CompanyStyle.d.ts +0 -50
- package/objects/Companies/LabelStyle.d.ts +0 -46
- package/objects/Companies/NotificationServerEmail.d.ts +0 -99
- package/objects/Companies/NotificationServerSms.d.ts +0 -25
- package/objects/Companies/PasswordExpiryMode.d.ts +0 -17
- package/objects/Companies/PasswordPolicy.d.ts +0 -51
- package/objects/Companies/SessionMultiUser.d.ts +0 -17
- package/objects/Companies/SessionPolicy.d.ts +0 -47
- package/objects/Dispatch/DispatchDirection.d.ts +0 -53
- package/objects/Dispatch/DispatchJob.d.ts +0 -107
- package/objects/Dispatch/DispatchJobPriority.d.ts +0 -25
- package/objects/Dispatch/DispatchStep.d.ts +0 -99
- package/objects/Dispatch/DispatchStepState.d.ts +0 -27
- package/objects/Dispatch/DispatchStepStatus.d.ts +0 -21
- package/objects/Dispatch/DispatchTask.d.ts +0 -154
- package/objects/Dispatch/DispatchTaskStatus.d.ts +0 -50
- package/objects/Hosting/Document.d.ts +0 -70
- package/objects/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
- package/objects/Hosting/Fields/FormFieldBase.d.ts +0 -56
- package/objects/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
- package/objects/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
- package/objects/Hosting/Fields/FormFieldChoice.d.ts +0 -46
- package/objects/Hosting/Fields/FormFieldDate.d.ts +0 -26
- package/objects/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
- package/objects/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldSignature.d.ts +0 -17
- package/objects/Hosting/Fields/FormFieldText.d.ts +0 -32
- package/objects/Hosting/Fields/FormFieldTime.d.ts +0 -37
- package/objects/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
- package/objects/Hosting/FormFieldType.d.ts +0 -127
- package/objects/Hosting/FormResult.d.ts +0 -95
- package/objects/Hosting/FormTemplate.d.ts +0 -80
- package/objects/Images/Dashcam.d.ts +0 -63
- package/objects/Images/DashcamBase.d.ts +0 -97
- package/objects/Images/DashcamLive.d.ts +0 -36
- package/objects/Images/DashcamMediaType.d.ts +0 -17
- package/objects/Images/Icon.d.ts +0 -66
- package/objects/Images/IconGlyph.d.ts +0 -47
- package/objects/Images/IconLabel.d.ts +0 -29
- package/objects/Images/IconLayer.d.ts +0 -33
- package/objects/Images/Picture.d.ts +0 -72
- package/objects/Maintenance/MaintenanceInterval.d.ts +0 -48
- package/objects/Maintenance/MaintenanceJob.d.ts +0 -134
- package/objects/Maintenance/MaintenanceJobStatus.d.ts +0 -21
- package/objects/Maintenance/MaintenanceSchedule.d.ts +0 -118
- package/objects/Messaging/AlertPriority.d.ts +0 -17
- package/objects/Messaging/AssetAlert.d.ts +0 -29
- package/objects/Messaging/AssetMessage.d.ts +0 -40
- package/objects/Messaging/MessageBase.d.ts +0 -99
- package/objects/Messaging/MessageFolder.d.ts +0 -13
- package/objects/Messaging/MessageStatus.d.ts +0 -29
- package/objects/Messaging/MessageType.d.ts +0 -33
- package/objects/Places/Place.d.ts +0 -114
- package/objects/Places/PlaceType.d.ts +0 -25
- package/objects/Providers/Config/ProviderConfig.d.ts +0 -70
- package/objects/Providers/Config/ProviderRegistration.d.ts +0 -119
- package/objects/Providers/Config/ProviderScript.d.ts +0 -86
- package/objects/Providers/Config/ProviderScriptBlock.d.ts +0 -41
- package/objects/Providers/Config/ProviderScriptParameter.d.ts +0 -49
- package/objects/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
- package/objects/Providers/Configuration/ProviderConfiguration.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
- package/objects/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
- package/objects/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
- package/objects/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
- package/objects/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
- package/objects/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
- package/objects/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
- package/objects/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
- package/objects/Providers/Provider.d.ts +0 -205
- package/objects/Providers/ProviderAdvanced.d.ts +0 -50
- package/objects/Providers/ProviderCommand.d.ts +0 -36
- package/objects/Providers/ProviderCommandStatus.d.ts +0 -29
- package/objects/Providers/ProviderCommandType.d.ts +0 -37
- package/objects/Providers/ProviderControl.d.ts +0 -41
- package/objects/Providers/ProviderData.d.ts +0 -30
- package/objects/Providers/ProviderGeneral.d.ts +0 -121
- package/objects/Providers/ProviderType.d.ts +0 -106
- package/objects/Reports/ReportBreakdown.d.ts +0 -49
- package/objects/Reports/ReportBreakdownJob.d.ts +0 -37
- package/objects/Reports/ReportBreakdownMessage.d.ts +0 -40
- package/objects/Reports/ReportBreakdownTask.d.ts +0 -46
- package/objects/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
- package/objects/Reports/ReportFilterMode.d.ts +0 -17
- package/objects/Reports/ReportNotifications.d.ts +0 -31
- package/objects/Reports/ReportOptions.d.ts +0 -52
- package/objects/Reports/ReportParameter.d.ts +0 -26
- package/objects/Reports/ReportParameterType.d.ts +0 -59
- package/objects/Reports/ReportRecurrence.d.ts +0 -54
- package/objects/Reports/ReportRecurrenceType.d.ts +0 -34
- package/objects/Reports/ReportResult.d.ts +0 -169
- package/objects/Reports/ReportResultData.d.ts +0 -17
- package/objects/Reports/ReportSchedule.d.ts +0 -111
- package/objects/Reports/ReportScorecard.d.ts +0 -38
- package/objects/Reports/ReportScorecardParameter.d.ts +0 -31
- package/objects/Reports/ReportScorecardRules.d.ts +0 -26
- package/objects/Reports/ReportStatus.d.ts +0 -29
- package/objects/Reports/ReportSummary.d.ts +0 -90
- package/objects/Reports/ReportSummaryReason.d.ts +0 -27
- package/objects/Reports/ReportTemplate.d.ts +0 -81
- package/objects/Reports/ReportTotal.d.ts +0 -47
- package/objects/Reports/ReportType.d.ts +0 -42
- package/objects/index.d.ts +0 -406
- package/objects/storage.d.ts +0 -176
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { BaseCompound } from "../API/BaseCompound";
|
|
3
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
4
|
-
import { IEnabled } from "../API/Interfaces/IEnabled";
|
|
5
|
-
import { IHavePermissions } from "../API/Interfaces/IHavePermissions";
|
|
6
|
-
import { IHavePreferences } from "../API/Interfaces/IHavePreferences";
|
|
7
|
-
import { Timezone } from "../API/Timezone";
|
|
8
|
-
import { codified, datetimetemplate, email, JsonObject, nothing, ulong } from "../API/Types";
|
|
9
|
-
import { Company } from "../Companies/Company";
|
|
10
|
-
import { Contact } from "./Contact";
|
|
11
|
-
import { Permission } from "./Permissions/Permission";
|
|
12
|
-
import { SystemsOfUnits } from "./SystemsOfUnits";
|
|
13
|
-
import { UserAdvanced } from "./UserAdvanced";
|
|
14
|
-
import { UserAuthentication } from "./UserAuthentication";
|
|
15
|
-
import { UserGeneral } from "./UserGeneral";
|
|
16
|
-
import { UserGroup } from "./UserGroup";
|
|
17
|
-
import { UserMFA } from "./UserMFA";
|
|
18
|
-
import { UserNotifications } from "./UserNotifications";
|
|
19
|
-
import { UserSSO } from "./UserSSO";
|
|
20
|
-
/**
|
|
21
|
-
* A grouping of credentials, information, preferences, and permissions for a person or machine to login to the system and access its resources.
|
|
22
|
-
*/
|
|
23
|
-
export declare class User extends BaseCompound implements IEnabled, IBelongCompany, IHavePermissions, IHavePreferences {
|
|
24
|
-
#private;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
get pieces(): BaseComponent[];
|
|
29
|
-
/**
|
|
30
|
-
* The unique public email address used to access the system.
|
|
31
|
-
* {@link User.login}
|
|
32
|
-
*/
|
|
33
|
-
get login(): email;
|
|
34
|
-
/**
|
|
35
|
-
* The company to which this user belongs.
|
|
36
|
-
* {@link Company.id}
|
|
37
|
-
*/
|
|
38
|
-
get companyId(): ulong;
|
|
39
|
-
/**
|
|
40
|
-
* The {@link Company} to which this user belongs.
|
|
41
|
-
*/
|
|
42
|
-
get company(): Company;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
get general(): UserGeneral;
|
|
47
|
-
/**
|
|
48
|
-
* Indicates whether system access is disabled.
|
|
49
|
-
*/
|
|
50
|
-
get enabled(): boolean;
|
|
51
|
-
set enabled(value: boolean);
|
|
52
|
-
/**
|
|
53
|
-
* Human friendly name for these credentials
|
|
54
|
-
*/
|
|
55
|
-
get nickname(): string;
|
|
56
|
-
set nickname(value: string);
|
|
57
|
-
/**
|
|
58
|
-
* Contact information for this user.
|
|
59
|
-
* {@link Contact.id}
|
|
60
|
-
*/
|
|
61
|
-
get contactId(): ulong;
|
|
62
|
-
set contactId(value: ulong | nothing);
|
|
63
|
-
/**
|
|
64
|
-
* {@link Contact} information for this user.
|
|
65
|
-
*/
|
|
66
|
-
get contact(): Contact;
|
|
67
|
-
set contact(value: Contact | nothing);
|
|
68
|
-
/**
|
|
69
|
-
* The user's local timezone.
|
|
70
|
-
*/
|
|
71
|
-
get timezone(): Timezone;
|
|
72
|
-
set timezone(value: Timezone);
|
|
73
|
-
/**
|
|
74
|
-
* Preferred region/language for the UI and notifications.
|
|
75
|
-
* Valid formats use <ISO 639-1><dash><ISO 3166-2> such as "fr-CA" or "en-US".
|
|
76
|
-
*/
|
|
77
|
-
get language(): codified;
|
|
78
|
-
set language(value: codified);
|
|
79
|
-
/**
|
|
80
|
-
* The format strings defining the preferred way to display ambiguous values.
|
|
81
|
-
*/
|
|
82
|
-
get formats(): Map<codified, datetimetemplate>;
|
|
83
|
-
set formats(value: Map<codified, datetimetemplate>);
|
|
84
|
-
/**
|
|
85
|
-
* Preferred way of displaying ambiguous numbers in the context of measurements.
|
|
86
|
-
*/
|
|
87
|
-
get measurements(): Map<codified, SystemsOfUnits>;
|
|
88
|
-
set measurements(value: Map<codified, SystemsOfUnits>);
|
|
89
|
-
/**
|
|
90
|
-
* Additional options which do not fit in with the formats or measurements preferences.
|
|
91
|
-
*/
|
|
92
|
-
get options(): Map<codified, string>;
|
|
93
|
-
set options(value: Map<codified, string>);
|
|
94
|
-
/**
|
|
95
|
-
* Definition of how and when to send alerts to the user.
|
|
96
|
-
*/
|
|
97
|
-
get notify(): UserNotifications[];
|
|
98
|
-
set notify(value: UserNotifications[]);
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
get advanced(): UserAdvanced;
|
|
103
|
-
/**
|
|
104
|
-
* A list of {@link UserGroup}s to which this user belongs.
|
|
105
|
-
* {@link UserGroup.id}
|
|
106
|
-
*/
|
|
107
|
-
get groupIds(): ulong[];
|
|
108
|
-
set groupIds(value: ulong[]);
|
|
109
|
-
/**
|
|
110
|
-
* A list of groups to which this user belongs.
|
|
111
|
-
*/
|
|
112
|
-
get groups(): UserGroup[];
|
|
113
|
-
set groups(value: UserGroup[]);
|
|
114
|
-
/**
|
|
115
|
-
* Individual permission rules which override the group rules.
|
|
116
|
-
*/
|
|
117
|
-
get permissions(): Permission[];
|
|
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);
|
|
138
|
-
toJSON(): {
|
|
139
|
-
v: number[];
|
|
140
|
-
login: string;
|
|
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
|
-
};
|
|
150
|
-
groups: number[];
|
|
151
|
-
permissions: any[];
|
|
152
|
-
nickname: string;
|
|
153
|
-
enabled: boolean;
|
|
154
|
-
contact: boolean;
|
|
155
|
-
timezone: string;
|
|
156
|
-
language: string;
|
|
157
|
-
formats: JsonObject;
|
|
158
|
-
measurements: JsonObject;
|
|
159
|
-
options: JsonObject;
|
|
160
|
-
notify: any[];
|
|
161
|
-
};
|
|
162
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
163
|
-
/**
|
|
164
|
-
* The {@link login} is the key.
|
|
165
|
-
*/
|
|
166
|
-
getKey(): string;
|
|
167
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { IHavePermissions } from "../API/Interfaces/IHavePermissions";
|
|
4
|
-
import { email, JsonObject, ulong } from "../API/Types";
|
|
5
|
-
import { Company } from "../Companies/Company";
|
|
6
|
-
import { Permission } from "./Permissions/Permission";
|
|
7
|
-
import { UserGroup } from "./UserGroup";
|
|
8
|
-
/**
|
|
9
|
-
* Permissions and group membership defined for a user.
|
|
10
|
-
*/
|
|
11
|
-
export declare class UserAdvanced extends BaseComponent implements IBelongCompany, IHavePermissions {
|
|
12
|
-
/**
|
|
13
|
-
* The unique public email address used to access the system.
|
|
14
|
-
* {@link User.login}
|
|
15
|
-
*/
|
|
16
|
-
login: email;
|
|
17
|
-
/**
|
|
18
|
-
* The company to which this user belongs.
|
|
19
|
-
* {@link Company.id}
|
|
20
|
-
*/
|
|
21
|
-
companyId: ulong;
|
|
22
|
-
/**
|
|
23
|
-
* The {@link Company} to which this user belongs.
|
|
24
|
-
*/
|
|
25
|
-
get company(): Company;
|
|
26
|
-
/**
|
|
27
|
-
* A list of groups to which this user belongs.
|
|
28
|
-
* {@link UserGroup.id}
|
|
29
|
-
*/
|
|
30
|
-
groupIds: ulong[];
|
|
31
|
-
/**
|
|
32
|
-
* A list of groups to which this user belongs.
|
|
33
|
-
* {@link UserGroup.id}
|
|
34
|
-
*/
|
|
35
|
-
get groups(): UserGroup[];
|
|
36
|
-
set groups(value: UserGroup[]);
|
|
37
|
-
/**
|
|
38
|
-
* Individual permission rules which override the group rules.
|
|
39
|
-
*/
|
|
40
|
-
permissions: Permission[];
|
|
41
|
-
toJSON(): {
|
|
42
|
-
login: string;
|
|
43
|
-
v: number[];
|
|
44
|
-
company: number;
|
|
45
|
-
groups: number[];
|
|
46
|
-
permissions: any[];
|
|
47
|
-
};
|
|
48
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The {@link login} is the key.
|
|
51
|
-
*/
|
|
52
|
-
getKey(): string;
|
|
53
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { IEnabled } from "../API/Interfaces/IEnabled";
|
|
4
|
-
import { IHavePreferences } from "../API/Interfaces/IHavePreferences";
|
|
5
|
-
import { Timezone } from "../API/Timezone";
|
|
6
|
-
import { JsonObject, codified, datetimetemplate, email, ulong } from "../API/Types";
|
|
7
|
-
import { Company } from "../Companies/Company";
|
|
8
|
-
import { Contact } from "./Contact";
|
|
9
|
-
import { SystemsOfUnits } from "./SystemsOfUnits";
|
|
10
|
-
import { UserNotifications } from "./UserNotifications";
|
|
11
|
-
/**
|
|
12
|
-
* Credentials, information, and preferences about a user.
|
|
13
|
-
*/
|
|
14
|
-
export declare class UserGeneral extends BaseComponent implements IEnabled, IBelongCompany, IHavePreferences {
|
|
15
|
-
/**
|
|
16
|
-
* The unique public email address used to access the system.
|
|
17
|
-
* {@link User.login}
|
|
18
|
-
*/
|
|
19
|
-
login: email;
|
|
20
|
-
/**
|
|
21
|
-
* The company to which this user belongs.
|
|
22
|
-
* {@link Company.id}
|
|
23
|
-
*/
|
|
24
|
-
companyId: ulong;
|
|
25
|
-
/**
|
|
26
|
-
* The {@link Company} to which this user belongs.
|
|
27
|
-
*/
|
|
28
|
-
get company(): Company;
|
|
29
|
-
/**
|
|
30
|
-
* Indicated whether the credentials have expired according to the company's policy.
|
|
31
|
-
*/
|
|
32
|
-
passwordExpired: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Indicates whether system access is disabled.
|
|
35
|
-
*/
|
|
36
|
-
enabled: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Human friendly name for these credentials
|
|
39
|
-
*/
|
|
40
|
-
nickname: string;
|
|
41
|
-
/**
|
|
42
|
-
* Contact information for this user.
|
|
43
|
-
* {@link Contact.id}
|
|
44
|
-
*/
|
|
45
|
-
contactId: ulong;
|
|
46
|
-
/**
|
|
47
|
-
* {@link Contact} information for this user.
|
|
48
|
-
*/
|
|
49
|
-
get contact(): Contact;
|
|
50
|
-
set contact(value: Contact);
|
|
51
|
-
/**
|
|
52
|
-
* The user's local timezone.
|
|
53
|
-
* {@link Timezone.code}
|
|
54
|
-
*/
|
|
55
|
-
timezone: Timezone;
|
|
56
|
-
/**
|
|
57
|
-
* Preferred region/language for the UI and notifications.
|
|
58
|
-
* Valid formats use <ISO 639-1><dash><ISO 3166-2> such as "fr-CA" or "en-US".
|
|
59
|
-
*/
|
|
60
|
-
language: codified;
|
|
61
|
-
/**
|
|
62
|
-
* The format strings defining the preferred way to display ambiguous values.
|
|
63
|
-
*/
|
|
64
|
-
formats: Map<codified, datetimetemplate>;
|
|
65
|
-
/**
|
|
66
|
-
* Preferred way of displaying ambiguous numbers in the context of measurements.
|
|
67
|
-
*/
|
|
68
|
-
measurements: Map<codified, SystemsOfUnits>;
|
|
69
|
-
/**
|
|
70
|
-
* Additional options which do not fit in with the formats or measurements preferences.
|
|
71
|
-
|
|
72
|
-
*/
|
|
73
|
-
options: Map<codified, string>;
|
|
74
|
-
/**
|
|
75
|
-
* Definition of how and when to send alerts to the user.
|
|
76
|
-
*/
|
|
77
|
-
notify: UserNotifications[];
|
|
78
|
-
toJSON(): {
|
|
79
|
-
login: string;
|
|
80
|
-
v: number[];
|
|
81
|
-
company: number;
|
|
82
|
-
nickname: string;
|
|
83
|
-
enabled: boolean;
|
|
84
|
-
contact: boolean;
|
|
85
|
-
passwordExpired: boolean;
|
|
86
|
-
timezone: string;
|
|
87
|
-
language: string;
|
|
88
|
-
formats: JsonObject;
|
|
89
|
-
measurements: JsonObject;
|
|
90
|
-
options: JsonObject;
|
|
91
|
-
notify: any[];
|
|
92
|
-
};
|
|
93
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* The {@link login} is the key.
|
|
96
|
-
*/
|
|
97
|
-
getKey(): string;
|
|
98
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from "../API/BaseComponent";
|
|
2
|
-
import { IBelongCompany } from "../API/Interfaces/IBelongCompany";
|
|
3
|
-
import { IIdUlong } from "../API/Interfaces/IIdUlong";
|
|
4
|
-
import { INamed } from "../API/Interfaces/INamed";
|
|
5
|
-
import { JsonObject, ulong } from "../API/Types";
|
|
6
|
-
import { Company } from "../Companies/Company";
|
|
7
|
-
import { Permission } from "./Permissions/Permission";
|
|
8
|
-
/**
|
|
9
|
-
* Members of a group (as set by a {@link User}'s {@link UserAdvanced.groups} or {@link Machine}'s {@link Machine.groups})
|
|
10
|
-
* allow for easy administration of permissions and levels of access.
|
|
11
|
-
*/
|
|
12
|
-
export declare class UserGroup extends BaseComponent implements IIdUlong, INamed, IBelongCompany {
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier of this group.
|
|
15
|
-
*/
|
|
16
|
-
id: ulong;
|
|
17
|
-
/**
|
|
18
|
-
* The company to which this group belongs.
|
|
19
|
-
* {@link Company.id}
|
|
20
|
-
*/
|
|
21
|
-
companyId: ulong;
|
|
22
|
-
/**
|
|
23
|
-
* The {@link Company} to which this group belongs.
|
|
24
|
-
*/
|
|
25
|
-
get company(): Company;
|
|
26
|
-
/**
|
|
27
|
-
* A name given to this group.
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
* Notes about this group, and to whom this group should be applied.
|
|
32
|
-
*/
|
|
33
|
-
notes: string;
|
|
34
|
-
/**
|
|
35
|
-
* Permissions for this group.
|
|
36
|
-
*/
|
|
37
|
-
permissions: Permission[];
|
|
38
|
-
toJSON(): {
|
|
39
|
-
id: number;
|
|
40
|
-
v: number[];
|
|
41
|
-
company: number;
|
|
42
|
-
name: string;
|
|
43
|
-
notes: string;
|
|
44
|
-
permissions: any[];
|
|
45
|
-
};
|
|
46
|
-
fromJSON(json: JsonObject, force?: boolean): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* The {@link id} is the key.
|
|
49
|
-
*/
|
|
50
|
-
getKey(): number;
|
|
51
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from '../API/Interfaces/ISerializable';
|
|
2
|
-
import { datetime, JsonObject, nothing } from '../API/Types';
|
|
3
|
-
import { MultiFactorType } from './MultiFactorType';
|
|
4
|
-
/**
|
|
5
|
-
* Multi-factor authentication details for a {@link User}.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UserMFA implements ISerializable {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param json
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
static fromJSON(json: JsonObject): UserMFA;
|
|
14
|
-
/**
|
|
15
|
-
* Indicates whether MFA is enabled for the user.
|
|
16
|
-
*/
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The type of MFA configured for the user.
|
|
20
|
-
*/
|
|
21
|
-
kind: MultiFactorType;
|
|
22
|
-
/**
|
|
23
|
-
* Phone number or email address associated with the MFA method.
|
|
24
|
-
*/
|
|
25
|
-
address: string;
|
|
26
|
-
/**
|
|
27
|
-
* Indicates if MFA setup has been completed and verified.
|
|
28
|
-
*/
|
|
29
|
-
verified: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The date when MFA was set up.
|
|
32
|
-
*/
|
|
33
|
-
setupDate: Date;
|
|
34
|
-
/**
|
|
35
|
-
* The last time the user authenticated using MFA.
|
|
36
|
-
*/
|
|
37
|
-
lastAuthentication: Date;
|
|
38
|
-
constructor(enabled?: boolean | nothing, kind?: MultiFactorType | nothing, address?: string | nothing, verified?: boolean | nothing, setupDate?: Date | datetime | nothing, lastAuthentication?: Date | datetime | nothing);
|
|
39
|
-
toJSON(): {
|
|
40
|
-
enabled: boolean;
|
|
41
|
-
kind: MultiFactorType;
|
|
42
|
-
address: string;
|
|
43
|
-
verified: boolean;
|
|
44
|
-
setupDate: string | null;
|
|
45
|
-
lastAuthentication: string | null;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { IEnabled } from "../API/Interfaces/IEnabled";
|
|
2
|
-
import { ISerializable } from "../API/Interfaces/ISerializable";
|
|
3
|
-
import { TimeSpan } from "../API/TimeSpan";
|
|
4
|
-
import { email, JsonObject, timespan, ulong } from "../API/Types";
|
|
5
|
-
import { NotificationMethod } from "./NotificationMethod";
|
|
6
|
-
/**
|
|
7
|
-
* Definition of how and when to send alerts to the user.
|
|
8
|
-
*/
|
|
9
|
-
export declare class UserNotifications implements IEnabled, ISerializable {
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @param json
|
|
13
|
-
*/
|
|
14
|
-
static fromJSON(json: JsonObject): UserNotifications;
|
|
15
|
-
/**
|
|
16
|
-
* A common name like "Weekdays" or "Off Hours".
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
/**
|
|
20
|
-
* A flag for whether or not this schedule is in use.
|
|
21
|
-
*/
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* A 7 item, boolean array, determines if the user should be notified on that day of the week.
|
|
25
|
-
* The days of the week are defined in local time, not UTC.
|
|
26
|
-
* {@link UserGeneral.timezone}
|
|
27
|
-
*/
|
|
28
|
-
weekdays: boolean[];
|
|
29
|
-
/**
|
|
30
|
-
* Start time portion of the schedule that defines a period of the day when the user wants to receive alerts.
|
|
31
|
-
* The time value is defined in local time, not UTC.
|
|
32
|
-
* {@link UserGeneral.timezone}
|
|
33
|
-
*/
|
|
34
|
-
start: TimeSpan;
|
|
35
|
-
/**
|
|
36
|
-
* End time portion of the schedule that defines a period of the day when the user wants to receive alerts.
|
|
37
|
-
* The time value is defined in local time, not UTC.
|
|
38
|
-
* {@link UserGeneral.timezone}
|
|
39
|
-
*/
|
|
40
|
-
end: TimeSpan;
|
|
41
|
-
/**
|
|
42
|
-
* Email address where the sent is sent.
|
|
43
|
-
* If not specified, the email address from the User's {@link Contact} is taken.
|
|
44
|
-
* If the contact has no email address, the alert is sent to the user's login.
|
|
45
|
-
*/
|
|
46
|
-
email: email;
|
|
47
|
-
/**
|
|
48
|
-
* SMS address where the alert is sent.
|
|
49
|
-
* If not specified, the mobile phone number from the User's {@link Contact} is taken.
|
|
50
|
-
* If the contact has no mobile phone number, the alert is not sent.
|
|
51
|
-
*/
|
|
52
|
-
sms: ulong;
|
|
53
|
-
/**
|
|
54
|
-
* A list of the types of methods to use to notify the user when they have an active WebSocket connection.
|
|
55
|
-
*/
|
|
56
|
-
online: NotificationMethod[];
|
|
57
|
-
/**
|
|
58
|
-
* A list of the types of methods to use to notify the user when they are not connected.
|
|
59
|
-
*/
|
|
60
|
-
offline: NotificationMethod[];
|
|
61
|
-
constructor(name?: string, enabled?: boolean, weekdays?: string | boolean[], start?: TimeSpan | timespan | number, end?: TimeSpan | timespan | number, email?: email, sms?: ulong, online?: NotificationMethod[], offline?: NotificationMethod[]);
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
toJSON(): {
|
|
66
|
-
name: string;
|
|
67
|
-
enabled: boolean;
|
|
68
|
-
weekdays: string;
|
|
69
|
-
start: string;
|
|
70
|
-
end: string;
|
|
71
|
-
email: string;
|
|
72
|
-
sms: number | null;
|
|
73
|
-
online: NotificationMethod[];
|
|
74
|
-
offline: NotificationMethod[];
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from '../API/Interfaces/ISerializable';
|
|
2
|
-
import { datetime, JsonObject, nothing } from '../API/Types';
|
|
3
|
-
import { SSOIdentityProvider } from './SSOIdentityProvider';
|
|
4
|
-
/**
|
|
5
|
-
* Single Sign-On authentication details for a {@link User}.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UserSSO implements ISerializable {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param json
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
static fromJSON(json: JsonObject): UserSSO;
|
|
14
|
-
/**
|
|
15
|
-
* Indicates whether MFA is enabled for the user.
|
|
16
|
-
*/
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The identity provider used for SSO.
|
|
20
|
-
*/
|
|
21
|
-
provider: SSOIdentityProvider;
|
|
22
|
-
/**
|
|
23
|
-
* The last time the user authenticated using SSO.
|
|
24
|
-
*/
|
|
25
|
-
lastAuthentication: Date;
|
|
26
|
-
/**
|
|
27
|
-
* External user ID from the identity provider.
|
|
28
|
-
*/
|
|
29
|
-
externalId: string;
|
|
30
|
-
constructor(enabled?: boolean | nothing, provider?: SSOIdentityProvider | nothing, lastAuthentication?: Date | datetime | nothing, externalId?: string | nothing);
|
|
31
|
-
toJSON(): {
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
provider: SSOIdentityProvider;
|
|
34
|
-
lastAuthentication: string | null;
|
|
35
|
-
externalId: string | null;
|
|
36
|
-
};
|
|
37
|
-
}
|