@typeolymp/utils 0.1.21 → 0.1.23
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/CourseTranslation.js.map +1 -1
- package/build/enums/HttpStatus.d.ts +2 -0
- package/build/enums/HttpStatus.js +2 -0
- package/build/enums/HttpStatus.js.map +1 -1
- package/build/parsers/getNativeLanguageByCourseTranslation.d.ts +2 -0
- package/build/parsers/getNativeLanguageByCourseTranslation.js +17 -0
- package/build/parsers/getNativeLanguageByCourseTranslation.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CourseTranslation.js","sourceRoot":"","sources":["../../src/enums/CourseTranslation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CourseTranslation.js","sourceRoot":"","sources":["../../src/enums/CourseTranslation.ts"],"names":[],"mappings":";;;AAEA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAoB,CAAA;IACpB,qBAAqB;AACvB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum HttpStatusCode {
|
|
2
2
|
OK = 200,
|
|
3
3
|
CREATED = 201,
|
|
4
|
+
NO_CONTENT = 204,
|
|
4
5
|
BAD_REQUEST = 400,
|
|
5
6
|
UNAUTHORIZED = 401,
|
|
6
7
|
FORBIDDEN = 403,
|
|
@@ -12,6 +13,7 @@ export declare enum HttpStatusCode {
|
|
|
12
13
|
export declare enum HttpStatusText {
|
|
13
14
|
OK = "OK",
|
|
14
15
|
CREATED = "Created",
|
|
16
|
+
NO_CONTENT = "No Content",
|
|
15
17
|
BAD_REQUEST = "Bad Request",
|
|
16
18
|
UNAUTHORIZED = "Unauthorized",
|
|
17
19
|
FORBIDDEN = "Forbidden",
|
|
@@ -6,6 +6,7 @@ var HttpStatusCode;
|
|
|
6
6
|
// 2xx Success
|
|
7
7
|
HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
|
|
8
8
|
HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
|
|
9
|
+
HttpStatusCode[HttpStatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
9
10
|
// 4xx Client Errors
|
|
10
11
|
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
11
12
|
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
@@ -21,6 +22,7 @@ var HttpStatusText;
|
|
|
21
22
|
// 2xx Success
|
|
22
23
|
HttpStatusText["OK"] = "OK";
|
|
23
24
|
HttpStatusText["CREATED"] = "Created";
|
|
25
|
+
HttpStatusText["NO_CONTENT"] = "No Content";
|
|
24
26
|
// 4xx Client Errors
|
|
25
27
|
HttpStatusText["BAD_REQUEST"] = "Bad Request";
|
|
26
28
|
HttpStatusText["UNAUTHORIZED"] = "Unauthorized";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpStatus.js","sourceRoot":"","sources":["../../src/enums/HttpStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"HttpStatus.js","sourceRoot":"","sources":["../../src/enums/HttpStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAgBX;AAhBD,WAAY,cAAc;IACxB,cAAc;IACd,iDAAQ,CAAA;IACR,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAEhB,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,EAhBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAgBzB;AAED,IAAY,cAgBX;AAhBD,WAAY,cAAc;IACxB,cAAc;IACd,2BAAS,CAAA;IACT,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;IAEzB,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,EAhBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAgBzB"}
|
|
@@ -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"}
|