@typeolymp/utils 0.2.3 → 0.2.4
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/HttpStatus.d.ts +2 -0
- package/build/enums/HttpStatus.js +2 -0
- package/build/enums/HttpStatus.js.map +1 -1
- package/build/enums/NotificationType.d.ts +1 -1
- package/build/enums/NotificationType.js +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
|
@@ -4,6 +4,7 @@ export declare enum HttpStatusCode {
|
|
|
4
4
|
NO_CONTENT = 204,
|
|
5
5
|
BAD_REQUEST = 400,
|
|
6
6
|
UNAUTHORIZED = 401,
|
|
7
|
+
PAYMENT_REQUIRED = 402,
|
|
7
8
|
FORBIDDEN = 403,
|
|
8
9
|
NOT_FOUND = 404,
|
|
9
10
|
CONFLICT = 409,
|
|
@@ -16,6 +17,7 @@ export declare enum HttpStatusText {
|
|
|
16
17
|
NO_CONTENT = "No Content",
|
|
17
18
|
BAD_REQUEST = "Bad Request",
|
|
18
19
|
UNAUTHORIZED = "Unauthorized",
|
|
20
|
+
PAYMENT_REQUIRED = "Payment Required",
|
|
19
21
|
FORBIDDEN = "Forbidden",
|
|
20
22
|
NOT_FOUND = "Not Found",
|
|
21
23
|
CONFLICT = "Conflict",
|
|
@@ -10,6 +10,7 @@ var HttpStatusCode;
|
|
|
10
10
|
// 4xx Client Errors
|
|
11
11
|
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
12
12
|
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
13
|
+
HttpStatusCode[HttpStatusCode["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
13
14
|
HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
14
15
|
HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
15
16
|
HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
|
|
@@ -26,6 +27,7 @@ var HttpStatusText;
|
|
|
26
27
|
// 4xx Client Errors
|
|
27
28
|
HttpStatusText["BAD_REQUEST"] = "Bad Request";
|
|
28
29
|
HttpStatusText["UNAUTHORIZED"] = "Unauthorized";
|
|
30
|
+
HttpStatusText["PAYMENT_REQUIRED"] = "Payment Required";
|
|
29
31
|
HttpStatusText["FORBIDDEN"] = "Forbidden";
|
|
30
32
|
HttpStatusText["NOT_FOUND"] = "Not Found";
|
|
31
33
|
HttpStatusText["CONFLICT"] = "Conflict";
|
|
@@ -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,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"}
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NotificationType = void 0;
|
|
4
4
|
var NotificationType;
|
|
5
5
|
(function (NotificationType) {
|
|
6
|
-
NotificationType["
|
|
6
|
+
NotificationType["STUDENT_UPGRADE_REQUEST"] = "studentUpgradeRequest";
|
|
7
7
|
})(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
|
|
8
8
|
//# sourceMappingURL=NotificationType.js.map
|
|
@@ -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"}
|