@hot-updater/aws 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/index.d.cts +35 -2
- package/dist/index.d.mts +35 -2
- package/dist/lambda/index.cjs +1621 -1443
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -95,6 +95,25 @@ type DatabaseHttpResponse = DatabaseJsonObject & {
|
|
|
95
95
|
readonly body_truncated: boolean;
|
|
96
96
|
readonly received_at_ms: number;
|
|
97
97
|
};
|
|
98
|
+
/** What a kept UNCHANGED row changed against its installation's head. */
|
|
99
|
+
type BundleEventChangeKind = "first_seen" | "bundle" | "release" | "app_version" | "channel" | "native_build";
|
|
100
|
+
/**
|
|
101
|
+
* An UNCHANGED report the server keeps: what it changed against its
|
|
102
|
+
* installation's head, and the running values the head held before it. A
|
|
103
|
+
* report from an installation without a head is `first_seen` alone, with no
|
|
104
|
+
* previous values: the installation is new to this server, not necessarily
|
|
105
|
+
* to its device.
|
|
106
|
+
*/
|
|
107
|
+
type BundleEventChange = DatabaseJsonObject & {
|
|
108
|
+
readonly kinds: BundleEventChangeKind[];
|
|
109
|
+
readonly previous: (DatabaseJsonObject & {
|
|
110
|
+
readonly bundle_id: string;
|
|
111
|
+
readonly release_id: string | null;
|
|
112
|
+
readonly app_version: string;
|
|
113
|
+
readonly channel: string;
|
|
114
|
+
readonly min_bundle_id?: string;
|
|
115
|
+
}) | null;
|
|
116
|
+
};
|
|
98
117
|
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
99
118
|
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
100
119
|
readonly cohort: string;
|
|
@@ -110,6 +129,19 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
|
110
129
|
readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
|
|
111
130
|
/** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
|
|
112
131
|
readonly patch_fallback?: boolean;
|
|
132
|
+
/** A kept `UNCHANGED` row: what it changed, which the server sets. */
|
|
133
|
+
readonly change?: BundleEventChange;
|
|
134
|
+
/**
|
|
135
|
+
* A download or apply that arrived after its installation already ran its
|
|
136
|
+
* target, as when a reload cut the first runtime's report short: the
|
|
137
|
+
* server keeps it in history, but it moves and counts nothing.
|
|
138
|
+
*/
|
|
139
|
+
readonly late?: true;
|
|
140
|
+
/**
|
|
141
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
142
|
+
* server counted that download with it.
|
|
143
|
+
*/
|
|
144
|
+
readonly implied_download?: true;
|
|
113
145
|
};
|
|
114
146
|
type BundleEventRowBase = {
|
|
115
147
|
readonly id: string;
|
|
@@ -152,13 +184,14 @@ interface InsightsScope {
|
|
|
152
184
|
}
|
|
153
185
|
/**
|
|
154
186
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
155
|
-
* UNCHANGED
|
|
187
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
188
|
+
* bundle without an apply report.
|
|
156
189
|
*/
|
|
157
190
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
158
191
|
readonly type: "RECOVERED";
|
|
159
192
|
readonly fromBundleId: string;
|
|
160
193
|
} | {
|
|
161
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
194
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
162
195
|
readonly toBundleId: string;
|
|
163
196
|
});
|
|
164
197
|
type InsightsEventFilter = {
|
package/dist/index.d.mts
CHANGED
|
@@ -95,6 +95,25 @@ type DatabaseHttpResponse = DatabaseJsonObject & {
|
|
|
95
95
|
readonly body_truncated: boolean;
|
|
96
96
|
readonly received_at_ms: number;
|
|
97
97
|
};
|
|
98
|
+
/** What a kept UNCHANGED row changed against its installation's head. */
|
|
99
|
+
type BundleEventChangeKind = "first_seen" | "bundle" | "release" | "app_version" | "channel" | "native_build";
|
|
100
|
+
/**
|
|
101
|
+
* An UNCHANGED report the server keeps: what it changed against its
|
|
102
|
+
* installation's head, and the running values the head held before it. A
|
|
103
|
+
* report from an installation without a head is `first_seen` alone, with no
|
|
104
|
+
* previous values: the installation is new to this server, not necessarily
|
|
105
|
+
* to its device.
|
|
106
|
+
*/
|
|
107
|
+
type BundleEventChange = DatabaseJsonObject & {
|
|
108
|
+
readonly kinds: BundleEventChangeKind[];
|
|
109
|
+
readonly previous: (DatabaseJsonObject & {
|
|
110
|
+
readonly bundle_id: string;
|
|
111
|
+
readonly release_id: string | null;
|
|
112
|
+
readonly app_version: string;
|
|
113
|
+
readonly channel: string;
|
|
114
|
+
readonly min_bundle_id?: string;
|
|
115
|
+
}) | null;
|
|
116
|
+
};
|
|
98
117
|
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
99
118
|
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
100
119
|
readonly cohort: string;
|
|
@@ -110,6 +129,19 @@ type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
|
110
129
|
readonly delivery?: "patch" | "manifest" | "archive" | "unknown";
|
|
111
130
|
/** `UPDATE_DOWNLOADED`: a patch failed and the full files came instead. */
|
|
112
131
|
readonly patch_fallback?: boolean;
|
|
132
|
+
/** A kept `UNCHANGED` row: what it changed, which the server sets. */
|
|
133
|
+
readonly change?: BundleEventChange;
|
|
134
|
+
/**
|
|
135
|
+
* A download or apply that arrived after its installation already ran its
|
|
136
|
+
* target, as when a reload cut the first runtime's report short: the
|
|
137
|
+
* server keeps it in history, but it moves and counts nothing.
|
|
138
|
+
*/
|
|
139
|
+
readonly late?: true;
|
|
140
|
+
/**
|
|
141
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
142
|
+
* server counted that download with it.
|
|
143
|
+
*/
|
|
144
|
+
readonly implied_download?: true;
|
|
113
145
|
};
|
|
114
146
|
type BundleEventRowBase = {
|
|
115
147
|
readonly id: string;
|
|
@@ -152,13 +184,14 @@ interface InsightsScope {
|
|
|
152
184
|
}
|
|
153
185
|
/**
|
|
154
186
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
155
|
-
* UNCHANGED
|
|
187
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
188
|
+
* bundle without an apply report.
|
|
156
189
|
*/
|
|
157
190
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
158
191
|
readonly type: "RECOVERED";
|
|
159
192
|
readonly fromBundleId: string;
|
|
160
193
|
} | {
|
|
161
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
194
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
162
195
|
readonly toBundleId: string;
|
|
163
196
|
});
|
|
164
197
|
type InsightsEventFilter = {
|