@typeolymp/utils 0.2.6 → 1.0.0

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.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/build/enums/Country.d.ts +2 -1
  3. package/build/enums/Country.js +4 -0
  4. package/build/enums/Country.js.map +1 -1
  5. package/build/enums/HttpStatus.d.ts +2 -0
  6. package/build/enums/HttpStatus.js +2 -0
  7. package/build/enums/HttpStatus.js.map +1 -1
  8. package/build/enums/KeyboardLayout.d.ts +2 -1
  9. package/build/enums/KeyboardLayout.js +2 -2
  10. package/build/enums/KeyboardLayout.js.map +1 -1
  11. package/build/enums/Locale.d.ts +2 -1
  12. package/build/enums/Locale.js +2 -1
  13. package/build/enums/Locale.js.map +1 -1
  14. package/build/enums/index.d.ts +0 -1
  15. package/build/enums/index.js +0 -1
  16. package/build/enums/index.js.map +1 -1
  17. package/build/formatters/formatPrice.js.map +1 -0
  18. package/build/formatters/index.d.ts +1 -0
  19. package/build/formatters/index.js +18 -0
  20. package/build/formatters/index.js.map +1 -0
  21. package/build/index.d.ts +2 -1
  22. package/build/index.js +3 -2
  23. package/build/index.js.map +1 -1
  24. package/build/{parsers → mappers}/getCountryByLocale.js +6 -4
  25. package/build/mappers/getCountryByLocale.js.map +1 -0
  26. package/build/{parsers → mappers}/getCurrencyByLocale.js +3 -2
  27. package/build/mappers/getCurrencyByLocale.js.map +1 -0
  28. package/build/mappers/getKeyboardLayoutByLocale.js +15 -0
  29. package/build/mappers/getKeyboardLayoutByLocale.js.map +1 -0
  30. package/build/mappers/getNativeLanguageByLocale.js +15 -0
  31. package/build/mappers/getNativeLanguageByLocale.js.map +1 -0
  32. package/build/mappers/getPricing.js +26 -0
  33. package/build/mappers/getPricing.js.map +1 -0
  34. package/build/{parsers → mappers}/index.d.ts +0 -4
  35. package/build/{parsers → mappers}/index.js +0 -4
  36. package/build/mappers/index.js.map +1 -0
  37. package/package.json +8 -14
  38. package/build/enums/ChartDataType.d.ts +0 -8
  39. package/build/enums/ChartDataType.js +0 -13
  40. package/build/enums/ChartDataType.js.map +0 -1
  41. package/build/enums/CourseTranslation.d.ts +0 -3
  42. package/build/enums/CourseTranslation.js +0 -9
  43. package/build/enums/CourseTranslation.js.map +0 -1
  44. package/build/parsers/formatPrice.js.map +0 -1
  45. package/build/parsers/getCountryByLocale.js.map +0 -1
  46. package/build/parsers/getCountryCodeByLocale.d.ts +0 -2
  47. package/build/parsers/getCountryCodeByLocale.js +0 -6
  48. package/build/parsers/getCountryCodeByLocale.js.map +0 -1
  49. package/build/parsers/getCourseTranslationByLocale.d.ts +0 -2
  50. package/build/parsers/getCourseTranslationByLocale.js +0 -18
  51. package/build/parsers/getCourseTranslationByLocale.js.map +0 -1
  52. package/build/parsers/getCurrencyByLocale.js.map +0 -1
  53. package/build/parsers/getKeyboardLayoutByLocale.js +0 -18
  54. package/build/parsers/getKeyboardLayoutByLocale.js.map +0 -1
  55. package/build/parsers/getLanguageCodeByLocale.d.ts +0 -2
  56. package/build/parsers/getLanguageCodeByLocale.js +0 -6
  57. package/build/parsers/getLanguageCodeByLocale.js.map +0 -1
  58. package/build/parsers/getNativeLanguageByLocale.js +0 -17
  59. package/build/parsers/getNativeLanguageByLocale.js.map +0 -1
  60. package/build/parsers/getPricing.js +0 -18
  61. package/build/parsers/getPricing.js.map +0 -1
  62. package/build/parsers/index.js.map +0 -1
  63. /package/build/{parsers → formatters}/formatPrice.d.ts +0 -0
  64. /package/build/{parsers → formatters}/formatPrice.js +0 -0
  65. /package/build/{parsers → mappers}/getCountryByLocale.d.ts +0 -0
  66. /package/build/{parsers → mappers}/getCurrencyByLocale.d.ts +0 -0
  67. /package/build/{parsers → mappers}/getKeyboardLayoutByLocale.d.ts +0 -0
  68. /package/build/{parsers → mappers}/getNativeLanguageByLocale.d.ts +0 -0
  69. /package/build/{parsers → mappers}/getPricing.d.ts +0 -0
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # 🛠 utils
2
- The `utils` repository is a package created to streamline development across various codebases of TypeOlymp. This package includes a collection of `enums`, `expressions` and `parsers` that can be easily integrated into different projects, enhancing code consistency and reducing development time. It is written in [Typescript](https://www.typescriptlang.org/).
2
+ The `utils` repository is a package created to streamline development across various codebases of TypeOlymp. This package includes a collection of `enums`, `expressions`, `formatters` and `mappers` that can be easily integrated into different projects, enhancing code consistency and reducing development time. It is written in [Typescript](https://www.typescriptlang.org/).
3
3
 
4
4
  ## 📖 Table of Contents
5
5
  - [Contributing](https://github.com/TypeOlymp/utils/tree/main#-contributing)
@@ -1,4 +1,5 @@
1
1
  export declare enum Country {
2
2
  NL = "Nederland",
3
- BE = "Belgi\u00EB"
3
+ BE = "Belgi\u00EB",
4
+ GB = "United Kingdom"
4
5
  }
@@ -5,5 +5,9 @@ var Country;
5
5
  (function (Country) {
6
6
  Country["NL"] = "Nederland";
7
7
  Country["BE"] = "Belgi\u00EB";
8
+ Country["GB"] = "United Kingdom";
9
+ // FR = "France",
10
+ // DE = "Deutschland",
11
+ // SP = "España",
8
12
  })(Country = exports.Country || (exports.Country = {}));
9
13
  //# sourceMappingURL=Country.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Country.js","sourceRoot":"","sources":["../../src/enums/Country.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,2BAAgB,CAAA;IAChB,6BAAa,CAAA;AACf,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB"}
1
+ {"version":3,"file":"Country.js","sourceRoot":"","sources":["../../src/enums/Country.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,2BAAgB,CAAA;IAChB,6BAAa,CAAA;IACb,gCAAqB,CAAA;IACrB,iBAAiB;IACjB,sBAAsB;IACtB,iBAAiB;AACnB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}
@@ -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"}
@@ -1,4 +1,5 @@
1
1
  export declare enum KeyboardLayout {
2
2
  QWERTY_NL = "qwerty-nl",
3
- AZERTY_BE = "azerty-be"
3
+ AZERTY_BE = "azerty-be",
4
+ QWERTY_UK = "qwerty-uk"
4
5
  }
@@ -4,10 +4,10 @@ exports.KeyboardLayout = void 0;
4
4
  var KeyboardLayout;
5
5
  (function (KeyboardLayout) {
6
6
  KeyboardLayout["QWERTY_NL"] = "qwerty-nl";
7
- // QWERTY_UK = "qwerty-uk",
7
+ KeyboardLayout["AZERTY_BE"] = "azerty-be";
8
+ KeyboardLayout["QWERTY_UK"] = "qwerty-uk";
8
9
  // QWERTY_US = "qwerty-us",
9
10
  // QWERTY_TR = "qwerty-tr",
10
- KeyboardLayout["AZERTY_BE"] = "azerty-be";
11
11
  // AZERTY_FR = "azerty-fr",
12
12
  // QWERTZ_DE = "qwertz-de",
13
13
  })(KeyboardLayout = exports.KeyboardLayout || (exports.KeyboardLayout = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardLayout.js","sourceRoot":"","sources":["../../src/enums/KeyboardLayout.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;IAC3B,yCAAuB,CAAA;IACvB,2BAA2B;IAC3B,2BAA2B;AAC7B,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB"}
1
+ {"version":3,"file":"KeyboardLayout.js","sourceRoot":"","sources":["../../src/enums/KeyboardLayout.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;AAC7B,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB"}
@@ -1,4 +1,5 @@
1
1
  export declare enum Locale {
2
2
  NL_NL = "nl-NL",
3
- NL_BE = "nl-BE"
3
+ NL_BE = "nl-BE",
4
+ EN_GB = "en-GB"
4
5
  }
@@ -5,9 +5,10 @@ var Locale;
5
5
  (function (Locale) {
6
6
  Locale["NL_NL"] = "nl-NL";
7
7
  Locale["NL_BE"] = "nl-BE";
8
- // EN_GB = "en-GB",
8
+ Locale["EN_GB"] = "en-GB";
9
9
  // FR_FR = "fr-FR",
10
10
  // FR_BE = "fr-BE",
11
11
  // DE_DE = "de-DE",
12
+ // SP_SP = "es-ES",
12
13
  })(Locale = exports.Locale || (exports.Locale = {}));
13
14
  //# sourceMappingURL=Locale.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Locale.js","sourceRoot":"","sources":["../../src/enums/Locale.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;AACrB,CAAC,EAPW,MAAM,GAAN,cAAM,KAAN,cAAM,QAOjB"}
1
+ {"version":3,"file":"Locale.js","sourceRoot":"","sources":["../../src/enums/Locale.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAQX;AARD,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;AACrB,CAAC,EARW,MAAM,GAAN,cAAM,KAAN,cAAM,QAQjB"}
@@ -2,7 +2,6 @@ export * from "./AccountType";
2
2
  export * from "./AchievementType";
3
3
  export * from "./Color";
4
4
  export * from "./Country";
5
- export * from "./CourseTranslation";
6
5
  export * from "./Currency";
7
6
  export * from "./ExerciseType";
8
7
  export * from "./HttpStatus";
@@ -18,7 +18,6 @@ __exportStar(require("./AccountType"), exports);
18
18
  __exportStar(require("./AchievementType"), exports);
19
19
  __exportStar(require("./Color"), exports);
20
20
  __exportStar(require("./Country"), exports);
21
- __exportStar(require("./CourseTranslation"), exports);
22
21
  __exportStar(require("./Currency"), exports);
23
22
  __exportStar(require("./ExerciseType"), exports);
24
23
  __exportStar(require("./HttpStatus"), exports);
@@ -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,qDAAmC;AACnC,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,6CAA2B;AAC3B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,qDAAmC;AACnC,yCAAuB;AACvB,8CAA4B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatPrice.js","sourceRoot":"","sources":["../../src/formatters/formatPrice.ts"],"names":[],"mappings":";;;AAEO,IAAM,WAAW,GAAG,UACzB,MAAc,EACd,QAAkB,EAClB,KAAa;IAEb,OAAA,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAA5E,CAA4E,CAAC;AALlE,QAAA,WAAW,eAKuD"}
@@ -0,0 +1 @@
1
+ export * from "./formatPrice";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./formatPrice"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/formatters/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
package/build/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as enums from "./enums";
2
2
  export * as expressions from "./expressions";
3
- export * as parsers from "./parsers";
3
+ export * as formatters from "./formatters";
4
+ export * as mappers from "./mappers";
package/build/index.js CHANGED
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.parsers = exports.expressions = exports.enums = void 0;
26
+ exports.mappers = exports.formatters = exports.expressions = exports.enums = void 0;
27
27
  exports.enums = __importStar(require("./enums"));
28
28
  exports.expressions = __importStar(require("./expressions"));
29
- exports.parsers = __importStar(require("./parsers"));
29
+ exports.formatters = __importStar(require("./formatters"));
30
+ exports.mappers = __importStar(require("./mappers"));
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,6DAA6C;AAC7C,qDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,6DAA6C;AAC7C,2DAA2C;AAC3C,qDAAqC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCountryByLocale = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var getCountryByLocale = function (locale) {
6
- var countries = {
7
- "nl-NL": enums_1.Country.NL,
8
- "nl-BE": enums_1.Country.BE,
9
- };
6
+ var _a;
7
+ var countries = (_a = {},
8
+ _a[enums_1.Locale.NL_NL] = enums_1.Country.NL,
9
+ _a[enums_1.Locale.NL_BE] = enums_1.Country.BE,
10
+ _a[enums_1.Locale.EN_GB] = enums_1.Country.GB,
11
+ _a);
10
12
  return countries[locale];
11
13
  };
12
14
  exports.getCountryByLocale = getCountryByLocale;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCountryByLocale.js","sourceRoot":"","sources":["../../src/mappers/getCountryByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAEpC,IAAM,kBAAkB,GAAG,UAAC,MAAc;;IAC/C,IAAM,SAAS;QACb,GAAC,cAAM,CAAC,KAAK,IAAG,eAAO,CAAC,EAAE;QAC1B,GAAC,cAAM,CAAC,KAAK,IAAG,eAAO,CAAC,EAAE;QAC1B,GAAC,cAAM,CAAC,KAAK,IAAG,eAAO,CAAC,EAAE;WAC3B,CAAC;IAEF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B"}
@@ -4,11 +4,12 @@ exports.getCurrencyByLocale = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var getCurrencyByLocale = function (locale) {
6
6
  var _a;
7
- var map = (_a = {},
7
+ var currencies = (_a = {},
8
8
  _a[enums_1.Locale.NL_NL] = enums_1.Currency.EUR,
9
9
  _a[enums_1.Locale.NL_BE] = enums_1.Currency.EUR,
10
+ _a[enums_1.Locale.EN_GB] = enums_1.Currency.GBP,
10
11
  _a);
11
- return map[locale];
12
+ return currencies[locale];
12
13
  };
13
14
  exports.getCurrencyByLocale = getCurrencyByLocale;
14
15
  //# sourceMappingURL=getCurrencyByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrencyByLocale.js","sourceRoot":"","sources":["../../src/mappers/getCurrencyByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAA4C;AAErC,IAAM,mBAAmB,GAAG,UAAC,MAAc;;IAChD,IAAM,UAAU;QACd,GAAC,cAAM,CAAC,KAAK,IAAG,gBAAQ,CAAC,GAAG;QAC5B,GAAC,cAAM,CAAC,KAAK,IAAG,gBAAQ,CAAC,GAAG;QAC5B,GAAC,cAAM,CAAC,KAAK,IAAG,gBAAQ,CAAC,GAAG;WAC7B,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getKeyboardLayoutByLocale = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getKeyboardLayoutByLocale = function (locale) {
6
+ var _a;
7
+ var keyboardLayouts = (_a = {},
8
+ _a[enums_1.Locale.NL_NL] = enums_1.KeyboardLayout.QWERTY_NL,
9
+ _a[enums_1.Locale.NL_BE] = enums_1.KeyboardLayout.AZERTY_BE,
10
+ _a[enums_1.Locale.EN_GB] = enums_1.KeyboardLayout.QWERTY_UK,
11
+ _a);
12
+ return keyboardLayouts[locale];
13
+ };
14
+ exports.getKeyboardLayoutByLocale = getKeyboardLayoutByLocale;
15
+ //# sourceMappingURL=getKeyboardLayoutByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getKeyboardLayoutByLocale.js","sourceRoot":"","sources":["../../src/mappers/getKeyboardLayoutByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAE3C,IAAM,yBAAyB,GAAG,UAAC,MAAc;;IACtD,IAAM,eAAe;QACnB,GAAC,cAAM,CAAC,KAAK,IAAG,sBAAc,CAAC,SAAS;QACxC,GAAC,cAAM,CAAC,KAAK,IAAG,sBAAc,CAAC,SAAS;QACxC,GAAC,cAAM,CAAC,KAAK,IAAG,sBAAc,CAAC,SAAS;WAKzC,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNativeLanguageByLocale = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getNativeLanguageByLocale = function (locale) {
6
+ var _a;
7
+ var nativeLanguages = (_a = {},
8
+ _a[enums_1.Locale.NL_NL] = "Nederlands",
9
+ _a[enums_1.Locale.NL_BE] = "Nederlands (BE)",
10
+ _a[enums_1.Locale.EN_GB] = "English (UK)",
11
+ _a);
12
+ return nativeLanguages[locale];
13
+ };
14
+ exports.getNativeLanguageByLocale = getNativeLanguageByLocale;
15
+ //# sourceMappingURL=getNativeLanguageByLocale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeLanguageByLocale.js","sourceRoot":"","sources":["../../src/mappers/getNativeLanguageByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAE3B,IAAM,yBAAyB,GAAG,UAAC,MAAc;;IACtD,IAAM,eAAe;QACnB,GAAC,cAAM,CAAC,KAAK,IAAG,YAAY;QAC5B,GAAC,cAAM,CAAC,KAAK,IAAG,iBAAiB;QACjC,GAAC,cAAM,CAAC,KAAK,IAAG,cAAc;WAK/B,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPricing = void 0;
4
+ var enums_1 = require("../enums");
5
+ var getPricing = function (currency) {
6
+ var _a, _b, _c, _d;
7
+ var plans = (_a = {},
8
+ _a[enums_1.Plan.HOBBY] = (_b = {},
9
+ _b[enums_1.Currency.EUR] = 0,
10
+ _b[enums_1.Currency.GBP] = 0,
11
+ _b[enums_1.Currency.USD] = 0,
12
+ _b),
13
+ _a[enums_1.Plan.PROFESSIONAL] = (_c = {},
14
+ _c[enums_1.Currency.EUR] = 14.95,
15
+ _c[enums_1.Currency.GBP] = 12.95,
16
+ _c[enums_1.Currency.USD] = 15.95,
17
+ _c),
18
+ _a);
19
+ var pricing = (_d = {},
20
+ _d[enums_1.Plan.HOBBY] = plans.hobby[currency],
21
+ _d[enums_1.Plan.PROFESSIONAL] = plans.professional[currency],
22
+ _d);
23
+ return pricing;
24
+ };
25
+ exports.getPricing = getPricing;
26
+ //# sourceMappingURL=getPricing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPricing.js","sourceRoot":"","sources":["../../src/mappers/getPricing.ts"],"names":[],"mappings":";;;AAAA,kCAA0C;AAEnC,IAAM,UAAU,GAAG,UAAC,QAAkB;;IAC3C,IAAM,KAAK;QACT,GAAC,YAAI,CAAC,KAAK;YACT,GAAC,gBAAQ,CAAC,GAAG,IAAG,CAAC;YACjB,GAAC,gBAAQ,CAAC,GAAG,IAAG,CAAC;YACjB,GAAC,gBAAQ,CAAC,GAAG,IAAG,CAAC;eAClB;QACD,GAAC,YAAI,CAAC,YAAY;YAChB,GAAC,gBAAQ,CAAC,GAAG,IAAG,KAAK;YACrB,GAAC,gBAAQ,CAAC,GAAG,IAAG,KAAK;YACrB,GAAC,gBAAQ,CAAC,GAAG,IAAG,KAAK;eACtB;WACF,CAAC;IAEF,IAAM,OAAO;QACX,GAAC,YAAI,CAAC,KAAK,IAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;QACnC,GAAC,YAAI,CAAC,YAAY,IAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;WAClD,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AApBW,QAAA,UAAU,cAoBrB"}
@@ -1,9 +1,5 @@
1
- export * from "./formatPrice";
2
1
  export * from "./getCountryByLocale";
3
- export * from "./getCourseTranslationByLocale";
4
2
  export * from "./getCurrencyByLocale";
5
3
  export * from "./getKeyboardLayoutByLocale";
6
- export * from "./getLanguageCodeByLocale";
7
- export * from "./getCountryCodeByLocale";
8
4
  export * from "./getNativeLanguageByLocale";
9
5
  export * from "./getPricing";
@@ -14,13 +14,9 @@ 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("./formatPrice"), exports);
18
17
  __exportStar(require("./getCountryByLocale"), exports);
19
- __exportStar(require("./getCourseTranslationByLocale"), exports);
20
18
  __exportStar(require("./getCurrencyByLocale"), exports);
21
19
  __exportStar(require("./getKeyboardLayoutByLocale"), exports);
22
- __exportStar(require("./getLanguageCodeByLocale"), exports);
23
- __exportStar(require("./getCountryCodeByLocale"), exports);
24
20
  __exportStar(require("./getNativeLanguageByLocale"), exports);
25
21
  __exportStar(require("./getPricing"), exports);
26
22
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mappers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,wDAAsC;AACtC,8DAA4C;AAC5C,8DAA4C;AAC5C,+CAA6B"}
package/package.json CHANGED
@@ -1,27 +1,21 @@
1
1
  {
2
2
  "name": "@typeolymp/utils",
3
- "version": "0.2.6",
3
+ "version": "1.0.0",
4
4
  "author": "TypeOlymp",
5
5
  "main": "build/index",
6
- "files": [
7
- "./build"
8
- ],
6
+ "files": ["./build"],
9
7
  "exports": {
10
8
  "./enums": "./build/enums/index.js",
11
9
  "./expressions": "./build/expressions/index.js",
12
- "./parsers": "./build/parsers/index.js"
10
+ "./formatters": "./build/formatters/index.js",
11
+ "./mappers": "./build/mappers/index.js"
13
12
  },
14
13
  "typesVersions": {
15
14
  "*": {
16
- "enums": [
17
- "./build/enums/index"
18
- ],
19
- "expressions": [
20
- "./build/expressions/index"
21
- ],
22
- "parsers": [
23
- "./build/parsers/index"
24
- ]
15
+ "enums": ["./build/enums/index"],
16
+ "expressions": ["./build/expressions/index"],
17
+ "formatters": ["./build/formatters/index"],
18
+ "mappers": ["./build/mappers/index"]
25
19
  }
26
20
  },
27
21
  "scripts": {
@@ -1,8 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare enum CourseTranslation {
2
- NL_NL = "nl-NL"
3
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CourseTranslation = void 0;
4
- var CourseTranslation;
5
- (function (CourseTranslation) {
6
- CourseTranslation["NL_NL"] = "nl-NL";
7
- // EN_GB = "en-GB",
8
- })(CourseTranslation = exports.CourseTranslation || (exports.CourseTranslation = {}));
9
- //# sourceMappingURL=CourseTranslation.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"formatPrice.js","sourceRoot":"","sources":["../../src/parsers/formatPrice.ts"],"names":[],"mappings":";;;AAEO,IAAM,WAAW,GAAG,UACzB,MAAc,EACd,QAAkB,EAClB,KAAa;IAEb,OAAA,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAA5E,CAA4E,CAAC;AALlE,QAAA,WAAW,eAKuD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCountryByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCountryByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAEpC,IAAM,kBAAkB,GAAG,UAAC,MAAc;IAC/C,IAAM,SAAS,GAAiC;QAC9C,OAAO,EAAE,eAAO,CAAC,EAAE;QACnB,OAAO,EAAE,eAAO,CAAC,EAAE;KACpB,CAAC;IAEF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B"}
@@ -1,2 +0,0 @@
1
- import { Locale } from "../enums";
2
- export declare const getCountryCodeByLocale: (locale: Locale) => string;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCountryCodeByLocale = void 0;
4
- var getCountryCodeByLocale = function (locale) { return locale.split("-")[1]; };
5
- exports.getCountryCodeByLocale = getCountryCodeByLocale;
6
- //# sourceMappingURL=getCountryCodeByLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCountryCodeByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCountryCodeByLocale.ts"],"names":[],"mappings":";;;AAEO,IAAM,sBAAsB,GAAG,UAAC,MAAc,IAAK,OAAA,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAApB,CAAoB,CAAC;AAAlE,QAAA,sBAAsB,0BAA4C"}
@@ -1,2 +0,0 @@
1
- import { Locale, CourseTranslation } from "../enums";
2
- export declare const getCourseTranslationByLocale: (locale: Locale) => CourseTranslation;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCourseTranslationByLocale = void 0;
4
- var enums_1 = require("../enums");
5
- var getCourseTranslationByLocale = function (locale) {
6
- var courseTranslations = {
7
- "nl-NL": enums_1.CourseTranslation.NL_NL,
8
- "nl-BE": enums_1.CourseTranslation.NL_NL,
9
- // "en-GB": KeyboardLayout.QWERTY_UK,
10
- // "en-US": KeyboardLayout.QWERTY_US,
11
- // "fr-BE": KeyboardLayout.AZERTY_FR,
12
- // "fr-FR": KeyboardLayout.AZERTY_FR,
13
- // "de-DE": KeyboardLayout.QWERTZ_DE,
14
- };
15
- return courseTranslations[locale];
16
- };
17
- exports.getCourseTranslationByLocale = getCourseTranslationByLocale;
18
- //# sourceMappingURL=getCourseTranslationByLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCourseTranslationByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCourseTranslationByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAqD;AAE9C,IAAM,4BAA4B,GAAG,UAAC,MAAc;IACzD,IAAM,kBAAkB,GAA2C;QACjE,OAAO,EAAE,yBAAiB,CAAC,KAAK;QAChC,OAAO,EAAE,yBAAiB,CAAC,KAAK;QAChC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;KACtC,CAAC;IAEF,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC;AAZW,QAAA,4BAA4B,gCAYvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrencyByLocale.js","sourceRoot":"","sources":["../../src/parsers/getCurrencyByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAA4C;AAErC,IAAM,mBAAmB,GAAG,UAAC,MAAc;;IAChD,IAAM,GAAG;QACP,GAAC,cAAM,CAAC,KAAK,IAAG,gBAAQ,CAAC,GAAG;QAC5B,GAAC,cAAM,CAAC,KAAK,IAAG,gBAAQ,CAAC,GAAG;WAC7B,CAAC;IAEF,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC;AACrB,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getKeyboardLayoutByLocale = void 0;
4
- var enums_1 = require("../enums");
5
- var getKeyboardLayoutByLocale = function (locale) {
6
- var keyboardLayouts = {
7
- "nl-NL": enums_1.KeyboardLayout.QWERTY_NL,
8
- "nl-BE": enums_1.KeyboardLayout.AZERTY_BE,
9
- // "en-GB": KeyboardLayout.QWERTY_UK,
10
- // "en-US": KeyboardLayout.QWERTY_US,
11
- // "fr-BE": KeyboardLayout.AZERTY_FR,
12
- // "fr-FR": KeyboardLayout.AZERTY_FR,
13
- // "de-DE": KeyboardLayout.QWERTZ_DE,
14
- };
15
- return keyboardLayouts[locale];
16
- };
17
- exports.getKeyboardLayoutByLocale = getKeyboardLayoutByLocale;
18
- //# sourceMappingURL=getKeyboardLayoutByLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getKeyboardLayoutByLocale.js","sourceRoot":"","sources":["../../src/parsers/getKeyboardLayoutByLocale.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAE3C,IAAM,yBAAyB,GAAG,UAAC,MAAc;IACtD,IAAM,eAAe,GAAwC;QAC3D,OAAO,EAAE,sBAAc,CAAC,SAAS;QACjC,OAAO,EAAE,sBAAc,CAAC,SAAS;QACjC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,qCAAqC;KACtC,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -1,2 +0,0 @@
1
- import { Locale } from "../enums";
2
- export declare const getLanguageCodeByLocale: (locale: Locale) => string;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLanguageCodeByLocale = void 0;
4
- var getLanguageCodeByLocale = function (locale) { return locale.split("-")[0]; };
5
- exports.getLanguageCodeByLocale = getLanguageCodeByLocale;
6
- //# sourceMappingURL=getLanguageCodeByLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getLanguageCodeByLocale.js","sourceRoot":"","sources":["../../src/parsers/getLanguageCodeByLocale.ts"],"names":[],"mappings":";;;AAEO,IAAM,uBAAuB,GAAG,UAAC,MAAc,IAAK,OAAA,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAApB,CAAoB,CAAC;AAAnE,QAAA,uBAAuB,2BAA4C"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNativeLanguageByLocale = void 0;
4
- var getNativeLanguageByLocale = function (locale) {
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[locale];
15
- };
16
- exports.getNativeLanguageByLocale = getNativeLanguageByLocale;
17
- //# sourceMappingURL=getNativeLanguageByLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNativeLanguageByLocale.js","sourceRoot":"","sources":["../../src/parsers/getNativeLanguageByLocale.ts"],"names":[],"mappings":";;;AAEO,IAAM,yBAAyB,GAAG,UAAC,MAAc;IACtD,IAAM,eAAe,GAAgC;QACnD,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,iBAAiB;QAC1B,2BAA2B;QAC3B,2BAA2B;QAC3B,4BAA4B;QAC5B,uBAAuB;QACvB,sBAAsB;KACvB,CAAC;IAEF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AAZW,QAAA,yBAAyB,6BAYpC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPricing = void 0;
4
- var enums_1 = require("../enums");
5
- var getPricing = function (currency) {
6
- var _a, _b;
7
- var plans = (_a = {},
8
- _a[enums_1.Plan.HOBBY] = { EUR: 0, GBP: 0, USD: 0 },
9
- _a[enums_1.Plan.PROFESSIONAL] = { EUR: 14.95, GBP: 12.95, USD: 15.95 },
10
- _a);
11
- var pricing = (_b = {},
12
- _b[enums_1.Plan.HOBBY] = plans.hobby[currency],
13
- _b[enums_1.Plan.PROFESSIONAL] = plans.professional[currency],
14
- _b);
15
- return pricing;
16
- };
17
- exports.getPricing = getPricing;
18
- //# sourceMappingURL=getPricing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPricing.js","sourceRoot":"","sources":["../../src/parsers/getPricing.ts"],"names":[],"mappings":";;;AAAA,kCAA0C;AAEnC,IAAM,UAAU,GAAG,UAAC,QAAkB;;IAC3C,IAAM,KAAK;QACT,GAAC,YAAI,CAAC,KAAK,IAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;QACxC,GAAC,YAAI,CAAC,YAAY,IAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;WAC5D,CAAC;IAEF,IAAM,OAAO;QACX,GAAC,YAAI,CAAC,KAAK,IAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;QACnC,GAAC,YAAI,CAAC,YAAY,IAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC;WAClD,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAZW,QAAA,UAAU,cAYrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parsers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,8DAA4C;AAC5C,4DAA0C;AAC1C,2DAAyC;AACzC,8DAA4C;AAC5C,+CAA6B"}
File without changes
File without changes
File without changes