• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 11295409601

11 Oct 2024 03:51PM UTC coverage: 91.785% (-0.01%) from 91.795%
11295409601

Pull #2010

github

hectorgomezv
Update Outreach entity
Pull Request #2010: Update Targeted Messaging Outreach

2612 of 3168 branches covered (82.45%)

Branch coverage included in aggregate %.

1 of 9 new or added lines in 4 files covered. (11.11%)

2 existing lines in 2 files now uncovered.

8695 of 9151 relevant lines covered (95.02%)

419.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/domain/targeted-messaging/entities/create-outreach.dto.entity.ts
NEW
1
import { DB_MAX_SAFE_INTEGER } from '@/domain/common/constants';
×
UNCOV
2
import { z } from 'zod';
×
3

4
export const CreateOutreachDtoSchema = z.object({
×
5
  name: z.string(),
6
  startDate: z.coerce.date(),
7
  endDate: z.coerce.date(),
8
  sourceId: z
9
    .number()
10
    .int()
11
    .gte(1)
12
    .lte(DB_MAX_SAFE_INTEGER - 1),
13
  type: z.string(),
14
  teamName: z.string(),
15
});
16

17
export class CreateOutreachDto
×
18
  implements z.infer<typeof CreateOutreachDtoSchema>
19
{
20
  name: string;
21
  startDate: Date;
22
  endDate: Date;
23
  sourceId: number;
24
  type: string;
25
  teamName: string;
26

27
  constructor(props: CreateOutreachDto) {
28
    this.name = props.name;
×
29
    this.startDate = props.startDate;
×
30
    this.endDate = props.endDate;
×
NEW
31
    this.sourceId = props.sourceId;
×
NEW
32
    this.type = props.type;
×
NEW
33
    this.teamName = props.teamName;
×
34
  }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc