@typeolymp/utils 0.1.18 → 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.
@@ -0,0 +1,5 @@
1
+ export declare enum AchievementType {
2
+ PRACTICE_TIME = "practiceTime",
3
+ PRACTICE_STREAK = "practiceStreak",
4
+ MEDALS = "medals"
5
+ }
@@ -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,8 @@
1
+ export declare enum ChartDataType {
2
+ PROGRESS = "progress",
3
+ TIME_PRACTISED = "timePractised",
4
+ RESULTS = "results",
5
+ HITS = "hits",
6
+ KPM = "kpm",
7
+ ACCURACY = "accuracy"
8
+ }
@@ -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,5 @@
1
+ export declare enum Currency {
2
+ EUR = "EUR",
3
+ GBP = "GBP",
4
+ USD = "USD"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currency = void 0;
4
+ var Currency;
5
+ (function (Currency) {
6
+ Currency["EUR"] = "EUR";
7
+ Currency["GBP"] = "GBP";
8
+ Currency["USD"] = "USD";
9
+ })(Currency = exports.Currency || (exports.Currency = {}));
10
+ //# sourceMappingURL=Currency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/enums/Currency.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB"}
@@ -0,0 +1,6 @@
1
+ export declare enum ExerciseType {
2
+ KEYS = "keys",
3
+ DRILLS = "drills",
4
+ WORDS = "words",
5
+ TEXT = "text"
6
+ }
@@ -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,5 @@
1
+ export declare enum NodeEnv {
2
+ TEST = "test",
3
+ DEVELOPMENT = "development",
4
+ PRODUCTION = "production"
5
+ }
@@ -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"}
@@ -1,8 +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";
6
+ export * from "./Currency";
7
+ export * from "./ExerciseType";
8
+ export * from "./HttpStatus";
4
9
  export * from "./KeyboardLayout";
5
10
  export * from "./Locale";
11
+ export * from "./Medal";
12
+ export * from "./NodeEnv";
6
13
  export * from "./Plan";
7
14
  export * from "./TextTopic";
8
- export * from "./Medal";
@@ -14,12 +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);
22
+ __exportStar(require("./Currency"), exports);
23
+ __exportStar(require("./ExerciseType"), exports);
24
+ __exportStar(require("./HttpStatus"), exports);
20
25
  __exportStar(require("./KeyboardLayout"), exports);
21
26
  __exportStar(require("./Locale"), exports);
27
+ __exportStar(require("./Medal"), exports);
28
+ __exportStar(require("./NodeEnv"), exports);
22
29
  __exportStar(require("./Plan"), exports);
23
30
  __exportStar(require("./TextTopic"), exports);
24
- __exportStar(require("./Medal"), exports);
25
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC;AACpC,mDAAiC;AACjC,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAuB"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeolymp/utils",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index",
6
6
  "files": [