Skip to content

Commit 9df5f93

Browse files
committed
CCM-0000: remove templates dir
1 parent 813390e commit 9df5f93

File tree

118 files changed

+99
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+99
-102
lines changed

lambdas/backend-api/build.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ npx esbuild \
1414
--entry-names=[name]/[name] \
1515
--outdir=dist \
1616
--external:pdfjs-dist \
17-
src/templates/copy-scanned-object-to-internal.ts \
18-
src/templates/count-routing-configs.ts \
19-
src/templates/create-routing-config.ts \
20-
src/templates/create.ts \
21-
src/templates/delete-failed-scanned-object.ts \
22-
src/templates/delete.ts \
23-
src/templates/delete-routing-config.ts \
24-
src/templates/get-client.ts \
25-
src/templates/get-routing-config.ts \
26-
src/templates/get.ts \
27-
src/templates/list-routing-configs.ts \
28-
src/templates/list.ts \
29-
src/templates/process-proof.ts \
30-
src/templates/proof.ts \
31-
src/templates/set-letter-upload-virus-scan-status.ts \
32-
src/templates/submit-routing-config.ts \
33-
src/templates/submit.ts \
34-
src/templates/update-routing-config.ts \
35-
src/templates/update.ts \
36-
src/templates/upload-letter.ts \
37-
src/templates/validate-letter-template-files.ts
17+
src/copy-scanned-object-to-internal.ts \
18+
src/count-routing-configs.ts \
19+
src/create-routing-config.ts \
20+
src/create.ts \
21+
src/delete-failed-scanned-object.ts \
22+
src/delete.ts \
23+
src/delete-routing-config.ts \
24+
src/get-client.ts \
25+
src/get-routing-config.ts \
26+
src/get.ts \
27+
src/list-routing-configs.ts \
28+
src/list.ts \
29+
src/process-proof.ts \
30+
src/proof.ts \
31+
src/set-letter-upload-virus-scan-status.ts \
32+
src/submit-routing-config.ts \
33+
src/submit.ts \
34+
src/update-routing-config.ts \
35+
src/update.ts \
36+
src/upload-letter.ts \
37+
src/validate-letter-template-files.ts
3838

3939
cp -r ../../utils/utils/src/email-templates ./dist/submit

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/copy-scanned-object-to-internal.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/copy-scanned-object-to-internal.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/delete-failed-scanned-object.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/delete-failed-scanned-object.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/set-letter-upload-virus-scan-status.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/set-letter-upload-virus-scan-status.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/validate-letter-template-files.test.ts.snap renamed to lambdas/backend-api/src/__tests__/api/__snapshots__/validate-letter-template-files.test.ts.snap

File renamed without changes.

lambdas/backend-api/src/__tests__/templates/api/copy-scanned-object-to-internal.test.ts renamed to lambdas/backend-api/src/__tests__/api/copy-scanned-object-to-internal.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { LetterFileRepository } from '../../../templates/infra/letter-file-repository';
1+
import type { LetterFileRepository } from '../../infra/letter-file-repository';
22
import { makeGuardDutyMalwareScanResultNotificationEvent } from 'nhs-notify-web-template-management-test-helper-utils';
33
import { mock } from 'jest-mock-extended';
4-
import { createHandler } from '../../../templates/api/copy-scanned-object-to-internal';
4+
import { createHandler } from '../../api/copy-scanned-object-to-internal';
55
import { $GuardDutyMalwareScanStatusFailed } from 'nhs-notify-web-template-management-utils';
66
import { createMockLogger } from 'nhs-notify-web-template-management-test-helper-utils/mock-logger';
77

lambdas/backend-api/src/__tests__/templates/api/count-routing-configs.test.ts renamed to lambdas/backend-api/src/__tests__/api/count-routing-configs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { APIGatewayProxyEvent, Context } from 'aws-lambda';
22
import { mock } from 'jest-mock-extended';
33
import type { Logger } from 'nhs-notify-web-template-management-utils/logger';
4-
import { createHandler } from '@backend-api/templates/api/count-routing-configs';
5-
import { RoutingConfigClient } from '@backend-api/templates/app/routing-config-client';
4+
import { createHandler } from '../../api/count-routing-configs';
5+
import { RoutingConfigClient } from '../../app/routing-config-client';
66

77
jest.mock('nhs-notify-web-template-management-utils/logger', () => ({
88
logger: mock<Logger>({

lambdas/backend-api/src/__tests__/templates/api/create-routing-config.test.ts renamed to lambdas/backend-api/src/__tests__/api/create-routing-config.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
CreateUpdateRoutingConfig,
55
RoutingConfig,
66
} from 'nhs-notify-backend-client';
7-
import { createHandler } from '@backend-api/templates/api/create-routing-config';
8-
import type { RoutingConfigClient } from '@backend-api/templates/app/routing-config-client';
7+
import { createHandler } from '../../api/create-routing-config';
8+
import type { RoutingConfigClient } from '../../app/routing-config-client';
99

1010
function setup() {
1111
const routingConfigClient = mock<RoutingConfigClient>();

lambdas/backend-api/src/__tests__/templates/api/create.test.ts renamed to lambdas/backend-api/src/__tests__/api/create.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { APIGatewayProxyEvent, Context } from 'aws-lambda';
22
import { mock } from 'jest-mock-extended';
33
import { TemplateDto, CreateUpdateTemplate } from 'nhs-notify-backend-client';
4-
import { createHandler } from '@backend-api/templates/api/create';
5-
import { TemplateClient } from '@backend-api/templates/app/template-client';
4+
import { createHandler } from '../../api/create';
5+
import { TemplateClient } from '../../app/template-client';
66

77
const setup = () => {
88
const templateClient = mock<TemplateClient>();

lambdas/backend-api/src/__tests__/templates/api/delete-failed-scanned-object.test.ts renamed to lambdas/backend-api/src/__tests__/api/delete-failed-scanned-object.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mock } from 'jest-mock-extended';
22
import { makeGuardDutyMalwareScanResultNotificationEvent } from 'nhs-notify-web-template-management-test-helper-utils';
3-
import type { LetterFileRepository } from '../../../templates/infra/letter-file-repository';
4-
import { createHandler } from '../../../templates/api/delete-failed-scanned-object';
3+
import type { LetterFileRepository } from '../../infra/letter-file-repository';
4+
import { createHandler } from '../../api/delete-failed-scanned-object';
55
import { $GuardDutyMalwareScanStatusFailed } from 'nhs-notify-web-template-management-utils';
66
import { createMockLogger } from 'nhs-notify-web-template-management-test-helper-utils/mock-logger';
77

0 commit comments

Comments
 (0)