@storyshelf/db-postgres 0.7.0 → 0.8.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.
- package/dist/ddl.d.mts +1 -3
- package/dist/ddl.mjs +10 -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 +32 -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 +33 -35
- package/dist/schema/design.mjs +1 -2
- 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 -4
package/dist/schema/build.d.mts
CHANGED
|
@@ -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 { BuildStatus } from "@storyshelf/core/types";
|
|
4
|
-
//#region src/schema/build.d.ts
|
|
5
4
|
/** Narrow `builds` table definition. */
|
|
6
|
-
declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
declare const builds: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
7
6
|
name: "builds";
|
|
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: "builds";
|
|
13
12
|
dataType: "string";
|
|
@@ -24,7 +23,7 @@ declare const builds: 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: "builds";
|
|
30
29
|
dataType: "string";
|
|
@@ -41,7 +40,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
41
40
|
identity: undefined;
|
|
42
41
|
generated: undefined;
|
|
43
42
|
}, {}, {}>;
|
|
44
|
-
gitSha: import("drizzle-orm/pg-core").PgColumn<{
|
|
43
|
+
gitSha: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
45
44
|
name: "git_sha";
|
|
46
45
|
tableName: "builds";
|
|
47
46
|
dataType: "string";
|
|
@@ -58,7 +57,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
58
57
|
identity: undefined;
|
|
59
58
|
generated: undefined;
|
|
60
59
|
}, {}, {}>;
|
|
61
|
-
gitBranch: import("drizzle-orm/pg-core").PgColumn<{
|
|
60
|
+
gitBranch: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
62
61
|
name: "git_branch";
|
|
63
62
|
tableName: "builds";
|
|
64
63
|
dataType: "string";
|
|
@@ -75,7 +74,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
75
74
|
identity: undefined;
|
|
76
75
|
generated: undefined;
|
|
77
76
|
}, {}, {}>;
|
|
78
|
-
isDefault: import("drizzle-orm/pg-core").PgColumn<{
|
|
77
|
+
isDefault: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
79
78
|
name: "is_default";
|
|
80
79
|
tableName: "builds";
|
|
81
80
|
dataType: "boolean";
|
|
@@ -92,7 +91,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
92
91
|
identity: undefined;
|
|
93
92
|
generated: undefined;
|
|
94
93
|
}, {}, {}>;
|
|
95
|
-
authorEmail: import("drizzle-orm/pg-core").PgColumn<{
|
|
94
|
+
authorEmail: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
96
95
|
name: "author_email";
|
|
97
96
|
tableName: "builds";
|
|
98
97
|
dataType: "string";
|
|
@@ -109,7 +108,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
109
108
|
identity: undefined;
|
|
110
109
|
generated: undefined;
|
|
111
110
|
}, {}, {}>;
|
|
112
|
-
authorName: import("drizzle-orm/pg-core").PgColumn<{
|
|
111
|
+
authorName: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
113
112
|
name: "author_name";
|
|
114
113
|
tableName: "builds";
|
|
115
114
|
dataType: "string";
|
|
@@ -126,7 +125,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
126
125
|
identity: undefined;
|
|
127
126
|
generated: undefined;
|
|
128
127
|
}, {}, {}>;
|
|
129
|
-
message: import("drizzle-orm/pg-core").PgColumn<{
|
|
128
|
+
message: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
130
129
|
name: "message";
|
|
131
130
|
tableName: "builds";
|
|
132
131
|
dataType: "string";
|
|
@@ -143,7 +142,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
143
142
|
identity: undefined;
|
|
144
143
|
generated: undefined;
|
|
145
144
|
}, {}, {}>;
|
|
146
|
-
public: import("drizzle-orm/pg-core").PgColumn<{
|
|
145
|
+
public: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
147
146
|
name: "public";
|
|
148
147
|
tableName: "builds";
|
|
149
148
|
dataType: "boolean";
|
|
@@ -160,7 +159,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
160
159
|
identity: undefined;
|
|
161
160
|
generated: undefined;
|
|
162
161
|
}, {}, {}>;
|
|
163
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
162
|
+
status: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
164
163
|
name: "status";
|
|
165
164
|
tableName: "builds";
|
|
166
165
|
dataType: "string";
|
|
@@ -179,7 +178,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
179
178
|
}, {}, {
|
|
180
179
|
$type: "approved" | "cancelled" | "capturing" | "comparing" | "failed" | "pending" | "rejected" | "reviewing";
|
|
181
180
|
}>;
|
|
182
|
-
snapshotCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
181
|
+
snapshotCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
183
182
|
name: "snapshot_count";
|
|
184
183
|
tableName: "builds";
|
|
185
184
|
dataType: "number";
|
|
@@ -196,7 +195,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
196
195
|
identity: undefined;
|
|
197
196
|
generated: undefined;
|
|
198
197
|
}, {}, {}>;
|
|
199
|
-
changedCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
198
|
+
changedCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
200
199
|
name: "changed_count";
|
|
201
200
|
tableName: "builds";
|
|
202
201
|
dataType: "number";
|
|
@@ -213,7 +212,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
213
212
|
identity: undefined;
|
|
214
213
|
generated: undefined;
|
|
215
214
|
}, {}, {}>;
|
|
216
|
-
approvedCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
215
|
+
approvedCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
217
216
|
name: "approved_count";
|
|
218
217
|
tableName: "builds";
|
|
219
218
|
dataType: "number";
|
|
@@ -230,7 +229,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
230
229
|
identity: undefined;
|
|
231
230
|
generated: undefined;
|
|
232
231
|
}, {}, {}>;
|
|
233
|
-
rejectedCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
232
|
+
rejectedCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
234
233
|
name: "rejected_count";
|
|
235
234
|
tableName: "builds";
|
|
236
235
|
dataType: "number";
|
|
@@ -247,7 +246,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
247
246
|
identity: undefined;
|
|
248
247
|
generated: undefined;
|
|
249
248
|
}, {}, {}>;
|
|
250
|
-
inheritedCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
249
|
+
inheritedCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
251
250
|
name: "inherited_count";
|
|
252
251
|
tableName: "builds";
|
|
253
252
|
dataType: "number";
|
|
@@ -264,7 +263,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
264
263
|
identity: undefined;
|
|
265
264
|
generated: undefined;
|
|
266
265
|
}, {}, {}>;
|
|
267
|
-
affectedOnly: import("drizzle-orm/pg-core").PgColumn<{
|
|
266
|
+
affectedOnly: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
268
267
|
name: "affected_only";
|
|
269
268
|
tableName: "builds";
|
|
270
269
|
dataType: "boolean";
|
|
@@ -281,7 +280,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
281
280
|
identity: undefined;
|
|
282
281
|
generated: undefined;
|
|
283
282
|
}, {}, {}>;
|
|
284
|
-
baselineSha: import("drizzle-orm/pg-core").PgColumn<{
|
|
283
|
+
baselineSha: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
285
284
|
name: "baseline_sha";
|
|
286
285
|
tableName: "builds";
|
|
287
286
|
dataType: "string";
|
|
@@ -298,7 +297,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
298
297
|
identity: undefined;
|
|
299
298
|
generated: undefined;
|
|
300
299
|
}, {}, {}>;
|
|
301
|
-
changedFiles: import("drizzle-orm/pg-core").PgColumn<{
|
|
300
|
+
changedFiles: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
302
301
|
name: "changed_files";
|
|
303
302
|
tableName: "builds";
|
|
304
303
|
dataType: "string";
|
|
@@ -315,7 +314,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
315
314
|
identity: undefined;
|
|
316
315
|
generated: undefined;
|
|
317
316
|
}, {}, {}>;
|
|
318
|
-
affectedImportPaths: import("drizzle-orm/pg-core").PgColumn<{
|
|
317
|
+
affectedImportPaths: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
319
318
|
name: "affected_import_paths";
|
|
320
319
|
tableName: "builds";
|
|
321
320
|
dataType: "string";
|
|
@@ -332,7 +331,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
332
331
|
identity: undefined;
|
|
333
332
|
generated: undefined;
|
|
334
333
|
}, {}, {}>;
|
|
335
|
-
testResults: import("drizzle-orm/pg-core").PgColumn<{
|
|
334
|
+
testResults: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
336
335
|
name: "test_results";
|
|
337
336
|
tableName: "builds";
|
|
338
337
|
dataType: "string";
|
|
@@ -349,7 +348,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
349
348
|
identity: undefined;
|
|
350
349
|
generated: undefined;
|
|
351
350
|
}, {}, {}>;
|
|
352
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
351
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
353
352
|
name: "created_at";
|
|
354
353
|
tableName: "builds";
|
|
355
354
|
dataType: "string";
|
|
@@ -366,7 +365,7 @@ declare const builds: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
366
365
|
identity: undefined;
|
|
367
366
|
generated: undefined;
|
|
368
367
|
}, {}, {}>;
|
|
369
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
368
|
+
updatedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
370
369
|
name: "updated_at";
|
|
371
370
|
tableName: "builds";
|
|
372
371
|
dataType: "string";
|
|
@@ -411,6 +410,5 @@ interface Build {
|
|
|
411
410
|
createdAt: string;
|
|
412
411
|
updatedAt: string;
|
|
413
412
|
}
|
|
414
|
-
//#endregion
|
|
415
413
|
export { Build, builds };
|
|
416
414
|
//# sourceMappingURL=build.d.mts.map
|
package/dist/schema/build.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { boolean, index, integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
6
|
-
|
|
6
|
+
// src/schema/build.ts
|
|
7
7
|
/** Narrow `builds` table definition. */
|
|
8
8
|
const builds = pgTable("builds", {
|
|
9
9
|
id: text("id").primaryKey(),
|
|
@@ -36,7 +36,6 @@ const builds = pgTable("builds", {
|
|
|
36
36
|
mode: "string"
|
|
37
37
|
}).notNull()
|
|
38
38
|
}, (t) => [index("builds_project_gitsha_idx").on(t.projectId, t.gitSha), index("builds_git_branch_idx").on(t.gitBranch)]);
|
|
39
|
-
//#endregion
|
|
40
39
|
export { builds };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=build.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 { JobStatus } from "@storyshelf/core/adapter/capture-queue";
|
|
4
|
-
//#region src/schema/capture-attempt.d.ts
|
|
5
4
|
/** Narrow `capture_attempts` table definition: one row per build capture run. */
|
|
6
|
-
declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
declare const captureAttempts: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
7
6
|
name: "capture_attempts";
|
|
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: "capture_attempts";
|
|
13
12
|
dataType: "string";
|
|
@@ -24,7 +23,7 @@ declare const captureAttempts: 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: "capture_attempts";
|
|
30
29
|
dataType: "string";
|
|
@@ -41,7 +40,7 @@ declare const captureAttempts: 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: "capture_attempts";
|
|
47
46
|
dataType: "string";
|
|
@@ -58,7 +57,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
58
57
|
identity: undefined;
|
|
59
58
|
generated: undefined;
|
|
60
59
|
}, {}, {}>;
|
|
61
|
-
attemptNo: import("drizzle-orm/pg-core").PgColumn<{
|
|
60
|
+
attemptNo: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
62
61
|
name: "attempt_no";
|
|
63
62
|
tableName: "capture_attempts";
|
|
64
63
|
dataType: "number";
|
|
@@ -75,7 +74,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
75
74
|
identity: undefined;
|
|
76
75
|
generated: undefined;
|
|
77
76
|
}, {}, {}>;
|
|
78
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
77
|
+
status: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
79
78
|
name: "status";
|
|
80
79
|
tableName: "capture_attempts";
|
|
81
80
|
dataType: "string";
|
|
@@ -94,7 +93,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
94
93
|
}, {}, {
|
|
95
94
|
$type: JobStatus;
|
|
96
95
|
}>;
|
|
97
|
-
error: import("drizzle-orm/pg-core").PgColumn<{
|
|
96
|
+
error: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
98
97
|
name: "error";
|
|
99
98
|
tableName: "capture_attempts";
|
|
100
99
|
dataType: "string";
|
|
@@ -111,7 +110,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
111
110
|
identity: undefined;
|
|
112
111
|
generated: undefined;
|
|
113
112
|
}, {}, {}>;
|
|
114
|
-
reqId: import("drizzle-orm/pg-core").PgColumn<{
|
|
113
|
+
reqId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
115
114
|
name: "req_id";
|
|
116
115
|
tableName: "capture_attempts";
|
|
117
116
|
dataType: "string";
|
|
@@ -128,7 +127,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
128
127
|
identity: undefined;
|
|
129
128
|
generated: undefined;
|
|
130
129
|
}, {}, {}>;
|
|
131
|
-
storyCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
130
|
+
storyCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
132
131
|
name: "story_count";
|
|
133
132
|
tableName: "capture_attempts";
|
|
134
133
|
dataType: "number";
|
|
@@ -145,7 +144,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
145
144
|
identity: undefined;
|
|
146
145
|
generated: undefined;
|
|
147
146
|
}, {}, {}>;
|
|
148
|
-
failedCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
147
|
+
failedCount: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
149
148
|
name: "failed_count";
|
|
150
149
|
tableName: "capture_attempts";
|
|
151
150
|
dataType: "number";
|
|
@@ -162,7 +161,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
162
161
|
identity: undefined;
|
|
163
162
|
generated: undefined;
|
|
164
163
|
}, {}, {}>;
|
|
165
|
-
queuedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
164
|
+
queuedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
166
165
|
name: "queued_at";
|
|
167
166
|
tableName: "capture_attempts";
|
|
168
167
|
dataType: "string";
|
|
@@ -179,7 +178,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
179
178
|
identity: undefined;
|
|
180
179
|
generated: undefined;
|
|
181
180
|
}, {}, {}>;
|
|
182
|
-
startedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
181
|
+
startedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
183
182
|
name: "started_at";
|
|
184
183
|
tableName: "capture_attempts";
|
|
185
184
|
dataType: "string";
|
|
@@ -196,7 +195,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
196
195
|
identity: undefined;
|
|
197
196
|
generated: undefined;
|
|
198
197
|
}, {}, {}>;
|
|
199
|
-
finishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
198
|
+
finishedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
200
199
|
name: "finished_at";
|
|
201
200
|
tableName: "capture_attempts";
|
|
202
201
|
dataType: "string";
|
|
@@ -213,7 +212,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
213
212
|
identity: undefined;
|
|
214
213
|
generated: undefined;
|
|
215
214
|
}, {}, {}>;
|
|
216
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
215
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
217
216
|
name: "created_at";
|
|
218
217
|
tableName: "capture_attempts";
|
|
219
218
|
dataType: "string";
|
|
@@ -230,7 +229,7 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
230
229
|
identity: undefined;
|
|
231
230
|
generated: undefined;
|
|
232
231
|
}, {}, {}>;
|
|
233
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
232
|
+
updatedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
234
233
|
name: "updated_at";
|
|
235
234
|
tableName: "capture_attempts";
|
|
236
235
|
dataType: "string";
|
|
@@ -251,11 +250,11 @@ declare const captureAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
251
250
|
dialect: 'pg';
|
|
252
251
|
}>;
|
|
253
252
|
/** Narrow `capture_logs` table definition: every log line of an attempt. */
|
|
254
|
-
declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
253
|
+
declare const captureLogs: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
255
254
|
name: "capture_logs";
|
|
256
255
|
schema: undefined;
|
|
257
256
|
columns: {
|
|
258
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
257
|
+
id: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
259
258
|
name: "id";
|
|
260
259
|
tableName: "capture_logs";
|
|
261
260
|
dataType: "string";
|
|
@@ -272,7 +271,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
272
271
|
identity: undefined;
|
|
273
272
|
generated: undefined;
|
|
274
273
|
}, {}, {}>;
|
|
275
|
-
projectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
274
|
+
projectId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
276
275
|
name: "project_id";
|
|
277
276
|
tableName: "capture_logs";
|
|
278
277
|
dataType: "string";
|
|
@@ -289,7 +288,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
289
288
|
identity: undefined;
|
|
290
289
|
generated: undefined;
|
|
291
290
|
}, {}, {}>;
|
|
292
|
-
buildId: import("drizzle-orm/pg-core").PgColumn<{
|
|
291
|
+
buildId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
293
292
|
name: "build_id";
|
|
294
293
|
tableName: "capture_logs";
|
|
295
294
|
dataType: "string";
|
|
@@ -306,7 +305,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
306
305
|
identity: undefined;
|
|
307
306
|
generated: undefined;
|
|
308
307
|
}, {}, {}>;
|
|
309
|
-
attemptId: import("drizzle-orm/pg-core").PgColumn<{
|
|
308
|
+
attemptId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
310
309
|
name: "attempt_id";
|
|
311
310
|
tableName: "capture_logs";
|
|
312
311
|
dataType: "string";
|
|
@@ -323,7 +322,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
323
322
|
identity: undefined;
|
|
324
323
|
generated: undefined;
|
|
325
324
|
}, {}, {}>;
|
|
326
|
-
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
325
|
+
seq: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
327
326
|
name: "seq";
|
|
328
327
|
tableName: "capture_logs";
|
|
329
328
|
dataType: "number";
|
|
@@ -340,7 +339,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
340
339
|
identity: undefined;
|
|
341
340
|
generated: undefined;
|
|
342
341
|
}, {}, {}>;
|
|
343
|
-
level: import("drizzle-orm/pg-core").PgColumn<{
|
|
342
|
+
level: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
344
343
|
name: "level";
|
|
345
344
|
tableName: "capture_logs";
|
|
346
345
|
dataType: "string";
|
|
@@ -357,7 +356,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
357
356
|
identity: undefined;
|
|
358
357
|
generated: undefined;
|
|
359
358
|
}, {}, {}>;
|
|
360
|
-
message: import("drizzle-orm/pg-core").PgColumn<{
|
|
359
|
+
message: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
361
360
|
name: "message";
|
|
362
361
|
tableName: "capture_logs";
|
|
363
362
|
dataType: "string";
|
|
@@ -374,7 +373,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
374
373
|
identity: undefined;
|
|
375
374
|
generated: undefined;
|
|
376
375
|
}, {}, {}>;
|
|
377
|
-
fields: import("drizzle-orm/pg-core").PgColumn<{
|
|
376
|
+
fields: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
378
377
|
name: "fields";
|
|
379
378
|
tableName: "capture_logs";
|
|
380
379
|
dataType: "string";
|
|
@@ -391,7 +390,7 @@ declare const captureLogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
391
390
|
identity: undefined;
|
|
392
391
|
generated: undefined;
|
|
393
392
|
}, {}, {}>;
|
|
394
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
393
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
395
394
|
name: "created_at";
|
|
396
395
|
tableName: "capture_logs";
|
|
397
396
|
dataType: "string";
|
|
@@ -440,6 +439,5 @@ interface CaptureLog {
|
|
|
440
439
|
fields: string | null;
|
|
441
440
|
createdAt: string;
|
|
442
441
|
}
|
|
443
|
-
//#endregion
|
|
444
442
|
export { CaptureAttempt, CaptureLog, captureAttempts, captureLogs };
|
|
445
443
|
//# sourceMappingURL=capture-attempt.d.mts.map
|
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { builds } from "./build.mjs";
|
|
6
6
|
import { index, integer, pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
|
|
7
|
-
|
|
7
|
+
// src/schema/capture-attempt.ts
|
|
8
8
|
/** Narrow `capture_attempts` table definition: one row per build capture run. */
|
|
9
9
|
const captureAttempts = pgTable("capture_attempts", {
|
|
10
10
|
id: text("id").primaryKey(),
|
|
@@ -52,7 +52,6 @@ const captureLogs = pgTable("capture_logs", {
|
|
|
52
52
|
mode: "string"
|
|
53
53
|
}).notNull()
|
|
54
54
|
}, (t) => [index("capture_logs_attempt_seq_idx").on(t.attemptId, t.seq)]);
|
|
55
|
-
//#endregion
|
|
56
55
|
export { captureAttempts, captureLogs };
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=capture-attempt.mjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { CaptureJobEntry, CaptureJobKind } from "@storyshelf/core/schema";
|
|
4
|
-
//#region src/schema/capture-job.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Narrow `capture_jobs` table definition: the database queue's job rows and per-attempt claim rows.
|
|
7
6
|
* No foreign keys: notify jobs may have no build, and finished rows are purged by retention.
|
|
@@ -325,6 +324,5 @@ declare const captureJobs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
325
324
|
};
|
|
326
325
|
dialect: 'pg';
|
|
327
326
|
}>;
|
|
328
|
-
//#endregion
|
|
329
327
|
export { captureJobs };
|
|
330
328
|
//# sourceMappingURL=capture-job.d.mts.map
|
|
@@ -2,7 +2,7 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { index, integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
5
|
-
|
|
5
|
+
// src/schema/capture-job.ts
|
|
6
6
|
/**
|
|
7
7
|
* Narrow `capture_jobs` table definition: the database queue's job rows and per-attempt claim rows.
|
|
8
8
|
* No foreign keys: notify jobs may have no build, and finished rows are purged by retention.
|
|
@@ -50,7 +50,6 @@ const captureJobs = pgTable("capture_jobs", {
|
|
|
50
50
|
index("capture_jobs_build_id_idx").on(table.buildId),
|
|
51
51
|
index("capture_jobs_entry_created_idx").on(table.entry, table.createdAt)
|
|
52
52
|
]);
|
|
53
|
-
//#endregion
|
|
54
53
|
export { captureJobs };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=capture-job.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 { CaptureShardKind, CaptureShardStatus } from "@storyshelf/core/schema";
|
|
4
|
-
//#region src/schema/capture-shard.d.ts
|
|
5
4
|
/** Narrow `capture_shards` table definition: the stages of a sharded capture and its finalize claim. */
|
|
6
|
-
declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
declare const captureShards: import("drizzle-orm/pg-core/table.js").PgTableWithColumns<{
|
|
7
6
|
name: "capture_shards";
|
|
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: "capture_shards";
|
|
13
12
|
dataType: "string";
|
|
@@ -24,7 +23,7 @@ declare const captureShards: 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: "capture_shards";
|
|
30
29
|
dataType: "string";
|
|
@@ -41,7 +40,7 @@ declare const captureShards: 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: "capture_shards";
|
|
47
46
|
dataType: "string";
|
|
@@ -58,7 +57,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
58
57
|
identity: undefined;
|
|
59
58
|
generated: undefined;
|
|
60
59
|
}, {}, {}>;
|
|
61
|
-
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
60
|
+
kind: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
62
61
|
name: "kind";
|
|
63
62
|
tableName: "capture_shards";
|
|
64
63
|
dataType: "string";
|
|
@@ -77,7 +76,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
77
76
|
}, {}, {
|
|
78
77
|
$type: CaptureShardKind;
|
|
79
78
|
}>;
|
|
80
|
-
ordinal: import("drizzle-orm/pg-core").PgColumn<{
|
|
79
|
+
ordinal: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
81
80
|
name: "ordinal";
|
|
82
81
|
tableName: "capture_shards";
|
|
83
82
|
dataType: "number";
|
|
@@ -94,7 +93,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
94
93
|
identity: undefined;
|
|
95
94
|
generated: undefined;
|
|
96
95
|
}, {}, {}>;
|
|
97
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
96
|
+
status: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
98
97
|
name: "status";
|
|
99
98
|
tableName: "capture_shards";
|
|
100
99
|
dataType: "string";
|
|
@@ -113,7 +112,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
113
112
|
}, {}, {
|
|
114
113
|
$type: CaptureShardStatus;
|
|
115
114
|
}>;
|
|
116
|
-
attemptId: import("drizzle-orm/pg-core").PgColumn<{
|
|
115
|
+
attemptId: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
117
116
|
name: "attempt_id";
|
|
118
117
|
tableName: "capture_shards";
|
|
119
118
|
dataType: "string";
|
|
@@ -130,7 +129,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
130
129
|
identity: undefined;
|
|
131
130
|
generated: undefined;
|
|
132
131
|
}, {}, {}>;
|
|
133
|
-
payload: import("drizzle-orm/pg-core").PgColumn<{
|
|
132
|
+
payload: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
134
133
|
name: "payload";
|
|
135
134
|
tableName: "capture_shards";
|
|
136
135
|
dataType: "string";
|
|
@@ -147,7 +146,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
147
146
|
identity: undefined;
|
|
148
147
|
generated: undefined;
|
|
149
148
|
}, {}, {}>;
|
|
150
|
-
result: import("drizzle-orm/pg-core").PgColumn<{
|
|
149
|
+
result: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
151
150
|
name: "result";
|
|
152
151
|
tableName: "capture_shards";
|
|
153
152
|
dataType: "string";
|
|
@@ -164,7 +163,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
164
163
|
identity: undefined;
|
|
165
164
|
generated: undefined;
|
|
166
165
|
}, {}, {}>;
|
|
167
|
-
error: import("drizzle-orm/pg-core").PgColumn<{
|
|
166
|
+
error: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
168
167
|
name: "error";
|
|
169
168
|
tableName: "capture_shards";
|
|
170
169
|
dataType: "string";
|
|
@@ -181,7 +180,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
181
180
|
identity: undefined;
|
|
182
181
|
generated: undefined;
|
|
183
182
|
}, {}, {}>;
|
|
184
|
-
startedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
183
|
+
startedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
185
184
|
name: "started_at";
|
|
186
185
|
tableName: "capture_shards";
|
|
187
186
|
dataType: "string";
|
|
@@ -198,7 +197,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
198
197
|
identity: undefined;
|
|
199
198
|
generated: undefined;
|
|
200
199
|
}, {}, {}>;
|
|
201
|
-
finishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
200
|
+
finishedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
202
201
|
name: "finished_at";
|
|
203
202
|
tableName: "capture_shards";
|
|
204
203
|
dataType: "string";
|
|
@@ -215,7 +214,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
215
214
|
identity: undefined;
|
|
216
215
|
generated: undefined;
|
|
217
216
|
}, {}, {}>;
|
|
218
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
217
|
+
createdAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
219
218
|
name: "created_at";
|
|
220
219
|
tableName: "capture_shards";
|
|
221
220
|
dataType: "string";
|
|
@@ -232,7 +231,7 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
232
231
|
identity: undefined;
|
|
233
232
|
generated: undefined;
|
|
234
233
|
}, {}, {}>;
|
|
235
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
234
|
+
updatedAt: import("drizzle-orm/pg-core/index.js").PgColumn<{
|
|
236
235
|
name: "updated_at";
|
|
237
236
|
tableName: "capture_shards";
|
|
238
237
|
dataType: "string";
|
|
@@ -252,6 +251,5 @@ declare const captureShards: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
252
251
|
};
|
|
253
252
|
dialect: 'pg';
|
|
254
253
|
}>;
|
|
255
|
-
//#endregion
|
|
256
254
|
export { captureShards };
|
|
257
255
|
//# sourceMappingURL=capture-shard.d.mts.map
|
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { builds } from "./build.mjs";
|
|
6
6
|
import { index, integer, pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
|
|
7
|
-
|
|
7
|
+
// src/schema/capture-shard.ts
|
|
8
8
|
/** Narrow `capture_shards` table definition: the stages of a sharded capture and its finalize claim. */
|
|
9
9
|
const captureShards = pgTable("capture_shards", {
|
|
10
10
|
id: text("id").primaryKey(),
|
|
@@ -34,7 +34,6 @@ const captureShards = pgTable("capture_shards", {
|
|
|
34
34
|
mode: "string"
|
|
35
35
|
}).notNull()
|
|
36
36
|
}, (t) => [uniqueIndex("capture_shards_build_kind_ordinal_idx").on(t.buildId, t.kind, t.ordinal), index("capture_shards_build_id_idx").on(t.buildId)]);
|
|
37
|
-
//#endregion
|
|
38
37
|
export { captureShards };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=capture-shard.mjs.map
|