feat: subscriptions import api
This commit is contained in:
parent
ce54a68817
commit
64979c4a12
94
src/hono.ts
94
src/hono.ts
|
|
@ -3139,15 +3139,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|||
status: 200;
|
||||
};
|
||||
};
|
||||
} & {
|
||||
[x: `/import/${string}`]: {
|
||||
[x: `$${Lowercase<string>}`]: {
|
||||
input: Partial<hono.ValidationTargets>;
|
||||
output: any;
|
||||
outputFormat: string;
|
||||
status: hono_utils_http_status.StatusCode;
|
||||
};
|
||||
};
|
||||
} & {
|
||||
[x: `/entries/read-histories/${string}`]: {
|
||||
[x: `$${Lowercase<string>}`]: {
|
||||
|
|
@ -3361,85 +3352,12 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
|
|||
};
|
||||
};
|
||||
} & {
|
||||
"/subscriptions": {
|
||||
$get: {
|
||||
input: {
|
||||
query: {
|
||||
view?: string | undefined;
|
||||
userId?: string | undefined;
|
||||
};
|
||||
};
|
||||
output: {
|
||||
data: {
|
||||
title: string | null;
|
||||
view: number;
|
||||
userId: string;
|
||||
feeds: {
|
||||
description: string | null;
|
||||
title: string | null;
|
||||
id: string;
|
||||
image: string | null;
|
||||
url: string;
|
||||
siteUrl: string | null;
|
||||
checkedAt: string;
|
||||
lastModifiedHeader: string | null;
|
||||
etagHeader: string | null;
|
||||
ttl: number | null;
|
||||
errorMessage: string | null;
|
||||
errorAt: string | null;
|
||||
ownerUserId: string | null;
|
||||
};
|
||||
feedId: string;
|
||||
category: string | null;
|
||||
isPrivate: boolean;
|
||||
}[];
|
||||
code: 0;
|
||||
};
|
||||
outputFormat: "json";
|
||||
status: 200;
|
||||
};
|
||||
$post: {
|
||||
input: {
|
||||
json: {
|
||||
view: number;
|
||||
url: string;
|
||||
category?: string | null | undefined;
|
||||
isPrivate?: boolean | undefined;
|
||||
};
|
||||
};
|
||||
output: {
|
||||
code: 0;
|
||||
};
|
||||
outputFormat: "json";
|
||||
status: 200;
|
||||
};
|
||||
$delete: {
|
||||
input: {
|
||||
json: {
|
||||
url?: string | undefined;
|
||||
feedId?: string | undefined;
|
||||
};
|
||||
};
|
||||
output: {
|
||||
code: 0;
|
||||
};
|
||||
outputFormat: "json";
|
||||
status: 200;
|
||||
};
|
||||
$patch: {
|
||||
input: {
|
||||
json: {
|
||||
view: number;
|
||||
feedId: string;
|
||||
category?: string | null | undefined;
|
||||
isPrivate?: boolean | undefined;
|
||||
};
|
||||
};
|
||||
output: {
|
||||
code: 0;
|
||||
};
|
||||
outputFormat: "json";
|
||||
status: 200;
|
||||
[x: `/subscriptions/${string}`]: {
|
||||
[x: `$${Lowercase<string>}`]: {
|
||||
input: Partial<hono.ValidationTargets>;
|
||||
output: any;
|
||||
outputFormat: string;
|
||||
status: hono_utils_http_status.StatusCode;
|
||||
};
|
||||
};
|
||||
}, "/">;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export function DiscoverImport() {
|
|||
conflictItems: FeedResponseList
|
||||
parsedErrorItems: FeedResponseList
|
||||
}
|
||||
}>("/import", {
|
||||
}>("/subscriptions/import", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue