@cloudkata/common 1.0.11 → 1.0.15

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.
Files changed (65) hide show
  1. package/dist/dtos/index.d.ts +1 -1
  2. package/dist/dtos/index.js +1 -1
  3. package/dist/dtos/index.js.map +1 -1
  4. package/dist/dtos/problem/create-problem.dto.d.ts +73 -0
  5. package/dist/dtos/problem/create-problem.dto.js +24 -0
  6. package/dist/dtos/problem/create-problem.dto.js.map +1 -0
  7. package/dist/dtos/problem/index.d.ts +3 -0
  8. package/dist/dtos/{challenge → problem}/index.js +3 -2
  9. package/dist/dtos/problem/index.js.map +1 -0
  10. package/dist/dtos/problem/problem-response.dto.d.ts +75 -0
  11. package/dist/dtos/problem/problem-response.dto.js +25 -0
  12. package/dist/dtos/problem/problem-response.dto.js.map +1 -0
  13. package/dist/dtos/problem/problem-set-response.dto.d.ts +21 -0
  14. package/dist/dtos/problem/problem-set-response.dto.js +12 -0
  15. package/dist/dtos/problem/problem-set-response.dto.js.map +1 -0
  16. package/dist/dtos/submission/create-submission.dto.d.ts +3 -3
  17. package/dist/dtos/submission/create-submission.dto.js +1 -1
  18. package/dist/dtos/submission/create-submission.dto.js.map +1 -1
  19. package/dist/dtos/submission/submission-response.dto.d.ts +3 -3
  20. package/dist/dtos/submission/submission-response.dto.js +1 -1
  21. package/dist/dtos/submission/submission-response.dto.js.map +1 -1
  22. package/dist/enums/index.d.ts +2 -1
  23. package/dist/enums/index.js +2 -1
  24. package/dist/enums/index.js.map +1 -1
  25. package/dist/enums/{challenge-type.enum.d.ts → problem-type.enum.d.ts} +1 -1
  26. package/dist/enums/problem-type.enum.js +9 -0
  27. package/dist/enums/problem-type.enum.js.map +1 -0
  28. package/dist/enums/submission-status.enum.d.ts +7 -0
  29. package/dist/enums/submission-status.enum.js +12 -0
  30. package/dist/enums/submission-status.enum.js.map +1 -0
  31. package/dist/interfaces/index.d.ts +6 -1
  32. package/dist/interfaces/index.js +6 -1
  33. package/dist/interfaces/index.js.map +1 -1
  34. package/dist/interfaces/problem-example.interface.d.ts +5 -0
  35. package/dist/interfaces/problem-example.interface.js +3 -0
  36. package/dist/interfaces/problem-example.interface.js.map +1 -0
  37. package/dist/interfaces/problem-grading-spec.interface.d.ts +5 -0
  38. package/dist/interfaces/problem-grading-spec.interface.js +3 -0
  39. package/dist/interfaces/problem-grading-spec.interface.js.map +1 -0
  40. package/dist/interfaces/problem-set.interface.d.ts +7 -0
  41. package/dist/interfaces/problem-set.interface.js +3 -0
  42. package/dist/interfaces/problem-set.interface.js.map +1 -0
  43. package/dist/interfaces/problem.interface.d.ts +20 -0
  44. package/dist/interfaces/{challenge.interface.js → problem.interface.js} +1 -1
  45. package/dist/interfaces/problem.interface.js.map +1 -0
  46. package/dist/interfaces/submission.interface.d.ts +1 -1
  47. package/dist/interfaces/test-case.interface.d.ts +4 -0
  48. package/dist/interfaces/test-case.interface.js +3 -0
  49. package/dist/interfaces/test-case.interface.js.map +1 -0
  50. package/dist/interfaces/test-result.interface.d.ts +5 -0
  51. package/dist/interfaces/test-result.interface.js +3 -0
  52. package/dist/interfaces/test-result.interface.js.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/dtos/challenge/challenge-response.dto.d.ts +0 -34
  55. package/dist/dtos/challenge/challenge-response.dto.js +0 -17
  56. package/dist/dtos/challenge/challenge-response.dto.js.map +0 -1
  57. package/dist/dtos/challenge/create-challenge.dto.d.ts +0 -28
  58. package/dist/dtos/challenge/create-challenge.dto.js +0 -18
  59. package/dist/dtos/challenge/create-challenge.dto.js.map +0 -1
  60. package/dist/dtos/challenge/index.d.ts +0 -2
  61. package/dist/dtos/challenge/index.js.map +0 -1
  62. package/dist/enums/challenge-type.enum.js +0 -9
  63. package/dist/enums/challenge-type.enum.js.map +0 -1
  64. package/dist/interfaces/challenge.interface.d.ts +0 -13
  65. package/dist/interfaces/challenge.interface.js.map +0 -1
@@ -1,4 +1,4 @@
1
1
  export * from './auth';
2
- export * from './challenge';
2
+ export * from './problem';
3
3
  export * from './submission';
4
4
  export * from './leaderboard';
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
- __exportStar(require("./challenge"), exports);
18
+ __exportStar(require("./problem"), exports);
19
19
  __exportStar(require("./submission"), exports);
20
20
  __exportStar(require("./leaderboard"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B"}
@@ -0,0 +1,73 @@
1
+ import { z } from 'zod';
2
+ import { Difficulty, ProblemType } from '../../enums';
3
+ export declare const ProblemExampleSchema: z.ZodObject<{
4
+ input: z.ZodString;
5
+ output: z.ZodString;
6
+ explanation: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ input: string;
9
+ output: string;
10
+ explanation?: string | undefined;
11
+ }, {
12
+ input: string;
13
+ output: string;
14
+ explanation?: string | undefined;
15
+ }>;
16
+ export declare const CreateProblemSchema: z.ZodObject<{
17
+ title: z.ZodString;
18
+ description: z.ZodString;
19
+ examples: z.ZodArray<z.ZodObject<{
20
+ input: z.ZodString;
21
+ output: z.ZodString;
22
+ explanation: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ input: string;
25
+ output: string;
26
+ explanation?: string | undefined;
27
+ }, {
28
+ input: string;
29
+ output: string;
30
+ explanation?: string | undefined;
31
+ }>, "many">;
32
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
+ followUp: z.ZodOptional<z.ZodString>;
34
+ difficulty: z.ZodNativeEnum<typeof Difficulty>;
35
+ type: z.ZodNativeEnum<typeof ProblemType>;
36
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
37
+ companies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
38
+ hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
+ starterCode: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ type: ProblemType;
42
+ title: string;
43
+ description: string;
44
+ examples: {
45
+ input: string;
46
+ output: string;
47
+ explanation?: string | undefined;
48
+ }[];
49
+ difficulty: Difficulty;
50
+ tags: string[];
51
+ companies: string[];
52
+ starterCode: string;
53
+ constraints?: string[] | undefined;
54
+ followUp?: string | undefined;
55
+ hints?: string[] | undefined;
56
+ }, {
57
+ type: ProblemType;
58
+ title: string;
59
+ description: string;
60
+ examples: {
61
+ input: string;
62
+ output: string;
63
+ explanation?: string | undefined;
64
+ }[];
65
+ difficulty: Difficulty;
66
+ starterCode: string;
67
+ constraints?: string[] | undefined;
68
+ followUp?: string | undefined;
69
+ tags?: string[] | undefined;
70
+ companies?: string[] | undefined;
71
+ hints?: string[] | undefined;
72
+ }>;
73
+ export type CreateProblemDto = z.infer<typeof CreateProblemSchema>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateProblemSchema = exports.ProblemExampleSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../enums");
6
+ exports.ProblemExampleSchema = zod_1.z.object({
7
+ input: zod_1.z.string(),
8
+ output: zod_1.z.string(),
9
+ explanation: zod_1.z.string().optional(),
10
+ });
11
+ exports.CreateProblemSchema = zod_1.z.object({
12
+ title: zod_1.z.string().min(5).max(100),
13
+ description: zod_1.z.string().min(20),
14
+ examples: zod_1.z.array(exports.ProblemExampleSchema).min(1),
15
+ constraints: zod_1.z.array(zod_1.z.string()).optional(),
16
+ followUp: zod_1.z.string().optional(),
17
+ difficulty: zod_1.z.nativeEnum(enums_1.Difficulty),
18
+ type: zod_1.z.nativeEnum(enums_1.ProblemType),
19
+ tags: zod_1.z.array(zod_1.z.string()).default([]),
20
+ companies: zod_1.z.array(zod_1.z.string()).default([]),
21
+ hints: zod_1.z.array(zod_1.z.string()).optional(),
22
+ starterCode: zod_1.z.string().min(1),
23
+ });
24
+ //# sourceMappingURL=create-problem.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-problem.dto.js","sourceRoot":"","sources":["../../../src/dtos/problem/create-problem.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAAsD;AAEzC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAU,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './create-problem.dto';
2
+ export * from './problem-response.dto';
3
+ export * from './problem-set-response.dto';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create-challenge.dto"), exports);
18
- __exportStar(require("./challenge-response.dto"), exports);
17
+ __exportStar(require("./create-problem.dto"), exports);
18
+ __exportStar(require("./problem-response.dto"), exports);
19
+ __exportStar(require("./problem-set-response.dto"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dtos/problem/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,6DAA2C"}
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ import { Difficulty, ProblemType } from '../../enums';
3
+ export declare const ProblemResponseSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ slug: z.ZodString;
6
+ title: z.ZodString;
7
+ description: z.ZodString;
8
+ examples: z.ZodArray<z.ZodObject<{
9
+ input: z.ZodString;
10
+ output: z.ZodString;
11
+ explanation: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ input: string;
14
+ output: string;
15
+ explanation?: string | undefined;
16
+ }, {
17
+ input: string;
18
+ output: string;
19
+ explanation?: string | undefined;
20
+ }>, "many">;
21
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ followUp: z.ZodOptional<z.ZodString>;
23
+ difficulty: z.ZodNativeEnum<typeof Difficulty>;
24
+ type: z.ZodNativeEnum<typeof ProblemType>;
25
+ tags: z.ZodArray<z.ZodString, "many">;
26
+ companies: z.ZodArray<z.ZodString, "many">;
27
+ hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ starterCode: z.ZodString;
29
+ acceptanceRate: z.ZodNumber;
30
+ createdAt: z.ZodDate;
31
+ updatedAt: z.ZodDate;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: ProblemType;
34
+ id: string;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ title: string;
38
+ description: string;
39
+ examples: {
40
+ input: string;
41
+ output: string;
42
+ explanation?: string | undefined;
43
+ }[];
44
+ difficulty: Difficulty;
45
+ tags: string[];
46
+ companies: string[];
47
+ starterCode: string;
48
+ slug: string;
49
+ acceptanceRate: number;
50
+ constraints?: string[] | undefined;
51
+ followUp?: string | undefined;
52
+ hints?: string[] | undefined;
53
+ }, {
54
+ type: ProblemType;
55
+ id: string;
56
+ createdAt: Date;
57
+ updatedAt: Date;
58
+ title: string;
59
+ description: string;
60
+ examples: {
61
+ input: string;
62
+ output: string;
63
+ explanation?: string | undefined;
64
+ }[];
65
+ difficulty: Difficulty;
66
+ tags: string[];
67
+ companies: string[];
68
+ starterCode: string;
69
+ slug: string;
70
+ acceptanceRate: number;
71
+ constraints?: string[] | undefined;
72
+ followUp?: string | undefined;
73
+ hints?: string[] | undefined;
74
+ }>;
75
+ export type ProblemResponseDto = z.infer<typeof ProblemResponseSchema>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProblemResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../enums");
6
+ const create_problem_dto_1 = require("./create-problem.dto");
7
+ exports.ProblemResponseSchema = zod_1.z.object({
8
+ id: zod_1.z.string().uuid(),
9
+ slug: zod_1.z.string(),
10
+ title: zod_1.z.string(),
11
+ description: zod_1.z.string(),
12
+ examples: zod_1.z.array(create_problem_dto_1.ProblemExampleSchema),
13
+ constraints: zod_1.z.array(zod_1.z.string()).optional(),
14
+ followUp: zod_1.z.string().optional(),
15
+ difficulty: zod_1.z.nativeEnum(enums_1.Difficulty),
16
+ type: zod_1.z.nativeEnum(enums_1.ProblemType),
17
+ tags: zod_1.z.array(zod_1.z.string()),
18
+ companies: zod_1.z.array(zod_1.z.string()),
19
+ hints: zod_1.z.array(zod_1.z.string()).optional(),
20
+ starterCode: zod_1.z.string(),
21
+ acceptanceRate: zod_1.z.number().min(0).max(100),
22
+ createdAt: zod_1.z.date(),
23
+ updatedAt: zod_1.z.date(),
24
+ });
25
+ //# sourceMappingURL=problem-response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/problem/problem-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAAsD;AACtD,6DAA4D;AAE/C,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,yCAAoB,CAAC;IACvC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAU,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1C,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const ProblemSetResponseSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ slug: z.ZodString;
5
+ title: z.ZodString;
6
+ description: z.ZodString;
7
+ problemIds: z.ZodArray<z.ZodString, "many">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ title: string;
11
+ description: string;
12
+ slug: string;
13
+ problemIds: string[];
14
+ }, {
15
+ id: string;
16
+ title: string;
17
+ description: string;
18
+ slug: string;
19
+ problemIds: string[];
20
+ }>;
21
+ export type ProblemSetResponseDto = z.infer<typeof ProblemSetResponseSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProblemSetResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ProblemSetResponseSchema = zod_1.z.object({
6
+ id: zod_1.z.string().uuid(),
7
+ slug: zod_1.z.string(),
8
+ title: zod_1.z.string(),
9
+ description: zod_1.z.string(),
10
+ problemIds: zod_1.z.array(zod_1.z.string().uuid()),
11
+ });
12
+ //# sourceMappingURL=problem-set-response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-set-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/problem/problem-set-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;CACvC,CAAC,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const CreateSubmissionSchema: z.ZodObject<{
3
- challengeId: z.ZodString;
3
+ problemId: z.ZodString;
4
4
  answer: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- challengeId: string;
6
+ problemId: string;
7
7
  answer: string;
8
8
  }, {
9
- challengeId: string;
9
+ problemId: string;
10
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
- challengeId: zod_1.z.string().uuid('Invalid challenge ID'),
6
+ problemId: zod_1.z.string().uuid('Invalid problem ID'),
7
7
  answer: zod_1.z.string().min(1, 'Answer is required'),
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,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC;IACpD,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,CAAC,oBAAoB,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,oBAAoB,CAAC;CAChD,CAAC,CAAC"}
@@ -2,14 +2,14 @@ import { z } from 'zod';
2
2
  export declare const SubmissionResponseSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  userId: z.ZodString;
5
- challengeId: z.ZodString;
5
+ problemId: z.ZodString;
6
6
  answer: z.ZodString;
7
7
  isCorrect: z.ZodBoolean;
8
8
  executionTime: z.ZodOptional<z.ZodNumber>;
9
9
  submittedAt: z.ZodDate;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: string;
12
- challengeId: string;
12
+ problemId: string;
13
13
  answer: string;
14
14
  userId: string;
15
15
  isCorrect: boolean;
@@ -17,7 +17,7 @@ export declare const SubmissionResponseSchema: z.ZodObject<{
17
17
  executionTime?: number | undefined;
18
18
  }, {
19
19
  id: string;
20
- challengeId: string;
20
+ problemId: string;
21
21
  answer: string;
22
22
  userId: string;
23
23
  isCorrect: boolean;
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  exports.SubmissionResponseSchema = zod_1.z.object({
6
6
  id: zod_1.z.string().uuid(),
7
7
  userId: zod_1.z.string().uuid(),
8
- challengeId: zod_1.z.string().uuid(),
8
+ problemId: zod_1.z.string().uuid(),
9
9
  answer: zod_1.z.string(),
10
10
  isCorrect: zod_1.z.boolean(),
11
11
  executionTime: zod_1.z.number().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"submission-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/submission/submission-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,OAAC,CAAC,IAAI,EAAE;CACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"submission-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/submission/submission-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,OAAC,CAAC,IAAI,EAAE;CACtB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './difficulty.enum';
2
- export * from './challenge-type.enum';
2
+ export * from './problem-type.enum';
3
3
  export * from './provider.enum';
4
+ export * from './submission-status.enum';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./difficulty.enum"), exports);
18
- __exportStar(require("./challenge-type.enum"), exports);
18
+ __exportStar(require("./problem-type.enum"), exports);
19
19
  __exportStar(require("./provider.enum"), exports);
20
+ __exportStar(require("./submission-status.enum"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,2DAAyC"}
@@ -1,4 +1,4 @@
1
- export declare enum ChallengeType {
1
+ export declare enum ProblemType {
2
2
  CODE = "code",
3
3
  DIAGRAM = "diagram"
4
4
  }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProblemType = void 0;
4
+ var ProblemType;
5
+ (function (ProblemType) {
6
+ ProblemType["CODE"] = "code";
7
+ ProblemType["DIAGRAM"] = "diagram";
8
+ })(ProblemType || (exports.ProblemType = ProblemType = {}));
9
+ //# sourceMappingURL=problem-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-type.enum.js","sourceRoot":"","sources":["../../src/enums/problem-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -0,0 +1,7 @@
1
+ export declare enum SubmissionStatus {
2
+ PENDING = "pending",
3
+ RUNNING = "running",
4
+ PASSED = "passed",
5
+ FAILED = "failed",
6
+ ERROR = "error"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmissionStatus = void 0;
4
+ var SubmissionStatus;
5
+ (function (SubmissionStatus) {
6
+ SubmissionStatus["PENDING"] = "pending";
7
+ SubmissionStatus["RUNNING"] = "running";
8
+ SubmissionStatus["PASSED"] = "passed";
9
+ SubmissionStatus["FAILED"] = "failed";
10
+ SubmissionStatus["ERROR"] = "error";
11
+ })(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
12
+ //# sourceMappingURL=submission-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submission-status.enum.js","sourceRoot":"","sources":["../../src/enums/submission-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACjB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
@@ -1,6 +1,11 @@
1
1
  export * from './user.interface';
2
2
  export * from './auth-payload.interface';
3
3
  export * from './oauth-profile.interface';
4
- export * from './challenge.interface';
4
+ export * from './problem.interface';
5
5
  export * from './submission.interface';
6
6
  export * from './leaderboard.interface';
7
+ export * from './test-result.interface';
8
+ export * from './problem-example.interface';
9
+ export * from './test-case.interface';
10
+ export * from './problem-grading-spec.interface';
11
+ export * from './problem-set.interface';
@@ -17,7 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user.interface"), exports);
18
18
  __exportStar(require("./auth-payload.interface"), exports);
19
19
  __exportStar(require("./oauth-profile.interface"), exports);
20
- __exportStar(require("./challenge.interface"), exports);
20
+ __exportStar(require("./problem.interface"), exports);
21
21
  __exportStar(require("./submission.interface"), exports);
22
22
  __exportStar(require("./leaderboard.interface"), exports);
23
+ __exportStar(require("./test-result.interface"), exports);
24
+ __exportStar(require("./problem-example.interface"), exports);
25
+ __exportStar(require("./test-case.interface"), exports);
26
+ __exportStar(require("./problem-grading-spec.interface"), exports);
27
+ __exportStar(require("./problem-set.interface"), exports);
23
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC;AACtC,yDAAuC;AACvC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2DAAyC;AACzC,4DAA0C;AAC1C,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,mEAAiD;AACjD,0DAAwC"}
@@ -0,0 +1,5 @@
1
+ export interface IProblemExample {
2
+ input: string;
3
+ output: string;
4
+ explanation?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=problem-example.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-example.interface.js","sourceRoot":"","sources":["../../src/interfaces/problem-example.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IProblem } from './problem.interface';
2
+ import { ITestCase } from './test-case.interface';
3
+ export interface IProblemGradingSpec extends IProblem {
4
+ testCases: ITestCase[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=problem-grading-spec.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-grading-spec.interface.js","sourceRoot":"","sources":["../../src/interfaces/problem-grading-spec.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface IProblemSet {
2
+ id: string;
3
+ slug: string;
4
+ title: string;
5
+ description: string;
6
+ problemIds: string[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=problem-set.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-set.interface.js","sourceRoot":"","sources":["../../src/interfaces/problem-set.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import { Difficulty, ProblemType } from '../enums';
2
+ import { IProblemExample } from './problem-example.interface';
3
+ export interface IProblem {
4
+ id: string;
5
+ slug: string;
6
+ title: string;
7
+ description: string;
8
+ examples: IProblemExample[];
9
+ constraints?: string[];
10
+ followUp?: string;
11
+ difficulty: Difficulty;
12
+ type: ProblemType;
13
+ tags: string[];
14
+ companies: string[];
15
+ hints?: string[];
16
+ starterCode: string;
17
+ acceptanceRate: number;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=challenge.interface.js.map
3
+ //# sourceMappingURL=problem.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem.interface.js","sourceRoot":"","sources":["../../src/interfaces/problem.interface.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  export interface ISubmission {
2
2
  id: string;
3
3
  userId: string;
4
- challengeId: string;
4
+ problemId: string;
5
5
  answer: string;
6
6
  isCorrect: boolean;
7
7
  executionTime?: number;
@@ -0,0 +1,4 @@
1
+ export interface ITestCase {
2
+ name: string;
3
+ script: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=test-case.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-case.interface.js","sourceRoot":"","sources":["../../src/interfaces/test-case.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ITestResult {
2
+ name: string;
3
+ passed: boolean;
4
+ message?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=test-result.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-result.interface.js","sourceRoot":"","sources":["../../src/interfaces/test-result.interface.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudkata/common",
3
- "version": "1.0.11",
3
+ "version": "1.0.15",
4
4
  "description": "Shared contracts, interfaces, DTOs and enums for CloudKata",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,34 +0,0 @@
1
- import { z } from 'zod';
2
- import { Difficulty, ChallengeType } from '../../enums/index.js';
3
- export declare const ChallengeResponseSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- title: z.ZodString;
6
- description: z.ZodString;
7
- difficulty: z.ZodNativeEnum<typeof Difficulty>;
8
- type: z.ZodNativeEnum<typeof ChallengeType>;
9
- category: z.ZodString;
10
- hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
- createdAt: z.ZodDate;
12
- updatedAt: z.ZodDate;
13
- }, "strip", z.ZodTypeAny, {
14
- type: ChallengeType;
15
- id: string;
16
- createdAt: Date;
17
- updatedAt: Date;
18
- title: string;
19
- description: string;
20
- difficulty: Difficulty;
21
- category: string;
22
- hints?: string[] | undefined;
23
- }, {
24
- type: ChallengeType;
25
- id: string;
26
- createdAt: Date;
27
- updatedAt: Date;
28
- title: string;
29
- description: string;
30
- difficulty: Difficulty;
31
- category: string;
32
- hints?: string[] | undefined;
33
- }>;
34
- export type ChallengeResponseDto = z.infer<typeof ChallengeResponseSchema>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChallengeResponseSchema = void 0;
4
- const zod_1 = require("zod");
5
- const _enums_1 = require("../../enums/index.js");
6
- exports.ChallengeResponseSchema = zod_1.z.object({
7
- id: zod_1.z.string().uuid(),
8
- title: zod_1.z.string(),
9
- description: zod_1.z.string(),
10
- difficulty: zod_1.z.nativeEnum(_enums_1.Difficulty),
11
- type: zod_1.z.nativeEnum(_enums_1.ChallengeType),
12
- category: zod_1.z.string(),
13
- hints: zod_1.z.array(zod_1.z.string()).optional(),
14
- createdAt: zod_1.z.date(),
15
- updatedAt: zod_1.z.date(),
16
- });
17
- //# sourceMappingURL=challenge-response.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenge-response.dto.js","sourceRoot":"","sources":["../../../src/dtos/challenge/challenge-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAmD;AAEtC,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAU,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- import { Difficulty, ChallengeType } from '../../enums/index.js';
3
- export declare const CreateChallengeSchema: z.ZodObject<{
4
- title: z.ZodString;
5
- description: z.ZodString;
6
- difficulty: z.ZodNativeEnum<typeof Difficulty>;
7
- type: z.ZodNativeEnum<typeof ChallengeType>;
8
- category: z.ZodString;
9
- hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- solution: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- type: ChallengeType;
13
- title: string;
14
- description: string;
15
- difficulty: Difficulty;
16
- category: string;
17
- solution: string;
18
- hints?: string[] | undefined;
19
- }, {
20
- type: ChallengeType;
21
- title: string;
22
- description: string;
23
- difficulty: Difficulty;
24
- category: string;
25
- solution: string;
26
- hints?: string[] | undefined;
27
- }>;
28
- export type CreateChallengeDto = z.infer<typeof CreateChallengeSchema>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateChallengeSchema = void 0;
4
- const zod_1 = require("zod");
5
- const _enums_1 = require("../../enums/index.js");
6
- exports.CreateChallengeSchema = zod_1.z.object({
7
- title: zod_1.z
8
- .string()
9
- .min(5, 'Title must be at least 5 characters')
10
- .max(100, 'Title must be at most 100 characters'),
11
- description: zod_1.z.string().min(20, 'Description must be at least 20 characters'),
12
- difficulty: zod_1.z.nativeEnum(_enums_1.Difficulty),
13
- type: zod_1.z.nativeEnum(_enums_1.ChallengeType),
14
- category: zod_1.z.string().min(1, 'Category is required'),
15
- hints: zod_1.z.array(zod_1.z.string()).optional(),
16
- solution: zod_1.z.string().min(1, 'Solution is required'),
17
- });
18
- //# sourceMappingURL=create-challenge.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-challenge.dto.js","sourceRoot":"","sources":["../../../src/dtos/challenge/create-challenge.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAmD;AAEtC,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,qCAAqC,CAAC;SAC7C,GAAG,CAAC,GAAG,EAAE,sCAAsC,CAAC;IACnD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,4CAA4C,CAAC;IAC7E,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAU,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;CACpD,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './create-challenge.dto';
2
- export * from './challenge-response.dto';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dtos/challenge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,2DAAyC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChallengeType = void 0;
4
- var ChallengeType;
5
- (function (ChallengeType) {
6
- ChallengeType["CODE"] = "code";
7
- ChallengeType["DIAGRAM"] = "diagram";
8
- })(ChallengeType || (exports.ChallengeType = ChallengeType = {}));
9
- //# sourceMappingURL=challenge-type.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenge-type.enum.js","sourceRoot":"","sources":["../../src/enums/challenge-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,oCAAmB,CAAA;AACrB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
@@ -1,13 +0,0 @@
1
- import { Difficulty, ChallengeType } from '../enums/index.js';
2
- export interface IChallenge {
3
- id: string;
4
- title: string;
5
- description: string;
6
- difficulty: Difficulty;
7
- type: ChallengeType;
8
- category: string;
9
- hints?: string[];
10
- solution: string;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenge.interface.js","sourceRoot":"","sources":["../../src/interfaces/challenge.interface.ts"],"names":[],"mappings":""}