@escapenavigator/types 1.9.24 → 1.9.26

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.
@@ -2,7 +2,7 @@ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
2
2
  import { CashboxTypeEnum } from './enum/cashbox-type.enum';
3
3
  export declare class CreateOnlineCashboxDto {
4
4
  title: string;
5
- type: CashboxTypeEnum.PAYPAL | CashboxTypeEnum.STRIPE;
5
+ type: CashboxTypeEnum.PAYPAL | CashboxTypeEnum.STRIPE | CashboxTypeEnum.BS;
6
6
  identificator?: string;
7
7
  questroomsIds: number[];
8
8
  certificatesIds: number[];
@@ -28,7 +28,7 @@ __decorate([
28
28
  __metadata("design:type", String)
29
29
  ], CreateOnlineCashboxDto.prototype, "type", void 0);
30
30
  __decorate([
31
- (0, class_validator_1.ValidateIf)((o) => o.type === cashbox_type_enum_1.CashboxTypeEnum.PAYPAL),
31
+ (0, class_validator_1.ValidateIf)((o) => o.type === cashbox_type_enum_1.CashboxTypeEnum.PAYPAL || o.type === cashbox_type_enum_1.CashboxTypeEnum.BS),
32
32
  (0, is_not_blank_1.IsNotBlank)(),
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", String)
@@ -3,5 +3,6 @@ export declare enum CashboxTypeEnum {
3
3
  BANK = "bank",
4
4
  POS = "pos",
5
5
  PAYPAL = "paypal",
6
+ BS = "bs",
6
7
  STRIPE = "stripe"
7
8
  }
@@ -7,5 +7,6 @@ var CashboxTypeEnum;
7
7
  CashboxTypeEnum["BANK"] = "bank";
8
8
  CashboxTypeEnum["POS"] = "pos";
9
9
  CashboxTypeEnum["PAYPAL"] = "paypal";
10
+ CashboxTypeEnum["BS"] = "bs";
10
11
  CashboxTypeEnum["STRIPE"] = "stripe";
11
12
  })(CashboxTypeEnum = exports.CashboxTypeEnum || (exports.CashboxTypeEnum = {}));
@@ -10,6 +10,7 @@ export declare class CertificateRO extends RO {
10
10
  deliveryPrice: number;
11
11
  allowFreeNominal: boolean;
12
12
  onlinePaymentsCashbox: number;
13
+ bsCashbox: number;
13
14
  paypalCashbox: number;
14
15
  allQuestrooms: boolean;
15
16
  questroomsIds: number[];
@@ -54,6 +54,10 @@ __decorate([
54
54
  (0, class_transformer_1.Expose)(),
55
55
  __metadata("design:type", Number)
56
56
  ], CertificateRO.prototype, "onlinePaymentsCashbox", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", Number)
60
+ ], CertificateRO.prototype, "bsCashbox", void 0);
57
61
  __decorate([
58
62
  (0, class_transformer_1.Expose)(),
59
63
  __metadata("design:type", Number)
@@ -2,6 +2,7 @@ export declare class CreateCertificateDto {
2
2
  title: string;
3
3
  validity: number;
4
4
  onlinePaymentsCashbox: number;
5
+ bsCashbox: number;
5
6
  paypalCashbox: number;
6
7
  nominals: number[];
7
8
  emailPossibility: boolean;
@@ -33,6 +33,11 @@ __decorate([
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", Number)
35
35
  ], CreateCertificateDto.prototype, "onlinePaymentsCashbox", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", Number)
40
+ ], CreateCertificateDto.prototype, "bsCashbox", void 0);
36
41
  __decorate([
37
42
  (0, class_validator_1.IsOptional)(),
38
43
  (0, class_transformer_1.Expose)(),
@@ -4,6 +4,7 @@ export declare class OpenapiCertificateTemplateRO {
4
4
  photo: string;
5
5
  onlinePaymentsCashbox: number;
6
6
  paypalCashbox: number;
7
+ bsCashbox: number;
7
8
  description?: string;
8
9
  pdfLink: string;
9
10
  validity: number;
@@ -33,6 +33,10 @@ __decorate([
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", Number)
35
35
  ], OpenapiCertificateTemplateRO.prototype, "paypalCashbox", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Number)
39
+ ], OpenapiCertificateTemplateRO.prototype, "bsCashbox", void 0);
36
40
  __decorate([
37
41
  (0, class_transformer_1.Expose)(),
38
42
  __metadata("design:type", String)
@@ -1,5 +1,6 @@
1
1
  export declare enum PaymentMethodEnum {
2
2
  STRIPE = "stripe",
3
3
  PAYPAL = "paypal",
4
+ BS = "bs",
4
5
  CASH = "cash"
5
6
  }
@@ -5,5 +5,6 @@ var PaymentMethodEnum;
5
5
  (function (PaymentMethodEnum) {
6
6
  PaymentMethodEnum["STRIPE"] = "stripe";
7
7
  PaymentMethodEnum["PAYPAL"] = "paypal";
8
+ PaymentMethodEnum["BS"] = "bs";
8
9
  PaymentMethodEnum["CASH"] = "cash";
9
10
  })(PaymentMethodEnum = exports.PaymentMethodEnum || (exports.PaymentMethodEnum = {}));
@@ -23,6 +23,7 @@ export declare const transformQuestroom: ({ value, language, }: {
23
23
  disabledLanguages: Languages[];
24
24
  playersMin: number;
25
25
  onlinePaymentsCashbox: number;
26
+ bsCashbox: number;
26
27
  paypalCashbox: number;
27
28
  modes: Mode[];
28
29
  minAge: number;
@@ -62,6 +63,7 @@ export declare class OpenapiQuestroomRO {
62
63
  disabledLanguages: Languages[];
63
64
  playersMin: number;
64
65
  onlinePaymentsCashbox: number;
66
+ bsCashbox: number;
65
67
  paypalCashbox: number;
66
68
  importantInfo: string;
67
69
  modes: Mode[];
@@ -149,6 +149,10 @@ __decorate([
149
149
  (0, class_transformer_1.Expose)(),
150
150
  __metadata("design:type", Number)
151
151
  ], OpenapiQuestroomRO.prototype, "onlinePaymentsCashbox", void 0);
152
+ __decorate([
153
+ (0, class_transformer_1.Expose)(),
154
+ __metadata("design:type", Number)
155
+ ], OpenapiQuestroomRO.prototype, "bsCashbox", void 0);
152
156
  __decorate([
153
157
  (0, class_transformer_1.Expose)(),
154
158
  __metadata("design:type", Number)
@@ -25,6 +25,7 @@ export declare class CreateQuestroomDto {
25
25
  fear: number;
26
26
  minAge: number;
27
27
  onlinePaymentsCashbox: number;
28
+ bsCashbox: number;
28
29
  paypalCashbox: number;
29
30
  awailableForWidgets: boolean;
30
31
  awailableForNavigator: boolean;
@@ -131,6 +131,11 @@ __decorate([
131
131
  (0, class_transformer_1.Expose)(),
132
132
  __metadata("design:type", Number)
133
133
  ], CreateQuestroomDto.prototype, "onlinePaymentsCashbox", void 0);
134
+ __decorate([
135
+ (0, class_validator_1.IsOptional)(),
136
+ (0, class_transformer_1.Expose)(),
137
+ __metadata("design:type", Number)
138
+ ], CreateQuestroomDto.prototype, "bsCashbox", void 0);
134
139
  __decorate([
135
140
  (0, class_validator_1.IsOptional)(),
136
141
  (0, class_transformer_1.Expose)(),
@@ -55,6 +55,7 @@ export declare class QuestroomRO extends RO {
55
55
  awailableForWidgets: boolean;
56
56
  paypalCashbox: number;
57
57
  onlinePaymentsCashbox: number;
58
+ bsCashbox: number;
58
59
  onlinePaymentsAvailable: boolean;
59
60
  photoFrame: string;
60
61
  }
@@ -212,6 +212,10 @@ __decorate([
212
212
  (0, class_transformer_1.Expose)(),
213
213
  __metadata("design:type", Number)
214
214
  ], QuestroomRO.prototype, "onlinePaymentsCashbox", void 0);
215
+ __decorate([
216
+ (0, class_transformer_1.Expose)(),
217
+ __metadata("design:type", Number)
218
+ ], QuestroomRO.prototype, "bsCashbox", void 0);
215
219
  __decorate([
216
220
  (0, class_transformer_1.Expose)(),
217
221
  __metadata("design:type", Boolean)
@@ -19,6 +19,7 @@ export declare class UpdateAdminQuestroomDto {
19
19
  minAge: number;
20
20
  onlinePaymentsCashbox: number;
21
21
  paypalCashbox: number;
22
+ bsCashbox: number;
22
23
  awailableForWidgets: boolean;
23
24
  awailableForNavigator: boolean;
24
25
  time: number;
@@ -107,6 +107,11 @@ __decorate([
107
107
  (0, class_transformer_1.Expose)(),
108
108
  __metadata("design:type", Number)
109
109
  ], UpdateAdminQuestroomDto.prototype, "paypalCashbox", void 0);
110
+ __decorate([
111
+ (0, class_validator_1.IsOptional)(),
112
+ (0, class_transformer_1.Expose)(),
113
+ __metadata("design:type", Number)
114
+ ], UpdateAdminQuestroomDto.prototype, "bsCashbox", void 0);
110
115
  __decorate([
111
116
  (0, class_validator_1.IsBoolean)(),
112
117
  (0, class_transformer_1.Transform)(({ value }) => (value !== undefined ? value : true)),