Skip to content

Commit d3fa12b

Browse files
committed
lint fixes
1 parent c1a3d3a commit d3fa12b

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

lambdas/api-handler/src/contracts/mi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const GetMIResponseResourceSchema = z
1212
quantity: z.string(),
1313
specificationId: z.string().optional(),
1414
groupId: z.string().optional(),
15-
stockRemaining: z.number().optional()
15+
stockRemaining: z.number().optional(),
1616
})
1717
.strict(),
1818
})
@@ -22,8 +22,7 @@ export const GetMIResponseSchema = makeDocumentSchema(
2222
GetMIResponseResourceSchema,
2323
);
2424

25-
export type GetMIResponse = z.infer<typeof PostMIResponseSchema>;
26-
25+
export type GetMIResponse = z.infer<typeof GetMIResponseSchema>;
2726

2827
export const PostMIRequestResourceSchema = z
2928
.object({

lambdas/api-handler/src/mappers/mi-mapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { MIBase } from "@internal/datastore/src";
22
import {
3+
GetMIResponse,
4+
GetMIResponseResourceSchema,
35
IncomingMI,
46
PostMIRequest,
57
PostMIResponse,
68
PostMIResponseSchema,
7-
GetMIResponse,
8-
GetMIResponseResourceSchema
99
} from "../contracts/mi";
1010

1111
export function mapToMI(
@@ -49,5 +49,5 @@ export function mapToGetMIResponse(mi: MIBase): GetMIResponse {
4949
stockRemaining: mi.stockRemaining,
5050
},
5151
},
52-
})
52+
});
5353
}

lambdas/api-handler/src/services/__tests__/mi-operations.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IncomingMI } from "../../contracts/mi";
2-
import {postMI} from "../mi-operations";
2+
import { postMI } from "../mi-operations";
33

44
describe("postMI function", () => {
55
const incomingMi: IncomingMI = {

lambdas/api-handler/src/services/mi-operations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MIRepository } from "@internal/datastore/src/mi-repository";
2-
import { IncomingMI, PostMIResponse, GetMIResponse } from "../contracts/mi";
3-
import { mapToPostMIResponse, mapToGetMIResponse } from "../mappers/mi-mapper";
2+
import { GetMIResponse, IncomingMI, PostMIResponse } from "../contracts/mi";
3+
import { mapToGetMIResponse, mapToPostMIResponse } from "../mappers/mi-mapper";
44

55
export const postMI = async (
66
incomingMi: IncomingMI,

0 commit comments

Comments
 (0)