ahqstore-types 3.17.0 ā 3.17.2
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/ahqstore_types.d.ts +20 -14
- package/ahqstore_types_bg.js +45 -31
- package/ahqstore_types_bg.wasm +0 -0
- package/package.json +1 -1
package/ahqstore_types.d.ts
CHANGED
|
@@ -30,16 +30,21 @@ export enum InstallerFormat {
|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
WindowsUWPMsix = 3,
|
|
33
|
+
/**
|
|
34
|
+
* š¬ Planned in AHQ Store NEO
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
WindowsAHQDB = 4,
|
|
33
38
|
/**
|
|
34
39
|
* šÆ Stable as of v2
|
|
35
40
|
*
|
|
36
41
|
*/
|
|
37
|
-
LinuxAppImage =
|
|
42
|
+
LinuxAppImage = 5,
|
|
38
43
|
/**
|
|
39
44
|
* š¬ Planned in AHQ Store NEO
|
|
40
45
|
*
|
|
41
46
|
*/
|
|
42
|
-
AndroidApkZip =
|
|
47
|
+
AndroidApkZip = 6,
|
|
43
48
|
}
|
|
44
49
|
export enum WindowsInstallScope {
|
|
45
50
|
User = 0,
|
|
@@ -47,24 +52,19 @@ export enum WindowsInstallScope {
|
|
|
47
52
|
}
|
|
48
53
|
export type MapData = string[];
|
|
49
54
|
|
|
50
|
-
export type
|
|
55
|
+
export type Str = string;
|
|
51
56
|
|
|
52
|
-
export type
|
|
57
|
+
export type AppData = [string, string];
|
|
53
58
|
|
|
54
|
-
export type
|
|
59
|
+
export type UpdateStatusReport = "Disabled" | "UpToDate" | "Checking" | "Updating";
|
|
55
60
|
|
|
56
|
-
export type
|
|
61
|
+
export type AppId = string;
|
|
57
62
|
|
|
58
|
-
export type
|
|
63
|
+
export type RefId = number;
|
|
59
64
|
|
|
60
65
|
export type Success = boolean;
|
|
61
66
|
|
|
62
|
-
export type
|
|
63
|
-
|
|
64
|
-
export interface Commits {
|
|
65
|
-
ahqstore: string;
|
|
66
|
-
alt: string;
|
|
67
|
-
}
|
|
67
|
+
export type AppStatus = "Pending" | "Downloading" | "AVScanning" | "Installing" | "Uninstalling" | "InstallSuccessful" | "UninstallSuccessful" | "NotSuccessful" | "AVFlagged";
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
*Use the official ahqstore (<https://crates.io/crates/ahqstore_cli_rs>) cli\nšÆ Introduced in v1, Revamped in v2
|
|
@@ -138,6 +138,11 @@ export interface AHQStoreApplication {
|
|
|
138
138
|
verified: boolean;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
export interface Commits {
|
|
142
|
+
ahqstore: string;
|
|
143
|
+
alt: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
141
146
|
export class AppRepo {
|
|
142
147
|
private constructor();
|
|
143
148
|
free(): void;
|
|
@@ -154,7 +159,8 @@ export class DevData {
|
|
|
154
159
|
set name(value: string | null | undefined);
|
|
155
160
|
id: string;
|
|
156
161
|
github: string;
|
|
157
|
-
avatar_url: string;
|
|
162
|
+
get avatar_url(): string | undefined;
|
|
163
|
+
set avatar_url(value: string | null | undefined);
|
|
158
164
|
verified: boolean;
|
|
159
165
|
}
|
|
160
166
|
export class DownloadUrl {
|
package/ahqstore_types_bg.js
CHANGED
|
@@ -82,7 +82,7 @@ function getUint8ArrayMemory0() {
|
|
|
82
82
|
|
|
83
83
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
const cachedTextEncoder = new lTextEncoder('utf-8');
|
|
86
86
|
|
|
87
87
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
88
88
|
? function (arg, view) {
|
|
@@ -155,15 +155,21 @@ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
155
155
|
|
|
156
156
|
cachedTextDecoder.decode();
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
159
|
+
let numBytesDecoded = 0;
|
|
160
|
+
function decodeText(ptr, len) {
|
|
161
|
+
numBytesDecoded += len;
|
|
162
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
163
|
+
cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
164
|
+
cachedTextDecoder.decode();
|
|
165
|
+
numBytesDecoded = len;
|
|
166
|
+
}
|
|
160
167
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
161
168
|
}
|
|
162
169
|
|
|
163
|
-
function
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
170
|
+
function getStringFromWasm0(ptr, len) {
|
|
171
|
+
ptr = ptr >>> 0;
|
|
172
|
+
return decodeText(ptr, len);
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
@@ -193,6 +199,12 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
193
199
|
return ptr;
|
|
194
200
|
}
|
|
195
201
|
|
|
202
|
+
function _assertClass(instance, klass) {
|
|
203
|
+
if (!(instance instanceof klass)) {
|
|
204
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
196
208
|
function getArrayU8FromWasm0(ptr, len) {
|
|
197
209
|
ptr = ptr >>> 0;
|
|
198
210
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -209,7 +221,7 @@ export const AndroidAbi = Object.freeze({
|
|
|
209
221
|
X64: 3, "3": "X64",
|
|
210
222
|
});
|
|
211
223
|
/**
|
|
212
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
224
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6}
|
|
213
225
|
*/
|
|
214
226
|
export const InstallerFormat = Object.freeze({
|
|
215
227
|
/**
|
|
@@ -231,16 +243,21 @@ export const InstallerFormat = Object.freeze({
|
|
|
231
243
|
*
|
|
232
244
|
*/
|
|
233
245
|
WindowsUWPMsix: 3, "3": "WindowsUWPMsix",
|
|
246
|
+
/**
|
|
247
|
+
* š¬ Planned in AHQ Store NEO
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
WindowsAHQDB: 4, "4": "WindowsAHQDB",
|
|
234
251
|
/**
|
|
235
252
|
* šÆ Stable as of v2
|
|
236
253
|
*
|
|
237
254
|
*/
|
|
238
|
-
LinuxAppImage:
|
|
255
|
+
LinuxAppImage: 5, "5": "LinuxAppImage",
|
|
239
256
|
/**
|
|
240
257
|
* š¬ Planned in AHQ Store NEO
|
|
241
258
|
*
|
|
242
259
|
*/
|
|
243
|
-
AndroidApkZip:
|
|
260
|
+
AndroidApkZip: 6, "6": "AndroidApkZip",
|
|
244
261
|
});
|
|
245
262
|
/**
|
|
246
263
|
* @enum {0 | 1}
|
|
@@ -401,26 +418,23 @@ export class DevData {
|
|
|
401
418
|
wasm.__wbg_set_devdata_github(this.__wbg_ptr, ptr0, len0);
|
|
402
419
|
}
|
|
403
420
|
/**
|
|
404
|
-
* @returns {string}
|
|
421
|
+
* @returns {string | undefined}
|
|
405
422
|
*/
|
|
406
423
|
get avatar_url() {
|
|
407
|
-
|
|
408
|
-
let
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
deferred1_1 = ret[1];
|
|
413
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
414
|
-
} finally {
|
|
415
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
424
|
+
const ret = wasm.__wbg_get_devdata_avatar_url(this.__wbg_ptr);
|
|
425
|
+
let v1;
|
|
426
|
+
if (ret[0] !== 0) {
|
|
427
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
428
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
416
429
|
}
|
|
430
|
+
return v1;
|
|
417
431
|
}
|
|
418
432
|
/**
|
|
419
|
-
* @param {string} arg0
|
|
433
|
+
* @param {string | null} [arg0]
|
|
420
434
|
*/
|
|
421
435
|
set avatar_url(arg0) {
|
|
422
|
-
|
|
423
|
-
|
|
436
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
437
|
+
var len0 = WASM_VECTOR_LEN;
|
|
424
438
|
wasm.__wbg_set_devdata_avatar_url(this.__wbg_ptr, ptr0, len0);
|
|
425
439
|
}
|
|
426
440
|
/**
|
|
@@ -652,7 +666,7 @@ export class Hero {
|
|
|
652
666
|
set button(arg0) {
|
|
653
667
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
654
668
|
const len0 = WASM_VECTOR_LEN;
|
|
655
|
-
wasm.
|
|
669
|
+
wasm.__wbg_set_hero_button(this.__wbg_ptr, ptr0, len0);
|
|
656
670
|
}
|
|
657
671
|
/**
|
|
658
672
|
* @returns {string}
|
|
@@ -1426,7 +1440,7 @@ export class SearchEntry {
|
|
|
1426
1440
|
set id(arg0) {
|
|
1427
1441
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1428
1442
|
const len0 = WASM_VECTOR_LEN;
|
|
1429
|
-
wasm.
|
|
1443
|
+
wasm.__wbg_set_hero_button(this.__wbg_ptr, ptr0, len0);
|
|
1430
1444
|
}
|
|
1431
1445
|
}
|
|
1432
1446
|
|
|
@@ -1522,7 +1536,7 @@ export class Semi {
|
|
|
1522
1536
|
set appId(arg0) {
|
|
1523
1537
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1524
1538
|
const len0 = WASM_VECTOR_LEN;
|
|
1525
|
-
wasm.
|
|
1539
|
+
wasm.__wbg_set_hero_button(this.__wbg_ptr, ptr0, len0);
|
|
1526
1540
|
}
|
|
1527
1541
|
/**
|
|
1528
1542
|
* @returns {string | undefined}
|
|
@@ -1542,7 +1556,7 @@ export class Semi {
|
|
|
1542
1556
|
set color(arg0) {
|
|
1543
1557
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1544
1558
|
var len0 = WASM_VECTOR_LEN;
|
|
1545
|
-
wasm.
|
|
1559
|
+
wasm.__wbg_set_devdata_avatar_url(this.__wbg_ptr, ptr0, len0);
|
|
1546
1560
|
}
|
|
1547
1561
|
}
|
|
1548
1562
|
|
|
@@ -1725,7 +1739,7 @@ export class SubHero {
|
|
|
1725
1739
|
set appId(arg0) {
|
|
1726
1740
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1727
1741
|
const len0 = WASM_VECTOR_LEN;
|
|
1728
|
-
wasm.
|
|
1742
|
+
wasm.__wbg_set_hero_button(this.__wbg_ptr, ptr0, len0);
|
|
1729
1743
|
}
|
|
1730
1744
|
/**
|
|
1731
1745
|
* @returns {string | undefined}
|
|
@@ -1745,16 +1759,16 @@ export class SubHero {
|
|
|
1745
1759
|
set color(arg0) {
|
|
1746
1760
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1747
1761
|
var len0 = WASM_VECTOR_LEN;
|
|
1748
|
-
wasm.
|
|
1762
|
+
wasm.__wbg_set_devdata_avatar_url(this.__wbg_ptr, ptr0, len0);
|
|
1749
1763
|
}
|
|
1750
1764
|
}
|
|
1751
1765
|
|
|
1752
|
-
export function
|
|
1766
|
+
export function __wbg_new_58353953ad2097cc() {
|
|
1753
1767
|
const ret = new Array();
|
|
1754
1768
|
return ret;
|
|
1755
1769
|
};
|
|
1756
1770
|
|
|
1757
|
-
export function
|
|
1771
|
+
export function __wbg_set_7422acbe992d64ab(arg0, arg1, arg2) {
|
|
1758
1772
|
arg0[arg1 >>> 0] = arg2;
|
|
1759
1773
|
};
|
|
1760
1774
|
|
package/ahqstore_types_bg.wasm
CHANGED
|
Binary file
|