@byline/db-postgres 3.17.0 → 3.18.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.
|
@@ -47,15 +47,15 @@ export declare class CollectionCommands implements ICollectionCommands {
|
|
|
47
47
|
version?: number;
|
|
48
48
|
schemaHash?: string;
|
|
49
49
|
}): Promise<{
|
|
50
|
+
config: unknown;
|
|
50
51
|
created_at: Date;
|
|
51
|
-
updated_at: Date;
|
|
52
52
|
id: string;
|
|
53
|
-
config: unknown;
|
|
54
53
|
path: string;
|
|
55
|
-
singular: string;
|
|
56
54
|
plural: string;
|
|
57
|
-
version: number;
|
|
58
55
|
schema_hash: string | null;
|
|
56
|
+
singular: string;
|
|
57
|
+
updated_at: Date;
|
|
58
|
+
version: number;
|
|
59
59
|
}[]>;
|
|
60
60
|
update(id: string, patch: {
|
|
61
61
|
config?: CollectionDefinition;
|
|
@@ -126,18 +126,18 @@ export declare class DocumentCommands implements IDocumentCommands {
|
|
|
126
126
|
orderKey?: string;
|
|
127
127
|
}): Promise<{
|
|
128
128
|
document: {
|
|
129
|
-
|
|
130
|
-
updated_at: Date;
|
|
131
|
-
id: string;
|
|
129
|
+
change_summary: string | null;
|
|
132
130
|
collection_id: string;
|
|
133
|
-
document_id: string;
|
|
134
131
|
collection_version: number;
|
|
132
|
+
created_at: Date;
|
|
133
|
+
created_by: string | null;
|
|
135
134
|
doc: unknown;
|
|
135
|
+
document_id: string;
|
|
136
136
|
event_type: string;
|
|
137
|
-
|
|
137
|
+
id: string;
|
|
138
138
|
is_deleted: boolean | null;
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
status: string | null;
|
|
140
|
+
updated_at: Date;
|
|
141
141
|
};
|
|
142
142
|
fieldCount: number;
|
|
143
143
|
}>;
|
|
@@ -27,26 +27,26 @@ export declare class CollectionQueries implements ICollectionQueries {
|
|
|
27
27
|
schema_hash: string | null;
|
|
28
28
|
}[]>;
|
|
29
29
|
getCollectionByPath(path: string): Promise<{
|
|
30
|
+
config: unknown;
|
|
30
31
|
created_at: Date;
|
|
31
|
-
updated_at: Date;
|
|
32
32
|
id: string;
|
|
33
|
-
config: unknown;
|
|
34
33
|
path: string;
|
|
35
|
-
singular: string;
|
|
36
34
|
plural: string;
|
|
37
|
-
version: number;
|
|
38
35
|
schema_hash: string | null;
|
|
36
|
+
singular: string;
|
|
37
|
+
updated_at: Date;
|
|
38
|
+
version: number;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
getCollectionById(id: string): Promise<{
|
|
41
|
+
config: unknown;
|
|
41
42
|
created_at: Date;
|
|
42
|
-
updated_at: Date;
|
|
43
43
|
id: string;
|
|
44
|
-
config: unknown;
|
|
45
44
|
path: string;
|
|
46
|
-
singular: string;
|
|
47
45
|
plural: string;
|
|
48
|
-
version: number;
|
|
49
46
|
schema_hash: string | null;
|
|
47
|
+
singular: string;
|
|
48
|
+
updated_at: Date;
|
|
49
|
+
version: number;
|
|
50
50
|
} | undefined>;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -250,7 +250,6 @@ export declare class DocumentQueries implements IDocumentQueries {
|
|
|
250
250
|
lenient?: boolean;
|
|
251
251
|
onMissingLocale?: MissingLocalePolicy;
|
|
252
252
|
}): Promise<{
|
|
253
|
-
restoreWarnings?: string[] | undefined;
|
|
254
253
|
document_version_id: string;
|
|
255
254
|
document_id: string;
|
|
256
255
|
path: string;
|
|
@@ -264,6 +263,7 @@ export declare class DocumentQueries implements IDocumentQueries {
|
|
|
264
263
|
availableLocales: string[];
|
|
265
264
|
_availableVersionLocales: string[];
|
|
266
265
|
_localeAgnostic: boolean;
|
|
266
|
+
restoreWarnings?: string[] | undefined;
|
|
267
267
|
} | {
|
|
268
268
|
document_version_id: string;
|
|
269
269
|
document_id: string;
|
|
@@ -299,6 +299,9 @@ export declare class DocumentQueries implements IDocumentQueries {
|
|
|
299
299
|
_availableVersionLocales: string[];
|
|
300
300
|
_localeAgnostic: boolean;
|
|
301
301
|
} | {
|
|
302
|
+
availableLocales?: undefined;
|
|
303
|
+
_availableVersionLocales?: undefined;
|
|
304
|
+
_localeAgnostic?: undefined;
|
|
302
305
|
document_version_id: string;
|
|
303
306
|
document_id: string;
|
|
304
307
|
path: string;
|
|
@@ -309,9 +312,6 @@ export declare class DocumentQueries implements IDocumentQueries {
|
|
|
309
312
|
updated_at: Date;
|
|
310
313
|
created_by: string | null;
|
|
311
314
|
fields: FlattenedStore[];
|
|
312
|
-
availableLocales?: undefined;
|
|
313
|
-
_availableVersionLocales?: undefined;
|
|
314
|
-
_localeAgnostic?: undefined;
|
|
315
315
|
} | null>;
|
|
316
316
|
/**
|
|
317
317
|
* getDocumentByVersion — fetches a specific version and reconstructs its fields.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/db-postgres",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.18.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -54,24 +54,24 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"drizzle-orm": "^0.45.2",
|
|
56
56
|
"npm-run-all": "^4.1.5",
|
|
57
|
-
"pg": "^8.
|
|
58
|
-
"uuid": "^14.0.
|
|
59
|
-
"@byline/
|
|
60
|
-
"@byline/
|
|
61
|
-
"@byline/
|
|
57
|
+
"pg": "^8.22.0",
|
|
58
|
+
"uuid": "^14.0.1",
|
|
59
|
+
"@byline/auth": "3.18.0",
|
|
60
|
+
"@byline/core": "3.18.0",
|
|
61
|
+
"@byline/admin": "3.18.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "2.
|
|
65
|
-
"@types/node": "^
|
|
64
|
+
"@biomejs/biome": "2.5.2",
|
|
65
|
+
"@types/node": "^26.1.0",
|
|
66
66
|
"@types/pg": "^8.20.0",
|
|
67
67
|
"chokidar": "^5.0.0",
|
|
68
68
|
"chokidar-cli": "^3.0.0",
|
|
69
69
|
"dotenv": "^17.4.2",
|
|
70
70
|
"drizzle-kit": "^0.31.10",
|
|
71
|
-
"tsc-alias": "^1.
|
|
72
|
-
"tsx": "^4.
|
|
73
|
-
"typescript": "
|
|
74
|
-
"vitest": "^4.1.
|
|
71
|
+
"tsc-alias": "^1.9.0",
|
|
72
|
+
"tsx": "^4.23.0",
|
|
73
|
+
"typescript": "^7.0.2",
|
|
74
|
+
"vitest": "^4.1.10"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public",
|