@omniplex/api-types 0.1.1 → 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.
- package/dist/index.d.ts +31 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -605,8 +605,19 @@ export interface User {
|
|
|
605
605
|
pinned_target_id?: string | null;
|
|
606
606
|
}
|
|
607
607
|
export interface Vote {
|
|
608
|
-
|
|
608
|
+
itag: string | null;
|
|
609
|
+
target_type: string;
|
|
610
|
+
target_id: string;
|
|
611
|
+
author: string;
|
|
612
|
+
upvote: boolean;
|
|
613
|
+
void: boolean;
|
|
614
|
+
void_reason: string | null;
|
|
615
|
+
voided_at: string | null;
|
|
609
616
|
created_at: string;
|
|
617
|
+
vote_num: number;
|
|
618
|
+
credit_redeem: string | null;
|
|
619
|
+
immutable: boolean;
|
|
620
|
+
auto: boolean;
|
|
610
621
|
}
|
|
611
622
|
export interface UserVote {
|
|
612
623
|
has_voted: boolean;
|
|
@@ -1032,6 +1043,8 @@ export interface AutoVoteTarget extends AutoVoteTargetInput {
|
|
|
1032
1043
|
avatar: string;
|
|
1033
1044
|
last_voted_at: string | null;
|
|
1034
1045
|
last_skip_reason: string | null;
|
|
1046
|
+
cooldown_until: string | null;
|
|
1047
|
+
in_schedule: boolean;
|
|
1035
1048
|
}
|
|
1036
1049
|
export interface AutoVoteStatus {
|
|
1037
1050
|
subscribed: boolean;
|
|
@@ -1063,6 +1076,22 @@ export interface CreatePerkPayload {
|
|
|
1063
1076
|
id: "premium";
|
|
1064
1077
|
name: string;
|
|
1065
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;
|
|
1066
1095
|
}
|
|
1067
1096
|
export interface BoosterStatus {
|
|
1068
1097
|
is_booster: boolean;
|
|
@@ -1330,6 +1359,7 @@ export type ChangelogProject = "popplio" | "omniplex" | "keel";
|
|
|
1330
1359
|
export interface ChangelogEntry {
|
|
1331
1360
|
itag: string;
|
|
1332
1361
|
project: ChangelogProject;
|
|
1362
|
+
package?: string | null;
|
|
1333
1363
|
version: string;
|
|
1334
1364
|
added: string[];
|
|
1335
1365
|
updated: string[];
|