Skip to content

Commit 2dfa854

Browse files
committed
CCM-11343: remove supplier
1 parent 94c39fe commit 2dfa854

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

infrastructure/terraform/modules/backend-api/spec.tmpl.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@
219219
},
220220
"proofingEnabled": {
221221
"type": "boolean"
222-
},
223-
"supplier": {
224-
"type": "string"
225222
}
226223
},
227224
"required": [

lambdas/backend-api/src/__tests__/templates/app/template-client.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ describe('templateClient', () => {
440440
});
441441

442442
expect(mocks.templateRepository.create).toHaveBeenCalledWith(
443-
{ ...dataWithFiles, proofingEnabled: true, supplier: 'SUPPLIER' },
443+
{ ...dataWithFiles, proofingEnabled: true },
444444
user.userId,
445445
user.clientId,
446446
'PENDING_UPLOAD',
@@ -588,7 +588,7 @@ describe('templateClient', () => {
588588
});
589589

590590
expect(mocks.templateRepository.create).toHaveBeenCalledWith(
591-
{ ...dataWithFiles, proofingEnabled: expected, supplier: 'SUPPLIER' },
591+
{ ...dataWithFiles, proofingEnabled: expected },
592592
user.userId,
593593
user.clientId,
594594
'PENDING_UPLOAD',
@@ -915,7 +915,7 @@ describe('templateClient', () => {
915915
expect(result).toEqual(templateRepoFailure);
916916

917917
expect(mocks.templateRepository.create).toHaveBeenCalledWith(
918-
{ ...dataWithFiles, proofingEnabled: false, supplier: 'SUPPLIER' },
918+
{ ...dataWithFiles, proofingEnabled: false },
919919
user.userId,
920920
user.clientId,
921921
'PENDING_UPLOAD',
@@ -1041,7 +1041,7 @@ describe('templateClient', () => {
10411041
expect(result).toEqual(uploadErr);
10421042

10431043
expect(mocks.templateRepository.create).toHaveBeenCalledWith(
1044-
{ ...dataWithFiles, proofingEnabled: false, supplier: 'SUPPLIER' },
1044+
{ ...dataWithFiles, proofingEnabled: false },
10451045
user.userId,
10461046
user.clientId,
10471047
'PENDING_UPLOAD',
@@ -1130,7 +1130,7 @@ describe('templateClient', () => {
11301130
expect(result).toEqual(updateErr);
11311131

11321132
expect(mocks.templateRepository.create).toHaveBeenCalledWith(
1133-
{ ...dataWithFiles, proofingEnabled: false, supplier: 'SUPPLIER' },
1133+
{ ...dataWithFiles, proofingEnabled: false },
11341134
user.userId,
11351135
user.clientId,
11361136
'PENDING_UPLOAD',

lambdas/backend-api/src/templates/app/template-client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ export class TemplateClient {
186186
const letterTemplateFields = {
187187
...templateValidationResult.data,
188188
proofingEnabled,
189-
supplier: this.defaultLetterSupplier,
190189
files,
191190
};
192191

lambdas/backend-api/src/templates/infra/template-repository.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const letterAttributes: Record<keyof LetterProperties, null> = {
6262
personalisationParameters: null,
6363
templateType: null,
6464
proofingEnabled: null,
65-
supplier: null,
6665
};
6766

6867
export class TemplateRepository {

lambdas/backend-client/src/types/generated/types.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export type LetterProperties = CreateLetterProperties & {
8181
owner?: string;
8282
personalisationParameters?: Array<string>;
8383
proofingEnabled?: boolean;
84-
supplier?: string;
8584
};
8685

8786
export type LetterType = 'q4' | 'x0' | 'x1';

0 commit comments

Comments
 (0)