-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a38e9e
commit 0f59053
Showing
113 changed files
with
74 additions
and
104 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
...s/authservice/src/dto/registerUser.dto.ts → apps/authservice/src/dto/registerUser.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
import { IsEmail, IsNotEmpty, IsPhoneNumber, IsString, Length } from "class-validator"; | ||
import { IsEmail, IsNotEmpty, IsPhoneNumber, IsString, Length } from 'class-validator'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class RegisterUserDto { | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@ApiProperty() | ||
firstName: string | ||
firstName: string; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@ApiProperty() | ||
lastName: string | ||
lastName: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
@IsNotEmpty() | ||
@ApiProperty() | ||
phoneNumber: string; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@IsEmail() | ||
@ApiProperty() | ||
email: string; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@Length(5, 20) | ||
@ApiProperty() | ||
password: string; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions
20
...ransferservice/src/dto/fund-wallet.dto.ts → ...ransferservice/src/dto/fund-wallet.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { IsNotEmpty, IsNumber, IsString } from "class-validator"; | ||
import { IsNotEmpty, IsNumber, IsString } from 'class-validator'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class FundWalletDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
amount: number | ||
amount: number; | ||
} | ||
|
||
export class CompleteWalletFundingDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@ApiProperty() | ||
paystackReference: string | ||
paystackReference: string; | ||
} | ||
|
||
export class WalletToWalletTransferDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
amount: number | ||
amount: number; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
receiverId: number | ||
} | ||
receiverId: number; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 13 additions & 14 deletions
27
...rvice/src/walletManager/dto/wallet.dto.ts → ...rvice/src/walletManager/dto/wallet.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,42 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { IsNotEmpty, IsNumber, IsString } from "class-validator"; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsNumber, IsString } from 'class-validator'; | ||
|
||
export class CreateWalletDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
userId: number; | ||
} | ||
|
||
export class FundWalletDto extends CreateWalletDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
amount: number; | ||
} | ||
|
||
export class WalletToWalletTransferDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsString() | ||
@ApiProperty() | ||
amount: number | ||
amount: number; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
receiverId: number | ||
receiverId: number; | ||
|
||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
senderId: number | ||
senderId: number; | ||
} | ||
|
||
|
||
export class GetWalletDto extends CreateWalletDto { | ||
} | ||
export class GetWalletDto extends CreateWalletDto {} | ||
|
||
export class UpdateWalletBalanceDto extends CreateWalletDto { | ||
@ApiProperty() | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty() | ||
amount: number; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:alpine As development | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the Prisma service code into the container | ||
COPY . . | ||
|
||
# Command to run Prisma migration | ||
CMD ["npx", "prisma", "migrate", "deploy", "--preview-feature"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.