@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.
- package/dist/{create-servers-Ddp7HOPS.d.ts → create-servers-BbsqzP1y.d.ts} +6 -6
- package/dist/{create-servers-JSHyXgFB.d.cts → create-servers-Bm58QZze.d.cts} +6 -6
- package/dist/{firebase-auth-CBqtAeb5.d.cts → firebase-auth-D1APf9PA.d.cts} +1 -1
- package/dist/{firebase-auth-CBqtAeb5.d.ts → firebase-auth-D1APf9PA.d.ts} +1 -1
- package/dist/history/index.d.cts +2 -2
- package/dist/history/index.d.ts +2 -2
- package/dist/{index-BTrgC2ZA.d.cts → index-BmagC7uw.d.cts} +3 -3
- package/dist/{index-CP4WoShV.d.ts → index-BxurOEz1.d.ts} +3 -3
- package/dist/index.cjs +21 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/dist/{openapi-BSdeinkq.d.ts → openapi-DIoQV_yQ.d.ts} +1 -1
- package/dist/{openapi-BSp3x2yW.d.cts → openapi-ML_1hTx2.d.cts} +1 -1
- package/dist/{queue-DSzvdhYk.d.ts → queue-7d2-Y-o-.d.ts} +1 -1
- package/dist/{queue-2NvFI_vy.d.cts → queue-CC5cnIFv.d.cts} +1 -1
- package/dist/{read-D4xAmsbE.d.cts → read-BSyLao3I.d.cts} +1 -1
- package/dist/{read-D4xAmsbE.d.ts → read-BSyLao3I.d.ts} +1 -1
- package/dist/servers/admin/index.cjs +24 -6
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +4 -4
- package/dist/servers/admin/index.d.ts +4 -4
- package/dist/servers/admin/index.js +24 -6
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/auth/index.cjs +32 -10
- package/dist/servers/auth/index.cjs.map +1 -1
- package/dist/servers/auth/index.d.cts +1 -1
- package/dist/servers/auth/index.d.ts +1 -1
- package/dist/servers/auth/index.js +32 -10
- package/dist/servers/auth/index.js.map +1 -1
- package/dist/servers/crud/index.cjs +2 -2
- package/dist/servers/crud/index.d.cts +6 -6
- package/dist/servers/crud/index.d.ts +6 -6
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/hono/cli.cjs +124 -0
- package/dist/servers/hono/cli.cjs.map +1 -0
- package/dist/servers/hono/cli.d.cts +1 -0
- package/dist/servers/hono/cli.d.ts +1 -0
- package/dist/servers/hono/cli.js +124 -0
- package/dist/servers/hono/cli.js.map +1 -0
- package/dist/servers/hono/index.cjs +30 -0
- package/dist/servers/hono/index.cjs.map +1 -0
- package/dist/servers/hono/index.d.cts +382 -0
- package/dist/servers/hono/index.d.ts +382 -0
- package/dist/servers/hono/index.js +30 -0
- package/dist/servers/hono/index.js.map +1 -0
- package/dist/servers/index.cjs +21 -3
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +9 -9
- package/dist/servers/index.d.ts +9 -9
- package/dist/servers/index.js +21 -3
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/bigquery.d.cts +2 -2
- package/dist/sync/bigquery.d.ts +2 -2
- package/dist/sync/index.cjs +21 -21
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +21 -21
- package/dist/{types-CqXbEeXp.d.ts → types-5vgXdUM2.d.ts} +3 -3
- package/dist/{types-DcyNkfY4.d.cts → types-BTt_FmeC.d.cts} +2 -2
- package/dist/{types-DptSRAK6.d.cts → types-BtdC0Qhu.d.cts} +3 -3
- package/dist/{types-DrARZ6H4.d.ts → types-DXoT10nB.d.ts} +2 -2
- package/package.json +19 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as SyncQueue } from './queue-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
3
|
-
import { O as OpenAPIDocument } from './openapi-
|
|
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 {
|
|
7
|
-
import { C as ConfiguredRepository,
|
|
8
|
-
import {
|
|
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-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
3
|
-
import { O as OpenAPIDocument } from './openapi-
|
|
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 {
|
|
7
|
-
import { C as ConfiguredRepository,
|
|
8
|
-
import {
|
|
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,
|
|
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,
|
|
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 };
|
package/dist/history/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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
|
|
package/dist/history/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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,
|
|
4
|
-
import { A as AuthExtension,
|
|
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
|
|
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,
|
|
4
|
-
import { A as AuthExtension,
|
|
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
|
|
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]
|
|
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
|
-
|
|
835
|
-
|
|
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
|
}
|