@typeolymp/utils 0.2.6 → 0.2.7

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.
@@ -8,6 +8,7 @@ export declare enum HttpStatusCode {
8
8
  FORBIDDEN = 403,
9
9
  NOT_FOUND = 404,
10
10
  CONFLICT = 409,
11
+ LOCKED = 423,
11
12
  INTERNAL_SERVER_ERROR = 500,
12
13
  NOT_IMPLEMENTED = 501
13
14
  }
@@ -21,6 +22,7 @@ export declare enum HttpStatusText {
21
22
  FORBIDDEN = "Forbidden",
22
23
  NOT_FOUND = "Not Found",
23
24
  CONFLICT = "Conflict",
25
+ LOCKED = "Locked",
24
26
  INTERNAL_SERVER_ERROR = "Internal Server Error",
25
27
  NOT_IMPLEMENTED = "Not Implemented"
26
28
  }
@@ -14,6 +14,7 @@ var HttpStatusCode;
14
14
  HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
15
15
  HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
16
16
  HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
17
+ HttpStatusCode[HttpStatusCode["LOCKED"] = 423] = "LOCKED";
17
18
  // 5xx Server Errors
18
19
  HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
19
20
  HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
@@ -31,6 +32,7 @@ var HttpStatusText;
31
32
  HttpStatusText["FORBIDDEN"] = "Forbidden";
32
33
  HttpStatusText["NOT_FOUND"] = "Not Found";
33
34
  HttpStatusText["CONFLICT"] = "Conflict";
35
+ HttpStatusText["LOCKED"] = "Locked";
34
36
  // 5xx Server Errors
35
37
  HttpStatusText["INTERNAL_SERVER_ERROR"] = "Internal Server Error";
36
38
  HttpStatusText["NOT_IMPLEMENTED"] = "Not Implemented";
@@ -1 +1 @@
1
- {"version":3,"file":"HttpStatus.js","sourceRoot":"","sources":["../../src/enums/HttpStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAiBX;AAjBD,WAAY,cAAc;IACxB,cAAc;IACd,iDAAQ,CAAA;IACR,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAEhB,oBAAoB;IACpB,mEAAiB,CAAA;IACjB,qEAAkB,CAAA;IAClB,6EAAsB,CAAA;IACtB,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,6DAAc,CAAA;IAEd,oBAAoB;IACpB,uFAA2B,CAAA;IAC3B,2EAAqB,CAAA;AACvB,CAAC,EAjBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAiBzB;AAED,IAAY,cAiBX;AAjBD,WAAY,cAAc;IACxB,cAAc;IACd,2BAAS,CAAA;IACT,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;IAEzB,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IAErB,oBAAoB;IACpB,iEAA+C,CAAA;IAC/C,qDAAmC,CAAA;AACrC,CAAC,EAjBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAiBzB"}
1
+ {"version":3,"file":"HttpStatus.js","sourceRoot":"","sources":["../../src/enums/HttpStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAkBX;AAlBD,WAAY,cAAc;IACxB,cAAc;IACd,iDAAQ,CAAA;IACR,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAEhB,oBAAoB;IACpB,mEAAiB,CAAA;IACjB,qEAAkB,CAAA;IAClB,6EAAsB,CAAA;IACtB,+DAAe,CAAA;IACf,+DAAe,CAAA;IACf,6DAAc,CAAA;IACd,yDAAY,CAAA;IAEZ,oBAAoB;IACpB,uFAA2B,CAAA;IAC3B,2EAAqB,CAAA;AACvB,CAAC,EAlBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAkBzB;AAED,IAAY,cAkBX;AAlBD,WAAY,cAAc;IACxB,cAAc;IACd,2BAAS,CAAA;IACT,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;IAEzB,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,mCAAiB,CAAA;IAEjB,oBAAoB;IACpB,iEAA+C,CAAA;IAC/C,qDAAmC,CAAA;AACrC,CAAC,EAlBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAkBzB"}
@@ -0,0 +1,2 @@
1
+ import { CourseTranslation } from "../enums";
2
+ export declare const getNativeLanguageByCourseTranslation: (translation: CourseTranslation) => string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNativeLanguageByCourseTranslation = void 0;
4
+ var getNativeLanguageByCourseTranslation = function (translation) {
5
+ var nativeLanguages = {
6
+ "nl-NL": "Nederlands",
7
+ // "nl-BE": "Nederlands (BE)",
8
+ // "en-GB": "English (UK)",
9
+ // "en-US": "English (US)",
10
+ // "fr-BE": "Français (BE)",
11
+ // "fr-FR": "Français",
12
+ // "de-DE": "Deutsch",
13
+ };
14
+ return nativeLanguages[translation];
15
+ };
16
+ exports.getNativeLanguageByCourseTranslation = getNativeLanguageByCourseTranslation;
17
+ //# sourceMappingURL=getNativeLanguageByCourseTranslation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeLanguageByCourseTranslation.js","sourceRoot":"","sources":["../../src/parsers/getNativeLanguageByCourseTranslation.ts"],"names":[],"mappings":";;;AAEO,IAAM,oCAAoC,GAAG,UAAC,WAA8B;IACjF,IAAM,eAAe,GAA2C;QAC9D,OAAO,EAAE,YAAY;QACrB,8BAA8B;QAC9B,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QACvB,sBAAsB;KACvB,CAAC;IAEF,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;AACtC,CAAC,CAAC;AAZW,QAAA,oCAAoC,wCAY/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeolymp/utils",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index",
6
6
  "files": [