@jaws-developers-customers/consulca-types 1.1.27 → 1.2.30
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/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.mjs +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type UserStatus = 'active' | 'invited' | 'suspended' | 'disabled';
|
|
2
|
-
export type UserRole = 'lessor' | 'manager' | '
|
|
2
|
+
export type UserRole = 'admin' | 'lessor' | 'manager' | 'editor' | 'inspector' | 'employee';
|
|
3
3
|
export type AccessChannel = 'intranet_dashboard' | 'mobile_app' | 'website_admin';
|
|
4
4
|
export type AccessRole = 'admin' | 'manager' | 'employee' | 'lessor' | 'inspector' | 'editor';
|
|
5
5
|
export type AccessStatus = 'active' | 'revoked';
|
|
@@ -268,6 +268,7 @@ export declare const ACCESS_CHANNELS: readonly AccessChannel[];
|
|
|
268
268
|
export declare const ACCESS_ROLES: readonly AccessRole[];
|
|
269
269
|
export declare const ACCESS_STATUSES: readonly AccessStatus[];
|
|
270
270
|
export declare const DEVICE_TYPES: readonly DeviceType[];
|
|
271
|
+
export declare const EmptyUser: User;
|
|
271
272
|
export declare const PROPERTY_STATUSES: readonly PropertyStatus[];
|
|
272
273
|
export declare const MANAGEMENT_ROLES: readonly ManagementRole[];
|
|
273
274
|
export declare const LEASE_STATUSES: readonly LeaseStatus[];
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const USER_STATUSES = Object.freeze(['active', 'invited', 'suspended', 'disabled']);
|
|
4
|
-
const USER_ROLES = Object.freeze(['lessor', 'manager', '
|
|
4
|
+
const USER_ROLES = Object.freeze(['admin', 'lessor', 'manager', 'editor', 'inspector', 'employee']);
|
|
5
5
|
const ACCESS_CHANNELS = Object.freeze(['intranet_dashboard', 'mobile_app', 'website_admin']);
|
|
6
6
|
const ACCESS_ROLES = Object.freeze(['admin', 'manager', 'employee', 'lessor', 'inspector', 'editor']);
|
|
7
7
|
const ACCESS_STATUSES = Object.freeze(['active', 'revoked']);
|
|
@@ -14,6 +14,7 @@ const INSPECTION_STATUSES = Object.freeze(['draft', 'in_progress', 'submitted',
|
|
|
14
14
|
const CONDITION_STATUSES = Object.freeze(['good', 'minor_damage', 'major_damage', 'not_checked']);
|
|
15
15
|
const CLAIM_STATUSES = Object.freeze(['draft', 'submitted', 'in_review', 'approved', 'rejected', 'closed']);
|
|
16
16
|
const WORK_STATUSES = Object.freeze(['planned', 'assigned', 'in_progress', 'completed', 'cancelled']);
|
|
17
|
+
const EmptyUser = Object.freeze({});
|
|
17
18
|
const COLOR_PALETTE = Object.freeze({
|
|
18
19
|
primary: '#334E68',
|
|
19
20
|
secondary: '#829AB1',
|
|
@@ -132,6 +133,7 @@ module.exports = {
|
|
|
132
133
|
COLOR_PALETTE,
|
|
133
134
|
CONDITION_STATUSES,
|
|
134
135
|
DEVICE_TYPES,
|
|
136
|
+
EmptyUser,
|
|
135
137
|
INSPECTION_STATUSES,
|
|
136
138
|
INSPECTION_TYPES,
|
|
137
139
|
LEASE_STATUSES,
|
package/index.mjs
CHANGED