ahqstore-types 0.0.1

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 ADDED
@@ -0,0 +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
@@ -0,0 +1,254 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * @param {string | undefined} [token]
5
+ * @returns {Promise<string | undefined>}
6
+ */
7
+ export function get_commit(token?: string): Promise<string | undefined>;
8
+ /**
9
+ * @param {string} commit
10
+ * @returns {Promise<number | undefined>}
11
+ */
12
+ export function get_total_maps(commit: string): Promise<number | undefined>;
13
+ /**
14
+ * @param {string} commit
15
+ * @param {string} id
16
+ * @returns {Promise<(SearchEntry)[] | undefined>}
17
+ */
18
+ export function get_search(commit: string, id: string): Promise<(SearchEntry)[] | undefined>;
19
+ /**
20
+ * @param {string} commit
21
+ * @param {string} id
22
+ * @returns {Promise<any | undefined>}
23
+ */
24
+ export function get_map(commit: string, id: string): Promise<any | undefined>;
25
+ /**
26
+ * @param {string} commit
27
+ * @param {string} id
28
+ * @returns {Promise<(string)[] | undefined>}
29
+ */
30
+ export function get_devs_apps(commit: string, id: string): Promise<(string)[] | undefined>;
31
+ /**
32
+ * @param {string} commit
33
+ * @param {string} id
34
+ * @returns {Promise<DevData | undefined>}
35
+ */
36
+ export function get_dev_data(commit: string, id: string): Promise<DevData | undefined>;
37
+ /**
38
+ * @param {string} commit
39
+ * @param {string} app_id
40
+ * @param {string} asset
41
+ * @returns {Promise<Uint8Array | undefined>}
42
+ */
43
+ export function get_app_asset(commit: string, app_id: string, asset: string): Promise<Uint8Array | undefined>;
44
+ /**
45
+ * @param {string} commit
46
+ * @param {string} app_id
47
+ * @returns {Promise<any | undefined>}
48
+ */
49
+ export function get_app(commit: string, app_id: string): Promise<any | undefined>;
50
+ /**
51
+ */
52
+ export enum InstallerFormat {
53
+ /**
54
+ *🎯 Stable as of v1
55
+ */
56
+ WindowsZip = 0,
57
+ /**
58
+ *🎯 Stable as of v2
59
+ *
60
+ */
61
+ WindowsInstallerMsi = 1,
62
+ /**
63
+ *🔬 Planned as of v2.5 or v3
64
+ *
65
+ *
66
+ * **Doesn't work**
67
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
68
+ *
69
+ * [^1]: You'll need to provide app's final location
70
+ */
71
+ WindowsInstallerExe = 2,
72
+ /**
73
+ *🔬 Planned as of v3
74
+ *
75
+ *
76
+ * **Doesn't work**
77
+ * **Won't be worked on, until other formats are supported**
78
+ * **⚠️ AHQ Store will act just like downloading from the web and running it ONCE[^1]**
79
+ *
80
+ * [^1]: You'll need to provide app's final location
81
+ */
82
+ WindowsUWPMsix = 3,
83
+ /**
84
+ *🎯 Stable as of v2
85
+ *
86
+ */
87
+ LinuxAppImage = 4,
88
+ /**
89
+ *🔬 Planned
90
+ */
91
+ AndroidApkZip = 5,
92
+ }
93
+ /**
94
+ */
95
+ export class AppRepo {
96
+ free(): void;
97
+ /**
98
+ * author must be your GitHub username or username of an org where you're a "visible" member
99
+ */
100
+ author: string;
101
+ /**
102
+ */
103
+ repo: string;
104
+ }
105
+ /**
106
+ */
107
+ export class DevData {
108
+ free(): void;
109
+ /**
110
+ */
111
+ avatar_url: string;
112
+ /**
113
+ */
114
+ github: string;
115
+ /**
116
+ */
117
+ id: string;
118
+ /**
119
+ */
120
+ name: string;
121
+ }
122
+ /**
123
+ */
124
+ export class DownloadUrl {
125
+ free(): void;
126
+ /**
127
+ */
128
+ asset: string;
129
+ /**
130
+ */
131
+ installerType: InstallerFormat;
132
+ /**
133
+ * This will be based on asset and releaseId
134
+ */
135
+ url: string;
136
+ }
137
+ /**
138
+ */
139
+ export class GHRepoCommit {
140
+ free(): void;
141
+ /**
142
+ */
143
+ sha: string;
144
+ }
145
+ /**
146
+ */
147
+ export class InstallerOptions {
148
+ free(): void;
149
+ /**
150
+ *🔬 Planned
151
+ *🎯 Introduced in v2
152
+ *
153
+ */
154
+ android?: InstallerOptionsAndroid;
155
+ /**
156
+ *🎯 Introduced in v1
157
+ *
158
+ */
159
+ linux?: InstallerOptionsLinux;
160
+ /**
161
+ *🎯 Introduced in v2
162
+ *
163
+ */
164
+ linuxArm64?: InstallerOptionsLinux;
165
+ /**
166
+ *🎯 Introduced in v2
167
+ *
168
+ */
169
+ linuxArm7?: InstallerOptionsLinux;
170
+ /**
171
+ *🎯 Introduced in v1
172
+ *
173
+ */
174
+ win32?: InstallerOptionsWindows;
175
+ /**
176
+ *🎯 Introduced in v2
177
+ *
178
+ */
179
+ winarm?: InstallerOptionsWindows;
180
+ }
181
+ /**
182
+ *🔬 Planned
183
+ *
184
+ */
185
+ export class InstallerOptionsAndroid {
186
+ free(): void;
187
+ /**
188
+ *🎯 Introduced in v2
189
+ *
190
+ */
191
+ assetId: number;
192
+ }
193
+ /**
194
+ *🔬 Under Development
195
+ *
196
+ */
197
+ export class InstallerOptionsLinux {
198
+ free(): void;
199
+ /**
200
+ *🎯 Introduced in v2
201
+ *
202
+ */
203
+ assetId: number;
204
+ }
205
+ /**
206
+ */
207
+ export class InstallerOptionsWindows {
208
+ free(): void;
209
+ /**
210
+ *🎯 Introduced in v2
211
+ *
212
+ */
213
+ assetId: number;
214
+ /**
215
+ * The exe to link as a shortcut[^1]
216
+ *
217
+ * [^1]: Only if you choose WindowsZip
218
+ */
219
+ exec?: string;
220
+ /**
221
+ *🔬 Planned
222
+ *
223
+ *
224
+ * Args to pass to the custom exe installer[^1]
225
+ *
226
+ * [^1]: Only if you choose WindowsInstallerExe
227
+ */
228
+ installerArgs?: (string)[];
229
+ }
230
+ /**
231
+ */
232
+ export class SearchEntry {
233
+ free(): void;
234
+ /**
235
+ */
236
+ id: string;
237
+ /**
238
+ */
239
+ name: string;
240
+ /**
241
+ */
242
+ title: string;
243
+ }
244
+ /**
245
+ */
246
+ export class ServerJSONResp {
247
+ free(): void;
248
+ /**
249
+ */
250
+ config: string;
251
+ /**
252
+ */
253
+ last_updated: bigint;
254
+ }
@@ -0,0 +1,5 @@
1
+
2
+ import * as wasm from "./ahqstore_types_bg.wasm";
3
+ import { __wbg_set_wasm } from "./ahqstore_types_bg.js";
4
+ __wbg_set_wasm(wasm);
5
+ export * from "./ahqstore_types_bg.js";