@omniplex/api-types 0.1.2 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +21 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -997,6 +997,8 @@ export interface AppPosition {
997
997
  requires_main_server?: boolean;
998
998
  /** Go duration string, e.g. "48h0m0s" — 0s means no cooldown. */
999
999
  cooldown: string;
1000
+ help_url?: string;
1001
+ help_label?: string;
1000
1002
  }
1001
1003
  export interface AppMeta {
1002
1004
  positions: AppPosition[];
@@ -1043,6 +1045,8 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
1043
1045
  avatar: string;
1044
1046
  last_voted_at: string | null;
1045
1047
  last_skip_reason: string | null;
1048
+ cooldown_until: string | null;
1049
+ in_schedule: boolean;
1046
1050
  }
1047
1051
  export interface AutoVoteStatus {
1048
1052
  subscribed: boolean;
@@ -1074,6 +1078,22 @@ export interface CreatePerkPayload {
1074
1078
  id: "premium";
1075
1079
  name: string;
1076
1080
  for: string;
1081
+ promo_code?: string;
1082
+ }
1083
+ export type PromoCodeProduct = "premium" | "autovote";
1084
+ /** Returned by `POST /users/{id}/promo-codes/check`. Amounts are US cents.
1085
+ * For premium, `subtotal_cents` is the plan price after credits. */
1086
+ export interface PromoCodePreview {
1087
+ code: string;
1088
+ product: PromoCodeProduct;
1089
+ description: string;
1090
+ percent_off: number | null;
1091
+ amount_off_cents: number | null;
1092
+ duration: "once" | "repeating" | "forever";
1093
+ duration_months: number | null;
1094
+ subtotal_cents: number;
1095
+ discount_cents: number;
1096
+ total_cents: number;
1077
1097
  }
1078
1098
  export interface BoosterStatus {
1079
1099
  is_booster: boolean;
@@ -1148,7 +1168,7 @@ export interface UserNotification {
1148
1168
  export interface NotifGetList {
1149
1169
  notifications: UserNotification[];
1150
1170
  }
1151
- export type AlertCategory = "votes" | "bot_server_reviews" | "payments" | "shop" | "webhooks" | "staff_applications" | "reports" | "account_security";
1171
+ export type AlertCategory = "votes" | "bot_server_reviews" | "payments" | "shop" | "webhooks" | "staff_applications" | "reports" | "account_security" | "staff";
1152
1172
  export type NotificationPrefs = Partial<Record<AlertCategory, boolean>>;
1153
1173
  export interface ResolvedReminder {
1154
1174
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniplex/api-types",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript types for the Omniplex API (Popplio).",
5
5
  "license": "MIT",
6
6
  "type": "module",