|
1 | 1 | export enum SYSTEM {
|
2 | 2 | LINUX = 'linux',
|
3 | 3 | UNKNOWN = 'unknown',
|
4 |
| - WINDOWS = 'windows' |
| 4 | + WINDOWS = 'windows', |
5 | 5 | }
|
6 | 6 |
|
7 | 7 | export type OperatingSystem = {
|
8 |
| - name: SYSTEM |
9 |
| - label: Uppercase<SYSTEM> |
10 |
| -} |
| 8 | + name: SYSTEM; |
| 9 | + label: Uppercase<SYSTEM>; |
| 10 | +}; |
11 | 11 |
|
12 | 12 | export type Repository = {
|
13 |
| - name: string |
14 |
| - namespace: string |
15 |
| - description: string |
16 |
| - type: ImageType |
17 |
| - pull_count: string |
18 |
| - is_automated: boolean |
19 |
| - is_official: boolean |
20 |
| - is_trusted: boolean |
21 |
| - last_pushed_at: string |
22 |
| - last_pulled_at: string |
23 |
| -} |
| 13 | + name: string; |
| 14 | + namespace: string; |
| 15 | + description: string; |
| 16 | + type: ImageType; |
| 17 | + pull_count: string; |
| 18 | + is_automated: boolean; |
| 19 | + is_official: boolean; |
| 20 | + is_trusted: boolean; |
| 21 | + last_pushed_at: string; |
| 22 | + last_pulled_at: string; |
| 23 | +}; |
24 | 24 |
|
25 | 25 | export type Architecture = {
|
26 |
| - name: string |
27 |
| - label: string |
28 |
| -} |
| 26 | + name: string; |
| 27 | + label: string; |
| 28 | +}; |
29 | 29 |
|
30 | 30 | export type RatePlanItem = {
|
31 |
| - id: string |
32 |
| - repositories: Repository[] |
33 |
| - operating_systems: OperatingSystem[] |
34 |
| - architectures: Architecture[] |
35 |
| -} |
| 31 | + id: string; |
| 32 | + repositories: Repository[]; |
| 33 | + operating_systems: OperatingSystem[]; |
| 34 | + architectures: Architecture[]; |
| 35 | +}; |
36 | 36 |
|
37 | 37 | export type CategoryItem = {
|
38 |
| - slug: string |
39 |
| - name: string |
40 |
| -} |
| 38 | + slug: string; |
| 39 | + name: string; |
| 40 | +}; |
41 | 41 |
|
42 |
| -export type ImageType = 'store' | 'community' | 'image' | 'verified_publisher' |
| 42 | +export type ImageType = 'store' | 'community' | 'image' | 'verified_publisher'; |
43 | 43 |
|
44 | 44 | export type ImageDetail = {
|
45 |
| - id: string |
46 |
| - name: string |
47 |
| - slug: string |
48 |
| - type: ImageType |
49 |
| - created_at: string |
50 |
| - updated_at: string |
51 |
| - short_description: string |
52 |
| - source: ImageType |
53 |
| - star_count: number |
54 |
| - extension_reviewed: boolean |
| 45 | + id: string; |
| 46 | + name: string; |
| 47 | + slug: string; |
| 48 | + type: ImageType; |
| 49 | + created_at: string; |
| 50 | + updated_at: string; |
| 51 | + short_description: string; |
| 52 | + source: ImageType; |
| 53 | + star_count: number; |
| 54 | + extension_reviewed: boolean; |
55 | 55 | logo_url: {
|
56 |
| - large: string |
57 |
| - small: string |
58 |
| - } |
59 |
| - categories: CategoryItem[] |
60 |
| - rate_plans: RatePlanItem[] |
61 |
| -} |
| 56 | + large: string; |
| 57 | + small: string; |
| 58 | + }; |
| 59 | + categories: CategoryItem[]; |
| 60 | + rate_plans: RatePlanItem[]; |
| 61 | +}; |
62 | 62 |
|
63 | 63 | export type ImageDetailForTag = ImageDetail & {
|
64 |
| - full_description: string |
65 |
| - hub_user: string |
66 |
| - namespace: string |
67 |
| - pull_count: number |
68 |
| - repository_type: ImageType |
69 |
| - star_count: number |
70 |
| - status: number |
71 |
| - user: string |
72 |
| - last_updated: string |
73 |
| - content_types: ImageType[] |
74 |
| -} |
| 64 | + full_description: string; |
| 65 | + hub_user: string; |
| 66 | + namespace: string; |
| 67 | + pull_count: number; |
| 68 | + repository_type: ImageType; |
| 69 | + star_count: number; |
| 70 | + status: number; |
| 71 | + user: string; |
| 72 | + last_updated: string; |
| 73 | + content_types: ImageType[]; |
| 74 | + description: string; |
| 75 | +}; |
0 commit comments