@omniplex/api-types 0.1.2 → 0.1.3

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 +18 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1043,6 +1043,8 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
1043
1043
  avatar: string;
1044
1044
  last_voted_at: string | null;
1045
1045
  last_skip_reason: string | null;
1046
+ cooldown_until: string | null;
1047
+ in_schedule: boolean;
1046
1048
  }
1047
1049
  export interface AutoVoteStatus {
1048
1050
  subscribed: boolean;
@@ -1074,6 +1076,22 @@ export interface CreatePerkPayload {
1074
1076
  id: "premium";
1075
1077
  name: string;
1076
1078
  for: string;
1079
+ promo_code?: string;
1080
+ }
1081
+ export type PromoCodeProduct = "premium" | "autovote";
1082
+ /** Returned by `POST /users/{id}/promo-codes/check`. Amounts are US cents.
1083
+ * For premium, `subtotal_cents` is the plan price after credits. */
1084
+ export interface PromoCodePreview {
1085
+ code: string;
1086
+ product: PromoCodeProduct;
1087
+ description: string;
1088
+ percent_off: number | null;
1089
+ amount_off_cents: number | null;
1090
+ duration: "once" | "repeating" | "forever";
1091
+ duration_months: number | null;
1092
+ subtotal_cents: number;
1093
+ discount_cents: number;
1094
+ total_cents: number;
1077
1095
  }
1078
1096
  export interface BoosterStatus {
1079
1097
  is_booster: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniplex/api-types",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript types for the Omniplex API (Popplio).",
5
5
  "license": "MIT",
6
6
  "type": "module",