mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-22 19:08:59 +02:00
feat: complete backend models
This commit is contained in:
parent
0c25b35e25
commit
e507d0e139
@ -20,17 +20,20 @@ export type BackendAnnouncement = {
|
|||||||
title: string;
|
title: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BackendLatestPatchesRelease = {
|
type BackendAssetRelease = {
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
description: string;
|
description: string;
|
||||||
download_url: string;
|
download_url: string;
|
||||||
signature_download_url?: string;
|
|
||||||
version: string;
|
version: string;
|
||||||
};
|
};
|
||||||
|
export type BackendLatestPatchesRelease = BackendAssetRelease & { signature_download_url?: string };
|
||||||
|
export type BackendLatestManagerRelease = BackendAssetRelease;
|
||||||
|
|
||||||
export type BackendLatestPatchesVersion = {
|
type BackendAssetVersion = {
|
||||||
version: string;
|
version: string;
|
||||||
};
|
};
|
||||||
|
export type BackendLatestPatchesVersion = BackendAssetVersion;
|
||||||
|
export type BackendLatestManagerVersion = BackendAssetVersion;
|
||||||
|
|
||||||
export type BackendCompatiblePackage = Record<string, string[]>;
|
export type BackendCompatiblePackage = Record<string, string[]>;
|
||||||
export type BackendPatchOptionValue = Record<string, string | number>;
|
export type BackendPatchOptionValue = Record<string, string | number>;
|
||||||
@ -47,12 +50,6 @@ export type BackendPatch = {
|
|||||||
options: BackendPatchOption[];
|
options: BackendPatchOption[];
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
export type BackendAssetPublicKey = {
|
|
||||||
patches_public_key: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type BackendToken = {
|
export type BackendToken = {
|
||||||
token: string;
|
token: string;
|
||||||
};
|
};
|
||||||
@ -63,7 +60,6 @@ export type BackendContributor = {
|
|||||||
name: string;
|
name: string;
|
||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BackendContributable = {
|
export type BackendContributable = {
|
||||||
contributors: BackendContributor[];
|
contributors: BackendContributor[];
|
||||||
name: string;
|
name: string;
|
||||||
@ -74,8 +70,7 @@ export type BackendGpgKey = {
|
|||||||
id: string;
|
id: string;
|
||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
export type BackendTeamMember = {
|
||||||
export type BackendMember = {
|
|
||||||
avatar_url: string;
|
avatar_url: string;
|
||||||
bio?: string;
|
bio?: string;
|
||||||
gpg_key?: BackendGpgKey;
|
gpg_key?: BackendGpgKey;
|
||||||
@ -83,46 +78,28 @@ export type BackendMember = {
|
|||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BackendAboutBranding = {
|
type BackendAboutContact = {
|
||||||
logo: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type BackendAboutContact = {
|
|
||||||
email: string;
|
email: string;
|
||||||
};
|
};
|
||||||
|
type BackendAboutUrl = {
|
||||||
export type BackendAboutLink = {
|
|
||||||
name: string;
|
name: string;
|
||||||
preferred?: boolean;
|
preferred: boolean;
|
||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
type BackendAboutWallet = {
|
||||||
export type BackendAboutWallet = {
|
|
||||||
address: string;
|
address: string;
|
||||||
currency_code: string;
|
currency_code: string;
|
||||||
network: string;
|
network: string;
|
||||||
preferred?: boolean;
|
preferred: boolean;
|
||||||
};
|
};
|
||||||
|
type BackendAboutDonations = {
|
||||||
export type BackendAboutDonations = {
|
links: BackendAboutUrl[];
|
||||||
links?: BackendAboutLink[];
|
wallets: BackendAboutWallet[];
|
||||||
wallets?: BackendAboutWallet[];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BackendAboutSocial = {
|
|
||||||
name: string;
|
|
||||||
preferred?: boolean;
|
|
||||||
url: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type BackendAbout = {
|
export type BackendAbout = {
|
||||||
about: string;
|
contact: BackendAboutContact;
|
||||||
branding?: BackendAboutBranding;
|
donations: BackendAboutDonations;
|
||||||
contact?: BackendAboutContact;
|
socials: BackendAboutUrl[];
|
||||||
donations?: BackendAboutDonations;
|
|
||||||
keys: string;
|
|
||||||
name: string;
|
|
||||||
socials?: BackendAboutSocial[];
|
|
||||||
status: string;
|
status: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
src/types.ts
Normal file
2
src/types.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export type SHA256AuthHeader =
|
||||||
|
`Digest username="${string}", realm="${string}", nonce="${string}", uri="${string}", algorithm=${string}, response="${string}"`;
|
Loading…
x
Reference in New Issue
Block a user