@escapenavigator/types 2.1.25 → 2.1.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/admin/aggregator-order/aggregator-order.ro.d.ts +2 -0
- package/dist/admin/aggregator-order/aggregator-order.ro.js +4 -0
- package/dist/admin/navigator-booking/navigator-booking-audit.ro.d.ts +43 -0
- package/dist/admin/navigator-booking/navigator-booking-audit.ro.js +20 -0
- package/dist/admin/navigator-booking/navigator-commission-act.ro.d.ts +14 -1
- package/dist/admin/navigator-booking/navigator-commission-act.ro.js +2 -0
- package/dist/admin/navigator-booking/query-navigator-bookings.dto.js +5 -1
- package/dist/balance/balance-invoice.ro.d.ts +12 -0
- package/dist/balance/balance-invoice.ro.js +36 -1
- package/dist/balance/profile-debt.ro.d.ts +17 -0
- package/dist/balance/profile-debt.ro.js +55 -0
- package/dist/profile/admin-profile.ro.d.ts +3 -0
- package/dist/profile/admin-profile.ro.js +12 -0
- package/dist/profile/create-profile-admin-comment.dto.d.ts +3 -0
- package/dist/profile/create-profile-admin-comment.dto.js +24 -0
- package/dist/profile/create-profile.dto.d.ts +2 -0
- package/dist/profile/create-profile.dto.js +11 -0
- package/dist/profile/profile-admin-comment.ro.d.ts +8 -0
- package/dist/profile/profile-admin-comment.ro.js +37 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/profile.ro.js +4 -0
- package/dist/profile/update-current-base.dto.d.ts +1 -0
- package/dist/profile/update-current-base.dto.js +5 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/fine/query-user-fine.dto.d.ts +1 -0
- package/dist/user/fine/query-user-fine.dto.js +6 -0
- package/package.json +2 -2
|
@@ -20,6 +20,8 @@ export declare class AggregatorOrderRO extends RO {
|
|
|
20
20
|
date: string;
|
|
21
21
|
time: string;
|
|
22
22
|
price: number;
|
|
23
|
+
/** Количество игроков. Пусто у старых броней, где состав не передавали. */
|
|
24
|
+
players?: number;
|
|
23
25
|
status: AggregatorOrderStatusEnum;
|
|
24
26
|
questroomId?: number;
|
|
25
27
|
questroom?: QuestroomRO;
|
|
@@ -73,6 +73,10 @@ __decorate([
|
|
|
73
73
|
(0, class_transformer_1.Expose)(),
|
|
74
74
|
__metadata("design:type", Number)
|
|
75
75
|
], AggregatorOrderRO.prototype, "price", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], AggregatorOrderRO.prototype, "players", void 0);
|
|
76
80
|
__decorate([
|
|
77
81
|
(0, class_transformer_1.Expose)(),
|
|
78
82
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NavigatorBookingKindEnum } from './navigator-booking.enums';
|
|
2
|
+
export declare enum NavigatorBookingAuditEventEnum {
|
|
3
|
+
CREATED = "created",
|
|
4
|
+
UPDATED = "updated",
|
|
5
|
+
OUTCOME_REPORTED = "outcome_reported",
|
|
6
|
+
OUTCOME_RESOLVED = "outcome_resolved",
|
|
7
|
+
COMMISSION = "commission",
|
|
8
|
+
CALL = "call",
|
|
9
|
+
CRM_LOG = "crm_log"
|
|
10
|
+
}
|
|
11
|
+
export declare enum NavigatorBookingAuditActorEnum {
|
|
12
|
+
ADMIN = "admin",
|
|
13
|
+
QUEST = "quest",
|
|
14
|
+
SYSTEM = "system",
|
|
15
|
+
REFILL = "refill"
|
|
16
|
+
}
|
|
17
|
+
export type NavigatorBookingAuditChange = {
|
|
18
|
+
field: string;
|
|
19
|
+
from?: string | number | boolean | null;
|
|
20
|
+
to?: string | number | boolean | null;
|
|
21
|
+
};
|
|
22
|
+
export type NavigatorBookingAuditRO = {
|
|
23
|
+
id: string;
|
|
24
|
+
kind: NavigatorBookingKindEnum;
|
|
25
|
+
bookingId: number;
|
|
26
|
+
event: NavigatorBookingAuditEventEnum;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
actorKind: NavigatorBookingAuditActorEnum;
|
|
29
|
+
actorId: number | null;
|
|
30
|
+
actorName: string | null;
|
|
31
|
+
reason: string | null;
|
|
32
|
+
changes: NavigatorBookingAuditChange[];
|
|
33
|
+
metadata: {
|
|
34
|
+
amount?: number;
|
|
35
|
+
balanceBefore?: number;
|
|
36
|
+
balanceAfter?: number;
|
|
37
|
+
phone?: string;
|
|
38
|
+
duration?: number;
|
|
39
|
+
recordingUrl?: string | null;
|
|
40
|
+
callStatus?: string;
|
|
41
|
+
evidenceCallId?: number;
|
|
42
|
+
} | null;
|
|
43
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigatorBookingAuditActorEnum = exports.NavigatorBookingAuditEventEnum = void 0;
|
|
4
|
+
var NavigatorBookingAuditEventEnum;
|
|
5
|
+
(function (NavigatorBookingAuditEventEnum) {
|
|
6
|
+
NavigatorBookingAuditEventEnum["CREATED"] = "created";
|
|
7
|
+
NavigatorBookingAuditEventEnum["UPDATED"] = "updated";
|
|
8
|
+
NavigatorBookingAuditEventEnum["OUTCOME_REPORTED"] = "outcome_reported";
|
|
9
|
+
NavigatorBookingAuditEventEnum["OUTCOME_RESOLVED"] = "outcome_resolved";
|
|
10
|
+
NavigatorBookingAuditEventEnum["COMMISSION"] = "commission";
|
|
11
|
+
NavigatorBookingAuditEventEnum["CALL"] = "call";
|
|
12
|
+
NavigatorBookingAuditEventEnum["CRM_LOG"] = "crm_log";
|
|
13
|
+
})(NavigatorBookingAuditEventEnum || (exports.NavigatorBookingAuditEventEnum = NavigatorBookingAuditEventEnum = {}));
|
|
14
|
+
var NavigatorBookingAuditActorEnum;
|
|
15
|
+
(function (NavigatorBookingAuditActorEnum) {
|
|
16
|
+
NavigatorBookingAuditActorEnum["ADMIN"] = "admin";
|
|
17
|
+
NavigatorBookingAuditActorEnum["QUEST"] = "quest";
|
|
18
|
+
NavigatorBookingAuditActorEnum["SYSTEM"] = "system";
|
|
19
|
+
NavigatorBookingAuditActorEnum["REFILL"] = "refill";
|
|
20
|
+
})(NavigatorBookingAuditActorEnum || (exports.NavigatorBookingAuditActorEnum = NavigatorBookingAuditActorEnum = {}));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare enum NavigatorCommissionActStatusEnum {
|
|
2
2
|
DRAFT = "draft",
|
|
3
|
+
QUEUED = "queued",
|
|
4
|
+
FAILED = "failed",
|
|
3
5
|
FINALIZED = "finalized"
|
|
4
6
|
}
|
|
5
7
|
export type NavigatorCommissionActLine = {
|
|
@@ -12,6 +14,12 @@ export type NavigatorCommissionActLine = {
|
|
|
12
14
|
commission: number;
|
|
13
15
|
outcome: string;
|
|
14
16
|
};
|
|
17
|
+
export type NavigatorCommissionActCustomer = {
|
|
18
|
+
name: string;
|
|
19
|
+
inn: string;
|
|
20
|
+
kpp?: string;
|
|
21
|
+
address: string;
|
|
22
|
+
};
|
|
15
23
|
export type NavigatorCommissionActRO = {
|
|
16
24
|
id?: number;
|
|
17
25
|
number: string;
|
|
@@ -23,10 +31,15 @@ export type NavigatorCommissionActRO = {
|
|
|
23
31
|
lines: NavigatorCommissionActLine[];
|
|
24
32
|
unresolved: number;
|
|
25
33
|
pdfUrl: string | null;
|
|
34
|
+
invoicePdfUrl: string | null;
|
|
35
|
+
customer: NavigatorCommissionActCustomer | null;
|
|
36
|
+
missingRequisites: string[];
|
|
37
|
+
generationError: string | null;
|
|
38
|
+
queuedAt: string | null;
|
|
26
39
|
finalizedAt: string | null;
|
|
27
40
|
};
|
|
28
41
|
export type FinalizeNavigatorCommissionActsRO = {
|
|
29
|
-
|
|
42
|
+
queued: number;
|
|
30
43
|
skipped: number;
|
|
31
44
|
errors: Array<{
|
|
32
45
|
profileId: number;
|
|
@@ -4,5 +4,7 @@ exports.NavigatorCommissionActStatusEnum = void 0;
|
|
|
4
4
|
var NavigatorCommissionActStatusEnum;
|
|
5
5
|
(function (NavigatorCommissionActStatusEnum) {
|
|
6
6
|
NavigatorCommissionActStatusEnum["DRAFT"] = "draft";
|
|
7
|
+
NavigatorCommissionActStatusEnum["QUEUED"] = "queued";
|
|
8
|
+
NavigatorCommissionActStatusEnum["FAILED"] = "failed";
|
|
7
9
|
NavigatorCommissionActStatusEnum["FINALIZED"] = "finalized";
|
|
8
10
|
})(NavigatorCommissionActStatusEnum || (exports.NavigatorCommissionActStatusEnum = NavigatorCommissionActStatusEnum = {}));
|
|
@@ -19,7 +19,11 @@ const optionalInt = ({ value }) => {
|
|
|
19
19
|
const parsed = Number(value);
|
|
20
20
|
return Number.isInteger(parsed) ? parsed : value;
|
|
21
21
|
};
|
|
22
|
-
const optionalBoolean = ({ value }) => value === true || value === 'true'
|
|
22
|
+
const optionalBoolean = ({ value }) => value === true || value === 'true'
|
|
23
|
+
? true
|
|
24
|
+
: value === false || value === 'false'
|
|
25
|
+
? false
|
|
26
|
+
: value;
|
|
23
27
|
class QueryNavigatorBookingsDto {
|
|
24
28
|
constructor() {
|
|
25
29
|
this.page = 1;
|
|
@@ -11,12 +11,24 @@ export declare class BalanceInvoiceRO extends RO {
|
|
|
11
11
|
payerAddress: string;
|
|
12
12
|
paymentPurpose: string;
|
|
13
13
|
pdfUrl?: string;
|
|
14
|
+
/** Публичная страница счёта на orders-домене. */
|
|
15
|
+
publicUrl?: string;
|
|
14
16
|
paidAt?: Date;
|
|
15
17
|
profileId?: number;
|
|
16
18
|
profileTitle?: string;
|
|
17
19
|
/** Только ответ на выставление: ушло ли письмо со ссылкой на PDF. */
|
|
18
20
|
emailed?: boolean;
|
|
19
21
|
}
|
|
22
|
+
export declare class PublicBalanceInvoiceRO {
|
|
23
|
+
number: string;
|
|
24
|
+
/** Копейки. */
|
|
25
|
+
amount: number;
|
|
26
|
+
status: BalanceInvoiceStatusEnum;
|
|
27
|
+
payerName: string;
|
|
28
|
+
paymentPurpose: string;
|
|
29
|
+
issuedAt: Date;
|
|
30
|
+
paidAt?: Date;
|
|
31
|
+
}
|
|
20
32
|
export declare class BalancePayerRO {
|
|
21
33
|
payerName: string;
|
|
22
34
|
payerInn: string;
|
|
@@ -9,7 +9,7 @@ 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.BalancePayerRO = exports.BalanceInvoiceRO = void 0;
|
|
12
|
+
exports.BalancePayerRO = exports.PublicBalanceInvoiceRO = exports.BalanceInvoiceRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const ro_class_1 = require("../shared/ro-class");
|
|
15
15
|
const balance_invoice_status_enum_1 = require("./balance-invoice-status.enum");
|
|
@@ -52,6 +52,10 @@ __decorate([
|
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], BalanceInvoiceRO.prototype, "pdfUrl", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], BalanceInvoiceRO.prototype, "publicUrl", void 0);
|
|
55
59
|
__decorate([
|
|
56
60
|
(0, class_transformer_1.Expose)(),
|
|
57
61
|
__metadata("design:type", Date)
|
|
@@ -68,6 +72,37 @@ __decorate([
|
|
|
68
72
|
(0, class_transformer_1.Expose)(),
|
|
69
73
|
__metadata("design:type", Boolean)
|
|
70
74
|
], BalanceInvoiceRO.prototype, "emailed", void 0);
|
|
75
|
+
class PublicBalanceInvoiceRO {
|
|
76
|
+
}
|
|
77
|
+
exports.PublicBalanceInvoiceRO = PublicBalanceInvoiceRO;
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PublicBalanceInvoiceRO.prototype, "number", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], PublicBalanceInvoiceRO.prototype, "amount", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_transformer_1.Expose)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PublicBalanceInvoiceRO.prototype, "status", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], PublicBalanceInvoiceRO.prototype, "payerName", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_transformer_1.Expose)(),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], PublicBalanceInvoiceRO.prototype, "paymentPurpose", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], PublicBalanceInvoiceRO.prototype, "issuedAt", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
__metadata("design:type", Date)
|
|
105
|
+
], PublicBalanceInvoiceRO.prototype, "paidAt", void 0);
|
|
71
106
|
class BalancePayerRO {
|
|
72
107
|
}
|
|
73
108
|
exports.BalancePayerRO = BalancePayerRO;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ProfileAdminCommentRO } from '../profile/profile-admin-comment.ro';
|
|
2
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
|
+
export declare class ProfileDebtRO {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
country: CountriesEnum;
|
|
7
|
+
balance: number;
|
|
8
|
+
mainEmail: string | null;
|
|
9
|
+
phoneForCustomers: string | null;
|
|
10
|
+
lastCreditAt: Date | null;
|
|
11
|
+
lastDebitAt: Date | null;
|
|
12
|
+
lastComment: ProfileAdminCommentRO | null;
|
|
13
|
+
}
|
|
14
|
+
export type ProfileDebtStatsRO = {
|
|
15
|
+
companiesCount: number;
|
|
16
|
+
totalDebt: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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.ProfileDebtRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const profile_admin_comment_ro_1 = require("../profile/profile-admin-comment.ro");
|
|
15
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
+
class ProfileDebtRO {
|
|
17
|
+
}
|
|
18
|
+
exports.ProfileDebtRO = ProfileDebtRO;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], ProfileDebtRO.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ProfileDebtRO.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ProfileDebtRO.prototype, "country", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], ProfileDebtRO.prototype, "balance", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ProfileDebtRO.prototype, "mainEmail", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ProfileDebtRO.prototype, "phoneForCustomers", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], ProfileDebtRO.prototype, "lastCreditAt", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], ProfileDebtRO.prototype, "lastDebitAt", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_transformer_1.Type)(() => profile_admin_comment_ro_1.ProfileAdminCommentRO),
|
|
54
|
+
__metadata("design:type", profile_admin_comment_ro_1.ProfileAdminCommentRO)
|
|
55
|
+
], ProfileDebtRO.prototype, "lastComment", void 0);
|
|
@@ -49,7 +49,9 @@ export declare class AdminProfileRO {
|
|
|
49
49
|
title: string;
|
|
50
50
|
timeZone: string;
|
|
51
51
|
legalTitle: string;
|
|
52
|
+
legalAddress: string;
|
|
52
53
|
legalTaxId: string;
|
|
54
|
+
legalKpp: string;
|
|
53
55
|
tax: number;
|
|
54
56
|
taxIncluded: boolean;
|
|
55
57
|
ogrn: string;
|
|
@@ -74,6 +76,7 @@ export declare class AdminProfileRO {
|
|
|
74
76
|
locationsCount: number;
|
|
75
77
|
questroomsCount: number;
|
|
76
78
|
questroomsDeletedCount: number;
|
|
79
|
+
balance: number;
|
|
77
80
|
lastVisit: Date;
|
|
78
81
|
crm: string;
|
|
79
82
|
actions: ProfileActionRO[];
|
|
@@ -157,10 +157,18 @@ __decorate([
|
|
|
157
157
|
(0, class_transformer_1.Expose)(),
|
|
158
158
|
__metadata("design:type", String)
|
|
159
159
|
], AdminProfileRO.prototype, "legalTitle", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_transformer_1.Expose)(),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], AdminProfileRO.prototype, "legalAddress", void 0);
|
|
160
164
|
__decorate([
|
|
161
165
|
(0, class_transformer_1.Expose)(),
|
|
162
166
|
__metadata("design:type", String)
|
|
163
167
|
], AdminProfileRO.prototype, "legalTaxId", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, class_transformer_1.Expose)(),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], AdminProfileRO.prototype, "legalKpp", void 0);
|
|
164
172
|
__decorate([
|
|
165
173
|
(0, class_transformer_1.Expose)(),
|
|
166
174
|
__metadata("design:type", Number)
|
|
@@ -255,6 +263,10 @@ __decorate([
|
|
|
255
263
|
(0, class_transformer_1.Expose)(),
|
|
256
264
|
__metadata("design:type", Number)
|
|
257
265
|
], AdminProfileRO.prototype, "questroomsDeletedCount", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, class_transformer_1.Expose)(),
|
|
268
|
+
__metadata("design:type", Number)
|
|
269
|
+
], AdminProfileRO.prototype, "balance", void 0);
|
|
258
270
|
__decorate([
|
|
259
271
|
(0, class_transformer_1.Expose)(),
|
|
260
272
|
__metadata("design:type", Date)
|
|
@@ -0,0 +1,24 @@
|
|
|
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.CreateProfileAdminCommentDto = 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 CreateProfileAdminCommentDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateProfileAdminCommentDto = CreateProfileAdminCommentDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_validator_1.MaxLength)(4000),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateProfileAdminCommentDto.prototype, "body", void 0);
|
|
@@ -29,8 +29,10 @@ export declare class CreateProfileDto {
|
|
|
29
29
|
secondaryEmails: string[];
|
|
30
30
|
tags: ProfileTagEnum[];
|
|
31
31
|
legalTitle: string;
|
|
32
|
+
legalAddress: string;
|
|
32
33
|
loyalty: ProfileLoyaltyEnum;
|
|
33
34
|
legalTaxId: string;
|
|
35
|
+
legalKpp: string;
|
|
34
36
|
tax: number;
|
|
35
37
|
taxIncluded: boolean;
|
|
36
38
|
ogrn: string;
|
|
@@ -122,6 +122,12 @@ __decorate([
|
|
|
122
122
|
(0, class_transformer_1.Expose)(),
|
|
123
123
|
__metadata("design:type", String)
|
|
124
124
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
(0, class_validator_1.IsString)(),
|
|
128
|
+
(0, class_transformer_1.Expose)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], CreateProfileDto.prototype, "legalAddress", void 0);
|
|
125
131
|
__decorate([
|
|
126
132
|
(0, class_validator_1.IsOptional)(),
|
|
127
133
|
(0, class_transformer_1.Expose)(),
|
|
@@ -132,6 +138,11 @@ __decorate([
|
|
|
132
138
|
(0, class_transformer_1.Expose)(),
|
|
133
139
|
__metadata("design:type", String)
|
|
134
140
|
], CreateProfileDto.prototype, "legalTaxId", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
(0, class_transformer_1.Expose)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], CreateProfileDto.prototype, "legalKpp", void 0);
|
|
135
146
|
__decorate([
|
|
136
147
|
(0, class_validator_1.IsOptional)(),
|
|
137
148
|
(0, class_transformer_1.Expose)(),
|
|
@@ -0,0 +1,37 @@
|
|
|
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.ProfileAdminCommentRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
class ProfileAdminCommentRO extends ro_class_1.RO {
|
|
16
|
+
}
|
|
17
|
+
exports.ProfileAdminCommentRO = ProfileAdminCommentRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ProfileAdminCommentRO.prototype, "profileId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ProfileAdminCommentRO.prototype, "adminId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ProfileAdminCommentRO.prototype, "adminName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ProfileAdminCommentRO.prototype, "adminEmail", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ProfileAdminCommentRO.prototype, "body", void 0);
|
|
@@ -46,6 +46,7 @@ export declare class ProfileRO {
|
|
|
46
46
|
legalTitle: string;
|
|
47
47
|
legalAddress?: string;
|
|
48
48
|
legalTaxId?: string;
|
|
49
|
+
legalKpp?: string;
|
|
49
50
|
/** ОГРН/ОГРНИП — для RU-юрлиц. Используется как плейсхолдер `{{ogrn}}`
|
|
50
51
|
* в TEMPLATE-документах при генерации клиентского соглашения. */
|
|
51
52
|
ogrn?: string;
|
|
@@ -148,6 +148,10 @@ __decorate([
|
|
|
148
148
|
(0, class_transformer_1.Expose)(),
|
|
149
149
|
__metadata("design:type", String)
|
|
150
150
|
], ProfileRO.prototype, "legalTaxId", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_transformer_1.Expose)(),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], ProfileRO.prototype, "legalKpp", void 0);
|
|
151
155
|
__decorate([
|
|
152
156
|
(0, class_transformer_1.Expose)(),
|
|
153
157
|
__metadata("design:type", String)
|
|
@@ -37,6 +37,11 @@ __decorate([
|
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], UpdateCurrentBaseDto.prototype, "legalTaxId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpdateCurrentBaseDto.prototype, "legalKpp", void 0);
|
|
40
45
|
__decorate([
|
|
41
46
|
(0, class_validator_1.IsOptional)(),
|
|
42
47
|
(0, class_transformer_1.Expose)(),
|