Skip to content

Commit

Permalink
feat(dashboard): Template store modal (#7436)
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy authored Jan 19, 2025
1 parent 31066b5 commit 7c54e05
Show file tree
Hide file tree
Showing 38 changed files with 1,980 additions and 420 deletions.
28 changes: 14 additions & 14 deletions apps/api/src/app/workflows-v2/workflow.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiTags } from '@nestjs/swagger';
import { ClassSerializerInterceptor, HttpStatus, Patch } from '@nestjs/common';
import {
Body,
Controller,
Expand All @@ -12,7 +12,8 @@ import {
UseGuards,
UseInterceptors,
} from '@nestjs/common/decorators';
import { ClassSerializerInterceptor, HttpStatus, Patch } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { DeleteWorkflowCommand, DeleteWorkflowUseCase, UserAuthGuard, UserSession } from '@novu/application-generic';
import {
CreateWorkflowDto,
DirectionEnum,
Expand All @@ -30,30 +31,29 @@ import {
WorkflowResponseDto,
WorkflowTestDataResponseDto,
} from '@novu/shared';
import { DeleteWorkflowCommand, DeleteWorkflowUseCase, UserAuthGuard, UserSession } from '@novu/application-generic';
import { ApiCommonResponses } from '../shared/framework/response.decorator';
import { UserAuthentication } from '../shared/framework/swagger/api.key.security';
import { GetWorkflowCommand } from './usecases/get-workflow/get-workflow.command';
import { UpsertWorkflowUseCase } from './usecases/upsert-workflow/upsert-workflow.usecase';
import { UpsertWorkflowCommand } from './usecases/upsert-workflow/upsert-workflow.command';
import { GetWorkflowUseCase } from './usecases/get-workflow/get-workflow.usecase';
import { ListWorkflowsUseCase } from './usecases/list-workflows/list-workflow.usecase';
import { ListWorkflowsCommand } from './usecases/list-workflows/list-workflows.command';
import { SyncToEnvironmentUseCase } from './usecases/sync-to-environment/sync-to-environment.usecase';
import { SyncToEnvironmentCommand } from './usecases/sync-to-environment/sync-to-environment.command';
import { GeneratePreviewUsecase } from './usecases/generate-preview/generate-preview.usecase';
import { ParseSlugIdPipe } from './pipes/parse-slug-id.pipe';
import { ParseSlugEnvironmentIdPipe } from './pipes/parse-slug-env-id.pipe';
import { ParseSlugIdPipe } from './pipes/parse-slug-id.pipe';
import {
BuildStepDataCommand,
BuildStepDataUsecase,
BuildWorkflowTestDataUseCase,
WorkflowTestDataCommand,
} from './usecases';
import { GeneratePreviewCommand } from './usecases/generate-preview/generate-preview.command';
import { GeneratePreviewUsecase } from './usecases/generate-preview/generate-preview.usecase';
import { GetWorkflowCommand } from './usecases/get-workflow/get-workflow.command';
import { GetWorkflowUseCase } from './usecases/get-workflow/get-workflow.usecase';
import { ListWorkflowsUseCase } from './usecases/list-workflows/list-workflow.usecase';
import { ListWorkflowsCommand } from './usecases/list-workflows/list-workflows.command';
import { PatchStepCommand } from './usecases/patch-step-data';
import { PatchWorkflowCommand, PatchWorkflowUsecase } from './usecases/patch-workflow';
import { PatchStepUsecase } from './usecases/patch-step-data/patch-step.usecase';
import { PatchWorkflowCommand, PatchWorkflowUsecase } from './usecases/patch-workflow';
import { SyncToEnvironmentCommand } from './usecases/sync-to-environment/sync-to-environment.command';
import { SyncToEnvironmentUseCase } from './usecases/sync-to-environment/sync-to-environment.usecase';
import { UpsertWorkflowCommand } from './usecases/upsert-workflow/upsert-workflow.command';
import { UpsertWorkflowUseCase } from './usecases/upsert-workflow/upsert-workflow.usecase';

@ApiCommonResponses()
@Controller({ path: `/workflows`, version: '2' })
Expand Down
14 changes: 7 additions & 7 deletions apps/api/src/app/workflows-v2/workflow.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ import {
DeleteWorkflowUseCase,
GetPreferences,
GetWorkflowByIdsUseCase,
TierRestrictionsValidateUsecase,
UpdateWorkflow,
UpsertControlValuesUseCase,
UpsertPreferences,
TierRestrictionsValidateUsecase,
} from '@novu/application-generic';

import { CommunityOrganizationRepository } from '@novu/dal';
import { SharedModule } from '../shared/shared.module';
import { MessageTemplateModule } from '../message-template/message-template.module';
import { ChangeModule } from '../change/change.module';
import { AuthModule } from '../auth/auth.module';
import { BridgeModule } from '../bridge';
import { ChangeModule } from '../change/change.module';
import { HydrateEmailSchemaUseCase } from '../environments-v1/usecases/output-renderers';
import { IntegrationModule } from '../integrations/integrations.module';
import { WorkflowController } from './workflow.controller';
import { MessageTemplateModule } from '../message-template/message-template.module';
import { SharedModule } from '../shared/shared.module';
import {
BuildVariableSchemaUsecase,
BuildStepDataUsecase,
Expand All @@ -28,12 +29,11 @@ import {
SyncToEnvironmentUseCase,
UpsertWorkflowUseCase,
} from './usecases';
import { BridgeModule } from '../bridge';
import { HydrateEmailSchemaUseCase } from '../environments-v1/usecases/output-renderers';
import { PatchWorkflowUsecase } from './usecases/patch-workflow';
import { PatchStepUsecase } from './usecases/patch-step-data/patch-step.usecase';
import { BuildPayloadSchema } from './usecases/build-payload-schema/build-payload-schema.usecase';
import { BuildStepIssuesUsecase } from './usecases/build-step-issues/build-step-issues.usecase';
import { WorkflowController } from './workflow.controller';

const DAL_REPOSITORIES = [CommunityOrganizationRepository];

Expand Down
Loading

0 comments on commit 7c54e05

Please sign in to comment.