Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ const projectOutput = OBJ({
teamId: STR('The ID of the team that owns the project'),
isPublic: BOOL('Is the project public?'),
repositoryUrl: optional(STR('The URL of the project repository')),
jiraProjectKey: optional(STR('The Jira project key, e.g. "TNT"')),
discordChannelId: optional(STR('The ID of the project Discord channel')),
createdAt: optional(NUM('The creation date of the project')),
updatedAt: optional(NUM('The last update date of the project')),
})
Expand Down Expand Up @@ -349,6 +351,10 @@ const defs = {
teamId: STR('The ID of the team that owns the project'),
isPublic: BOOL('Is the project public?'),
repositoryUrl: optional(STR('The URL of the project repository')),
jiraProjectKey: optional(STR('The Jira project key, e.g. "TNT"')),
discordChannelId: optional(
STR('The ID of the project Discord channel'),
),
}, 'Create a new project'),
output: projectOutput,
description: 'Create a new project',
Expand All @@ -375,6 +381,10 @@ const defs = {
teamId: STR('The ID of the team that owns the project'),
isPublic: BOOL('Is the project public?'),
repositoryUrl: optional(STR('The URL of the project repository')),
jiraProjectKey: optional(STR('The Jira project key, e.g. "TNT"')),
discordChannelId: optional(
STR('The ID of the project Discord channel'),
),
}),
output: projectOutput,
description: 'Update a project by ID',
Expand Down
2 changes: 2 additions & 0 deletions api/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export const ProjectDef = OBJ({
teamId: STR('The ID of the team that owns the project'),
isPublic: BOOL('Is the project public?'),
repositoryUrl: optional(STR('The URL of the project repository')),
jiraProjectKey: optional(STR('The Jira project key, e.g. "TNT"')),
discordChannelId: optional(STR('The ID of the project Discord channel')),
}, 'The project schema definition')
export type Project = Asserted<typeof ProjectDef>

Expand Down
Loading