@todesktop/shared 7.188.12 → 7.188.14
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/lib/desktopify.d.ts +12 -1
- package/package.json +1 -1
- package/src/desktopify.ts +14 -1
package/lib/desktopify.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export interface Build {
|
|
|
88
88
|
appNotarizaionBundleId: string;
|
|
89
89
|
appVersion?: SemanticVersion;
|
|
90
90
|
buildServerExecutionId?: number;
|
|
91
|
+
bundlePhobiaData?: Record<string, BundlePhobiaItem>;
|
|
91
92
|
ciRunner?: CIRunner;
|
|
92
93
|
cliConfigSchemaVersion: number;
|
|
93
94
|
continuousIntegrationServiceName?: string;
|
|
@@ -145,6 +146,12 @@ export interface Build {
|
|
|
145
146
|
};
|
|
146
147
|
windows?: PlatformBuild;
|
|
147
148
|
}
|
|
149
|
+
export declare type BundlePhobiaItem = {
|
|
150
|
+
description: string;
|
|
151
|
+
gzip: string;
|
|
152
|
+
name: string;
|
|
153
|
+
size: number;
|
|
154
|
+
};
|
|
148
155
|
export declare type ComputedBuildProperties = Pick<Build, 'desktopifyVersion' | 'electronVersionUsed' | 'endedAt' | 'errorMessage' | 'releasedAt' | 'standardUniversalDownloadUrl' | 'startedAt' | 'status' | 'universalDownloadUrl'>;
|
|
149
156
|
export declare enum ManifestCategory {
|
|
150
157
|
primary = "primary",
|
|
@@ -172,14 +179,18 @@ export interface WindowsCustomManifest extends CustomManifest {
|
|
|
172
179
|
artifacts: Record<WindowsArtifactName, Record<WindowsArch, CustomManifestArtifactDetails | null> | null>;
|
|
173
180
|
}
|
|
174
181
|
export interface SmokeTestProgress {
|
|
182
|
+
abState?: SmokeTestState;
|
|
175
183
|
appLaunched?: boolean;
|
|
176
184
|
appUpdated?: boolean;
|
|
185
|
+
bcState?: SmokeTestState;
|
|
186
|
+
code?: string;
|
|
177
187
|
message?: string;
|
|
178
188
|
progress: number;
|
|
179
189
|
screenshot?: string;
|
|
180
|
-
state:
|
|
190
|
+
state: SmokeTestState;
|
|
181
191
|
updatedAppHasNoMainErrors?: boolean;
|
|
182
192
|
}
|
|
193
|
+
export declare type SmokeTestState = 'progress' | 'done' | 'error' | 'skipped';
|
|
183
194
|
export declare const hasBuildKickedOff: (build: Build) => boolean;
|
|
184
195
|
export declare const isPlatformBuildRunning: (platformBuild: PlatformBuild) => boolean;
|
|
185
196
|
export declare const isCiBuildRunning: (build: Build) => boolean;
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -124,6 +124,7 @@ export interface Build {
|
|
|
124
124
|
appNotarizaionBundleId: string;
|
|
125
125
|
appVersion?: SemanticVersion;
|
|
126
126
|
buildServerExecutionId?: number;
|
|
127
|
+
bundlePhobiaData?: Record<string, BundlePhobiaItem>;
|
|
127
128
|
ciRunner?: CIRunner;
|
|
128
129
|
cliConfigSchemaVersion: number;
|
|
129
130
|
continuousIntegrationServiceName?: string;
|
|
@@ -191,6 +192,13 @@ export interface Build {
|
|
|
191
192
|
windows?: PlatformBuild;
|
|
192
193
|
}
|
|
193
194
|
|
|
195
|
+
export type BundlePhobiaItem = {
|
|
196
|
+
description: string;
|
|
197
|
+
gzip: string;
|
|
198
|
+
name: string;
|
|
199
|
+
size: number;
|
|
200
|
+
};
|
|
201
|
+
|
|
194
202
|
export type ComputedBuildProperties = Pick<
|
|
195
203
|
Build,
|
|
196
204
|
| 'desktopifyVersion'
|
|
@@ -248,15 +256,20 @@ export interface WindowsCustomManifest extends CustomManifest {
|
|
|
248
256
|
}
|
|
249
257
|
|
|
250
258
|
export interface SmokeTestProgress {
|
|
259
|
+
abState?: SmokeTestState;
|
|
251
260
|
appLaunched?: boolean;
|
|
252
261
|
appUpdated?: boolean;
|
|
262
|
+
bcState?: SmokeTestState;
|
|
263
|
+
code?: string; // string currently, since it's still a subject to change
|
|
253
264
|
message?: string;
|
|
254
265
|
progress: number;
|
|
255
266
|
screenshot?: string;
|
|
256
|
-
state:
|
|
267
|
+
state: SmokeTestState;
|
|
257
268
|
updatedAppHasNoMainErrors?: boolean;
|
|
258
269
|
}
|
|
259
270
|
|
|
271
|
+
export type SmokeTestState = 'progress' | 'done' | 'error' | 'skipped';
|
|
272
|
+
|
|
260
273
|
export const hasBuildKickedOff = (build: Build): boolean => {
|
|
261
274
|
if (!build) {
|
|
262
275
|
return false;
|