@storyshelf/db-postgres 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/ddl.d.mts +1 -3
- package/dist/ddl.mjs +11 -3
- package/dist/ddl.mjs.map +1 -1
- package/dist/drizzle-factory-pg.mjs +9 -7
- package/dist/drizzle-factory-pg.mjs.map +1 -1
- package/dist/drizzle-factory.mjs +1 -2
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +2 -3
- package/dist/migrate.mjs +37 -2
- package/dist/migrate.mjs.map +1 -1
- package/dist/neon-http.d.mts +0 -2
- package/dist/neon-http.mjs +2 -3
- package/dist/neon.d.mts +0 -2
- package/dist/neon.mjs +2 -3
- package/dist/pg.d.mts +0 -2
- package/dist/pg.mjs +2 -3
- package/dist/pglite.d.mts +0 -2
- package/dist/pglite.mjs +2 -3
- package/dist/schema/baseline.d.mts +32 -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 +23 -25
- package/dist/schema/build.mjs +1 -2
- 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 +51 -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 +85 -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 +74 -2
- package/dist/schema/user.mjs +7 -4
- package/dist/schema/user.mjs.map +1 -1
- 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/vercel.d.mts +0 -2
- package/dist/vercel.mjs +2 -3
- package/package.json +4 -13
|
@@ -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/notification.d.ts
|
|
4
3
|
/** Narrow `notification_channels` table definition. */
|
|
5
|
-
declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
+
declare const notificationChannels: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
6
5
|
name: "notification_channels";
|
|
7
6
|
schema: undefined;
|
|
8
7
|
columns: {
|
|
9
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
8
|
+
id: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
10
9
|
name: "id";
|
|
11
10
|
tableName: "notification_channels";
|
|
12
11
|
dataType: "string";
|
|
@@ -23,7 +22,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
23
22
|
identity: undefined;
|
|
24
23
|
generated: undefined;
|
|
25
24
|
}, {}, {}>;
|
|
26
|
-
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
25
|
+
projectId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
27
26
|
name: "project_id";
|
|
28
27
|
tableName: "notification_channels";
|
|
29
28
|
dataType: "string";
|
|
@@ -40,7 +39,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
40
39
|
identity: undefined;
|
|
41
40
|
generated: undefined;
|
|
42
41
|
}, {}, {}>;
|
|
43
|
-
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
42
|
+
provider: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
44
43
|
name: "provider";
|
|
45
44
|
tableName: "notification_channels";
|
|
46
45
|
dataType: "string";
|
|
@@ -57,7 +56,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
57
56
|
identity: undefined;
|
|
58
57
|
generated: undefined;
|
|
59
58
|
}, {}, {}>;
|
|
60
|
-
config: import("drizzle-orm/pg-core").PgColumn<{
|
|
59
|
+
config: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
61
60
|
name: "config";
|
|
62
61
|
tableName: "notification_channels";
|
|
63
62
|
dataType: "string";
|
|
@@ -74,7 +73,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
74
73
|
identity: undefined;
|
|
75
74
|
generated: undefined;
|
|
76
75
|
}, {}, {}>;
|
|
77
|
-
secretEncrypted: import("drizzle-orm/pg-core").PgColumn<{
|
|
76
|
+
secretEncrypted: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
78
77
|
name: "secret_encrypted";
|
|
79
78
|
tableName: "notification_channels";
|
|
80
79
|
dataType: "string";
|
|
@@ -91,7 +90,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
91
90
|
identity: undefined;
|
|
92
91
|
generated: undefined;
|
|
93
92
|
}, {}, {}>;
|
|
94
|
-
events: import("drizzle-orm/pg-core").PgColumn<{
|
|
93
|
+
events: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
95
94
|
name: "events";
|
|
96
95
|
tableName: "notification_channels";
|
|
97
96
|
dataType: "string";
|
|
@@ -108,7 +107,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
108
107
|
identity: undefined;
|
|
109
108
|
generated: undefined;
|
|
110
109
|
}, {}, {}>;
|
|
111
|
-
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
110
|
+
enabled: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
112
111
|
name: "enabled";
|
|
113
112
|
tableName: "notification_channels";
|
|
114
113
|
dataType: "boolean";
|
|
@@ -125,7 +124,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
125
124
|
identity: undefined;
|
|
126
125
|
generated: undefined;
|
|
127
126
|
}, {}, {}>;
|
|
128
|
-
lastError: import("drizzle-orm/pg-core").PgColumn<{
|
|
127
|
+
lastError: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
129
128
|
name: "last_error";
|
|
130
129
|
tableName: "notification_channels";
|
|
131
130
|
dataType: "string";
|
|
@@ -142,7 +141,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
142
141
|
identity: undefined;
|
|
143
142
|
generated: undefined;
|
|
144
143
|
}, {}, {}>;
|
|
145
|
-
lastErrorAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
144
|
+
lastErrorAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
146
145
|
name: "last_error_at";
|
|
147
146
|
tableName: "notification_channels";
|
|
148
147
|
dataType: "string";
|
|
@@ -159,7 +158,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
159
158
|
identity: undefined;
|
|
160
159
|
generated: undefined;
|
|
161
160
|
}, {}, {}>;
|
|
162
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
161
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
163
162
|
name: "created_at";
|
|
164
163
|
tableName: "notification_channels";
|
|
165
164
|
dataType: "string";
|
|
@@ -176,7 +175,7 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
176
175
|
identity: undefined;
|
|
177
176
|
generated: undefined;
|
|
178
177
|
}, {}, {}>;
|
|
179
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
178
|
+
updatedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
180
179
|
name: "updated_at";
|
|
181
180
|
tableName: "notification_channels";
|
|
182
181
|
dataType: "string";
|
|
@@ -197,11 +196,11 @@ declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
197
196
|
dialect: 'pg';
|
|
198
197
|
}>;
|
|
199
198
|
/** Narrow `notification_subscriptions` table definition. */
|
|
200
|
-
declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
199
|
+
declare const notificationSubscriptions: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
201
200
|
name: "notification_subscriptions";
|
|
202
201
|
schema: undefined;
|
|
203
202
|
columns: {
|
|
204
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
203
|
+
id: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
205
204
|
name: "id";
|
|
206
205
|
tableName: "notification_subscriptions";
|
|
207
206
|
dataType: "string";
|
|
@@ -218,7 +217,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
218
217
|
identity: undefined;
|
|
219
218
|
generated: undefined;
|
|
220
219
|
}, {}, {}>;
|
|
221
|
-
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
220
|
+
projectId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
222
221
|
name: "project_id";
|
|
223
222
|
tableName: "notification_subscriptions";
|
|
224
223
|
dataType: "string";
|
|
@@ -235,7 +234,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
235
234
|
identity: undefined;
|
|
236
235
|
generated: undefined;
|
|
237
236
|
}, {}, {}>;
|
|
238
|
-
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
237
|
+
userId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
239
238
|
name: "user_id";
|
|
240
239
|
tableName: "notification_subscriptions";
|
|
241
240
|
dataType: "string";
|
|
@@ -252,7 +251,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
252
251
|
identity: undefined;
|
|
253
252
|
generated: undefined;
|
|
254
253
|
}, {}, {}>;
|
|
255
|
-
events: import("drizzle-orm/pg-core").PgColumn<{
|
|
254
|
+
events: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
256
255
|
name: "events";
|
|
257
256
|
tableName: "notification_subscriptions";
|
|
258
257
|
dataType: "string";
|
|
@@ -269,7 +268,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
269
268
|
identity: undefined;
|
|
270
269
|
generated: undefined;
|
|
271
270
|
}, {}, {}>;
|
|
272
|
-
via: import("drizzle-orm/pg-core").PgColumn<{
|
|
271
|
+
via: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
273
272
|
name: "via";
|
|
274
273
|
tableName: "notification_subscriptions";
|
|
275
274
|
dataType: "string";
|
|
@@ -286,7 +285,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
286
285
|
identity: undefined;
|
|
287
286
|
generated: undefined;
|
|
288
287
|
}, {}, {}>;
|
|
289
|
-
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
288
|
+
enabled: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
290
289
|
name: "enabled";
|
|
291
290
|
tableName: "notification_subscriptions";
|
|
292
291
|
dataType: "boolean";
|
|
@@ -303,7 +302,7 @@ declare const notificationSubscriptions: import("drizzle-orm/pg-core").PgTableWi
|
|
|
303
302
|
identity: undefined;
|
|
304
303
|
generated: undefined;
|
|
305
304
|
}, {}, {}>;
|
|
306
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
305
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
307
306
|
name: "created_at";
|
|
308
307
|
tableName: "notification_subscriptions";
|
|
309
308
|
dataType: "string";
|
|
@@ -347,6 +346,5 @@ interface NotificationSubscription {
|
|
|
347
346
|
enabled: boolean;
|
|
348
347
|
createdAt: string;
|
|
349
348
|
}
|
|
350
|
-
//#endregion
|
|
351
349
|
export { NotificationChannel, NotificationSubscription, notificationChannels, notificationSubscriptions };
|
|
352
350
|
//# sourceMappingURL=notification.d.mts.map
|
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { users } from "./user.mjs";
|
|
6
6
|
import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
7
|
-
|
|
7
|
+
// src/schema/notification.ts
|
|
8
8
|
/** Narrow `notification_channels` table definition. */
|
|
9
9
|
const notificationChannels = pgTable("notification_channels", {
|
|
10
10
|
id: text("id").primaryKey(),
|
|
@@ -41,7 +41,6 @@ const notificationSubscriptions = pgTable("notification_subscriptions", {
|
|
|
41
41
|
mode: "string"
|
|
42
42
|
}).notNull()
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { notificationChannels, notificationSubscriptions };
|
|
46
45
|
|
|
47
46
|
//# sourceMappingURL=notification.mjs.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { ProjectRole } from "@storyshelf/core/types";
|
|
4
|
-
//#region src/schema/project-group-mapping.d.ts
|
|
5
4
|
/** Narrow `project_group_mappings` table definition. */
|
|
6
|
-
declare const projectGroupMappings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
declare const projectGroupMappings: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
7
6
|
name: "project_group_mappings";
|
|
8
7
|
schema: undefined;
|
|
9
8
|
columns: {
|
|
10
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
9
|
+
id: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
11
10
|
name: "id";
|
|
12
11
|
tableName: "project_group_mappings";
|
|
13
12
|
dataType: "string";
|
|
@@ -24,7 +23,7 @@ declare const projectGroupMappings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
24
23
|
identity: undefined;
|
|
25
24
|
generated: undefined;
|
|
26
25
|
}, {}, {}>;
|
|
27
|
-
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26
|
+
projectId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
28
27
|
name: "project_id";
|
|
29
28
|
tableName: "project_group_mappings";
|
|
30
29
|
dataType: "string";
|
|
@@ -41,7 +40,7 @@ declare const projectGroupMappings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
41
40
|
identity: undefined;
|
|
42
41
|
generated: undefined;
|
|
43
42
|
}, {}, {}>;
|
|
44
|
-
groupName: import("drizzle-orm/pg-core").PgColumn<{
|
|
43
|
+
groupName: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
45
44
|
name: "group_name";
|
|
46
45
|
tableName: "project_group_mappings";
|
|
47
46
|
dataType: "string";
|
|
@@ -58,7 +57,7 @@ declare const projectGroupMappings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
58
57
|
identity: undefined;
|
|
59
58
|
generated: undefined;
|
|
60
59
|
}, {}, {}>;
|
|
61
|
-
role: import("drizzle-orm/pg-core").PgColumn<{
|
|
60
|
+
role: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
62
61
|
name: "role";
|
|
63
62
|
tableName: "project_group_mappings";
|
|
64
63
|
dataType: "string";
|
|
@@ -77,7 +76,7 @@ declare const projectGroupMappings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
77
76
|
}, {}, {
|
|
78
77
|
$type: "admin" | "approver" | "developer" | "viewer";
|
|
79
78
|
}>;
|
|
80
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
79
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
81
80
|
name: "created_at";
|
|
82
81
|
tableName: "project_group_mappings";
|
|
83
82
|
dataType: "string";
|
|
@@ -105,6 +104,5 @@ interface ProjectGroupMapping {
|
|
|
105
104
|
role: ProjectRole;
|
|
106
105
|
createdAt: string;
|
|
107
106
|
}
|
|
108
|
-
//#endregion
|
|
109
107
|
export { ProjectGroupMapping, projectGroupMappings };
|
|
110
108
|
//# sourceMappingURL=project-group-mapping.d.mts.map
|
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
|
|
6
|
-
|
|
6
|
+
// src/schema/project-group-mapping.ts
|
|
7
7
|
/** Narrow `project_group_mappings` table definition. */
|
|
8
8
|
const projectGroupMappings = pgTable("project_group_mappings", {
|
|
9
9
|
id: text("id").primaryKey(),
|
|
@@ -15,7 +15,6 @@ const projectGroupMappings = pgTable("project_group_mappings", {
|
|
|
15
15
|
mode: "string"
|
|
16
16
|
}).notNull()
|
|
17
17
|
}, (t) => [uniqueIndex("project_group_mappings_project_group_idx").on(t.projectId, t.groupName)]);
|
|
18
|
-
//#endregion
|
|
19
18
|
export { projectGroupMappings };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=project-group-mapping.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/project.d.ts
|
|
4
3
|
/** Narrow `projects` table definition. */
|
|
5
4
|
declare const projects: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
6
5
|
name: "projects";
|
|
@@ -458,6 +457,5 @@ interface StorybookMeta {
|
|
|
458
457
|
packagePath?: string;
|
|
459
458
|
previewParameters?: Record<string, unknown>;
|
|
460
459
|
}
|
|
461
|
-
//#endregion
|
|
462
460
|
export { Project, StorybookMeta, projects };
|
|
463
461
|
//# sourceMappingURL=project.d.mts.map
|
package/dist/schema/project.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { boolean, doublePrecision, integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
5
|
-
|
|
5
|
+
// src/schema/project.ts
|
|
6
6
|
/** Narrow `projects` table definition. */
|
|
7
7
|
const projects = pgTable("projects", {
|
|
8
8
|
id: text("id").primaryKey(),
|
|
@@ -36,7 +36,6 @@ const projects = pgTable("projects", {
|
|
|
36
36
|
mode: "string"
|
|
37
37
|
}).notNull()
|
|
38
38
|
});
|
|
39
|
-
//#endregion
|
|
40
39
|
export { projects };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=project.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/site-setting.d.ts
|
|
4
3
|
/** Narrow `site_settings` table definition: key-value facts the app learns at runtime. */
|
|
5
4
|
declare const siteSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
6
5
|
name: "site_settings";
|
|
@@ -94,6 +93,5 @@ declare const siteSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
94
93
|
};
|
|
95
94
|
dialect: 'pg';
|
|
96
95
|
}>;
|
|
97
|
-
//#endregion
|
|
98
96
|
export { siteSettings };
|
|
99
97
|
//# sourceMappingURL=site-setting.d.mts.map
|
|
@@ -2,7 +2,7 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
5
|
-
|
|
5
|
+
// src/schema/site-setting.ts
|
|
6
6
|
/** Narrow `site_settings` table definition: key-value facts the app learns at runtime. */
|
|
7
7
|
const siteSettings = pgTable("site_settings", {
|
|
8
8
|
id: text("id").primaryKey(),
|
|
@@ -17,7 +17,6 @@ const siteSettings = pgTable("site_settings", {
|
|
|
17
17
|
mode: "string"
|
|
18
18
|
}).notNull()
|
|
19
19
|
});
|
|
20
|
-
//#endregion
|
|
21
20
|
export { siteSettings };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=site-setting.mjs.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { SnapshotStatus } from "@storyshelf/core/types";
|
|
4
|
-
//#region src/schema/snapshot.d.ts
|
|
5
4
|
/** Narrow `snapshots` table definition. */
|
|
6
|
-
declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
declare const snapshots: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
7
6
|
name: "snapshots";
|
|
8
7
|
schema: undefined;
|
|
9
8
|
columns: {
|
|
10
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
9
|
+
id: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
11
10
|
name: "id";
|
|
12
11
|
tableName: "snapshots";
|
|
13
12
|
dataType: "string";
|
|
@@ -24,7 +23,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
24
23
|
identity: undefined;
|
|
25
24
|
generated: undefined;
|
|
26
25
|
}, {}, {}>;
|
|
27
|
-
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
26
|
+
projectId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
28
27
|
name: "project_id";
|
|
29
28
|
tableName: "snapshots";
|
|
30
29
|
dataType: "string";
|
|
@@ -41,7 +40,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
41
40
|
identity: undefined;
|
|
42
41
|
generated: undefined;
|
|
43
42
|
}, {}, {}>;
|
|
44
|
-
buildId: import("drizzle-orm/pg-core").PgColumn<{
|
|
43
|
+
buildId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
45
44
|
name: "build_id";
|
|
46
45
|
tableName: "snapshots";
|
|
47
46
|
dataType: "string";
|
|
@@ -58,7 +57,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
58
57
|
identity: undefined;
|
|
59
58
|
generated: undefined;
|
|
60
59
|
}, {}, {}>;
|
|
61
|
-
storyId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60
|
+
storyId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
62
61
|
name: "story_id";
|
|
63
62
|
tableName: "snapshots";
|
|
64
63
|
dataType: "string";
|
|
@@ -75,7 +74,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
75
74
|
identity: undefined;
|
|
76
75
|
generated: undefined;
|
|
77
76
|
}, {}, {}>;
|
|
78
|
-
storyName: import("drizzle-orm/pg-core").PgColumn<{
|
|
77
|
+
storyName: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
79
78
|
name: "story_name";
|
|
80
79
|
tableName: "snapshots";
|
|
81
80
|
dataType: "string";
|
|
@@ -92,7 +91,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
92
91
|
identity: undefined;
|
|
93
92
|
generated: undefined;
|
|
94
93
|
}, {}, {}>;
|
|
95
|
-
storyTitle: import("drizzle-orm/pg-core").PgColumn<{
|
|
94
|
+
storyTitle: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
96
95
|
name: "story_title";
|
|
97
96
|
tableName: "snapshots";
|
|
98
97
|
dataType: "string";
|
|
@@ -109,7 +108,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
109
108
|
identity: undefined;
|
|
110
109
|
generated: undefined;
|
|
111
110
|
}, {}, {}>;
|
|
112
|
-
storyImportPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
111
|
+
storyImportPath: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
113
112
|
name: "story_import_path";
|
|
114
113
|
tableName: "snapshots";
|
|
115
114
|
dataType: "string";
|
|
@@ -126,7 +125,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
126
125
|
identity: undefined;
|
|
127
126
|
generated: undefined;
|
|
128
127
|
}, {}, {}>;
|
|
129
|
-
designUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
128
|
+
designUrl: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
130
129
|
name: "design_url";
|
|
131
130
|
tableName: "snapshots";
|
|
132
131
|
dataType: "string";
|
|
@@ -143,7 +142,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
143
142
|
identity: undefined;
|
|
144
143
|
generated: undefined;
|
|
145
144
|
}, {}, {}>;
|
|
146
|
-
viewportName: import("drizzle-orm/pg-core").PgColumn<{
|
|
145
|
+
viewportName: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
147
146
|
name: "viewport_name";
|
|
148
147
|
tableName: "snapshots";
|
|
149
148
|
dataType: "string";
|
|
@@ -160,7 +159,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
160
159
|
identity: undefined;
|
|
161
160
|
generated: undefined;
|
|
162
161
|
}, {}, {}>;
|
|
163
|
-
viewportWidth: import("drizzle-orm/pg-core").PgColumn<{
|
|
162
|
+
viewportWidth: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
164
163
|
name: "viewport_width";
|
|
165
164
|
tableName: "snapshots";
|
|
166
165
|
dataType: "number";
|
|
@@ -177,7 +176,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
177
176
|
identity: undefined;
|
|
178
177
|
generated: undefined;
|
|
179
178
|
}, {}, {}>;
|
|
180
|
-
viewportHeight: import("drizzle-orm/pg-core").PgColumn<{
|
|
179
|
+
viewportHeight: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
181
180
|
name: "viewport_height";
|
|
182
181
|
tableName: "snapshots";
|
|
183
182
|
dataType: "number";
|
|
@@ -194,7 +193,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
194
193
|
identity: undefined;
|
|
195
194
|
generated: undefined;
|
|
196
195
|
}, {}, {}>;
|
|
197
|
-
screenshotPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
196
|
+
screenshotPath: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
198
197
|
name: "screenshot_path";
|
|
199
198
|
tableName: "snapshots";
|
|
200
199
|
dataType: "string";
|
|
@@ -211,7 +210,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
211
210
|
identity: undefined;
|
|
212
211
|
generated: undefined;
|
|
213
212
|
}, {}, {}>;
|
|
214
|
-
diffPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
213
|
+
diffPath: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
215
214
|
name: "diff_path";
|
|
216
215
|
tableName: "snapshots";
|
|
217
216
|
dataType: "string";
|
|
@@ -228,7 +227,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
228
227
|
identity: undefined;
|
|
229
228
|
generated: undefined;
|
|
230
229
|
}, {}, {}>;
|
|
231
|
-
diffPixels: import("drizzle-orm/pg-core").PgColumn<{
|
|
230
|
+
diffPixels: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
232
231
|
name: "diff_pixels";
|
|
233
232
|
tableName: "snapshots";
|
|
234
233
|
dataType: "number";
|
|
@@ -245,7 +244,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
245
244
|
identity: undefined;
|
|
246
245
|
generated: undefined;
|
|
247
246
|
}, {}, {}>;
|
|
248
|
-
diffRatio: import("drizzle-orm/pg-core").PgColumn<{
|
|
247
|
+
diffRatio: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
249
248
|
name: "diff_ratio";
|
|
250
249
|
tableName: "snapshots";
|
|
251
250
|
dataType: "number";
|
|
@@ -262,7 +261,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
262
261
|
identity: undefined;
|
|
263
262
|
generated: undefined;
|
|
264
263
|
}, {}, {}>;
|
|
265
|
-
diffPassed: import("drizzle-orm/pg-core").PgColumn<{
|
|
264
|
+
diffPassed: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
266
265
|
name: "diff_passed";
|
|
267
266
|
tableName: "snapshots";
|
|
268
267
|
dataType: "boolean";
|
|
@@ -279,7 +278,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
279
278
|
identity: undefined;
|
|
280
279
|
generated: undefined;
|
|
281
280
|
}, {}, {}>;
|
|
282
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
281
|
+
status: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
283
282
|
name: "status";
|
|
284
283
|
tableName: "snapshots";
|
|
285
284
|
dataType: "string";
|
|
@@ -298,7 +297,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
298
297
|
}, {}, {
|
|
299
298
|
$type: "approved" | "changed" | "new" | "pending" | "rejected" | "unchanged";
|
|
300
299
|
}>;
|
|
301
|
-
reviewedBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
300
|
+
reviewedBy: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
302
301
|
name: "reviewed_by";
|
|
303
302
|
tableName: "snapshots";
|
|
304
303
|
dataType: "string";
|
|
@@ -315,7 +314,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
315
314
|
identity: undefined;
|
|
316
315
|
generated: undefined;
|
|
317
316
|
}, {}, {}>;
|
|
318
|
-
reviewedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
317
|
+
reviewedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
319
318
|
name: "reviewed_at";
|
|
320
319
|
tableName: "snapshots";
|
|
321
320
|
dataType: "string";
|
|
@@ -332,7 +331,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
332
331
|
identity: undefined;
|
|
333
332
|
generated: undefined;
|
|
334
333
|
}, {}, {}>;
|
|
335
|
-
infraHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
334
|
+
infraHash: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
336
335
|
name: "infra_hash";
|
|
337
336
|
tableName: "snapshots";
|
|
338
337
|
dataType: "string";
|
|
@@ -349,7 +348,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
349
348
|
identity: undefined;
|
|
350
349
|
generated: undefined;
|
|
351
350
|
}, {}, {}>;
|
|
352
|
-
envChange: import("drizzle-orm/pg-core").PgColumn<{
|
|
351
|
+
envChange: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
353
352
|
name: "env_change";
|
|
354
353
|
tableName: "snapshots";
|
|
355
354
|
dataType: "string";
|
|
@@ -366,7 +365,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
366
365
|
identity: undefined;
|
|
367
366
|
generated: undefined;
|
|
368
367
|
}, {}, {}>;
|
|
369
|
-
inherited: import("drizzle-orm/pg-core").PgColumn<{
|
|
368
|
+
inherited: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
370
369
|
name: "inherited";
|
|
371
370
|
tableName: "snapshots";
|
|
372
371
|
dataType: "boolean";
|
|
@@ -383,7 +382,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
383
382
|
identity: undefined;
|
|
384
383
|
generated: undefined;
|
|
385
384
|
}, {}, {}>;
|
|
386
|
-
baselineId: import("drizzle-orm/pg-core").PgColumn<{
|
|
385
|
+
baselineId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
387
386
|
name: "baseline_id";
|
|
388
387
|
tableName: "snapshots";
|
|
389
388
|
dataType: "string";
|
|
@@ -400,7 +399,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
400
399
|
identity: undefined;
|
|
401
400
|
generated: undefined;
|
|
402
401
|
}, {}, {}>;
|
|
403
|
-
baselineVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
402
|
+
baselineVersion: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
404
403
|
name: "baseline_version";
|
|
405
404
|
tableName: "snapshots";
|
|
406
405
|
dataType: "string";
|
|
@@ -417,7 +416,58 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
417
416
|
identity: undefined;
|
|
418
417
|
generated: undefined;
|
|
419
418
|
}, {}, {}>;
|
|
420
|
-
|
|
419
|
+
sourceBuildId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
420
|
+
name: "source_build_id";
|
|
421
|
+
tableName: "snapshots";
|
|
422
|
+
dataType: "string";
|
|
423
|
+
columnType: "PgText";
|
|
424
|
+
data: string;
|
|
425
|
+
driverParam: string;
|
|
426
|
+
notNull: false;
|
|
427
|
+
hasDefault: false;
|
|
428
|
+
isPrimaryKey: false;
|
|
429
|
+
isAutoincrement: false;
|
|
430
|
+
hasRuntimeDefault: false;
|
|
431
|
+
enumValues: [string, ...string[]];
|
|
432
|
+
baseColumn: never;
|
|
433
|
+
identity: undefined;
|
|
434
|
+
generated: undefined;
|
|
435
|
+
}, {}, {}>;
|
|
436
|
+
comparisonImagePath: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
437
|
+
name: "comparison_image_path";
|
|
438
|
+
tableName: "snapshots";
|
|
439
|
+
dataType: "string";
|
|
440
|
+
columnType: "PgText";
|
|
441
|
+
data: string;
|
|
442
|
+
driverParam: string;
|
|
443
|
+
notNull: false;
|
|
444
|
+
hasDefault: false;
|
|
445
|
+
isPrimaryKey: false;
|
|
446
|
+
isAutoincrement: false;
|
|
447
|
+
hasRuntimeDefault: false;
|
|
448
|
+
enumValues: [string, ...string[]];
|
|
449
|
+
baseColumn: never;
|
|
450
|
+
identity: undefined;
|
|
451
|
+
generated: undefined;
|
|
452
|
+
}, {}, {}>;
|
|
453
|
+
comparisonMetadata: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
454
|
+
name: "comparison_metadata";
|
|
455
|
+
tableName: "snapshots";
|
|
456
|
+
dataType: "string";
|
|
457
|
+
columnType: "PgText";
|
|
458
|
+
data: string;
|
|
459
|
+
driverParam: string;
|
|
460
|
+
notNull: false;
|
|
461
|
+
hasDefault: false;
|
|
462
|
+
isPrimaryKey: false;
|
|
463
|
+
isAutoincrement: false;
|
|
464
|
+
hasRuntimeDefault: false;
|
|
465
|
+
enumValues: [string, ...string[]];
|
|
466
|
+
baseColumn: never;
|
|
467
|
+
identity: undefined;
|
|
468
|
+
generated: undefined;
|
|
469
|
+
}, {}, {}>;
|
|
470
|
+
mode: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
421
471
|
name: "mode";
|
|
422
472
|
tableName: "snapshots";
|
|
423
473
|
dataType: "string";
|
|
@@ -434,7 +484,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
434
484
|
identity: undefined;
|
|
435
485
|
generated: undefined;
|
|
436
486
|
}, {}, {}>;
|
|
437
|
-
browser: import("drizzle-orm/pg-core").PgColumn<{
|
|
487
|
+
browser: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
438
488
|
name: "browser";
|
|
439
489
|
tableName: "snapshots";
|
|
440
490
|
dataType: "string";
|
|
@@ -451,7 +501,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
451
501
|
identity: undefined;
|
|
452
502
|
generated: undefined;
|
|
453
503
|
}, {}, {}>;
|
|
454
|
-
durationMs: import("drizzle-orm/pg-core").PgColumn<{
|
|
504
|
+
durationMs: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
455
505
|
name: "duration_ms";
|
|
456
506
|
tableName: "snapshots";
|
|
457
507
|
dataType: "number";
|
|
@@ -468,7 +518,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
468
518
|
identity: undefined;
|
|
469
519
|
generated: undefined;
|
|
470
520
|
}, {}, {}>;
|
|
471
|
-
a11yViolations: import("drizzle-orm/pg-core").PgColumn<{
|
|
521
|
+
a11yViolations: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
472
522
|
name: "a11y_violations";
|
|
473
523
|
tableName: "snapshots";
|
|
474
524
|
dataType: "string";
|
|
@@ -485,7 +535,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
485
535
|
identity: undefined;
|
|
486
536
|
generated: undefined;
|
|
487
537
|
}, {}, {}>;
|
|
488
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
538
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
489
539
|
name: "created_at";
|
|
490
540
|
tableName: "snapshots";
|
|
491
541
|
dataType: "string";
|
|
@@ -502,7 +552,7 @@ declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
502
552
|
identity: undefined;
|
|
503
553
|
generated: undefined;
|
|
504
554
|
}, {}, {}>;
|
|
505
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
555
|
+
updatedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
506
556
|
name: "updated_at";
|
|
507
557
|
tableName: "snapshots";
|
|
508
558
|
dataType: "string";
|
|
@@ -548,6 +598,9 @@ interface Snapshot {
|
|
|
548
598
|
inherited: boolean;
|
|
549
599
|
baselineId: string | null;
|
|
550
600
|
baselineVersion: string | null;
|
|
601
|
+
sourceBuildId: string | null;
|
|
602
|
+
comparisonImagePath: string | null;
|
|
603
|
+
comparisonMetadata: string | null;
|
|
551
604
|
mode?: string | null;
|
|
552
605
|
browser?: string;
|
|
553
606
|
durationMs: number | null;
|
|
@@ -555,6 +608,5 @@ interface Snapshot {
|
|
|
555
608
|
createdAt: string;
|
|
556
609
|
updatedAt: string;
|
|
557
610
|
}
|
|
558
|
-
//#endregion
|
|
559
611
|
export { Snapshot, snapshots };
|
|
560
612
|
//# sourceMappingURL=snapshot.d.mts.map
|