@hot-updater/firebase 1.0.0-rc.36 → 1.0.0-rc.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.
- package/dist/firebase/functions/index.cjs +1621 -1443
- package/dist/index.d.cts +35 -2
- package/dist/index.d.mts +35 -2
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -62,6 +62,25 @@ type DatabaseHttpResponse = DatabaseJsonObject & {
|
|
|
62
62
|
readonly body_truncated: boolean;
|
|
63
63
|
readonly received_at_ms: number;
|
|
64
64
|
};
|
|
65
|
+
/** What a kept UNCHANGED row changed against its installation's head. */
|
|
66
|
+
type BundleEventChangeKind = "first_seen" | "bundle" | "release" | "app_version" | "channel" | "native_build";
|
|
67
|
+
/**
|
|
68
|
+
* An UNCHANGED report the server keeps: what it changed against its
|
|
69
|
+
* installation's head, and the running values the head held before it. A
|
|
70
|
+
* report from an installation without a head is `first_seen` alone, with no
|
|
71
|
+
* previous values: the installation is new to this server, not necessarily
|
|
72
|
+
* to its device.
|
|
73
|
+
*/
|
|
74
|
+
type BundleEventChange = DatabaseJsonObject & {
|
|
75
|
+
readonly kinds: BundleEventChangeKind[];
|
|
76
|
+
readonly previous: (DatabaseJsonObject & {
|
|
77
|
+
readonly bundle_id: string;
|
|
78
|
+
readonly release_id: string | null;
|
|
79
|
+
readonly app_version: string;
|
|
80
|
+
readonly channel: string;
|
|
81
|
+
readonly min_bundle_id?: string;
|
|
82
|
+
}) | null;
|
|
83
|
+
};
|
|
65
84
|
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
66
85
|
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
67
86
|
readonly cohort: string;
|
|
@@ -77,6 +96,19 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
|
77
96
|
readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
|
|
78
97
|
/** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
|
|
79
98
|
readonly patch_fallback?: boolean;
|
|
99
|
+
/** A kept `UNCHANGED` row: what it changed, which the server sets. */
|
|
100
|
+
readonly change?: BundleEventChange;
|
|
101
|
+
/**
|
|
102
|
+
* A download or apply that arrived after its installation already ran its
|
|
103
|
+
* target, as when a reload cut the first runtime's report short: the
|
|
104
|
+
* server keeps it in history, but it moves and counts nothing.
|
|
105
|
+
*/
|
|
106
|
+
readonly late?: true;
|
|
107
|
+
/**
|
|
108
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
109
|
+
* server counted that download with it.
|
|
110
|
+
*/
|
|
111
|
+
readonly implied_download?: true;
|
|
80
112
|
};
|
|
81
113
|
type BundleEventRowBase = {
|
|
82
114
|
readonly id: string;
|
|
@@ -119,13 +151,14 @@ interface InsightsScope {
|
|
|
119
151
|
}
|
|
120
152
|
/**
|
|
121
153
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
122
|
-
* UNCHANGED
|
|
154
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
155
|
+
* bundle without an apply report.
|
|
123
156
|
*/
|
|
124
157
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
125
158
|
readonly type: "RECOVERED";
|
|
126
159
|
readonly fromBundleId: string;
|
|
127
160
|
} | {
|
|
128
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
161
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
129
162
|
readonly toBundleId: string;
|
|
130
163
|
});
|
|
131
164
|
type InsightsEventFilter = {
|
package/dist/index.d.mts
CHANGED
|
@@ -62,6 +62,25 @@ type DatabaseHttpResponse = DatabaseJsonObject & {
|
|
|
62
62
|
readonly body_truncated: boolean;
|
|
63
63
|
readonly received_at_ms: number;
|
|
64
64
|
};
|
|
65
|
+
/** What a kept UNCHANGED row changed against its installation's head. */
|
|
66
|
+
type BundleEventChangeKind = "first_seen" | "bundle" | "release" | "app_version" | "channel" | "native_build";
|
|
67
|
+
/**
|
|
68
|
+
* An UNCHANGED report the server keeps: what it changed against its
|
|
69
|
+
* installation's head, and the running values the head held before it. A
|
|
70
|
+
* report from an installation without a head is `first_seen` alone, with no
|
|
71
|
+
* previous values: the installation is new to this server, not necessarily
|
|
72
|
+
* to its device.
|
|
73
|
+
*/
|
|
74
|
+
type BundleEventChange = DatabaseJsonObject & {
|
|
75
|
+
readonly kinds: BundleEventChangeKind[];
|
|
76
|
+
readonly previous: (DatabaseJsonObject & {
|
|
77
|
+
readonly bundle_id: string;
|
|
78
|
+
readonly release_id: string | null;
|
|
79
|
+
readonly app_version: string;
|
|
80
|
+
readonly channel: string;
|
|
81
|
+
readonly min_bundle_id?: string;
|
|
82
|
+
}) | null;
|
|
83
|
+
};
|
|
65
84
|
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
66
85
|
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
67
86
|
readonly cohort: string;
|
|
@@ -77,6 +96,19 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
|
77
96
|
readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
|
|
78
97
|
/** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
|
|
79
98
|
readonly patch_fallback?: boolean;
|
|
99
|
+
/** A kept `UNCHANGED` row: what it changed, which the server sets. */
|
|
100
|
+
readonly change?: BundleEventChange;
|
|
101
|
+
/**
|
|
102
|
+
* A download or apply that arrived after its installation already ran its
|
|
103
|
+
* target, as when a reload cut the first runtime's report short: the
|
|
104
|
+
* server keeps it in history, but it moves and counts nothing.
|
|
105
|
+
*/
|
|
106
|
+
readonly late?: true;
|
|
107
|
+
/**
|
|
108
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
109
|
+
* server counted that download with it.
|
|
110
|
+
*/
|
|
111
|
+
readonly implied_download?: true;
|
|
80
112
|
};
|
|
81
113
|
type BundleEventRowBase = {
|
|
82
114
|
readonly id: string;
|
|
@@ -119,13 +151,14 @@ interface InsightsScope {
|
|
|
119
151
|
}
|
|
120
152
|
/**
|
|
121
153
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
122
|
-
* UNCHANGED
|
|
154
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
155
|
+
* bundle without an apply report.
|
|
123
156
|
*/
|
|
124
157
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
125
158
|
readonly type: "RECOVERED";
|
|
126
159
|
readonly fromBundleId: string;
|
|
127
160
|
} | {
|
|
128
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
161
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
129
162
|
readonly toBundleId: string;
|
|
130
163
|
});
|
|
131
164
|
type InsightsEventFilter = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.37",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"hono": "4.12.34",
|
|
40
|
-
"@hot-updater/cli-tools": "1.0.0-rc.
|
|
41
|
-
"@hot-updater/protocol": "1.0.0-rc.
|
|
42
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
43
|
-
"@hot-updater/server": "1.0.0-rc.
|
|
40
|
+
"@hot-updater/cli-tools": "1.0.0-rc.37",
|
|
41
|
+
"@hot-updater/protocol": "1.0.0-rc.37",
|
|
42
|
+
"@hot-updater/plugin-core": "1.0.0-rc.37",
|
|
43
|
+
"@hot-updater/server": "1.0.0-rc.37"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"firebase-tools": "15.29.0",
|
|
56
56
|
"fkill": "^9.0.0",
|
|
57
57
|
"mime": "^4.0.4",
|
|
58
|
-
"@hot-updater/mock": "1.0.0-rc.
|
|
59
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
58
|
+
"@hot-updater/mock": "1.0.0-rc.37",
|
|
59
|
+
"@hot-updater/test-utils": "1.0.0-rc.37"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"firebase-admin": "*",
|