@cloudkata/common 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const CreateSubmissionSchema: z.ZodObject<{
3
3
  problemId: z.ZodString;
4
- answer: z.ZodString;
4
+ code: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
+ code: string;
6
7
  problemId: string;
7
- answer: string;
8
8
  }, {
9
+ code: string;
9
10
  problemId: string;
10
- answer: string;
11
11
  }>;
12
12
  export type CreateSubmissionDto = z.infer<typeof CreateSubmissionSchema>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateSubmissionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CreateSubmissionSchema = zod_1.z.object({
6
- problemId: zod_1.z.string().uuid('Invalid problem ID'),
7
- answer: zod_1.z.string().min(1, 'Answer is required'),
6
+ problemId: zod_1.z.string().uuid(),
7
+ code: zod_1.z.string().min(1),
8
8
  });
9
9
  //# sourceMappingURL=create-submission.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-submission.dto.js","sourceRoot":"","sources":["../../../src/dtos/submission/create-submission.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,oBAAoB,CAAC;CAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"create-submission.dto.js","sourceRoot":"","sources":["../../../src/dtos/submission/create-submission.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC"}
@@ -10,16 +10,16 @@ export declare const SubmissionResponseSchema: z.ZodObject<{
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: string;
12
12
  problemId: string;
13
- answer: string;
14
13
  userId: string;
14
+ answer: string;
15
15
  isCorrect: boolean;
16
16
  submittedAt: Date;
17
17
  executionTime?: number | undefined;
18
18
  }, {
19
19
  id: string;
20
20
  problemId: string;
21
- answer: string;
22
21
  userId: string;
22
+ answer: string;
23
23
  isCorrect: boolean;
24
24
  submittedAt: Date;
25
25
  executionTime?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudkata/common",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Shared contracts, interfaces, DTOs and enums for CloudKata",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",