-
Notifications
You must be signed in to change notification settings - Fork 56
/
index.ts
66 lines (61 loc) · 1.71 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { z } from 'zod'
export const MediafireArgsSchema = z.object({
0: z.string().url()
})
export const MediafireSchema = z.object({
url: z.string().url(),
url2: z.string().url(),
filename: z.string(),
filetype: z.string(),
ext: z.string(),
aploud: z.string(),
filesizeH: z.string(),
filesize: z.number()
})
export type Mediafire = z.infer<typeof MediafireSchema>
export const ZippyShareArgsSchema = z.object({
0: z.string().url()
})
export const ZippyShareSchema = z.object({
url: z.string().url(),
// url2: z.string().url(),
filename: z.string(),
filesizeH: z.string(),
filesize: z.number(),
aploud: z.string(),
lastDownload: z.string()
})
export type ZippyShareArgs = z.infer<typeof ZippyShareArgsSchema>
export type ZippyShare = z.infer<typeof ZippyShareSchema>
export const SfileMobiSearchArgsSchema = z.object({
0: z.string(),
1: z.number().min(0).optional()
})
export const SfileMobiSearchSchema = z.object({
url: z.string().url(),
filename: z.string(),
icon: z.string().url(),
type: z.string(),
filesizeH: z.string(),
filesize: z.number()
})
export const SfileMobiArgsSchema = z.object({
0: z.string().url()
})
export const SfileMobiSchema = z.object({
url: z.string().url(),
filename: z.string(),
icon: z.string(),
type: z.string(),
mimetype: z.string(),
aploud: z.string(),
aploudby: z.string(),
aploudbyUrl: z.string().url(),
aploudon: z.string(),
aploudonUrl: z.string().url(),
downloads: z.number(),
filesizeH: z.string(),
filesize: z.number()
})
export type SfileMobiSearch = z.infer<typeof SfileMobiSearchSchema>
export type SfileMobi = z.infer<typeof SfileMobiSchema>