@escapenavigator/types 1.6.64 → 1.6.66
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/constants/uploading/types.d.ts +1 -1
- package/dist/constants/uploading/upload-bookeo-certificate-rows.d.ts +2 -0
- package/dist/constants/uploading/upload-bookeo-certificate-rows.js +43 -0
- package/dist/constants/uploading/upload-certificate-rows.js +1 -2
- package/dist/constants/uploading/upload-order-bookeo-rows.d.ts +1 -1
- package/dist/constants/uploading/upload-order-bookeo-rows.js +23 -29
- package/dist/constants/uploading/upload-order-rows.js +18 -26
- package/dist/player/check-code.dto.d.ts +4 -0
- package/dist/player/check-code.dto.js +28 -0
- package/dist/player/player-card.ro.d.ts +7 -0
- package/dist/player/player-card.ro.js +36 -0
- package/dist/player/player.ro.d.ts +9 -0
- package/dist/player/player.ro.js +44 -0
- package/dist/player/update-current.dto.d.ts +6 -0
- package/dist/player/update-current.dto.js +38 -0
- package/dist/questroom/enum/questroom-type.enum.d.ts +3 -3
- package/dist/questroom/enum/questroom-type.enum.js +3 -3
- package/dist/review/create-review-answer.dto.d.ts +1 -1
- package/dist/review/create-review-answer.dto.js +3 -3
- package/dist/review/create-social-review.dto.d.ts +1 -1
- package/dist/review/create-social-review.dto.js +3 -3
- package/dist/review/social-review.ro.d.ts +10 -11
- package/dist/review/social-review.ro.js +18 -24
- package/dist/shared/enum/tags.enum.d.ts +0 -3
- package/dist/shared/enum/tags.enum.js +63 -3
- package/dist/shared/import-data.dto.d.ts +3 -0
- package/dist/shared/import-data.dto.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -5,4 +5,4 @@ export declare type UploadFileFormat<T extends string> = Record<T, {
|
|
|
5
5
|
serialize?: (val: unknown) => unknown;
|
|
6
6
|
}>;
|
|
7
7
|
export declare type UploadCertificateRows = 'source' | 'code' | 'client' | 'nominal' | 'expireDate' | 'createdDate' | 'used';
|
|
8
|
-
export declare type UploadOrderRows = '
|
|
8
|
+
export declare type UploadOrderRows = 'source' | 'name' | 'surname' | 'phone' | 'email' | 'date' | 'players' | 'total' | 'payed';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadBookeoCertificateRows = void 0;
|
|
4
|
+
const upload_order_bookeo_rows_1 = require("./upload-order-bookeo-rows");
|
|
5
|
+
exports.uploadBookeoCertificateRows = {
|
|
6
|
+
source: {
|
|
7
|
+
required: true,
|
|
8
|
+
row: 'source',
|
|
9
|
+
serialize: () => 'Bookeo',
|
|
10
|
+
},
|
|
11
|
+
client: {
|
|
12
|
+
required: true,
|
|
13
|
+
row: 'email address',
|
|
14
|
+
},
|
|
15
|
+
code: {
|
|
16
|
+
row: 'code',
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
nominal: {
|
|
20
|
+
row: 'original value',
|
|
21
|
+
required: true,
|
|
22
|
+
serialize: (val) => +val,
|
|
23
|
+
},
|
|
24
|
+
expireDate: {
|
|
25
|
+
row: 'expiration date',
|
|
26
|
+
required: true,
|
|
27
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
28
|
+
},
|
|
29
|
+
createdDate: {
|
|
30
|
+
row: 'time of purchase',
|
|
31
|
+
required: true,
|
|
32
|
+
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
33
|
+
},
|
|
34
|
+
used: {
|
|
35
|
+
row: 'redemption date',
|
|
36
|
+
required: false,
|
|
37
|
+
serialize: (val) => {
|
|
38
|
+
if (!val)
|
|
39
|
+
return null;
|
|
40
|
+
return typeof val === 'string' ? (0, upload_order_bookeo_rows_1.parseDate)(new Date(val)) : (0, upload_order_bookeo_rows_1.parseDate)(val);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -32,8 +32,7 @@ exports.uploadCertificateRows = {
|
|
|
32
32
|
},
|
|
33
33
|
used: {
|
|
34
34
|
row: 'used',
|
|
35
|
-
value: undefined,
|
|
36
35
|
required: false,
|
|
37
|
-
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
36
|
+
serialize: (val) => (val ? (0, upload_order_bookeo_rows_1.parseDate)(val) : undefined),
|
|
38
37
|
},
|
|
39
38
|
};
|
|
@@ -2,62 +2,56 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uploadBookeoOrdersRows = exports.parseDate = void 0;
|
|
4
4
|
function parseDate(serial) {
|
|
5
|
+
if (!serial)
|
|
6
|
+
return null;
|
|
5
7
|
const originalDate = new Date(serial);
|
|
6
8
|
if (!(originalDate instanceof Date))
|
|
7
9
|
return null;
|
|
8
10
|
originalDate.setHours(originalDate.getHours() + 3);
|
|
9
|
-
return originalDate
|
|
11
|
+
return originalDate;
|
|
10
12
|
}
|
|
11
13
|
exports.parseDate = parseDate;
|
|
12
14
|
exports.uploadBookeoOrdersRows = {
|
|
13
|
-
|
|
14
|
-
required:
|
|
15
|
-
row: '
|
|
15
|
+
source: {
|
|
16
|
+
required: true,
|
|
17
|
+
row: 'source',
|
|
16
18
|
serialize: () => 'Bookeo',
|
|
17
19
|
},
|
|
18
|
-
|
|
20
|
+
name: {
|
|
19
21
|
required: false,
|
|
20
|
-
row: '
|
|
22
|
+
row: 'first name',
|
|
21
23
|
},
|
|
22
|
-
|
|
24
|
+
surname: {
|
|
23
25
|
required: false,
|
|
24
|
-
row: '
|
|
26
|
+
row: 'last name',
|
|
25
27
|
},
|
|
26
|
-
|
|
28
|
+
phone: {
|
|
27
29
|
required: false,
|
|
28
|
-
row: '
|
|
30
|
+
row: 'phone',
|
|
29
31
|
},
|
|
30
|
-
|
|
32
|
+
email: {
|
|
31
33
|
required: true,
|
|
32
|
-
row: '
|
|
33
|
-
serialize: (val) => val.toLowerCase().trim(),
|
|
34
|
+
row: 'email address',
|
|
35
|
+
serialize: (val) => val === null || val === void 0 ? void 0 : val.toLowerCase().trim(),
|
|
34
36
|
},
|
|
35
|
-
|
|
37
|
+
date: {
|
|
36
38
|
required: true,
|
|
37
|
-
row: '
|
|
39
|
+
row: 'start',
|
|
38
40
|
serialize: (val) => parseDate(val),
|
|
39
41
|
},
|
|
40
|
-
|
|
42
|
+
players: {
|
|
41
43
|
required: true,
|
|
42
|
-
row: '
|
|
44
|
+
row: 'participants',
|
|
43
45
|
serialize: (val) => +val,
|
|
44
46
|
},
|
|
45
|
-
|
|
47
|
+
total: {
|
|
46
48
|
required: true,
|
|
47
|
-
row: '
|
|
48
|
-
},
|
|
49
|
-
TOTAL_AMOUNT: {
|
|
50
|
-
required: true,
|
|
51
|
-
row: 'Total gross',
|
|
49
|
+
row: 'total gross',
|
|
52
50
|
serialize: (val) => +val,
|
|
53
51
|
},
|
|
54
|
-
|
|
52
|
+
payed: {
|
|
55
53
|
required: true,
|
|
56
|
-
row: '
|
|
54
|
+
row: 'total paid',
|
|
57
55
|
serialize: (val) => +val,
|
|
58
56
|
},
|
|
59
|
-
LANGUAGE: {
|
|
60
|
-
required: false,
|
|
61
|
-
row: 'Language',
|
|
62
|
-
},
|
|
63
57
|
};
|
|
@@ -3,53 +3,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.uploadOrdersRows = void 0;
|
|
4
4
|
const upload_order_bookeo_rows_1 = require("./upload-order-bookeo-rows");
|
|
5
5
|
exports.uploadOrdersRows = {
|
|
6
|
-
|
|
6
|
+
source: {
|
|
7
7
|
required: true,
|
|
8
|
-
row: '
|
|
8
|
+
row: 'source',
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
name: {
|
|
11
11
|
required: false,
|
|
12
|
-
row: '
|
|
12
|
+
row: 'name',
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
surname: {
|
|
15
15
|
required: false,
|
|
16
|
-
row: '
|
|
16
|
+
row: 'surname',
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
phone: {
|
|
19
19
|
required: false,
|
|
20
|
-
row: '
|
|
20
|
+
row: 'phone',
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
email: {
|
|
23
23
|
required: true,
|
|
24
|
-
row: '
|
|
24
|
+
row: 'email',
|
|
25
25
|
serialize: (val) => val.toLowerCase().trim(),
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
date: {
|
|
28
28
|
required: true,
|
|
29
|
-
row: '
|
|
29
|
+
row: 'date',
|
|
30
30
|
serialize: (val) => (0, upload_order_bookeo_rows_1.parseDate)(val),
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
players: {
|
|
33
33
|
required: true,
|
|
34
|
-
row: '
|
|
34
|
+
row: 'players',
|
|
35
35
|
serialize: (val) => +val,
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
total: {
|
|
38
38
|
required: true,
|
|
39
|
-
row: '
|
|
40
|
-
},
|
|
41
|
-
TOTAL_AMOUNT: {
|
|
42
|
-
required: true,
|
|
43
|
-
row: 'TOTAL_AMOUNT',
|
|
39
|
+
row: 'total',
|
|
44
40
|
serialize: (val) => +val,
|
|
45
41
|
},
|
|
46
|
-
|
|
42
|
+
payed: {
|
|
47
43
|
required: true,
|
|
48
|
-
row: '
|
|
44
|
+
row: 'payed',
|
|
49
45
|
serialize: (val) => +val,
|
|
50
46
|
},
|
|
51
|
-
LANGUAGE: {
|
|
52
|
-
required: false,
|
|
53
|
-
row: 'LANGUAGE',
|
|
54
|
-
},
|
|
55
47
|
};
|
|
@@ -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.CheckCodeDto = 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 CheckCodeDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CheckCodeDto.prototype, "code", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEmail)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CheckCodeDto.prototype, "email", void 0);
|
|
28
|
+
exports.CheckCodeDto = CheckCodeDto;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.PlayerCardRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class PlayerCardRO {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_transformer_1.Expose)(),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], PlayerCardRO.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PlayerCardRO.prototype, "fullName", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PlayerCardRO.prototype, "photo", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], PlayerCardRO.prototype, "reviewsCount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], PlayerCardRO.prototype, "ordersCount", void 0);
|
|
36
|
+
exports.PlayerCardRO = PlayerCardRO;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PlayerRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class PlayerRO {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_transformer_1.Expose)(),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], PlayerRO.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PlayerRO.prototype, "fullName", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PlayerRO.prototype, "phone", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PlayerRO.prototype, "photo", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PlayerRO.prototype, "email", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], PlayerRO.prototype, "reviewsCount", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], PlayerRO.prototype, "ordersCount", void 0);
|
|
44
|
+
exports.PlayerRO = PlayerRO;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.UpadteCurrentPlayerDto = 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 UpadteCurrentPlayerDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpadteCurrentPlayerDto.prototype, "fullName", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UpadteCurrentPlayerDto.prototype, "phone", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpadteCurrentPlayerDto.prototype, "photo", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpadteCurrentPlayerDto.prototype, "email", void 0);
|
|
38
|
+
exports.UpadteCurrentPlayerDto = UpadteCurrentPlayerDto;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare enum QuestroomTypeEnum {
|
|
2
2
|
ESCAPE = "escape",
|
|
3
|
+
VR = "vr",
|
|
4
|
+
PERFORMANCE = "performance",
|
|
5
|
+
ONLINE = "online",
|
|
3
6
|
OUTDOOR = "outdoor",
|
|
4
7
|
ACTION = "action",
|
|
5
|
-
VR = "vr",
|
|
6
8
|
ESCAPE_ANIMATION = "escape-animation",
|
|
7
9
|
ROLE_BASED = "role-based",
|
|
8
|
-
PERFORMANCE = "performance",
|
|
9
|
-
ONLINE = "online",
|
|
10
10
|
QIUZ = "quiz"
|
|
11
11
|
}
|
|
@@ -4,12 +4,12 @@ exports.QuestroomTypeEnum = void 0;
|
|
|
4
4
|
var QuestroomTypeEnum;
|
|
5
5
|
(function (QuestroomTypeEnum) {
|
|
6
6
|
QuestroomTypeEnum["ESCAPE"] = "escape";
|
|
7
|
+
QuestroomTypeEnum["VR"] = "vr";
|
|
8
|
+
QuestroomTypeEnum["PERFORMANCE"] = "performance";
|
|
9
|
+
QuestroomTypeEnum["ONLINE"] = "online";
|
|
7
10
|
QuestroomTypeEnum["OUTDOOR"] = "outdoor";
|
|
8
11
|
QuestroomTypeEnum["ACTION"] = "action";
|
|
9
|
-
QuestroomTypeEnum["VR"] = "vr";
|
|
10
12
|
QuestroomTypeEnum["ESCAPE_ANIMATION"] = "escape-animation";
|
|
11
13
|
QuestroomTypeEnum["ROLE_BASED"] = "role-based";
|
|
12
|
-
QuestroomTypeEnum["PERFORMANCE"] = "performance";
|
|
13
|
-
QuestroomTypeEnum["ONLINE"] = "online";
|
|
14
14
|
QuestroomTypeEnum["QIUZ"] = "quiz";
|
|
15
15
|
})(QuestroomTypeEnum = exports.QuestroomTypeEnum || (exports.QuestroomTypeEnum = {}));
|
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateReviewAnswerDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
class CreateReviewAnswerDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0,
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
], CreateReviewAnswerDto.prototype, "
|
|
21
|
+
], CreateReviewAnswerDto.prototype, "response", void 0);
|
|
22
22
|
exports.CreateReviewAnswerDto = CreateReviewAnswerDto;
|
|
@@ -31,8 +31,8 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], CreateSocialReviewDto.prototype, "text", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, class_validator_1.
|
|
34
|
+
(0, class_validator_1.IsPositive)(),
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
|
-
__metadata("design:type",
|
|
37
|
-
], CreateSocialReviewDto.prototype, "
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], CreateSocialReviewDto.prototype, "playerId", void 0);
|
|
38
38
|
exports.CreateSocialReviewDto = CreateSocialReviewDto;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
+
import { PlayerCardRO } from '../player/player-card.ro';
|
|
1
2
|
import { RO } from '../shared/ro-class';
|
|
2
|
-
declare class
|
|
3
|
+
declare class Questroom {
|
|
3
4
|
id: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
surname: string;
|
|
7
|
-
ordersCount: number;
|
|
5
|
+
photo: string;
|
|
6
|
+
title: string;
|
|
8
7
|
}
|
|
9
8
|
export declare class SocialReviewRO extends RO {
|
|
10
|
-
approved: boolean;
|
|
11
|
-
profileId: boolean;
|
|
12
|
-
accepted: boolean;
|
|
13
|
-
questroomId: number;
|
|
14
|
-
player: Player;
|
|
15
|
-
rating: number;
|
|
16
9
|
text: string;
|
|
17
10
|
response: string;
|
|
11
|
+
accepted: boolean;
|
|
12
|
+
questroom: Questroom;
|
|
13
|
+
player: PlayerCardRO;
|
|
14
|
+
rating: number;
|
|
15
|
+
profileId: number;
|
|
16
|
+
cityId: number;
|
|
18
17
|
}
|
|
19
18
|
export {};
|
|
@@ -12,51 +12,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SocialReviewRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const player_card_ro_1 = require("../player/player-card.ro");
|
|
15
16
|
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
-
class
|
|
17
|
+
class Questroom {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, class_transformer_1.Expose)(),
|
|
20
21
|
__metadata("design:type", Number)
|
|
21
|
-
],
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_transformer_1.Expose)(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], Player.prototype, "createdAt", void 0);
|
|
22
|
+
], Questroom.prototype, "id", void 0);
|
|
26
23
|
__decorate([
|
|
27
24
|
(0, class_transformer_1.Expose)(),
|
|
28
25
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
26
|
+
], Questroom.prototype, "photo", void 0);
|
|
30
27
|
__decorate([
|
|
31
28
|
(0, class_transformer_1.Expose)(),
|
|
32
29
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_transformer_1.Expose)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], Player.prototype, "ordersCount", void 0);
|
|
30
|
+
], Questroom.prototype, "title", void 0);
|
|
38
31
|
class SocialReviewRO extends ro_class_1.RO {
|
|
39
32
|
}
|
|
40
33
|
__decorate([
|
|
41
34
|
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type",
|
|
43
|
-
], SocialReviewRO.prototype, "
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SocialReviewRO.prototype, "text", void 0);
|
|
44
37
|
__decorate([
|
|
45
38
|
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], SocialReviewRO.prototype, "
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], SocialReviewRO.prototype, "response", void 0);
|
|
48
41
|
__decorate([
|
|
49
42
|
(0, class_transformer_1.Expose)(),
|
|
50
43
|
__metadata("design:type", Boolean)
|
|
51
44
|
], SocialReviewRO.prototype, "accepted", void 0);
|
|
52
45
|
__decorate([
|
|
53
46
|
(0, class_transformer_1.Expose)(),
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
(0, class_transformer_1.Type)(() => Questroom),
|
|
48
|
+
__metadata("design:type", Questroom)
|
|
49
|
+
], SocialReviewRO.prototype, "questroom", void 0);
|
|
56
50
|
__decorate([
|
|
57
51
|
(0, class_transformer_1.Expose)(),
|
|
58
|
-
(0, class_transformer_1.Type)(() =>
|
|
59
|
-
__metadata("design:type",
|
|
52
|
+
(0, class_transformer_1.Type)(() => player_card_ro_1.PlayerCardRO),
|
|
53
|
+
__metadata("design:type", player_card_ro_1.PlayerCardRO)
|
|
60
54
|
], SocialReviewRO.prototype, "player", void 0);
|
|
61
55
|
__decorate([
|
|
62
56
|
(0, class_transformer_1.Expose)(),
|
|
@@ -64,10 +58,10 @@ __decorate([
|
|
|
64
58
|
], SocialReviewRO.prototype, "rating", void 0);
|
|
65
59
|
__decorate([
|
|
66
60
|
(0, class_transformer_1.Expose)(),
|
|
67
|
-
__metadata("design:type",
|
|
68
|
-
], SocialReviewRO.prototype, "
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], SocialReviewRO.prototype, "profileId", void 0);
|
|
69
63
|
__decorate([
|
|
70
64
|
(0, class_transformer_1.Expose)(),
|
|
71
|
-
__metadata("design:type",
|
|
72
|
-
], SocialReviewRO.prototype, "
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], SocialReviewRO.prototype, "cityId", void 0);
|
|
73
67
|
exports.SocialReviewRO = SocialReviewRO;
|