@escapenavigator/types 1.4.28 → 1.4.30

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,5 +1,6 @@
1
1
  declare type Paragraph = {
2
2
  type: 'paragraph';
3
+ title?: string;
3
4
  text: string;
4
5
  };
5
6
  declare type Bitton = {
@@ -10,11 +11,16 @@ declare type Bitton = {
10
11
  declare type Divider = {
11
12
  type: 'divider';
12
13
  };
14
+ declare type List = {
15
+ type: 'list';
16
+ title?: string;
17
+ rows: Array<[string, string]>;
18
+ };
13
19
  declare type Context = {
14
20
  title: string;
15
21
  subtitle?: string;
16
22
  subscription?: boolean;
17
- sections: Array<Divider | Bitton | Paragraph>;
23
+ sections: Array<Divider | Bitton | Paragraph | List>;
18
24
  };
19
25
  export declare type SendEmailRequestParams = {
20
26
  to: string;
@@ -0,0 +1,31 @@
1
+ export declare enum LogTitleEnum {
2
+ /** change orders and certificates */
3
+ addHandDiscount = "addHandDiscount",
4
+ removeHandDiscount = "removeHandDiscount",
5
+ addMessage = "addMessage",
6
+ removeMessage = "removeMessage",
7
+ resendEmail = "resendEmail",
8
+ /** orders */
9
+ createOrder = "createOrder",
10
+ changeOrderDate = "changeOrderDate",
11
+ cancelOrder = "cancelOrder",
12
+ changePlayers = "changePlayers",
13
+ changeLanguage = "changeLanguage",
14
+ addPenalty = "addPenalty",
15
+ removePenalty = "removePenalty",
16
+ addUpselling = "addUpselling",
17
+ removeUpselling = "removeUpselling",
18
+ addCertificate = "addCertificate",
19
+ removeCertificate = "removeCertificate",
20
+ /** certificates */
21
+ createCertificate = "createCertificate",
22
+ shipToClient = "shipToClient",
23
+ updateTrackingInfo = "updateTrackingInfo",
24
+ updateExpireDate = "updateExpireDate",
25
+ updateDeliveryInfo = "updateDeliveryInfo",
26
+ /**
27
+ * платежи
28
+ */
29
+ createTransaction = "createTransaction",
30
+ createRefund = "createRefund"
31
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogTitleEnum = void 0;
4
+ var LogTitleEnum;
5
+ (function (LogTitleEnum) {
6
+ /** change orders and certificates */
7
+ LogTitleEnum["addHandDiscount"] = "addHandDiscount";
8
+ LogTitleEnum["removeHandDiscount"] = "removeHandDiscount";
9
+ LogTitleEnum["addMessage"] = "addMessage";
10
+ LogTitleEnum["removeMessage"] = "removeMessage";
11
+ LogTitleEnum["resendEmail"] = "resendEmail";
12
+ /** orders */
13
+ LogTitleEnum["createOrder"] = "createOrder";
14
+ LogTitleEnum["changeOrderDate"] = "changeOrderDate";
15
+ LogTitleEnum["cancelOrder"] = "cancelOrder";
16
+ LogTitleEnum["changePlayers"] = "changePlayers";
17
+ LogTitleEnum["changeLanguage"] = "changeLanguage";
18
+ LogTitleEnum["addPenalty"] = "addPenalty";
19
+ LogTitleEnum["removePenalty"] = "removePenalty";
20
+ LogTitleEnum["addUpselling"] = "addUpselling";
21
+ LogTitleEnum["removeUpselling"] = "removeUpselling";
22
+ LogTitleEnum["addCertificate"] = "addCertificate";
23
+ LogTitleEnum["removeCertificate"] = "removeCertificate";
24
+ /** certificates */
25
+ LogTitleEnum["createCertificate"] = "createCertificate";
26
+ LogTitleEnum["shipToClient"] = "shipToClient";
27
+ LogTitleEnum["updateTrackingInfo"] = "updateTrackingInfo";
28
+ LogTitleEnum["updateExpireDate"] = "updateExpireDate";
29
+ LogTitleEnum["updateDeliveryInfo"] = "updateDeliveryInfo";
30
+ /**
31
+ * платежи
32
+ */
33
+ LogTitleEnum["createTransaction"] = "createTransaction";
34
+ LogTitleEnum["createRefund"] = "createRefund";
35
+ })(LogTitleEnum = exports.LogTitleEnum || (exports.LogTitleEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum LogTypeEnum {
2
+ ORDER = "order",
3
+ CERTIFICATE_SALE = "certificatesale",
4
+ TRANSACTION = "transaction"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogTypeEnum = void 0;
4
+ var LogTypeEnum;
5
+ (function (LogTypeEnum) {
6
+ LogTypeEnum["ORDER"] = "order";
7
+ LogTypeEnum["CERTIFICATE_SALE"] = "certificatesale";
8
+ LogTypeEnum["TRANSACTION"] = "transaction";
9
+ })(LogTypeEnum = exports.LogTypeEnum || (exports.LogTypeEnum = {}));
@@ -1,9 +1,12 @@
1
1
  import { ResponseObject } from '../shared/ro';
2
+ import { LogTitleEnum } from './log-title.enum';
3
+ import { LogTypeEnum } from './log-type.enum';
2
4
  export declare type LogRO = ResponseObject & {
5
+ title: LogTitleEnum;
6
+ types: LogTypeEnum[];
3
7
  userId?: number;
4
8
  modelId?: number;
5
9
  modelName?: string;
6
- title: string;
7
10
  description?: string;
8
11
  actions: Array<{
9
12
  actions: string[];
@@ -1,15 +1,15 @@
1
1
  import { Languages } from '../shared/enum/languages.enum';
2
2
  import { OrderSourceEnum } from './enum/order-source.enum';
3
3
  export declare class QueryOrderDto {
4
- orderGameFrom: string;
5
- orderGameTo: string;
6
- clientId: number;
7
- createdFrom: string;
8
- createdTo: string;
9
- players: number;
10
- language: Languages;
11
- questroomsIds: number[];
12
- moderatorsIds: number[];
13
- payed: boolean;
14
- source: OrderSourceEnum;
4
+ orderGameFrom?: string;
5
+ orderGameTo?: string;
6
+ clientId?: number;
7
+ createdFrom?: string;
8
+ createdTo?: string;
9
+ players?: number;
10
+ language?: Languages;
11
+ questroomsIds?: number[];
12
+ moderatorsIds?: number[];
13
+ payed?: boolean;
14
+ source?: OrderSourceEnum;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from '../shared/enum/countries.enum';
1
+ import { Languages } from '../shared/enum/languages.enum';
2
2
  import { ResponseObject } from '../shared/ro';
3
3
  import { ProfileCurrencyEnum } from './enum/profile-currency';
4
4
  import { ProfileStatusEnum } from './enum/profile-status.enum';
@@ -14,7 +14,7 @@ export declare type AgregatorProfileResponseObject = ResponseObject & {
14
14
  comment?: string;
15
15
  logo?: string;
16
16
  status: ProfileStatusEnum;
17
- country: CountriesEnum;
17
+ language: Languages;
18
18
  currency: ProfileCurrencyEnum;
19
19
  locationsCount: number;
20
20
  questroomsCount: number;
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from '../shared/enum/countries.enum';
1
+ import { Languages } from '../shared/enum/languages.enum';
2
2
  export declare class CreateProfileDto {
3
3
  title: string;
4
4
  registrationRequestId: number;
@@ -9,7 +9,7 @@ export declare class CreateProfileDto {
9
9
  address: string;
10
10
  instagram?: string;
11
11
  facebook?: string;
12
- country: CountriesEnum;
12
+ language: Languages;
13
13
  comment?: string;
14
14
  contactName: string;
15
15
  contactPhone: string;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateProfileDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
- const countries_enum_1 = require("../shared/enum/countries.enum");
15
+ const languages_enum_1 = require("../shared/enum/languages.enum");
16
16
  const is_not_blank_string_1 = require("../shared/is-not-blank-string");
17
17
  class CreateProfileDto {
18
18
  }
@@ -68,7 +68,7 @@ __decorate([
68
68
  (0, is_not_blank_string_1.IsNotBlankString)(),
69
69
  (0, class_transformer_1.Expose)(),
70
70
  __metadata("design:type", String)
71
- ], CreateProfileDto.prototype, "country", void 0);
71
+ ], CreateProfileDto.prototype, "language", void 0);
72
72
  __decorate([
73
73
  (0, class_validator_1.IsOptional)(),
74
74
  (0, class_validator_1.IsString)(),
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from '../shared/enum/countries.enum';
1
+ import { Languages } from '../shared/enum/languages.enum';
2
2
  import { ResponseObject } from '../shared/ro';
3
3
  import { ProfileCurrencyEnum } from './enum/profile-currency';
4
4
  import { ProfileStatusEnum } from './enum/profile-status.enum';
@@ -14,7 +14,7 @@ export declare type ProfileResponseObject = ResponseObject & {
14
14
  comment?: string;
15
15
  logo?: string;
16
16
  status: ProfileStatusEnum;
17
- country: CountriesEnum;
17
+ language: Languages;
18
18
  currency: ProfileCurrencyEnum;
19
19
  locationsCount: number;
20
20
  questroomsCount: number;
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from '../shared/enum/countries.enum';
1
+ import { Languages } from '../shared/enum/languages.enum';
2
2
  import { ProfileCurrencyEnum } from './enum/profile-currency';
3
3
  export declare class UpdateProfileDto {
4
4
  title: string;
@@ -9,7 +9,7 @@ export declare class UpdateProfileDto {
9
9
  email: string;
10
10
  site: string;
11
11
  address: string;
12
- country: CountriesEnum;
12
+ language: Languages;
13
13
  currency: ProfileCurrencyEnum;
14
14
  facebook?: string;
15
15
  instagram?: string;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateProfileDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const countries_enum_1 = require("../shared/enum/countries.enum");
14
+ const languages_enum_1 = require("../shared/enum/languages.enum");
15
15
  const is_not_blank_1 = require("../shared/is-not-blank");
16
16
  const profile_currency_1 = require("./enum/profile-currency");
17
17
  class UpdateProfileDto {
@@ -51,7 +51,7 @@ __decorate([
51
51
  __decorate([
52
52
  (0, is_not_blank_1.IsNotBlank)(),
53
53
  __metadata("design:type", String)
54
- ], UpdateProfileDto.prototype, "country", void 0);
54
+ ], UpdateProfileDto.prototype, "language", void 0);
55
55
  __decorate([
56
56
  (0, is_not_blank_1.IsNotBlank)(),
57
57
  __metadata("design:type", String)
@@ -12,4 +12,5 @@ export declare class CreateRoleDto {
12
12
  canDeleteFines: boolean;
13
13
  canAddRefunds: boolean;
14
14
  canEditModerators: boolean;
15
+ canEditSchedule: boolean;
15
16
  }
@@ -92,4 +92,10 @@ __decorate([
92
92
  (0, class_transformer_1.Expose)(),
93
93
  __metadata("design:type", Boolean)
94
94
  ], CreateRoleDto.prototype, "canEditModerators", void 0);
95
+ __decorate([
96
+ (0, class_validator_1.IsBoolean)(),
97
+ (0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : false)),
98
+ (0, class_transformer_1.Expose)(),
99
+ __metadata("design:type", Boolean)
100
+ ], CreateRoleDto.prototype, "canEditSchedule", void 0);
95
101
  exports.CreateRoleDto = CreateRoleDto;
@@ -13,4 +13,5 @@ export declare type RoleResponseObject = ResponseObject & {
13
13
  canDeleteFines: boolean;
14
14
  canAddRefunds: boolean;
15
15
  canEditModerators: boolean;
16
+ canEditSchedule: boolean;
16
17
  };