@cloudkata/common 1.0.9 → 1.0.14
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.
- package/dist/dtos/auth/auth-response.dto.d.ts +1 -1
- package/dist/dtos/auth/auth-response.dto.js +1 -1
- package/dist/dtos/auth/oauth-response.dto.d.ts +1 -1
- package/dist/dtos/auth/oauth-response.dto.js +1 -1
- package/dist/dtos/index.d.ts +1 -1
- package/dist/dtos/index.js +1 -1
- package/dist/dtos/index.js.map +1 -1
- package/dist/dtos/{challenge/create-challenge.dto.d.ts → problem/create-problem.dto.d.ts} +6 -6
- package/dist/dtos/{challenge/create-challenge.dto.js → problem/create-problem.dto.js} +5 -5
- package/dist/dtos/problem/create-problem.dto.js.map +1 -0
- package/dist/dtos/problem/index.d.ts +2 -0
- package/dist/dtos/{challenge → problem}/index.js +2 -2
- package/dist/dtos/problem/index.js.map +1 -0
- package/dist/dtos/{challenge/challenge-response.dto.d.ts → problem/problem-response.dto.d.ts} +6 -6
- package/dist/dtos/{challenge/challenge-response.dto.js → problem/problem-response.dto.js} +5 -5
- package/dist/dtos/problem/problem-response.dto.js.map +1 -0
- package/dist/dtos/submission/create-submission.dto.d.ts +3 -3
- package/dist/dtos/submission/create-submission.dto.js +1 -1
- package/dist/dtos/submission/create-submission.dto.js.map +1 -1
- package/dist/dtos/submission/submission-response.dto.d.ts +3 -3
- package/dist/dtos/submission/submission-response.dto.js +1 -1
- package/dist/dtos/submission/submission-response.dto.js.map +1 -1
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/index.js +2 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/{challenge-type.enum.d.ts → problem-type.enum.d.ts} +1 -1
- package/dist/enums/problem-type.enum.js +9 -0
- package/dist/enums/problem-type.enum.js.map +1 -0
- package/dist/enums/submission-status.enum.d.ts +7 -0
- package/dist/enums/submission-status.enum.js +12 -0
- package/dist/enums/submission-status.enum.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -1
- package/dist/interfaces/index.js +2 -1
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/oauth-profile.interface.d.ts +1 -1
- package/dist/interfaces/{challenge.interface.d.ts → problem.interface.d.ts} +3 -3
- package/dist/interfaces/{challenge.interface.js → problem.interface.js} +1 -1
- package/dist/interfaces/problem.interface.js.map +1 -0
- package/dist/interfaces/submission.interface.d.ts +1 -1
- package/dist/interfaces/test-result.interface.d.ts +5 -0
- package/dist/interfaces/test-result.interface.js +3 -0
- package/dist/interfaces/test-result.interface.js.map +1 -0
- package/dist/interfaces/user.interface.d.ts +1 -1
- package/package.json +2 -2
- package/dist/dtos/challenge/challenge-response.dto.js.map +0 -1
- package/dist/dtos/challenge/create-challenge.dto.js.map +0 -1
- package/dist/dtos/challenge/index.d.ts +0 -2
- package/dist/dtos/challenge/index.js.map +0 -1
- package/dist/enums/challenge-type.enum.js +0 -9
- package/dist/enums/challenge-type.enum.js.map +0 -1
- package/dist/interfaces/challenge.interface.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const _enums_1 = require("
|
|
5
|
+
const _enums_1 = require("../../enums/index.js");
|
|
6
6
|
exports.AuthResponseSchema = zod_1.z.object({
|
|
7
7
|
accessToken: zod_1.z.string(),
|
|
8
8
|
refreshToken: zod_1.z.string(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OAuthResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const _enums_1 = require("
|
|
5
|
+
const _enums_1 = require("../../enums/index.js");
|
|
6
6
|
exports.OAuthResponseSchema = zod_1.z.object({
|
|
7
7
|
accessToken: zod_1.z.string(),
|
|
8
8
|
refreshToken: zod_1.z.string(),
|
package/dist/dtos/index.d.ts
CHANGED
package/dist/dtos/index.js
CHANGED
|
@@ -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("./
|
|
18
|
+
__exportStar(require("./problem"), exports);
|
|
19
19
|
__exportStar(require("./submission"), exports);
|
|
20
20
|
__exportStar(require("./leaderboard"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/dtos/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Difficulty,
|
|
3
|
-
export declare const
|
|
2
|
+
import { Difficulty, ProblemType } from '../../enums/index.js';
|
|
3
|
+
export declare const CreateProblemSchema: z.ZodObject<{
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
description: z.ZodString;
|
|
6
6
|
difficulty: z.ZodNativeEnum<typeof Difficulty>;
|
|
7
|
-
type: z.ZodNativeEnum<typeof
|
|
7
|
+
type: z.ZodNativeEnum<typeof ProblemType>;
|
|
8
8
|
category: z.ZodString;
|
|
9
9
|
hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
10
|
solution: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
type:
|
|
12
|
+
type: ProblemType;
|
|
13
13
|
title: string;
|
|
14
14
|
description: string;
|
|
15
15
|
difficulty: Difficulty;
|
|
@@ -17,7 +17,7 @@ export declare const CreateChallengeSchema: z.ZodObject<{
|
|
|
17
17
|
solution: string;
|
|
18
18
|
hints?: string[] | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
type:
|
|
20
|
+
type: ProblemType;
|
|
21
21
|
title: string;
|
|
22
22
|
description: string;
|
|
23
23
|
difficulty: Difficulty;
|
|
@@ -25,4 +25,4 @@ export declare const CreateChallengeSchema: z.ZodObject<{
|
|
|
25
25
|
solution: string;
|
|
26
26
|
hints?: string[] | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
export type
|
|
28
|
+
export type CreateProblemDto = z.infer<typeof CreateProblemSchema>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateProblemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const _enums_1 = require("
|
|
6
|
-
exports.
|
|
5
|
+
const _enums_1 = require("../../enums/index.js");
|
|
6
|
+
exports.CreateProblemSchema = zod_1.z.object({
|
|
7
7
|
title: zod_1.z
|
|
8
8
|
.string()
|
|
9
9
|
.min(5, 'Title must be at least 5 characters')
|
|
10
10
|
.max(100, 'Title must be at most 100 characters'),
|
|
11
11
|
description: zod_1.z.string().min(20, 'Description must be at least 20 characters'),
|
|
12
12
|
difficulty: zod_1.z.nativeEnum(_enums_1.Difficulty),
|
|
13
|
-
type: zod_1.z.nativeEnum(_enums_1.
|
|
13
|
+
type: zod_1.z.nativeEnum(_enums_1.ProblemType),
|
|
14
14
|
category: zod_1.z.string().min(1, 'Category is required'),
|
|
15
15
|
hints: zod_1.z.array(zod_1.z.string()).optional(),
|
|
16
16
|
solution: zod_1.z.string().min(1, 'Solution is required'),
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=create-
|
|
18
|
+
//# 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,mCAAiD;AAEpC,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,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,oBAAW,CAAC;IAC/B,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"}
|
|
@@ -14,6 +14,6 @@ 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-
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./create-problem.dto"), exports);
|
|
18
|
+
__exportStar(require("./problem-response.dto"), exports);
|
|
19
19
|
//# 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"}
|
package/dist/dtos/{challenge/challenge-response.dto.d.ts → problem/problem-response.dto.d.ts}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Difficulty,
|
|
3
|
-
export declare const
|
|
2
|
+
import { Difficulty, ProblemType } from '../../enums/index.js';
|
|
3
|
+
export declare const ProblemResponseSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
description: z.ZodString;
|
|
7
7
|
difficulty: z.ZodNativeEnum<typeof Difficulty>;
|
|
8
|
-
type: z.ZodNativeEnum<typeof
|
|
8
|
+
type: z.ZodNativeEnum<typeof ProblemType>;
|
|
9
9
|
category: z.ZodString;
|
|
10
10
|
hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
11
|
createdAt: z.ZodDate;
|
|
12
12
|
updatedAt: z.ZodDate;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type:
|
|
14
|
+
type: ProblemType;
|
|
15
15
|
id: string;
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
updatedAt: Date;
|
|
@@ -21,7 +21,7 @@ export declare const ChallengeResponseSchema: z.ZodObject<{
|
|
|
21
21
|
category: string;
|
|
22
22
|
hints?: string[] | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
type:
|
|
24
|
+
type: ProblemType;
|
|
25
25
|
id: string;
|
|
26
26
|
createdAt: Date;
|
|
27
27
|
updatedAt: Date;
|
|
@@ -31,4 +31,4 @@ export declare const ChallengeResponseSchema: z.ZodObject<{
|
|
|
31
31
|
category: string;
|
|
32
32
|
hints?: string[] | undefined;
|
|
33
33
|
}>;
|
|
34
|
-
export type
|
|
34
|
+
export type ProblemResponseDto = z.infer<typeof ProblemResponseSchema>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ProblemResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const _enums_1 = require("
|
|
6
|
-
exports.
|
|
5
|
+
const _enums_1 = require("../../enums/index.js");
|
|
6
|
+
exports.ProblemResponseSchema = zod_1.z.object({
|
|
7
7
|
id: zod_1.z.string().uuid(),
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
9
|
description: zod_1.z.string(),
|
|
10
10
|
difficulty: zod_1.z.nativeEnum(_enums_1.Difficulty),
|
|
11
|
-
type: zod_1.z.nativeEnum(_enums_1.
|
|
11
|
+
type: zod_1.z.nativeEnum(_enums_1.ProblemType),
|
|
12
12
|
category: zod_1.z.string(),
|
|
13
13
|
hints: zod_1.z.array(zod_1.z.string()).optional(),
|
|
14
14
|
createdAt: zod_1.z.date(),
|
|
15
15
|
updatedAt: zod_1.z.date(),
|
|
16
16
|
});
|
|
17
|
-
//# sourceMappingURL=
|
|
17
|
+
//# 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,mCAAiD;AAEpC,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,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,oBAAW,CAAC;IAC/B,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,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreateSubmissionSchema: z.ZodObject<{
|
|
3
|
-
|
|
3
|
+
problemId: z.ZodString;
|
|
4
4
|
answer: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
|
|
6
|
+
problemId: string;
|
|
7
7
|
answer: string;
|
|
8
8
|
}, {
|
|
9
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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"}
|
package/dist/enums/index.d.ts
CHANGED
package/dist/enums/index.js
CHANGED
|
@@ -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("./
|
|
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
|
package/dist/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,2DAAyC"}
|
|
@@ -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,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,7 @@
|
|
|
1
1
|
export * from './user.interface';
|
|
2
2
|
export * from './auth-payload.interface';
|
|
3
3
|
export * from './oauth-profile.interface';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './problem.interface';
|
|
5
5
|
export * from './submission.interface';
|
|
6
6
|
export * from './leaderboard.interface';
|
|
7
|
+
export * from './test-result.interface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -17,7 +17,8 @@ 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("./
|
|
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);
|
|
23
24
|
//# 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,
|
|
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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Difficulty,
|
|
2
|
-
export interface
|
|
1
|
+
import { Difficulty, ProblemType } from '../enums/index.js';
|
|
2
|
+
export interface IProblem {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
difficulty: Difficulty;
|
|
7
|
-
type:
|
|
7
|
+
type: ProblemType;
|
|
8
8
|
category: string;
|
|
9
9
|
hints?: string[];
|
|
10
10
|
solution: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"problem.interface.js","sourceRoot":"","sources":["../../src/interfaces/problem.interface.ts"],"names":[],"mappings":""}
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudkata/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Shared contracts, interfaces, DTOs and enums for CloudKata",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
8
|
+
"build": "tsc && tsc-alias",
|
|
9
9
|
"build:watch": "tsc --watch",
|
|
10
10
|
"check": "npm run lint && npm run format:check",
|
|
11
11
|
"lint": "eslint src/**/*.ts",
|
|
@@ -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 +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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"challenge.interface.js","sourceRoot":"","sources":["../../src/interfaces/challenge.interface.ts"],"names":[],"mappings":""}
|