ahqstore-types 3.2.1 → 3.2.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.
@@ -44,9 +44,9 @@ export function get_app_asset(commit: string, app_id: string, asset: string): Pr
44
44
  /**
45
45
  * @param {string} commit
46
46
  * @param {string} app_id
47
- * @returns {Promise<any | undefined>}
47
+ * @returns {Promise<AHQStoreApplication | undefined>}
48
48
  */
49
- export function get_app(commit: string, app_id: string): Promise<any | undefined>;
49
+ export function get_app(commit: string, app_id: string): Promise<AHQStoreApplication | undefined>;
50
50
  /**
51
51
  */
52
52
  export enum InstallerFormat {
@@ -90,6 +90,61 @@ export enum InstallerFormat {
90
90
  */
91
91
  AndroidApkZip = 5,
92
92
  }
93
+ export type AppId = string;
94
+
95
+ export type Str = string;
96
+
97
+ export type AppData = [string, string];
98
+
99
+ export type RefId = number;
100
+
101
+ export type Package = "LeadLang" | "DevCamp";
102
+
103
+ export type Command = { GetSha: RefId } | { GetApp: [RefId, AppId] } | { InstallApp: [RefId, AppId] } | { UninstallApp: [RefId, AppId] } | { ListApps: RefId } | { GetLibrary: RefId } | { RunUpdate: RefId } | { UpdateStatus: RefId } | { GetPrefs: RefId } | { SetPrefs: [RefId, Prefs] } | { AddPkg: [RefId, Package] };
104
+
105
+ export type Reason = { UnknownData: RefId } | "Unauthenticated";
106
+
107
+ export type ErrorType = { GetAppFailed: [RefId, AppId] } | { AppPlatformNoSupport: [RefId, AppId] } | { AVBlockedApp: [RefId, AppId] } | { PrefsError: RefId } | { PkgError: RefId } | { GetSHAFailed: RefId };
108
+
109
+ export interface Library {
110
+ app_id: string;
111
+ status: AppStatus;
112
+ is_update: boolean;
113
+ to: ToDo;
114
+ progress: number;
115
+ max: number;
116
+ app: AHQStoreApplication | null;
117
+ }
118
+
119
+ export type ToDo = "Install" | "Uninstall";
120
+
121
+ export type AppStatus = "Pending" | "Downloading" | "AVScanning" | "Installing" | "Uninstalling" | "InstallSuccessful" | "UninstallSuccessful" | "NotSuccessful" | "AVFlagged";
122
+
123
+ export type UpdateStatusReport = "Disabled" | "UpToDate" | "Checking" | "Updating";
124
+
125
+ export type ResponseToSend = "Ready" | { Error: ErrorType } | { SHAId: [RefId, string] } | { Disconnect: Reason } | { AppData: [RefId, AppId, AHQStoreApplication] } | { AppDataUrl: [RefId, AppId, string] } | { ListApps: [RefId, AppData[]] } | { Library: [RefId, Library[]] } | { UpdateStatus: [RefId, UpdateStatusReport] } | { Acknowledged: RefId } | { Prefs: [RefId, Prefs] } | { PrefsSet: RefId } | { DownloadPkgProg: [RefId, [number, number]] } | { InstallPkg: RefId } | { InstalledPkg: RefId } | { TerminateBlock: RefId };
126
+
127
+ export type MapData = Record<string, string>;
128
+
129
+ export interface AHQStoreApplication {
130
+ appId: string;
131
+ appShortcutName: string;
132
+ appDisplayName: string;
133
+ authorId: string;
134
+ releaseTagName: string;
135
+ downloadUrls: Record<number, DownloadUrl>;
136
+ install: InstallerOptions;
137
+ displayImages: number[];
138
+ description: string;
139
+ repo: AppRepo;
140
+ version: string;
141
+ site: string | null;
142
+ source: string | null;
143
+ license_or_tos: string | null;
144
+ app_page: string | null;
145
+ resources: Record<number, number[]> | null;
146
+ }
147
+
93
148
  /**
94
149
  */
95
150
  export class AppRepo {
@@ -103,6 +158,22 @@ export class AppRepo {
103
158
  repo: string;
104
159
  }
105
160
  /**
161
+ * **You should use cli**
162
+ * ```sh
163
+ * cargo install ahqstore_cli_rs
164
+ * ```
165
+ * or visit app / api sub module
166
+ *
167
+ * This Module:
168
+ * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
169
+ */
170
+ export class Commit {
171
+ free(): void;
172
+ /**
173
+ */
174
+ sha: string;
175
+ }
176
+ /**
106
177
  */
107
178
  export class DevData {
108
179
  free(): void;
@@ -229,6 +300,38 @@ export class InstallerOptionsWindows {
229
300
  }
230
301
  /**
231
302
  */
303
+ export class Prefs {
304
+ free(): void;
305
+ /**
306
+ * @param {string} path
307
+ * @returns {Uint8Array | undefined}
308
+ */
309
+ static get(path: string): Uint8Array | undefined;
310
+ /**
311
+ * @param {string} s
312
+ * @returns {Prefs | undefined}
313
+ */
314
+ static str_to(s: string): Prefs | undefined;
315
+ /**
316
+ * @returns {string | undefined}
317
+ */
318
+ convert(): string | undefined;
319
+ /**
320
+ * @returns {Prefs}
321
+ */
322
+ static default(): Prefs;
323
+ /**
324
+ */
325
+ auto_update_apps: boolean;
326
+ /**
327
+ */
328
+ install_apps: boolean;
329
+ /**
330
+ */
331
+ launch_app: boolean;
332
+ }
333
+ /**
334
+ */
232
335
  export class SearchEntry {
233
336
  free(): void;
234
337
  /**
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_36(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0d14a2901553b5a6(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heabba93a9fb7695f(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  function _assertClass(instance, klass) {
@@ -352,7 +352,7 @@ export function get_app_asset(commit, app_id, asset) {
352
352
  /**
353
353
  * @param {string} commit
354
354
  * @param {string} app_id
355
- * @returns {Promise<any | undefined>}
355
+ * @returns {Promise<AHQStoreApplication | undefined>}
356
356
  */
357
357
  export function get_app(commit, app_id) {
358
358
  const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -370,8 +370,8 @@ function handleError(f, args) {
370
370
  wasm.__wbindgen_exn_store(addHeapObject(e));
371
371
  }
372
372
  }
373
- function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
374
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h1909fe182e4a3070(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
373
+ function __wbg_adapter_185(arg0, arg1, arg2, arg3) {
374
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h5ab7cfa2a035151f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
375
375
  }
376
376
 
377
377
  /**
@@ -493,6 +493,90 @@ export class AppRepo {
493
493
  }
494
494
  }
495
495
 
496
+ const CommandFinalization = (typeof FinalizationRegistry === 'undefined')
497
+ ? { register: () => {}, unregister: () => {} }
498
+ : new FinalizationRegistry(ptr => wasm.__wbg_command_free(ptr >>> 0, 1));
499
+
500
+ export class Command {
501
+
502
+ __destroy_into_raw() {
503
+ const ptr = this.__wbg_ptr;
504
+ this.__wbg_ptr = 0;
505
+ CommandFinalization.unregister(this);
506
+ return ptr;
507
+ }
508
+
509
+ free() {
510
+ const ptr = this.__destroy_into_raw();
511
+ wasm.__wbg_command_free(ptr, 0);
512
+ }
513
+ /**
514
+ * @param {string} value
515
+ * @returns {Command | undefined}
516
+ */
517
+ static try_from_js(value) {
518
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
519
+ const len0 = WASM_VECTOR_LEN;
520
+ const ret = wasm.command_try_from_js(ptr0, len0);
521
+ return takeObject(ret);
522
+ }
523
+ }
524
+
525
+ const CommitFinalization = (typeof FinalizationRegistry === 'undefined')
526
+ ? { register: () => {}, unregister: () => {} }
527
+ : new FinalizationRegistry(ptr => wasm.__wbg_commit_free(ptr >>> 0, 1));
528
+ /**
529
+ * **You should use cli**
530
+ * ```sh
531
+ * cargo install ahqstore_cli_rs
532
+ * ```
533
+ * or visit app / api sub module
534
+ *
535
+ * This Module:
536
+ * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
537
+ */
538
+ export class Commit {
539
+
540
+ __destroy_into_raw() {
541
+ const ptr = this.__wbg_ptr;
542
+ this.__wbg_ptr = 0;
543
+ CommitFinalization.unregister(this);
544
+ return ptr;
545
+ }
546
+
547
+ free() {
548
+ const ptr = this.__destroy_into_raw();
549
+ wasm.__wbg_commit_free(ptr, 0);
550
+ }
551
+ /**
552
+ * @returns {string}
553
+ */
554
+ get sha() {
555
+ let deferred1_0;
556
+ let deferred1_1;
557
+ try {
558
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
559
+ wasm.__wbg_get_commit_sha(retptr, this.__wbg_ptr);
560
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
561
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
562
+ deferred1_0 = r0;
563
+ deferred1_1 = r1;
564
+ return getStringFromWasm0(r0, r1);
565
+ } finally {
566
+ wasm.__wbindgen_add_to_stack_pointer(16);
567
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
568
+ }
569
+ }
570
+ /**
571
+ * @param {string} arg0
572
+ */
573
+ set sha(arg0) {
574
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
575
+ const len0 = WASM_VECTOR_LEN;
576
+ wasm.__wbg_set_commit_sha(this.__wbg_ptr, ptr0, len0);
577
+ }
578
+ }
579
+
496
580
  const DevDataFinalization = (typeof FinalizationRegistry === 'undefined')
497
581
  ? { register: () => {}, unregister: () => {} }
498
582
  : new FinalizationRegistry(ptr => wasm.__wbg_devdata_free(ptr >>> 0, 1));
@@ -1130,6 +1214,167 @@ export class InstallerOptionsWindows {
1130
1214
  }
1131
1215
  }
1132
1216
 
1217
+ const PrefsFinalization = (typeof FinalizationRegistry === 'undefined')
1218
+ ? { register: () => {}, unregister: () => {} }
1219
+ : new FinalizationRegistry(ptr => wasm.__wbg_prefs_free(ptr >>> 0, 1));
1220
+ /**
1221
+ */
1222
+ export class Prefs {
1223
+
1224
+ static __wrap(ptr) {
1225
+ ptr = ptr >>> 0;
1226
+ const obj = Object.create(Prefs.prototype);
1227
+ obj.__wbg_ptr = ptr;
1228
+ PrefsFinalization.register(obj, obj.__wbg_ptr, obj);
1229
+ return obj;
1230
+ }
1231
+
1232
+ __destroy_into_raw() {
1233
+ const ptr = this.__wbg_ptr;
1234
+ this.__wbg_ptr = 0;
1235
+ PrefsFinalization.unregister(this);
1236
+ return ptr;
1237
+ }
1238
+
1239
+ free() {
1240
+ const ptr = this.__destroy_into_raw();
1241
+ wasm.__wbg_prefs_free(ptr, 0);
1242
+ }
1243
+ /**
1244
+ * @returns {boolean}
1245
+ */
1246
+ get launch_app() {
1247
+ const ret = wasm.__wbg_get_prefs_launch_app(this.__wbg_ptr);
1248
+ return ret !== 0;
1249
+ }
1250
+ /**
1251
+ * @param {boolean} arg0
1252
+ */
1253
+ set launch_app(arg0) {
1254
+ wasm.__wbg_set_prefs_launch_app(this.__wbg_ptr, arg0);
1255
+ }
1256
+ /**
1257
+ * @returns {boolean}
1258
+ */
1259
+ get install_apps() {
1260
+ const ret = wasm.__wbg_get_prefs_install_apps(this.__wbg_ptr);
1261
+ return ret !== 0;
1262
+ }
1263
+ /**
1264
+ * @param {boolean} arg0
1265
+ */
1266
+ set install_apps(arg0) {
1267
+ wasm.__wbg_set_prefs_install_apps(this.__wbg_ptr, arg0);
1268
+ }
1269
+ /**
1270
+ * @returns {boolean}
1271
+ */
1272
+ get auto_update_apps() {
1273
+ const ret = wasm.__wbg_get_prefs_auto_update_apps(this.__wbg_ptr);
1274
+ return ret !== 0;
1275
+ }
1276
+ /**
1277
+ * @param {boolean} arg0
1278
+ */
1279
+ set auto_update_apps(arg0) {
1280
+ wasm.__wbg_set_prefs_auto_update_apps(this.__wbg_ptr, arg0);
1281
+ }
1282
+ /**
1283
+ * @param {string} path
1284
+ * @returns {Uint8Array | undefined}
1285
+ */
1286
+ static get(path) {
1287
+ try {
1288
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1289
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1290
+ const len0 = WASM_VECTOR_LEN;
1291
+ wasm.prefs_get(retptr, ptr0, len0);
1292
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1293
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1294
+ let v2;
1295
+ if (r0 !== 0) {
1296
+ v2 = getArrayU8FromWasm0(r0, r1).slice();
1297
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1298
+ }
1299
+ return v2;
1300
+ } finally {
1301
+ wasm.__wbindgen_add_to_stack_pointer(16);
1302
+ }
1303
+ }
1304
+ /**
1305
+ * @param {string} s
1306
+ * @returns {Prefs | undefined}
1307
+ */
1308
+ static str_to(s) {
1309
+ const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1310
+ const len0 = WASM_VECTOR_LEN;
1311
+ const ret = wasm.prefs_str_to(ptr0, len0);
1312
+ return ret === 0 ? undefined : Prefs.__wrap(ret);
1313
+ }
1314
+ /**
1315
+ * @returns {string | undefined}
1316
+ */
1317
+ convert() {
1318
+ try {
1319
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1320
+ wasm.prefs_convert(retptr, this.__wbg_ptr);
1321
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1322
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1323
+ let v1;
1324
+ if (r0 !== 0) {
1325
+ v1 = getStringFromWasm0(r0, r1).slice();
1326
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1327
+ }
1328
+ return v1;
1329
+ } finally {
1330
+ wasm.__wbindgen_add_to_stack_pointer(16);
1331
+ }
1332
+ }
1333
+ /**
1334
+ * @returns {Prefs}
1335
+ */
1336
+ static default() {
1337
+ const ret = wasm.prefs_default();
1338
+ return Prefs.__wrap(ret);
1339
+ }
1340
+ }
1341
+
1342
+ const ResponseToSendFinalization = (typeof FinalizationRegistry === 'undefined')
1343
+ ? { register: () => {}, unregister: () => {} }
1344
+ : new FinalizationRegistry(ptr => wasm.__wbg_responsetosend_free(ptr >>> 0, 1));
1345
+
1346
+ export class ResponseToSend {
1347
+
1348
+ __destroy_into_raw() {
1349
+ const ptr = this.__wbg_ptr;
1350
+ this.__wbg_ptr = 0;
1351
+ ResponseToSendFinalization.unregister(this);
1352
+ return ptr;
1353
+ }
1354
+
1355
+ free() {
1356
+ const ptr = this.__destroy_into_raw();
1357
+ wasm.__wbg_responsetosend_free(ptr, 0);
1358
+ }
1359
+ /**
1360
+ * @param {ResponseToSend} msg
1361
+ * @returns {Uint8Array}
1362
+ */
1363
+ static as_msg(msg) {
1364
+ try {
1365
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1366
+ wasm.responsetosend_as_msg(retptr, addHeapObject(msg));
1367
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1368
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1369
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1370
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1371
+ return v1;
1372
+ } finally {
1373
+ wasm.__wbindgen_add_to_stack_pointer(16);
1374
+ }
1375
+ }
1376
+ }
1377
+
1133
1378
  const SearchEntryFinalization = (typeof FinalizationRegistry === 'undefined')
1134
1379
  ? { register: () => {}, unregister: () => {} }
1135
1380
  : new FinalizationRegistry(ptr => wasm.__wbg_searchentry_free(ptr >>> 0, 1));
@@ -1303,6 +1548,11 @@ export function __wbindgen_object_drop_ref(arg0) {
1303
1548
  takeObject(arg0);
1304
1549
  };
1305
1550
 
1551
+ export function __wbindgen_object_clone_ref(arg0) {
1552
+ const ret = getObject(arg0);
1553
+ return addHeapObject(ret);
1554
+ };
1555
+
1306
1556
  export function __wbg_devdata_new(arg0) {
1307
1557
  const ret = DevData.__wrap(arg0);
1308
1558
  return addHeapObject(ret);
@@ -1318,16 +1568,6 @@ export function __wbindgen_string_new(arg0, arg1) {
1318
1568
  return addHeapObject(ret);
1319
1569
  };
1320
1570
 
1321
- export function __wbindgen_error_new(arg0, arg1) {
1322
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1323
- return addHeapObject(ret);
1324
- };
1325
-
1326
- export function __wbg_searchentry_new(arg0) {
1327
- const ret = SearchEntry.__wrap(arg0);
1328
- return addHeapObject(ret);
1329
- };
1330
-
1331
1571
  export function __wbindgen_array_new() {
1332
1572
  const ret = [];
1333
1573
  return addHeapObject(ret);
@@ -1337,9 +1577,9 @@ export function __wbindgen_array_push(arg0, arg1) {
1337
1577
  getObject(arg0).push(takeObject(arg1));
1338
1578
  };
1339
1579
 
1340
- export function __wbindgen_is_string(arg0) {
1341
- const ret = typeof(getObject(arg0)) === 'string';
1342
- return ret;
1580
+ export function __wbg_searchentry_new(arg0) {
1581
+ const ret = SearchEntry.__wrap(arg0);
1582
+ return addHeapObject(ret);
1343
1583
  };
1344
1584
 
1345
1585
  export function __wbindgen_cb_drop(arg0) {
@@ -1352,6 +1592,21 @@ export function __wbindgen_cb_drop(arg0) {
1352
1592
  return ret;
1353
1593
  };
1354
1594
 
1595
+ export function __wbindgen_is_string(arg0) {
1596
+ const ret = typeof(getObject(arg0)) === 'string';
1597
+ return ret;
1598
+ };
1599
+
1600
+ export function __wbindgen_error_new(arg0, arg1) {
1601
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1602
+ return addHeapObject(ret);
1603
+ };
1604
+
1605
+ export function __wbindgen_is_undefined(arg0) {
1606
+ const ret = getObject(arg0) === undefined;
1607
+ return ret;
1608
+ };
1609
+
1355
1610
  export function __wbindgen_is_object(arg0) {
1356
1611
  const val = getObject(arg0);
1357
1612
  const ret = typeof(val) === 'object' && val !== null;
@@ -1367,11 +1622,6 @@ export function __wbindgen_string_get(arg0, arg1) {
1367
1622
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1368
1623
  };
1369
1624
 
1370
- export function __wbindgen_object_clone_ref(arg0) {
1371
- const ret = getObject(arg0);
1372
- return addHeapObject(ret);
1373
- };
1374
-
1375
1625
  export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
1376
1626
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1377
1627
  };
@@ -1400,49 +1650,6 @@ export function __wbg_fetch_ba7fe179e527d942(arg0, arg1) {
1400
1650
  return addHeapObject(ret);
1401
1651
  };
1402
1652
 
1403
- export function __wbg_setbody_734cb3d7ee8e6e96(arg0, arg1) {
1404
- getObject(arg0).body = getObject(arg1);
1405
- };
1406
-
1407
- export function __wbg_setcredentials_2b67800db3f7b621(arg0, arg1) {
1408
- getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
1409
- };
1410
-
1411
- export function __wbg_setheaders_be10a5ab566fd06f(arg0, arg1) {
1412
- getObject(arg0).headers = getObject(arg1);
1413
- };
1414
-
1415
- export function __wbg_setmethod_dc68a742c2db5c6a(arg0, arg1, arg2) {
1416
- getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1417
- };
1418
-
1419
- export function __wbg_setmode_a781aae2bd3df202(arg0, arg1) {
1420
- getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
1421
- };
1422
-
1423
- export function __wbg_setsignal_91c4e8ebd04eb935(arg0, arg1) {
1424
- getObject(arg0).signal = getObject(arg1);
1425
- };
1426
-
1427
- export function __wbg_newwithstrandinit_a31c69e4cc337183() { return handleError(function (arg0, arg1, arg2) {
1428
- const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1429
- return addHeapObject(ret);
1430
- }, arguments) };
1431
-
1432
- export function __wbg_signal_41e46ccad44bb5e2(arg0) {
1433
- const ret = getObject(arg0).signal;
1434
- return addHeapObject(ret);
1435
- };
1436
-
1437
- export function __wbg_new_ebf2727385ee825c() { return handleError(function () {
1438
- const ret = new AbortController();
1439
- return addHeapObject(ret);
1440
- }, arguments) };
1441
-
1442
- export function __wbg_abort_8659d889a7877ae3(arg0) {
1443
- getObject(arg0).abort();
1444
- };
1445
-
1446
1653
  export function __wbg_new_e27c93803e1acc42() { return handleError(function () {
1447
1654
  const ret = new Headers();
1448
1655
  return addHeapObject(ret);
@@ -1452,6 +1659,11 @@ export function __wbg_append_f3a4426bb50622c5() { return handleError(function (a
1452
1659
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1453
1660
  }, arguments) };
1454
1661
 
1662
+ export function __wbg_newwithstrandinit_a31c69e4cc337183() { return handleError(function (arg0, arg1, arg2) {
1663
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1664
+ return addHeapObject(ret);
1665
+ }, arguments) };
1666
+
1455
1667
  export function __wbg_instanceof_Response_e91b7eb7c611a9ae(arg0) {
1456
1668
  let result;
1457
1669
  try {
@@ -1486,6 +1698,44 @@ export function __wbg_arrayBuffer_a5fbad63cc7e663b() { return handleError(functi
1486
1698
  return addHeapObject(ret);
1487
1699
  }, arguments) };
1488
1700
 
1701
+ export function __wbg_setbody_734cb3d7ee8e6e96(arg0, arg1) {
1702
+ getObject(arg0).body = getObject(arg1);
1703
+ };
1704
+
1705
+ export function __wbg_setcredentials_2b67800db3f7b621(arg0, arg1) {
1706
+ getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
1707
+ };
1708
+
1709
+ export function __wbg_setheaders_be10a5ab566fd06f(arg0, arg1) {
1710
+ getObject(arg0).headers = getObject(arg1);
1711
+ };
1712
+
1713
+ export function __wbg_setmethod_dc68a742c2db5c6a(arg0, arg1, arg2) {
1714
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1715
+ };
1716
+
1717
+ export function __wbg_setmode_a781aae2bd3df202(arg0, arg1) {
1718
+ getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
1719
+ };
1720
+
1721
+ export function __wbg_setsignal_91c4e8ebd04eb935(arg0, arg1) {
1722
+ getObject(arg0).signal = getObject(arg1);
1723
+ };
1724
+
1725
+ export function __wbg_signal_41e46ccad44bb5e2(arg0) {
1726
+ const ret = getObject(arg0).signal;
1727
+ return addHeapObject(ret);
1728
+ };
1729
+
1730
+ export function __wbg_new_ebf2727385ee825c() { return handleError(function () {
1731
+ const ret = new AbortController();
1732
+ return addHeapObject(ret);
1733
+ }, arguments) };
1734
+
1735
+ export function __wbg_abort_8659d889a7877ae3(arg0) {
1736
+ getObject(arg0).abort();
1737
+ };
1738
+
1489
1739
  export function __wbg_new_a220cf903aa02ca2() {
1490
1740
  const ret = new Array();
1491
1741
  return addHeapObject(ret);
@@ -1561,11 +1811,6 @@ export function __wbg_global_e5a3fe56f8be9485() { return handleError(function ()
1561
1811
  return addHeapObject(ret);
1562
1812
  }, arguments) };
1563
1813
 
1564
- export function __wbindgen_is_undefined(arg0) {
1565
- const ret = getObject(arg0) === undefined;
1566
- return ret;
1567
- };
1568
-
1569
1814
  export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) {
1570
1815
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1571
1816
  };
@@ -1587,7 +1832,7 @@ export function __wbg_new_b85e72ed1bfd57f9(arg0, arg1) {
1587
1832
  const a = state0.a;
1588
1833
  state0.a = 0;
1589
1834
  try {
1590
- return __wbg_adapter_171(a, state0.b, arg0, arg1);
1835
+ return __wbg_adapter_185(a, state0.b, arg0, arg1);
1591
1836
  } finally {
1592
1837
  state0.a = a;
1593
1838
  }
@@ -1638,6 +1883,11 @@ export function __wbg_length_8339fcf5d8ecd12e(arg0) {
1638
1883
  return ret;
1639
1884
  };
1640
1885
 
1886
+ export function __wbg_parse_52202f117ec9ecfa() { return handleError(function (arg0, arg1) {
1887
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1888
+ return addHeapObject(ret);
1889
+ }, arguments) };
1890
+
1641
1891
  export function __wbg_stringify_bbf45426c92a6bf5() { return handleError(function (arg0) {
1642
1892
  const ret = JSON.stringify(getObject(arg0));
1643
1893
  return addHeapObject(ret);
@@ -1672,8 +1922,8 @@ export function __wbindgen_uint8_array_new(arg0, arg1) {
1672
1922
  return addHeapObject(ret);
1673
1923
  };
1674
1924
 
1675
- export function __wbindgen_closure_wrapper476(arg0, arg1, arg2) {
1676
- const ret = makeMutClosure(arg0, arg1, 122, __wbg_adapter_36);
1925
+ export function __wbindgen_closure_wrapper695(arg0, arg1, arg2) {
1926
+ const ret = makeMutClosure(arg0, arg1, 156, __wbg_adapter_36);
1677
1927
  return addHeapObject(ret);
1678
1928
  };
1679
1929
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ahqstore-types",
3
3
  "type": "module",
4
4
  "description": "Standard types used by AHQ Store",
5
- "version": "3.2.1",
5
+ "version": "3.2.2",
6
6
  "license": "SEE LICENSE IN ../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",