fb / lib /api-client-react /src /generated /api.schemas.ts
sare26's picture
Upload 83 files
312c2e2 verified
Raw
History Blame Contribute Delete
1.43 kB
/**
* Generated by orval v8.5.3 🍺
* Do not edit manually.
* Api
* API specification for FB Group Publisher PRO
* OpenAPI spec version: 0.1.0
*/
export interface HealthStatus {
status: string;
}
export type SubscriptionStateStatus =
(typeof SubscriptionStateStatus)[keyof typeof SubscriptionStateStatus];
export const SubscriptionStateStatus = {
none: "none",
trialing: "trialing",
active: "active",
cancelled: "cancelled",
suspended: "suspended",
expired: "expired",
} as const;
export interface SubscriptionState {
status: SubscriptionStateStatus;
/** @nullable */
trialEnd?: string | null;
/** @nullable */
currentPeriodEnd?: string | null;
/** @nullable */
paypalSubscriptionId?: string | null;
hasAccess: boolean;
}
export interface MeResponse {
userId: string;
/** @nullable */
email?: string | null;
subscription: SubscriptionState;
}
export interface CreateSubscriptionResponse {
subscriptionId: string;
approvalUrl: string;
}
export interface ActivateSubscriptionBody {
subscriptionId: string;
}
export interface SavedList {
id: number;
name: string;
groupIds: string[];
createdAt: string;
}
export type ListSavedListsResponse = SavedList[];
export interface CreateSavedListBody {
/**
* @minLength 1
* @maxLength 80
*/
name: string;
/** @minItems 1 */
groupIds: string[];
}
export type PaypalWebhookBody = { [key: string]: unknown };