@escapenavigator/types 1.4.25 → 1.4.27
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.
- package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
- package/dist/cashbox/cashbox.ro.d.ts +0 -2
- package/dist/cashbox/create-cashbox.dto.d.ts +0 -2
- package/dist/cashbox/create-cashbox.dto.js +0 -13
- package/dist/cashbox/enum/cashbox-type.enum.d.ts +1 -3
- package/dist/cashbox/enum/cashbox-type.enum.js +0 -2
- package/dist/certificate/certificate.ro.d.ts +0 -1
- package/dist/certificate/create-certificate.dto.d.ts +0 -1
- package/dist/certificate/create-certificate.dto.js +0 -5
- package/dist/certificate-sale/certificate-sale.ro.d.ts +1 -0
- package/dist/client/client.ro.d.ts +0 -1
- package/dist/client/create-client.dto.d.ts +0 -1
- package/dist/client/create-client.dto.js +0 -6
- package/dist/client/update-client.dto.d.ts +0 -1
- package/dist/client/update-client.dto.js +0 -6
- package/dist/commission/commission.ro.d.ts +10 -0
- package/dist/commission/create-commission.dto.d.ts +5 -0
- package/dist/commission/create-commission.dto.js +32 -0
- package/dist/commission/create-profile-correction.dto.d.ts +5 -0
- package/dist/commission/create-profile-correction.dto.js +33 -0
- package/dist/commission/create-profile-payment.dto.d.ts +3 -0
- package/dist/{order/update-order-status.dto.js → commission/create-profile-payment.dto.js} +8 -7
- package/dist/commission/emun/commission.enum.d.ts +6 -0
- package/dist/commission/emun/commission.enum.js +10 -0
- package/dist/emails/email.ro.d.ts +1 -5
- package/dist/emails/index.d.ts +21 -6
- package/dist/log/log.ro.d.ts +11 -0
- package/dist/log/log.ro.js +2 -0
- package/dist/order/order.ro.d.ts +6 -10
- package/dist/order/update-order.dto.d.ts +2 -1
- package/dist/order/update-order.dto.js +1 -0
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +5 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.d.ts +0 -1
- package/dist/questroom/create-questroom.dto.js +5 -14
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/registration-request/create-registration-request.dto.d.ts +0 -1
- package/dist/registration-request/create-registration-request.dto.js +5 -9
- package/dist/registration-request/enum/registration-request-status.d.ts +5 -0
- package/dist/registration-request/enum/registration-request-status.js +9 -0
- package/dist/registration-request/registration-request.ro.d.ts +3 -1
- package/dist/registration-request/update-registration-request.dto.d.ts +5 -4
- package/dist/registration-request/update-registration-request.dto.js +11 -8
- package/dist/shared/enum/countries.enum.d.ts +1 -2
- package/dist/shared/enum/countries.enum.js +0 -1
- package/dist/shared/enum/languages.enum.d.ts +1 -2
- package/dist/shared/enum/languages.enum.js +0 -1
- package/dist/shared/is-not-blank-string.js +3 -1
- package/dist/shared/query.ro.d.ts +4 -0
- package/dist/shared/query.ro.js +2 -0
- package/dist/slot/add-breaks.dto.d.ts +4 -3
- package/dist/slot/add-breaks.dto.js +9 -5
- package/dist/slot/calendar-query.dto.d.ts +1 -1
- package/dist/slot/remove-breaks.dto.d.ts +4 -2
- package/dist/slot/remove-breaks.dto.js +10 -2
- package/dist/slot/slot.ro.d.ts +1 -2
- package/dist/slot/slot.ro.js +0 -3
- package/dist/transaction/create-order-payment.dto.js +1 -1
- package/dist/transaction/create-order-refund.dto.d.ts +1 -1
- package/dist/transaction/create-order-refund.dto.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/current-user.ro.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-create-review.dto.d.ts +1 -1
- package/dist/widget-openapi/widget-openapi-create-review.dto.js +1 -1
- package/dist/widget-openapi/widget-openapi-order.ro.d.ts +0 -2
- package/package.json +7 -3
- package/dist/emails/template.d.ts +0 -37
- package/dist/emails/template.js +0 -310
- package/dist/order/enum/order-status.enum.d.ts +0 -8
- package/dist/order/enum/order-status.enum.js +0 -12
- package/dist/order/orders-list.ro.d.ts +0 -3
- package/dist/order/update-order-status.dto.d.ts +0 -4
- /package/dist/{order/orders-list.ro.js → commission/commission.ro.js} +0 -0
|
@@ -26,19 +26,6 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], CreateCashboxDto.prototype, "type", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsBoolean)(),
|
|
31
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
__metadata("design:type", Boolean)
|
|
34
|
-
], CreateCashboxDto.prototype, "allLocations", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.ValidateIf)((o) => !o.allLocations),
|
|
37
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
|
38
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", Array)
|
|
41
|
-
], CreateCashboxDto.prototype, "locationIds", void 0);
|
|
42
29
|
__decorate([
|
|
43
30
|
(0, class_validator_1.ValidateIf)((o) => o.type !== cashbox_type_enum_1.CashboxTypeEnum.BANK && o.type !== cashbox_type_enum_1.CashboxTypeEnum.CASH),
|
|
44
31
|
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
@@ -6,6 +6,4 @@ var CashboxTypeEnum;
|
|
|
6
6
|
CashboxTypeEnum["CASH"] = "cash";
|
|
7
7
|
CashboxTypeEnum["BANK"] = "bank";
|
|
8
8
|
CashboxTypeEnum["PAYPAL"] = "paypal";
|
|
9
|
-
CashboxTypeEnum["YANDEX"] = "yandex";
|
|
10
|
-
CashboxTypeEnum["TINKOFF"] = "tinkoff";
|
|
11
9
|
})(CashboxTypeEnum = exports.CashboxTypeEnum || (exports.CashboxTypeEnum = {}));
|
|
@@ -87,11 +87,6 @@ __decorate([
|
|
|
87
87
|
(0, class_transformer_1.Expose)(),
|
|
88
88
|
__metadata("design:type", Array)
|
|
89
89
|
], CreateCertificateDto.prototype, "questroomsIds", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_validator_1.IsPositive)(),
|
|
92
|
-
(0, class_transformer_1.Expose)(),
|
|
93
|
-
__metadata("design:type", Number)
|
|
94
|
-
], CreateCertificateDto.prototype, "walletId", void 0);
|
|
95
90
|
__decorate([
|
|
96
91
|
(0, class_validator_1.IsBoolean)(),
|
|
97
92
|
(0, class_transformer_1.Transform)(checkBoolean),
|
|
@@ -15,12 +15,6 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const is_not_blank_string_1 = require("../shared/is-not-blank-string");
|
|
16
16
|
class CreateClientDto {
|
|
17
17
|
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CreateClientDto.prototype, "photo", void 0);
|
|
24
18
|
__decorate([
|
|
25
19
|
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
26
20
|
(0, class_transformer_1.Expose)(),
|
|
@@ -14,12 +14,6 @@ const class_transformer_1 = require("class-transformer");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class UpdateClientDto {
|
|
16
16
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_transformer_1.Expose)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], UpdateClientDto.prototype, "photo", void 0);
|
|
23
17
|
__decorate([
|
|
24
18
|
(0, class_validator_1.IsOptional)(),
|
|
25
19
|
(0, class_validator_1.IsString)(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ResponseObject } from '../shared/ro';
|
|
2
|
+
import { CommissionTypeEnum } from './emun/commission.enum';
|
|
3
|
+
export declare type CommissionRO = ResponseObject & {
|
|
4
|
+
title: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
type: CommissionTypeEnum;
|
|
7
|
+
orderId: number;
|
|
8
|
+
reason: string;
|
|
9
|
+
balance: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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.CreateCommissionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateCommissionDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CreateCommissionDto.prototype, "profileId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CreateCommissionDto.prototype, "amount", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CreateCommissionDto.prototype, "orderId", void 0);
|
|
32
|
+
exports.CreateCommissionDto = CreateCommissionDto;
|
|
@@ -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.CreateProfileCorrectionDto = 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 CreateProfileCorrectionDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], CreateProfileCorrectionDto.prototype, "profileId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreateProfileCorrectionDto.prototype, "amount", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateProfileCorrectionDto.prototype, "reason", void 0);
|
|
33
|
+
exports.CreateProfileCorrectionDto = CreateProfileCorrectionDto;
|
|
@@ -9,13 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CreateProfilePaymentDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
-
class UpdateOrderStatusDto {
|
|
15
|
+
class CreateProfilePaymentDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
(0, class_validator_1.IsPositive)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CreateProfilePaymentDto.prototype, "amount", void 0);
|
|
22
|
+
exports.CreateProfilePaymentDto = CreateProfilePaymentDto;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommissionTypeEnum = void 0;
|
|
4
|
+
var CommissionTypeEnum;
|
|
5
|
+
(function (CommissionTypeEnum) {
|
|
6
|
+
CommissionTypeEnum["AGREGATOR_COMMISSION"] = "agregator_commission";
|
|
7
|
+
CommissionTypeEnum["WIDGET_COMMISSION"] = "widget_commission";
|
|
8
|
+
CommissionTypeEnum["PAYMENT"] = "payment";
|
|
9
|
+
CommissionTypeEnum["CORRECTION"] = "correction";
|
|
10
|
+
})(CommissionTypeEnum = exports.CommissionTypeEnum || (exports.CommissionTypeEnum = {}));
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ResponseObject } from '../shared/ro';
|
|
2
|
-
export declare type
|
|
3
|
-
template: string;
|
|
2
|
+
export declare type EmailRO = ResponseObject & {
|
|
4
3
|
profileId?: number;
|
|
5
4
|
to: string;
|
|
6
|
-
data: string;
|
|
7
|
-
accepted: string[];
|
|
8
|
-
rejected: string[];
|
|
9
5
|
delivered: boolean;
|
|
10
6
|
};
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare type Paragraph = {
|
|
2
|
+
type: 'paragraph';
|
|
3
|
+
text: string;
|
|
4
|
+
};
|
|
5
|
+
declare type Bitton = {
|
|
6
|
+
type: 'button';
|
|
7
|
+
text: string;
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
10
|
+
declare type Divider = {
|
|
11
|
+
type: 'divider';
|
|
4
12
|
};
|
|
5
|
-
|
|
6
|
-
|
|
13
|
+
declare type Context = {
|
|
14
|
+
title: string;
|
|
15
|
+
subtitle?: string;
|
|
16
|
+
subscription?: boolean;
|
|
17
|
+
sections: Array<Divider | Bitton | Paragraph>;
|
|
18
|
+
};
|
|
19
|
+
export declare type SendEmailRequestParams = {
|
|
20
|
+
to: string;
|
|
7
21
|
subject: string;
|
|
8
|
-
|
|
22
|
+
data: Context;
|
|
23
|
+
};
|
|
9
24
|
export {};
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { ResponseObject } from '../shared/ro';
|
|
3
3
|
import { OrderSourceEnum } from './enum/order-source.enum';
|
|
4
|
-
import { OrderStatusEnum } from './enum/order-status.enum';
|
|
5
4
|
export declare type OrderResponseObject = ResponseObject & {
|
|
6
5
|
language?: Languages;
|
|
7
|
-
|
|
6
|
+
canceled: boolean;
|
|
8
7
|
price: {
|
|
9
|
-
[x: string]:
|
|
8
|
+
[x: string]: number;
|
|
10
9
|
};
|
|
11
10
|
payed: number;
|
|
12
|
-
toPay: number;
|
|
13
11
|
total: number;
|
|
14
12
|
players: number;
|
|
15
13
|
orderDate: string;
|
|
16
14
|
time: string;
|
|
17
15
|
photos: string[];
|
|
18
16
|
source: OrderSourceEnum;
|
|
19
|
-
comment: string;
|
|
20
17
|
client: {
|
|
21
18
|
id: number;
|
|
22
19
|
name: string;
|
|
23
20
|
surname: string;
|
|
24
21
|
email: string;
|
|
25
22
|
phone: string;
|
|
23
|
+
trustIndex: number;
|
|
26
24
|
};
|
|
27
25
|
questroomId: number;
|
|
28
|
-
|
|
29
|
-
questroomPhoto: string;
|
|
30
|
-
applyings: Array<{
|
|
31
|
-
orderId: number;
|
|
26
|
+
certificates: Array<{
|
|
32
27
|
certificateId: number;
|
|
33
28
|
code: number;
|
|
34
|
-
|
|
29
|
+
nominal: number;
|
|
35
30
|
userId?: number;
|
|
36
31
|
createdAt: Date;
|
|
37
32
|
}>;
|
|
@@ -59,6 +54,7 @@ export declare type OrderResponseObject = ResponseObject & {
|
|
|
59
54
|
transactions: Array<{
|
|
60
55
|
id: number;
|
|
61
56
|
cashboxId: number;
|
|
57
|
+
comment: string;
|
|
62
58
|
amount: number;
|
|
63
59
|
userId: number;
|
|
64
60
|
createdAt: Date;
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateOrderDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
14
15
|
class UpdateOrderDto {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
@@ -21,6 +21,11 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateProfileDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CreateProfileDto.prototype, "registrationRequestId", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
26
31
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -53,13 +53,13 @@ __decorate([
|
|
|
53
53
|
], CreateQuestroomDto.prototype, "minAge", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, class_validator_1.IsPositive)(),
|
|
56
|
-
(0, class_transformer_1.Transform)(({ value }) => value ||
|
|
56
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 2),
|
|
57
57
|
(0, class_transformer_1.Expose)(),
|
|
58
58
|
__metadata("design:type", Number)
|
|
59
59
|
], CreateQuestroomDto.prototype, "playersMin", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, class_validator_1.IsPositive)(),
|
|
62
|
-
(0, class_transformer_1.Transform)(({ value }) => value ||
|
|
62
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 5),
|
|
63
63
|
(0, class_transformer_1.Expose)(),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
65
|
], CreateQuestroomDto.prototype, "playersMax", void 0);
|
|
@@ -88,26 +88,17 @@ __decorate([
|
|
|
88
88
|
__metadata("design:type", String)
|
|
89
89
|
], CreateQuestroomDto.prototype, "defaultLanguage", void 0);
|
|
90
90
|
__decorate([
|
|
91
|
-
(0,
|
|
92
|
-
(0, class_validator_1.IsPositive)(),
|
|
93
|
-
(0, class_transformer_1.Expose)(),
|
|
94
|
-
__metadata("design:type", Number)
|
|
95
|
-
], CreateQuestroomDto.prototype, "walletId", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, class_validator_1.IsOptional)(),
|
|
98
|
-
(0, class_validator_1.IsNumber)(),
|
|
91
|
+
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
99
92
|
(0, class_transformer_1.Expose)(),
|
|
100
93
|
__metadata("design:type", Number)
|
|
101
94
|
], CreateQuestroomDto.prototype, "onlinePaymentsCashbox", void 0);
|
|
102
95
|
__decorate([
|
|
103
|
-
(0,
|
|
104
|
-
(0, class_validator_1.IsNumber)(),
|
|
96
|
+
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
105
97
|
(0, class_transformer_1.Expose)(),
|
|
106
98
|
__metadata("design:type", Number)
|
|
107
99
|
], CreateQuestroomDto.prototype, "cashPaymentsCashbox", void 0);
|
|
108
100
|
__decorate([
|
|
109
|
-
(0,
|
|
110
|
-
(0, class_validator_1.IsNumber)(),
|
|
101
|
+
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
111
102
|
(0, class_transformer_1.Expose)(),
|
|
112
103
|
__metadata("design:type", Number)
|
|
113
104
|
], CreateQuestroomDto.prototype, "cardPaymentsCashbox", void 0);
|
|
@@ -11,26 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateRegistrationRequestDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
class CreateRegistrationRequestDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0,
|
|
19
|
-
(0, class_transformer_1.Expose)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreateRegistrationRequestDto.prototype, "name", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
18
|
+
(0, class_validator_1.IsEmail)(),
|
|
24
19
|
(0, class_transformer_1.Expose)(),
|
|
25
20
|
__metadata("design:type", String)
|
|
26
21
|
], CreateRegistrationRequestDto.prototype, "email", void 0);
|
|
27
22
|
__decorate([
|
|
28
|
-
(0,
|
|
23
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
|
29
24
|
(0, class_transformer_1.Expose)(),
|
|
30
25
|
__metadata("design:type", String)
|
|
31
26
|
], CreateRegistrationRequestDto.prototype, "phone", void 0);
|
|
32
27
|
__decorate([
|
|
33
|
-
(0,
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsUrl)(),
|
|
34
30
|
(0, class_transformer_1.Expose)(),
|
|
35
31
|
__metadata("design:type", String)
|
|
36
32
|
], CreateRegistrationRequestDto.prototype, "site", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegistrationRequestStatusEnum = void 0;
|
|
4
|
+
var RegistrationRequestStatusEnum;
|
|
5
|
+
(function (RegistrationRequestStatusEnum) {
|
|
6
|
+
RegistrationRequestStatusEnum["DONE"] = "done";
|
|
7
|
+
RegistrationRequestStatusEnum["NEW"] = "new";
|
|
8
|
+
RegistrationRequestStatusEnum["REJECTED"] = "rejected";
|
|
9
|
+
})(RegistrationRequestStatusEnum = exports.RegistrationRequestStatusEnum || (exports.RegistrationRequestStatusEnum = {}));
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { RegistrationRequestStatusEnum } from './enum/registration-request-status';
|
|
1
2
|
export declare type RegistrationRequestResponseObject = {
|
|
2
|
-
name: string;
|
|
3
3
|
email: string;
|
|
4
4
|
phone: string;
|
|
5
5
|
site: string;
|
|
6
|
+
status: RegistrationRequestStatusEnum;
|
|
6
7
|
comment?: string;
|
|
7
8
|
id: number;
|
|
9
|
+
profileId: number;
|
|
8
10
|
createdAt: Date;
|
|
9
11
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { RegistrationRequestStatusEnum } from './enum/registration-request-status';
|
|
1
2
|
export declare class UpdateRegistrationRequestDto {
|
|
2
|
-
|
|
3
|
-
phone
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
email: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
site: string;
|
|
6
|
+
status?: RegistrationRequestStatusEnum;
|
|
6
7
|
comment?: string;
|
|
7
8
|
}
|