@omniplex/api-types 0.3.0 → 0.4.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.
- package/dist/index.d.ts +63 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -994,6 +994,53 @@ export interface ListIndexServer {
|
|
|
994
994
|
spotlight: IndexServer[];
|
|
995
995
|
recently_bumped?: IndexServer[];
|
|
996
996
|
}
|
|
997
|
+
export type PageGradient = "aurora" | "sunset" | "ocean" | "forest" | "candy" | "midnight" | "ember" | "mono";
|
|
998
|
+
export interface PageStyle {
|
|
999
|
+
gradient: PageGradient | null;
|
|
1000
|
+
accent: string | null;
|
|
1001
|
+
image_version: string | null;
|
|
1002
|
+
dim: number;
|
|
1003
|
+
blur: number;
|
|
1004
|
+
image_position: "top" | "center" | "bottom";
|
|
1005
|
+
fixed: boolean;
|
|
1006
|
+
}
|
|
1007
|
+
export interface ManagedPageStyle extends PageStyle {
|
|
1008
|
+
premium: boolean;
|
|
1009
|
+
unlocked_until: string | null;
|
|
1010
|
+
pending_version: string | null;
|
|
1011
|
+
pending_since: string | null;
|
|
1012
|
+
rejected_reason: string | null;
|
|
1013
|
+
}
|
|
1014
|
+
export interface PageStyleUpdate {
|
|
1015
|
+
gradient: PageGradient | null;
|
|
1016
|
+
accent: string | null;
|
|
1017
|
+
dim: number;
|
|
1018
|
+
blur: number;
|
|
1019
|
+
image_position: "top" | "center" | "bottom";
|
|
1020
|
+
fixed: boolean;
|
|
1021
|
+
remove_image?: boolean;
|
|
1022
|
+
}
|
|
1023
|
+
export interface StatsHistoryMonth {
|
|
1024
|
+
month: string;
|
|
1025
|
+
votes: number | null;
|
|
1026
|
+
voters: number | null;
|
|
1027
|
+
approved: number | null;
|
|
1028
|
+
denied: number | null;
|
|
1029
|
+
new_bots: number;
|
|
1030
|
+
new_servers: number;
|
|
1031
|
+
new_users: number | null;
|
|
1032
|
+
}
|
|
1033
|
+
export interface StatsHistory {
|
|
1034
|
+
votes_all_time: number;
|
|
1035
|
+
votes_this_month: number;
|
|
1036
|
+
voters_all_time: number;
|
|
1037
|
+
votes_since: string | null;
|
|
1038
|
+
approvals: number;
|
|
1039
|
+
denials: number;
|
|
1040
|
+
reviews_since: string | null;
|
|
1041
|
+
months: StatsHistoryMonth[];
|
|
1042
|
+
generated_at: string;
|
|
1043
|
+
}
|
|
997
1044
|
export interface ListStats {
|
|
998
1045
|
total_bots: number;
|
|
999
1046
|
total_approved_bots: number;
|
|
@@ -1014,12 +1061,24 @@ export interface ListStats {
|
|
|
1014
1061
|
total_denied_servers: number;
|
|
1015
1062
|
total_vote_banned_servers: number;
|
|
1016
1063
|
}
|
|
1064
|
+
export type AppQuestionType = "short" | "long" | "choice" | "multi" | "yesno" | "number" | "url" | "rating";
|
|
1065
|
+
export interface AppQuestionCondition {
|
|
1066
|
+
question_id: string;
|
|
1067
|
+
values: string[];
|
|
1068
|
+
}
|
|
1017
1069
|
export interface AppQuestion {
|
|
1018
1070
|
id: string;
|
|
1019
1071
|
question: string;
|
|
1020
1072
|
paragraph: string;
|
|
1021
1073
|
placeholder: string;
|
|
1022
1074
|
short: boolean;
|
|
1075
|
+
type?: AppQuestionType;
|
|
1076
|
+
options?: string[];
|
|
1077
|
+
optional?: boolean;
|
|
1078
|
+
min_length?: number;
|
|
1079
|
+
max_length?: number;
|
|
1080
|
+
show_if?: AppQuestionCondition | null;
|
|
1081
|
+
flag?: string[];
|
|
1023
1082
|
}
|
|
1024
1083
|
export interface AppPosition {
|
|
1025
1084
|
id: string;
|
|
@@ -1122,6 +1181,10 @@ export interface BoosterPerkTarget {
|
|
|
1122
1181
|
name: string;
|
|
1123
1182
|
avatar: string;
|
|
1124
1183
|
}
|
|
1184
|
+
export interface SitePrefs {
|
|
1185
|
+
prefs: Record<string, unknown>;
|
|
1186
|
+
updated_at: string | null;
|
|
1187
|
+
}
|
|
1125
1188
|
export interface BoosterPerks {
|
|
1126
1189
|
boosting: boolean;
|
|
1127
1190
|
in_server: boolean;
|