@vrplatform/log 2.0.0-alpha.38 → 2.0.0-alpha.39

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.
@@ -55,14 +55,14 @@ export type GroupProps = OptionalUser<{
55
55
  groupId: string;
56
56
  traits?: {
57
57
  name?: string;
58
- type?: 'admin' | 'partner' | 'propertyManager';
58
+ type?: TenantType;
59
59
  avatar?: string;
60
60
  createdAt?: string;
61
61
  partner?: string;
62
62
  partnerId?: string;
63
63
  billingCustomerId?: string;
64
64
  billingSubscriptionStatus?: string;
65
- status?: 'active' | 'inactive';
65
+ status?: TenantStatus;
66
66
  isOnboarding?: boolean;
67
67
  accountingPartner?: string;
68
68
  billingPartner?: string;
@@ -74,6 +74,8 @@ export type GroupProps = OptionalUser<{
74
74
  };
75
75
  timestamp?: Date;
76
76
  }>;
77
+ export type TenantType = 'admin' | 'partner' | 'propertyManager';
78
+ export type TenantStatus = 'active' | 'inactive';
77
79
  type OptionalUser<T> = T & ({
78
80
  userId: string;
79
81
  anonymousId?: string;
@@ -55,14 +55,14 @@ export type GroupProps = OptionalUser<{
55
55
  groupId: string;
56
56
  traits?: {
57
57
  name?: string;
58
- type?: 'admin' | 'partner' | 'propertyManager';
58
+ type?: TenantType;
59
59
  avatar?: string;
60
60
  createdAt?: string;
61
61
  partner?: string;
62
62
  partnerId?: string;
63
63
  billingCustomerId?: string;
64
64
  billingSubscriptionStatus?: string;
65
- status?: 'active' | 'inactive';
65
+ status?: TenantStatus;
66
66
  isOnboarding?: boolean;
67
67
  accountingPartner?: string;
68
68
  billingPartner?: string;
@@ -74,6 +74,8 @@ export type GroupProps = OptionalUser<{
74
74
  };
75
75
  timestamp?: Date;
76
76
  }>;
77
+ export type TenantType = 'admin' | 'partner' | 'propertyManager';
78
+ export type TenantStatus = 'active' | 'inactive';
77
79
  type OptionalUser<T> = T & ({
78
80
  userId: string;
79
81
  anonymousId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrplatform/log",
3
- "version": "2.0.0-alpha.38",
3
+ "version": "2.0.0-alpha.39",
4
4
  "main": "src/index.ts",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -147,14 +147,14 @@ export type GroupProps = OptionalUser<{
147
147
  groupId: string;
148
148
  traits?: {
149
149
  name?: string;
150
- type?: 'admin' | 'partner' | 'propertyManager';
150
+ type?: TenantType;
151
151
  avatar?: string;
152
152
  createdAt?: string;
153
153
  partner?: string;
154
154
  partnerId?: string;
155
155
  billingCustomerId?: string;
156
156
  billingSubscriptionStatus?: string; // todo: update type as enum
157
- status?: 'active' | 'inactive';
157
+ status?: TenantStatus;
158
158
  isOnboarding?: boolean;
159
159
  accountingPartner?: string;
160
160
  billingPartner?: string;
@@ -167,6 +167,9 @@ export type GroupProps = OptionalUser<{
167
167
  timestamp?: Date;
168
168
  }>;
169
169
 
170
+ export type TenantType = 'admin' | 'partner' | 'propertyManager';
171
+ export type TenantStatus = 'active' | 'inactive';
172
+
170
173
  type OptionalUser<T> = T &
171
174
  (
172
175
  | { userId: string; anonymousId?: string }