Skip to content

Commit e5322a5

Browse files
authored
Merge pull request #139 from topcoder-platform/dev
[ PROD] - finance API release (Engagements and points supports)
2 parents 2dc714a + a4617c8 commit e5322a5

66 files changed

Lines changed: 35419 additions & 1360 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ workflows:
7474
branches:
7575
only:
7676
- dev
77+
- engagements
7778
- 'build-prod':
7879
context: org-global
7980
filters:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ main
2626

2727
.env
2828
node_modules
29-
dist
29+
dist

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ The API uses role-based access control with the following roles:
311311
- `User` - Regular authenticated users (withdrawals, view own data)
312312
- `PaymentAdmin` - Full administrative access
313313
- `PaymentEditor` - Edit payments and winnings
314+
- `TaskManager` - Create and manage engagement winnings
315+
- `TalentManager` - Create and manage engagement winnings
314316
- `PaymentViewer` - Read-only access to payment data
315317
- `M2M` - Machine-to-machine service access
316318

docs/ARCHITECTURE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Controllers handle HTTP requests and route them to appropriate services:
107107

108108
- User winnings CRUD operations
109109
- View personal winnings history
110-
- Requires: `User` role
110+
- Requires: `User` role for member endpoints; create winnings requires `PaymentAdmin`, `PaymentEditor`, `TaskManager`, or `TalentManager` roles
111111

112112
**WithdrawalController** (`/v5/finance/withdraw`)
113113

@@ -217,6 +217,7 @@ Controllers handle HTTP requests and route them to appropriate services:
217217
- `RolesGuard` - Role-based access control
218218
- `TokenValidatorMiddleware` - Token parsing and extraction
219219
- Supports both user JWT and M2M tokens
220+
- Roles include `User`, `PaymentAdmin`, `PaymentEditor`, `PaymentViewer`, `TaskManager`, and `TalentManager`
220221

221222
**Request Context**
222223

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@nestjs/platform-express": "^11.1.7",
2727
"@nestjs/swagger": "^11.2.1",
2828
"@prisma/client": "^6.18.0",
29+
"@topcoder/billing-accounts-api-v6": "github:topcoder-platform/billing-accounts-api-v6#develop",
2930
"class-transformer": "^0.5.1",
3031
"class-validator": "^0.14.2",
3132
"cors": "^2.8.5",
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('#main-entry-point') }
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)