ahqstore-types 3.2.1 → 3.2.4

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # ahqstore-types
2
-
3
- Types used by AHQ Store app
4
-
5
- **NOTE:** This crate is used internally by AHQ Store Organisation projects for sharing the unified app schema and protocol signatures
1
+ # ahqstore-types
2
+
3
+ Types used by AHQ Store app
4
+
5
+ **NOTE:** This crate is used internally by AHQ Store Organisation projects for sharing the unified app schema and protocol signatures
@@ -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,35 +225,9 @@ 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__h651ddc0f00f40bd1(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
- function _assertClass(instance, klass) {
232
- if (!(instance instanceof klass)) {
233
- throw new Error(`expected instance of ${klass.name}`);
234
- }
235
- return instance.ptr;
236
- }
237
-
238
- function getArrayJsValueFromWasm0(ptr, len) {
239
- ptr = ptr >>> 0;
240
- const mem = getDataViewMemory0();
241
- const result = [];
242
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
243
- result.push(takeObject(mem.getUint32(i, true)));
244
- }
245
- return result;
246
- }
247
-
248
- function passArrayJsValueToWasm0(array, malloc) {
249
- const ptr = malloc(array.length * 4, 4) >>> 0;
250
- const mem = getDataViewMemory0();
251
- for (let i = 0; i < array.length; i++) {
252
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
253
- }
254
- WASM_VECTOR_LEN = array.length;
255
- return ptr;
256
- }
257
231
  /**
258
232
  * @param {string | undefined} [token]
259
233
  * @returns {Promise<string | undefined>}
@@ -352,7 +326,7 @@ export function get_app_asset(commit, app_id, asset) {
352
326
  /**
353
327
  * @param {string} commit
354
328
  * @param {string} app_id
355
- * @returns {Promise<any | undefined>}
329
+ * @returns {Promise<AHQStoreApplication | undefined>}
356
330
  */
357
331
  export function get_app(commit, app_id) {
358
332
  const ptr0 = passStringToWasm0(commit, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -363,6 +337,33 @@ export function get_app(commit, app_id) {
363
337
  return takeObject(ret);
364
338
  }
365
339
 
340
+ function _assertClass(instance, klass) {
341
+ if (!(instance instanceof klass)) {
342
+ throw new Error(`expected instance of ${klass.name}`);
343
+ }
344
+ return instance.ptr;
345
+ }
346
+
347
+ function getArrayJsValueFromWasm0(ptr, len) {
348
+ ptr = ptr >>> 0;
349
+ const mem = getDataViewMemory0();
350
+ const result = [];
351
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
352
+ result.push(takeObject(mem.getUint32(i, true)));
353
+ }
354
+ return result;
355
+ }
356
+
357
+ function passArrayJsValueToWasm0(array, malloc) {
358
+ const ptr = malloc(array.length * 4, 4) >>> 0;
359
+ const mem = getDataViewMemory0();
360
+ for (let i = 0; i < array.length; i++) {
361
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
362
+ }
363
+ WASM_VECTOR_LEN = array.length;
364
+ return ptr;
365
+ }
366
+
366
367
  function handleError(f, args) {
367
368
  try {
368
369
  return f.apply(this, args);
@@ -370,8 +371,8 @@ function handleError(f, args) {
370
371
  wasm.__wbindgen_exn_store(addHeapObject(e));
371
372
  }
372
373
  }
373
- function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
374
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h1909fe182e4a3070(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
374
+ function __wbg_adapter_185(arg0, arg1, arg2, arg3) {
375
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h78f92727beb8cfbb(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
375
376
  }
376
377
 
377
378
  /**
@@ -493,6 +494,90 @@ export class AppRepo {
493
494
  }
494
495
  }
495
496
 
497
+ const CommandFinalization = (typeof FinalizationRegistry === 'undefined')
498
+ ? { register: () => {}, unregister: () => {} }
499
+ : new FinalizationRegistry(ptr => wasm.__wbg_command_free(ptr >>> 0, 1));
500
+
501
+ export class Command {
502
+
503
+ __destroy_into_raw() {
504
+ const ptr = this.__wbg_ptr;
505
+ this.__wbg_ptr = 0;
506
+ CommandFinalization.unregister(this);
507
+ return ptr;
508
+ }
509
+
510
+ free() {
511
+ const ptr = this.__destroy_into_raw();
512
+ wasm.__wbg_command_free(ptr, 0);
513
+ }
514
+ /**
515
+ * @param {string} value
516
+ * @returns {Command | undefined}
517
+ */
518
+ static try_from_js(value) {
519
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
520
+ const len0 = WASM_VECTOR_LEN;
521
+ const ret = wasm.command_try_from_js(ptr0, len0);
522
+ return takeObject(ret);
523
+ }
524
+ }
525
+
526
+ const CommitFinalization = (typeof FinalizationRegistry === 'undefined')
527
+ ? { register: () => {}, unregister: () => {} }
528
+ : new FinalizationRegistry(ptr => wasm.__wbg_commit_free(ptr >>> 0, 1));
529
+ /**
530
+ * **You should use cli**
531
+ * ```sh
532
+ * cargo install ahqstore_cli_rs
533
+ * ```
534
+ * or visit app / api sub module
535
+ *
536
+ * This Module:
537
+ * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
538
+ */
539
+ export class Commit {
540
+
541
+ __destroy_into_raw() {
542
+ const ptr = this.__wbg_ptr;
543
+ this.__wbg_ptr = 0;
544
+ CommitFinalization.unregister(this);
545
+ return ptr;
546
+ }
547
+
548
+ free() {
549
+ const ptr = this.__destroy_into_raw();
550
+ wasm.__wbg_commit_free(ptr, 0);
551
+ }
552
+ /**
553
+ * @returns {string}
554
+ */
555
+ get sha() {
556
+ let deferred1_0;
557
+ let deferred1_1;
558
+ try {
559
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
560
+ wasm.__wbg_get_commit_sha(retptr, this.__wbg_ptr);
561
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
562
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
563
+ deferred1_0 = r0;
564
+ deferred1_1 = r1;
565
+ return getStringFromWasm0(r0, r1);
566
+ } finally {
567
+ wasm.__wbindgen_add_to_stack_pointer(16);
568
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
569
+ }
570
+ }
571
+ /**
572
+ * @param {string} arg0
573
+ */
574
+ set sha(arg0) {
575
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
576
+ const len0 = WASM_VECTOR_LEN;
577
+ wasm.__wbg_set_commit_sha(this.__wbg_ptr, ptr0, len0);
578
+ }
579
+ }
580
+
496
581
  const DevDataFinalization = (typeof FinalizationRegistry === 'undefined')
497
582
  ? { register: () => {}, unregister: () => {} }
498
583
  : new FinalizationRegistry(ptr => wasm.__wbg_devdata_free(ptr >>> 0, 1));
@@ -1130,6 +1215,167 @@ export class InstallerOptionsWindows {
1130
1215
  }
1131
1216
  }
1132
1217
 
1218
+ const PrefsFinalization = (typeof FinalizationRegistry === 'undefined')
1219
+ ? { register: () => {}, unregister: () => {} }
1220
+ : new FinalizationRegistry(ptr => wasm.__wbg_prefs_free(ptr >>> 0, 1));
1221
+ /**
1222
+ */
1223
+ export class Prefs {
1224
+
1225
+ static __wrap(ptr) {
1226
+ ptr = ptr >>> 0;
1227
+ const obj = Object.create(Prefs.prototype);
1228
+ obj.__wbg_ptr = ptr;
1229
+ PrefsFinalization.register(obj, obj.__wbg_ptr, obj);
1230
+ return obj;
1231
+ }
1232
+
1233
+ __destroy_into_raw() {
1234
+ const ptr = this.__wbg_ptr;
1235
+ this.__wbg_ptr = 0;
1236
+ PrefsFinalization.unregister(this);
1237
+ return ptr;
1238
+ }
1239
+
1240
+ free() {
1241
+ const ptr = this.__destroy_into_raw();
1242
+ wasm.__wbg_prefs_free(ptr, 0);
1243
+ }
1244
+ /**
1245
+ * @returns {boolean}
1246
+ */
1247
+ get launch_app() {
1248
+ const ret = wasm.__wbg_get_prefs_launch_app(this.__wbg_ptr);
1249
+ return ret !== 0;
1250
+ }
1251
+ /**
1252
+ * @param {boolean} arg0
1253
+ */
1254
+ set launch_app(arg0) {
1255
+ wasm.__wbg_set_prefs_launch_app(this.__wbg_ptr, arg0);
1256
+ }
1257
+ /**
1258
+ * @returns {boolean}
1259
+ */
1260
+ get install_apps() {
1261
+ const ret = wasm.__wbg_get_prefs_install_apps(this.__wbg_ptr);
1262
+ return ret !== 0;
1263
+ }
1264
+ /**
1265
+ * @param {boolean} arg0
1266
+ */
1267
+ set install_apps(arg0) {
1268
+ wasm.__wbg_set_prefs_install_apps(this.__wbg_ptr, arg0);
1269
+ }
1270
+ /**
1271
+ * @returns {boolean}
1272
+ */
1273
+ get auto_update_apps() {
1274
+ const ret = wasm.__wbg_get_prefs_auto_update_apps(this.__wbg_ptr);
1275
+ return ret !== 0;
1276
+ }
1277
+ /**
1278
+ * @param {boolean} arg0
1279
+ */
1280
+ set auto_update_apps(arg0) {
1281
+ wasm.__wbg_set_prefs_auto_update_apps(this.__wbg_ptr, arg0);
1282
+ }
1283
+ /**
1284
+ * @param {string} path
1285
+ * @returns {Uint8Array | undefined}
1286
+ */
1287
+ static get(path) {
1288
+ try {
1289
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1290
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1291
+ const len0 = WASM_VECTOR_LEN;
1292
+ wasm.prefs_get(retptr, ptr0, len0);
1293
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1294
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1295
+ let v2;
1296
+ if (r0 !== 0) {
1297
+ v2 = getArrayU8FromWasm0(r0, r1).slice();
1298
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1299
+ }
1300
+ return v2;
1301
+ } finally {
1302
+ wasm.__wbindgen_add_to_stack_pointer(16);
1303
+ }
1304
+ }
1305
+ /**
1306
+ * @param {string} s
1307
+ * @returns {Prefs | undefined}
1308
+ */
1309
+ static str_to(s) {
1310
+ const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1311
+ const len0 = WASM_VECTOR_LEN;
1312
+ const ret = wasm.prefs_str_to(ptr0, len0);
1313
+ return ret === 0 ? undefined : Prefs.__wrap(ret);
1314
+ }
1315
+ /**
1316
+ * @returns {string | undefined}
1317
+ */
1318
+ convert() {
1319
+ try {
1320
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1321
+ wasm.prefs_convert(retptr, this.__wbg_ptr);
1322
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1323
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1324
+ let v1;
1325
+ if (r0 !== 0) {
1326
+ v1 = getStringFromWasm0(r0, r1).slice();
1327
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1328
+ }
1329
+ return v1;
1330
+ } finally {
1331
+ wasm.__wbindgen_add_to_stack_pointer(16);
1332
+ }
1333
+ }
1334
+ /**
1335
+ * @returns {Prefs}
1336
+ */
1337
+ static default() {
1338
+ const ret = wasm.prefs_default();
1339
+ return Prefs.__wrap(ret);
1340
+ }
1341
+ }
1342
+
1343
+ const ResponseToSendFinalization = (typeof FinalizationRegistry === 'undefined')
1344
+ ? { register: () => {}, unregister: () => {} }
1345
+ : new FinalizationRegistry(ptr => wasm.__wbg_responsetosend_free(ptr >>> 0, 1));
1346
+
1347
+ export class ResponseToSend {
1348
+
1349
+ __destroy_into_raw() {
1350
+ const ptr = this.__wbg_ptr;
1351
+ this.__wbg_ptr = 0;
1352
+ ResponseToSendFinalization.unregister(this);
1353
+ return ptr;
1354
+ }
1355
+
1356
+ free() {
1357
+ const ptr = this.__destroy_into_raw();
1358
+ wasm.__wbg_responsetosend_free(ptr, 0);
1359
+ }
1360
+ /**
1361
+ * @param {ResponseToSend} msg
1362
+ * @returns {Uint8Array}
1363
+ */
1364
+ static as_msg(msg) {
1365
+ try {
1366
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1367
+ wasm.responsetosend_as_msg(retptr, addHeapObject(msg));
1368
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1369
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1370
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1371
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1372
+ return v1;
1373
+ } finally {
1374
+ wasm.__wbindgen_add_to_stack_pointer(16);
1375
+ }
1376
+ }
1377
+ }
1378
+
1133
1379
  const SearchEntryFinalization = (typeof FinalizationRegistry === 'undefined')
1134
1380
  ? { register: () => {}, unregister: () => {} }
1135
1381
  : new FinalizationRegistry(ptr => wasm.__wbg_searchentry_free(ptr >>> 0, 1));
@@ -1303,28 +1549,28 @@ export function __wbindgen_object_drop_ref(arg0) {
1303
1549
  takeObject(arg0);
1304
1550
  };
1305
1551
 
1306
- export function __wbg_devdata_new(arg0) {
1307
- const ret = DevData.__wrap(arg0);
1552
+ export function __wbindgen_object_clone_ref(arg0) {
1553
+ const ret = getObject(arg0);
1308
1554
  return addHeapObject(ret);
1309
1555
  };
1310
1556
 
1311
- export function __wbindgen_number_new(arg0) {
1312
- const ret = arg0;
1557
+ export function __wbindgen_string_new(arg0, arg1) {
1558
+ const ret = getStringFromWasm0(arg0, arg1);
1313
1559
  return addHeapObject(ret);
1314
1560
  };
1315
1561
 
1316
- export function __wbindgen_string_new(arg0, arg1) {
1317
- const ret = getStringFromWasm0(arg0, arg1);
1562
+ export function __wbg_devdata_new(arg0) {
1563
+ const ret = DevData.__wrap(arg0);
1318
1564
  return addHeapObject(ret);
1319
1565
  };
1320
1566
 
1321
- export function __wbindgen_error_new(arg0, arg1) {
1322
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1567
+ export function __wbindgen_number_new(arg0) {
1568
+ const ret = arg0;
1323
1569
  return addHeapObject(ret);
1324
1570
  };
1325
1571
 
1326
- export function __wbg_searchentry_new(arg0) {
1327
- const ret = SearchEntry.__wrap(arg0);
1572
+ export function __wbindgen_error_new(arg0, arg1) {
1573
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1328
1574
  return addHeapObject(ret);
1329
1575
  };
1330
1576
 
@@ -1337,9 +1583,9 @@ export function __wbindgen_array_push(arg0, arg1) {
1337
1583
  getObject(arg0).push(takeObject(arg1));
1338
1584
  };
1339
1585
 
1340
- export function __wbindgen_is_string(arg0) {
1341
- const ret = typeof(getObject(arg0)) === 'string';
1342
- return ret;
1586
+ export function __wbg_searchentry_new(arg0) {
1587
+ const ret = SearchEntry.__wrap(arg0);
1588
+ return addHeapObject(ret);
1343
1589
  };
1344
1590
 
1345
1591
  export function __wbindgen_cb_drop(arg0) {
@@ -1352,6 +1598,16 @@ export function __wbindgen_cb_drop(arg0) {
1352
1598
  return ret;
1353
1599
  };
1354
1600
 
1601
+ export function __wbindgen_is_string(arg0) {
1602
+ const ret = typeof(getObject(arg0)) === 'string';
1603
+ return ret;
1604
+ };
1605
+
1606
+ export function __wbindgen_is_undefined(arg0) {
1607
+ const ret = getObject(arg0) === undefined;
1608
+ return ret;
1609
+ };
1610
+
1355
1611
  export function __wbindgen_is_object(arg0) {
1356
1612
  const val = getObject(arg0);
1357
1613
  const ret = typeof(val) === 'object' && val !== null;
@@ -1367,11 +1623,6 @@ export function __wbindgen_string_get(arg0, arg1) {
1367
1623
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1368
1624
  };
1369
1625
 
1370
- export function __wbindgen_object_clone_ref(arg0) {
1371
- const ret = getObject(arg0);
1372
- return addHeapObject(ret);
1373
- };
1374
-
1375
1626
  export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
1376
1627
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1377
1628
  };
@@ -1400,49 +1651,6 @@ export function __wbg_fetch_ba7fe179e527d942(arg0, arg1) {
1400
1651
  return addHeapObject(ret);
1401
1652
  };
1402
1653
 
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
1654
  export function __wbg_new_e27c93803e1acc42() { return handleError(function () {
1447
1655
  const ret = new Headers();
1448
1656
  return addHeapObject(ret);
@@ -1486,6 +1694,49 @@ export function __wbg_arrayBuffer_a5fbad63cc7e663b() { return handleError(functi
1486
1694
  return addHeapObject(ret);
1487
1695
  }, arguments) };
1488
1696
 
1697
+ export function __wbg_newwithstrandinit_a31c69e4cc337183() { return handleError(function (arg0, arg1, arg2) {
1698
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1699
+ return addHeapObject(ret);
1700
+ }, arguments) };
1701
+
1702
+ export function __wbg_setbody_734cb3d7ee8e6e96(arg0, arg1) {
1703
+ getObject(arg0).body = getObject(arg1);
1704
+ };
1705
+
1706
+ export function __wbg_setcredentials_2b67800db3f7b621(arg0, arg1) {
1707
+ getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
1708
+ };
1709
+
1710
+ export function __wbg_setheaders_be10a5ab566fd06f(arg0, arg1) {
1711
+ getObject(arg0).headers = getObject(arg1);
1712
+ };
1713
+
1714
+ export function __wbg_setmethod_dc68a742c2db5c6a(arg0, arg1, arg2) {
1715
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1716
+ };
1717
+
1718
+ export function __wbg_setmode_a781aae2bd3df202(arg0, arg1) {
1719
+ getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
1720
+ };
1721
+
1722
+ export function __wbg_setsignal_91c4e8ebd04eb935(arg0, arg1) {
1723
+ getObject(arg0).signal = getObject(arg1);
1724
+ };
1725
+
1726
+ export function __wbg_signal_41e46ccad44bb5e2(arg0) {
1727
+ const ret = getObject(arg0).signal;
1728
+ return addHeapObject(ret);
1729
+ };
1730
+
1731
+ export function __wbg_new_ebf2727385ee825c() { return handleError(function () {
1732
+ const ret = new AbortController();
1733
+ return addHeapObject(ret);
1734
+ }, arguments) };
1735
+
1736
+ export function __wbg_abort_8659d889a7877ae3(arg0) {
1737
+ getObject(arg0).abort();
1738
+ };
1739
+
1489
1740
  export function __wbg_new_a220cf903aa02ca2() {
1490
1741
  const ret = new Array();
1491
1742
  return addHeapObject(ret);
@@ -1561,11 +1812,6 @@ export function __wbg_global_e5a3fe56f8be9485() { return handleError(function ()
1561
1812
  return addHeapObject(ret);
1562
1813
  }, arguments) };
1563
1814
 
1564
- export function __wbindgen_is_undefined(arg0) {
1565
- const ret = getObject(arg0) === undefined;
1566
- return ret;
1567
- };
1568
-
1569
1815
  export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) {
1570
1816
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1571
1817
  };
@@ -1587,7 +1833,7 @@ export function __wbg_new_b85e72ed1bfd57f9(arg0, arg1) {
1587
1833
  const a = state0.a;
1588
1834
  state0.a = 0;
1589
1835
  try {
1590
- return __wbg_adapter_171(a, state0.b, arg0, arg1);
1836
+ return __wbg_adapter_185(a, state0.b, arg0, arg1);
1591
1837
  } finally {
1592
1838
  state0.a = a;
1593
1839
  }
@@ -1638,6 +1884,11 @@ export function __wbg_length_8339fcf5d8ecd12e(arg0) {
1638
1884
  return ret;
1639
1885
  };
1640
1886
 
1887
+ export function __wbg_parse_52202f117ec9ecfa() { return handleError(function (arg0, arg1) {
1888
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1889
+ return addHeapObject(ret);
1890
+ }, arguments) };
1891
+
1641
1892
  export function __wbg_stringify_bbf45426c92a6bf5() { return handleError(function (arg0) {
1642
1893
  const ret = JSON.stringify(getObject(arg0));
1643
1894
  return addHeapObject(ret);
@@ -1672,8 +1923,8 @@ export function __wbindgen_uint8_array_new(arg0, arg1) {
1672
1923
  return addHeapObject(ret);
1673
1924
  };
1674
1925
 
1675
- export function __wbindgen_closure_wrapper476(arg0, arg1, arg2) {
1676
- const ret = makeMutClosure(arg0, arg1, 122, __wbg_adapter_36);
1926
+ export function __wbindgen_closure_wrapper715(arg0, arg1, arg2) {
1927
+ const ret = makeMutClosure(arg0, arg1, 157, __wbg_adapter_36);
1677
1928
  return addHeapObject(ret);
1678
1929
  };
1679
1930
 
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.4",
6
6
  "license": "SEE LICENSE IN ../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",