ahqstore-types 3.18.2 ā 3.19.0
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/LICENSE.md +21 -0
- package/README.md +6 -6
- package/package.json +16 -24
- package/ahqstore_types.d.ts +0 -428
- package/ahqstore_types.js +0 -5
- package/ahqstore_types_bg.js +0 -1799
- package/ahqstore_types_bg.wasm +0 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 AHQ Softwares
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# AHQ Store Types
|
|
2
|
-
|
|
3
|
-
This is an internal crate and does not follow **SemVer** and any release is likely
|
|
4
|
-
to break.
|
|
5
|
-
|
|
6
|
-
> For internal use only
|
|
1
|
+
# AHQ Store Types
|
|
2
|
+
|
|
3
|
+
This is an internal crate and does not follow **SemVer** and any release is likely
|
|
4
|
+
to break.
|
|
5
|
+
|
|
6
|
+
> For internal use only
|
package/package.json
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ahqstore-types",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"description": "Standard types used by AHQ Store",
|
|
5
|
-
"version": "3.
|
|
6
|
-
"license": "
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/ahqstore/client"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"main": "ahqstore_types.js",
|
|
18
|
-
"homepage": "https://ahqstore.github.io/",
|
|
19
|
-
"types": "ahqstore_types.d.ts",
|
|
20
|
-
"sideEffects": [
|
|
21
|
-
"./ahqstore_types.js",
|
|
22
|
-
"./snippets/*"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ahqstore-types",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"description": "Standard types used by AHQ Store",
|
|
5
|
+
"version": "3.19.0",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/ahqstore/client"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"ahqstore_types.d.ts"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://ahqstore.github.io/",
|
|
15
|
+
"types": "ahqstore_types.d.ts"
|
|
16
|
+
}
|
package/ahqstore_types.d.ts
DELETED
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export type MapData = string[];
|
|
4
|
-
|
|
5
|
-
export type AppId = string;
|
|
6
|
-
|
|
7
|
-
export type AppData = [string, string];
|
|
8
|
-
|
|
9
|
-
export type RefId = number;
|
|
10
|
-
|
|
11
|
-
export type Success = boolean;
|
|
12
|
-
|
|
13
|
-
export type Str = string;
|
|
14
|
-
|
|
15
|
-
export type AppStatus = "Pending" | "Downloading" | "AVScanning" | "Installing" | "Uninstalling" | "InstallSuccessful" | "UninstallSuccessful" | "NotSuccessful" | "AVFlagged";
|
|
16
|
-
|
|
17
|
-
export type UpdateStatusReport = "Disabled" | "UpToDate" | "Checking" | "Updating";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*Use the official ahqstore (<https://crates.io/crates/ahqstore_cli_rs>) cli\nšÆ Introduced in v1, Revamped in v2
|
|
21
|
-
*/
|
|
22
|
-
export interface AHQStoreApplication {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the application
|
|
25
|
-
*/
|
|
26
|
-
appId: string;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the shortcut of the app
|
|
29
|
-
*/
|
|
30
|
-
appShortcutName: string;
|
|
31
|
-
/**
|
|
32
|
-
* The name that\'ll be displayed in the app
|
|
33
|
-
*/
|
|
34
|
-
appDisplayName: string;
|
|
35
|
-
/**
|
|
36
|
-
* Unique ID of the author
|
|
37
|
-
*/
|
|
38
|
-
authorId: string;
|
|
39
|
-
/**
|
|
40
|
-
* The TagName of the release, MUST NOT BE LATEST
|
|
41
|
-
*/
|
|
42
|
-
releaseTagName: string;
|
|
43
|
-
/**
|
|
44
|
-
* Download URLs that the app will address
|
|
45
|
-
*/
|
|
46
|
-
downloadUrls: Record<number, DownloadUrl>;
|
|
47
|
-
/**
|
|
48
|
-
* Install options
|
|
49
|
-
*/
|
|
50
|
-
install: InstallerOptions;
|
|
51
|
-
/**
|
|
52
|
-
* App display images referencing /resources, let the cli do it
|
|
53
|
-
*/
|
|
54
|
-
displayImages: number[];
|
|
55
|
-
/**
|
|
56
|
-
* App description
|
|
57
|
-
*/
|
|
58
|
-
description: string;
|
|
59
|
-
/**
|
|
60
|
-
* The Github Repo associated
|
|
61
|
-
*/
|
|
62
|
-
repo: AppRepo;
|
|
63
|
-
/**
|
|
64
|
-
* A version provided by the user, like AHQ Store CLI
|
|
65
|
-
*/
|
|
66
|
-
usrVersion: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Will be automatically overriden
|
|
69
|
-
*/
|
|
70
|
-
version: number;
|
|
71
|
-
/**
|
|
72
|
-
* The Site to your app
|
|
73
|
-
*/
|
|
74
|
-
site: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* This\'ll be ignored unless you\'re ahq_verified tag which no one except AHQ Store Team has
|
|
77
|
-
*
|
|
78
|
-
* The general dev isn\'t meant to redistribute others\' apps unless they own right to do so
|
|
79
|
-
*/
|
|
80
|
-
source: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* License type or Terms of Service Page
|
|
83
|
-
*/
|
|
84
|
-
license_or_tos: string | null;
|
|
85
|
-
/**
|
|
86
|
-
* These Resources will be passed to the installer, the size of all the `Vec<u8>` must not be more than 5 * 1024 * 1024 bytes (~5MiB)
|
|
87
|
-
*/
|
|
88
|
-
resources: Record<number, number[]> | null;
|
|
89
|
-
/**
|
|
90
|
-
* This is set to true when the app is verified by the AHQ Store Team
|
|
91
|
-
*/
|
|
92
|
-
verified: boolean;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface Commits {
|
|
96
|
-
ahqstore: string;
|
|
97
|
-
alt: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* š¬ Under Development
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
export enum AndroidAbi {
|
|
106
|
-
Aarch64 = 0,
|
|
107
|
-
Armv7 = 1,
|
|
108
|
-
X86 = 2,
|
|
109
|
-
X64 = 3,
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export class AppRepo {
|
|
113
|
-
private constructor();
|
|
114
|
-
free(): void;
|
|
115
|
-
[Symbol.dispose](): void;
|
|
116
|
-
/**
|
|
117
|
-
* author must be your GitHub username or username of an org where you're a "visible" member
|
|
118
|
-
*/
|
|
119
|
-
author: string;
|
|
120
|
-
repo: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export class DevData {
|
|
124
|
-
private constructor();
|
|
125
|
-
free(): void;
|
|
126
|
-
[Symbol.dispose](): void;
|
|
127
|
-
get name(): string | undefined;
|
|
128
|
-
set name(value: string | null | undefined);
|
|
129
|
-
id: string;
|
|
130
|
-
github: string;
|
|
131
|
-
get avatar_url(): string | undefined;
|
|
132
|
-
set avatar_url(value: string | null | undefined);
|
|
133
|
-
verified: boolean;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export class DownloadUrl {
|
|
137
|
-
private constructor();
|
|
138
|
-
free(): void;
|
|
139
|
-
[Symbol.dispose](): void;
|
|
140
|
-
installerType: InstallerFormat;
|
|
141
|
-
asset: string;
|
|
142
|
-
/**
|
|
143
|
-
* This will be based on asset and releaseId
|
|
144
|
-
*/
|
|
145
|
-
url: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export class GHRepoCommit {
|
|
149
|
-
private constructor();
|
|
150
|
-
free(): void;
|
|
151
|
-
[Symbol.dispose](): void;
|
|
152
|
-
sha: string;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export class Hero {
|
|
156
|
-
private constructor();
|
|
157
|
-
free(): void;
|
|
158
|
-
[Symbol.dispose](): void;
|
|
159
|
-
title: string;
|
|
160
|
-
description: string;
|
|
161
|
-
button: string;
|
|
162
|
-
background: string;
|
|
163
|
-
author: string;
|
|
164
|
-
appId: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export class Home {
|
|
168
|
-
private constructor();
|
|
169
|
-
free(): void;
|
|
170
|
-
[Symbol.dispose](): void;
|
|
171
|
-
get splash(): Splash | undefined;
|
|
172
|
-
set splash(value: Splash | null | undefined);
|
|
173
|
-
home: HomeMapData;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export class HomeMapData {
|
|
177
|
-
free(): void;
|
|
178
|
-
[Symbol.dispose](): void;
|
|
179
|
-
constructor();
|
|
180
|
-
readonly inner: any;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export enum InstallerFormat {
|
|
184
|
-
/**
|
|
185
|
-
* šÆ Stable as of v1
|
|
186
|
-
*/
|
|
187
|
-
WindowsZip = 0,
|
|
188
|
-
/**
|
|
189
|
-
* šÆ Stable as of v2
|
|
190
|
-
*
|
|
191
|
-
*/
|
|
192
|
-
WindowsInstallerMsi = 1,
|
|
193
|
-
/**
|
|
194
|
-
* šÆ Stable after v2
|
|
195
|
-
*
|
|
196
|
-
*/
|
|
197
|
-
WindowsInstallerExe = 2,
|
|
198
|
-
/**
|
|
199
|
-
* š¬ Planned in AHQ Store NEO
|
|
200
|
-
*
|
|
201
|
-
*/
|
|
202
|
-
WindowsUWPMsix = 3,
|
|
203
|
-
/**
|
|
204
|
-
* š¬ Planned in AHQ Store NEO
|
|
205
|
-
*
|
|
206
|
-
*/
|
|
207
|
-
WindowsAHQDB = 4,
|
|
208
|
-
/**
|
|
209
|
-
* šÆ Stable as of v2
|
|
210
|
-
*
|
|
211
|
-
*/
|
|
212
|
-
LinuxAppImage = 5,
|
|
213
|
-
/**
|
|
214
|
-
* š¬ Planned in AHQ Store NEO
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
AndroidApkZip = 6,
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export class InstallerOptions {
|
|
221
|
-
private constructor();
|
|
222
|
-
free(): void;
|
|
223
|
-
[Symbol.dispose](): void;
|
|
224
|
-
/**
|
|
225
|
-
* šÆ Introduced in v1
|
|
226
|
-
*
|
|
227
|
-
*/
|
|
228
|
-
get win32(): InstallerOptionsWindows | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* šÆ Introduced in v1
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
set win32(value: InstallerOptionsWindows | null | undefined);
|
|
234
|
-
/**
|
|
235
|
-
* šÆ Introduced in v2
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
238
|
-
get winarm(): InstallerOptionsWindows | undefined;
|
|
239
|
-
/**
|
|
240
|
-
* šÆ Introduced in v2
|
|
241
|
-
*
|
|
242
|
-
*/
|
|
243
|
-
set winarm(value: InstallerOptionsWindows | null | undefined);
|
|
244
|
-
/**
|
|
245
|
-
* šÆ Introduced in v1
|
|
246
|
-
*
|
|
247
|
-
*/
|
|
248
|
-
get linux(): InstallerOptionsLinux | undefined;
|
|
249
|
-
/**
|
|
250
|
-
* šÆ Introduced in v1
|
|
251
|
-
*
|
|
252
|
-
*/
|
|
253
|
-
set linux(value: InstallerOptionsLinux | null | undefined);
|
|
254
|
-
/**
|
|
255
|
-
* šÆ Introduced in v2
|
|
256
|
-
*
|
|
257
|
-
*/
|
|
258
|
-
get linuxArm64(): InstallerOptionsLinux | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* šÆ Introduced in v2
|
|
261
|
-
*
|
|
262
|
-
*/
|
|
263
|
-
set linuxArm64(value: InstallerOptionsLinux | null | undefined);
|
|
264
|
-
/**
|
|
265
|
-
* šÆ Introduced in v2
|
|
266
|
-
*
|
|
267
|
-
*/
|
|
268
|
-
get linuxArm7(): InstallerOptionsLinux | undefined;
|
|
269
|
-
/**
|
|
270
|
-
* šÆ Introduced in v2
|
|
271
|
-
*
|
|
272
|
-
*/
|
|
273
|
-
set linuxArm7(value: InstallerOptionsLinux | null | undefined);
|
|
274
|
-
/**
|
|
275
|
-
* š¬ Planned
|
|
276
|
-
* šÆ Introduced in v2
|
|
277
|
-
*
|
|
278
|
-
*/
|
|
279
|
-
get android(): InstallerOptionsAndroid | undefined;
|
|
280
|
-
/**
|
|
281
|
-
* š¬ Planned
|
|
282
|
-
* šÆ Introduced in v2
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
285
|
-
set android(value: InstallerOptionsAndroid | null | undefined);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export class InstallerOptionsAndroid {
|
|
289
|
-
private constructor();
|
|
290
|
-
free(): void;
|
|
291
|
-
[Symbol.dispose](): void;
|
|
292
|
-
/**
|
|
293
|
-
* šÆ Introduced in v2
|
|
294
|
-
*
|
|
295
|
-
*/
|
|
296
|
-
assetId: number;
|
|
297
|
-
min_sdk: number;
|
|
298
|
-
abi: any[];
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export class InstallerOptionsLinux {
|
|
302
|
-
private constructor();
|
|
303
|
-
free(): void;
|
|
304
|
-
[Symbol.dispose](): void;
|
|
305
|
-
/**
|
|
306
|
-
* šÆ Introduced in v2
|
|
307
|
-
*
|
|
308
|
-
*/
|
|
309
|
-
assetId: number;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export class InstallerOptionsWindows {
|
|
313
|
-
private constructor();
|
|
314
|
-
free(): void;
|
|
315
|
-
[Symbol.dispose](): void;
|
|
316
|
-
/**
|
|
317
|
-
* šÆ Introduced in v2
|
|
318
|
-
*
|
|
319
|
-
*/
|
|
320
|
-
assetId: number;
|
|
321
|
-
/**
|
|
322
|
-
* The exe to link as a shortcut[^1]
|
|
323
|
-
*
|
|
324
|
-
* [^1]: Only if you choose WindowsZip
|
|
325
|
-
*/
|
|
326
|
-
get exec(): string | undefined;
|
|
327
|
-
/**
|
|
328
|
-
* The exe to link as a shortcut[^1]
|
|
329
|
-
*
|
|
330
|
-
* [^1]: Only if you choose WindowsZip
|
|
331
|
-
*/
|
|
332
|
-
set exec(value: string | null | undefined);
|
|
333
|
-
/**
|
|
334
|
-
* šÆ Introduced in v1
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* The scope of the installer[^1]
|
|
338
|
-
*
|
|
339
|
-
* [^1]: Applicable for WindowsInstallerExe or WindowsZip only, WindowsInstallerMsi is treated as Machine
|
|
340
|
-
*/
|
|
341
|
-
get scope(): WindowsInstallScope | undefined;
|
|
342
|
-
/**
|
|
343
|
-
* šÆ Introduced in v1
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
* The scope of the installer[^1]
|
|
347
|
-
*
|
|
348
|
-
* [^1]: Applicable for WindowsInstallerExe or WindowsZip only, WindowsInstallerMsi is treated as Machine
|
|
349
|
-
*/
|
|
350
|
-
set scope(value: WindowsInstallScope | null | undefined);
|
|
351
|
-
/**
|
|
352
|
-
* šÆ Stable as of v3
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* Args to pass to the custom exe installer[^1]
|
|
356
|
-
*
|
|
357
|
-
* [^1]: Only if you choose WindowsInstallerExe
|
|
358
|
-
*/
|
|
359
|
-
get installerArgs(): string[] | undefined;
|
|
360
|
-
/**
|
|
361
|
-
* šÆ Stable as of v3
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
* Args to pass to the custom exe installer[^1]
|
|
365
|
-
*
|
|
366
|
-
* [^1]: Only if you choose WindowsInstallerExe
|
|
367
|
-
*/
|
|
368
|
-
set installerArgs(value: string[] | null | undefined);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export class Prefs {
|
|
372
|
-
private constructor();
|
|
373
|
-
free(): void;
|
|
374
|
-
[Symbol.dispose](): void;
|
|
375
|
-
static get(path: string): Uint8Array | undefined;
|
|
376
|
-
static str_to(s: string): Prefs | undefined;
|
|
377
|
-
convert(): string | undefined;
|
|
378
|
-
static default(): Prefs;
|
|
379
|
-
launch_app: boolean;
|
|
380
|
-
install_apps: boolean;
|
|
381
|
-
auto_update_apps: boolean;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export class SearchEntry {
|
|
385
|
-
private constructor();
|
|
386
|
-
free(): void;
|
|
387
|
-
[Symbol.dispose](): void;
|
|
388
|
-
name: string;
|
|
389
|
-
title: string;
|
|
390
|
-
id: string;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export class Semi {
|
|
394
|
-
private constructor();
|
|
395
|
-
free(): void;
|
|
396
|
-
[Symbol.dispose](): void;
|
|
397
|
-
title: string;
|
|
398
|
-
background: string;
|
|
399
|
-
appId: string;
|
|
400
|
-
get color(): string | undefined;
|
|
401
|
-
set color(value: string | null | undefined);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export class Splash {
|
|
405
|
-
private constructor();
|
|
406
|
-
free(): void;
|
|
407
|
-
[Symbol.dispose](): void;
|
|
408
|
-
hero: Hero;
|
|
409
|
-
subhero: SubHero;
|
|
410
|
-
third: Semi;
|
|
411
|
-
fourth: Semi;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
export class SubHero {
|
|
415
|
-
private constructor();
|
|
416
|
-
free(): void;
|
|
417
|
-
[Symbol.dispose](): void;
|
|
418
|
-
title: string;
|
|
419
|
-
background: string;
|
|
420
|
-
appId: string;
|
|
421
|
-
get color(): string | undefined;
|
|
422
|
-
set color(value: string | null | undefined);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export enum WindowsInstallScope {
|
|
426
|
-
User = 0,
|
|
427
|
-
Machine = 1,
|
|
428
|
-
}
|