@escapenavigator/types 1.4.66 → 1.4.67

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 (33) hide show
  1. package/dist/certificate-sale/query-certificatesale.dto.d.ts +1 -0
  2. package/dist/certificate-sale/query-certificatesale.dto.js +4 -0
  3. package/dist/constants/country-by-namespace.js +2 -0
  4. package/dist/constants/currency-by-country.d.ts +3 -0
  5. package/dist/constants/currency-by-country.js +18 -0
  6. package/dist/constants/language-by-country.d.ts +3 -0
  7. package/dist/constants/language-by-country.js +18 -0
  8. package/dist/constants/namespace-by-country.js +2 -0
  9. package/dist/order/update-order-slot.dto.js +1 -1
  10. package/dist/order/update-players.dto.js +1 -1
  11. package/dist/profile/enum/profile-currency.js +0 -5
  12. package/dist/shared/enum/countries.enum.d.ts +3 -1
  13. package/dist/shared/enum/countries.enum.js +2 -0
  14. package/dist/shared/enum/languages.enum.d.ts +9 -1
  15. package/dist/shared/enum/languages.enum.js +8 -0
  16. package/dist/shared/enum/namespaces.enum.d.ts +3 -1
  17. package/dist/shared/enum/namespaces.enum.js +2 -0
  18. package/dist/translation/create-namespace.dto.d.ts +3 -0
  19. package/dist/translation/create-namespace.dto.js +22 -0
  20. package/dist/translation/create-translation-from-json.dto.d.ts +4 -0
  21. package/dist/translation/create-translation-from-json.dto.js +28 -0
  22. package/dist/translation/create-translation.dto.d.ts +5 -0
  23. package/dist/translation/create-translation.dto.js +33 -0
  24. package/dist/translation/namespace.ro.d.ts +4 -0
  25. package/dist/translation/namespace.ro.js +2 -0
  26. package/dist/translation/translation.ro.d.ts +13 -0
  27. package/dist/translation/translation.ro.js +2 -0
  28. package/dist/translation/update-translation-locale.dto.d.ts +3 -0
  29. package/dist/translation/update-translation-locale.dto.js +22 -0
  30. package/dist/tsconfig.build.tsbuildinfo +1 -1
  31. package/dist/user/enum/notification.enum.d.ts +2 -1
  32. package/dist/user/enum/notification.enum.js +2 -1
  33. package/package.json +2 -2
@@ -3,6 +3,7 @@ import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-deliver
3
3
  export declare class QueryCertificatesaleDto {
4
4
  createdFrom?: string;
5
5
  createdTo?: string;
6
+ clientId?: number;
6
7
  source?: SourceEnum;
7
8
  status?: 'not_payed' | 'sended' | 'not_sended' | 'expired' | 'used';
8
9
  deliveryType?: CertificatesaleDeliveryTypeEnum;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, class_validator_1.IsOptional)(),
24
24
  __metadata("design:type", String)
25
25
  ], QueryCertificatesaleDto.prototype, "createdTo", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ __metadata("design:type", Number)
29
+ ], QueryCertificatesaleDto.prototype, "clientId", void 0);
26
30
  __decorate([
27
31
  (0, class_validator_1.IsOptional)(),
28
32
  (0, class_validator_1.IsEnum)(source_enum_1.SourceEnum),
@@ -4,6 +4,7 @@ exports.countryByNamespace = void 0;
4
4
  const countries_enum_1 = require("../shared/enum/countries.enum");
5
5
  const namespaces_enum_1 = require("../shared/enum/namespaces.enum");
6
6
  exports.countryByNamespace = {
7
+ [namespaces_enum_1.NamespacesEnum.RUSSIA]: countries_enum_1.CountriesEnum.RUSSIA,
7
8
  [namespaces_enum_1.NamespacesEnum.GERMANY]: countries_enum_1.CountriesEnum.GERMANY,
8
9
  [namespaces_enum_1.NamespacesEnum.USA]: countries_enum_1.CountriesEnum.USA,
9
10
  [namespaces_enum_1.NamespacesEnum.AUSTRIA]: countries_enum_1.CountriesEnum.AUSTRIA,
@@ -13,4 +14,5 @@ exports.countryByNamespace = {
13
14
  [namespaces_enum_1.NamespacesEnum.PORTUGAL]: countries_enum_1.CountriesEnum.PORTUGAL,
14
15
  [namespaces_enum_1.NamespacesEnum.ITALY]: countries_enum_1.CountriesEnum.ITALY,
15
16
  [namespaces_enum_1.NamespacesEnum.SPAIN]: countries_enum_1.CountriesEnum.SPAIN,
17
+ [namespaces_enum_1.NamespacesEnum.ESTONIA]: countries_enum_1.CountriesEnum.ESTONIA,
16
18
  };
@@ -0,0 +1,3 @@
1
+ import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
2
+ import { CountriesEnum } from '../shared/enum/countries.enum';
3
+ export declare const currencyByCountry: Record<CountriesEnum, ProfileCurrencyEnum>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currencyByCountry = void 0;
4
+ const profile_currency_1 = require("../profile/enum/profile-currency");
5
+ const countries_enum_1 = require("../shared/enum/countries.enum");
6
+ exports.currencyByCountry = {
7
+ [countries_enum_1.CountriesEnum.RUSSIA]: profile_currency_1.ProfileCurrencyEnum.RUR,
8
+ [countries_enum_1.CountriesEnum.USA]: profile_currency_1.ProfileCurrencyEnum.USD,
9
+ [countries_enum_1.CountriesEnum.GERMANY]: profile_currency_1.ProfileCurrencyEnum.EUR,
10
+ [countries_enum_1.CountriesEnum.AUSTRIA]: profile_currency_1.ProfileCurrencyEnum.EUR,
11
+ [countries_enum_1.CountriesEnum.POLAND]: profile_currency_1.ProfileCurrencyEnum.EUR,
12
+ [countries_enum_1.CountriesEnum.FRANCE]: profile_currency_1.ProfileCurrencyEnum.EUR,
13
+ [countries_enum_1.CountriesEnum.GREECE]: profile_currency_1.ProfileCurrencyEnum.EUR,
14
+ [countries_enum_1.CountriesEnum.PORTUGAL]: profile_currency_1.ProfileCurrencyEnum.EUR,
15
+ [countries_enum_1.CountriesEnum.ITALY]: profile_currency_1.ProfileCurrencyEnum.EUR,
16
+ [countries_enum_1.CountriesEnum.SPAIN]: profile_currency_1.ProfileCurrencyEnum.EUR,
17
+ [countries_enum_1.CountriesEnum.ESTONIA]: profile_currency_1.ProfileCurrencyEnum.EUR,
18
+ };
@@ -0,0 +1,3 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { Languages } from '../shared/enum/languages.enum';
3
+ export declare const languageByCountry: Record<CountriesEnum, Languages>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.languageByCountry = void 0;
4
+ const countries_enum_1 = require("../shared/enum/countries.enum");
5
+ const languages_enum_1 = require("../shared/enum/languages.enum");
6
+ exports.languageByCountry = {
7
+ [countries_enum_1.CountriesEnum.RUSSIA]: languages_enum_1.Languages.RU,
8
+ [countries_enum_1.CountriesEnum.USA]: languages_enum_1.Languages.EN,
9
+ [countries_enum_1.CountriesEnum.GERMANY]: languages_enum_1.Languages.DE,
10
+ [countries_enum_1.CountriesEnum.AUSTRIA]: languages_enum_1.Languages.DE,
11
+ [countries_enum_1.CountriesEnum.POLAND]: languages_enum_1.Languages.PL,
12
+ [countries_enum_1.CountriesEnum.FRANCE]: languages_enum_1.Languages.FR,
13
+ [countries_enum_1.CountriesEnum.GREECE]: languages_enum_1.Languages.GR,
14
+ [countries_enum_1.CountriesEnum.PORTUGAL]: languages_enum_1.Languages.PT,
15
+ [countries_enum_1.CountriesEnum.ITALY]: languages_enum_1.Languages.IT,
16
+ [countries_enum_1.CountriesEnum.SPAIN]: languages_enum_1.Languages.ES,
17
+ [countries_enum_1.CountriesEnum.ESTONIA]: languages_enum_1.Languages.ET,
18
+ };
@@ -4,6 +4,7 @@ exports.namespaceByCountry = void 0;
4
4
  const countries_enum_1 = require("../shared/enum/countries.enum");
5
5
  const namespaces_enum_1 = require("../shared/enum/namespaces.enum");
6
6
  exports.namespaceByCountry = {
7
+ [countries_enum_1.CountriesEnum.RUSSIA]: namespaces_enum_1.NamespacesEnum.RUSSIA,
7
8
  [countries_enum_1.CountriesEnum.GERMANY]: namespaces_enum_1.NamespacesEnum.GERMANY,
8
9
  [countries_enum_1.CountriesEnum.USA]: namespaces_enum_1.NamespacesEnum.USA,
9
10
  [countries_enum_1.CountriesEnum.AUSTRIA]: namespaces_enum_1.NamespacesEnum.AUSTRIA,
@@ -13,4 +14,5 @@ exports.namespaceByCountry = {
13
14
  [countries_enum_1.CountriesEnum.PORTUGAL]: namespaces_enum_1.NamespacesEnum.PORTUGAL,
14
15
  [countries_enum_1.CountriesEnum.ITALY]: namespaces_enum_1.NamespacesEnum.ITALY,
15
16
  [countries_enum_1.CountriesEnum.SPAIN]: namespaces_enum_1.NamespacesEnum.SPAIN,
17
+ [countries_enum_1.CountriesEnum.ESTONIA]: namespaces_enum_1.NamespacesEnum.ESTONIA,
16
18
  };
@@ -21,7 +21,7 @@ __decorate([
21
21
  __decorate([
22
22
  (0, class_validator_1.IsBoolean)(),
23
23
  (0, class_transformer_1.Expose)(),
24
- (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
24
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
25
25
  __metadata("design:type", Boolean)
26
26
  ], UpdateOrderSlotDto.prototype, "sendNotification", void 0);
27
27
  exports.UpdateOrderSlotDto = UpdateOrderSlotDto;
@@ -22,7 +22,7 @@ __decorate([
22
22
  __decorate([
23
23
  (0, class_validator_1.IsBoolean)(),
24
24
  (0, class_transformer_1.Expose)(),
25
- (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
25
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
26
26
  __metadata("design:type", Boolean)
27
27
  ], UpdatePlayersrDto.prototype, "sendNotification", void 0);
28
28
  exports.UpdatePlayersrDto = UpdatePlayersrDto;
@@ -1,9 +1,4 @@
1
1
  "use strict";
2
- // export enum ProfileCurrencyEnum {
3
- // EUR = '\u20ac',
4
- // RUR = '\u20bd',
5
- // USD = '\u0024',
6
- // }
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
8
3
  exports.ProfileCurrencyEnum = void 0;
9
4
  var ProfileCurrencyEnum;
@@ -7,5 +7,7 @@ export declare enum CountriesEnum {
7
7
  SPAIN = "es",
8
8
  ITALY = "it",
9
9
  PORTUGAL = "pt",
10
- GREECE = "gr"
10
+ GREECE = "gr",
11
+ ESTONIA = "ee",
12
+ RUSSIA = "ru"
11
13
  }
@@ -12,4 +12,6 @@ var CountriesEnum;
12
12
  CountriesEnum["ITALY"] = "it";
13
13
  CountriesEnum["PORTUGAL"] = "pt";
14
14
  CountriesEnum["GREECE"] = "gr";
15
+ CountriesEnum["ESTONIA"] = "ee";
16
+ CountriesEnum["RUSSIA"] = "ru";
15
17
  })(CountriesEnum = exports.CountriesEnum || (exports.CountriesEnum = {}));
@@ -1,4 +1,12 @@
1
1
  export declare enum Languages {
2
2
  EN = "en",
3
- DE = "de"
3
+ DE = "de",
4
+ ET = "et",
5
+ RU = "ru",
6
+ ES = "es",
7
+ PT = "pt",
8
+ PL = "pl",
9
+ FR = "fr",
10
+ IT = "it",
11
+ GR = "el"
4
12
  }
@@ -5,4 +5,12 @@ var Languages;
5
5
  (function (Languages) {
6
6
  Languages["EN"] = "en";
7
7
  Languages["DE"] = "de";
8
+ Languages["ET"] = "et";
9
+ Languages["RU"] = "ru";
10
+ Languages["ES"] = "es";
11
+ Languages["PT"] = "pt";
12
+ Languages["PL"] = "pl";
13
+ Languages["FR"] = "fr";
14
+ Languages["IT"] = "it";
15
+ Languages["GR"] = "el";
8
16
  })(Languages = exports.Languages || (exports.Languages = {}));
@@ -7,5 +7,7 @@ export declare enum NamespacesEnum {
7
7
  SPAIN = "es",
8
8
  ITALY = "it",
9
9
  PORTUGAL = "com.pt",
10
- GREECE = "gr"
10
+ GREECE = "gr",
11
+ ESTONIA = "ee",
12
+ RUSSIA = "ru"
11
13
  }
@@ -12,4 +12,6 @@ var NamespacesEnum;
12
12
  NamespacesEnum["ITALY"] = "it";
13
13
  NamespacesEnum["PORTUGAL"] = "com.pt";
14
14
  NamespacesEnum["GREECE"] = "gr";
15
+ NamespacesEnum["ESTONIA"] = "ee";
16
+ NamespacesEnum["RUSSIA"] = "ru";
15
17
  })(NamespacesEnum = exports.NamespacesEnum || (exports.NamespacesEnum = {}));
@@ -0,0 +1,3 @@
1
+ export declare class CreateNamespaceDto {
2
+ title: string;
3
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateNamespaceDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../shared/is-not-blank");
15
+ class CreateNamespaceDto {
16
+ }
17
+ __decorate([
18
+ (0, is_not_blank_1.IsNotBlank)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], CreateNamespaceDto.prototype, "title", void 0);
22
+ exports.CreateNamespaceDto = CreateNamespaceDto;
@@ -0,0 +1,4 @@
1
+ export declare class CreateTranslationFromJsonDto {
2
+ json: string;
3
+ namespaceId: number;
4
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateTranslationFromJsonDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class CreateTranslationFromJsonDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], CreateTranslationFromJsonDto.prototype, "json", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsPositive)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], CreateTranslationFromJsonDto.prototype, "namespaceId", void 0);
28
+ exports.CreateTranslationFromJsonDto = CreateTranslationFromJsonDto;
@@ -0,0 +1,5 @@
1
+ export declare class CreateTranslationDto {
2
+ row: string;
3
+ ru: string;
4
+ namespaceId: number;
5
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateTranslationDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class CreateTranslationDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], CreateTranslationDto.prototype, "row", void 0);
23
+ __decorate([
24
+ (0, is_not_blank_1.IsNotBlank)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], CreateTranslationDto.prototype, "ru", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsPositive)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Number)
32
+ ], CreateTranslationDto.prototype, "namespaceId", void 0);
33
+ exports.CreateTranslationDto = CreateTranslationDto;
@@ -0,0 +1,4 @@
1
+ export declare type NamespaceRO = {
2
+ id: number;
3
+ title: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ export declare type TranslationRO = {
3
+ id: number;
4
+ row: string;
5
+ namespace: {
6
+ title: string;
7
+ };
8
+ translations: Array<{
9
+ id: number;
10
+ text: string;
11
+ locale: Languages;
12
+ }>;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export declare class UpdateTranslationLocaleDto {
2
+ text: string;
3
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateTranslationLocaleDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../shared/is-not-blank");
15
+ class UpdateTranslationLocaleDto {
16
+ }
17
+ __decorate([
18
+ (0, is_not_blank_1.IsNotBlank)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], UpdateTranslationLocaleDto.prototype, "text", void 0);
22
+ exports.UpdateTranslationLocaleDto = UpdateTranslationLocaleDto;