@lightdash/common 0.1366.2 → 0.1368.0

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.
@@ -10,6 +10,8 @@ export declare const adminOrgProfile: {
10
10
  role: OrganizationMemberRole;
11
11
  organizationUuid: string;
12
12
  userUuid: string;
13
+ userCreatedAt: Date;
14
+ userUpdatedAt: Date;
13
15
  firstName: string;
14
16
  lastName: string;
15
17
  email: string;
@@ -14,6 +14,8 @@ exports.orgProfile = {
14
14
  lastName: '',
15
15
  organizationUuid: 'organization-uuid-view',
16
16
  isActive: true,
17
+ userCreatedAt: new Date(),
18
+ userUpdatedAt: new Date(),
17
19
  };
18
20
  exports.projectProfile = {
19
21
  userUuid: 'user-uuid-1234',
@@ -10,6 +10,8 @@ exports.ORGANIZATION_MEMBER = {
10
10
  lastName: 'jackson',
11
11
  email: 'jane@gmail.com',
12
12
  isActive: true,
13
+ userCreatedAt: new Date(),
14
+ userUpdatedAt: new Date(),
13
15
  };
14
16
  exports.ORGANIZATION_VIEWER = {
15
17
  ...exports.ORGANIZATION_MEMBER,
@@ -17,6 +17,8 @@ export type OrganizationMemberProfile = {
17
17
  * @format uuid
18
18
  */
19
19
  userUuid: string;
20
+ userCreatedAt: Date;
21
+ userUpdatedAt: Date;
20
22
  firstName: string;
21
23
  lastName: string;
22
24
  email: string;
@@ -1,14 +1,13 @@
1
1
  export type PersonalAccessToken = {
2
- uuid?: string;
2
+ uuid: string;
3
3
  createdAt: Date;
4
- expiresAt?: Date;
4
+ lastUsedAt: Date | null;
5
+ rotatedAt: Date | null;
6
+ expiresAt: Date | null;
5
7
  description: string;
6
8
  };
7
- export type ApiPersonalAccessTokenResponse = {
8
- uuid?: string;
9
- createdAt: string;
10
- expiresAt?: string;
11
- description: string;
9
+ export type PersonalAccessTokenWithToken = PersonalAccessToken & {
10
+ token: string;
12
11
  };
13
12
  export type CreatePersonalAccessToken = Pick<PersonalAccessToken, 'expiresAt' | 'description'> & {
14
13
  autoGenerated: boolean;
@@ -14,6 +14,8 @@ export interface LightdashUser {
14
14
  isMarketingOptedIn: boolean;
15
15
  isSetupComplete: boolean;
16
16
  role?: OrganizationMemberRole;
17
+ createdAt: Date;
18
+ updatedAt: Date;
17
19
  /**
18
20
  * Whether the user can login
19
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1366.2",
3
+ "version": "0.1368.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [