Skip to content

Commit 2cb9edc

Browse files
Add support for challenge terms
1 parent a1fe4a3 commit 2cb9edc

15 files changed

+1802
-68
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The following parameters can be set in config files or in env variables:
6464
- RESOURCES_API_URL: TC resources API base URL
6565
- GROUPS_API_URL: TC groups API base URL
6666
- PROJECTS_API_URL: TC projects API base URL
67+
- TERMS_API_URL: TC Terms API Base URL
6768
- COPILOT_RESOURCE_ROLE_IDS: copilot resource role ids allowed to upload attachment
6869
- HEALTH_CHECK_TIMEOUT: health check timeout in milliseconds
6970
- SCOPES: the configurable M2M token scopes, refer `config/default.js` for more details

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = {
4747
RESOURCES_API_URL: process.env.RESOURCES_API_URL || 'http://localhost:4000/v5/resources',
4848
GROUPS_API_URL: process.env.GROUPS_API_URL || 'http://localhost:4000/v5/groups',
4949
PROJECTS_API_URL: process.env.PROJECTS_API_URL || 'http://localhost:4000/v5/projects',
50+
TERMS_API_URL: process.env.TERMS_API_URL || 'http://localhost:4000/v5/terms',
5051
// copilot resource role ids allowed to upload attachment
5152
COPILOT_RESOURCE_ROLE_IDS: process.env.COPILOT_RESOURCE_ROLE_IDS
5253
? process.env.COPILOT_RESOURCE_ROLE_IDS.split(',') : ['10ba038e-48da-487b-96e8-8d3b99b6d18b'],

config/test.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swagger.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,6 +2065,25 @@ definitions:
20652065
type: integer
20662066
description: the winner placement
20672067
example: 1
2068+
terms:
2069+
type: array
2070+
items:
2071+
properties:
2072+
id:
2073+
type: integer
2074+
description: The terms of use id
2075+
agreeabilityType:
2076+
type: string
2077+
description: the terms of use agreeability type
2078+
title:
2079+
type: string
2080+
description: the terms of use title
2081+
url:
2082+
type: string
2083+
description: the terms of use url
2084+
templateId:
2085+
type: string
2086+
description: the template id of the terms of use (only valid when the terms agreeability type is 'Docusignable')
20682087
numOfSubmissions:
20692088
type: integer
20702089
description: number of submissions
@@ -2254,6 +2273,11 @@ definitions:
22542273
type: string
22552274
privateDescription:
22562275
type: string
2276+
termsIds:
2277+
type : array
2278+
description: The ids of the terms of use to add for the challenge
2279+
items:
2280+
type: number
22572281
challengeSettings:
22582282
type: array
22592283
items:
@@ -2450,6 +2474,25 @@ definitions:
24502474
type: integer
24512475
description: the winner placement
24522476
example: 1
2477+
terms:
2478+
type: array
2479+
items:
2480+
properties:
2481+
id:
2482+
type: integer
2483+
description: The terms of use id
2484+
agreeabilityType:
2485+
type: string
2486+
description: the terms of use agreeability type
2487+
title:
2488+
type: string
2489+
description: the terms of use title
2490+
url:
2491+
type: string
2492+
description: the terms of use url
2493+
templateId:
2494+
type: string
2495+
description: the template id of the terms of use (only valid when the terms agreeability type is 'Docusignable')
24532496
numOfSubmissions:
24542497
type: integer
24552498
description: number of submissions

0 commit comments

Comments
 (0)