@stoker-platform/web-client 0.5.35 → 0.5.37

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.
@@ -24,6 +24,7 @@ export { getSomeServer } from "./read/getSomeServer.js";
24
24
  export { getFiles } from "./read/getFiles.js";
25
25
  export { preloadCache } from "./read/cache/preloadCache.js";
26
26
  export { preloadCollection } from "./read/cache/preloadCollection.js";
27
+ export { getPreloadListeners } from "./read/cache/preloadCache.js";
27
28
  export { sendMail } from "./utils/sendMail.js";
28
29
  export { sendMessage } from "./utils/sendMessage.js";
29
30
  export { sendAdminEmail } from "./utils/sendAdminEmail.js";
@@ -1,3 +1,3 @@
1
1
  import { PreloadCacheInitial, PreloadCacheRange, StokerCollection } from "@stoker-platform/types";
2
2
  import { WhereFilterOp } from "firebase/firestore";
3
- export declare const preloadCollection: (collection: StokerCollection, constraints?: [string, WhereFilterOp, unknown][], rangeConstraints?: PreloadCacheRange, orQueries?: [string, WhereFilterOp, unknown][], initial?: PreloadCacheInitial) => Promise<void>;
3
+ export declare const preloadCollection: (collection: StokerCollection, constraints?: [string, WhereFilterOp, unknown][], rangeConstraints?: PreloadCacheRange, orQueries?: [string, WhereFilterOp, unknown][], initial?: PreloadCacheInitial, tempCache?: string) => Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { WhereFilterOp } from "firebase/firestore";
2
2
  import { CollectionSchema, PreloadCacheRange } from "@stoker-platform/types";
3
- export declare const preloadData: (collectionSchema: CollectionSchema, constraints?: [string, WhereFilterOp, unknown][], rangeConstraints?: PreloadCacheRange, orQueries?: [string, WhereFilterOp, unknown][]) => Promise<unknown>;
3
+ export declare const preloadData: (collectionSchema: CollectionSchema, constraints?: [string, WhereFilterOp, unknown][], rangeConstraints?: PreloadCacheRange, orQueries?: [string, WhereFilterOp, unknown][], tempCache?: string) => Promise<unknown>;
@@ -1,3 +1,3 @@
1
1
  import { RoleGroup } from "@stoker-platform/types";
2
2
  import { Query } from "firebase/firestore";
3
- export declare const getCollectionRefs: (path: string[], roleGroup: RoleGroup, getAll?: boolean) => Query<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>[];
3
+ export declare const getCollectionRefs: (path: string[], roleGroup: RoleGroup, loadAll?: boolean) => Query<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>[];
@@ -2,7 +2,6 @@ import { FieldPath, QueryConstraint, WhereFilterOp } from "firebase/firestore";
2
2
  import { CollectionField, StokerCollection, StokerRecord } from "@stoker-platform/types";
3
3
  import { Cursor } from "../main";
4
4
  export interface GetSomeOptions {
5
- getAll?: boolean;
6
5
  only?: "cache" | "server";
7
6
  relations?: {
8
7
  fields?: (string | CollectionField)[];
@@ -1,4 +1,4 @@
1
- import { FieldPath, QueryConstraint, SnapshotMetadata } from "firebase/firestore";
1
+ import { FieldPath, QueryConstraint, SnapshotMetadata, WhereFilterOp } from "firebase/firestore";
2
2
  import { CollectionField, StokerRecord } from "@stoker-platform/types";
3
3
  import { Cursor } from "../main";
4
4
  export interface SubscribeManyOptions {
@@ -18,6 +18,10 @@ export interface SubscribeManyOptions {
18
18
  };
19
19
  noComputedFields?: boolean;
20
20
  noEmbeddingFields?: boolean;
21
+ tempCache?: {
22
+ label: string;
23
+ constraints: [string, WhereFilterOp, unknown][];
24
+ };
21
25
  }
22
26
  export declare const subscribeMany: (path: string[], constraints: QueryConstraint[], callback: (docs: StokerRecord[], cursor: Cursor, metadata: SnapshotMetadata | undefined) => void, errorCallback?: (error: Error) => void, options?: SubscribeManyOptions) => Promise<{
23
27
  pages: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-client",
3
- "version": "0.5.35",
3
+ "version": "0.5.37",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -24,8 +24,8 @@
24
24
  "test": "echo \"Error: no test specified\""
25
25
  },
26
26
  "dependencies": {
27
- "@stoker-platform/types": "0.5.26",
28
- "@stoker-platform/utils": "0.5.32",
27
+ "@stoker-platform/types": "0.5.27",
28
+ "@stoker-platform/utils": "0.5.33",
29
29
  "@types/lodash": "^4.17.24",
30
30
  "@types/luxon": "^3.7.1",
31
31
  "firebase": "^12.11.0",