@byline/db-postgres 0.10.1 → 0.10.3

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.
Files changed (49) hide show
  1. package/dist/database/schema/auth.d.ts +0 -1
  2. package/dist/database/schema/auth.js +0 -1
  3. package/dist/database/schema/index.d.ts +0 -1
  4. package/dist/database/schema/index.js +0 -1
  5. package/dist/index.d.ts +0 -1
  6. package/dist/index.js +0 -1
  7. package/dist/lib/test-helper.d.ts +0 -1
  8. package/dist/lib/test-helper.js +0 -1
  9. package/dist/modules/admin/admin-permissions-repository.d.ts +0 -1
  10. package/dist/modules/admin/admin-permissions-repository.js +0 -1
  11. package/dist/modules/admin/admin-roles-repository.d.ts +0 -1
  12. package/dist/modules/admin/admin-roles-repository.js +0 -1
  13. package/dist/modules/admin/admin-store.d.ts +0 -1
  14. package/dist/modules/admin/admin-store.js +0 -1
  15. package/dist/modules/admin/admin-users-repository.d.ts +0 -1
  16. package/dist/modules/admin/admin-users-repository.js +0 -1
  17. package/dist/modules/admin/index.d.ts +0 -1
  18. package/dist/modules/admin/index.js +0 -1
  19. package/dist/modules/admin/refresh-tokens-repository.d.ts +0 -1
  20. package/dist/modules/admin/refresh-tokens-repository.js +0 -1
  21. package/dist/modules/admin/tests/auth-integration.test.d.ts +0 -1
  22. package/dist/modules/admin/tests/auth-integration.test.js +0 -1
  23. package/dist/modules/admin/tests/session-provider.test.d.ts +0 -1
  24. package/dist/modules/admin/tests/session-provider.test.js +0 -1
  25. package/dist/modules/storage/@types.d.ts +0 -1
  26. package/dist/modules/storage/@types.js +0 -1
  27. package/dist/modules/storage/storage-commands.d.ts +0 -1
  28. package/dist/modules/storage/storage-commands.js +0 -1
  29. package/dist/modules/storage/storage-flatten.d.ts +0 -1
  30. package/dist/modules/storage/storage-flatten.js +0 -1
  31. package/dist/modules/storage/storage-insert.d.ts +0 -1
  32. package/dist/modules/storage/storage-insert.js +0 -1
  33. package/dist/modules/storage/storage-queries.d.ts +0 -1
  34. package/dist/modules/storage/storage-queries.js +0 -1
  35. package/dist/modules/storage/storage-restore.d.ts +0 -1
  36. package/dist/modules/storage/storage-restore.js +0 -1
  37. package/dist/modules/storage/storage-store-manifest.d.ts +0 -1
  38. package/dist/modules/storage/storage-store-manifest.js +0 -1
  39. package/dist/modules/storage/storage-utils.d.ts +0 -1
  40. package/dist/modules/storage/storage-utils.js +0 -1
  41. package/dist/modules/storage/tests/storage-field-types.test.d.ts +0 -1
  42. package/dist/modules/storage/tests/storage-field-types.test.js +0 -1
  43. package/dist/modules/storage/tests/storage-flatten-reconstruct.test.d.ts +0 -1
  44. package/dist/modules/storage/tests/storage-flatten-reconstruct.test.js +0 -1
  45. package/dist/modules/storage/tests/storage-store-manifest.test.d.ts +0 -1
  46. package/dist/modules/storage/tests/storage-store-manifest.test.js +0 -1
  47. package/dist/modules/storage/tests/storage-versioning.test.d.ts +0 -1
  48. package/dist/modules/storage/tests/storage-versioning.test.js +0 -1
  49. package/package.json +14 -5
@@ -854,4 +854,3 @@ export declare const adminPermissionsRelations: import("drizzle-orm").Relations<
854
854
  export declare const adminRefreshTokensRelations: import("drizzle-orm").Relations<"byline_admin_refresh_tokens", {
855
855
  user: import("drizzle-orm").One<"byline_admin_users", true>;
856
856
  }>;
857
- //# sourceMappingURL=auth.d.ts.map
@@ -173,4 +173,3 @@ export const adminRefreshTokensRelations = relations(adminRefreshTokens, ({ one
173
173
  references: [adminUsers.id],
174
174
  }),
175
175
  }));
176
- //# sourceMappingURL=auth.js.map
@@ -2952,4 +2952,3 @@ export declare const jsonStoreRelations: import("drizzle-orm").Relations<"byline
2952
2952
  collection: import("drizzle-orm").One<"byline_collections", true>;
2953
2953
  }>;
2954
2954
  export { adminPermissions, adminPermissionsRelations, adminRefreshTokens, adminRefreshTokensRelations, adminRoleAdminUser, adminRoleAdminUserRelations, adminRoles, adminRolesRelations, adminUsers, adminUsersRelations, } from './auth.js';
2955
- //# sourceMappingURL=index.d.ts.map
@@ -497,4 +497,3 @@ export const jsonStoreRelations = relations(jsonStore, ({ one }) => ({
497
497
  // See ./auth.ts for definitions and rationale.
498
498
  // ---------------------------------------------------------------------------
499
499
  export { adminPermissions, adminPermissionsRelations, adminRefreshTokens, adminRefreshTokensRelations, adminRoleAdminUser, adminRoleAdminUserRelations, adminRoles, adminRolesRelations, adminUsers, adminUsersRelations, } from './auth.js';
500
- //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -28,4 +28,3 @@ export declare const pgAdapter: ({ connectionString, collections, }: {
28
28
  connectionString: string;
29
29
  collections: CollectionDefinition[];
30
30
  }) => PgAdapter;
31
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -27,4 +27,3 @@ export const pgAdapter = ({ connectionString, collections, }) => {
27
27
  pool,
28
28
  };
29
29
  };
30
- //# sourceMappingURL=index.js.map
@@ -14,4 +14,3 @@ export declare function setupTestDB(collections?: CollectionDefinition[]): {
14
14
  };
15
15
  };
16
16
  export declare function teardownTestDB(): Promise<void>;
17
- //# sourceMappingURL=test-helper.d.ts.map
@@ -44,4 +44,3 @@ export async function teardownTestDB() {
44
44
  queryBuilders = undefined;
45
45
  }
46
46
  }
47
- //# sourceMappingURL=test-helper.js.map
@@ -14,4 +14,3 @@ import type * as schema from '../../database/schema/index.js';
14
14
  * `resolveActor()`.
15
15
  */
16
16
  export declare function createAdminPermissionsRepository(db: NodePgDatabase<typeof schema>): AdminPermissionsRepository;
17
- //# sourceMappingURL=admin-permissions-repository.d.ts.map
@@ -73,4 +73,3 @@ export function createAdminPermissionsRepository(db) {
73
73
  },
74
74
  };
75
75
  }
76
- //# sourceMappingURL=admin-permissions-repository.js.map
@@ -9,4 +9,3 @@ import { type AdminRolesRepository } from '@byline/admin/admin-roles';
9
9
  import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
10
  import type * as schema from '../../database/schema/index.js';
11
11
  export declare function createAdminRolesRepository(db: NodePgDatabase<typeof schema>): AdminRolesRepository;
12
- //# sourceMappingURL=admin-roles-repository.d.ts.map
@@ -165,4 +165,3 @@ export function createAdminRolesRepository(db) {
165
165
  },
166
166
  };
167
167
  }
168
- //# sourceMappingURL=admin-roles-repository.js.map
@@ -17,4 +17,3 @@ import type * as schema from '../../database/schema/index.js';
17
17
  * Construct once per process, alongside the `pgAdapter` call.
18
18
  */
19
19
  export declare function createAdminStore(db: NodePgDatabase<typeof schema>): AdminStore;
20
- //# sourceMappingURL=admin-store.d.ts.map
@@ -25,4 +25,3 @@ export function createAdminStore(db) {
25
25
  refreshTokens: createRefreshTokensRepository(db),
26
26
  };
27
27
  }
28
- //# sourceMappingURL=admin-store.js.map
@@ -9,4 +9,3 @@ import { type AdminUsersRepository } from '@byline/admin/admin-users';
9
9
  import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
10
  import type * as schema from '../../database/schema/index.js';
11
11
  export declare function createAdminUsersRepository(db: NodePgDatabase<typeof schema>): AdminUsersRepository;
12
- //# sourceMappingURL=admin-users-repository.d.ts.map
@@ -205,4 +205,3 @@ export function createAdminUsersRepository(db) {
205
205
  },
206
206
  };
207
207
  }
208
- //# sourceMappingURL=admin-users-repository.js.map
@@ -24,4 +24,3 @@ export { createAdminRolesRepository } from './admin-roles-repository.js';
24
24
  export { createAdminStore } from './admin-store.js';
25
25
  export { createAdminUsersRepository } from './admin-users-repository.js';
26
26
  export { createRefreshTokensRepository } from './refresh-tokens-repository.js';
27
- //# sourceMappingURL=index.d.ts.map
@@ -24,4 +24,3 @@ export { createAdminRolesRepository } from './admin-roles-repository.js';
24
24
  export { createAdminStore } from './admin-store.js';
25
25
  export { createAdminUsersRepository } from './admin-users-repository.js';
26
26
  export { createRefreshTokensRepository } from './refresh-tokens-repository.js';
27
- //# sourceMappingURL=index.js.map
@@ -13,4 +13,3 @@ import type * as schema from '../../database/schema/index.js';
13
13
  * built-in `JwtSessionProvider`.
14
14
  */
15
15
  export declare function createRefreshTokensRepository(db: NodePgDatabase<typeof schema>): RefreshTokensRepository;
16
- //# sourceMappingURL=refresh-tokens-repository.d.ts.map
@@ -129,4 +129,3 @@ export function createRefreshTokensRepository(db) {
129
129
  },
130
130
  };
131
131
  }
132
- //# sourceMappingURL=refresh-tokens-repository.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=auth-integration.test.d.ts.map
@@ -389,4 +389,3 @@ describe('auth integration', () => {
389
389
  });
390
390
  });
391
391
  });
392
- //# sourceMappingURL=auth-integration.test.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=session-provider.test.d.ts.map
@@ -367,4 +367,3 @@ describe('JwtSessionProvider', () => {
367
367
  });
368
368
  });
369
369
  });
370
- //# sourceMappingURL=session-provider.test.js.map
@@ -113,4 +113,3 @@ export interface UnifiedFieldValue {
113
113
  meta_item_id: string | null;
114
114
  }
115
115
  export {};
116
- //# sourceMappingURL=@types.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=@types.js.map
@@ -133,4 +133,3 @@ export declare function createCommandBuilders(db: DatabaseConnection): {
133
133
  documents: DocumentCommands;
134
134
  };
135
135
  export {};
136
- //# sourceMappingURL=storage-commands.d.ts.map
@@ -269,4 +269,3 @@ export function createCommandBuilders(db) {
269
269
  documents: new DocumentCommands(db),
270
270
  };
271
271
  }
272
- //# sourceMappingURL=storage-commands.js.map
@@ -16,4 +16,3 @@ import type { FlattenedFieldValue } from './@types.js';
16
16
  * @param locale - The locale to flatten for (or 'all' to flatten all locales).
17
17
  */
18
18
  export declare const flattenFieldSetData: (fields: FieldSet, data: unknown, locale: string) => FlattenedFieldValue[];
19
- //# sourceMappingURL=storage-flatten.d.ts.map
@@ -258,4 +258,3 @@ const flattenValueFieldData = (field, field_path, value, locale) => {
258
258
  }).log(getLogger());
259
259
  }
260
260
  };
261
- //# sourceMappingURL=storage-flatten.js.map
@@ -19,4 +19,3 @@ type FieldInsertBuckets = {
19
19
  };
20
20
  export declare const prepareFieldInsertBuckets: (flattenedFields: FlattenedFieldValue[], document_version_id: string, collection_id: string) => FieldInsertBuckets;
21
21
  export {};
22
- //# sourceMappingURL=storage-insert.d.ts.map
@@ -112,4 +112,3 @@ export const prepareFieldInsertBuckets = (flattenedFields, document_version_id,
112
112
  }
113
113
  return buckets;
114
114
  };
115
- //# sourceMappingURL=storage-insert.js.map
@@ -374,4 +374,3 @@ export declare function createQueryBuilders(db: DatabaseConnection, collections:
374
374
  documents: DocumentQueries;
375
375
  };
376
376
  export {};
377
- //# sourceMappingURL=storage-queries.d.ts.map
@@ -973,4 +973,3 @@ export function createQueryBuilders(db, collections) {
973
973
  documents: new DocumentQueries(db, collections),
974
974
  };
975
975
  }
976
- //# sourceMappingURL=storage-queries.js.map
@@ -16,4 +16,3 @@ import type { FlattenedFieldValue, UnifiedFieldValue } from './@types.js';
16
16
  */
17
17
  export declare const restoreFieldSetData: (fields: FieldSet, flattenedData: FlattenedFieldValue[], resolveLocale?: string) => any;
18
18
  export declare const extractFlattenedFieldValue: (unifiedValue: UnifiedFieldValue) => FlattenedFieldValue;
19
- //# sourceMappingURL=storage-restore.d.ts.map
@@ -347,4 +347,3 @@ export const extractFlattenedFieldValue = (unifiedValue) => {
347
347
  const orUndefined = (value) => {
348
348
  return value === null ? undefined : value;
349
349
  };
350
- //# sourceMappingURL=storage-restore.js.map
@@ -68,4 +68,3 @@ declare function buildSelectList(storeType: StoreType): string;
68
68
  */
69
69
  export declare function storeSelectList(storeType: StoreType): SQL;
70
70
  export { buildSelectList, columns, fieldTypeLiterals };
71
- //# sourceMappingURL=storage-store-manifest.d.ts.map
@@ -291,4 +291,3 @@ export function storeSelectList(storeType) {
291
291
  // Exported for testing
292
292
  // ---------------------------------------------------------------------------
293
293
  export { buildSelectList, columns, fieldTypeLiterals };
294
- //# sourceMappingURL=storage-store-manifest.js.map
@@ -20,4 +20,3 @@ import { type StoreType } from './storage-store-manifest.js';
20
20
  */
21
21
  export declare function resolveStoreTypes(fields: FieldSet, fieldNames: string[]): Set<StoreType>;
22
22
  export declare const getFirstOrThrow: <T>(message: string) => (values: T[]) => T;
23
- //# sourceMappingURL=storage-utils.d.ts.map
@@ -69,4 +69,3 @@ export const getFirstOrThrow = (message) => (values) => {
69
69
  }
70
70
  return value;
71
71
  };
72
- //# sourceMappingURL=storage-utils.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=storage-field-types.test.d.ts.map
@@ -143,4 +143,3 @@ describe('02 Field Types', () => {
143
143
  assert.ok(doc.path, 'should include the system path on the document envelope');
144
144
  });
145
145
  });
146
- //# sourceMappingURL=storage-field-types.test.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=storage-flatten-reconstruct.test.d.ts.map
@@ -324,4 +324,3 @@ describe('reserved field-name tolerance on restore', () => {
324
324
  }, 'a reserved-name orphan must not be treated as an unknown field');
325
325
  });
326
326
  });
327
- //# sourceMappingURL=storage-flatten-reconstruct.test.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=storage-store-manifest.test.d.ts.map
@@ -138,4 +138,3 @@ describe('storage-store-manifest', () => {
138
138
  });
139
139
  });
140
140
  });
141
- //# sourceMappingURL=storage-store-manifest.test.js.map
@@ -6,4 +6,3 @@
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=storage-versioning.test.d.ts.map
@@ -333,4 +333,3 @@ describe('03 Document Creation and Versioning', () => {
333
333
  });
334
334
  });
335
335
  });
336
- //# sourceMappingURL=storage-versioning.test.js.map
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": "0.10.1",
5
+ "version": "0.10.3",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -31,6 +31,16 @@
31
31
  "import": "./dist/index.js",
32
32
  "require": "./dist/index.js"
33
33
  },
34
+ "./admin": {
35
+ "types": "./dist/modules/admin/index.d.ts",
36
+ "import": "./dist/modules/admin/index.js",
37
+ "require": "./dist/modules/admin/index.js"
38
+ },
39
+ "./schema": {
40
+ "types": "./dist/database/schema/index.d.ts",
41
+ "import": "./dist/database/schema/index.js",
42
+ "require": "./dist/database/schema/index.js"
43
+ },
34
44
  "./package.json": "./package.json"
35
45
  },
36
46
  "files": [
@@ -42,9 +52,9 @@
42
52
  "pg": "^8.20.0",
43
53
  "uuid": "^14.0.0",
44
54
  "zod": "^4.4.2",
45
- "@byline/auth": "0.10.1",
46
- "@byline/core": "0.10.1",
47
- "@byline/admin": "0.10.1"
55
+ "@byline/auth": "0.10.3",
56
+ "@byline/core": "0.10.3",
57
+ "@byline/admin": "0.10.3"
48
58
  },
49
59
  "devDependencies": {
50
60
  "@biomejs/biome": "2.4.14",
@@ -59,7 +69,6 @@
59
69
  },
60
70
  "publishConfig": {
61
71
  "access": "public",
62
- "index": "dist/index.js",
63
72
  "registry": "https://registry.npmjs.org/"
64
73
  },
65
74
  "scripts": {