vibe: what the FUCK is going on
This commit is contained in:
+1
-54
@@ -30,6 +30,7 @@ import {
|
||||
import { sse } from "@/lib/db/sse-endpoints";
|
||||
import { checkSlip } from "@/lib/payment";
|
||||
import { getPostHogClient } from "@/lib/posthog-server";
|
||||
import type { SlipokResponse } from "@/lib/payment-types";
|
||||
|
||||
const { DISCORD_WEBHOOK_URL, DISCORD_CLIENT_ID, BASE_URL } =
|
||||
process.env as Record<string, string>;
|
||||
@@ -551,57 +552,3 @@ export async function debugUploadSlip(sid: string, image: File) {
|
||||
|
||||
revalidatePath("/rubgram/admin");
|
||||
}
|
||||
|
||||
export type SlipokResponse =
|
||||
| {
|
||||
success: true;
|
||||
data: {
|
||||
success: true;
|
||||
message: string;
|
||||
rqUID: string;
|
||||
language: string;
|
||||
transRef: string;
|
||||
sendingBank: string;
|
||||
receivingBank: string;
|
||||
transDate: string;
|
||||
transTime: string;
|
||||
sender: {
|
||||
displayName: string;
|
||||
name: string;
|
||||
proxy: {
|
||||
type: null;
|
||||
value: null;
|
||||
};
|
||||
account: {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
};
|
||||
receiver: {
|
||||
displayName: string;
|
||||
name: string;
|
||||
proxy: {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
account: {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
};
|
||||
amount: number;
|
||||
paidLocalAmount: number;
|
||||
paidLocalCurrency: string;
|
||||
countryCode: string;
|
||||
transFeeAmount: number;
|
||||
ref1: string;
|
||||
ref2: string;
|
||||
ref3: string;
|
||||
toMerchantId: string;
|
||||
};
|
||||
}
|
||||
| {
|
||||
success: false;
|
||||
code: number;
|
||||
message: string;
|
||||
};
|
||||
|
||||
+1
-12
@@ -1,20 +1,9 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { sse } from "@/lib/db/sse-endpoints";
|
||||
import type { YoutubeLiveInfo } from "@/lib/youtube-types";
|
||||
|
||||
export const revalidate = 900;
|
||||
|
||||
export type YoutubeLiveInfo =
|
||||
| {
|
||||
url: string;
|
||||
thumbnails: {
|
||||
url: string;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
title: string;
|
||||
}
|
||||
| "none";
|
||||
|
||||
type APISearchResource = {
|
||||
kind: "youtube#searchResult";
|
||||
etag: string;
|
||||
|
||||
Reference in New Issue
Block a user