@lpdjs/firestore-repo-service 2.2.9-beta.5 → 2.2.9-beta.8

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 (65) hide show
  1. package/dist/{create-servers-Ddp7HOPS.d.ts → create-servers-BbsqzP1y.d.ts} +6 -6
  2. package/dist/{create-servers-JSHyXgFB.d.cts → create-servers-Bm58QZze.d.cts} +6 -6
  3. package/dist/{firebase-auth-CBqtAeb5.d.cts → firebase-auth-D1APf9PA.d.cts} +1 -1
  4. package/dist/{firebase-auth-CBqtAeb5.d.ts → firebase-auth-D1APf9PA.d.ts} +1 -1
  5. package/dist/history/index.d.cts +2 -2
  6. package/dist/history/index.d.ts +2 -2
  7. package/dist/{index-BTrgC2ZA.d.cts → index-BmagC7uw.d.cts} +3 -3
  8. package/dist/{index-CP4WoShV.d.ts → index-BxurOEz1.d.ts} +3 -3
  9. package/dist/index.cjs +21 -3
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +9 -9
  12. package/dist/index.d.ts +9 -9
  13. package/dist/index.js +21 -3
  14. package/dist/index.js.map +1 -1
  15. package/dist/{openapi-BSdeinkq.d.ts → openapi-DIoQV_yQ.d.ts} +1 -1
  16. package/dist/{openapi-BSp3x2yW.d.cts → openapi-ML_1hTx2.d.cts} +1 -1
  17. package/dist/{queue-DSzvdhYk.d.ts → queue-7d2-Y-o-.d.ts} +1 -1
  18. package/dist/{queue-2NvFI_vy.d.cts → queue-CC5cnIFv.d.cts} +1 -1
  19. package/dist/{read-D4xAmsbE.d.cts → read-BSyLao3I.d.cts} +1 -1
  20. package/dist/{read-D4xAmsbE.d.ts → read-BSyLao3I.d.ts} +1 -1
  21. package/dist/servers/admin/index.cjs +24 -6
  22. package/dist/servers/admin/index.cjs.map +1 -1
  23. package/dist/servers/admin/index.d.cts +4 -4
  24. package/dist/servers/admin/index.d.ts +4 -4
  25. package/dist/servers/admin/index.js +24 -6
  26. package/dist/servers/admin/index.js.map +1 -1
  27. package/dist/servers/auth/index.cjs +32 -10
  28. package/dist/servers/auth/index.cjs.map +1 -1
  29. package/dist/servers/auth/index.d.cts +1 -1
  30. package/dist/servers/auth/index.d.ts +1 -1
  31. package/dist/servers/auth/index.js +32 -10
  32. package/dist/servers/auth/index.js.map +1 -1
  33. package/dist/servers/crud/index.cjs +2 -2
  34. package/dist/servers/crud/index.d.cts +6 -6
  35. package/dist/servers/crud/index.d.ts +6 -6
  36. package/dist/servers/crud/index.js +2 -2
  37. package/dist/servers/hono/cli.cjs +124 -0
  38. package/dist/servers/hono/cli.cjs.map +1 -0
  39. package/dist/servers/hono/cli.d.cts +1 -0
  40. package/dist/servers/hono/cli.d.ts +1 -0
  41. package/dist/servers/hono/cli.js +124 -0
  42. package/dist/servers/hono/cli.js.map +1 -0
  43. package/dist/servers/hono/index.cjs +30 -0
  44. package/dist/servers/hono/index.cjs.map +1 -0
  45. package/dist/servers/hono/index.d.cts +382 -0
  46. package/dist/servers/hono/index.d.ts +382 -0
  47. package/dist/servers/hono/index.js +30 -0
  48. package/dist/servers/hono/index.js.map +1 -0
  49. package/dist/servers/index.cjs +21 -3
  50. package/dist/servers/index.cjs.map +1 -1
  51. package/dist/servers/index.d.cts +9 -9
  52. package/dist/servers/index.d.ts +9 -9
  53. package/dist/servers/index.js +21 -3
  54. package/dist/servers/index.js.map +1 -1
  55. package/dist/sync/bigquery.d.cts +2 -2
  56. package/dist/sync/bigquery.d.ts +2 -2
  57. package/dist/sync/index.cjs +21 -21
  58. package/dist/sync/index.d.cts +5 -5
  59. package/dist/sync/index.d.ts +5 -5
  60. package/dist/sync/index.js +21 -21
  61. package/dist/{types-CqXbEeXp.d.ts → types-5vgXdUM2.d.ts} +3 -3
  62. package/dist/{types-DcyNkfY4.d.cts → types-BTt_FmeC.d.cts} +2 -2
  63. package/dist/{types-DptSRAK6.d.cts → types-BtdC0Qhu.d.cts} +3 -3
  64. package/dist/{types-DrARZ6H4.d.ts → types-DXoT10nB.d.ts} +2 -2
  65. package/package.json +19 -1
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-DSzvdhYk.js';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DrARZ6H4.js';
3
- import { O as OpenAPIDocument } from './openapi-BSdeinkq.js';
1
+ import { S as SyncQueue } from './queue-7d2-Y-o-.js';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DXoT10nB.js';
3
+ import { O as OpenAPIDocument } from './openapi-DIoQV_yQ.js';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
- import { a as HistoryTriggersConfig } from './read-D4xAmsbE.js';
7
- import { C as ConfiguredRepository, m as CrudServerOptions, l as CrudRepoConfig } from './types-CqXbEeXp.js';
8
- import { b as AdminServerOptions, A as AdminRepoConfig } from './index-CP4WoShV.js';
6
+ import { H as HistoryTriggersConfig } from './read-BSyLao3I.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-5vgXdUM2.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BxurOEz1.js';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-2NvFI_vy.cjs';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DcyNkfY4.cjs';
3
- import { O as OpenAPIDocument } from './openapi-BSp3x2yW.cjs';
1
+ import { S as SyncQueue } from './queue-CC5cnIFv.cjs';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-BTt_FmeC.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-ML_1hTx2.cjs';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
- import { a as HistoryTriggersConfig } from './read-D4xAmsbE.cjs';
7
- import { C as ConfiguredRepository, m as CrudServerOptions, l as CrudRepoConfig } from './types-DptSRAK6.cjs';
8
- import { b as AdminServerOptions, A as AdminRepoConfig } from './index-BTrgC2ZA.cjs';
6
+ import { H as HistoryTriggersConfig } from './read-BSyLao3I.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-BtdC0Qhu.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BmagC7uw.cjs';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -306,4 +306,4 @@ declare function isAuthExtension(value: unknown): value is AuthExtension;
306
306
  */
307
307
  declare const allowAll: () => true;
308
308
 
309
- export { type AuthExtension as A, type DecodedIdTokenLike as D, type FirebaseAdminAuthLike as F, MiniRouter as M, type RouteHandler as R, type Middleware as a, type AuthUser as b, allowAll as c, type AuthRoute as d, type FirebaseAuthConfig as e, firebaseAuth as f, type FirebaseAuthLoginPageConfig as g, type FirebaseAuthMode as h, isAuthExtension as i };
309
+ export { type AuthExtension as A, type DecodedIdTokenLike as D, type FirebaseAdminAuthLike as F, MiniRouter as M, type RouteHandler as R, allowAll as a, type AuthRoute as b, type AuthUser as c, type FirebaseAuthConfig as d, type FirebaseAuthLoginPageConfig as e, firebaseAuth as f, type FirebaseAuthMode as g, type Middleware as h, isAuthExtension as i };
@@ -306,4 +306,4 @@ declare function isAuthExtension(value: unknown): value is AuthExtension;
306
306
  */
307
307
  declare const allowAll: () => true;
308
308
 
309
- export { type AuthExtension as A, type DecodedIdTokenLike as D, type FirebaseAdminAuthLike as F, MiniRouter as M, type RouteHandler as R, type Middleware as a, type AuthUser as b, allowAll as c, type AuthRoute as d, type FirebaseAuthConfig as e, firebaseAuth as f, type FirebaseAuthLoginPageConfig as g, type FirebaseAuthMode as h, isAuthExtension as i };
309
+ export { type AuthExtension as A, type DecodedIdTokenLike as D, type FirebaseAdminAuthLike as F, MiniRouter as M, type RouteHandler as R, allowAll as a, type AuthRoute as b, type AuthUser as c, type FirebaseAuthConfig as d, type FirebaseAuthLoginPageConfig as e, firebaseAuth as f, type FirebaseAuthMode as g, type Middleware as h, isAuthExtension as i };
@@ -1,5 +1,5 @@
1
- import { a as HistoryTriggersConfig, c as HistoryOperation, d as HistoryFieldChange, e as HistoryMeta, H as HistoryConfigForModel, V as V2HistoryDoc, f as HistoryValueType, g as V1HistoryDoc, h as HistoryEntry } from '../read-D4xAmsbE.cjs';
2
- export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, l as HistoryListOptions, b as HistoryMethods, m as HistoryRawListOptions, n as HistoryTriggerRepoOverride, i as createHistoryMethods } from '../read-D4xAmsbE.cjs';
1
+ import { H as HistoryTriggersConfig, c as HistoryOperation, d as HistoryFieldChange, e as HistoryMeta, a as HistoryConfigForModel, V as V2HistoryDoc, f as HistoryValueType, g as V1HistoryDoc, h as HistoryEntry } from '../read-BSyLao3I.cjs';
2
+ export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, l as HistoryListOptions, b as HistoryMethods, m as HistoryRawListOptions, n as HistoryTriggerRepoOverride, i as createHistoryMethods } from '../read-BSyLao3I.cjs';
3
3
  import { CollectionReference } from 'firebase-admin/firestore';
4
4
  import 'firebase-functions/v2/firestore';
5
5
 
@@ -1,5 +1,5 @@
1
- import { a as HistoryTriggersConfig, c as HistoryOperation, d as HistoryFieldChange, e as HistoryMeta, H as HistoryConfigForModel, V as V2HistoryDoc, f as HistoryValueType, g as V1HistoryDoc, h as HistoryEntry } from '../read-D4xAmsbE.js';
2
- export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, l as HistoryListOptions, b as HistoryMethods, m as HistoryRawListOptions, n as HistoryTriggerRepoOverride, i as createHistoryMethods } from '../read-D4xAmsbE.js';
1
+ import { H as HistoryTriggersConfig, c as HistoryOperation, d as HistoryFieldChange, e as HistoryMeta, a as HistoryConfigForModel, V as V2HistoryDoc, f as HistoryValueType, g as V1HistoryDoc, h as HistoryEntry } from '../read-BSyLao3I.js';
2
+ export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, l as HistoryListOptions, b as HistoryMethods, m as HistoryRawListOptions, n as HistoryTriggerRepoOverride, i as createHistoryMethods } from '../read-BSyLao3I.js';
3
3
  import { CollectionReference } from 'firebase-admin/firestore';
4
4
  import 'firebase-functions/v2/firestore';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-DptSRAK6.cjs';
4
- import { A as AuthExtension, a as Middleware } from './firebase-auth-CBqtAeb5.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole } from './types-BtdC0Qhu.cjs';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-D1APf9PA.cjs';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;
@@ -458,4 +458,4 @@ declare function createAdminServer<TRepos extends Record<string, ConfiguredRepos
458
458
  httpsOptions?: HttpsOptions;
459
459
  };
460
460
 
461
- export { type AdminRepoConfig as A, type BasicAuthConfig as B, type ColumnMeta as C, type FilterState as F, type PageOptions as P, type QueryError as Q, type RelationalFieldMeta as R, type SortState as S, type AdminRepoEntry as a, type AdminServerOptions as b, type RepoRegistry as c, createAdminServer as d };
461
+ export { type AdminServerOptions as A, type BasicAuthConfig as B, type ColumnMeta as C, type FilterState as F, type PageOptions as P, type QueryError as Q, type RelationalFieldMeta as R, type SortState as S, type AdminRepoConfig as a, type AdminRepoEntry as b, type RepoRegistry as c, createAdminServer as d };
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-CqXbEeXp.js';
4
- import { A as AuthExtension, a as Middleware } from './firebase-auth-CBqtAeb5.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole } from './types-5vgXdUM2.js';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-D1APf9PA.js';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;
@@ -458,4 +458,4 @@ declare function createAdminServer<TRepos extends Record<string, ConfiguredRepos
458
458
  httpsOptions?: HttpsOptions;
459
459
  };
460
460
 
461
- export { type AdminRepoConfig as A, type BasicAuthConfig as B, type ColumnMeta as C, type FilterState as F, type PageOptions as P, type QueryError as Q, type RelationalFieldMeta as R, type SortState as S, type AdminRepoEntry as a, type AdminServerOptions as b, type RepoRegistry as c, createAdminServer as d };
461
+ export { type AdminServerOptions as A, type BasicAuthConfig as B, type ColumnMeta as C, type FilterState as F, type PageOptions as P, type QueryError as Q, type RelationalFieldMeta as R, type SortState as S, type AdminRepoConfig as a, type AdminRepoEntry as b, type RepoRegistry as c, createAdminServer as d };
package/dist/index.cjs CHANGED
@@ -825,14 +825,32 @@ function initTable(table) {
825
825
  // \u2500\u2500 Tag original column indices \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
826
826
  function tagOriginalIndices(table) {
827
827
  var ths = Array.from(table.querySelectorAll("thead th"));
828
+ // Skip the leading selection (checkbox) column \u2014 it must always stay
829
+ // visible and is not user-toggleable.
830
+ var startIdx = 0;
831
+ while (
832
+ startIdx < ths.length &&
833
+ ths[startIdx].querySelector("[data-frs-select-page]")
834
+ ) {
835
+ startIdx++;
836
+ }
828
837
  var dataCount = countDataColumns(table, ths);
829
838
  for (var i = 0; i < dataCount; i++) {
830
- ths[i].setAttribute("data-orig-col", String(i));
839
+ var th = ths[startIdx + i];
840
+ if (!th) break;
841
+ th.setAttribute("data-orig-col", String(i));
831
842
  }
832
843
  table.querySelectorAll("tbody tr").forEach(function (row) {
833
844
  var tds = Array.from(row.querySelectorAll("td"));
834
- for (var j = 0; j < dataCount && j < tds.length; j++) {
835
- tds[j].setAttribute("data-orig-col", String(j));
845
+ var rowStart = 0;
846
+ while (
847
+ rowStart < tds.length &&
848
+ tds[rowStart].querySelector("[data-frs-select-row]")
849
+ ) {
850
+ rowStart++;
851
+ }
852
+ for (var j = 0; j < dataCount && rowStart + j < tds.length; j++) {
853
+ tds[rowStart + j].setAttribute("data-orig-col", String(j));
836
854
  }
837
855
  });
838
856
  }