@ienlab/cloud-functions-library 1.0.0-dev.1 → 1.0.0-dev.10
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/constant/firestore.d.ts +9 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/handlers/index.d.ts +1 -0
- package/dist/handlers/ssr-dynamic-og.d.ts +17 -0
- package/dist/index.d.ts +4 -25
- package/dist/index.js +1 -66
- package/dist/index.mjs +48 -49908
- package/dist/types/firestore.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/cors.d.ts +3 -0
- package/dist/utils/firestore.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +5 -4
- package/dist/__vite-browser-external-BrdF6Ba4.js +0 -1
- package/dist/__vite-browser-external-C4yfM1ew.mjs +0 -25
- package/dist/dist-B3gFypMh.js +0 -5
- package/dist/dist-BHRQIx5i.mjs +0 -460
- package/dist/dist-CkUzyZvx.js +0 -1
- package/dist/dist-Cum8lv5j.mjs +0 -16
- package/dist/from-BPj5eOuj.mjs +0 -2443
- package/dist/from-jzy6jn2J.js +0 -4
- package/dist/multipart-parser-9TgDfPGH.mjs +0 -149
- package/dist/multipart-parser-D41wkGe-.js +0 -2
- package/dist/multipart-parser-DOk5BsUv.js +0 -2
- package/dist/multipart-parser-D_l0qnsO.mjs +0 -149
- package/dist/src-C0B8QY6h.js +0 -3
- package/dist/src-CNjb2Vfu.js +0 -3
- package/dist/src-CYCYovTl.mjs +0 -666
- package/dist/src-M25oq7Q_.mjs +0 -666
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './firestore';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ssr-dynamic-og';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpsFunction } from 'firebase-functions/v2/https';
|
|
2
|
+
export interface OGData {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
image: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SSRResolver {
|
|
8
|
+
pattern: RegExp;
|
|
9
|
+
resolve: (id: string) => Promise<OGData | null>;
|
|
10
|
+
}
|
|
11
|
+
export interface SSRDynamicOGConfig {
|
|
12
|
+
spaUrl: string;
|
|
13
|
+
defaultOG: OGData;
|
|
14
|
+
resolvers: SSRResolver[];
|
|
15
|
+
region?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function createSSRDynamicOG(config: SSRDynamicOGConfig): HttpsFunction;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Timestamp } from 'firebase-admin/firestore';
|
|
6
|
-
|
|
7
|
-
export declare interface FirestoreItem {
|
|
8
|
-
id: string;
|
|
9
|
-
ref: DocumentReference | null;
|
|
10
|
-
createAt: Timestamp;
|
|
11
|
-
updateAt: Timestamp;
|
|
12
|
-
delete: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare interface LegacyFirestoreItem {
|
|
16
|
-
id: string;
|
|
17
|
-
ref: DocumentReference | null;
|
|
18
|
-
createAt: Timestamp;
|
|
19
|
-
updateAt: Timestamp;
|
|
20
|
-
deletedAt: Timestamp | null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export declare function snapshotToData(snapshot: QueryDocumentSnapshot | DocumentSnapshot): DocumentData;
|
|
24
|
-
|
|
25
|
-
export { }
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './constant';
|
|
4
|
+
export * from './handlers';
|