Skip to content

Commit ae5a25f

Browse files
authored
Merge pull request #18 from topcoder-platform/develop
Delete user functionality (PM-3158)
2 parents c4a4e9b + 9754036 commit ae5a25f

37 files changed

+9606
-14
lines changed

config/default.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
API_VERSION: process.env.API_VERSION || 'v6',
99
AUTH_SECRET: process.env.AUTH_SECRET || 'mysecret',
1010
VALID_ISSUERS: process.env.VALID_ISSUERS || '["https://api.topcoder-dev.com", "https://api.topcoder.com", "https://topcoder-dev.auth0.com/", "https://auth.topcoder-dev.com/"]',
11+
IDENTITY_DB_URL: process.env.IDENTITY_DB_URL,
1112

1213
// used to get M2M token
1314
AUTH0_URL: process.env.AUTH0_URL,
@@ -69,6 +70,7 @@ module.exports = {
6970
ALL: process.env.SCOPE_MEMBERS_ALL || 'all:user_profiles'
7071
}
7172
},
73+
DELETE_USER_SCOPE: process.env.SCOPE_DELETE_USER || 'delete:user',
7274

7375
// Member identifiable info fields, copilots, admins, or M2M can get these fields
7476
// Anyone in the constants.AUTOCOMPLETE_ROLES will have access to these fields
@@ -123,4 +125,10 @@ module.exports = {
123125
USERFLOW: process.env.USERFLOW_PRIVATE_KEY
124126
},
125127
MEMBER_SERVICE_PRISMA_TIMEOUT: process.env.MEMBER_SERVICE_PRISMA_TIMEOUT ? parseInt(process.env.MEMBER_SERVICE_PRISMA_TIMEOUT, 10) : 10000,
128+
129+
MAILCHIMP: {
130+
API_KEY: process.env.MAILCHIMP_API_KEY,
131+
SERVER_PREFIX: process.env.MAILCHIMP_SERVER_PREFIX,
132+
LIST_FETCH_COUNT: process.env.MAILCHIMP_LIST_FETCH_COUNT ? Number(process.env.MAILCHIMP_LIST_FETCH_COUNT) : 1000
133+
}
126134
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "TopCoder Member V6 API",
55
"main": "app.js",
66
"scripts": {
7-
"postinstall": "prisma generate --schema=prisma/schema.prisma && prisma generate --schema=prisma/skills-schema.prisma",
7+
"postinstall": "prisma generate --schema=prisma/schema.prisma && prisma generate --schema=prisma/skills-schema.prisma && prisma generate --schema=prisma/identity-schema.prisma",
88
"start": "node app.js",
99
"start:dev": "nodemon app.js",
1010
"lint": "standard",

prisma/generated/client/edge.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prisma/generated/client/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./index"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
3+
/* eslint-disable */
4+
module.exports = { ...require('.') }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./index"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
3+
/* eslint-disable */
4+
module.exports = { ...require('.') }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./default"

0 commit comments

Comments
 (0)