ahqstore-types 3.2.7 → 3.3.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.
@@ -1,46 +1,44 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- */
5
3
  export enum InstallerFormat {
6
- /**
7
- *🎯 Stable as of v1
8
- */
4
+ /**
5
+ *🎯 Stable as of v1
6
+ */
9
7
  WindowsZip = 0,
10
- /**
11
- *🎯 Stable as of v2
12
- *
13
- */
8
+ /**
9
+ *🎯 Stable as of v2
10
+ *
11
+ */
14
12
  WindowsInstallerMsi = 1,
15
- /**
16
- *🔬 Planned as of v2.5 or v3
17
- *
18
- *
19
- * **Doesn't work**
20
- * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
21
- *
22
- * [^1]: You'll need to provide app's final location
23
- */
13
+ /**
14
+ *🔬 Planned as of v2.5 or v3
15
+ *
16
+ *
17
+ * **Doesn't work**
18
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
19
+ *
20
+ * [^1]: You'll need to provide app's final location
21
+ */
24
22
  WindowsInstallerExe = 2,
25
- /**
26
- *🔬 Planned as of v3
27
- *
28
- *
29
- * **Doesn't work**
30
- * **Won't be worked on, until other formats are supported**
31
- * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
32
- *
33
- * [^1]: You'll need to provide app's final location
34
- */
23
+ /**
24
+ *🔬 Planned as of v3
25
+ *
26
+ *
27
+ * **Doesn't work**
28
+ * **Won't be worked on, until other formats are supported**
29
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
30
+ *
31
+ * [^1]: You'll need to provide app's final location
32
+ */
35
33
  WindowsUWPMsix = 3,
36
- /**
37
- *🎯 Stable as of v2
38
- *
39
- */
34
+ /**
35
+ *🎯 Stable as of v2
36
+ *
37
+ */
40
38
  LinuxAppImage = 4,
41
- /**
42
- *🔬 Planned
43
- */
39
+ /**
40
+ *🔬 Planned
41
+ */
44
42
  AndroidApkZip = 5,
45
43
  }
46
44
  export type AppId = string;
@@ -98,213 +96,161 @@ export interface AHQStoreApplication {
98
96
  resources: Record<number, number[]> | null;
99
97
  }
100
98
 
101
- /**
102
- */
103
99
  export class AppRepo {
104
100
  free(): void;
105
101
  /**
106
- * author must be your GitHub username or username of an org where you're a "visible" member
107
- */
102
+ * author must be your GitHub username or username of an org where you're a "visible" member
103
+ */
108
104
  author: string;
109
- /**
110
- */
111
105
  repo: string;
112
106
  }
113
107
  /**
114
- * **You should use cli**
115
- * ```sh
116
- * cargo install ahqstore_cli_rs
117
- * ```
118
- * or visit app / api sub module
119
- *
120
- * This Module:
121
- * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
122
- */
108
+ * **You should use cli**
109
+ * ```sh
110
+ * cargo install ahqstore_cli_rs
111
+ * ```
112
+ * or visit app / api sub module
113
+ *
114
+ * This Module:
115
+ * This module lists the standard commands & types that AHQ Store sends to AHQ Store Service
116
+ */
123
117
  export class Commit {
124
118
  free(): void;
125
- /**
126
- */
127
119
  sha: string;
128
120
  }
129
- /**
130
- */
131
121
  export class DevData {
132
122
  free(): void;
133
- /**
134
- */
135
123
  avatar_url: string;
136
- /**
137
- */
138
124
  github: string;
139
- /**
140
- */
141
125
  id: string;
142
- /**
143
- */
144
126
  name: string;
145
127
  }
146
- /**
147
- */
148
128
  export class DownloadUrl {
149
129
  free(): void;
150
- /**
151
- */
152
130
  asset: string;
153
- /**
154
- */
155
131
  installerType: InstallerFormat;
156
132
  /**
157
- * This will be based on asset and releaseId
158
- */
133
+ * This will be based on asset and releaseId
134
+ */
159
135
  url: string;
160
136
  }
161
- /**
162
- */
163
137
  export class GHRepoCommit {
164
138
  free(): void;
165
- /**
166
- */
167
139
  sha: string;
168
140
  }
169
- /**
170
- */
171
141
  export class InstallerOptions {
172
142
  free(): void;
173
143
  /**
174
- *🔬 Planned
175
- *🎯 Introduced in v2
176
- *
177
- */
144
+ *🔬 Planned
145
+ *🎯 Introduced in v2
146
+ *
147
+ */
178
148
  android?: InstallerOptionsAndroid;
179
149
  /**
180
- *🎯 Introduced in v1
181
- *
182
- */
150
+ *🎯 Introduced in v1
151
+ *
152
+ */
183
153
  linux?: InstallerOptionsLinux;
184
154
  /**
185
- *🎯 Introduced in v2
186
- *
187
- */
155
+ *🎯 Introduced in v2
156
+ *
157
+ */
188
158
  linuxArm64?: InstallerOptionsLinux;
189
159
  /**
190
- *🎯 Introduced in v2
191
- *
192
- */
160
+ *🎯 Introduced in v2
161
+ *
162
+ */
193
163
  linuxArm7?: InstallerOptionsLinux;
194
164
  /**
195
- *🎯 Introduced in v1
196
- *
197
- */
165
+ *🎯 Introduced in v1
166
+ *
167
+ */
198
168
  win32?: InstallerOptionsWindows;
199
169
  /**
200
- *🎯 Introduced in v2
201
- *
202
- */
170
+ *🎯 Introduced in v2
171
+ *
172
+ */
203
173
  winarm?: InstallerOptionsWindows;
204
174
  }
205
175
  /**
206
- *🔬 Planned
207
- *
208
- */
176
+ *🔬 Planned
177
+ *
178
+ */
209
179
  export class InstallerOptionsAndroid {
210
180
  free(): void;
211
181
  /**
212
- *🎯 Introduced in v2
213
- *
214
- */
182
+ *🎯 Introduced in v2
183
+ *
184
+ */
215
185
  assetId: number;
216
186
  }
217
187
  /**
218
- *🔬 Under Development
219
- *
220
- */
188
+ *🔬 Under Development
189
+ *
190
+ */
221
191
  export class InstallerOptionsLinux {
222
192
  free(): void;
223
193
  /**
224
- *🎯 Introduced in v2
225
- *
226
- */
194
+ *🎯 Introduced in v2
195
+ *
196
+ */
227
197
  assetId: number;
228
198
  }
229
- /**
230
- */
231
199
  export class InstallerOptionsWindows {
232
200
  free(): void;
233
201
  /**
234
- *🎯 Introduced in v2
235
- *
236
- */
202
+ *🎯 Introduced in v2
203
+ *
204
+ */
237
205
  assetId: number;
238
206
  /**
239
- * The exe to link as a shortcut[^1]
240
- *
241
- * [^1]: Only if you choose WindowsZip
242
- */
207
+ * The exe to link as a shortcut[^1]
208
+ *
209
+ * [^1]: Only if you choose WindowsZip
210
+ */
243
211
  exec?: string;
244
212
  /**
245
- *🔬 Planned
246
- *
247
- *
248
- * Args to pass to the custom exe installer[^1]
249
- *
250
- * [^1]: Only if you choose WindowsInstallerExe
251
- */
213
+ *🔬 Planned
214
+ *
215
+ *
216
+ * Args to pass to the custom exe installer[^1]
217
+ *
218
+ * [^1]: Only if you choose WindowsInstallerExe
219
+ */
252
220
  installerArgs?: (string)[];
253
221
  }
254
- /**
255
- */
256
222
  export class Prefs {
257
223
  free(): void;
258
- /**
259
- * @param {string} path
260
- * @returns {Uint8Array | undefined}
261
- */
224
+ /**
225
+ * @param {string} path
226
+ * @returns {Uint8Array | undefined}
227
+ */
262
228
  static get(path: string): Uint8Array | undefined;
263
- /**
264
- * @param {string} s
265
- * @returns {Prefs | undefined}
266
- */
229
+ /**
230
+ * @param {string} s
231
+ * @returns {Prefs | undefined}
232
+ */
267
233
  static str_to(s: string): Prefs | undefined;
268
- /**
269
- * @returns {string | undefined}
270
- */
234
+ /**
235
+ * @returns {string | undefined}
236
+ */
271
237
  convert(): string | undefined;
272
- /**
273
- * @returns {Prefs}
274
- */
238
+ /**
239
+ * @returns {Prefs}
240
+ */
275
241
  static default(): Prefs;
276
- /**
277
- */
278
242
  auto_update_apps: boolean;
279
- /**
280
- */
281
243
  install_apps: boolean;
282
- /**
283
- */
284
244
  launch_app: boolean;
285
245
  }
286
- /**
287
- */
288
246
  export class SearchEntry {
289
247
  free(): void;
290
- /**
291
- */
292
248
  id: string;
293
- /**
294
- */
295
249
  name: string;
296
- /**
297
- */
298
250
  title: string;
299
251
  }
300
- /**
301
- */
302
252
  export class ServerJSONResp {
303
253
  free(): void;
304
- /**
305
- */
306
254
  config: string;
307
- /**
308
- */
309
255
  last_updated: bigint;
310
256
  }
package/ahqstore_types.js CHANGED
@@ -1,5 +1,5 @@
1
-
2
1
  import * as wasm from "./ahqstore_types_bg.wasm";
2
+ export * from "./ahqstore_types_bg.js";
3
3
  import { __wbg_set_wasm } from "./ahqstore_types_bg.js";
4
4
  __wbg_set_wasm(wasm);
5
- export * from "./ahqstore_types_bg.js";
5
+ wasm.__wbindgen_start();