aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/utils/thunderstore
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/utils/thunderstore')
-rw-r--r--src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts9
-rw-r--r--src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts7
-rw-r--r--src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts9
3 files changed, 25 insertions, 0 deletions
diff --git a/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts
new file mode 100644
index 00000000..c14a83a0
--- /dev/null
+++ b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts
@@ -0,0 +1,9 @@
+import { ThunderstoreModVersion } from "./ThunderstoreModVersion";
+
+export interface ThunderstoreMod {
+ name: string;
+ owner: string;
+ rating_score: number;
+ package_url: string;
+ versions: ThunderstoreModVersion[];
+}
diff --git a/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts b/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts
new file mode 100644
index 00000000..f2351226
--- /dev/null
+++ b/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts
@@ -0,0 +1,7 @@
+export enum ThunderstoreModStatus {
+ INSTALLED,
+ BEING_INSTALLED,
+ BEING_UPDATED,
+ NOT_INSTALLED,
+ OUTDATED
+}
diff --git a/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts b/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts
new file mode 100644
index 00000000..f53f0362
--- /dev/null
+++ b/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts
@@ -0,0 +1,9 @@
+export interface ThunderstoreModVersion {
+ full_name: string;
+ description: string;
+ icon: string;
+ version_number: string;
+ download_url: string;
+ downloads: number;
+ date_created: string;
+}