@escapenavigator/types 2.0.3 → 2.0.4

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.
@@ -24,4 +24,5 @@ export declare class CashboxLightRO extends RO {
24
24
  bankName?: string;
25
25
  bic?: string;
26
26
  iban?: string;
27
+ accountHolder?: string;
27
28
  }
@@ -72,3 +72,7 @@ __decorate([
72
72
  (0, class_transformer_1.Expose)(),
73
73
  __metadata("design:type", String)
74
74
  ], CashboxLightRO.prototype, "iban", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Expose)(),
77
+ __metadata("design:type", String)
78
+ ], CashboxLightRO.prototype, "accountHolder", void 0);
@@ -7,4 +7,5 @@ export declare class CreateCashboxDto {
7
7
  bankName?: string;
8
8
  bic?: string;
9
9
  iban?: string;
10
+ accountHolder?: string;
10
11
  }
@@ -55,3 +55,9 @@ __decorate([
55
55
  (0, class_validator_1.IsString)(),
56
56
  __metadata("design:type", String)
57
57
  ], CreateCashboxDto.prototype, "iban", void 0);
58
+ __decorate([
59
+ (0, class_transformer_1.Expose)(),
60
+ (0, class_validator_1.IsOptional)(),
61
+ (0, class_validator_1.IsString)(),
62
+ __metadata("design:type", String)
63
+ ], CreateCashboxDto.prototype, "accountHolder", void 0);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * SEO-тексты района (таблица `districts-seo-text`): HTML-текст на язык.
3
+ * На странице района агрегатор берёт язык домена с fallback на en.
4
+ * Валидация мягкая — редактор может свободно черновичить (как CityFaqRO).
5
+ */
6
+ export declare class DistrictSeo {
7
+ text: string;
8
+ language: string;
9
+ }
10
+ export declare class DistrictSeoRO {
11
+ seo: DistrictSeo[];
12
+ }
@@ -0,0 +1,45 @@
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.DistrictSeoRO = exports.DistrictSeo = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ /**
17
+ * SEO-тексты района (таблица `districts-seo-text`): HTML-текст на язык.
18
+ * На странице района агрегатор берёт язык домена с fallback на en.
19
+ * Валидация мягкая — редактор может свободно черновичить (как CityFaqRO).
20
+ */
21
+ class DistrictSeo {
22
+ }
23
+ exports.DistrictSeo = DistrictSeo;
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], DistrictSeo.prototype, "text", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], DistrictSeo.prototype, "language", void 0);
36
+ class DistrictSeoRO {
37
+ }
38
+ exports.DistrictSeoRO = DistrictSeoRO;
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsArray)(),
43
+ (0, class_transformer_1.Type)(() => DistrictSeo),
44
+ __metadata("design:type", Array)
45
+ ], DistrictSeoRO.prototype, "seo", void 0);
@@ -0,0 +1,25 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ /**
3
+ * Район города (импорт из OSM, таблица `districts`). Используется
4
+ * админкой (страница Aggregators → Districts); публичная витрина
5
+ * агрегатора ходит через свои RO в api-пакете.
6
+ */
7
+ export type DistrictRO = {
8
+ id: number;
9
+ title: string;
10
+ slug: string;
11
+ cityId: number;
12
+ country: CountriesEnum;
13
+ /** Денормализованный счётчик квестов, пересчитывается кроном/переимпортом. */
14
+ questroomsCount: number;
15
+ /** Скрыть район из выдачи агрегатора (мусорные/технические полигоны). */
16
+ hidden: boolean;
17
+ adminLevel: number | null;
18
+ osmId: number | null;
19
+ /** Город (relation, подгружается в админских выборках). */
20
+ city?: {
21
+ id: number;
22
+ title: string;
23
+ slug: string;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export declare class UpdateDistrictDto {
2
+ title?: string;
3
+ /**
4
+ * Смена слага меняет URL страницы района — старый URL станет 404
5
+ * (редиректов нет), менять только до индексации.
6
+ */
7
+ slug?: string;
8
+ hidden?: boolean;
9
+ }
@@ -0,0 +1,35 @@
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.UpdateDistrictDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateDistrictDto {
16
+ }
17
+ exports.UpdateDistrictDto = UpdateDistrictDto;
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
+ ], UpdateDistrictDto.prototype, "title", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.Matches)(/^[a-z0-9-]+$/, { message: 'Only lowercase latin, digits and dashes' }),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], UpdateDistrictDto.prototype, "slug", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Boolean)
35
+ ], UpdateDistrictDto.prototype, "hidden", void 0);
@@ -27,6 +27,17 @@ export declare class Utm {
27
27
  * перезаписывается.
28
28
  */
29
29
  enLinkId?: string | null;
30
+ /**
31
+ * Рекламные click-id из URL (last-click, как UTM). Нужны для
32
+ * серверной атрибуции конверсий (Google Ads offline conversions,
33
+ * Meta CAPI и т.п.) — особенно когда бронирование идёт через
34
+ * standalone-страницу на orders-домене и браузерная аналитика
35
+ * теряет источник. Виджет обрезает значения до 512 символов.
36
+ */
37
+ gclid?: string | null;
38
+ fbclid?: string | null;
39
+ ttclid?: string | null;
40
+ msclkid?: string | null;
30
41
  }
31
42
  declare class Rule {
32
43
  cancelationRule: QuestroomCancelationTypeEnum;
@@ -64,6 +64,30 @@ __decorate([
64
64
  (0, class_validator_1.IsOptional)(),
65
65
  __metadata("design:type", String)
66
66
  ], Utm.prototype, "enLinkId", void 0);
67
+ __decorate([
68
+ (0, class_transformer_1.Expose)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.MaxLength)(512),
71
+ __metadata("design:type", String)
72
+ ], Utm.prototype, "gclid", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.MaxLength)(512),
77
+ __metadata("design:type", String)
78
+ ], Utm.prototype, "fbclid", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Expose)(),
81
+ (0, class_validator_1.IsOptional)(),
82
+ (0, class_validator_1.MaxLength)(512),
83
+ __metadata("design:type", String)
84
+ ], Utm.prototype, "ttclid", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)(),
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.MaxLength)(512),
89
+ __metadata("design:type", String)
90
+ ], Utm.prototype, "msclkid", void 0);
67
91
  class Rule {
68
92
  }
69
93
  __decorate([
@@ -1,3 +1,4 @@
1
+ import { ProfileLostReasonEnum } from '../enum/profile-lost-reason.enum';
1
2
  import { ProfileSalesStatus } from '../enum/profile-sales-status.enum';
2
3
  export declare class CreateProfileActionRO {
3
4
  profileId: number;
@@ -7,4 +8,6 @@ export declare class CreateProfileActionRO {
7
8
  done?: boolean;
8
9
  time?: string;
9
10
  salesStatus?: ProfileSalesStatus;
11
+ assigneeId?: number;
12
+ lostReason?: ProfileLostReasonEnum;
10
13
  }
@@ -13,6 +13,7 @@ exports.CreateProfileActionRO = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const is_not_blank_1 = require("../../shared/is-not-blank");
16
+ const profile_lost_reason_enum_1 = require("../enum/profile-lost-reason.enum");
16
17
  const profile_sales_status_enum_1 = require("../enum/profile-sales-status.enum");
17
18
  class CreateProfileActionRO {
18
19
  }
@@ -57,3 +58,16 @@ __decorate([
57
58
  (0, class_transformer_1.Expose)(),
58
59
  __metadata("design:type", String)
59
60
  ], CreateProfileActionRO.prototype, "salesStatus", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsPositive)(),
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", Number)
66
+ ], CreateProfileActionRO.prototype, "assigneeId", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.ValidateIf)((o) => o.salesStatus === profile_sales_status_enum_1.ProfileSalesStatus.REJECTED ||
69
+ o.salesStatus === profile_sales_status_enum_1.ProfileSalesStatus.FREE_LOST),
70
+ (0, class_validator_1.IsEnum)(profile_lost_reason_enum_1.ProfileLostReasonEnum),
71
+ (0, class_transformer_1.Expose)(),
72
+ __metadata("design:type", String)
73
+ ], CreateProfileActionRO.prototype, "lostReason", void 0);
@@ -4,6 +4,8 @@ declare class Profile {
4
4
  }
5
5
  export declare class ProfileActionRO {
6
6
  id: number;
7
+ profileId: number;
8
+ assigneeId: number;
7
9
  profile: Profile;
8
10
  createdAt: Date;
9
11
  type: string;
@@ -29,6 +29,14 @@ __decorate([
29
29
  (0, class_transformer_1.Expose)(),
30
30
  __metadata("design:type", Number)
31
31
  ], ProfileActionRO.prototype, "id", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Number)
35
+ ], ProfileActionRO.prototype, "profileId", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Number)
39
+ ], ProfileActionRO.prototype, "assigneeId", void 0);
32
40
  __decorate([
33
41
  (0, class_transformer_1.Expose)(),
34
42
  (0, class_transformer_1.Type)(() => Profile),
@@ -3,6 +3,7 @@ import { ProfileActionRO } from './action/profile-action.ro';
3
3
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
4
4
  import { PartnerProgramEnum } from './enum/partner-program.enum';
5
5
  import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
6
+ import { ProfileLostReasonEnum } from './enum/profile-lost-reason.enum';
6
7
  import { ProfileLoyaltyEnum } from './enum/profile-loyalty.enum';
7
8
  import { ProfileSalesStatus } from './enum/profile-sales-status.enum';
8
9
  import { ProfileStatusEnum } from './enum/profile-step.enum';
@@ -22,6 +23,7 @@ export declare class AdminProfileRO {
22
23
  loyalty: ProfileLoyaltyEnum;
23
24
  techStatus: ProfileTechStatusEnum;
24
25
  salesStatus: ProfileSalesStatus;
26
+ lostReason: ProfileLostReasonEnum;
25
27
  commissions?: ProfileCommissionRO;
26
28
  partnerProgram: PartnerProgramEnum;
27
29
  lastEmailSendId: string;
@@ -17,6 +17,7 @@ const profile_action_ro_1 = require("./action/profile-action.ro");
17
17
  const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
18
18
  const partner_program_enum_1 = require("./enum/partner-program.enum");
19
19
  const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
20
+ const profile_lost_reason_enum_1 = require("./enum/profile-lost-reason.enum");
20
21
  const profile_loyalty_enum_1 = require("./enum/profile-loyalty.enum");
21
22
  const profile_sales_status_enum_1 = require("./enum/profile-sales-status.enum");
22
23
  const profile_step_enum_1 = require("./enum/profile-step.enum");
@@ -62,6 +63,10 @@ __decorate([
62
63
  (0, class_transformer_1.Expose)(),
63
64
  __metadata("design:type", String)
64
65
  ], AdminProfileRO.prototype, "salesStatus", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Expose)(),
68
+ __metadata("design:type", String)
69
+ ], AdminProfileRO.prototype, "lostReason", void 0);
65
70
  __decorate([
66
71
  (0, class_transformer_1.Expose)(),
67
72
  (0, class_transformer_1.Type)(() => profile_commission_ro_1.ProfileCommissionRO),
@@ -0,0 +1,9 @@
1
+ export declare enum ProfileLostReasonEnum {
2
+ EXPENSIVE = "expensive",
3
+ COMPETITOR = "competitor",
4
+ CLOSED = "closed",
5
+ NO_RESPONSE = "no_response",
6
+ NO_NEED = "no_need",
7
+ MISSING_FEATURES = "missing_features",
8
+ OTHER = "other"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileLostReasonEnum = void 0;
4
+ var ProfileLostReasonEnum;
5
+ (function (ProfileLostReasonEnum) {
6
+ ProfileLostReasonEnum["EXPENSIVE"] = "expensive";
7
+ ProfileLostReasonEnum["COMPETITOR"] = "competitor";
8
+ ProfileLostReasonEnum["CLOSED"] = "closed";
9
+ ProfileLostReasonEnum["NO_RESPONSE"] = "no_response";
10
+ ProfileLostReasonEnum["NO_NEED"] = "no_need";
11
+ ProfileLostReasonEnum["MISSING_FEATURES"] = "missing_features";
12
+ ProfileLostReasonEnum["OTHER"] = "other";
13
+ })(ProfileLostReasonEnum || (exports.ProfileLostReasonEnum = ProfileLostReasonEnum = {}));
@@ -44,6 +44,8 @@ export declare class ProfileRO {
44
44
  /** ОГРН/ОГРНИП — для RU-юрлиц. Используется как плейсхолдер `{{ogrn}}`
45
45
  * в TEMPLATE-документах при генерации клиентского соглашения. */
46
46
  ogrn?: string;
47
+ /** Geschäftsführer — для футера PDF-счёта (non-RU). */
48
+ legalManagingDirector?: string;
47
49
  phoneForCustomers: string;
48
50
  logo: string;
49
51
  mainEmail: string;
@@ -135,6 +135,10 @@ __decorate([
135
135
  (0, class_transformer_1.Expose)(),
136
136
  __metadata("design:type", String)
137
137
  ], ProfileRO.prototype, "ogrn", void 0);
138
+ __decorate([
139
+ (0, class_transformer_1.Expose)(),
140
+ __metadata("design:type", String)
141
+ ], ProfileRO.prototype, "legalManagingDirector", void 0);
138
142
  __decorate([
139
143
  (0, class_transformer_1.Expose)(),
140
144
  __metadata("design:type", String)
@@ -5,6 +5,7 @@ export declare class UpdateCurrentBaseDto {
5
5
  legalAddress?: string;
6
6
  legalTaxId?: string;
7
7
  ogrn?: string;
8
+ legalManagingDirector?: string;
8
9
  tax?: number;
9
10
  taxIncluded?: boolean;
10
11
  phoneForCustomers: string;
@@ -42,6 +42,11 @@ __decorate([
42
42
  (0, class_transformer_1.Expose)(),
43
43
  __metadata("design:type", String)
44
44
  ], UpdateCurrentBaseDto.prototype, "ogrn", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], UpdateCurrentBaseDto.prototype, "legalManagingDirector", void 0);
45
50
  __decorate([
46
51
  (0, class_validator_1.IsOptional)(),
47
52
  (0, class_validator_1.IsNumber)(),
@@ -53,5 +53,7 @@ export declare class TransactionRO extends RO {
53
53
  recognition: RecognitionTypeEnum;
54
54
  paymentPeriodEnd: string;
55
55
  invoiceLink?: string;
56
+ /** Короткий номер счёта (например `2026-001`) — присваивается при генерации PDF. */
57
+ invoiceNumber?: string;
56
58
  }
57
59
  export {};
@@ -180,3 +180,7 @@ __decorate([
180
180
  (0, class_transformer_1.Expose)(),
181
181
  __metadata("design:type", String)
182
182
  ], TransactionRO.prototype, "invoiceLink", void 0);
183
+ __decorate([
184
+ (0, class_transformer_1.Expose)(),
185
+ __metadata("design:type", String)
186
+ ], TransactionRO.prototype, "invoiceNumber", void 0);