Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch people from the Runn API and attempt to match them by their first name #7

Closed
wants to merge 1 commit into from

Conversation

hyojinaaa
Copy link
Contributor

No description provided.

@hyojinaaa hyojinaaa marked this pull request as draft November 7, 2023 11:58
export interface People {
values: Person[]
nextCursor: string
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider using OpenAPI to auto-generate types in the future, but for now, I thought it's not necessary. These have been added manually.

@@ -16,6 +16,8 @@ const schema = z.object({
.regex(/^\d\d:\d\d$/)
.default('17:00'),
OPENAI_API_KEY: z.optional(z.string()),
RUNN_API_BASE_URL: z.string(),
RUNN_API_TOKEN: z.string(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: I need to get an API token for production and add it to the .env file of the production environment


// 1. findPeopleFromList(userName)
// 2-a. could not find person -> enter Runn ID manually
// 2-b. found person -> fetch timeOffs with the person ID
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ This is the plan!

@hyojinaaa hyojinaaa closed this May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant