@typeolymp/utils 0.2.2 → 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.
@@ -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,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"}
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,3 +1,3 @@
1
1
  export declare enum NotificationType {
2
- UPGRADE_ACCOUNT_REQUEST = "upgradeAccountRequest"
2
+ STUDENT_UPGRADE_REQUEST = "studentUpgradeRequest"
3
3
  }
@@ -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["UPGRADE_ACCOUNT_REQUEST"] = "upgradeAccountRequest";
6
+ NotificationType["STUDENT_UPGRADE_REQUEST"] = "studentUpgradeRequest";
7
7
  })(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
8
8
  //# sourceMappingURL=NotificationType.js.map
@@ -10,5 +10,6 @@ export * from "./KeyboardLayout";
10
10
  export * from "./Locale";
11
11
  export * from "./Medal";
12
12
  export * from "./NodeEnv";
13
+ export * from "./NotificationType";
13
14
  export * from "./Plan";
14
15
  export * from "./TextTopic";
@@ -26,6 +26,7 @@ __exportStar(require("./KeyboardLayout"), exports);
26
26
  __exportStar(require("./Locale"), exports);
27
27
  __exportStar(require("./Medal"), exports);
28
28
  __exportStar(require("./NodeEnv"), exports);
29
+ __exportStar(require("./NotificationType"), exports);
29
30
  __exportStar(require("./Plan"), exports);
30
31
  __exportStar(require("./TextTopic"), exports);
31
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,0CAAwB;AACxB,4CAA0B;AAC1B,sDAAoC;AACpC,6CAA2B;AAC3B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,qDAAmC;AACnC,yCAAuB;AACvB,8CAA4B"}
@@ -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.2",
3
+ "version": "0.2.4",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index",
6
6
  "files": [