forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added identified stage trigger * changed the name of object with standard Fields * added return statement to execute API --------- Co-authored-by: Shubham Pawar <[email protected]>
- Loading branch information
1 parent
32201d1
commit 3b1a0c1
Showing
13 changed files
with
398 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ | |
coverage | ||
.vercel | ||
|
||
**/**/logs/** | ||
**/**/logs/** | ||
packages/twenty-server/src/campaign.zip |
24 changes: 24 additions & 0 deletions
24
packages/twenty-server/src/campaign/campaign-execution.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Type } from 'class-transformer'; | ||
import { IsISO8601, IsUUID, ValidateNested } from 'class-validator'; | ||
|
||
import { IdList } from 'src/campaign/id-list.dto'; | ||
|
||
export class CampaignExecutionDTO { | ||
@IsUUID() | ||
campaignId: string; | ||
|
||
@IsISO8601({ strict: true }) | ||
queryTimestamp: string; | ||
|
||
campaignTriggerId: string; | ||
|
||
@IsISO8601({ strict: true }) | ||
startDate: Date; | ||
|
||
@IsISO8601({ strict: true }) | ||
stopDate: Date; | ||
|
||
@ValidateNested() | ||
@Type(() => IdList) | ||
id: IdList; | ||
} |
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
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
Oops, something went wrong.