@hot-updater/aws 1.0.0-rc.36 → 1.0.0-rc.38
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 +36 -2
- package/dist/index.d.mts +36 -2
- package/dist/lambda/index.cjs +1625 -1441
- 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,20 @@ 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 of a target its installation already ran, as when
|
|
136
|
+
* a reload cut the first runtime's report short, or a download that
|
|
137
|
+
* repeats the pending one: the server keeps it in history, but it moves
|
|
138
|
+
* and counts nothing.
|
|
139
|
+
*/
|
|
140
|
+
readonly late?: true;
|
|
141
|
+
/**
|
|
142
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
143
|
+
* server counted that download with it.
|
|
144
|
+
*/
|
|
145
|
+
readonly implied_download?: true;
|
|
113
146
|
};
|
|
114
147
|
type BundleEventRowBase = {
|
|
115
148
|
readonly id: string;
|
|
@@ -152,13 +185,14 @@ interface InsightsScope {
|
|
|
152
185
|
}
|
|
153
186
|
/**
|
|
154
187
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
155
|
-
* UNCHANGED
|
|
188
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
189
|
+
* bundle without an apply report.
|
|
156
190
|
*/
|
|
157
191
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
158
192
|
readonly type: "RECOVERED";
|
|
159
193
|
readonly fromBundleId: string;
|
|
160
194
|
} | {
|
|
161
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
195
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
162
196
|
readonly toBundleId: string;
|
|
163
197
|
});
|
|
164
198
|
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,20 @@ 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 of a target its installation already ran, as when
|
|
136
|
+
* a reload cut the first runtime's report short, or a download that
|
|
137
|
+
* repeats the pending one: the server keeps it in history, but it moves
|
|
138
|
+
* and counts nothing.
|
|
139
|
+
*/
|
|
140
|
+
readonly late?: true;
|
|
141
|
+
/**
|
|
142
|
+
* A launch or crash of a bundle whose download report never arrived: the
|
|
143
|
+
* server counted that download with it.
|
|
144
|
+
*/
|
|
145
|
+
readonly implied_download?: true;
|
|
113
146
|
};
|
|
114
147
|
type BundleEventRowBase = {
|
|
115
148
|
readonly id: string;
|
|
@@ -152,13 +185,14 @@ interface InsightsScope {
|
|
|
152
185
|
}
|
|
153
186
|
/**
|
|
154
187
|
* Raw event predicates; recovery is attributed to the source bundle. An
|
|
155
|
-
* UNCHANGED
|
|
188
|
+
* UNCHANGED filter matches the kept rows that moved an installation to the
|
|
189
|
+
* bundle without an apply report.
|
|
156
190
|
*/
|
|
157
191
|
type InsightsBundleEventFilter = InsightsScope & ({
|
|
158
192
|
readonly type: "RECOVERED";
|
|
159
193
|
readonly fromBundleId: string;
|
|
160
194
|
} | {
|
|
161
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED";
|
|
195
|
+
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "UPDATE_FAILED" | "UNCHANGED";
|
|
162
196
|
readonly toBundleId: string;
|
|
163
197
|
});
|
|
164
198
|
type InsightsEventFilter = {
|