@vrplatform/log 2.0.0-alpha.39 → 2.0.0-alpha.40
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.
|
@@ -45,7 +45,7 @@ export type IdentifyProps = {
|
|
|
45
45
|
isVrpAdmin?: boolean;
|
|
46
46
|
isPartnerAdmin?: boolean;
|
|
47
47
|
isTeamAdmin?: boolean;
|
|
48
|
-
role?:
|
|
48
|
+
role?: UserRole;
|
|
49
49
|
[key: string]: string | number | boolean | null | undefined;
|
|
50
50
|
};
|
|
51
51
|
disableGeoip?: boolean;
|
|
@@ -74,6 +74,7 @@ export type GroupProps = OptionalUser<{
|
|
|
74
74
|
};
|
|
75
75
|
timestamp?: Date;
|
|
76
76
|
}>;
|
|
77
|
+
export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-admin' | 'admin' | 'owner' | 'user';
|
|
77
78
|
export type TenantType = 'admin' | 'partner' | 'propertyManager';
|
|
78
79
|
export type TenantStatus = 'active' | 'inactive';
|
|
79
80
|
type OptionalUser<T> = T & ({
|
|
@@ -45,7 +45,7 @@ export type IdentifyProps = {
|
|
|
45
45
|
isVrpAdmin?: boolean;
|
|
46
46
|
isPartnerAdmin?: boolean;
|
|
47
47
|
isTeamAdmin?: boolean;
|
|
48
|
-
role?:
|
|
48
|
+
role?: UserRole;
|
|
49
49
|
[key: string]: string | number | boolean | null | undefined;
|
|
50
50
|
};
|
|
51
51
|
disableGeoip?: boolean;
|
|
@@ -74,6 +74,7 @@ export type GroupProps = OptionalUser<{
|
|
|
74
74
|
};
|
|
75
75
|
timestamp?: Date;
|
|
76
76
|
}>;
|
|
77
|
+
export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-admin' | 'admin' | 'owner' | 'user';
|
|
77
78
|
export type TenantType = 'admin' | 'partner' | 'propertyManager';
|
|
78
79
|
export type TenantStatus = 'active' | 'inactive';
|
|
79
80
|
type OptionalUser<T> = T & ({
|
package/package.json
CHANGED
package/src/tracking/types.ts
CHANGED
|
@@ -130,14 +130,7 @@ export type IdentifyProps = {
|
|
|
130
130
|
isVrpAdmin?: boolean;
|
|
131
131
|
isPartnerAdmin?: boolean;
|
|
132
132
|
isTeamAdmin?: boolean;
|
|
133
|
-
role?:
|
|
134
|
-
| 'super-admin'
|
|
135
|
-
| 'vrp-admin'
|
|
136
|
-
| 'partner-admin'
|
|
137
|
-
| 'team-admin'
|
|
138
|
-
| 'admin'
|
|
139
|
-
| 'owner'
|
|
140
|
-
| 'user';
|
|
133
|
+
role?: UserRole;
|
|
141
134
|
[key: string]: string | number | boolean | null | undefined;
|
|
142
135
|
};
|
|
143
136
|
disableGeoip?: boolean;
|
|
@@ -167,6 +160,14 @@ export type GroupProps = OptionalUser<{
|
|
|
167
160
|
timestamp?: Date;
|
|
168
161
|
}>;
|
|
169
162
|
|
|
163
|
+
export type UserRole =
|
|
164
|
+
| 'super-admin'
|
|
165
|
+
| 'vrp-admin'
|
|
166
|
+
| 'partner-admin'
|
|
167
|
+
| 'team-admin'
|
|
168
|
+
| 'admin'
|
|
169
|
+
| 'owner'
|
|
170
|
+
| 'user';
|
|
170
171
|
export type TenantType = 'admin' | 'partner' | 'propertyManager';
|
|
171
172
|
export type TenantStatus = 'active' | 'inactive';
|
|
172
173
|
|