diff --git a/api/routes.ts b/api/routes.ts index 5262035..c408874 100644 --- a/api/routes.ts +++ b/api/routes.ts @@ -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')), }) @@ -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', @@ -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', diff --git a/api/schema.ts b/api/schema.ts index 4ccd606..f575b94 100644 --- a/api/schema.ts +++ b/api/schema.ts @@ -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