@escapenavigator/types 1.6.18 → 1.6.19

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.
@@ -1,6 +1,6 @@
1
1
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
2
2
  import { Languages } from '../shared/enum/languages.enum';
3
- export declare const transformQuestroom: ({ value, language }: {
3
+ export declare const transformQuestroom: ({ value, language, }: {
4
4
  value: OpenapiQuestroomRO;
5
5
  language: any;
6
6
  }) => {
@@ -25,10 +25,12 @@ exports.QuestroomRow = exports.OpenapiQuestroomRO = exports.transformQuestroom =
25
25
  const class_transformer_1 = require("class-transformer");
26
26
  const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
27
27
  const languages_enum_1 = require("../shared/enum/languages.enum");
28
- const transformQuestroom = ({ value, language }) => {
28
+ const transformQuestroom = ({ value, language, }) => {
29
29
  var _a, _b, _c, _d;
30
30
  const { locales } = value, _e = value.location, { locales: locationLocales } = _e, location = __rest(_e, ["locales"]), questroom = __rest(value, ["locales", "location"]);
31
- return Object.assign(Object.assign({}, questroom), { title: ((_a = locales.find((l) => l.language === language)) === null || _a === void 0 ? void 0 : _a.title) || questroom.title, importantInfo: ((_b = locales.find((l) => l.language === language)) === null || _b === void 0 ? void 0 : _b.importantInfo) || questroom.importantInfo, location: Object.assign(Object.assign({}, location), { howToFind: ((_c = locationLocales.find((l) => l.language === language)) === null || _c === void 0 ? void 0 : _c.howToFind) || location.howToFind, prepareText: ((_d = locationLocales.find((l) => l.language === language)) === null || _d === void 0 ? void 0 : _d.prepareText) || location.prepareText }) });
31
+ return Object.assign(Object.assign({}, questroom), { title: ((_a = locales.find((l) => l.language === language)) === null || _a === void 0 ? void 0 : _a.title) || questroom.title, importantInfo: ((_b = locales.find((l) => l.language === language)) === null || _b === void 0 ? void 0 : _b.importantInfo) || questroom.importantInfo, location: Object.assign(Object.assign({}, location), { howToFind: ((_c = locationLocales.find((l) => l.language === language)) === null || _c === void 0 ? void 0 : _c.howToFind) ||
32
+ location.howToFind, prepareText: ((_d = locationLocales.find((l) => l.language === language)) === null || _d === void 0 ? void 0 : _d.prepareText) ||
33
+ location.prepareText }) });
32
34
  };
33
35
  exports.transformQuestroom = transformQuestroom;
34
36
  class QuestroomLocale {
@@ -117,7 +117,7 @@ __decorate([
117
117
  __decorate([
118
118
  (0, class_transformer_1.Expose)(),
119
119
  (0, class_transformer_1.Type)(() => openapi_questroom_ro_1.OpenapiQuestroomRO),
120
- (0, class_transformer_1.Transform)(({ value, obj, }) => value.map((questroom) => (0, openapi_questroom_ro_1.transformQuestroom)({ value: questroom, language: obj.language }))),
120
+ (0, class_transformer_1.Transform)(({ value, obj }) => value.map((questroom) => (0, openapi_questroom_ro_1.transformQuestroom)({ value: questroom, language: obj.language }))),
121
121
  __metadata("design:type", Array)
122
122
  ], OpenapiWidgetRO.prototype, "questrooms", void 0);
123
123
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1"
22
22
  },
23
- "gitHead": "a0c501199d6436abd078b5bea863b1afa1826373",
23
+ "gitHead": "ec5247386af206368cd8f568a6cf7389cfe610a7",
24
24
  "devDependencies": {
25
25
  "@types/validator": "13.0.0",
26
26
  "alphakit-presets-lint": "^1.0.0",