-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests for campaign application file fetch
- Loading branch information
Showing
227 changed files
with
1,988 additions
and
1,275 deletions.
There are no files selected for viewing
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
12 changes: 7 additions & 5 deletions
12
apps/api/src/domain/generated/affiliate/dto/connect-affiliate.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,5 +1,7 @@ | ||
export class ConnectAffiliateDto { | ||
id?: string | ||
affiliateCode?: string | ||
companyId?: string | ||
} | ||
|
||
export class ConnectAffiliateDto { | ||
id?: string; | ||
affiliateCode?: string; | ||
companyId?: string; | ||
} | ||
|
8 changes: 7 additions & 1 deletion
8
apps/api/src/domain/generated/affiliate/dto/create-affiliate.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,3 +1,9 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
export class CreateAffiliateDto { | ||
affiliateCode?: string | ||
affiliateCode?: string; | ||
} |
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,3 +1,4 @@ | ||
export * from './connect-affiliate.dto' | ||
export * from './create-affiliate.dto' | ||
export * from './update-affiliate.dto' | ||
|
||
export * from './connect-affiliate.dto'; | ||
export * from './create-affiliate.dto'; | ||
export * from './update-affiliate.dto'; |
8 changes: 7 additions & 1 deletion
8
apps/api/src/domain/generated/affiliate/dto/update-affiliate.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,3 +1,9 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
export class UpdateAffiliateDto { | ||
affiliateCode?: string | ||
affiliateCode?: string; | ||
} |
24 changes: 13 additions & 11 deletions
24
apps/api/src/domain/generated/affiliate/entities/affiliate.entity.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,14 +1,16 @@ | ||
import { AffiliateStatus } from '@prisma/client' | ||
import { Company } from '../../company/entities/company.entity' | ||
import { Payment } from '../../payment/entities/payment.entity' | ||
|
||
import {AffiliateStatus} from '@prisma/client' | ||
import {Company} from '../../company/entities/company.entity' | ||
import {Payment} from '../../payment/entities/payment.entity' | ||
|
||
|
||
export class Affiliate { | ||
id: string | ||
status: AffiliateStatus | ||
affiliateCode: string | null | ||
companyId: string | ||
createdAt: Date | ||
updatedAt: Date | null | ||
company?: Company | ||
payments?: Payment[] | ||
id: string ; | ||
status: AffiliateStatus ; | ||
affiliateCode: string | null; | ||
companyId: string ; | ||
createdAt: Date ; | ||
updatedAt: Date | null; | ||
company?: Company ; | ||
payments?: Payment[] ; | ||
} |
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 +1,2 @@ | ||
export * from './affiliate.entity' | ||
|
||
export * from './affiliate.entity'; |
8 changes: 5 additions & 3 deletions
8
apps/api/src/domain/generated/bankAccount/dto/connect-bankAccount.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,3 +1,5 @@ | ||
export class ConnectBankAccountDto { | ||
id: string | ||
} | ||
|
||
export class ConnectBankAccountDto { | ||
id: string; | ||
} | ||
|
22 changes: 13 additions & 9 deletions
22
apps/api/src/domain/generated/bankAccount/dto/create-bankAccount.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,12 +1,16 @@ | ||
import { AccountHolderType } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
import {AccountHolderType} from '@prisma/client' | ||
import {ApiProperty} from '@nestjs/swagger' | ||
|
||
|
||
|
||
|
||
export class CreateBankAccountDto { | ||
ibanNumber: string | ||
accountHolderName: string | ||
@ApiProperty({ enum: AccountHolderType }) | ||
accountHolderType: AccountHolderType | ||
bankName?: string | ||
bankIdCode?: string | ||
fingerprint?: string | ||
ibanNumber: string; | ||
accountHolderName: string; | ||
@ApiProperty({ enum: AccountHolderType}) | ||
accountHolderType: AccountHolderType; | ||
bankName?: string; | ||
bankIdCode?: string; | ||
fingerprint?: string; | ||
} |
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,3 +1,4 @@ | ||
export * from './connect-bankAccount.dto' | ||
export * from './create-bankAccount.dto' | ||
export * from './update-bankAccount.dto' | ||
|
||
export * from './connect-bankAccount.dto'; | ||
export * from './create-bankAccount.dto'; | ||
export * from './update-bankAccount.dto'; |
22 changes: 13 additions & 9 deletions
22
apps/api/src/domain/generated/bankAccount/dto/update-bankAccount.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,12 +1,16 @@ | ||
import { AccountHolderType } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
import {AccountHolderType} from '@prisma/client' | ||
import {ApiProperty} from '@nestjs/swagger' | ||
|
||
|
||
|
||
|
||
export class UpdateBankAccountDto { | ||
ibanNumber?: string | ||
accountHolderName?: string | ||
@ApiProperty({ enum: AccountHolderType }) | ||
accountHolderType?: AccountHolderType | ||
bankName?: string | ||
bankIdCode?: string | ||
fingerprint?: string | ||
ibanNumber?: string; | ||
accountHolderName?: string; | ||
@ApiProperty({ enum: AccountHolderType}) | ||
accountHolderType?: AccountHolderType; | ||
bankName?: string; | ||
bankIdCode?: string; | ||
fingerprint?: string; | ||
} |
28 changes: 15 additions & 13 deletions
28
apps/api/src/domain/generated/bankAccount/entities/bankAccount.entity.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,16 +1,18 @@ | ||
import { BankAccountStatus, AccountHolderType } from '@prisma/client' | ||
import { Withdrawal } from '../../withdrawal/entities/withdrawal.entity' | ||
|
||
import {BankAccountStatus,AccountHolderType} from '@prisma/client' | ||
import {Withdrawal} from '../../withdrawal/entities/withdrawal.entity' | ||
|
||
|
||
export class BankAccount { | ||
id: string | ||
status: BankAccountStatus | ||
ibanNumber: string | ||
accountHolderName: string | ||
accountHolderType: AccountHolderType | ||
bankName: string | null | ||
bankIdCode: string | null | ||
fingerprint: string | null | ||
createdAt: Date | ||
updatedAt: Date | null | ||
withdraws?: Withdrawal[] | ||
id: string ; | ||
status: BankAccountStatus ; | ||
ibanNumber: string ; | ||
accountHolderName: string ; | ||
accountHolderType: AccountHolderType ; | ||
bankName: string | null; | ||
bankIdCode: string | null; | ||
fingerprint: string | null; | ||
createdAt: Date ; | ||
updatedAt: Date | null; | ||
withdraws?: Withdrawal[] ; | ||
} |
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 +1,2 @@ | ||
export * from './bankAccount.entity' | ||
|
||
export * from './bankAccount.entity'; |
8 changes: 5 additions & 3 deletions
8
apps/api/src/domain/generated/bankTransaction/dto/connect-bankTransaction.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,3 +1,5 @@ | ||
export class ConnectBankTransactionDto { | ||
id: string | ||
} | ||
|
||
export class ConnectBankTransactionDto { | ||
id: string; | ||
} | ||
|
40 changes: 22 additions & 18 deletions
40
apps/api/src/domain/generated/bankTransaction/dto/create-bankTransaction.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,21 +1,25 @@ | ||
import { BankTransactionType, BankDonationStatus } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
import {BankTransactionType,BankDonationStatus} from '@prisma/client' | ||
import {ApiProperty} from '@nestjs/swagger' | ||
|
||
|
||
|
||
|
||
export class CreateBankTransactionDto { | ||
id: string | ||
ibanNumber: string | ||
bankName: string | ||
bankIdCode: string | ||
transactionDate: Date | ||
senderName?: string | ||
recipientName?: string | ||
senderIban?: string | ||
recipientIban?: string | ||
description: string | ||
matchedRef?: string | ||
@ApiProperty({ enum: BankTransactionType }) | ||
type: BankTransactionType | ||
@ApiProperty({ enum: BankDonationStatus }) | ||
bankDonationStatus?: BankDonationStatus | ||
notified?: boolean | ||
id: string; | ||
ibanNumber: string; | ||
bankName: string; | ||
bankIdCode: string; | ||
transactionDate: Date; | ||
senderName?: string; | ||
recipientName?: string; | ||
senderIban?: string; | ||
recipientIban?: string; | ||
description: string; | ||
matchedRef?: string; | ||
@ApiProperty({ enum: BankTransactionType}) | ||
type: BankTransactionType; | ||
@ApiProperty({ enum: BankDonationStatus}) | ||
bankDonationStatus?: BankDonationStatus; | ||
notified?: boolean; | ||
} |
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,3 +1,4 @@ | ||
export * from './connect-bankTransaction.dto' | ||
export * from './create-bankTransaction.dto' | ||
export * from './update-bankTransaction.dto' | ||
|
||
export * from './connect-bankTransaction.dto'; | ||
export * from './create-bankTransaction.dto'; | ||
export * from './update-bankTransaction.dto'; |
38 changes: 21 additions & 17 deletions
38
apps/api/src/domain/generated/bankTransaction/dto/update-bankTransaction.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,20 +1,24 @@ | ||
import { BankTransactionType, BankDonationStatus } from '@prisma/client' | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
import {BankTransactionType,BankDonationStatus} from '@prisma/client' | ||
import {ApiProperty} from '@nestjs/swagger' | ||
|
||
|
||
|
||
|
||
export class UpdateBankTransactionDto { | ||
ibanNumber?: string | ||
bankName?: string | ||
bankIdCode?: string | ||
transactionDate?: Date | ||
senderName?: string | ||
recipientName?: string | ||
senderIban?: string | ||
recipientIban?: string | ||
description?: string | ||
matchedRef?: string | ||
@ApiProperty({ enum: BankTransactionType }) | ||
type?: BankTransactionType | ||
@ApiProperty({ enum: BankDonationStatus }) | ||
bankDonationStatus?: BankDonationStatus | ||
notified?: boolean | ||
ibanNumber?: string; | ||
bankName?: string; | ||
bankIdCode?: string; | ||
transactionDate?: Date; | ||
senderName?: string; | ||
recipientName?: string; | ||
senderIban?: string; | ||
recipientIban?: string; | ||
description?: string; | ||
matchedRef?: string; | ||
@ApiProperty({ enum: BankTransactionType}) | ||
type?: BankTransactionType; | ||
@ApiProperty({ enum: BankDonationStatus}) | ||
bankDonationStatus?: BankDonationStatus; | ||
notified?: boolean; | ||
} |
Oops, something went wrong.