@hot-updater/firebase 1.0.0-rc.18 → 1.0.0-rc.21
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/firebase/functions/index.cjs +4776 -4584
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +323 -34
- package/dist/index.d.mts +323 -34
- package/dist/index.mjs +2 -3
- package/dist/init/index.cjs +7799 -2
- package/dist/init/index.d.cts +42 -3
- package/dist/init/index.d.mts +42 -3
- package/dist/init/index.mjs +7792 -1
- package/package.json +7 -12
- package/dist/iac/index.cjs +0 -7829
- package/dist/iac/index.d.cts +0 -42
- package/dist/iac/index.d.mts +0 -42
- package/dist/iac/index.mjs +0 -7821
package/dist/init/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { RunInitOptions } from "@hot-updater/cli-tools";
|
|
1
2
|
//#region iac/init/index.d.ts
|
|
2
|
-
declare const isFirebaseRegion: (value: string | undefined) => value is string;
|
|
3
|
-
declare const isFirebaseProjectId: (value: string | undefined) => value is string;
|
|
4
3
|
declare const initProvider: {
|
|
5
4
|
readonly label: "Firebase";
|
|
6
5
|
readonly inputs: {
|
|
@@ -37,4 +36,44 @@ declare const initProvider: {
|
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
38
|
//#endregion
|
|
40
|
-
|
|
39
|
+
//#region iac/index.d.ts
|
|
40
|
+
type FirebaseIndex = {
|
|
41
|
+
collectionGroup: string;
|
|
42
|
+
queryScope: "COLLECTION" | "COLLECTION_GROUP";
|
|
43
|
+
fields: {
|
|
44
|
+
fieldPath: string;
|
|
45
|
+
order?: "ASCENDING" | "DESCENDING";
|
|
46
|
+
arrayConfig?: "CONTAINS";
|
|
47
|
+
vectorConfig?: {
|
|
48
|
+
dimension: number;
|
|
49
|
+
flat: Record<string, never>;
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
type FieldOverride = {
|
|
54
|
+
collectionGroup: string;
|
|
55
|
+
fieldPath: string;
|
|
56
|
+
indexes: Array<{
|
|
57
|
+
queryScope: "COLLECTION" | "COLLECTION_GROUP";
|
|
58
|
+
order?: "ASCENDING" | "DESCENDING";
|
|
59
|
+
arrayConfig?: "CONTAINS";
|
|
60
|
+
}>;
|
|
61
|
+
ttl?: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The project's indexes plus ours. An override replaces the project's
|
|
65
|
+
* override for the same field; every other override is kept.
|
|
66
|
+
*/
|
|
67
|
+
declare const mergeIndexes: (originalIndexes: {
|
|
68
|
+
indexes: FirebaseIndex[];
|
|
69
|
+
fieldOverrides: FieldOverride[];
|
|
70
|
+
}, newIndexes: {
|
|
71
|
+
indexes: FirebaseIndex[];
|
|
72
|
+
fieldOverrides: FieldOverride[];
|
|
73
|
+
}) => {
|
|
74
|
+
indexes: FirebaseIndex[];
|
|
75
|
+
fieldOverrides: FieldOverride[];
|
|
76
|
+
};
|
|
77
|
+
declare const runInit: ({ build, envFile }: RunInitOptions) => Promise<void>;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { initProvider, mergeIndexes, runInit };
|
package/dist/init/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { RunInitOptions } from "@hot-updater/cli-tools";
|
|
1
2
|
//#region iac/init/index.d.ts
|
|
2
|
-
declare const isFirebaseRegion: (value: string | undefined) => value is string;
|
|
3
|
-
declare const isFirebaseProjectId: (value: string | undefined) => value is string;
|
|
4
3
|
declare const initProvider: {
|
|
5
4
|
readonly label: "Firebase";
|
|
6
5
|
readonly inputs: {
|
|
@@ -37,4 +36,44 @@ declare const initProvider: {
|
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
38
|
//#endregion
|
|
40
|
-
|
|
39
|
+
//#region iac/index.d.ts
|
|
40
|
+
type FirebaseIndex = {
|
|
41
|
+
collectionGroup: string;
|
|
42
|
+
queryScope: "COLLECTION" | "COLLECTION_GROUP";
|
|
43
|
+
fields: {
|
|
44
|
+
fieldPath: string;
|
|
45
|
+
order?: "ASCENDING" | "DESCENDING";
|
|
46
|
+
arrayConfig?: "CONTAINS";
|
|
47
|
+
vectorConfig?: {
|
|
48
|
+
dimension: number;
|
|
49
|
+
flat: Record<string, never>;
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
type FieldOverride = {
|
|
54
|
+
collectionGroup: string;
|
|
55
|
+
fieldPath: string;
|
|
56
|
+
indexes: Array<{
|
|
57
|
+
queryScope: "COLLECTION" | "COLLECTION_GROUP";
|
|
58
|
+
order?: "ASCENDING" | "DESCENDING";
|
|
59
|
+
arrayConfig?: "CONTAINS";
|
|
60
|
+
}>;
|
|
61
|
+
ttl?: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The project's indexes plus ours. An override replaces the project's
|
|
65
|
+
* override for the same field; every other override is kept.
|
|
66
|
+
*/
|
|
67
|
+
declare const mergeIndexes: (originalIndexes: {
|
|
68
|
+
indexes: FirebaseIndex[];
|
|
69
|
+
fieldOverrides: FieldOverride[];
|
|
70
|
+
}, newIndexes: {
|
|
71
|
+
indexes: FirebaseIndex[];
|
|
72
|
+
fieldOverrides: FieldOverride[];
|
|
73
|
+
}) => {
|
|
74
|
+
indexes: FirebaseIndex[];
|
|
75
|
+
fieldOverrides: FieldOverride[];
|
|
76
|
+
};
|
|
77
|
+
declare const runInit: ({ build, envFile }: RunInitOptions) => Promise<void>;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { initProvider, mergeIndexes, runInit };
|