@escapenavigator/types 2.1.25 → 2.1.26

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.
@@ -12,6 +12,12 @@ export type NavigatorCommissionActLine = {
12
12
  commission: number;
13
13
  outcome: string;
14
14
  };
15
+ export type NavigatorCommissionActCustomer = {
16
+ name: string;
17
+ inn: string;
18
+ kpp?: string;
19
+ address: string;
20
+ };
15
21
  export type NavigatorCommissionActRO = {
16
22
  id?: number;
17
23
  number: string;
@@ -23,6 +29,9 @@ export type NavigatorCommissionActRO = {
23
29
  lines: NavigatorCommissionActLine[];
24
30
  unresolved: number;
25
31
  pdfUrl: string | null;
32
+ invoicePdfUrl: string | null;
33
+ customer: NavigatorCommissionActCustomer | null;
34
+ missingRequisites: string[];
26
35
  finalizedAt: string | null;
27
36
  };
28
37
  export type FinalizeNavigatorCommissionActsRO = {
@@ -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' ? true : value === false || value === 'false' ? false : value;
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;
@@ -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;
@@ -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)
@@ -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)(),
@@ -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)
@@ -4,6 +4,7 @@ export declare class UpdateCurrentBaseDto {
4
4
  legalTitle: string;
5
5
  legalAddress?: string;
6
6
  legalTaxId?: string;
7
+ legalKpp?: string;
7
8
  ogrn?: string;
8
9
  legalManagingDirector?: string;
9
10
  tax?: number;
@@ -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)(),