@escapenavigator/types 1.10.104 → 1.10.106
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 +1 -1
- package/dist/agregator/agregator-questroom.ro.js +2 -2
- package/dist/cashbox/cashbox-light.ro.d.ts +27 -0
- package/dist/cashbox/cashbox-light.ro.js +74 -0
- package/dist/cashbox/cashbox.ro.d.ts +2 -15
- package/dist/cashbox/cashbox.ro.js +2 -48
- package/dist/location/location-light.ro.d.ts +37 -0
- package/dist/location/location-light.ro.js +109 -0
- package/dist/location/location.ro.d.ts +2 -25
- package/dist/location/location.ro.js +2 -83
- package/dist/order/order-light.ro.d.ts +54 -0
- package/dist/order/order-light.ro.js +128 -0
- package/dist/questroom/create-questroom.dto.d.ts +0 -1
- package/dist/questroom/create-questroom.dto.js +0 -5
- package/dist/questroom/questroom-admin.ro.d.ts +2 -1
- package/dist/questroom/questroom-admin.ro.js +2 -1
- package/dist/questroom/questroom-light.ro.d.ts +79 -0
- package/dist/questroom/questroom-light.ro.js +220 -0
- package/dist/questroom/questroom.ro.d.ts +4 -60
- package/dist/questroom/questroom.ro.js +4 -190
- package/dist/role/role-light.ro.d.ts +14 -0
- package/dist/role/role-light.ro.js +34 -0
- package/dist/role/role.ro.d.ts +2 -4
- package/dist/role/role.ro.js +2 -10
- package/dist/tariff/tariff-light.ro.d.ts +20 -0
- package/dist/tariff/tariff-light.ro.js +52 -0
- package/dist/tariff/tariff.ro.d.ts +2 -8
- package/dist/tariff/tariff.ro.js +2 -26
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/user-light.ro.d.ts +28 -0
- package/dist/user/crud/user-light.ro.js +81 -0
- package/dist/user/crud/user.ro.d.ts +2 -15
- package/dist/user/crud/user.ro.js +2 -54
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
|
|
3
3
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
4
|
-
import { QuestroomMode } from '../questroom/questroom.ro';
|
|
4
|
+
import { QuestroomLightMode as QuestroomMode } from '../questroom/questroom-light.ro';
|
|
5
5
|
import { QuestroomAI } from '../questroom/questroom-meta.ro';
|
|
6
6
|
import { ExpertReviewRO } from '../review/expert-review.ro';
|
|
7
7
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
@@ -18,7 +18,7 @@ const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
|
18
18
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
19
19
|
const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
|
|
20
20
|
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
21
|
-
const
|
|
21
|
+
const questroom_light_ro_1 = require("../questroom/questroom-light.ro");
|
|
22
22
|
const questroom_meta_ro_1 = require("../questroom/questroom-meta.ro");
|
|
23
23
|
const expert_review_ro_1 = require("../review/expert-review.ro");
|
|
24
24
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
@@ -314,7 +314,7 @@ __decorate([
|
|
|
314
314
|
], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
|
|
315
315
|
__decorate([
|
|
316
316
|
(0, class_transformer_1.Expose)(),
|
|
317
|
-
(0, class_transformer_1.Type)(() =>
|
|
317
|
+
(0, class_transformer_1.Type)(() => questroom_light_ro_1.QuestroomLightMode),
|
|
318
318
|
__metadata("design:type", Array)
|
|
319
319
|
], AgregatorQuestroomRO.prototype, "modes", void 0);
|
|
320
320
|
__decorate([
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RO } from '../shared/ro-class';
|
|
2
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
+
import { CashboxTypeEnum } from './enum/cashbox-type.enum';
|
|
4
|
+
/**
|
|
5
|
+
* Лёгкий RO кассы для bootstrap'а. В сторе нужны:
|
|
6
|
+
* - `title`, `type`, `total`, `allLocations`, `locationIds` — список касс
|
|
7
|
+
* на `finance/cashboxes-settings`, фильтры в селектах оплаты;
|
|
8
|
+
* - `identificator`, `increase`, `increaseType` — список онлайн-касс
|
|
9
|
+
* на `settings/booking-settings/online-payments`;
|
|
10
|
+
* - `bankName`, `bic`, `iban` — отбор «полных» банк-касс для счетов
|
|
11
|
+
* (`order/sub-modals/invoice` и `closing-document`).
|
|
12
|
+
* Полный `CashboxRO` (с `squareLocationId`) тянется в
|
|
13
|
+
* `CashboxModal`/`CashboxOnlineModal` через `useGetOne`.
|
|
14
|
+
*/
|
|
15
|
+
export declare class CashboxLightRO extends RO {
|
|
16
|
+
title: string;
|
|
17
|
+
type: CashboxTypeEnum;
|
|
18
|
+
identificator?: string;
|
|
19
|
+
increase: number;
|
|
20
|
+
allLocations: boolean;
|
|
21
|
+
locationIds: number[];
|
|
22
|
+
increaseType: PrepaymentTypeEnum;
|
|
23
|
+
total: number;
|
|
24
|
+
bankName?: string;
|
|
25
|
+
bic?: string;
|
|
26
|
+
iban?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.CashboxLightRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
16
|
+
const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
|
|
17
|
+
/**
|
|
18
|
+
* Лёгкий RO кассы для bootstrap'а. В сторе нужны:
|
|
19
|
+
* - `title`, `type`, `total`, `allLocations`, `locationIds` — список касс
|
|
20
|
+
* на `finance/cashboxes-settings`, фильтры в селектах оплаты;
|
|
21
|
+
* - `identificator`, `increase`, `increaseType` — список онлайн-касс
|
|
22
|
+
* на `settings/booking-settings/online-payments`;
|
|
23
|
+
* - `bankName`, `bic`, `iban` — отбор «полных» банк-касс для счетов
|
|
24
|
+
* (`order/sub-modals/invoice` и `closing-document`).
|
|
25
|
+
* Полный `CashboxRO` (с `squareLocationId`) тянется в
|
|
26
|
+
* `CashboxModal`/`CashboxOnlineModal` через `useGetOne`.
|
|
27
|
+
*/
|
|
28
|
+
class CashboxLightRO extends ro_class_1.RO {
|
|
29
|
+
}
|
|
30
|
+
exports.CashboxLightRO = CashboxLightRO;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CashboxLightRO.prototype, "title", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CashboxLightRO.prototype, "type", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CashboxLightRO.prototype, "identificator", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], CashboxLightRO.prototype, "increase", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], CashboxLightRO.prototype, "allLocations", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], CashboxLightRO.prototype, "locationIds", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CashboxLightRO.prototype, "increaseType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], CashboxLightRO.prototype, "total", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CashboxLightRO.prototype, "bankName", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CashboxLightRO.prototype, "bic", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CashboxLightRO.prototype, "iban", void 0);
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { CashboxTypeEnum } from './enum/cashbox-type.enum';
|
|
4
|
-
export declare class CashboxRO extends RO {
|
|
5
|
-
title: string;
|
|
6
|
-
type: CashboxTypeEnum;
|
|
7
|
-
identificator?: string;
|
|
8
|
-
increase: number;
|
|
9
|
-
allLocations: boolean;
|
|
10
|
-
locationIds: number[];
|
|
11
|
-
increaseType: PrepaymentTypeEnum;
|
|
12
|
-
total: number;
|
|
1
|
+
import { CashboxLightRO } from './cashbox-light.ro';
|
|
2
|
+
export declare class CashboxRO extends CashboxLightRO {
|
|
13
3
|
squareLocationId: string;
|
|
14
|
-
bankName?: string;
|
|
15
|
-
bic?: string;
|
|
16
|
-
iban?: string;
|
|
17
4
|
}
|
|
@@ -11,57 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CashboxRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
|
|
17
|
-
class CashboxRO extends ro_class_1.RO {
|
|
14
|
+
const cashbox_light_ro_1 = require("./cashbox-light.ro");
|
|
15
|
+
class CashboxRO extends cashbox_light_ro_1.CashboxLightRO {
|
|
18
16
|
}
|
|
19
17
|
exports.CashboxRO = CashboxRO;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CashboxRO.prototype, "title", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CashboxRO.prototype, "type", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_transformer_1.Expose)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CashboxRO.prototype, "identificator", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_transformer_1.Expose)(),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], CashboxRO.prototype, "increase", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", Boolean)
|
|
39
|
-
], CashboxRO.prototype, "allLocations", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], CashboxRO.prototype, "locationIds", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], CashboxRO.prototype, "increaseType", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_transformer_1.Expose)(),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], CashboxRO.prototype, "total", void 0);
|
|
52
18
|
__decorate([
|
|
53
19
|
(0, class_transformer_1.Expose)(),
|
|
54
20
|
__metadata("design:type", String)
|
|
55
21
|
], CashboxRO.prototype, "squareLocationId", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_transformer_1.Expose)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], CashboxRO.prototype, "bankName", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_transformer_1.Expose)(),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], CashboxRO.prototype, "bic", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], CashboxRO.prototype, "iban", void 0);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { RO } from '../shared/ro-class';
|
|
3
|
+
declare class LocationLocaleLight {
|
|
4
|
+
id: number;
|
|
5
|
+
language: Languages;
|
|
6
|
+
howToFind: string;
|
|
7
|
+
prepareText: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Лёгкий RO локации для bootstrap'а. Локаций у профиля макс 4 штуки,
|
|
11
|
+
* поэтому абсолютная экономия маленькая, но архитектура остаётся
|
|
12
|
+
* единообразной (Full extends Light). Из payload'а выкинут только
|
|
13
|
+
* `ip` — он нигде в @escapenavigator/app не читается, нужен лишь
|
|
14
|
+
* в `modals/location` (edit-форме), которая тянет полный RO через
|
|
15
|
+
* `useGetOne(roles.getOne)`. Все остальные поля (включая `locales`,
|
|
16
|
+
* `wifi`, `wardrobe`, `parking`, `waitingArea`, `waitingAreaSize`,
|
|
17
|
+
* `site`) используются в settings/verify-company/email-example
|
|
18
|
+
* напрямую из стора, поэтому остаются здесь.
|
|
19
|
+
*/
|
|
20
|
+
export declare class LocationLightRO extends RO {
|
|
21
|
+
title: string;
|
|
22
|
+
sortPosition: number;
|
|
23
|
+
address: string;
|
|
24
|
+
phone: string;
|
|
25
|
+
howToFind: string;
|
|
26
|
+
prepareText: string;
|
|
27
|
+
wifi: boolean;
|
|
28
|
+
wardrobe: boolean;
|
|
29
|
+
freeParking: boolean;
|
|
30
|
+
parking: boolean;
|
|
31
|
+
waitingArea: boolean;
|
|
32
|
+
waitingAreaSize: number;
|
|
33
|
+
site: string;
|
|
34
|
+
timeZone: string;
|
|
35
|
+
locales: LocationLocaleLight[];
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
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.LocationLightRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
class LocationLocaleLight {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], LocationLocaleLight.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LocationLocaleLight.prototype, "language", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], LocationLocaleLight.prototype, "howToFind", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], LocationLocaleLight.prototype, "prepareText", void 0);
|
|
35
|
+
/**
|
|
36
|
+
* Лёгкий RO локации для bootstrap'а. Локаций у профиля макс 4 штуки,
|
|
37
|
+
* поэтому абсолютная экономия маленькая, но архитектура остаётся
|
|
38
|
+
* единообразной (Full extends Light). Из payload'а выкинут только
|
|
39
|
+
* `ip` — он нигде в @escapenavigator/app не читается, нужен лишь
|
|
40
|
+
* в `modals/location` (edit-форме), которая тянет полный RO через
|
|
41
|
+
* `useGetOne(roles.getOne)`. Все остальные поля (включая `locales`,
|
|
42
|
+
* `wifi`, `wardrobe`, `parking`, `waitingArea`, `waitingAreaSize`,
|
|
43
|
+
* `site`) используются в settings/verify-company/email-example
|
|
44
|
+
* напрямую из стора, поэтому остаются здесь.
|
|
45
|
+
*/
|
|
46
|
+
class LocationLightRO extends ro_class_1.RO {
|
|
47
|
+
}
|
|
48
|
+
exports.LocationLightRO = LocationLightRO;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LocationLightRO.prototype, "title", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], LocationLightRO.prototype, "sortPosition", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], LocationLightRO.prototype, "address", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], LocationLightRO.prototype, "phone", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], LocationLightRO.prototype, "howToFind", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], LocationLightRO.prototype, "prepareText", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], LocationLightRO.prototype, "wifi", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], LocationLightRO.prototype, "wardrobe", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_transformer_1.Expose)(),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], LocationLightRO.prototype, "freeParking", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", Boolean)
|
|
88
|
+
], LocationLightRO.prototype, "parking", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], LocationLightRO.prototype, "waitingArea", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], LocationLightRO.prototype, "waitingAreaSize", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_transformer_1.Expose)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], LocationLightRO.prototype, "site", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], LocationLightRO.prototype, "timeZone", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
(0, class_transformer_1.Type)(() => LocationLocaleLight),
|
|
108
|
+
__metadata("design:type", Array)
|
|
109
|
+
], LocationLightRO.prototype, "locales", void 0);
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class LocationLocale {
|
|
4
|
-
id: number;
|
|
5
|
-
language: Languages;
|
|
6
|
-
howToFind: string;
|
|
7
|
-
prepareText: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class LocationRO extends RO {
|
|
10
|
-
title: string;
|
|
11
|
-
sortPosition: number;
|
|
12
|
-
address: string;
|
|
13
|
-
phone: string;
|
|
1
|
+
import { LocationLightRO } from './location-light.ro';
|
|
2
|
+
export declare class LocationRO extends LocationLightRO {
|
|
14
3
|
ip: string;
|
|
15
|
-
howToFind: string;
|
|
16
|
-
prepareText: string;
|
|
17
|
-
wifi: boolean;
|
|
18
|
-
wardrobe: boolean;
|
|
19
|
-
freeParking: boolean;
|
|
20
|
-
parking: boolean;
|
|
21
|
-
waitingArea: boolean;
|
|
22
|
-
site: string;
|
|
23
|
-
waitingAreaSize: number;
|
|
24
|
-
timeZone: string;
|
|
25
|
-
locales: LocationLocale[];
|
|
26
4
|
}
|
|
27
|
-
export {};
|
|
@@ -10,93 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocationRO = void 0;
|
|
13
|
-
/* eslint-disable max-classes-per-file */
|
|
14
13
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
class LocationLocale {
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_transformer_1.Expose)(),
|
|
21
|
-
__metadata("design:type", Number)
|
|
22
|
-
], LocationLocale.prototype, "id", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_transformer_1.Expose)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], LocationLocale.prototype, "language", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], LocationLocale.prototype, "howToFind", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], LocationLocale.prototype, "prepareText", void 0);
|
|
35
|
-
class LocationRO extends ro_class_1.RO {
|
|
14
|
+
const location_light_ro_1 = require("./location-light.ro");
|
|
15
|
+
class LocationRO extends location_light_ro_1.LocationLightRO {
|
|
36
16
|
}
|
|
37
17
|
exports.LocationRO = LocationRO;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], LocationRO.prototype, "title", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Expose)(),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], LocationRO.prototype, "sortPosition", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_transformer_1.Expose)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], LocationRO.prototype, "address", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_transformer_1.Expose)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], LocationRO.prototype, "phone", void 0);
|
|
54
18
|
__decorate([
|
|
55
19
|
(0, class_transformer_1.Expose)(),
|
|
56
20
|
__metadata("design:type", String)
|
|
57
21
|
], LocationRO.prototype, "ip", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_transformer_1.Expose)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], LocationRO.prototype, "howToFind", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_transformer_1.Expose)(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], LocationRO.prototype, "prepareText", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_transformer_1.Expose)(),
|
|
68
|
-
__metadata("design:type", Boolean)
|
|
69
|
-
], LocationRO.prototype, "wifi", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_transformer_1.Expose)(),
|
|
72
|
-
__metadata("design:type", Boolean)
|
|
73
|
-
], LocationRO.prototype, "wardrobe", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_transformer_1.Expose)(),
|
|
76
|
-
__metadata("design:type", Boolean)
|
|
77
|
-
], LocationRO.prototype, "freeParking", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, class_transformer_1.Expose)(),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], LocationRO.prototype, "parking", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, class_transformer_1.Expose)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], LocationRO.prototype, "waitingArea", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_transformer_1.Expose)(),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], LocationRO.prototype, "site", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_transformer_1.Expose)(),
|
|
92
|
-
__metadata("design:type", Number)
|
|
93
|
-
], LocationRO.prototype, "waitingAreaSize", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, class_transformer_1.Expose)(),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], LocationRO.prototype, "timeZone", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, class_transformer_1.Expose)(),
|
|
100
|
-
(0, class_transformer_1.Type)(() => LocationLocale),
|
|
101
|
-
__metadata("design:type", Array)
|
|
102
|
-
], LocationRO.prototype, "locales", void 0);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { RO } from '../shared/ro-class';
|
|
3
|
+
import { SourceEnum } from '../shared/source.enum';
|
|
4
|
+
/**
|
|
5
|
+
* Минимально достаточный «view» клиента для строки таблицы ордеров:
|
|
6
|
+
* имя+телефон/email и `id` (для CopyButton/ссылок). Тяжёлые поля
|
|
7
|
+
* (`address`, `country`, `previousData`, `prevOrders` и т.п.) сюда
|
|
8
|
+
* специально не тащим — `OrdersColumns` ими не пользуется.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ClientLightRO {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
surname: string;
|
|
14
|
+
patronymic: string;
|
|
15
|
+
phone: string;
|
|
16
|
+
email: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Slim-вариант `OrderRO` для пагинируемой выдачи `GET /orders/light`.
|
|
20
|
+
* Содержит ровно тот набор полей, что нужен ячейкам таблицы
|
|
21
|
+
* (`OrdersColumns`, `OrderTableItem`) и хендлерам `useOpenOrder`
|
|
22
|
+
* (`id`, `groupId`). Никаких relations кроме slim-`client`,
|
|
23
|
+
* никакого `utm` (eager-relation на сущности отключается через
|
|
24
|
+
* `loadEagerRelations: false` в сервисе), никаких `customFields` /
|
|
25
|
+
* `price` jsonb / `messages` / `transactions` и прочих коллекций —
|
|
26
|
+
* всё это раздувало payload в десятки раз без пользы для UI.
|
|
27
|
+
*
|
|
28
|
+
* Если новой колонке таблицы потребуется ещё одно поле — расширяем
|
|
29
|
+
* этот RO и `paginateLight.select` одновременно (бэк не отдаст ничего,
|
|
30
|
+
* что не выбрано в `select`).
|
|
31
|
+
*/
|
|
32
|
+
export declare class OrderLightRO extends RO {
|
|
33
|
+
utcDate: string;
|
|
34
|
+
code: string;
|
|
35
|
+
source: SourceEnum;
|
|
36
|
+
language?: Languages;
|
|
37
|
+
questroomId: number;
|
|
38
|
+
players: number;
|
|
39
|
+
total: number;
|
|
40
|
+
payed: number;
|
|
41
|
+
/**
|
|
42
|
+
* v2: скидка из слота. В UI `getOrderData` уже не использует
|
|
43
|
+
* её для расчёта статуса (см. коммент `get-order-data.ts`), но
|
|
44
|
+
* легаси-ветка осталась — отдаём, чтобы тип совпадал с `OrderRO`
|
|
45
|
+
* для общих хелперов.
|
|
46
|
+
*/
|
|
47
|
+
slotDiscount: number;
|
|
48
|
+
slotId?: number;
|
|
49
|
+
groupId?: number;
|
|
50
|
+
confirmed?: boolean;
|
|
51
|
+
canceledWithFine: boolean;
|
|
52
|
+
locked: boolean;
|
|
53
|
+
client: ClientLightRO;
|
|
54
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.OrderLightRO = exports.ClientLightRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
const source_enum_1 = require("../shared/source.enum");
|
|
18
|
+
/**
|
|
19
|
+
* Минимально достаточный «view» клиента для строки таблицы ордеров:
|
|
20
|
+
* имя+телефон/email и `id` (для CopyButton/ссылок). Тяжёлые поля
|
|
21
|
+
* (`address`, `country`, `previousData`, `prevOrders` и т.п.) сюда
|
|
22
|
+
* специально не тащим — `OrdersColumns` ими не пользуется.
|
|
23
|
+
*/
|
|
24
|
+
class ClientLightRO {
|
|
25
|
+
}
|
|
26
|
+
exports.ClientLightRO = ClientLightRO;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ClientLightRO.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ClientLightRO.prototype, "name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ClientLightRO.prototype, "surname", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ClientLightRO.prototype, "patronymic", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ClientLightRO.prototype, "phone", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ClientLightRO.prototype, "email", void 0);
|
|
51
|
+
/**
|
|
52
|
+
* Slim-вариант `OrderRO` для пагинируемой выдачи `GET /orders/light`.
|
|
53
|
+
* Содержит ровно тот набор полей, что нужен ячейкам таблицы
|
|
54
|
+
* (`OrdersColumns`, `OrderTableItem`) и хендлерам `useOpenOrder`
|
|
55
|
+
* (`id`, `groupId`). Никаких relations кроме slim-`client`,
|
|
56
|
+
* никакого `utm` (eager-relation на сущности отключается через
|
|
57
|
+
* `loadEagerRelations: false` в сервисе), никаких `customFields` /
|
|
58
|
+
* `price` jsonb / `messages` / `transactions` и прочих коллекций —
|
|
59
|
+
* всё это раздувало payload в десятки раз без пользы для UI.
|
|
60
|
+
*
|
|
61
|
+
* Если новой колонке таблицы потребуется ещё одно поле — расширяем
|
|
62
|
+
* этот RO и `paginateLight.select` одновременно (бэк не отдаст ничего,
|
|
63
|
+
* что не выбрано в `select`).
|
|
64
|
+
*/
|
|
65
|
+
class OrderLightRO extends ro_class_1.RO {
|
|
66
|
+
}
|
|
67
|
+
exports.OrderLightRO = OrderLightRO;
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], OrderLightRO.prototype, "utcDate", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], OrderLightRO.prototype, "code", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], OrderLightRO.prototype, "source", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], OrderLightRO.prototype, "language", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], OrderLightRO.prototype, "questroomId", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], OrderLightRO.prototype, "players", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], OrderLightRO.prototype, "total", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_transformer_1.Expose)(),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], OrderLightRO.prototype, "payed", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], OrderLightRO.prototype, "slotDiscount", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], OrderLightRO.prototype, "slotId", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_transformer_1.Expose)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], OrderLightRO.prototype, "groupId", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_transformer_1.Expose)(),
|
|
114
|
+
__metadata("design:type", Boolean)
|
|
115
|
+
], OrderLightRO.prototype, "confirmed", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_transformer_1.Expose)(),
|
|
118
|
+
__metadata("design:type", Boolean)
|
|
119
|
+
], OrderLightRO.prototype, "canceledWithFine", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_transformer_1.Expose)(),
|
|
122
|
+
__metadata("design:type", Boolean)
|
|
123
|
+
], OrderLightRO.prototype, "locked", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Expose)(),
|
|
126
|
+
(0, class_transformer_1.Type)(() => ClientLightRO),
|
|
127
|
+
__metadata("design:type", ClientLightRO)
|
|
128
|
+
], OrderLightRO.prototype, "client", void 0);
|