-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53ce6a2
commit 8c07dec
Showing
11 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/components/src/apis/videos.ts → packages/components/src/apis/feeds.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const ENDPOINTS = { | ||
VIDEOS: '/feeds', | ||
FEEDS: '/feeds', | ||
RECOMMENDATIONS: '/recommendations', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { z } from 'zod' | ||
import { FeedsAttributesSchema, FeedsAttributes } from '../common/feeds' | ||
|
||
// Get | ||
export const GetResponseSchema = z.object({ | ||
data: FeedsAttributesSchema, | ||
}) | ||
export type GetResponse = z.infer<typeof GetResponseSchema> | ||
|
||
export const GetRequestSchema = z.object({ | ||
id: z.string(), | ||
}) | ||
export type GetRequest = z.infer<typeof GetRequestSchema> | ||
|
||
// Search | ||
export const SearchResponseSchema = z.object({ | ||
data: z.array(FeedsAttributesSchema), | ||
}) | ||
export type SearchResponse = z.infer<typeof SearchResponseSchema> | ||
|
||
export const SearchRequestSchema = z.object({ | ||
keywords: z.string(), | ||
count: z.string(), | ||
}) | ||
export type SearchRequest = z.infer<typeof SearchRequestSchema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export * from './common/videos' | ||
export * from './common/feeds' | ||
export * as FeedsAPI from './feeds/api' | ||
export * as RecommendationTagsAPI from './recommendations/tags/api' | ||
export * as RecommendationKeywordsAPI from './recommendations/keywords/api' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Get | ||
import { z } from 'zod' | ||
|
||
export const GetResponseSchema = z.object({ | ||
data: z.object({ | ||
keywords: z.array(z.string()), | ||
}), | ||
}) | ||
export type GetResponse = z.infer<typeof GetResponseSchema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Get | ||
import { z } from 'zod' | ||
|
||
export const GetResponseSchema = z.object({ | ||
data: z.object({ | ||
tags: z.array(z.string()), | ||
}), | ||
}) | ||
export type GetResponse = z.infer<typeof GetResponseSchema> |
2 changes: 1 addition & 1 deletion
2
.../features/get_recommendation_keywords/v1/dtos/get_recommendation_keywords_response_dto.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters