@typeolymp/utils 0.1.19 → 0.1.20
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/build/enums/AchievementType.d.ts +5 -0
- package/build/enums/AchievementType.js +10 -0
- package/build/enums/AchievementType.js.map +1 -0
- package/build/enums/ChartDataType.d.ts +8 -0
- package/build/enums/ChartDataType.js +13 -0
- package/build/enums/ChartDataType.js.map +1 -0
- package/build/enums/ExerciseType.d.ts +6 -0
- package/build/enums/ExerciseType.js +11 -0
- package/build/enums/ExerciseType.js.map +1 -0
- package/build/enums/HttpStatus.d.ts +22 -0
- package/build/enums/HttpStatus.js +34 -0
- package/build/enums/HttpStatus.js.map +1 -0
- package/build/enums/NodeEnv.d.ts +5 -0
- package/build/enums/NodeEnv.js +10 -0
- package/build/enums/NodeEnv.js.map +1 -0
- package/build/enums/index.d.ts +6 -1
- package/build/enums/index.js +6 -1
- package/build/enums/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AchievementType = void 0;
|
|
4
|
+
var AchievementType;
|
|
5
|
+
(function (AchievementType) {
|
|
6
|
+
AchievementType["PRACTICE_TIME"] = "practiceTime";
|
|
7
|
+
AchievementType["PRACTICE_STREAK"] = "practiceStreak";
|
|
8
|
+
AchievementType["MEDALS"] = "medals";
|
|
9
|
+
})(AchievementType = exports.AchievementType || (exports.AchievementType = {}));
|
|
10
|
+
//# sourceMappingURL=AchievementType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AchievementType.js","sourceRoot":"","sources":["../../src/enums/AchievementType.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,iDAA8B,CAAA;IAC9B,qDAAkC,CAAA;IAClC,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChartDataType = void 0;
|
|
4
|
+
var ChartDataType;
|
|
5
|
+
(function (ChartDataType) {
|
|
6
|
+
ChartDataType["PROGRESS"] = "progress";
|
|
7
|
+
ChartDataType["TIME_PRACTISED"] = "timePractised";
|
|
8
|
+
ChartDataType["RESULTS"] = "results";
|
|
9
|
+
ChartDataType["HITS"] = "hits";
|
|
10
|
+
ChartDataType["KPM"] = "kpm";
|
|
11
|
+
ChartDataType["ACCURACY"] = "accuracy";
|
|
12
|
+
})(ChartDataType = exports.ChartDataType || (exports.ChartDataType = {}));
|
|
13
|
+
//# sourceMappingURL=ChartDataType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartDataType.js","sourceRoot":"","sources":["../../src/enums/ChartDataType.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,iDAAgC,CAAA;IAChC,oCAAmB,CAAA;IACnB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,sCAAqB,CAAA;AACvB,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExerciseType = void 0;
|
|
4
|
+
var ExerciseType;
|
|
5
|
+
(function (ExerciseType) {
|
|
6
|
+
ExerciseType["KEYS"] = "keys";
|
|
7
|
+
ExerciseType["DRILLS"] = "drills";
|
|
8
|
+
ExerciseType["WORDS"] = "words";
|
|
9
|
+
ExerciseType["TEXT"] = "text";
|
|
10
|
+
})(ExerciseType = exports.ExerciseType || (exports.ExerciseType = {}));
|
|
11
|
+
//# sourceMappingURL=ExerciseType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExerciseType.js","sourceRoot":"","sources":["../../src/enums/ExerciseType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum HttpStatusCode {
|
|
2
|
+
OK = 200,
|
|
3
|
+
CREATED = 201,
|
|
4
|
+
BAD_REQUEST = 400,
|
|
5
|
+
UNAUTHORIZED = 401,
|
|
6
|
+
FORBIDDEN = 403,
|
|
7
|
+
NOT_FOUND = 404,
|
|
8
|
+
CONFLICT = 409,
|
|
9
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
10
|
+
NOT_IMPLEMENTED = 501
|
|
11
|
+
}
|
|
12
|
+
export declare enum HttpStatusText {
|
|
13
|
+
OK = "OK",
|
|
14
|
+
CREATED = "Created",
|
|
15
|
+
BAD_REQUEST = "Bad Request",
|
|
16
|
+
UNAUTHORIZED = "Unauthorized",
|
|
17
|
+
FORBIDDEN = "Forbidden",
|
|
18
|
+
NOT_FOUND = "Not Found",
|
|
19
|
+
CONFLICT = "Conflict",
|
|
20
|
+
INTERNAL_SERVER_ERROR = "Internal Server Error",
|
|
21
|
+
NOT_IMPLEMENTED = "Not Implemented"
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatusText = exports.HttpStatusCode = void 0;
|
|
4
|
+
var HttpStatusCode;
|
|
5
|
+
(function (HttpStatusCode) {
|
|
6
|
+
// 2xx Success
|
|
7
|
+
HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
|
|
8
|
+
HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
|
|
9
|
+
// 4xx Client Errors
|
|
10
|
+
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
11
|
+
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
12
|
+
HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
13
|
+
HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
14
|
+
HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
|
|
15
|
+
// 5xx Server Errors
|
|
16
|
+
HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
17
|
+
HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
18
|
+
})(HttpStatusCode = exports.HttpStatusCode || (exports.HttpStatusCode = {}));
|
|
19
|
+
var HttpStatusText;
|
|
20
|
+
(function (HttpStatusText) {
|
|
21
|
+
// 2xx Success
|
|
22
|
+
HttpStatusText["OK"] = "OK";
|
|
23
|
+
HttpStatusText["CREATED"] = "Created";
|
|
24
|
+
// 4xx Client Errors
|
|
25
|
+
HttpStatusText["BAD_REQUEST"] = "Bad Request";
|
|
26
|
+
HttpStatusText["UNAUTHORIZED"] = "Unauthorized";
|
|
27
|
+
HttpStatusText["FORBIDDEN"] = "Forbidden";
|
|
28
|
+
HttpStatusText["NOT_FOUND"] = "Not Found";
|
|
29
|
+
HttpStatusText["CONFLICT"] = "Conflict";
|
|
30
|
+
// 5xx Server Errors
|
|
31
|
+
HttpStatusText["INTERNAL_SERVER_ERROR"] = "Internal Server Error";
|
|
32
|
+
HttpStatusText["NOT_IMPLEMENTED"] = "Not Implemented";
|
|
33
|
+
})(HttpStatusText = exports.HttpStatusText || (exports.HttpStatusText = {}));
|
|
34
|
+
//# sourceMappingURL=HttpStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpStatus.js","sourceRoot":"","sources":["../../src/enums/HttpStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAeX;AAfD,WAAY,cAAc;IACxB,cAAc;IACd,iDAAQ,CAAA;IACR,2DAAa,CAAA;IAEb,oBAAoB;IACpB,mEAAiB,CAAA;IACjB,qEAAkB,CAAA;IAClB,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,6DAAc,CAAA;IAEd,oBAAoB;IACpB,uFAA2B,CAAA;IAC3B,2EAAqB,CAAA;AACvB,CAAC,EAfW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAezB;AAED,IAAY,cAeX;AAfD,WAAY,cAAc;IACxB,cAAc;IACd,2BAAS,CAAA;IACT,qCAAmB,CAAA;IAEnB,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IAErB,oBAAoB;IACpB,iEAA+C,CAAA;IAC/C,qDAAmC,CAAA;AACrC,CAAC,EAfW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAezB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeEnv = void 0;
|
|
4
|
+
var NodeEnv;
|
|
5
|
+
(function (NodeEnv) {
|
|
6
|
+
NodeEnv["TEST"] = "test";
|
|
7
|
+
NodeEnv["DEVELOPMENT"] = "development";
|
|
8
|
+
NodeEnv["PRODUCTION"] = "production";
|
|
9
|
+
})(NodeEnv = exports.NodeEnv || (exports.NodeEnv = {}));
|
|
10
|
+
//# sourceMappingURL=NodeEnv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeEnv.js","sourceRoot":"","sources":["../../src/enums/NodeEnv.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,sCAA2B,CAAA;IAC3B,oCAAyB,CAAA;AAC3B,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB"}
|
package/build/enums/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
export * from "./AchievementType";
|
|
2
|
+
export * from "./ChartDataType";
|
|
1
3
|
export * from "./Color";
|
|
2
4
|
export * from "./Country";
|
|
3
5
|
export * from "./CourseTranslation";
|
|
4
6
|
export * from "./Currency";
|
|
7
|
+
export * from "./ExerciseType";
|
|
8
|
+
export * from "./HttpStatus";
|
|
5
9
|
export * from "./KeyboardLayout";
|
|
6
10
|
export * from "./Locale";
|
|
11
|
+
export * from "./Medal";
|
|
12
|
+
export * from "./NodeEnv";
|
|
7
13
|
export * from "./Plan";
|
|
8
14
|
export * from "./TextTopic";
|
|
9
|
-
export * from "./Medal";
|
package/build/enums/index.js
CHANGED
|
@@ -14,13 +14,18 @@ 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("./AchievementType"), exports);
|
|
18
|
+
__exportStar(require("./ChartDataType"), exports);
|
|
17
19
|
__exportStar(require("./Color"), exports);
|
|
18
20
|
__exportStar(require("./Country"), exports);
|
|
19
21
|
__exportStar(require("./CourseTranslation"), exports);
|
|
20
22
|
__exportStar(require("./Currency"), exports);
|
|
23
|
+
__exportStar(require("./ExerciseType"), exports);
|
|
24
|
+
__exportStar(require("./HttpStatus"), exports);
|
|
21
25
|
__exportStar(require("./KeyboardLayout"), exports);
|
|
22
26
|
__exportStar(require("./Locale"), exports);
|
|
27
|
+
__exportStar(require("./Medal"), exports);
|
|
28
|
+
__exportStar(require("./NodeEnv"), exports);
|
|
23
29
|
__exportStar(require("./Plan"), exports);
|
|
24
30
|
__exportStar(require("./TextTopic"), exports);
|
|
25
|
-
__exportStar(require("./Medal"), exports);
|
|
26
31
|
//# sourceMappingURL=index.js.map
|
package/build/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC;AACpC,6CAA2B;AAC3B,mDAAiC;AACjC,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kDAAgC;AAChC,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC;AACpC,6CAA2B;AAC3B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,8CAA4B"}
|