forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merge main into to release 7.0
- Loading branch information
Showing
90 changed files
with
142 additions
and
480 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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
--- | ||
to: apps/api/src/app/<%= module %>/usecases/<%= name %>/<%= name %>.command.ts | ||
--- | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class <%= h.changeCase.pascal(name) %>Command extends EnvironmentWithUserCommand { | ||
static create(data: <%= h.changeCase.pascal(name) %>Command) { | ||
return CommandHelper.create<<%= h.changeCase.pascal(name) %>Command>(<%= h.changeCase.pascal(name) %>Command, data); | ||
} | ||
} | ||
export class <%= h.changeCase.pascal(name) %>Command extends EnvironmentWithUserCommand {} | ||
|
||
|
5 changes: 0 additions & 5 deletions
5
.../src/app/activity/usecases/get-acticity-graph-states/get-acticity-graph-states.command.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
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/activity/usecases/get-activity-feed/get-activity-feed.command.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
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/activity/usecases/get-activity-stats/get-activity-stats.command.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,8 +1,3 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class GetActivityStatsCommand extends EnvironmentWithUserCommand { | ||
static create(data: GetActivityStatsCommand) { | ||
return CommandHelper.create<GetActivityStatsCommand>(GetActivityStatsCommand, data); | ||
} | ||
} | ||
export class GetActivityStatsCommand extends EnvironmentWithUserCommand {} |
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
9 changes: 2 additions & 7 deletions
9
apps/api/src/app/auth/usecases/password-reset-request/password-reset-request.command.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
9 changes: 2 additions & 7 deletions
9
apps/api/src/app/auth/usecases/password-reset/password-reset.command.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
8 changes: 2 additions & 6 deletions
8
apps/api/src/app/auth/usecases/register/user-register.command.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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/auth/usecases/switch-environment/switch-environment.command.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,7 @@ | ||
import { IsNotEmpty } from 'class-validator'; | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { OrganizationCommand } from '../../../shared/commands/organization.command'; | ||
|
||
export class SwitchEnvironmentCommand extends OrganizationCommand { | ||
static create(data: SwitchEnvironmentCommand) { | ||
return CommandHelper.create(SwitchEnvironmentCommand, data); | ||
} | ||
|
||
@IsNotEmpty() | ||
newEnvironmentId: string; | ||
} |
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/auth/usecases/switch-organization/switch-organization.command.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,7 @@ | ||
import { IsNotEmpty } from 'class-validator'; | ||
import { AuthenticatedCommand } from '../../../shared/commands/authenticated.command'; | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
|
||
export class SwitchOrganizationCommand extends AuthenticatedCommand { | ||
static create(data: SwitchOrganizationCommand) { | ||
return CommandHelper.create(SwitchOrganizationCommand, data); | ||
} | ||
|
||
@IsNotEmpty() | ||
newOrganizationId: string; | ||
} |
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/change/usecases/apply-change/apply-change.command.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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/change/usecases/bulk-apply-change/bulk-apply-change.command.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
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/change/usecases/count-changes/count-changes.command.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,8 +1,3 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class CountChangesCommand extends EnvironmentWithUserCommand { | ||
static create(data: CountChangesCommand) { | ||
return CommandHelper.create(CountChangesCommand, data); | ||
} | ||
} | ||
export class CountChangesCommand extends EnvironmentWithUserCommand {} |
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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/change/usecases/get-changes/get-changes.command.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
5 changes: 0 additions & 5 deletions
5
...pp/change/usecases/promote-change-to-environment/promote-change-to-environment.command.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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/change/usecases/promote-type-change.command.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,13 +1,8 @@ | ||
import { IsDefined } from 'class-validator'; | ||
import { CommandHelper } from '../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../shared/commands/project.command'; | ||
import { IItem } from './create-change.command'; | ||
|
||
export class PromoteTypeChangeCommand extends EnvironmentWithUserCommand { | ||
static create(data: PromoteTypeChangeCommand) { | ||
return CommandHelper.create(PromoteTypeChangeCommand, data); | ||
} | ||
|
||
@IsDefined() | ||
item: IItem; | ||
} |
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/change/usecases/update-change/update-change.command.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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/channels/usecases/update-mail-settings/update-mail-settings.command.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
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
8 changes: 2 additions & 6 deletions
8
apps/api/src/app/content-templates/usecases/compile-template/compile-template.command.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
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/environments/usecases/create-environment/create-environment.command.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
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/environments/usecases/get-api-keys/get-api-keys.command.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,8 +1,3 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class GetApiKeysCommand extends EnvironmentWithUserCommand { | ||
static create(data: GetApiKeysCommand) { | ||
return CommandHelper.create(GetApiKeysCommand, data); | ||
} | ||
} | ||
export class GetApiKeysCommand extends EnvironmentWithUserCommand {} |
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/environments/usecases/get-environment/get-environment.command.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,8 +1,3 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class GetEnvironmentCommand extends EnvironmentWithUserCommand { | ||
static create(data: GetEnvironmentCommand) { | ||
return CommandHelper.create(GetEnvironmentCommand, data); | ||
} | ||
} | ||
export class GetEnvironmentCommand extends EnvironmentWithUserCommand {} |
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/environments/usecases/get-my-environments/get-my-environments.command.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,8 +1,3 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { OrganizationCommand } from '../../../shared/commands/organization.command'; | ||
|
||
export class GetMyEnvironmentsCommand extends OrganizationCommand { | ||
static create(data: GetMyEnvironmentsCommand) { | ||
return CommandHelper.create(GetMyEnvironmentsCommand, data); | ||
} | ||
} | ||
export class GetMyEnvironmentsCommand extends OrganizationCommand {} |
6 changes: 1 addition & 5 deletions
6
...pi/src/app/environments/usecases/update-widget-settings/update-widget-settings.command.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,11 +1,7 @@ | ||
import { CommandHelper } from '../../../shared/commands/command.helper'; | ||
import { EnvironmentCommand } from '../../../shared/commands/project.command'; | ||
import { IsDefined } from 'class-validator'; | ||
import { EnvironmentCommand } from '../../../shared/commands/project.command'; | ||
|
||
export class UpdateWidgetSettingsCommand extends EnvironmentCommand { | ||
static create(data: UpdateWidgetSettingsCommand) { | ||
return CommandHelper.create(UpdateWidgetSettingsCommand, data); | ||
} | ||
@IsDefined() | ||
notificationCenterEncryption: boolean; | ||
} |
5 changes: 0 additions & 5 deletions
5
apps/api/src/app/events/usecases/cancel-digest/cancel-digest.command.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
7 changes: 1 addition & 6 deletions
7
apps/api/src/app/events/usecases/filter-steps/filter-steps.command.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
Oops, something went wrong.