@storyshelf/db-sqlite 0.7.0 → 0.9.0-next-d2cc082
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/dist/better-sqlite3.d.mts +0 -2
- package/dist/better-sqlite3.mjs +2 -3
- package/dist/bun-sqlite.d.mts +0 -2
- package/dist/bun-sqlite.mjs +2 -3
- package/dist/d1.d.mts +0 -2
- package/dist/d1.mjs +2 -3
- package/dist/ddl.d.mts +1 -3
- package/dist/ddl.mjs +22 -2
- package/dist/ddl.mjs.map +1 -1
- package/dist/drizzle-factory.d.mts +0 -2
- package/dist/drizzle-factory.mjs +6 -3
- package/dist/drizzle-factory.mjs.map +1 -1
- package/dist/ensure-db-dir.mjs +2 -4
- package/dist/ensure-db-dir.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/dist/schema/baseline.d.mts +33 -16
- package/dist/schema/baseline.mjs +2 -2
- package/dist/schema/baseline.mjs.map +1 -1
- package/dist/schema/build-component.d.mts +9 -11
- package/dist/schema/build-component.mjs +1 -2
- package/dist/schema/build-review.d.mts +7 -9
- package/dist/schema/build-review.mjs +1 -2
- package/dist/schema/build.d.mts +43 -25
- package/dist/schema/build.mjs +2 -2
- package/dist/schema/build.mjs.map +1 -1
- package/dist/schema/capture-attempt.d.mts +25 -27
- package/dist/schema/capture-attempt.mjs +1 -2
- package/dist/schema/capture-job.d.mts +0 -2
- package/dist/schema/capture-job.mjs +1 -2
- package/dist/schema/capture-shard.d.mts +15 -17
- package/dist/schema/capture-shard.mjs +1 -2
- package/dist/schema/comment.d.mts +12 -14
- package/dist/schema/comment.mjs +1 -2
- package/dist/schema/connection.d.mts +10 -12
- package/dist/schema/connection.mjs +1 -2
- package/dist/schema/content-refs.d.mts +0 -2
- package/dist/schema/content-refs.mjs +1 -2
- package/dist/schema/design.d.mts +53 -35
- package/dist/schema/design.mjs +2 -2
- package/dist/schema/design.mjs.map +1 -1
- package/dist/schema/insight.d.mts +36 -38
- package/dist/schema/insight.mjs +1 -2
- package/dist/schema/label.d.mts +15 -17
- package/dist/schema/label.mjs +1 -2
- package/dist/schema/member.d.mts +7 -9
- package/dist/schema/member.mjs +1 -2
- package/dist/schema/notification.d.mts +20 -22
- package/dist/schema/notification.mjs +1 -2
- package/dist/schema/project-group-mapping.d.mts +6 -8
- package/dist/schema/project-group-mapping.mjs +1 -2
- package/dist/schema/project.d.mts +0 -2
- package/dist/schema/project.mjs +1 -2
- package/dist/schema/site-setting.d.mts +0 -2
- package/dist/schema/site-setting.mjs +1 -2
- package/dist/schema/snapshot.d.mts +91 -33
- package/dist/schema/snapshot.mjs +4 -2
- package/dist/schema/snapshot.mjs.map +1 -1
- package/dist/schema/token.d.mts +8 -10
- package/dist/schema/token.mjs +1 -2
- package/dist/schema/usage.d.mts +15 -17
- package/dist/schema/usage.mjs +1 -2
- package/dist/schema/user-invite.d.mts +7 -9
- package/dist/schema/user-invite.mjs +1 -2
- package/dist/schema/user.d.mts +0 -2
- package/dist/schema/user.mjs +1 -2
- package/dist/schema/webhook.d.mts +8 -10
- package/dist/schema/webhook.mjs +1 -2
- package/dist/schema.d.mts +0 -2
- package/dist/schema.mjs +1 -2
- package/dist/turso.d.mts +0 -2
- package/dist/turso.mjs +2 -3
- package/package.json +4 -13
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
//#region src/schema/connection.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* A user's own OAuth connection to an external service (Figma, later Jira/Linear/…),
|
|
6
5
|
* one per user and service. `tokenEncrypted` is the access token; the refresh token
|
|
7
6
|
* is encrypted too. `status` is `ok` or `expired` (needs reconnecting).
|
|
8
7
|
*/
|
|
9
|
-
declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
8
|
+
declare const userConnections: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
10
9
|
name: "user_connections";
|
|
11
10
|
schema: undefined;
|
|
12
11
|
columns: {
|
|
13
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
12
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
14
13
|
name: "id";
|
|
15
14
|
tableName: "user_connections";
|
|
16
15
|
dataType: "string";
|
|
@@ -29,7 +28,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
29
28
|
}, {}, {
|
|
30
29
|
length: number | undefined;
|
|
31
30
|
}>;
|
|
32
|
-
userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
31
|
+
userId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
33
32
|
name: "user_id";
|
|
34
33
|
tableName: "user_connections";
|
|
35
34
|
dataType: "string";
|
|
@@ -48,7 +47,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
48
47
|
}, {}, {
|
|
49
48
|
length: number | undefined;
|
|
50
49
|
}>;
|
|
51
|
-
service: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
50
|
+
service: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
52
51
|
name: "service";
|
|
53
52
|
tableName: "user_connections";
|
|
54
53
|
dataType: "string";
|
|
@@ -67,7 +66,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
67
66
|
}, {}, {
|
|
68
67
|
length: number | undefined;
|
|
69
68
|
}>;
|
|
70
|
-
tokenEncrypted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
69
|
+
tokenEncrypted: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
71
70
|
name: "token_encrypted";
|
|
72
71
|
tableName: "user_connections";
|
|
73
72
|
dataType: "string";
|
|
@@ -86,7 +85,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
86
85
|
}, {}, {
|
|
87
86
|
length: number | undefined;
|
|
88
87
|
}>;
|
|
89
|
-
refreshTokenEncrypted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
88
|
+
refreshTokenEncrypted: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
90
89
|
name: "refresh_token_encrypted";
|
|
91
90
|
tableName: "user_connections";
|
|
92
91
|
dataType: "string";
|
|
@@ -105,7 +104,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
105
104
|
}, {}, {
|
|
106
105
|
length: number | undefined;
|
|
107
106
|
}>;
|
|
108
|
-
expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
107
|
+
expiresAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
109
108
|
name: "expires_at";
|
|
110
109
|
tableName: "user_connections";
|
|
111
110
|
dataType: "string";
|
|
@@ -124,7 +123,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
124
123
|
}, {}, {
|
|
125
124
|
length: number | undefined;
|
|
126
125
|
}>;
|
|
127
|
-
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
126
|
+
status: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
128
127
|
name: "status";
|
|
129
128
|
tableName: "user_connections";
|
|
130
129
|
dataType: "string";
|
|
@@ -143,7 +142,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
143
142
|
}, {}, {
|
|
144
143
|
length: number | undefined;
|
|
145
144
|
}>;
|
|
146
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
145
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
147
146
|
name: "created_at";
|
|
148
147
|
tableName: "user_connections";
|
|
149
148
|
dataType: "string";
|
|
@@ -162,7 +161,7 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
162
161
|
}, {}, {
|
|
163
162
|
length: number | undefined;
|
|
164
163
|
}>;
|
|
165
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
164
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
166
165
|
name: "updated_at";
|
|
167
166
|
tableName: "user_connections";
|
|
168
167
|
dataType: "string";
|
|
@@ -186,6 +185,5 @@ declare const userConnections: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
186
185
|
}>;
|
|
187
186
|
/** Row type of `user_connections`. */
|
|
188
187
|
type UserConnection = typeof userConnections.$inferSelect;
|
|
189
|
-
//#endregion
|
|
190
188
|
export { UserConnection, userConnections };
|
|
191
189
|
//# sourceMappingURL=connection.d.mts.map
|
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { users } from "./user.mjs";
|
|
5
5
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
6
|
-
|
|
6
|
+
// src/schema/connection.ts
|
|
7
7
|
/**
|
|
8
8
|
* A user's own OAuth connection to an external service (Figma, later Jira/Linear/…),
|
|
9
9
|
* one per user and service. `tokenEncrypted` is the access token; the refresh token
|
|
@@ -20,7 +20,6 @@ const userConnections = sqliteTable("user_connections", {
|
|
|
20
20
|
createdAt: text("created_at").notNull(),
|
|
21
21
|
updatedAt: text("updated_at").notNull()
|
|
22
22
|
}, (t) => [uniqueIndex("user_connections_user_service_idx").on(t.userId, t.service)]);
|
|
23
|
-
//#endregion
|
|
24
23
|
export { userConnections };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=connection.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
//#region src/schema/content-refs.d.ts
|
|
4
3
|
/** Content-addressed storage refs for deduplicated Storybook assets. */
|
|
5
4
|
declare const contentRefs: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
6
5
|
name: "content_refs";
|
|
@@ -90,6 +89,5 @@ interface ContentRef {
|
|
|
90
89
|
lastSeenAt: string;
|
|
91
90
|
createdAt: string;
|
|
92
91
|
}
|
|
93
|
-
//#endregion
|
|
94
92
|
export { ContentRef, contentRefs };
|
|
95
93
|
//# sourceMappingURL=content-refs.d.mts.map
|
|
@@ -2,7 +2,7 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
5
|
-
|
|
5
|
+
// src/schema/content-refs.ts
|
|
6
6
|
/** Content-addressed storage refs for deduplicated Storybook assets. */
|
|
7
7
|
const contentRefs = sqliteTable("content_refs", {
|
|
8
8
|
hash: text("hash").primaryKey(),
|
|
@@ -10,7 +10,6 @@ const contentRefs = sqliteTable("content_refs", {
|
|
|
10
10
|
lastSeenAt: text("last_seen_at").notNull(),
|
|
11
11
|
createdAt: text("created_at").notNull()
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { contentRefs };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=content-refs.mjs.map
|
package/dist/schema/design.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
//#region src/schema/design.d.ts
|
|
4
3
|
/** Narrow `design_links` table definition. */
|
|
5
|
-
declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
4
|
+
declare const designLinks: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
6
5
|
name: "design_links";
|
|
7
6
|
schema: undefined;
|
|
8
7
|
columns: {
|
|
9
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
10
9
|
name: "id";
|
|
11
10
|
tableName: "design_links";
|
|
12
11
|
dataType: "string";
|
|
@@ -25,7 +24,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
25
24
|
}, {}, {
|
|
26
25
|
length: number | undefined;
|
|
27
26
|
}>;
|
|
28
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
27
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
29
28
|
name: "project_id";
|
|
30
29
|
tableName: "design_links";
|
|
31
30
|
dataType: "string";
|
|
@@ -44,7 +43,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
44
43
|
}, {}, {
|
|
45
44
|
length: number | undefined;
|
|
46
45
|
}>;
|
|
47
|
-
importPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
46
|
+
importPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
48
47
|
name: "import_path";
|
|
49
48
|
tableName: "design_links";
|
|
50
49
|
dataType: "string";
|
|
@@ -63,7 +62,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
63
62
|
}, {}, {
|
|
64
63
|
length: number | undefined;
|
|
65
64
|
}>;
|
|
66
|
-
label: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
65
|
+
label: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
67
66
|
name: "label";
|
|
68
67
|
tableName: "design_links";
|
|
69
68
|
dataType: "string";
|
|
@@ -82,7 +81,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
82
81
|
}, {}, {
|
|
83
82
|
length: number | undefined;
|
|
84
83
|
}>;
|
|
85
|
-
url: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
84
|
+
url: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
86
85
|
name: "url";
|
|
87
86
|
tableName: "design_links";
|
|
88
87
|
dataType: "string";
|
|
@@ -101,7 +100,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
101
100
|
}, {}, {
|
|
102
101
|
length: number | undefined;
|
|
103
102
|
}>;
|
|
104
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
103
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
105
104
|
name: "created_at";
|
|
106
105
|
tableName: "design_links";
|
|
107
106
|
dataType: "string";
|
|
@@ -120,7 +119,7 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
120
119
|
}, {}, {
|
|
121
120
|
length: number | undefined;
|
|
122
121
|
}>;
|
|
123
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
122
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
124
123
|
name: "updated_at";
|
|
125
124
|
tableName: "design_links";
|
|
126
125
|
dataType: "string";
|
|
@@ -143,11 +142,11 @@ declare const designLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
143
142
|
dialect: 'sqlite';
|
|
144
143
|
}>;
|
|
145
144
|
/** Narrow `design_credentials` table definition: the project-wide design-provider token. */
|
|
146
|
-
declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
145
|
+
declare const designCredentials: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
147
146
|
name: "design_credentials";
|
|
148
147
|
schema: undefined;
|
|
149
148
|
columns: {
|
|
150
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
149
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
151
150
|
name: "id";
|
|
152
151
|
tableName: "design_credentials";
|
|
153
152
|
dataType: "string";
|
|
@@ -166,7 +165,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
166
165
|
}, {}, {
|
|
167
166
|
length: number | undefined;
|
|
168
167
|
}>;
|
|
169
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
168
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
170
169
|
name: "project_id";
|
|
171
170
|
tableName: "design_credentials";
|
|
172
171
|
dataType: "string";
|
|
@@ -185,7 +184,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
185
184
|
}, {}, {
|
|
186
185
|
length: number | undefined;
|
|
187
186
|
}>;
|
|
188
|
-
provider: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
187
|
+
provider: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
189
188
|
name: "provider";
|
|
190
189
|
tableName: "design_credentials";
|
|
191
190
|
dataType: "string";
|
|
@@ -204,7 +203,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
204
203
|
}, {}, {
|
|
205
204
|
length: number | undefined;
|
|
206
205
|
}>;
|
|
207
|
-
tokenEncrypted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
206
|
+
tokenEncrypted: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
208
207
|
name: "token_encrypted";
|
|
209
208
|
tableName: "design_credentials";
|
|
210
209
|
dataType: "string";
|
|
@@ -223,7 +222,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
223
222
|
}, {}, {
|
|
224
223
|
length: number | undefined;
|
|
225
224
|
}>;
|
|
226
|
-
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
225
|
+
status: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
227
226
|
name: "status";
|
|
228
227
|
tableName: "design_credentials";
|
|
229
228
|
dataType: "string";
|
|
@@ -242,7 +241,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
242
241
|
}, {}, {
|
|
243
242
|
length: number | undefined;
|
|
244
243
|
}>;
|
|
245
|
-
checkedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
244
|
+
checkedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
246
245
|
name: "checked_at";
|
|
247
246
|
tableName: "design_credentials";
|
|
248
247
|
dataType: "string";
|
|
@@ -261,7 +260,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
261
260
|
}, {}, {
|
|
262
261
|
length: number | undefined;
|
|
263
262
|
}>;
|
|
264
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
263
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
265
264
|
name: "created_at";
|
|
266
265
|
tableName: "design_credentials";
|
|
267
266
|
dataType: "string";
|
|
@@ -280,7 +279,7 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
280
279
|
}, {}, {
|
|
281
280
|
length: number | undefined;
|
|
282
281
|
}>;
|
|
283
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
282
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
284
283
|
name: "updated_at";
|
|
285
284
|
tableName: "design_credentials";
|
|
286
285
|
dataType: "string";
|
|
@@ -303,11 +302,11 @@ declare const designCredentials: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
303
302
|
dialect: 'sqlite';
|
|
304
303
|
}>;
|
|
305
304
|
/** Narrow `design_nodes` table definition (design metadata + render cache). */
|
|
306
|
-
declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
305
|
+
declare const designNodes: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
307
306
|
name: "design_nodes";
|
|
308
307
|
schema: undefined;
|
|
309
308
|
columns: {
|
|
310
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
309
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
311
310
|
name: "id";
|
|
312
311
|
tableName: "design_nodes";
|
|
313
312
|
dataType: "string";
|
|
@@ -326,7 +325,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
326
325
|
}, {}, {
|
|
327
326
|
length: number | undefined;
|
|
328
327
|
}>;
|
|
329
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
328
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
330
329
|
name: "project_id";
|
|
331
330
|
tableName: "design_nodes";
|
|
332
331
|
dataType: "string";
|
|
@@ -345,7 +344,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
345
344
|
}, {}, {
|
|
346
345
|
length: number | undefined;
|
|
347
346
|
}>;
|
|
348
|
-
provider: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
347
|
+
provider: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
349
348
|
name: "provider";
|
|
350
349
|
tableName: "design_nodes";
|
|
351
350
|
dataType: "string";
|
|
@@ -364,7 +363,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
364
363
|
}, {}, {
|
|
365
364
|
length: number | undefined;
|
|
366
365
|
}>;
|
|
367
|
-
viewerId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
366
|
+
viewerId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
368
367
|
name: "viewer_id";
|
|
369
368
|
tableName: "design_nodes";
|
|
370
369
|
dataType: "string";
|
|
@@ -383,7 +382,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
383
382
|
}, {}, {
|
|
384
383
|
length: number | undefined;
|
|
385
384
|
}>;
|
|
386
|
-
fileKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
385
|
+
fileKey: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
387
386
|
name: "file_key";
|
|
388
387
|
tableName: "design_nodes";
|
|
389
388
|
dataType: "string";
|
|
@@ -402,7 +401,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
402
401
|
}, {}, {
|
|
403
402
|
length: number | undefined;
|
|
404
403
|
}>;
|
|
405
|
-
nodeId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
404
|
+
nodeId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
406
405
|
name: "node_id";
|
|
407
406
|
tableName: "design_nodes";
|
|
408
407
|
dataType: "string";
|
|
@@ -421,7 +420,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
421
420
|
}, {}, {
|
|
422
421
|
length: number | undefined;
|
|
423
422
|
}>;
|
|
424
|
-
name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
423
|
+
name: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
425
424
|
name: "name";
|
|
426
425
|
tableName: "design_nodes";
|
|
427
426
|
dataType: "string";
|
|
@@ -440,7 +439,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
440
439
|
}, {}, {
|
|
441
440
|
length: number | undefined;
|
|
442
441
|
}>;
|
|
443
|
-
version: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
442
|
+
version: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
444
443
|
name: "version";
|
|
445
444
|
tableName: "design_nodes";
|
|
446
445
|
dataType: "string";
|
|
@@ -459,7 +458,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
459
458
|
}, {}, {
|
|
460
459
|
length: number | undefined;
|
|
461
460
|
}>;
|
|
462
|
-
lastModified: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
461
|
+
lastModified: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
463
462
|
name: "last_modified";
|
|
464
463
|
tableName: "design_nodes";
|
|
465
464
|
dataType: "string";
|
|
@@ -478,7 +477,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
478
477
|
}, {}, {
|
|
479
478
|
length: number | undefined;
|
|
480
479
|
}>;
|
|
481
|
-
state: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
480
|
+
state: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
482
481
|
name: "state";
|
|
483
482
|
tableName: "design_nodes";
|
|
484
483
|
dataType: "string";
|
|
@@ -497,7 +496,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
497
496
|
}, {}, {
|
|
498
497
|
length: number | undefined;
|
|
499
498
|
}>;
|
|
500
|
-
renderPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
499
|
+
renderPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
501
500
|
name: "render_path";
|
|
502
501
|
tableName: "design_nodes";
|
|
503
502
|
dataType: "string";
|
|
@@ -516,7 +515,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
516
515
|
}, {}, {
|
|
517
516
|
length: number | undefined;
|
|
518
517
|
}>;
|
|
519
|
-
renderVersion: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
518
|
+
renderVersion: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
520
519
|
name: "render_version";
|
|
521
520
|
tableName: "design_nodes";
|
|
522
521
|
dataType: "string";
|
|
@@ -535,7 +534,26 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
535
534
|
}, {}, {
|
|
536
535
|
length: number | undefined;
|
|
537
536
|
}>;
|
|
538
|
-
|
|
537
|
+
notifiedVersion: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
538
|
+
name: "notified_version";
|
|
539
|
+
tableName: "design_nodes";
|
|
540
|
+
dataType: "string";
|
|
541
|
+
columnType: "SQLiteText";
|
|
542
|
+
data: string;
|
|
543
|
+
driverParam: string;
|
|
544
|
+
notNull: false;
|
|
545
|
+
hasDefault: false;
|
|
546
|
+
isPrimaryKey: false;
|
|
547
|
+
isAutoincrement: false;
|
|
548
|
+
hasRuntimeDefault: false;
|
|
549
|
+
enumValues: [string, ...string[]];
|
|
550
|
+
baseColumn: never;
|
|
551
|
+
identity: undefined;
|
|
552
|
+
generated: undefined;
|
|
553
|
+
}, {}, {
|
|
554
|
+
length: number | undefined;
|
|
555
|
+
}>;
|
|
556
|
+
fetchedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
539
557
|
name: "fetched_at";
|
|
540
558
|
tableName: "design_nodes";
|
|
541
559
|
dataType: "string";
|
|
@@ -554,7 +572,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
554
572
|
}, {}, {
|
|
555
573
|
length: number | undefined;
|
|
556
574
|
}>;
|
|
557
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
575
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
558
576
|
name: "created_at";
|
|
559
577
|
tableName: "design_nodes";
|
|
560
578
|
dataType: "string";
|
|
@@ -573,7 +591,7 @@ declare const designNodes: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
573
591
|
}, {}, {
|
|
574
592
|
length: number | undefined;
|
|
575
593
|
}>;
|
|
576
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
594
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
577
595
|
name: "updated_at";
|
|
578
596
|
tableName: "design_nodes";
|
|
579
597
|
dataType: "string";
|
|
@@ -640,10 +658,10 @@ interface DesignNode {
|
|
|
640
658
|
renderPath: string | null;
|
|
641
659
|
/** File `version` the cached render was taken at. */
|
|
642
660
|
renderVersion: string | null;
|
|
661
|
+
notifiedVersion: string | null;
|
|
643
662
|
fetchedAt: string;
|
|
644
663
|
createdAt: string;
|
|
645
664
|
updatedAt: string;
|
|
646
665
|
}
|
|
647
|
-
//#endregion
|
|
648
666
|
export { DesignCredential, DesignLink, DesignNode, designCredentials, designLinks, designNodes };
|
|
649
667
|
//# sourceMappingURL=design.d.mts.map
|
package/dist/schema/design.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { index, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
6
|
-
|
|
6
|
+
// src/schema/design.ts
|
|
7
7
|
/** Narrow `design_links` table definition. */
|
|
8
8
|
const designLinks = sqliteTable("design_links", {
|
|
9
9
|
id: text("id").primaryKey(),
|
|
@@ -39,11 +39,11 @@ const designNodes = sqliteTable("design_nodes", {
|
|
|
39
39
|
state: text("state").notNull().default("ok"),
|
|
40
40
|
renderPath: text("render_path"),
|
|
41
41
|
renderVersion: text("render_version"),
|
|
42
|
+
notifiedVersion: text("notified_version"),
|
|
42
43
|
fetchedAt: text("fetched_at").notNull(),
|
|
43
44
|
createdAt: text("created_at").notNull(),
|
|
44
45
|
updatedAt: text("updated_at").notNull()
|
|
45
46
|
}, (t) => [uniqueIndex("design_nodes_project_file_node_idx").on(t.projectId, t.provider, t.viewerId, t.fileKey, t.nodeId)]);
|
|
46
|
-
//#endregion
|
|
47
47
|
export { designCredentials, designLinks, designNodes };
|
|
48
48
|
|
|
49
49
|
//# sourceMappingURL=design.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design.mjs","names":[],"sources":["../../src/schema/design.ts"],"sourcesContent":["import { index, sqliteTable, text, uniqueIndex } from \"drizzle-orm/sqlite-core\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `design_links` table definition. */\nexport const designLinks = sqliteTable(\n \"design_links\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n importPath: text(\"import_path\"),\n label: text(\"label\"),\n url: text(\"url\").notNull(),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n index(\"design_links_project_id_idx\").on(t.projectId),\n // One mapping per story file; project-level links (null import_path) never collide.\n uniqueIndex(\"design_links_project_import_path_idx\").on(t.projectId, t.importPath),\n ],\n);\n\n/** Narrow `design_credentials` table definition: the project-wide design-provider token. */\nexport const designCredentials = sqliteTable(\n \"design_credentials\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n provider: text(\"provider\").notNull(),\n tokenEncrypted: text(\"token_encrypted\").notNull(),\n status: text(\"status\").notNull().default(\"unknown\"),\n checkedAt: text(\"checked_at\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [uniqueIndex(\"design_credentials_project_provider_idx\").on(t.projectId, t.provider)],\n);\n\n/** Narrow `design_nodes` table definition (design metadata + render cache). */\nexport const designNodes = sqliteTable(\n \"design_nodes\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n provider: text(\"provider\").notNull(),\n viewerId: text(\"viewer_id\").notNull().default(\"\"),\n fileKey: text(\"file_key\").notNull(),\n nodeId: text(\"node_id\").notNull().default(\"\"),\n name: text(\"name\"),\n version: text(\"version\"),\n lastModified: text(\"last_modified\"),\n state: text(\"state\").notNull().default(\"ok\"),\n renderPath: text(\"render_path\"),\n renderVersion: text(\"render_version\"),\n fetchedAt: text(\"fetched_at\").notNull(),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n uniqueIndex(\"design_nodes_project_file_node_idx\").on(\n t.projectId,\n t.provider,\n t.viewerId,\n t.fileKey,\n t.nodeId,\n ),\n ],\n);\n\n/** A design link: a project-level file link (`importPath` null) or a component mapping override. */\nexport interface DesignLink {\n id: string;\n projectId: string;\n /** Story file the URL is mapped to; null for a project-level design file link. */\n importPath: string | null;\n /** Display label of a project-level link. */\n label: string | null;\n url: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** The project-wide token of a design provider (an admin pastes it; encrypted at rest). */\nexport interface DesignCredential {\n id: string;\n projectId: string;\n /** Provider `metadata.kind`, e.g. `figma`. */\n provider: string;\n tokenEncrypted: string;\n /** Last API outcome: `unknown` | `ok` | `unauthorized` | `forbidden`. */\n status: string;\n checkedAt: string | null;\n /** When the credential was set or replaced; drives the rotation clock. */\n createdAt: string;\n updatedAt: string;\n}\n\n/** Cached design file/node metadata, keyed by project, provider, viewer, file key and node id. */\nexport interface DesignNode {\n id: string;\n projectId: string;\n provider: string;\n /** Whose access fetched the entry: `\"\"` for the project credential, else a user id. */\n viewerId: string;\n fileKey: string;\n /** Provider node id; empty string for a whole-file link. */\n nodeId: string;\n name: string | null;\n version: string | null;\n lastModified: string | null;\n /** `ok` | `deleted` | `unauthorized` | `forbidden`. */\n state: string;\n /** Storage path of the cached PNG render (node links only). */\n renderPath: string | null;\n /** File `version` the cached render was taken at. */\n renderVersion: string | null;\n fetchedAt: string;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;AAIA,MAAa,cAAc,YACzB,gBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,YAAY,KAAK,aAAa;CAC9B,OAAO,KAAK,OAAO;CACnB,KAAK,KAAK,KAAK,CAAC,CAAC,QAAQ;CACzB,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CACL,MAAM,6BAA6B,CAAC,CAAC,GAAG,EAAE,SAAS,GAEnD,YAAY,sCAAsC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,CAClF,CACF;;AAGA,MAAa,oBAAoB,YAC/B,sBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,UAAU,KAAK,UAAU,CAAC,CAAC,QAAQ;CACnC,gBAAgB,KAAK,iBAAiB,CAAC,CAAC,QAAQ;CAChD,QAAQ,KAAK,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAClD,WAAW,KAAK,YAAY;CAC5B,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CAAC,YAAY,yCAAyC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,CAC5F;;AAGA,MAAa,cAAc,YACzB,gBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,UAAU,KAAK,UAAU,CAAC,CAAC,QAAQ;CACnC,UAAU,KAAK,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;CAChD,SAAS,KAAK,UAAU,CAAC,CAAC,QAAQ;CAClC,QAAQ,KAAK,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;CAC5C,MAAM,KAAK,MAAM;CACjB,SAAS,KAAK,SAAS;CACvB,cAAc,KAAK,eAAe;CAClC,OAAO,KAAK,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,IAAI;CAC3C,YAAY,KAAK,aAAa;CAC9B,eAAe,KAAK,gBAAgB;CACpC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CACL,YAAY,oCAAoC,CAAC,CAAC,GAChD,EAAE,WACF,EAAE,UACF,EAAE,UACF,EAAE,SACF,EAAE,MACJ,CACF,CACF"}
|
|
1
|
+
{"version":3,"file":"design.mjs","names":[],"sources":["../../src/schema/design.ts"],"sourcesContent":["import { index, sqliteTable, text, uniqueIndex } from \"drizzle-orm/sqlite-core\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `design_links` table definition. */\nexport const designLinks = sqliteTable(\n \"design_links\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n importPath: text(\"import_path\"),\n label: text(\"label\"),\n url: text(\"url\").notNull(),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n index(\"design_links_project_id_idx\").on(t.projectId),\n // One mapping per story file; project-level links (null import_path) never collide.\n uniqueIndex(\"design_links_project_import_path_idx\").on(t.projectId, t.importPath),\n ],\n);\n\n/** Narrow `design_credentials` table definition: the project-wide design-provider token. */\nexport const designCredentials = sqliteTable(\n \"design_credentials\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n provider: text(\"provider\").notNull(),\n tokenEncrypted: text(\"token_encrypted\").notNull(),\n status: text(\"status\").notNull().default(\"unknown\"),\n checkedAt: text(\"checked_at\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [uniqueIndex(\"design_credentials_project_provider_idx\").on(t.projectId, t.provider)],\n);\n\n/** Narrow `design_nodes` table definition (design metadata + render cache). */\nexport const designNodes = sqliteTable(\n \"design_nodes\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n provider: text(\"provider\").notNull(),\n viewerId: text(\"viewer_id\").notNull().default(\"\"),\n fileKey: text(\"file_key\").notNull(),\n nodeId: text(\"node_id\").notNull().default(\"\"),\n name: text(\"name\"),\n version: text(\"version\"),\n lastModified: text(\"last_modified\"),\n state: text(\"state\").notNull().default(\"ok\"),\n renderPath: text(\"render_path\"),\n renderVersion: text(\"render_version\"),\n notifiedVersion: text(\"notified_version\"),\n fetchedAt: text(\"fetched_at\").notNull(),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n uniqueIndex(\"design_nodes_project_file_node_idx\").on(\n t.projectId,\n t.provider,\n t.viewerId,\n t.fileKey,\n t.nodeId,\n ),\n ],\n);\n\n/** A design link: a project-level file link (`importPath` null) or a component mapping override. */\nexport interface DesignLink {\n id: string;\n projectId: string;\n /** Story file the URL is mapped to; null for a project-level design file link. */\n importPath: string | null;\n /** Display label of a project-level link. */\n label: string | null;\n url: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** The project-wide token of a design provider (an admin pastes it; encrypted at rest). */\nexport interface DesignCredential {\n id: string;\n projectId: string;\n /** Provider `metadata.kind`, e.g. `figma`. */\n provider: string;\n tokenEncrypted: string;\n /** Last API outcome: `unknown` | `ok` | `unauthorized` | `forbidden`. */\n status: string;\n checkedAt: string | null;\n /** When the credential was set or replaced; drives the rotation clock. */\n createdAt: string;\n updatedAt: string;\n}\n\n/** Cached design file/node metadata, keyed by project, provider, viewer, file key and node id. */\nexport interface DesignNode {\n id: string;\n projectId: string;\n provider: string;\n /** Whose access fetched the entry: `\"\"` for the project credential, else a user id. */\n viewerId: string;\n fileKey: string;\n /** Provider node id; empty string for a whole-file link. */\n nodeId: string;\n name: string | null;\n version: string | null;\n lastModified: string | null;\n /** `ok` | `deleted` | `unauthorized` | `forbidden`. */\n state: string;\n /** Storage path of the cached PNG render (node links only). */\n renderPath: string | null;\n /** File `version` the cached render was taken at. */\n renderVersion: string | null;\n notifiedVersion: string | null;\n fetchedAt: string;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;AAIA,MAAa,cAAc,YACzB,gBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,YAAY,KAAK,aAAa;CAC9B,OAAO,KAAK,OAAO;CACnB,KAAK,KAAK,KAAK,CAAC,CAAC,QAAQ;CACzB,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CACL,MAAM,6BAA6B,CAAC,CAAC,GAAG,EAAE,SAAS,GAEnD,YAAY,sCAAsC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,CAClF,CACF;;AAGA,MAAa,oBAAoB,YAC/B,sBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,UAAU,KAAK,UAAU,CAAC,CAAC,QAAQ;CACnC,gBAAgB,KAAK,iBAAiB,CAAC,CAAC,QAAQ;CAChD,QAAQ,KAAK,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAClD,WAAW,KAAK,YAAY;CAC5B,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CAAC,YAAY,yCAAyC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,CAC5F;;AAGA,MAAa,cAAc,YACzB,gBACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,UAAU,KAAK,UAAU,CAAC,CAAC,QAAQ;CACnC,UAAU,KAAK,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;CAChD,SAAS,KAAK,UAAU,CAAC,CAAC,QAAQ;CAClC,QAAQ,KAAK,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;CAC5C,MAAM,KAAK,MAAM;CACjB,SAAS,KAAK,SAAS;CACvB,cAAc,KAAK,eAAe;CAClC,OAAO,KAAK,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,IAAI;CAC3C,YAAY,KAAK,aAAa;CAC9B,eAAe,KAAK,gBAAgB;CACpC,iBAAiB,KAAK,kBAAkB;CACxC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CACL,YAAY,oCAAoC,CAAC,CAAC,GAChD,EAAE,WACF,EAAE,UACF,EAAE,UACF,EAAE,SACF,EAAE,MACJ,CACF,CACF"}
|