tickera-angular-components 0.0.1-dev.17 → 0.0.1-dev.171
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/fesm2022/tickera-angular-components.mjs +8500 -3019
- package/fesm2022/tickera-angular-components.mjs.map +1 -1
- package/i18n/en.json +128 -3
- package/i18n/es.json +128 -3
- package/index.d.ts +2372 -424
- package/package.json +5 -2
- package/tickera.styles.css +1 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, EnvironmentProviders, WritableSignal, EventEmitter,
|
|
2
|
+
import { InjectionToken, EnvironmentProviders, WritableSignal, Signal, EventEmitter, OnChanges, OnDestroy, SimpleChanges, Injector, Type, ElementRef, OnInit, AfterViewInit } from '@angular/core';
|
|
3
|
+
export { TippyDirective } from '@ngneat/helipopper';
|
|
4
|
+
export * from '@ngneat/helipopper/config';
|
|
3
5
|
import { TranslocoLoader, TranslocoService } from '@jsverse/transloco';
|
|
4
6
|
import * as rxjs from 'rxjs';
|
|
5
7
|
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
+
import { ShapeConfig, Shape } from 'konva/lib/Shape';
|
|
9
|
+
import { Context } from 'konva/lib/Context';
|
|
10
|
+
import { ValidatorFn, FormGroup, FormBuilder, ControlValueAccessor, NgControl, Validator, AbstractControl, ValidationErrors, FormControl } from '@angular/forms';
|
|
11
|
+
import { HttpClient, HttpErrorResponse, HttpInterceptorFn } from '@angular/common/http';
|
|
12
|
+
import { Stage } from 'konva/lib/Stage';
|
|
13
|
+
import * as tickera_angular_components from 'tickera-angular-components';
|
|
8
14
|
import { Toolbar, Editor } from 'ngx-editor';
|
|
9
|
-
import { Router } from '@angular/router';
|
|
15
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
16
|
+
import { StageComponent } from 'ng2-konva';
|
|
10
17
|
|
|
11
18
|
interface TickeraComponentsConfig {
|
|
12
19
|
apiUrl: string;
|
|
@@ -14,6 +21,7 @@ interface TickeraComponentsConfig {
|
|
|
14
21
|
defaultLang?: string;
|
|
15
22
|
availableLangs?: string[];
|
|
16
23
|
}
|
|
24
|
+
|
|
17
25
|
declare const TICKERA_COMPONENTS_CONFIG: InjectionToken<TickeraComponentsConfig>;
|
|
18
26
|
declare function provideTickeraComponents(config: TickeraComponentsConfig): EnvironmentProviders;
|
|
19
27
|
|
|
@@ -33,15 +41,6 @@ declare const ALERT_ICONS: {
|
|
|
33
41
|
info: string;
|
|
34
42
|
};
|
|
35
43
|
|
|
36
|
-
declare const BUTTON_VARIANT_CLASSES: Record<string, string>;
|
|
37
|
-
declare const BASE_BUTTON_CLASSES = "btn";
|
|
38
|
-
declare const BUTTON_SIZES_CLASSES: Record<string, string>;
|
|
39
|
-
|
|
40
|
-
declare const FORM_ERROR_MESSAGES: Record<string, string>;
|
|
41
|
-
|
|
42
|
-
declare const BASE_INPUT_CLASSES: string;
|
|
43
|
-
declare const ERROR_INPUT_CLASSES: string;
|
|
44
|
-
|
|
45
44
|
declare const ADMIN_API_ROUTES: {
|
|
46
45
|
FIND_ALL: string;
|
|
47
46
|
CREATE: string;
|
|
@@ -49,6 +48,13 @@ declare const ADMIN_API_ROUTES: {
|
|
|
49
48
|
deleteOne: (id: number) => string;
|
|
50
49
|
};
|
|
51
50
|
|
|
51
|
+
declare const ADMISSION_API_ROUTES: {
|
|
52
|
+
join: (performanceId: number) => string;
|
|
53
|
+
leave: (performanceId: number) => string;
|
|
54
|
+
status: (performanceId: number) => string;
|
|
55
|
+
events: (performanceId: number) => string;
|
|
56
|
+
};
|
|
57
|
+
|
|
52
58
|
declare const CITY_API_ENDPOINTS: {
|
|
53
59
|
findAll: string;
|
|
54
60
|
create: string;
|
|
@@ -65,10 +71,10 @@ declare const COUNTRY_API_ENDPOINTS: {
|
|
|
65
71
|
delete: (id: number) => string;
|
|
66
72
|
};
|
|
67
73
|
|
|
68
|
-
declare const
|
|
74
|
+
declare const CUSTOMERS_API_ROUTES: {
|
|
69
75
|
findAll: string;
|
|
70
76
|
create: string;
|
|
71
|
-
|
|
77
|
+
findOne: (id: number) => string;
|
|
72
78
|
update: (id: number) => string;
|
|
73
79
|
delete: (id: number) => string;
|
|
74
80
|
};
|
|
@@ -79,6 +85,7 @@ declare const PERFORMANCES_API_ROUTES: {
|
|
|
79
85
|
createBulk: string;
|
|
80
86
|
findOneById: (id: number) => string;
|
|
81
87
|
findOneBookingData: (id: number) => string;
|
|
88
|
+
findOneBookingDataAdmin: (id: number) => string;
|
|
82
89
|
update: (id: number) => string;
|
|
83
90
|
delete: (id: number) => string;
|
|
84
91
|
deleteMany: string;
|
|
@@ -88,6 +95,43 @@ declare const PERFORMANCES_API_ROUTES: {
|
|
|
88
95
|
ticketQrToken: (uuid: string) => string;
|
|
89
96
|
getAvailableDays: string;
|
|
90
97
|
publicAvailablePerformances: string;
|
|
98
|
+
seatEventsTicket: (id: number) => string;
|
|
99
|
+
seatEventsTicketAdmin: (id: number) => string;
|
|
100
|
+
seatEvents: (id: number) => string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare const PRICE_ZONES_API_ROUTES: {
|
|
104
|
+
FIND_ALL: string;
|
|
105
|
+
CREATE: string;
|
|
106
|
+
findOneById: (id: number) => string;
|
|
107
|
+
update: (id: number) => string;
|
|
108
|
+
delete: (id: number) => string;
|
|
109
|
+
updateElements: (id: number) => string;
|
|
110
|
+
duplicate: (id: number) => string;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare const PRODUCT_CATEGORIES_API_ROUTES: {
|
|
114
|
+
FIND_ALL: string;
|
|
115
|
+
CREATE: string;
|
|
116
|
+
findById: (id: number) => string;
|
|
117
|
+
update: (id: number) => string;
|
|
118
|
+
delete: (id: number) => string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare const PRODUCT_TAGS_API_ROUTES: {
|
|
122
|
+
FIND_ALL: string;
|
|
123
|
+
CREATE: string;
|
|
124
|
+
findById: (id: number) => string;
|
|
125
|
+
update: (id: number) => string;
|
|
126
|
+
delete: (id: number) => string;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
declare const PRODUCT_TYPES_API_ROUTES: {
|
|
130
|
+
FIND_ALL: string;
|
|
131
|
+
CREATE: string;
|
|
132
|
+
findById: (id: number) => string;
|
|
133
|
+
update: (id: number) => string;
|
|
134
|
+
delete: (id: number) => string;
|
|
91
135
|
};
|
|
92
136
|
|
|
93
137
|
declare const PRODUCTS_API_ROUTES: {
|
|
@@ -96,6 +140,9 @@ declare const PRODUCTS_API_ROUTES: {
|
|
|
96
140
|
findOneById: (id: number) => string;
|
|
97
141
|
update: (id: number) => string;
|
|
98
142
|
delete: (id: number) => string;
|
|
143
|
+
fetchImages: (id: number) => string;
|
|
144
|
+
uploadImages: (id: number) => string;
|
|
145
|
+
deleteOneImage: (productId: number, imageId: number) => string;
|
|
99
146
|
};
|
|
100
147
|
|
|
101
148
|
declare const SHOWS_API_ROUTES: {
|
|
@@ -110,22 +157,12 @@ declare const SHOWS_API_ROUTES: {
|
|
|
110
157
|
publicAvailablePerformances: string;
|
|
111
158
|
};
|
|
112
159
|
|
|
113
|
-
declare const
|
|
160
|
+
declare const STATE_API_ENDPOINTS: {
|
|
114
161
|
findAll: string;
|
|
115
162
|
create: string;
|
|
116
|
-
|
|
117
|
-
update: (id: number) => string;
|
|
118
|
-
delete: (id: number) => string;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
declare const PRICE_ZONES_API_ROUTES: {
|
|
122
|
-
FIND_ALL: string;
|
|
123
|
-
CREATE: string;
|
|
124
|
-
findOneById: (id: number) => string;
|
|
163
|
+
findById: (id: number) => string;
|
|
125
164
|
update: (id: number) => string;
|
|
126
165
|
delete: (id: number) => string;
|
|
127
|
-
updateElements: (id: number) => string;
|
|
128
|
-
duplicate: (id: number) => string;
|
|
129
166
|
};
|
|
130
167
|
|
|
131
168
|
declare const VENUES_API_ROUTES: {
|
|
@@ -139,169 +176,36 @@ declare const VENUES_API_ROUTES: {
|
|
|
139
176
|
deleteOneImage: (venueId: number, imageId: number) => string;
|
|
140
177
|
};
|
|
141
178
|
|
|
142
|
-
declare
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
MEMBERSHIP_TYPE = "MEMBERSHIP_TYPE",
|
|
155
|
-
SHOWS = "SHOWS",
|
|
156
|
-
PERFORMANCES = "PERFORMANCES"
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
declare enum CouponDiscountType {
|
|
160
|
-
PERCENTAGE = "PERCENTAGE",
|
|
161
|
-
FIXED = "FIXED"
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
declare enum CouponStatus {
|
|
165
|
-
ACTIVE = "ACTIVE",
|
|
166
|
-
INACTIVE = "INACTIVE",
|
|
167
|
-
EXPIRED = "EXPIRED",
|
|
168
|
-
CONSUMED = "CONSUMED"
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
declare enum CorporateBondStatus {
|
|
172
|
-
ACTIVE = "ACTIVE",
|
|
173
|
-
INACTIVE = "INACTIVE",
|
|
174
|
-
EXPIRED = "EXPIRED"
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
declare enum PerformanceStatus {
|
|
178
|
-
ACTIVE = "active",
|
|
179
|
-
CANCELLED = "cancelled",
|
|
180
|
-
FINISHED = "finished",
|
|
181
|
-
POSTPONED = "postponed"
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
declare enum PerformanceTicketStatus {
|
|
185
|
-
AVAILABLE = "available",
|
|
186
|
-
RESERVED = "reserved",
|
|
187
|
-
SOLD = "sold",
|
|
188
|
-
BLOCKED = "blocked"
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
declare enum RoomMapElementOrientation {
|
|
192
|
-
TOP = "top",
|
|
193
|
-
RIGHT = "right",
|
|
194
|
-
BOTTOM = "bottom",
|
|
195
|
-
LEFT = "left",
|
|
196
|
-
CENTER = "center"
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
declare enum RoomMapElementType {
|
|
200
|
-
SEAT_BLOCK = "seat_block",
|
|
201
|
-
TABLE = "table",
|
|
202
|
-
ZONE = "zone",
|
|
203
|
-
EXIT = "exit",
|
|
204
|
-
STAGE = "stage",
|
|
205
|
-
PRODUCTION_AREA = "production_area",
|
|
206
|
-
UNAVAILABLE_SPACE = "unavailable_space",
|
|
207
|
-
STAIR = "stair",
|
|
208
|
-
HALLWAY = "hallway"
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
declare enum GiftBondStatus {
|
|
212
|
-
ACTIVE = "ACTIVE",
|
|
213
|
-
REDEEMED = "REDEEMED",
|
|
214
|
-
EXPIRED = "EXPIRED",
|
|
215
|
-
INACTIVE = "INACTIVE"
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
declare enum OrderItemType {
|
|
219
|
-
TICKET = "TICKET",
|
|
220
|
-
PRODUCT = "PRODUCT"
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
declare enum OrderStatus {
|
|
224
|
-
ON_HOLD = "on-hold",
|
|
225
|
-
PENDING_PAYMENT = "pending-payment",
|
|
226
|
-
PROCESSING = "processing",
|
|
227
|
-
COMPLETED = "completed",
|
|
228
|
-
FAILED = "failed",
|
|
229
|
-
CANCELLED = "cancelled",
|
|
230
|
-
REFUNDED = "refunded"
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface RoomMapPosition {
|
|
234
|
-
x: number;
|
|
235
|
-
y: number;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
interface RoomMapSize {
|
|
239
|
-
width: number;
|
|
240
|
-
height: number;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
interface RoomMapBaseElement {
|
|
244
|
-
id: string;
|
|
245
|
-
type: RoomMapElementType;
|
|
246
|
-
position: RoomMapPosition;
|
|
247
|
-
size: RoomMapSize;
|
|
248
|
-
rotation: number;
|
|
249
|
-
name?: string;
|
|
250
|
-
isLocked: boolean;
|
|
251
|
-
isVisible: boolean;
|
|
252
|
-
zIndex: number;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
interface RoomMapExitElement extends RoomMapBaseElement {
|
|
256
|
-
type: RoomMapElementType.EXIT;
|
|
257
|
-
exitName?: string;
|
|
258
|
-
exitType: 'emergency' | 'regular';
|
|
259
|
-
width: number;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
interface RoomMapProductionAreaElement extends RoomMapBaseElement {
|
|
263
|
-
type: RoomMapElementType.PRODUCTION_AREA;
|
|
264
|
-
areaName?: string;
|
|
265
|
-
areaType: 'lighting' | 'sound' | 'backstage' | 'orchestra' | 'custom';
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
interface RoomMapSeatElement extends RoomMapBaseElement {
|
|
269
|
-
type: RoomMapElementType.SEAT_BLOCK;
|
|
270
|
-
seatNumber?: string;
|
|
271
|
-
isAvailable: boolean;
|
|
272
|
-
priceCategory?: string;
|
|
273
|
-
}
|
|
179
|
+
declare const VIP_CARDS_API_ROUTES: {
|
|
180
|
+
findAll: string;
|
|
181
|
+
findOne: (id: number) => string;
|
|
182
|
+
activateAdmin: string;
|
|
183
|
+
rechargeAdmin: (id: number) => string;
|
|
184
|
+
updateStatus: (id: number) => string;
|
|
185
|
+
updateTerms: (id: number) => string;
|
|
186
|
+
transactions: (id: number) => string;
|
|
187
|
+
findMy: string;
|
|
188
|
+
activate: string;
|
|
189
|
+
recharge: string;
|
|
190
|
+
};
|
|
274
191
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
orientation: RoomMapElementOrientation;
|
|
279
|
-
isMainStage: boolean;
|
|
280
|
-
}
|
|
192
|
+
declare const BUTTON_VARIANT_CLASSES: Record<string, string>;
|
|
193
|
+
declare const BASE_BUTTON_CLASSES = "btn";
|
|
194
|
+
declare const BUTTON_SIZES_CLASSES: Record<string, string>;
|
|
281
195
|
|
|
282
|
-
|
|
283
|
-
type: RoomMapElementType.TABLE;
|
|
284
|
-
tableNumber?: string;
|
|
285
|
-
capacity: number;
|
|
286
|
-
shape: 'round' | 'rectangular' | 'square';
|
|
287
|
-
}
|
|
196
|
+
declare const FORM_ERROR_MESSAGES: Record<string, string>;
|
|
288
197
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
reason?: string;
|
|
292
|
-
}
|
|
198
|
+
declare const BASE_INPUT_CLASSES: string;
|
|
199
|
+
declare const ERROR_INPUT_CLASSES: string;
|
|
293
200
|
|
|
294
|
-
interface
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
color: string;
|
|
299
|
-
capacity?: number;
|
|
201
|
+
interface PhoneCountry {
|
|
202
|
+
name: string;
|
|
203
|
+
isoCode: string;
|
|
204
|
+
dialCode: string;
|
|
300
205
|
}
|
|
301
206
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
type RoomMapSeatDisplayState = 'normal' | 'accessible' | 'non_existent';
|
|
207
|
+
declare function phoneCountryFlag(isoCode: string): string;
|
|
208
|
+
declare const PHONE_COUNTRIES: PhoneCountry[];
|
|
305
209
|
|
|
306
210
|
interface SelectOption {
|
|
307
211
|
value: any;
|
|
@@ -309,7 +213,7 @@ interface SelectOption {
|
|
|
309
213
|
disabled?: boolean;
|
|
310
214
|
}
|
|
311
215
|
|
|
312
|
-
interface Admin {
|
|
216
|
+
interface Admin extends Auditable {
|
|
313
217
|
id: number;
|
|
314
218
|
username: string;
|
|
315
219
|
email: string;
|
|
@@ -325,16 +229,17 @@ interface Admin {
|
|
|
325
229
|
reset_password_expires: Date;
|
|
326
230
|
email_verified_at: Date;
|
|
327
231
|
last_login: Date;
|
|
328
|
-
created_at: Date;
|
|
329
|
-
updated_at: Date;
|
|
330
|
-
deleted_at: Date;
|
|
331
232
|
}
|
|
332
233
|
|
|
333
234
|
interface Auditable {
|
|
334
235
|
created_at: Date;
|
|
335
236
|
updated_at: Date;
|
|
237
|
+
deleted_at?: Date | null;
|
|
336
238
|
is_published?: boolean;
|
|
337
239
|
published_at?: Date;
|
|
240
|
+
published_by?: number;
|
|
241
|
+
deleted_by?: number;
|
|
242
|
+
deleted_by_admin?: Admin;
|
|
338
243
|
created_by_admin?: Admin;
|
|
339
244
|
updated_by_admin?: Admin;
|
|
340
245
|
published_by_admin?: Admin;
|
|
@@ -367,30 +272,21 @@ interface DeleteConfirmationOpen {
|
|
|
367
272
|
confirmationText: string;
|
|
368
273
|
}
|
|
369
274
|
|
|
370
|
-
interface AdminsResponse {
|
|
371
|
-
statusCode: number;
|
|
372
|
-
data: {
|
|
373
|
-
admins: Admin[];
|
|
374
|
-
total: number;
|
|
375
|
-
};
|
|
376
|
-
message: string;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
275
|
interface Country {
|
|
380
|
-
id:
|
|
276
|
+
id: number;
|
|
381
277
|
name: string;
|
|
382
278
|
iso2: string;
|
|
383
279
|
}
|
|
384
280
|
|
|
385
281
|
interface State {
|
|
386
|
-
id:
|
|
282
|
+
id: number;
|
|
387
283
|
name: string;
|
|
388
284
|
country_id: number;
|
|
389
285
|
country?: Country;
|
|
390
286
|
}
|
|
391
287
|
|
|
392
288
|
interface City {
|
|
393
|
-
id:
|
|
289
|
+
id: number;
|
|
394
290
|
name: string;
|
|
395
291
|
search_text: string | null;
|
|
396
292
|
state_id: number;
|
|
@@ -429,37 +325,43 @@ interface Venue extends Auditable {
|
|
|
429
325
|
images: VenueImage[];
|
|
430
326
|
}
|
|
431
327
|
|
|
432
|
-
interface HallFloor {
|
|
328
|
+
interface HallFloor extends Auditable {
|
|
433
329
|
id: number;
|
|
434
330
|
name: string;
|
|
435
331
|
level: number;
|
|
436
332
|
max_capacity: number;
|
|
437
333
|
description: string;
|
|
438
334
|
hall_id: number;
|
|
439
|
-
created_at: Date;
|
|
440
|
-
updated_at: Date;
|
|
441
|
-
deleted_at: Date | null;
|
|
442
335
|
}
|
|
443
336
|
|
|
444
|
-
interface Hall {
|
|
337
|
+
interface Hall extends Auditable {
|
|
445
338
|
id: number;
|
|
446
339
|
name: string;
|
|
447
340
|
venue_id: number;
|
|
448
341
|
venue?: Venue;
|
|
449
342
|
hall_floors?: HallFloor[];
|
|
450
|
-
created_at: Date;
|
|
451
|
-
updated_at: Date;
|
|
452
|
-
deleted_at: Date | null;
|
|
453
343
|
}
|
|
454
344
|
|
|
455
|
-
interface
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
345
|
+
interface BreadcrumbStep {
|
|
346
|
+
label: string;
|
|
347
|
+
href?: string;
|
|
348
|
+
icon?: string;
|
|
459
349
|
}
|
|
460
350
|
|
|
461
|
-
interface
|
|
462
|
-
|
|
351
|
+
interface CommonFetchAllParams {
|
|
352
|
+
id?: number;
|
|
353
|
+
page?: number;
|
|
354
|
+
limit?: number;
|
|
355
|
+
search?: string;
|
|
356
|
+
sort_by?: string;
|
|
357
|
+
sort_order?: 'ASC' | 'DESC';
|
|
358
|
+
is_published?: boolean;
|
|
359
|
+
ids_in?: number[];
|
|
360
|
+
ids_not_in?: number[];
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
interface CountriesResponse {
|
|
364
|
+
data: {
|
|
463
365
|
countries: Country[];
|
|
464
366
|
total: number;
|
|
465
367
|
};
|
|
@@ -467,6 +369,21 @@ interface CountriesResponse {
|
|
|
467
369
|
status: string;
|
|
468
370
|
}
|
|
469
371
|
|
|
372
|
+
interface CountryResponse {
|
|
373
|
+
data: Country;
|
|
374
|
+
message: string;
|
|
375
|
+
status: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface FetchCountriesParams extends CommonFetchAllParams {
|
|
379
|
+
sort_by?: 'country.id' | 'country.name' | 'country.iso2' | 'country.created_at' | 'country.updated_at';
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
interface FetchStatesParams extends CommonFetchAllParams {
|
|
383
|
+
country_id?: number;
|
|
384
|
+
sort_by?: 'state.id' | 'state.name' | 'state.country_id' | 'state.search_text' | 'state.created_at' | 'state.updated_at';
|
|
385
|
+
}
|
|
386
|
+
|
|
470
387
|
interface StateResponse {
|
|
471
388
|
data: State;
|
|
472
389
|
message: string;
|
|
@@ -482,28 +399,40 @@ interface StatesResponse {
|
|
|
482
399
|
statusCode: number;
|
|
483
400
|
}
|
|
484
401
|
|
|
402
|
+
interface CitiesResponse {
|
|
403
|
+
data: {
|
|
404
|
+
cities: City[];
|
|
405
|
+
total: number;
|
|
406
|
+
};
|
|
407
|
+
message: string;
|
|
408
|
+
status: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
485
411
|
interface CityResponse {
|
|
486
412
|
data: City;
|
|
487
413
|
message: string;
|
|
488
414
|
status: string;
|
|
489
415
|
}
|
|
490
416
|
|
|
491
|
-
interface
|
|
417
|
+
interface FetchCitiesParams extends CommonFetchAllParams {
|
|
418
|
+
state_id?: number;
|
|
419
|
+
sort_by?: 'city.id' | 'city.name' | 'city.state_id' | 'city.search_text' | 'city.created_at' | 'city.updated_at';
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
interface AdminsResponse {
|
|
423
|
+
statusCode: number;
|
|
492
424
|
data: {
|
|
493
|
-
|
|
425
|
+
admins: Admin[];
|
|
494
426
|
total: number;
|
|
495
427
|
};
|
|
496
428
|
message: string;
|
|
497
|
-
status: string;
|
|
498
429
|
}
|
|
499
430
|
|
|
500
|
-
interface
|
|
501
|
-
|
|
502
|
-
page?: number;
|
|
503
|
-
search?: string;
|
|
431
|
+
interface FetchAdminsParams extends CommonFetchAllParams {
|
|
432
|
+
sort_by?: 'admin.id' | 'admin.username' | 'admin.email' | 'admin.mobile' | 'admin.first_name' | 'admin.last_name' | 'admin.full_name' | 'admin.principal_role' | 'admin.email_verified_at' | 'admin.last_login' | 'admin.created_at' | 'admin.updated_at';
|
|
504
433
|
}
|
|
505
434
|
|
|
506
|
-
interface Customer {
|
|
435
|
+
interface Customer extends Auditable {
|
|
507
436
|
username: string;
|
|
508
437
|
email: string;
|
|
509
438
|
mobile: string;
|
|
@@ -534,9 +463,6 @@ interface Customer {
|
|
|
534
463
|
membership_expires_at: Date | null;
|
|
535
464
|
id: number;
|
|
536
465
|
is_active: boolean;
|
|
537
|
-
created_at: Date;
|
|
538
|
-
updated_at: Date;
|
|
539
|
-
deleted_at: Date | null;
|
|
540
466
|
}
|
|
541
467
|
|
|
542
468
|
interface CustomerResponse {
|
|
@@ -554,76 +480,363 @@ interface CustomersResponse {
|
|
|
554
480
|
message: string;
|
|
555
481
|
}
|
|
556
482
|
|
|
557
|
-
|
|
483
|
+
interface FetchCustomersParams extends CommonFetchAllParams {
|
|
484
|
+
first_name?: string;
|
|
485
|
+
last_name?: string;
|
|
486
|
+
email?: string;
|
|
487
|
+
username?: string;
|
|
488
|
+
mobile?: string;
|
|
489
|
+
document_type?: Customer['document_type'];
|
|
490
|
+
document_number?: string;
|
|
491
|
+
address?: string;
|
|
492
|
+
sort_by?: 'customer.id' | 'customer.email' | 'customer.mobile' | 'customer.first_name' | 'customer.last_name' | 'customer.birthday_date' | 'customer.document_type' | 'customer.document_number' | 'customer.address' | 'customer.postal_code' | 'customer.country_id' | 'customer.city_id' | 'customer.state_id' | 'customer.phone' | 'customer.created_at';
|
|
493
|
+
}
|
|
558
494
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
495
|
+
declare enum OrderItemType {
|
|
496
|
+
TICKET = "TICKET",
|
|
497
|
+
PRODUCT = "PRODUCT",
|
|
498
|
+
GIFT_BOND = "GIFT_BOND",
|
|
499
|
+
CORPORATE_BOND = "CORPORATE_BOND",
|
|
500
|
+
VIP_RECHARGE = "VIP_RECHARGE"
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare enum OrderStatus {
|
|
504
|
+
ON_HOLD = "on-hold",
|
|
505
|
+
PENDING_PAYMENT = "pending-payment",
|
|
506
|
+
PROCESSING = "processing",
|
|
507
|
+
COMPLETED = "completed",
|
|
508
|
+
FAILED = "failed",
|
|
509
|
+
CANCELLED = "cancelled",
|
|
510
|
+
REFUNDED = "refunded"
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare enum CreatorType {
|
|
514
|
+
ADMIN = "admin",
|
|
515
|
+
CUSTOMER = "customer"
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
declare enum PaymentMethod {
|
|
519
|
+
PAYROLL = "payroll",
|
|
520
|
+
CASH = "cash",
|
|
521
|
+
DATAFONO = "datafono",
|
|
522
|
+
INTERNAL_EXCHANGE = "internal_exchange",
|
|
523
|
+
CLIENT_EXCHANGE = "client_exchange",
|
|
524
|
+
MERCADO_PAGO = "mercado_pago"
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
declare enum RoomMapElementType {
|
|
528
|
+
SEAT_BLOCK = "seat_block",
|
|
529
|
+
TABLE = "table",
|
|
530
|
+
ZONE = "zone",
|
|
531
|
+
EXIT = "exit",
|
|
532
|
+
STAGE = "stage",
|
|
533
|
+
PRODUCTION_AREA = "production_area",
|
|
534
|
+
UNAVAILABLE_SPACE = "unavailable_space",
|
|
535
|
+
STAIR = "stair",
|
|
536
|
+
HALLWAY = "hallway"
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
interface RoomMapPosition {
|
|
540
|
+
x: number;
|
|
541
|
+
y: number;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
interface RoomMapSize {
|
|
567
545
|
width: number;
|
|
568
546
|
height: number;
|
|
569
|
-
show_id: number;
|
|
570
|
-
created_at: Date;
|
|
571
547
|
}
|
|
572
548
|
|
|
573
|
-
interface
|
|
574
|
-
id:
|
|
549
|
+
interface RoomMapBaseElement {
|
|
550
|
+
id: string;
|
|
551
|
+
type: RoomMapElementType;
|
|
552
|
+
position: RoomMapPosition;
|
|
553
|
+
size: RoomMapSize;
|
|
554
|
+
rotation: number;
|
|
555
|
+
name?: string;
|
|
556
|
+
isLocked: boolean;
|
|
557
|
+
isVisible: boolean;
|
|
558
|
+
zIndex: number;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
interface RoomMapExitElement extends RoomMapBaseElement {
|
|
562
|
+
type: RoomMapElementType.EXIT;
|
|
563
|
+
exitName?: string;
|
|
564
|
+
exitType: 'emergency' | 'regular';
|
|
565
|
+
width: number;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
interface RoomMapProductionAreaElement extends RoomMapBaseElement {
|
|
569
|
+
type: RoomMapElementType.PRODUCTION_AREA;
|
|
570
|
+
areaName?: string;
|
|
571
|
+
areaType: 'lighting' | 'sound' | 'backstage' | 'orchestra' | 'custom';
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
interface RoomMapSeatElement extends RoomMapBaseElement {
|
|
575
|
+
type: RoomMapElementType.SEAT_BLOCK;
|
|
576
|
+
seatNumber?: string;
|
|
577
|
+
isAvailable: boolean;
|
|
578
|
+
priceCategory?: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare enum RoomMapElementOrientation {
|
|
582
|
+
TOP = "top",
|
|
583
|
+
RIGHT = "right",
|
|
584
|
+
BOTTOM = "bottom",
|
|
585
|
+
LEFT = "left",
|
|
586
|
+
CENTER = "center"
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
interface RoomMapStageElement extends RoomMapBaseElement {
|
|
590
|
+
type: RoomMapElementType.STAGE;
|
|
591
|
+
stageName?: string;
|
|
592
|
+
orientation: RoomMapElementOrientation;
|
|
593
|
+
isMainStage: boolean;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
interface RoomMapTableElement extends RoomMapBaseElement {
|
|
597
|
+
type: RoomMapElementType.TABLE;
|
|
598
|
+
tableNumber?: string;
|
|
599
|
+
capacity: number;
|
|
600
|
+
shape: 'round' | 'rectangular' | 'square';
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
interface RoomMapUnavailableElement extends RoomMapBaseElement {
|
|
604
|
+
type: RoomMapElementType.UNAVAILABLE_SPACE;
|
|
605
|
+
reason?: string;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
interface RoomMapZoneElement extends RoomMapBaseElement {
|
|
609
|
+
type: RoomMapElementType.ZONE;
|
|
610
|
+
zoneName: string;
|
|
611
|
+
zoneType: 'vip' | 'general' | 'premium' | 'balcony' | 'custom';
|
|
612
|
+
color: string;
|
|
613
|
+
capacity?: number;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
type RoomMapCanvasElement = RoomMapSeatElement | RoomMapTableElement | RoomMapZoneElement | RoomMapExitElement | RoomMapStageElement | RoomMapProductionAreaElement | RoomMapUnavailableElement;
|
|
617
|
+
|
|
618
|
+
type RoomMapSeatDisplayState = 'normal' | 'accessible' | 'non_existent';
|
|
619
|
+
|
|
620
|
+
declare enum ShowType {
|
|
621
|
+
PLAY = "PLAY",
|
|
622
|
+
CONCERT = "CONCERT",
|
|
623
|
+
STAND_UP_COMEDY = "STAND_UP_COMEDY",
|
|
624
|
+
OPERA = "OPERA",
|
|
625
|
+
MUSICAL = "MUSICAL",
|
|
626
|
+
DANCE = "DANCE",
|
|
627
|
+
SPORT = "SPORT",
|
|
628
|
+
OTHER = "OTHER",
|
|
629
|
+
DEFAULT = "DEFAULT"
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
633
|
+
|
|
634
|
+
type FeedbackModalType = 'loading' | 'success' | 'info' | 'warning' | 'error';
|
|
635
|
+
|
|
636
|
+
type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
637
|
+
|
|
638
|
+
type BadgeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
639
|
+
|
|
640
|
+
type BreadcrumbTheme = 'light' | 'dark';
|
|
641
|
+
|
|
642
|
+
type TextFontSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
643
|
+
|
|
644
|
+
interface FeedbackModalElement {
|
|
645
|
+
id: string;
|
|
646
|
+
type: FeedbackModalType;
|
|
575
647
|
title: string;
|
|
648
|
+
isOpen: WritableSignal<boolean>;
|
|
649
|
+
message?: string;
|
|
650
|
+
showHeader?: boolean;
|
|
651
|
+
showCloseButton?: boolean;
|
|
652
|
+
showTitle?: boolean;
|
|
653
|
+
closeModal?: void;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare enum FileType {
|
|
657
|
+
IMAGE = "image",
|
|
658
|
+
PDF = "pdf",
|
|
659
|
+
EXCEL = "excel",
|
|
660
|
+
WORD = "word",
|
|
661
|
+
TEXT = "text",
|
|
662
|
+
DEFAULT = "default"
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare enum CouponApplicability {
|
|
666
|
+
GENERAL = "GENERAL",
|
|
667
|
+
CUSTOMER_EMAIL = "CUSTOMER_EMAIL",
|
|
668
|
+
MEMBERSHIP_TYPE = "MEMBERSHIP_TYPE",
|
|
669
|
+
SHOWS = "SHOWS",
|
|
670
|
+
PERFORMANCES = "PERFORMANCES"
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare enum CouponDiscountType {
|
|
674
|
+
PERCENTAGE = "PERCENTAGE",
|
|
675
|
+
FIXED = "FIXED"
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare enum CouponStatus {
|
|
679
|
+
ACTIVE = "ACTIVE",
|
|
680
|
+
INACTIVE = "INACTIVE",
|
|
681
|
+
EXPIRED = "EXPIRED",
|
|
682
|
+
CONSUMED = "CONSUMED"
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare enum CorporateBondStatus {
|
|
686
|
+
ACTIVE = "ACTIVE",
|
|
687
|
+
INACTIVE = "INACTIVE",
|
|
688
|
+
PENDING = "PENDING",
|
|
689
|
+
PAYMENT_FAILED = "PAYMENT_FAILED",
|
|
690
|
+
EXPIRED = "EXPIRED",
|
|
691
|
+
CONSUMED = "CONSUMED"
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
declare enum PerformanceStatus {
|
|
695
|
+
SCHEDULED = "scheduled",
|
|
696
|
+
OPEN = "open",
|
|
697
|
+
CLOSED = "closed",
|
|
698
|
+
CANCELLED = "cancelled",
|
|
699
|
+
COMPLETED = "completed",
|
|
700
|
+
POSTPONED = "postponed"
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
declare enum PerformanceTicketStatus {
|
|
704
|
+
AVAILABLE = "available",
|
|
705
|
+
RESERVED = "reserved",
|
|
706
|
+
SOLD = "sold",
|
|
707
|
+
BLOCKED = "blocked"
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
declare enum GiftBondStatus {
|
|
711
|
+
ACTIVE = "ACTIVE",
|
|
712
|
+
INACTIVE = "INACTIVE"
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare enum GiftBondPurchaseStatus {
|
|
716
|
+
AVAILABLE = "AVAILABLE",
|
|
717
|
+
REDEEMED = "REDEEMED",
|
|
718
|
+
EXPIRED = "EXPIRED",
|
|
719
|
+
CANCELLED = "CANCELLED"
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
declare enum TransactionStatus {
|
|
723
|
+
PENDING = "PENDING",
|
|
724
|
+
APPROVED = "APPROVED",
|
|
725
|
+
REJECTED = "REJECTED",
|
|
726
|
+
ERROR = "ERROR"
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
declare enum VipCardStatus {
|
|
730
|
+
ACTIVE = "ACTIVE",
|
|
731
|
+
INACTIVE = "INACTIVE",
|
|
732
|
+
EXPIRED = "EXPIRED"
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
declare enum VipTransactionType {
|
|
736
|
+
INITIAL_RECHARGE = "INITIAL_RECHARGE",
|
|
737
|
+
RECHARGE = "RECHARGE",
|
|
738
|
+
PURCHASE_PAYMENT = "PURCHASE_PAYMENT"
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare enum MembershipStatus {
|
|
742
|
+
ACTIVE = "ACTIVE",
|
|
743
|
+
INACTIVE = "INACTIVE"
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
interface FetchProductCategoriesParams extends CommonFetchAllParams {
|
|
747
|
+
name?: string;
|
|
748
|
+
slug?: string;
|
|
749
|
+
sort_by?: 'category.id' | 'category.name' | 'category.slug' | 'category.created_at';
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
interface ProductCategory extends Auditable {
|
|
753
|
+
id: number;
|
|
754
|
+
name: string;
|
|
576
755
|
slug: string;
|
|
577
|
-
description: string;
|
|
578
|
-
duration_minutes: number | null;
|
|
579
|
-
type_of_costs: string | null;
|
|
580
|
-
service_fee: number | null;
|
|
581
|
-
show_type: ShowType | null;
|
|
582
|
-
pulep: string | null;
|
|
583
|
-
minimum_age: number | null;
|
|
584
|
-
show_category_id: number | null;
|
|
585
|
-
default_room_map_id: number | null;
|
|
586
|
-
published_at?: Date;
|
|
587
|
-
is_published: boolean;
|
|
588
|
-
images: ShowImage[];
|
|
589
|
-
terms_and_conditions: string;
|
|
590
|
-
performances_quantity?: number;
|
|
591
756
|
}
|
|
592
757
|
|
|
593
|
-
interface
|
|
758
|
+
interface ProductCategoriesResponse {
|
|
594
759
|
statusCode: number;
|
|
595
|
-
data:
|
|
760
|
+
data: {
|
|
761
|
+
categories: ProductCategory[];
|
|
762
|
+
total: number;
|
|
763
|
+
};
|
|
596
764
|
message: string;
|
|
597
765
|
}
|
|
598
766
|
|
|
599
|
-
interface
|
|
767
|
+
interface ProductCategoryResponse {
|
|
768
|
+
statusCode: number;
|
|
769
|
+
data: ProductCategory;
|
|
770
|
+
message: string;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
interface FetchProductTagsParams extends CommonFetchAllParams {
|
|
774
|
+
name?: string;
|
|
775
|
+
slug?: string;
|
|
776
|
+
sort_by?: 'tag.id' | 'tag.name' | 'tag.slug' | 'tag.created_at';
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
interface ProductTag extends Auditable {
|
|
780
|
+
id: number;
|
|
781
|
+
name: string;
|
|
782
|
+
slug: string;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
interface ProductTagResponse {
|
|
786
|
+
statusCode: number;
|
|
787
|
+
data: ProductTag;
|
|
788
|
+
message: string;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
interface ProductTagsResponse {
|
|
600
792
|
statusCode: number;
|
|
601
793
|
data: {
|
|
602
|
-
|
|
794
|
+
tags: ProductTag[];
|
|
603
795
|
total: number;
|
|
604
796
|
};
|
|
605
797
|
message: string;
|
|
606
798
|
}
|
|
607
799
|
|
|
608
|
-
interface
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
date?: string;
|
|
800
|
+
interface FetchProductTypesParams extends CommonFetchAllParams {
|
|
801
|
+
name?: string;
|
|
802
|
+
slug?: string;
|
|
803
|
+
sort_by?: 'type.id' | 'type.name' | 'type.slug' | 'type.created_at';
|
|
613
804
|
}
|
|
614
805
|
|
|
615
|
-
interface
|
|
806
|
+
interface ProductType extends Auditable {
|
|
616
807
|
id: number;
|
|
617
808
|
name: string;
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
809
|
+
slug: string;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
interface ProductTypeResponse {
|
|
813
|
+
statusCode: number;
|
|
814
|
+
data: ProductType;
|
|
815
|
+
message: string;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
interface ProductTypesResponse {
|
|
819
|
+
statusCode: number;
|
|
820
|
+
data: {
|
|
821
|
+
types: ProductType[];
|
|
822
|
+
total: number;
|
|
823
|
+
};
|
|
824
|
+
message: string;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
interface ProductImage {
|
|
828
|
+
id: number;
|
|
829
|
+
path: string;
|
|
830
|
+
full_url: string;
|
|
831
|
+
original_name: string;
|
|
832
|
+
extension: string;
|
|
833
|
+
size: number;
|
|
834
|
+
mime_type: string;
|
|
835
|
+
width: number;
|
|
836
|
+
height: number;
|
|
837
|
+
product_id: number;
|
|
838
|
+
product: Product;
|
|
623
839
|
created_at: Date;
|
|
624
|
-
updated_at: Date;
|
|
625
|
-
created_by: number;
|
|
626
|
-
updated_by: number;
|
|
627
840
|
}
|
|
628
841
|
|
|
629
842
|
interface Product extends Auditable {
|
|
@@ -636,12 +849,35 @@ interface Product extends Auditable {
|
|
|
636
849
|
slug: string;
|
|
637
850
|
sku?: string;
|
|
638
851
|
is_limited_edition: boolean;
|
|
639
|
-
is_active: boolean;
|
|
640
852
|
deleted_at: Date | null;
|
|
641
|
-
categories?:
|
|
642
|
-
tags?:
|
|
643
|
-
types?:
|
|
644
|
-
images?:
|
|
853
|
+
categories?: ProductCategory[];
|
|
854
|
+
tags?: ProductTag[];
|
|
855
|
+
types?: ProductType[];
|
|
856
|
+
images?: ProductImage[];
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
interface ShowImage {
|
|
860
|
+
id: number;
|
|
861
|
+
path: string;
|
|
862
|
+
full_url: string;
|
|
863
|
+
original_name: string;
|
|
864
|
+
extension: string;
|
|
865
|
+
size: number;
|
|
866
|
+
mime_type: string;
|
|
867
|
+
width: number;
|
|
868
|
+
height: number;
|
|
869
|
+
show_id: number;
|
|
870
|
+
created_at: Date;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
interface PriceZone extends Auditable {
|
|
874
|
+
id: number;
|
|
875
|
+
name: string;
|
|
876
|
+
color: string;
|
|
877
|
+
normal_price: number | null;
|
|
878
|
+
is_active: boolean;
|
|
879
|
+
elements: any[];
|
|
880
|
+
room_map_id: number | null;
|
|
645
881
|
}
|
|
646
882
|
|
|
647
883
|
interface NumerationConfig {
|
|
@@ -679,7 +915,7 @@ interface RoomMapElementTemplate {
|
|
|
679
915
|
price_zone?: PriceZone;
|
|
680
916
|
}
|
|
681
917
|
|
|
682
|
-
interface RoomMap {
|
|
918
|
+
interface RoomMap extends Auditable {
|
|
683
919
|
id: number;
|
|
684
920
|
name: string;
|
|
685
921
|
canvas_settings: {
|
|
@@ -695,8 +931,6 @@ interface RoomMap {
|
|
|
695
931
|
related_product_ids: number[];
|
|
696
932
|
products?: Product[];
|
|
697
933
|
venue_name?: string;
|
|
698
|
-
created_at: Date;
|
|
699
|
-
updated_at: Date;
|
|
700
934
|
}
|
|
701
935
|
|
|
702
936
|
interface RoomMapCanvasConfiguration {
|
|
@@ -738,7 +972,7 @@ interface ElementPropertiesTab {
|
|
|
738
972
|
elements_access: string[];
|
|
739
973
|
}
|
|
740
974
|
|
|
741
|
-
interface Performance {
|
|
975
|
+
interface Performance extends Auditable {
|
|
742
976
|
id: number;
|
|
743
977
|
start_time: Date | string;
|
|
744
978
|
end_time: Date | string;
|
|
@@ -748,8 +982,112 @@ interface Performance {
|
|
|
748
982
|
show?: Show;
|
|
749
983
|
room_map: RoomMap;
|
|
750
984
|
room_map_id: number;
|
|
751
|
-
|
|
752
|
-
|
|
985
|
+
performance_tickets?: PerformanceTicket[];
|
|
986
|
+
can_delete?: boolean;
|
|
987
|
+
can_cancel?: boolean;
|
|
988
|
+
can_modify?: boolean;
|
|
989
|
+
can_reserve?: boolean;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
interface FetchShowCategoriesParams extends CommonFetchAllParams {
|
|
993
|
+
name?: string;
|
|
994
|
+
slug?: string;
|
|
995
|
+
sort_by?: 'category.id' | 'category.name' | 'category.slug' | 'category.created_at';
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
interface ShowCategory extends Auditable {
|
|
999
|
+
id: number;
|
|
1000
|
+
name: string;
|
|
1001
|
+
slug: string;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
interface ShowCategoriesResponse {
|
|
1005
|
+
statusCode: number;
|
|
1006
|
+
data: {
|
|
1007
|
+
categories: ShowCategory[];
|
|
1008
|
+
total: number;
|
|
1009
|
+
};
|
|
1010
|
+
message: string;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
interface ShowCategoryResponse {
|
|
1014
|
+
statusCode: number;
|
|
1015
|
+
data: ShowCategory;
|
|
1016
|
+
message: string;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface FetchShowGendersParams extends CommonFetchAllParams {
|
|
1020
|
+
name?: string;
|
|
1021
|
+
slug?: string;
|
|
1022
|
+
sort_by?: 'gender.id' | 'gender.name' | 'gender.slug' | 'gender.created_at';
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
interface ShowGender extends Auditable {
|
|
1026
|
+
id: number;
|
|
1027
|
+
name: string;
|
|
1028
|
+
slug: string;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
interface ShowGenderResponse {
|
|
1032
|
+
statusCode: number;
|
|
1033
|
+
data: ShowGender;
|
|
1034
|
+
message: string;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
interface ShowGendersResponse {
|
|
1038
|
+
statusCode: number;
|
|
1039
|
+
data: {
|
|
1040
|
+
genders: ShowGender[];
|
|
1041
|
+
total: number;
|
|
1042
|
+
};
|
|
1043
|
+
message: string;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
interface Show extends Auditable {
|
|
1047
|
+
id: number;
|
|
1048
|
+
title: string;
|
|
1049
|
+
slug: string;
|
|
1050
|
+
description: string;
|
|
1051
|
+
duration_minutes: number | null;
|
|
1052
|
+
type_of_costs: string | null;
|
|
1053
|
+
service_fee: number | null;
|
|
1054
|
+
show_type: ShowType | null;
|
|
1055
|
+
pulep: string | null;
|
|
1056
|
+
minimum_age: number | null;
|
|
1057
|
+
show_gender?: ShowGender | null;
|
|
1058
|
+
show_gender_id: number | null;
|
|
1059
|
+
show_category?: ShowCategory | null;
|
|
1060
|
+
show_category_id: number | null;
|
|
1061
|
+
default_room_map?: RoomMap | null;
|
|
1062
|
+
default_room_map_id: number | null;
|
|
1063
|
+
is_published: boolean;
|
|
1064
|
+
images: ShowImage[];
|
|
1065
|
+
terms_and_conditions: string | null;
|
|
1066
|
+
performances_quantity?: number;
|
|
1067
|
+
performances?: Performance[];
|
|
1068
|
+
next_performance?: Performance;
|
|
1069
|
+
days_of_week?: number[];
|
|
1070
|
+
unique_start_times?: string[];
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface FindAllPerformancesParams {
|
|
1074
|
+
roomMapId?: number;
|
|
1075
|
+
showId?: number;
|
|
1076
|
+
hallId?: number;
|
|
1077
|
+
page?: number;
|
|
1078
|
+
search?: string;
|
|
1079
|
+
limit?: number;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
interface PerformanceBookingDataResponse {
|
|
1083
|
+
statusCode: number;
|
|
1084
|
+
data: {
|
|
1085
|
+
performance: Performance;
|
|
1086
|
+
room_map: RoomMap;
|
|
1087
|
+
show: Show;
|
|
1088
|
+
tickets: PerformanceTicket[];
|
|
1089
|
+
};
|
|
1090
|
+
message: string;
|
|
753
1091
|
}
|
|
754
1092
|
|
|
755
1093
|
interface PerformanceResponse {
|
|
@@ -758,6 +1096,18 @@ interface PerformanceResponse {
|
|
|
758
1096
|
message: string;
|
|
759
1097
|
}
|
|
760
1098
|
|
|
1099
|
+
interface PerformanceAvailableDay {
|
|
1100
|
+
date: string;
|
|
1101
|
+
count: number;
|
|
1102
|
+
}
|
|
1103
|
+
interface PerformancesAvailableDaysResponse {
|
|
1104
|
+
statusCode: number;
|
|
1105
|
+
data: {
|
|
1106
|
+
days: PerformanceAvailableDay[];
|
|
1107
|
+
};
|
|
1108
|
+
message: string;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
761
1111
|
interface PerformancesResponseInterface {
|
|
762
1112
|
statusCode: number;
|
|
763
1113
|
data: {
|
|
@@ -767,7 +1117,7 @@ interface PerformancesResponseInterface {
|
|
|
767
1117
|
message: string;
|
|
768
1118
|
}
|
|
769
1119
|
|
|
770
|
-
interface OrderItem {
|
|
1120
|
+
interface OrderItem extends Auditable {
|
|
771
1121
|
id: number;
|
|
772
1122
|
order: Order;
|
|
773
1123
|
item_type: OrderItemType;
|
|
@@ -779,16 +1129,14 @@ interface OrderItem {
|
|
|
779
1129
|
discounted_price: number;
|
|
780
1130
|
ticket_id?: number;
|
|
781
1131
|
ticket_uuid?: string;
|
|
1132
|
+
ticket?: PerformanceTicket;
|
|
782
1133
|
item: Show | Product;
|
|
783
|
-
created_at: Date;
|
|
784
|
-
updated_at: Date;
|
|
785
|
-
created_by: number;
|
|
786
|
-
updated_by: number;
|
|
787
1134
|
}
|
|
788
1135
|
|
|
789
1136
|
interface Coupon extends Auditable {
|
|
790
1137
|
id: number;
|
|
791
1138
|
code: string;
|
|
1139
|
+
billing_code: string;
|
|
792
1140
|
description?: string;
|
|
793
1141
|
discount_type: CouponDiscountType;
|
|
794
1142
|
discount_value: number;
|
|
@@ -805,9 +1153,11 @@ interface Coupon extends Auditable {
|
|
|
805
1153
|
applicable_performance_ids?: number[];
|
|
806
1154
|
applicable_price_zone_ids?: number[];
|
|
807
1155
|
applies_to_service_fee?: boolean;
|
|
1156
|
+
orders?: Order[];
|
|
1157
|
+
customers?: Customer[];
|
|
808
1158
|
}
|
|
809
1159
|
|
|
810
|
-
interface CorporateBond {
|
|
1160
|
+
interface CorporateBond extends Auditable {
|
|
811
1161
|
id: number;
|
|
812
1162
|
name: string;
|
|
813
1163
|
description?: string;
|
|
@@ -817,11 +1167,13 @@ interface CorporateBond {
|
|
|
817
1167
|
quantity: number;
|
|
818
1168
|
status: CorporateBondStatus;
|
|
819
1169
|
value: number;
|
|
1170
|
+
purchase_value: number;
|
|
1171
|
+
buyer_customer_id: number | null;
|
|
1172
|
+
buyer: Customer | null;
|
|
1173
|
+
order_id: number | null;
|
|
1174
|
+
order: Order | null;
|
|
1175
|
+
payment_method?: PaymentMethod;
|
|
820
1176
|
codes: CorporateBondCode[];
|
|
821
|
-
created_at: Date;
|
|
822
|
-
updated_at: Date;
|
|
823
|
-
created_by: number;
|
|
824
|
-
updated_by: number;
|
|
825
1177
|
}
|
|
826
1178
|
|
|
827
1179
|
interface CorporateBondCode {
|
|
@@ -840,49 +1192,194 @@ interface CorporateBondResponse {
|
|
|
840
1192
|
message: string;
|
|
841
1193
|
}
|
|
842
1194
|
|
|
843
|
-
interface ValidateCorporateBondResponse {
|
|
1195
|
+
interface ValidateCorporateBondResponse {
|
|
1196
|
+
data: {
|
|
1197
|
+
valid: boolean;
|
|
1198
|
+
message: string;
|
|
1199
|
+
code: string;
|
|
1200
|
+
bond?: CorporateBond;
|
|
1201
|
+
};
|
|
1202
|
+
message: string;
|
|
1203
|
+
statusCode: number;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
interface GiftBondImage {
|
|
1207
|
+
id: number;
|
|
1208
|
+
path: string;
|
|
1209
|
+
full_url: string;
|
|
1210
|
+
original_name: string;
|
|
1211
|
+
extension: string;
|
|
1212
|
+
size: number;
|
|
1213
|
+
mime_type: string;
|
|
1214
|
+
width: number;
|
|
1215
|
+
height: number;
|
|
1216
|
+
is_featured: boolean;
|
|
1217
|
+
gift_bond_id: number;
|
|
1218
|
+
gift_bond: GiftBond;
|
|
1219
|
+
created_at: Date;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
interface GiftBond extends Auditable {
|
|
1223
|
+
id: number;
|
|
1224
|
+
name: string;
|
|
1225
|
+
description?: string;
|
|
1226
|
+
slug?: string;
|
|
1227
|
+
status: GiftBondStatus;
|
|
1228
|
+
value: number;
|
|
1229
|
+
page_content?: string;
|
|
1230
|
+
images?: GiftBondImage[];
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
interface GiftBondResponse {
|
|
1234
|
+
statusCode: number;
|
|
1235
|
+
data: GiftBond;
|
|
1236
|
+
message: string;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
interface GiftBondsResponse {
|
|
1240
|
+
statusCode: number;
|
|
1241
|
+
data: {
|
|
1242
|
+
gift_bonds: GiftBond[];
|
|
1243
|
+
total: number;
|
|
1244
|
+
};
|
|
1245
|
+
message: string;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
interface GiftBondPurchase extends Auditable {
|
|
1249
|
+
id: number;
|
|
1250
|
+
code: string;
|
|
1251
|
+
original_value: number;
|
|
1252
|
+
used_value: number | null;
|
|
1253
|
+
lost_value: number | null;
|
|
1254
|
+
beneficiary_email: string;
|
|
1255
|
+
beneficiary: Customer | null;
|
|
1256
|
+
personalized_message: string | null;
|
|
1257
|
+
status: GiftBondPurchaseStatus;
|
|
1258
|
+
purchased_at: string;
|
|
1259
|
+
expires_at: string;
|
|
1260
|
+
redeemed_at: string | null;
|
|
1261
|
+
gift_bond?: GiftBond;
|
|
1262
|
+
gift_bond_id: number;
|
|
1263
|
+
buyer_customer_id: number;
|
|
1264
|
+
buyer: Customer;
|
|
1265
|
+
order: Order | null;
|
|
1266
|
+
order_id: number;
|
|
1267
|
+
redemption_order_id: number | null;
|
|
1268
|
+
redemption_order: Order | null;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
interface ValidateGiftBondResponse {
|
|
844
1272
|
data: {
|
|
845
1273
|
valid: boolean;
|
|
846
1274
|
message: string;
|
|
847
1275
|
code: string;
|
|
848
|
-
bond?:
|
|
1276
|
+
bond?: GiftBondPurchase;
|
|
849
1277
|
};
|
|
1278
|
+
statusCode: number;
|
|
1279
|
+
message: string;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
interface GiftBondPurchaseResponse {
|
|
1283
|
+
statusCode: number;
|
|
1284
|
+
data: GiftBondPurchase;
|
|
850
1285
|
message: string;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
interface GiftBondPurchasesResponse {
|
|
851
1289
|
statusCode: number;
|
|
1290
|
+
data: {
|
|
1291
|
+
items: GiftBondPurchase[];
|
|
1292
|
+
total: number;
|
|
1293
|
+
};
|
|
1294
|
+
message: string;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
interface Transaction extends Auditable {
|
|
1298
|
+
id: number;
|
|
1299
|
+
status: TransactionStatus;
|
|
1300
|
+
amount: number;
|
|
1301
|
+
currency: string;
|
|
1302
|
+
payment_gateway: string;
|
|
1303
|
+
gateway_transaction_id: string;
|
|
1304
|
+
gateway_response: any;
|
|
1305
|
+
order: Order;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
interface OrderBillingInfo {
|
|
1309
|
+
first_name: string;
|
|
1310
|
+
last_name: string;
|
|
1311
|
+
email: string;
|
|
1312
|
+
mobile: string;
|
|
1313
|
+
document_type: string;
|
|
1314
|
+
document_number: string;
|
|
1315
|
+
address: string;
|
|
1316
|
+
city_id: number;
|
|
1317
|
+
postal_code?: string;
|
|
1318
|
+
address_notes?: string;
|
|
1319
|
+
payment_method: PaymentMethod;
|
|
1320
|
+
terms_accepted: boolean;
|
|
1321
|
+
data_processing_accepted: boolean;
|
|
1322
|
+
comments?: string;
|
|
1323
|
+
products?: Array<{
|
|
1324
|
+
id: number;
|
|
1325
|
+
quantity: number;
|
|
1326
|
+
}>;
|
|
852
1327
|
}
|
|
853
1328
|
|
|
854
|
-
interface
|
|
1329
|
+
interface OrderShowSnapshot {
|
|
1330
|
+
id: number;
|
|
1331
|
+
title: string;
|
|
1332
|
+
description: string | null;
|
|
1333
|
+
service_fee: number | null;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
interface OrderPerformanceSnapshot {
|
|
1337
|
+
id: number;
|
|
1338
|
+
start_time: Performance['start_time'];
|
|
1339
|
+
end_time: Performance['end_time'];
|
|
1340
|
+
published: boolean;
|
|
1341
|
+
status: PerformanceStatus;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
interface Order extends Auditable {
|
|
855
1345
|
id: number;
|
|
856
1346
|
uuid: string;
|
|
857
|
-
|
|
1347
|
+
customer_id: number | null;
|
|
1348
|
+
customer: Customer | null;
|
|
858
1349
|
customer_name?: string;
|
|
859
1350
|
customer_email?: string;
|
|
860
1351
|
order_items: OrderItem[];
|
|
861
1352
|
order_items_quantity?: number;
|
|
862
|
-
|
|
1353
|
+
transactions: Transaction[];
|
|
1354
|
+
sub_total: number;
|
|
1355
|
+
discount_amount: number | null;
|
|
863
1356
|
total: number;
|
|
1357
|
+
sub_total_discounted: number | null;
|
|
864
1358
|
total_discounted: number;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
coupon: Coupon;
|
|
870
|
-
coupon_snapshot: Record<string, any>;
|
|
871
|
-
corporate_bond_code: CorporateBondCode;
|
|
872
|
-
corporate_bond_code_snapshot: Record<string, any>;
|
|
1359
|
+
service_fee: number | null;
|
|
1360
|
+
service_fee_discounted: number | null;
|
|
1361
|
+
coupon: Coupon | null;
|
|
1362
|
+
coupon_snapshot: Record<string, any> | null;
|
|
873
1363
|
status: OrderStatus;
|
|
874
|
-
show_snapshot:
|
|
875
|
-
performance_snapshot:
|
|
876
|
-
|
|
877
|
-
updated_at: Date;
|
|
878
|
-
payment_method: string;
|
|
1364
|
+
show_snapshot: OrderShowSnapshot | null;
|
|
1365
|
+
performance_snapshot: OrderPerformanceSnapshot | null;
|
|
1366
|
+
payment_method: PaymentMethod | null;
|
|
879
1367
|
terms_accepted: boolean;
|
|
880
1368
|
data_processing_accepted: boolean;
|
|
881
|
-
billing_info:
|
|
882
|
-
|
|
883
|
-
|
|
1369
|
+
billing_info: OrderBillingInfo | null;
|
|
1370
|
+
corporate_bond_code_snapshot: Record<string, any> | null;
|
|
1371
|
+
gift_bond_snapshot: Record<string, any> | null;
|
|
1372
|
+
corporate_bond_code: CorporateBondCode | null;
|
|
1373
|
+
corporate_bond_code_id: number | null;
|
|
1374
|
+
gift_bond: GiftBond | null;
|
|
1375
|
+
gift_bond_id: number | null;
|
|
1376
|
+
comments: string | null;
|
|
1377
|
+
address_notes: string | null;
|
|
1378
|
+
mercado_pago_preference_id: string;
|
|
884
1379
|
created_by: number;
|
|
1380
|
+
created_by_type: CreatorType;
|
|
885
1381
|
updated_by: number;
|
|
1382
|
+
updated_by_type: CreatorType;
|
|
886
1383
|
}
|
|
887
1384
|
|
|
888
1385
|
interface OrderResponse {
|
|
@@ -900,7 +1397,15 @@ interface OrdersResponse {
|
|
|
900
1397
|
message: string;
|
|
901
1398
|
}
|
|
902
1399
|
|
|
903
|
-
interface
|
|
1400
|
+
interface MercadoPagoPreference {
|
|
1401
|
+
data: {
|
|
1402
|
+
id: string;
|
|
1403
|
+
init_point: string;
|
|
1404
|
+
sandbox_init_point: string;
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
interface PerformanceTicket extends Auditable {
|
|
904
1409
|
id: number;
|
|
905
1410
|
uuid: string;
|
|
906
1411
|
is_accessible: boolean;
|
|
@@ -914,35 +1419,174 @@ interface PerformanceTicket {
|
|
|
914
1419
|
presale_price: number | null;
|
|
915
1420
|
status: PerformanceTicketStatus;
|
|
916
1421
|
reserved_until: Date | null;
|
|
1422
|
+
reserved_by_type: CreatorType | null;
|
|
1423
|
+
reserved_by: number | null;
|
|
1424
|
+
reserved_by_admin: Admin | null;
|
|
1425
|
+
reserved_by_customer: number | null;
|
|
1426
|
+
reserved_customer: Customer | null;
|
|
1427
|
+
order: Order | null;
|
|
917
1428
|
order_id: number | null;
|
|
918
1429
|
customer_id: number | null;
|
|
919
1430
|
checked_in: boolean;
|
|
920
1431
|
checked_in_at: Date | null;
|
|
1432
|
+
checked_in_by: number | null;
|
|
1433
|
+
checked_in_by_admin: Admin | null;
|
|
921
1434
|
order_items: OrderItem[];
|
|
922
1435
|
element_qty?: number;
|
|
923
|
-
|
|
924
|
-
|
|
1436
|
+
blocked_at: Date | null;
|
|
1437
|
+
blocked_by: number | null;
|
|
1438
|
+
blocked_by_admin: Admin | null;
|
|
925
1439
|
}
|
|
926
1440
|
|
|
927
|
-
interface
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
1441
|
+
interface TicketMapSeatPosition {
|
|
1442
|
+
rowIndex: number;
|
|
1443
|
+
colIndex: number;
|
|
1444
|
+
seatLabel: string;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
interface TicketMapTableChairPosition {
|
|
1448
|
+
index: number;
|
|
1449
|
+
angle: number;
|
|
1450
|
+
x: number;
|
|
1451
|
+
y: number;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
interface ElementRenderData {
|
|
1455
|
+
elementId: number;
|
|
1456
|
+
hallFloorId: number | null;
|
|
1457
|
+
type: RoomMapElementType;
|
|
1458
|
+
shapeConfig: Record<string, any>;
|
|
1459
|
+
tickets: PerformanceTicket[];
|
|
1460
|
+
ticketByNumeration: Map<string, PerformanceTicket>;
|
|
1461
|
+
elementName: string;
|
|
1462
|
+
seatPositions?: TicketMapSeatPosition[][];
|
|
1463
|
+
chairPositions?: TicketMapTableChairPosition[];
|
|
1464
|
+
zoneCapacity?: number;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
interface TicketMapTooltipData {
|
|
1468
|
+
x: number;
|
|
1469
|
+
y: number;
|
|
1470
|
+
elementName: string;
|
|
1471
|
+
seatLabel: string | null;
|
|
1472
|
+
price: number;
|
|
1473
|
+
status: PerformanceTicketStatus;
|
|
1474
|
+
statusLabel: string;
|
|
1475
|
+
statusColor: string;
|
|
1476
|
+
isSelected: boolean;
|
|
1477
|
+
ticketId: number;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
interface TicketMapZoneQuantityState {
|
|
1481
|
+
elementId: number;
|
|
1482
|
+
selectedCount: number;
|
|
1483
|
+
maxCapacity: number;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
interface ReservePerformanceDto {
|
|
1487
|
+
ticket_ids: number[];
|
|
1488
|
+
products?: {
|
|
1489
|
+
id: number;
|
|
1490
|
+
quantity: number;
|
|
1491
|
+
}[];
|
|
1492
|
+
coupon_code?: string;
|
|
1493
|
+
gift_bond_code?: string;
|
|
1494
|
+
corporate_bond_code?: string;
|
|
1495
|
+
payment_method?: string;
|
|
1496
|
+
billing?: {
|
|
1497
|
+
first_name: string;
|
|
1498
|
+
last_name: string;
|
|
1499
|
+
email: string;
|
|
1500
|
+
mobile: string;
|
|
1501
|
+
document_type: string;
|
|
1502
|
+
document_number: string;
|
|
1503
|
+
address: string;
|
|
1504
|
+
city_id: number;
|
|
1505
|
+
postal_code?: string;
|
|
1506
|
+
address_notes?: string;
|
|
1507
|
+
terms_accepted: boolean;
|
|
1508
|
+
data_processing_accepted: boolean;
|
|
1509
|
+
comments?: string;
|
|
934
1510
|
};
|
|
935
|
-
message: string;
|
|
936
1511
|
}
|
|
937
1512
|
|
|
938
|
-
interface
|
|
939
|
-
|
|
940
|
-
|
|
1513
|
+
interface TicketMapZoomConfig {
|
|
1514
|
+
minZoom: number;
|
|
1515
|
+
maxZoom: number;
|
|
1516
|
+
zoomStep: number;
|
|
1517
|
+
scaleBy: number;
|
|
941
1518
|
}
|
|
942
|
-
|
|
1519
|
+
|
|
1520
|
+
interface HallFloorOption {
|
|
1521
|
+
id: number | null;
|
|
1522
|
+
name: string;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
declare enum SelectedDiscountCardType {
|
|
1526
|
+
COUPON = "COUPON",
|
|
1527
|
+
CORPORATE_BOND = "CORPORATE_BOND",
|
|
1528
|
+
GIFT_BOND = "GIFT_BOND"
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
interface SelectedDiscountCard {
|
|
1532
|
+
name: string;
|
|
1533
|
+
type: SelectedDiscountCardType;
|
|
1534
|
+
value: number;
|
|
1535
|
+
discountType: 'percentage' | 'fixed';
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/** Forma compacta de un ticket recibida por SSE (ver
|
|
1539
|
+
* SeatAvailabilitySseService) — sin relaciones, solo lo necesario para
|
|
1540
|
+
* repintar el mapa y validar disponibilidad en el cliente. */
|
|
1541
|
+
interface SeatStatusUpdate {
|
|
1542
|
+
id: number;
|
|
1543
|
+
status: PerformanceTicketStatus;
|
|
1544
|
+
room_map_element_id: number;
|
|
1545
|
+
reserved_until: Date | null;
|
|
1546
|
+
}
|
|
1547
|
+
type SeatEventMessage = {
|
|
1548
|
+
type: 'snapshot';
|
|
1549
|
+
performance_id: number;
|
|
1550
|
+
tickets: SeatStatusUpdate[];
|
|
1551
|
+
ts: number;
|
|
1552
|
+
} | {
|
|
1553
|
+
type: 'heartbeat';
|
|
1554
|
+
ts: number;
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
interface AdmissionStatus {
|
|
1558
|
+
active: boolean;
|
|
1559
|
+
position: number | null;
|
|
1560
|
+
}
|
|
1561
|
+
interface AdmissionJoinResponse extends AdmissionStatus {
|
|
1562
|
+
ticket: string;
|
|
1563
|
+
expires_in: number;
|
|
1564
|
+
}
|
|
1565
|
+
type AdmissionEventMessage = ({
|
|
1566
|
+
type: 'status';
|
|
1567
|
+
} & AdmissionStatus & {
|
|
1568
|
+
ts: number;
|
|
1569
|
+
}) | {
|
|
1570
|
+
type: 'heartbeat';
|
|
1571
|
+
ts: number;
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
interface FetchShowsParams extends CommonFetchAllParams {
|
|
1575
|
+
date?: string;
|
|
1576
|
+
sort_by?: 'show.id' | 'show.created_at' | 'show.title' | 'show.slug' | 'show.type_of_costs' | 'show.pulep' | 'show_category.name' | 'show_gender.name';
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
interface ShowResponse {
|
|
1580
|
+
statusCode: number;
|
|
1581
|
+
data: Show;
|
|
1582
|
+
message: string;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
interface ShowsResponseInterface {
|
|
943
1586
|
statusCode: number;
|
|
944
1587
|
data: {
|
|
945
|
-
|
|
1588
|
+
shows: Show[];
|
|
1589
|
+
total: number;
|
|
946
1590
|
};
|
|
947
1591
|
message: string;
|
|
948
1592
|
}
|
|
@@ -999,12 +1643,31 @@ interface FetchDailyPerformancesParams {
|
|
|
999
1643
|
limit?: number;
|
|
1000
1644
|
}
|
|
1001
1645
|
|
|
1646
|
+
interface FetchProductsParams extends CommonFetchAllParams {
|
|
1647
|
+
name?: string;
|
|
1648
|
+
category_id?: number;
|
|
1649
|
+
tag_id?: number;
|
|
1650
|
+
type_id?: number;
|
|
1651
|
+
min_price?: number;
|
|
1652
|
+
max_price?: number;
|
|
1653
|
+
min_stock?: number;
|
|
1654
|
+
max_stock?: number;
|
|
1655
|
+
sort_by?: 'product.id' | 'product.name' | 'product.price' | 'product.stock_quantity' | 'product.slug' | 'product.sku' | 'product.created_at' | 'category.name' | 'tag.name' | 'type.name';
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1002
1658
|
interface ProductResponse {
|
|
1003
1659
|
statusCode: number;
|
|
1004
1660
|
data: Product;
|
|
1005
1661
|
message: string;
|
|
1006
1662
|
}
|
|
1007
1663
|
|
|
1664
|
+
interface ProductTaxonomy extends Auditable {
|
|
1665
|
+
id: number;
|
|
1666
|
+
name: string;
|
|
1667
|
+
slug: string;
|
|
1668
|
+
selected?: boolean;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1008
1671
|
interface ProductsResponseInterface {
|
|
1009
1672
|
statusCode: number;
|
|
1010
1673
|
data: {
|
|
@@ -1045,76 +1708,291 @@ interface FindAllPriceZoneParams {
|
|
|
1045
1708
|
limit?: number;
|
|
1046
1709
|
}
|
|
1047
1710
|
|
|
1048
|
-
interface
|
|
1711
|
+
interface CouponResponse {
|
|
1712
|
+
statusCode: number;
|
|
1713
|
+
data: Coupon;
|
|
1714
|
+
message: string;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
interface ValidateCouponResponse {
|
|
1718
|
+
data: {
|
|
1719
|
+
coupon: Coupon;
|
|
1720
|
+
message: string;
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
interface RecentOrder {
|
|
1049
1725
|
id: number;
|
|
1726
|
+
customer_name: string;
|
|
1727
|
+
event: string;
|
|
1728
|
+
total: number;
|
|
1729
|
+
status: string;
|
|
1050
1730
|
uuid: string;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
interface RecentRoomMap {
|
|
1734
|
+
id: number;
|
|
1051
1735
|
name: string;
|
|
1052
|
-
|
|
1053
|
-
status: GiftBondStatus;
|
|
1054
|
-
value: number;
|
|
1055
|
-
customer: Customer;
|
|
1056
|
-
customer_id: number;
|
|
1736
|
+
capacity: number;
|
|
1057
1737
|
created_at: Date;
|
|
1058
1738
|
updated_at: Date;
|
|
1059
|
-
created_by: number;
|
|
1060
|
-
updated_by: number;
|
|
1061
1739
|
}
|
|
1062
1740
|
|
|
1063
|
-
interface
|
|
1741
|
+
interface QrTokenData {
|
|
1742
|
+
token: string;
|
|
1743
|
+
expires_at: string;
|
|
1744
|
+
refresh_in: number;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
interface QrTokenResponse {
|
|
1064
1748
|
statusCode: number;
|
|
1065
|
-
data:
|
|
1749
|
+
data: QrTokenData;
|
|
1066
1750
|
message: string;
|
|
1067
1751
|
}
|
|
1068
1752
|
|
|
1069
|
-
interface
|
|
1070
|
-
|
|
1753
|
+
interface VipCategorySnapshot {
|
|
1754
|
+
membership_id: number;
|
|
1755
|
+
name: string;
|
|
1756
|
+
discount_percentage: number;
|
|
1757
|
+
service_fee_exempt: boolean;
|
|
1758
|
+
applicable_show_ids: number[] | null;
|
|
1759
|
+
excluded_show_ids: number[] | null;
|
|
1760
|
+
duration_days: number;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
interface VipCard extends Auditable {
|
|
1764
|
+
id: number;
|
|
1765
|
+
uuid: string;
|
|
1766
|
+
customer: Customer;
|
|
1767
|
+
customer_id: number;
|
|
1768
|
+
membership: {
|
|
1769
|
+
id: number;
|
|
1770
|
+
name: string;
|
|
1771
|
+
} | null;
|
|
1772
|
+
membership_id: number;
|
|
1773
|
+
category_snapshot: VipCategorySnapshot;
|
|
1774
|
+
balance: number;
|
|
1775
|
+
status: VipCardStatus;
|
|
1776
|
+
activated_at: string | null;
|
|
1777
|
+
last_activity_at: string | null;
|
|
1778
|
+
expires_at: string | null;
|
|
1779
|
+
last_low_balance_alert_at: string | null;
|
|
1780
|
+
last_expiry_alert_at: string | null;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
interface VipTransaction {
|
|
1784
|
+
id: number;
|
|
1785
|
+
uuid: string;
|
|
1786
|
+
vip_card_id: number;
|
|
1787
|
+
type: VipTransactionType;
|
|
1788
|
+
amount: number;
|
|
1789
|
+
balance_before: number;
|
|
1790
|
+
balance_after: number;
|
|
1791
|
+
order: Order | null;
|
|
1792
|
+
order_id: number | null;
|
|
1793
|
+
description: string | null;
|
|
1794
|
+
created_at: string;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
interface VipCardResponse {
|
|
1798
|
+
data: VipCard;
|
|
1799
|
+
}
|
|
1800
|
+
interface VipCardsResponse {
|
|
1071
1801
|
data: {
|
|
1072
|
-
|
|
1802
|
+
vip_cards: VipCard[];
|
|
1073
1803
|
total: number;
|
|
1074
1804
|
};
|
|
1075
|
-
message: string;
|
|
1076
1805
|
}
|
|
1077
|
-
|
|
1078
|
-
interface ValidateGiftBondResponse {
|
|
1806
|
+
interface VipTransactionsResponse {
|
|
1079
1807
|
data: {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
code: string;
|
|
1083
|
-
bond?: GiftBond;
|
|
1808
|
+
transactions: VipTransaction[];
|
|
1809
|
+
total: number;
|
|
1084
1810
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1811
|
+
}
|
|
1812
|
+
interface VipOrderResponse {
|
|
1813
|
+
data: Order;
|
|
1087
1814
|
}
|
|
1088
1815
|
|
|
1089
|
-
interface
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1816
|
+
interface Membership extends Auditable {
|
|
1817
|
+
id: number;
|
|
1818
|
+
name: string;
|
|
1819
|
+
description: string;
|
|
1820
|
+
benefits: string[] | null;
|
|
1821
|
+
price: number;
|
|
1822
|
+
duration_days: number;
|
|
1823
|
+
min_recharge: number;
|
|
1824
|
+
status: MembershipStatus;
|
|
1825
|
+
discount_percentage: number;
|
|
1826
|
+
service_fee_exempt: boolean;
|
|
1827
|
+
applicable_show_ids: number[] | null;
|
|
1828
|
+
excluded_show_ids: number[] | null;
|
|
1093
1829
|
}
|
|
1094
1830
|
|
|
1095
|
-
interface
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1831
|
+
interface FetchVipCardsParams extends CommonFetchAllParams {
|
|
1832
|
+
status?: VipCardStatus;
|
|
1833
|
+
membership_id?: number;
|
|
1834
|
+
customer_id?: number;
|
|
1835
|
+
sort_by?: 'vip_card.id' | 'vip_card.uuid' | 'vip_card.customer_id' | 'vip_card.membership_id' | 'vip_card.balance' | 'vip_card.status' | 'vip_card.activated_at' | 'vip_card.last_activity_at' | 'vip_card.expires_at' | 'vip_card.last_low_balance_alert_at' | 'vip_card.last_expiry_alert_at' | 'vip_card.created_at' | 'vip_card.updated_at';
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
interface ActivateVipCardParams {
|
|
1839
|
+
customer_id: number;
|
|
1840
|
+
membership_id: number;
|
|
1841
|
+
amount: number;
|
|
1842
|
+
payment_method?: string | null;
|
|
1843
|
+
terms_accepted: boolean;
|
|
1844
|
+
data_processing_accepted: boolean;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
interface VipRechargeConfirmPayload {
|
|
1848
|
+
amount: number;
|
|
1849
|
+
payment_method: string;
|
|
1850
|
+
terms_accepted: boolean;
|
|
1851
|
+
data_processing_accepted: boolean;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
declare const DOCUMENT_TYPES_OPTIONS: SelectOption[];
|
|
1855
|
+
|
|
1856
|
+
declare const PAYMENT_METHODS_OPTIONS: SelectOption[];
|
|
1857
|
+
declare const ORDER_STATUS_COLORS: Record<OrderStatus, {
|
|
1858
|
+
text: string;
|
|
1859
|
+
bg: string;
|
|
1860
|
+
}>;
|
|
1861
|
+
declare const ORDER_ITEM_TYPES_COLORS: Record<OrderItemType, {
|
|
1862
|
+
text: string;
|
|
1863
|
+
bg: string;
|
|
1864
|
+
}>;
|
|
1865
|
+
declare const ORDER_DISCOUNT_COLORS: Record<string, {
|
|
1866
|
+
text: string;
|
|
1867
|
+
bg: string;
|
|
1868
|
+
}>;
|
|
1869
|
+
declare const TRANSACTION_STATUS_COLORS: Record<TransactionStatus, {
|
|
1870
|
+
text: string;
|
|
1871
|
+
bg: string;
|
|
1872
|
+
}>;
|
|
1873
|
+
|
|
1874
|
+
declare const PERFORMANCE_TICKET_STATUS_COLORS: Record<PerformanceTicketStatus, {
|
|
1875
|
+
text: string;
|
|
1876
|
+
bg: string;
|
|
1877
|
+
}>;
|
|
1878
|
+
declare const PERFORMANCE_STATUS_COLORS: Record<PerformanceStatus, {
|
|
1879
|
+
text: string;
|
|
1880
|
+
bg: string;
|
|
1881
|
+
}>;
|
|
1882
|
+
|
|
1883
|
+
declare const TICKET_MAP_LAST_TICKETS_LIMIT = 10;
|
|
1884
|
+
declare const TICKET_ELEMENT_TYPES: RoomMapElementType[];
|
|
1885
|
+
declare const DEFAULT_STAGE_CONFIG: {
|
|
1886
|
+
[x: string]: any;
|
|
1887
|
+
};
|
|
1888
|
+
declare const TICKET_STATUS_COLORS: Record<PerformanceTicketStatus, string>;
|
|
1889
|
+
declare const TICKET_STATUS_FILLS: Record<PerformanceTicketStatus, string>;
|
|
1890
|
+
declare const TICKET_STATUS_LABELS: Record<PerformanceTicketStatus, string>;
|
|
1891
|
+
declare const TICKET_MAP_GRID_SIZE = 30;
|
|
1892
|
+
declare const TICKET_MAP_TITLE_HEIGHT = 30;
|
|
1893
|
+
|
|
1894
|
+
interface KonvaShapeConfig {
|
|
1895
|
+
config: ShapeConfig;
|
|
1896
|
+
layer: 'background' | 'elements' | 'foreground' | 'overlay';
|
|
1100
1897
|
}
|
|
1101
1898
|
|
|
1899
|
+
declare function drawRoundedRect(con: Context, shape: Shape, x: number, y: number, width: number, height: number, cornerRadius: number): void;
|
|
1900
|
+
|
|
1901
|
+
declare const generateExitScene: (con: Context, shape: Shape) => void;
|
|
1902
|
+
|
|
1903
|
+
declare const generateHallwayScene: (con: Context, shape: Shape) => void;
|
|
1904
|
+
|
|
1905
|
+
declare const generateProductionAreaScene: (con: Context, shape: Shape) => void;
|
|
1906
|
+
|
|
1907
|
+
declare const generateSeatBlockScene: (con: Context, shape: Shape, numerationConfig?: {
|
|
1908
|
+
start_row_letter: string;
|
|
1909
|
+
row_order: "TOP_TO_BOTTOM" | "BOTTOM_TO_TOP";
|
|
1910
|
+
start_column_number: number;
|
|
1911
|
+
column_order: "LEFT_TO_RIGHT" | "RIGHT_TO_LEFT";
|
|
1912
|
+
}) => void;
|
|
1913
|
+
|
|
1914
|
+
declare const generateStageScene: (con: Context, shape: Shape) => void;
|
|
1915
|
+
|
|
1916
|
+
declare const generateStairScene: (con: Context, shape: Shape) => void;
|
|
1917
|
+
|
|
1918
|
+
declare const generateTableScene: (con: Context, shape: Shape) => void;
|
|
1919
|
+
|
|
1920
|
+
declare const generateUnavailableSpaceScene: (con: Context, shape: Shape) => void;
|
|
1921
|
+
|
|
1922
|
+
declare const generateZoneScene: (con: Context, shape: Shape) => void;
|
|
1923
|
+
|
|
1924
|
+
declare const KONVA_SHAPE_MAPPINGS: Record<RoomMapElementType, KonvaShapeConfig>;
|
|
1925
|
+
|
|
1926
|
+
declare const SHOW_TYPE_COLORS: Record<ShowType, {
|
|
1927
|
+
bg: string;
|
|
1928
|
+
text: string;
|
|
1929
|
+
}>;
|
|
1930
|
+
|
|
1102
1931
|
declare const getCustomerFullname: (customer: Customer) => string;
|
|
1103
1932
|
|
|
1933
|
+
type OrderDiscountType = 'coupon' | 'corporate_bond' | 'gift_bond';
|
|
1934
|
+
interface OrderDiscountInfo {
|
|
1935
|
+
type: OrderDiscountType | null;
|
|
1936
|
+
code: string | null;
|
|
1937
|
+
name: string | null;
|
|
1938
|
+
value: number;
|
|
1939
|
+
discountType: 'percentage' | 'fixed' | null;
|
|
1940
|
+
icon: string;
|
|
1941
|
+
}
|
|
1942
|
+
declare function getOrderDiscount(order: Order): OrderDiscountInfo;
|
|
1943
|
+
|
|
1104
1944
|
declare function parseJsonToFormDataAdvanced(imageGallery: any[]): FormData;
|
|
1105
1945
|
|
|
1106
1946
|
declare const transformImageToFile: (image: ShowImage | VenueImage) => UploadedFile;
|
|
1107
1947
|
|
|
1108
|
-
declare const
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1948
|
+
declare const transformUrlParams: (params: any) => URLSearchParams;
|
|
1949
|
+
|
|
1950
|
+
declare const formatCitiesResponseToSelect: (res: CitiesResponse) => {
|
|
1951
|
+
value: number;
|
|
1952
|
+
label: string;
|
|
1953
|
+
}[];
|
|
1954
|
+
|
|
1955
|
+
declare function tintColor(hex: string, amount?: number): string;
|
|
1956
|
+
|
|
1957
|
+
declare const drawChairIcon: (con: Context, cx: number, cy: number, size: number) => void;
|
|
1958
|
+
|
|
1959
|
+
declare const drawHappyFace: (con: Context, cx: number, cy: number, size: number) => void;
|
|
1960
|
+
|
|
1961
|
+
declare const drawWheelchairIcon: (con: Context, shape: Shape, cx: number, cy: number, size: number, fillColor?: string, strokeColor?: string) => void;
|
|
1962
|
+
|
|
1963
|
+
declare const numberToLetter: (num: number) => string;
|
|
1964
|
+
|
|
1965
|
+
declare const getItemTypeIcon: (ticket: PerformanceTicket) => string;
|
|
1966
|
+
|
|
1967
|
+
declare const generateSeatBlockTicketScene: (con: Context, shape: Shape, numerationConfig?: {
|
|
1968
|
+
start_row_letter: string;
|
|
1969
|
+
row_order: "TOP_TO_BOTTOM" | "BOTTOM_TO_TOP";
|
|
1970
|
+
start_column_number: number;
|
|
1971
|
+
column_order: "LEFT_TO_RIGHT" | "RIGHT_TO_LEFT";
|
|
1972
|
+
}, ticketStatusMap?: Map<string, PerformanceTicketStatus>) => void;
|
|
1973
|
+
|
|
1974
|
+
declare const generateTableTicketScene: (con: Context, shape: Shape, chairTicketStatuses?: PerformanceTicketStatus[], tableSeats?: RoomMapSeatState[][]) => void;
|
|
1975
|
+
|
|
1976
|
+
declare function processElementsToRenderData(elements: RoomMapElementTemplate[], tickets: PerformanceTicket[], priceZones?: {
|
|
1977
|
+
id: number;
|
|
1978
|
+
color: string;
|
|
1979
|
+
}[]): ElementRenderData[];
|
|
1980
|
+
declare function findTicketAtPosition(renderData: ElementRenderData, relX: number, relY: number): PerformanceTicket | null;
|
|
1981
|
+
declare function findElementAtPosition(renderDataList: ElementRenderData[], stageX: number, stageY: number): {
|
|
1982
|
+
element: ElementRenderData;
|
|
1983
|
+
relX: number;
|
|
1984
|
+
relY: number;
|
|
1985
|
+
} | null;
|
|
1986
|
+
|
|
1987
|
+
declare const ticketCanOpenQr: (order: Order, ticket: PerformanceTicket) => boolean;
|
|
1112
1988
|
|
|
1113
1989
|
declare function MinTodayValidator(controlName: string): ValidatorFn;
|
|
1114
1990
|
declare function EndDateGreaterThanStartValidator(startDateControlName: string, endDateControlName: string): ValidatorFn;
|
|
1115
1991
|
|
|
1116
1992
|
declare function MustMatchValidator(controlName: string, matchingControlName: string): ValidatorFn;
|
|
1117
1993
|
|
|
1994
|
+
declare function emailValidator(): ValidatorFn;
|
|
1995
|
+
|
|
1118
1996
|
declare class ApiService {
|
|
1119
1997
|
private http;
|
|
1120
1998
|
private platformId;
|
|
@@ -1140,16 +2018,6 @@ declare class ToastService {
|
|
|
1140
2018
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
1141
2019
|
}
|
|
1142
2020
|
|
|
1143
|
-
declare class LoadingModalService {
|
|
1144
|
-
title: WritableSignal<string>;
|
|
1145
|
-
isOpen: WritableSignal<boolean>;
|
|
1146
|
-
get modalIsOpen(): WritableSignal<boolean>;
|
|
1147
|
-
open(title?: string): void;
|
|
1148
|
-
close(): void;
|
|
1149
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingModalService, never>;
|
|
1150
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingModalService>;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
2021
|
declare class DeleteConfirmationService {
|
|
1154
2022
|
title: WritableSignal<string>;
|
|
1155
2023
|
resourceName: WritableSignal<string>;
|
|
@@ -1193,7 +2061,7 @@ declare class DateService {
|
|
|
1193
2061
|
declare class AdminService {
|
|
1194
2062
|
private apiService;
|
|
1195
2063
|
constructor(apiService: ApiService);
|
|
1196
|
-
fetchAdmins(
|
|
2064
|
+
fetchAdmins(params: FetchAdminsParams): Observable<AdminsResponse>;
|
|
1197
2065
|
deleteOne(id: number): Observable<any>;
|
|
1198
2066
|
createOne(data: any): Observable<any>;
|
|
1199
2067
|
updateOne(id: number, data: any): Observable<any>;
|
|
@@ -1204,7 +2072,7 @@ declare class AdminService {
|
|
|
1204
2072
|
declare class CitiesService {
|
|
1205
2073
|
private apiService;
|
|
1206
2074
|
constructor(apiService: ApiService);
|
|
1207
|
-
fetchCities(
|
|
2075
|
+
fetchCities(params: FetchCitiesParams): Observable<CitiesResponse>;
|
|
1208
2076
|
createOne(data: City): Observable<CityResponse>;
|
|
1209
2077
|
updateOne(id: number, data: City): Observable<CityResponse>;
|
|
1210
2078
|
deleteOne(id: number): Observable<any>;
|
|
@@ -1215,7 +2083,7 @@ declare class CitiesService {
|
|
|
1215
2083
|
declare class CountryService {
|
|
1216
2084
|
private apiService;
|
|
1217
2085
|
constructor(apiService: ApiService);
|
|
1218
|
-
fetchCountries(
|
|
2086
|
+
fetchCountries(params: FetchCountriesParams): Observable<CountriesResponse>;
|
|
1219
2087
|
createOne(data: Country): Observable<CountryResponse>;
|
|
1220
2088
|
updateOne(id: number, data: Country): Observable<CountryResponse>;
|
|
1221
2089
|
deleteOne(id: number): Observable<any>;
|
|
@@ -1226,7 +2094,7 @@ declare class CountryService {
|
|
|
1226
2094
|
declare class StatesService {
|
|
1227
2095
|
private apiService;
|
|
1228
2096
|
constructor(apiService: ApiService);
|
|
1229
|
-
fetchStates(
|
|
2097
|
+
fetchStates(params: FetchStatesParams): Observable<StatesResponse>;
|
|
1230
2098
|
fetchStatesByCountryId(countryId: number): Observable<StatesResponse>;
|
|
1231
2099
|
createOne(data: State): Observable<StateResponse>;
|
|
1232
2100
|
updateOne(id: number, data: State): Observable<StateResponse>;
|
|
@@ -1240,7 +2108,7 @@ declare class PerformanceService {
|
|
|
1240
2108
|
private performancesSubject;
|
|
1241
2109
|
performances$: Observable<Performance[]>;
|
|
1242
2110
|
constructor(apiService: ApiService);
|
|
1243
|
-
fetchPerformances(showId
|
|
2111
|
+
fetchPerformances({ showId, roomMapId, hallId, search, page, limit, }: FindAllPerformancesParams): Observable<PerformancesResponseInterface>;
|
|
1244
2112
|
fetchDailyPerformances({ show_id, search, limit, date, }: FetchDailyPerformancesParams): Observable<DailyPerformancesResponse>;
|
|
1245
2113
|
loadPerformances({ showId, search }?: {
|
|
1246
2114
|
showId?: number;
|
|
@@ -1248,7 +2116,7 @@ declare class PerformanceService {
|
|
|
1248
2116
|
}): void;
|
|
1249
2117
|
getCurrentPerformances(): Performance[];
|
|
1250
2118
|
fetchOneById(id: number): Observable<PerformanceResponse>;
|
|
1251
|
-
fetchOneBookingData(id: number): Observable<PerformanceBookingDataResponse>;
|
|
2119
|
+
fetchOneBookingData(id: number, isAdmin?: boolean): Observable<PerformanceBookingDataResponse>;
|
|
1252
2120
|
fetchAvailableDays(params?: {
|
|
1253
2121
|
show_id?: number;
|
|
1254
2122
|
}): Observable<PerformancesAvailableDaysResponse>;
|
|
@@ -1278,25 +2146,6 @@ declare class PerformancesListEventsService {
|
|
|
1278
2146
|
static ɵprov: i0.ɵɵInjectableDeclaration<PerformancesListEventsService>;
|
|
1279
2147
|
}
|
|
1280
2148
|
|
|
1281
|
-
declare class ProductService {
|
|
1282
|
-
private apiService;
|
|
1283
|
-
private productsSubject;
|
|
1284
|
-
products$: Observable<Product[]>;
|
|
1285
|
-
constructor(apiService: ApiService);
|
|
1286
|
-
fetchProducts(page: number, search: string): Observable<ProductsResponseInterface>;
|
|
1287
|
-
loadProducts({ page, search }?: {
|
|
1288
|
-
page?: number;
|
|
1289
|
-
search?: string;
|
|
1290
|
-
}): void;
|
|
1291
|
-
getCurrentProducts(): Product[];
|
|
1292
|
-
fetchOneById(id: number): Observable<ProductResponse>;
|
|
1293
|
-
createOne(data: Product): Observable<any>;
|
|
1294
|
-
updateOne(id: number, data: any): Observable<ProductResponse>;
|
|
1295
|
-
deleteOne(id: number): Observable<any>;
|
|
1296
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, never>;
|
|
1297
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
2149
|
declare class ShowService {
|
|
1301
2150
|
private apiService;
|
|
1302
2151
|
private showsSubject;
|
|
@@ -1304,7 +2153,7 @@ declare class ShowService {
|
|
|
1304
2153
|
constructor(apiService: ApiService);
|
|
1305
2154
|
loadShows({ page, search }?: FetchShowsParams): void;
|
|
1306
2155
|
getCurrentShows(): Show[];
|
|
1307
|
-
fetchShows(
|
|
2156
|
+
fetchShows(params: FetchShowsParams): Observable<ShowsResponseInterface>;
|
|
1308
2157
|
fetchAvailableShows({ date, limit, page, search, }: FetchShowsParams): Observable<ShowsResponseInterface>;
|
|
1309
2158
|
fetchOneById(id: number): Observable<ShowResponse>;
|
|
1310
2159
|
createOne(data: Show): Observable<ShowResponse>;
|
|
@@ -1325,7 +2174,7 @@ declare class CustomerService {
|
|
|
1325
2174
|
private apiService;
|
|
1326
2175
|
constructor(apiService: ApiService);
|
|
1327
2176
|
createOne(data: Customer): Observable<CustomerResponse>;
|
|
1328
|
-
fetchCustomers(
|
|
2177
|
+
fetchCustomers(params: FetchCustomersParams): Observable<CustomersResponse>;
|
|
1329
2178
|
fetchOneById(id: number): Observable<CustomerResponse>;
|
|
1330
2179
|
updateOne(id: number, data: any): Observable<CustomerResponse>;
|
|
1331
2180
|
deleteOne(id: number): Observable<any>;
|
|
@@ -1377,6 +2226,472 @@ declare class PriceZoneFormModalService {
|
|
|
1377
2226
|
static ɵprov: i0.ɵɵInjectableDeclaration<PriceZoneFormModalService>;
|
|
1378
2227
|
}
|
|
1379
2228
|
|
|
2229
|
+
declare class ProductCategoryService {
|
|
2230
|
+
private apiService;
|
|
2231
|
+
constructor(apiService: ApiService);
|
|
2232
|
+
fetchCategories(params: FetchProductCategoriesParams): Observable<ProductCategoriesResponse>;
|
|
2233
|
+
fetchOneById(id: number): Observable<ProductCategoryResponse>;
|
|
2234
|
+
createOne(data: ProductCategory): Observable<any>;
|
|
2235
|
+
updateOne(id: number, data: ProductCategory): Observable<ProductCategoryResponse>;
|
|
2236
|
+
deleteOne(id: number): Observable<any>;
|
|
2237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryService, never>;
|
|
2238
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductCategoryService>;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
declare class ProductTagService {
|
|
2242
|
+
private apiService;
|
|
2243
|
+
constructor(apiService: ApiService);
|
|
2244
|
+
fetchTags(params: FetchProductTagsParams): Observable<ProductTagsResponse>;
|
|
2245
|
+
fetchOneById(id: number): Observable<ProductTagResponse>;
|
|
2246
|
+
createOne(data: ProductTag): Observable<any>;
|
|
2247
|
+
updateOne(id: number, data: ProductTag): Observable<ProductTagResponse>;
|
|
2248
|
+
deleteOne(id: number): Observable<any>;
|
|
2249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductTagService, never>;
|
|
2250
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductTagService>;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
declare class ProductTypeService {
|
|
2254
|
+
private apiService;
|
|
2255
|
+
constructor(apiService: ApiService);
|
|
2256
|
+
fetchTypes(params: FetchProductTypesParams): Observable<ProductTypesResponse>;
|
|
2257
|
+
fetchOneById(id: number): Observable<ProductTypeResponse>;
|
|
2258
|
+
createOne(data: ProductType): Observable<any>;
|
|
2259
|
+
updateOne(id: number, data: ProductType): Observable<ProductTypeResponse>;
|
|
2260
|
+
deleteOne(id: number): Observable<any>;
|
|
2261
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductTypeService, never>;
|
|
2262
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductTypeService>;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
declare class ProductService {
|
|
2266
|
+
private apiService;
|
|
2267
|
+
private productsSubject;
|
|
2268
|
+
products$: Observable<Product[]>;
|
|
2269
|
+
constructor(apiService: ApiService);
|
|
2270
|
+
fetchProducts(params: FetchProductsParams): Observable<ProductsResponseInterface>;
|
|
2271
|
+
loadProducts(params: FetchProductsParams): void;
|
|
2272
|
+
getCurrentProducts(): Product[];
|
|
2273
|
+
fetchOneById(id: number): Observable<ProductResponse>;
|
|
2274
|
+
createOne(data: Product): Observable<any>;
|
|
2275
|
+
updateOne(id: number, data: any): Observable<ProductResponse>;
|
|
2276
|
+
deleteOne(id: number): Observable<any>;
|
|
2277
|
+
fetchImages(id: number): Observable<{
|
|
2278
|
+
data: ProductImage[];
|
|
2279
|
+
}>;
|
|
2280
|
+
uploadImages(id: number, files?: FormData): Observable<{
|
|
2281
|
+
data: ProductImage[];
|
|
2282
|
+
}>;
|
|
2283
|
+
deleteOneImage(productId: number, imageId: number): Observable<any>;
|
|
2284
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, never>;
|
|
2285
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
declare class BaseModalService {
|
|
2289
|
+
readonly isOpen: WritableSignal<boolean>;
|
|
2290
|
+
get modalIsOpen(): WritableSignal<boolean>;
|
|
2291
|
+
open(): void;
|
|
2292
|
+
close(): void;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
declare class FeedbackModalService {
|
|
2296
|
+
private _modals;
|
|
2297
|
+
readonly modals: i0.Signal<FeedbackModalElement[]>;
|
|
2298
|
+
addModal(modal: FeedbackModalElement): void;
|
|
2299
|
+
removeModal(id: string): void;
|
|
2300
|
+
removeAllModals(): void;
|
|
2301
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackModalService, never>;
|
|
2302
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FeedbackModalService>;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Tope de entradas por selección/compra. Por defecto es `null` (sin límite),
|
|
2307
|
+
* que es lo que necesita el backoffice (admin puede seleccionar todo).
|
|
2308
|
+
* El ecommerce, que sí debe limitar, llama a `load()` una vez al iniciar la
|
|
2309
|
+
* app para traer el valor configurado en el formulario de personalización.
|
|
2310
|
+
*/
|
|
2311
|
+
declare class PurchaseLimitService {
|
|
2312
|
+
private apiService;
|
|
2313
|
+
private _maxTicketsPerSelection;
|
|
2314
|
+
readonly maxTicketsPerSelection: i0.Signal<number | null>;
|
|
2315
|
+
constructor(apiService: ApiService);
|
|
2316
|
+
setMaxTicketsPerSelection(max: number | null): void;
|
|
2317
|
+
load(): Observable<number | null>;
|
|
2318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseLimitService, never>;
|
|
2319
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PurchaseLimitService>;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
declare class OrderTransactionDetailsModalService {
|
|
2323
|
+
readonly isOpen: WritableSignal<boolean>;
|
|
2324
|
+
transaction: WritableSignal<Transaction | null>;
|
|
2325
|
+
get modalIsOpen(): WritableSignal<boolean>;
|
|
2326
|
+
open(transaction: Transaction): void;
|
|
2327
|
+
close(): void;
|
|
2328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionDetailsModalService, never>;
|
|
2329
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderTransactionDetailsModalService>;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
declare class PerformanceBookingDataService {
|
|
2333
|
+
private _show;
|
|
2334
|
+
private _performance;
|
|
2335
|
+
private _roomMap;
|
|
2336
|
+
private _hallFloors;
|
|
2337
|
+
private _selectedHallFloor;
|
|
2338
|
+
private _allRenderData;
|
|
2339
|
+
private _visibleFloorIds;
|
|
2340
|
+
private _stageConfig;
|
|
2341
|
+
private _lastTickets;
|
|
2342
|
+
readonly show: i0.Signal<Show | null>;
|
|
2343
|
+
readonly hallFloors: i0.Signal<HallFloor[]>;
|
|
2344
|
+
readonly selectedHallFloor: i0.Signal<HallFloor | null>;
|
|
2345
|
+
readonly performance: i0.Signal<Performance | null>;
|
|
2346
|
+
readonly stageConfig: i0.Signal<{
|
|
2347
|
+
[x: string]: any;
|
|
2348
|
+
}>;
|
|
2349
|
+
readonly roomMap: i0.Signal<RoomMap | null>;
|
|
2350
|
+
readonly visibleFloorIds: i0.Signal<Set<number>>;
|
|
2351
|
+
readonly availableFloors: i0.Signal<HallFloor[]>;
|
|
2352
|
+
readonly renderData: i0.Signal<ElementRenderData[]>;
|
|
2353
|
+
setPerformanceBookingData({ data }: PerformanceBookingDataResponse): void;
|
|
2354
|
+
/** Aplica actualizaciones de estado de tickets recibidas por SSE (ver
|
|
2355
|
+
* SeatAvailabilitySseService) sin volver a pedir todo el booking-data:
|
|
2356
|
+
* parcha `_lastTickets` y vuelve a calcular el render data del mapa con
|
|
2357
|
+
* los mismos `elements`/`price_zones` (que no cambian en vivo). */
|
|
2358
|
+
applySeatStatusUpdates(updates: SeatStatusUpdate[]): void;
|
|
2359
|
+
setRoomMap(roomMap: RoomMap | null): void;
|
|
2360
|
+
setAllRenderData(data: ElementRenderData[]): void;
|
|
2361
|
+
setPerformance(performance: Performance | null): void;
|
|
2362
|
+
setShow(show: Show | null): void;
|
|
2363
|
+
setHallFloors(data: HallFloor[]): void;
|
|
2364
|
+
setSelectedHallFloor(id: number): void;
|
|
2365
|
+
toggleFloorVisibility(floorId: number): void;
|
|
2366
|
+
isFloorVisible(floorId: number): boolean;
|
|
2367
|
+
updateStageConfig(data: {
|
|
2368
|
+
[x: string]: any;
|
|
2369
|
+
}): void;
|
|
2370
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceBookingDataService, never>;
|
|
2371
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PerformanceBookingDataService>;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
declare class TicketSelectionDetailsService {
|
|
2375
|
+
private _customerEmail;
|
|
2376
|
+
private _customerId;
|
|
2377
|
+
private _paymentMethod;
|
|
2378
|
+
private _billingInformation;
|
|
2379
|
+
readonly customerEmail: i0.Signal<string | null>;
|
|
2380
|
+
readonly customerId: i0.Signal<number | null>;
|
|
2381
|
+
readonly paymentMethod: i0.Signal<string | null>;
|
|
2382
|
+
readonly billingInformation: i0.Signal<Customer | null>;
|
|
2383
|
+
setCustomerEmail(email: string | null): void;
|
|
2384
|
+
setCustomerId(id: number | null): void;
|
|
2385
|
+
setPaymentMethod(method: string | null): void;
|
|
2386
|
+
setBillingInformation(values: Customer): void;
|
|
2387
|
+
clearSelection(): void;
|
|
2388
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDetailsService, never>;
|
|
2389
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDetailsService>;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
declare class TicketSelectionDiscountService {
|
|
2393
|
+
private _coupon;
|
|
2394
|
+
private _corporateBond;
|
|
2395
|
+
private _corporateBondCode;
|
|
2396
|
+
private _giftBond;
|
|
2397
|
+
private _giftBondCode;
|
|
2398
|
+
readonly coupon: Signal<Coupon | null>;
|
|
2399
|
+
readonly corporateBond: Signal<CorporateBond | null>;
|
|
2400
|
+
readonly corporateBondCode: Signal<string | null>;
|
|
2401
|
+
readonly giftBond: Signal<GiftBondPurchase | null>;
|
|
2402
|
+
readonly giftBondCode: Signal<string | null>;
|
|
2403
|
+
readonly selectedDiscount: Signal<SelectedDiscountCard | null>;
|
|
2404
|
+
readonly selectedDiscountType: Signal<SelectedDiscountCardType | undefined>;
|
|
2405
|
+
readonly selectedDiscountValue: Signal<number | undefined>;
|
|
2406
|
+
setCoupon(coupon: Coupon | null): void;
|
|
2407
|
+
setCorporateBond(corporateBond: CorporateBond | null): void;
|
|
2408
|
+
setCorporateBondCode(code: string | null): void;
|
|
2409
|
+
setGiftBond(giftBond: GiftBondPurchase | null): void;
|
|
2410
|
+
setGiftBondCode(code: string | null): void;
|
|
2411
|
+
clearSelection(): void;
|
|
2412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDiscountService, never>;
|
|
2413
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDiscountService>;
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
declare class TicketSelectionTotalsService {
|
|
2417
|
+
private bookingDataService;
|
|
2418
|
+
private selectionService;
|
|
2419
|
+
private selectionDiscountService;
|
|
2420
|
+
readonly selectedProductEntries: i0.Signal<{
|
|
2421
|
+
id: number;
|
|
2422
|
+
quantity: number;
|
|
2423
|
+
}[]>;
|
|
2424
|
+
readonly selectedProductCount: i0.Signal<number>;
|
|
2425
|
+
readonly productSubtotal: i0.Signal<number>;
|
|
2426
|
+
readonly ticketSubtotal: i0.Signal<number>;
|
|
2427
|
+
readonly serviceFee: i0.Signal<number>;
|
|
2428
|
+
readonly discountAmount: i0.Signal<number | null>;
|
|
2429
|
+
subtotalValue(): number;
|
|
2430
|
+
totalValue(): number;
|
|
2431
|
+
totalDiscounted(): number | null;
|
|
2432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionTotalsService, never>;
|
|
2433
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionTotalsService>;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
declare class TicketSelectionService {
|
|
2437
|
+
private bookingDataService;
|
|
2438
|
+
private feedbackModalService;
|
|
2439
|
+
private purchaseLimitService;
|
|
2440
|
+
private selectionDetailsService;
|
|
2441
|
+
private selectionDiscountService;
|
|
2442
|
+
private _zoneQuantities;
|
|
2443
|
+
private _allTickets;
|
|
2444
|
+
private _selectedTickets;
|
|
2445
|
+
private _selectedBlockedTickets;
|
|
2446
|
+
private _products;
|
|
2447
|
+
private _productQuantities;
|
|
2448
|
+
readonly selectedTickets: i0.Signal<PerformanceTicket[]>;
|
|
2449
|
+
readonly selectedBlockedTickets: i0.Signal<PerformanceTicket[]>;
|
|
2450
|
+
readonly selectedCount: i0.Signal<number>;
|
|
2451
|
+
readonly blockedSelectedCount: i0.Signal<number>;
|
|
2452
|
+
readonly selectedTicketIds: i0.Signal<Set<PerformanceTicket>>;
|
|
2453
|
+
readonly selectedBlockedTicketIds: i0.Signal<number[]>;
|
|
2454
|
+
readonly selectedTicketIdList: i0.Signal<number[]>;
|
|
2455
|
+
readonly summaryItems: i0.Signal<PerformanceTicket[]>;
|
|
2456
|
+
readonly products: i0.Signal<Product[]>;
|
|
2457
|
+
readonly productQuantities: i0.Signal<Map<number, number>>;
|
|
2458
|
+
readonly selectedProductEntries: i0.Signal<{
|
|
2459
|
+
id: number;
|
|
2460
|
+
quantity: number;
|
|
2461
|
+
}[]>;
|
|
2462
|
+
readonly selectedProductCount: i0.Signal<number>;
|
|
2463
|
+
readonly serviceFee: i0.Signal<number>;
|
|
2464
|
+
setTickets(tickets: PerformanceTicket[]): void;
|
|
2465
|
+
/** Aplica actualizaciones de estado recibidas por SSE (ver
|
|
2466
|
+
* SeatAvailabilitySseService). Muta los tickets existentes EN VEZ de
|
|
2467
|
+
* reemplazarlos por objetos nuevos: `_selectedTickets`/
|
|
2468
|
+
* `_selectedBlockedTickets` son Sets de referencias de objeto, no de ids,
|
|
2469
|
+
* así que reemplazar el array rompería la selección activa del usuario. */
|
|
2470
|
+
applySeatStatusUpdates(updates: SeatStatusUpdate[]): void;
|
|
2471
|
+
setProducts(products: Product[]): void;
|
|
2472
|
+
updateProductQuantity(productId: number, delta: number): void;
|
|
2473
|
+
getProductQuantity(productId: number): number;
|
|
2474
|
+
private getListByStatus;
|
|
2475
|
+
setSelectedTickets(tickets: PerformanceTicket[]): void;
|
|
2476
|
+
toggle(ticket: PerformanceTicket): void;
|
|
2477
|
+
select(ticket: PerformanceTicket): void;
|
|
2478
|
+
deselect(ticket: PerformanceTicket): void;
|
|
2479
|
+
clearBlockedSelection(): void;
|
|
2480
|
+
clearSelection(): void;
|
|
2481
|
+
isSelected(ticket: PerformanceTicket): boolean;
|
|
2482
|
+
initZoneQuantity(elementId: number, maxCapacity: number): void;
|
|
2483
|
+
getZoneMax(elementId: number): number;
|
|
2484
|
+
getZoneSelectedCount(elementId: number): number;
|
|
2485
|
+
setZoneQuantity(elementId: number, target: number): void;
|
|
2486
|
+
adjustZoneQuantity(elementId: number, delta: number): void;
|
|
2487
|
+
private remainingSelectionAllowance;
|
|
2488
|
+
private canAddMoreToSelection;
|
|
2489
|
+
private notifyPurchaseLimitReached;
|
|
2490
|
+
getZoneTickets(elementId: number): PerformanceTicket[];
|
|
2491
|
+
buildTooltipData(ticket: PerformanceTicket, elementName: string, seatLabel: string | null, x: number, y: number): TicketMapTooltipData;
|
|
2492
|
+
buildReservePerformanceDto(paymentMethod?: string, termsAccepted?: boolean, dataProcessingAccepted?: boolean): ReservePerformanceDto;
|
|
2493
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionService, never>;
|
|
2494
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionService>;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
declare class TicketMapZoomService {
|
|
2498
|
+
readonly currentZoom: i0.WritableSignal<number>;
|
|
2499
|
+
private stage?;
|
|
2500
|
+
private bookingDataService;
|
|
2501
|
+
private readonly defaultConfig;
|
|
2502
|
+
constructor();
|
|
2503
|
+
/**
|
|
2504
|
+
* Set the Konva stage instance
|
|
2505
|
+
*/
|
|
2506
|
+
setStage(stage: Stage): void;
|
|
2507
|
+
/**
|
|
2508
|
+
* Zoom in by one step
|
|
2509
|
+
*/
|
|
2510
|
+
zoomIn(): void;
|
|
2511
|
+
/**
|
|
2512
|
+
* Zoom out by one step
|
|
2513
|
+
*/
|
|
2514
|
+
zoomOut(): void;
|
|
2515
|
+
/**
|
|
2516
|
+
* Reset zoom to 100%
|
|
2517
|
+
*/
|
|
2518
|
+
resetZoom(): void;
|
|
2519
|
+
/**
|
|
2520
|
+
* Get current zoom as percentage string
|
|
2521
|
+
*/
|
|
2522
|
+
getZoomPercentage(): string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Get current zoom value
|
|
2525
|
+
*/
|
|
2526
|
+
getCurrentZoom(): number;
|
|
2527
|
+
/**
|
|
2528
|
+
* Apply zoom with center point
|
|
2529
|
+
*/
|
|
2530
|
+
private applyZoom;
|
|
2531
|
+
/**
|
|
2532
|
+
* Apply zoom scale with specific center point
|
|
2533
|
+
*/
|
|
2534
|
+
private applyZoomScale;
|
|
2535
|
+
/**
|
|
2536
|
+
* Handle mouse wheel zoom toward the cursor position
|
|
2537
|
+
*/
|
|
2538
|
+
handleWheelZoom(deltaY: number): void;
|
|
2539
|
+
/**
|
|
2540
|
+
* Fit the content bounds to fill the stage container
|
|
2541
|
+
*/
|
|
2542
|
+
fitToContainer(padding?: number): void;
|
|
2543
|
+
/**
|
|
2544
|
+
* Get current stage position
|
|
2545
|
+
*/
|
|
2546
|
+
getStagePosition(): {
|
|
2547
|
+
x: number;
|
|
2548
|
+
y: number;
|
|
2549
|
+
};
|
|
2550
|
+
/**
|
|
2551
|
+
* Set stage position (useful for programmatic panning)
|
|
2552
|
+
*/
|
|
2553
|
+
setStagePosition(position: {
|
|
2554
|
+
x: number;
|
|
2555
|
+
y: number;
|
|
2556
|
+
}): void;
|
|
2557
|
+
/**
|
|
2558
|
+
* Fit the stage content bounds to the container, centering and scaling
|
|
2559
|
+
* to show the full content with optional padding.
|
|
2560
|
+
*/
|
|
2561
|
+
fitToBounds(contentBounds: {
|
|
2562
|
+
x: number;
|
|
2563
|
+
y: number;
|
|
2564
|
+
width: number;
|
|
2565
|
+
height: number;
|
|
2566
|
+
}, containerWidth: number, containerHeight: number, padding?: number): void;
|
|
2567
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomService, never>;
|
|
2568
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketMapZoomService>;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
declare class ConfirmationOrderModalService extends BaseModalService {
|
|
2572
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationOrderModalService, never>;
|
|
2573
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationOrderModalService>;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* Transporte SSE del estado de asientos en vivo. Es el único punto de la
|
|
2578
|
+
* librería que sabe de EventSource/HTTP para esto — aplica cada snapshot
|
|
2579
|
+
* recibido sobre PerformanceBookingDataService (repinta el mapa) y
|
|
2580
|
+
* TicketSelectionService (mantiene la disponibilidad al día para
|
|
2581
|
+
* validaciones de zona/límite de compra).
|
|
2582
|
+
*
|
|
2583
|
+
* Cada intento de reconexión pide un ticket NUEVO (el anterior es de un
|
|
2584
|
+
* solo uso y expira a los ~30s), con backoff exponencial acotado.
|
|
2585
|
+
*/
|
|
2586
|
+
declare class SeatAvailabilitySseService {
|
|
2587
|
+
private apiService;
|
|
2588
|
+
private bookingDataService;
|
|
2589
|
+
private ticketSelectionService;
|
|
2590
|
+
private platformId;
|
|
2591
|
+
private config;
|
|
2592
|
+
private eventSource;
|
|
2593
|
+
private reconnectTimer;
|
|
2594
|
+
private reconnectAttempts;
|
|
2595
|
+
private currentPerformanceId;
|
|
2596
|
+
private currentIsAdmin;
|
|
2597
|
+
private stopped;
|
|
2598
|
+
constructor(apiService: ApiService, bookingDataService: PerformanceBookingDataService, ticketSelectionService: TicketSelectionService, platformId: Object, config: TickeraComponentsConfig);
|
|
2599
|
+
connect(performanceId: number, opts?: {
|
|
2600
|
+
isAdmin?: boolean;
|
|
2601
|
+
}): void;
|
|
2602
|
+
disconnect(): void;
|
|
2603
|
+
private openConnection;
|
|
2604
|
+
private startStream;
|
|
2605
|
+
private scheduleReconnect;
|
|
2606
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeatAvailabilitySseService, never>;
|
|
2607
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SeatAvailabilitySseService>;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* Cliente de la cola adaptativa (fase 4). No decide CUÁNDO se activa la
|
|
2612
|
+
* cola — eso es enteramente responsabilidad del backend (AdmissionGuard +
|
|
2613
|
+
* LoadBasedAdmissionPolicy) — este servicio solo sabe reaccionar al 429
|
|
2614
|
+
* `ADMISSION_QUEUE_REQUIRED` que ese guard puede devolver en
|
|
2615
|
+
* /carts/reserve y /orders/checkout.
|
|
2616
|
+
*
|
|
2617
|
+
* Uso típico en el punto de llamada (ver reservation-confirmation y
|
|
2618
|
+
* checkout-form): reintentar la request original dentro de un catchError:
|
|
2619
|
+
*
|
|
2620
|
+
* this.cartService.reserve(dto).pipe(
|
|
2621
|
+
* catchError((err) => {
|
|
2622
|
+
* if (!this.admissionQueueService.isAdmissionRequired(err)) return throwError(() => err);
|
|
2623
|
+
* const performanceId = this.admissionQueueService.getPerformanceId(err)!;
|
|
2624
|
+
* return this.admissionQueueService.waitForAdmission(performanceId).pipe(
|
|
2625
|
+
* switchMap(() => this.cartService.reserve(dto)),
|
|
2626
|
+
* );
|
|
2627
|
+
* }),
|
|
2628
|
+
* )
|
|
2629
|
+
*
|
|
2630
|
+
* Reutiliza el mismo transporte SSE con ticket de un solo uso de la fase 3
|
|
2631
|
+
* (ver SeatAvailabilitySseService) — acá el ticket llega directo en la
|
|
2632
|
+
* respuesta de /join, así que no hace falta un endpoint de ticket aparte;
|
|
2633
|
+
* cada reintento de conexión vuelve a hacer /join (el ticket anterior es
|
|
2634
|
+
* de un solo uso y expira a los ~30s).
|
|
2635
|
+
*/
|
|
2636
|
+
declare class AdmissionQueueService {
|
|
2637
|
+
private apiService;
|
|
2638
|
+
private feedbackModalService;
|
|
2639
|
+
private platformId;
|
|
2640
|
+
private config;
|
|
2641
|
+
constructor(apiService: ApiService, feedbackModalService: FeedbackModalService, platformId: Object, config: TickeraComponentsConfig);
|
|
2642
|
+
/** True si el error es el 429 específico de "alta demanda, únete a la fila". */
|
|
2643
|
+
isAdmissionRequired(error: unknown): error is HttpErrorResponse;
|
|
2644
|
+
getPerformanceId(error: HttpErrorResponse): number | null;
|
|
2645
|
+
/**
|
|
2646
|
+
* Se une a la fila de `performanceId` y completa (emite una vez y cierra)
|
|
2647
|
+
* en cuanto el usuario queda admitido. Mientras espera, muestra un modal
|
|
2648
|
+
* ligero con la posición vigente, actualizado por SSE. Si quien se
|
|
2649
|
+
* suscribió se desuscribe antes de ser admitido (el usuario navega a
|
|
2650
|
+
* otro lado, cierra el modal, o el componente se destruye), libera el
|
|
2651
|
+
* lugar en la fila con /leave.
|
|
2652
|
+
*/
|
|
2653
|
+
waitForAdmission(performanceId: number): Observable<void>;
|
|
2654
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdmissionQueueService, never>;
|
|
2655
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdmissionQueueService>;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
declare class TicketQrService {
|
|
2659
|
+
private apiService;
|
|
2660
|
+
constructor(apiService: ApiService);
|
|
2661
|
+
fetchQrToken(ticketUuid: string): Observable<QrTokenResponse>;
|
|
2662
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrService, never>;
|
|
2663
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrService>;
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
declare class TicketQrModalService {
|
|
2667
|
+
isOpen: WritableSignal<boolean>;
|
|
2668
|
+
ticketUuid: WritableSignal<string | null>;
|
|
2669
|
+
ticketDescription: WritableSignal<string | null>;
|
|
2670
|
+
open(ticketUuid: string, description?: string): void;
|
|
2671
|
+
close(): void;
|
|
2672
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrModalService, never>;
|
|
2673
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrModalService>;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
declare class VipCardService {
|
|
2677
|
+
private apiService;
|
|
2678
|
+
constructor(apiService: ApiService);
|
|
2679
|
+
findMy(): Observable<{
|
|
2680
|
+
data: VipCard | null;
|
|
2681
|
+
}>;
|
|
2682
|
+
activate(data: any): Observable<VipOrderResponse>;
|
|
2683
|
+
recharge(data: any): Observable<VipOrderResponse>;
|
|
2684
|
+
fetchAll(params?: FetchVipCardsParams): Observable<VipCardsResponse>;
|
|
2685
|
+
fetchOneById(id: number): Observable<VipCardResponse>;
|
|
2686
|
+
activateAdmin(data: ActivateVipCardParams): Observable<VipOrderResponse>;
|
|
2687
|
+
rechargeAdmin(id: number, data: any): Observable<VipOrderResponse>;
|
|
2688
|
+
updateStatus(id: number, status: VipCardStatus): Observable<VipCardResponse>;
|
|
2689
|
+
updateTerms(id: number): Observable<VipCardResponse>;
|
|
2690
|
+
fetchTransactions(id: number, page?: number, limit?: number): Observable<VipTransactionsResponse>;
|
|
2691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipCardService, never>;
|
|
2692
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VipCardService>;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
1380
2695
|
declare const authInterceptor: HttpInterceptorFn;
|
|
1381
2696
|
|
|
1382
2697
|
declare class AppButtonComponent {
|
|
@@ -1389,10 +2704,11 @@ declare class AppButtonComponent {
|
|
|
1389
2704
|
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
1390
2705
|
loadingText: string;
|
|
1391
2706
|
icon: string;
|
|
2707
|
+
tooltip: string;
|
|
1392
2708
|
handleClick(): void;
|
|
1393
2709
|
get buttonClasses(): string;
|
|
1394
2710
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppButtonComponent, never>;
|
|
1395
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
2711
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
1396
2712
|
}
|
|
1397
2713
|
|
|
1398
2714
|
declare class AppLinkButtonComponent {
|
|
@@ -1406,9 +2722,10 @@ declare class AppLinkButtonComponent {
|
|
|
1406
2722
|
queryParams: Record<string, any>;
|
|
1407
2723
|
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
1408
2724
|
variant: 'primary' | 'secondary' | 'tertiary' | 'success' | 'transparent';
|
|
2725
|
+
tooltip: string;
|
|
1409
2726
|
get buttonClasses(): string;
|
|
1410
2727
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppLinkButtonComponent, never>;
|
|
1411
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppLinkButtonComponent, "app-link-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "target": { "alias": "target"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "route": { "alias": "route"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
2728
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppLinkButtonComponent, "app-link-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "target": { "alias": "target"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "route": { "alias": "route"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
|
|
1412
2729
|
}
|
|
1413
2730
|
|
|
1414
2731
|
declare class AppAlertComponent {
|
|
@@ -1421,15 +2738,29 @@ declare class AppAlertComponent {
|
|
|
1421
2738
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppAlertComponent, "app-alert", never, { "type": { "alias": "type"; "required": false; }; "text": { "alias": "text"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
1422
2739
|
}
|
|
1423
2740
|
|
|
1424
|
-
declare class
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
2741
|
+
declare class FeedbackModalComponent implements OnChanges, OnDestroy {
|
|
2742
|
+
isOpen: WritableSignal<boolean>;
|
|
2743
|
+
type: FeedbackModalType;
|
|
2744
|
+
title: string;
|
|
2745
|
+
message: string;
|
|
2746
|
+
showHeader: boolean;
|
|
2747
|
+
showCloseButton: boolean;
|
|
2748
|
+
showTitle: boolean;
|
|
2749
|
+
autoClose: boolean;
|
|
2750
|
+
autoCloseDuration: number;
|
|
2751
|
+
buttonText: string;
|
|
2752
|
+
closed: EventEmitter<void>;
|
|
2753
|
+
private autoCloseTimeout;
|
|
2754
|
+
get defaultButtonText(): string;
|
|
2755
|
+
get resolvedButtonText(): string;
|
|
2756
|
+
get buttonVariant(): 'primary' | 'secondary';
|
|
2757
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2758
|
+
ngOnDestroy(): void;
|
|
1429
2759
|
closeModal(): void;
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
static
|
|
2760
|
+
private scheduleAutoClose;
|
|
2761
|
+
private clearAutoClose;
|
|
2762
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackModalComponent, never>;
|
|
2763
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackModalComponent, "feedback-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseDuration": { "alias": "autoCloseDuration"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
1433
2764
|
}
|
|
1434
2765
|
|
|
1435
2766
|
declare class DeleteConfirmationComponent {
|
|
@@ -1452,12 +2783,29 @@ declare class DeleteConfirmationComponent {
|
|
|
1452
2783
|
declare class AppModalComponent {
|
|
1453
2784
|
title: string;
|
|
1454
2785
|
disableClose: boolean;
|
|
2786
|
+
showHeader: boolean;
|
|
2787
|
+
showCloseButton: boolean;
|
|
2788
|
+
showTitle: boolean;
|
|
2789
|
+
interactiveClose: boolean;
|
|
1455
2790
|
isOpen: WritableSignal<boolean>;
|
|
1456
|
-
size:
|
|
2791
|
+
size: ModalSize;
|
|
1457
2792
|
closeModal: EventEmitter<void>;
|
|
1458
2793
|
onCloseModal(): void;
|
|
2794
|
+
onInteractiveClose(): void;
|
|
2795
|
+
onKeydownEscape(): void;
|
|
1459
2796
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppModalComponent, never>;
|
|
1460
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["*"], true, never>;
|
|
2797
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "interactiveClose": { "alias": "interactiveClose"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["*"], true, never>;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
declare class AppBadgeComponent {
|
|
2801
|
+
text: string;
|
|
2802
|
+
color: BadgeColor;
|
|
2803
|
+
size: BadgeSize;
|
|
2804
|
+
bordered: boolean;
|
|
2805
|
+
backgroundColor: string;
|
|
2806
|
+
textColor: string;
|
|
2807
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppBadgeComponent, never>;
|
|
2808
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppBadgeComponent, "app-badge", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
1461
2809
|
}
|
|
1462
2810
|
|
|
1463
2811
|
declare class AuditInformationComponent {
|
|
@@ -1472,6 +2820,7 @@ declare class DynamicTableComponent {
|
|
|
1472
2820
|
title: string;
|
|
1473
2821
|
data: any[];
|
|
1474
2822
|
headers: any[];
|
|
2823
|
+
searcherPlaceholder: string;
|
|
1475
2824
|
columnComponents: {
|
|
1476
2825
|
[key: string]: Type<any>;
|
|
1477
2826
|
};
|
|
@@ -1479,17 +2828,79 @@ declare class DynamicTableComponent {
|
|
|
1479
2828
|
totalItems: number;
|
|
1480
2829
|
itemsPerPage: number;
|
|
1481
2830
|
currentPage: number;
|
|
2831
|
+
searchValue: string;
|
|
1482
2832
|
pageChange: EventEmitter<number>;
|
|
1483
2833
|
searchChange: EventEmitter<string>;
|
|
2834
|
+
pageSizeChange: EventEmitter<number>;
|
|
2835
|
+
pageSizeOptions: number[];
|
|
1484
2836
|
showPagination: boolean;
|
|
1485
2837
|
showSearch: boolean;
|
|
1486
2838
|
showTitle: boolean;
|
|
1487
2839
|
get totalPages(): number;
|
|
1488
2840
|
onSearch(event: any): void;
|
|
1489
2841
|
changePage(delta: number): void;
|
|
2842
|
+
changePageSize(event: any): void;
|
|
1490
2843
|
createInjector(row: any): Injector;
|
|
1491
2844
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
1492
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "headers": { "alias": "headers"; "required": false; }; "columnComponents": { "alias": "columnComponents"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; }, { "pageChange": "pageChange"; "searchChange": "searchChange"; }, never, never, true, never>;
|
|
2845
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "headers": { "alias": "headers"; "required": false; }; "searcherPlaceholder": { "alias": "searcherPlaceholder"; "required": false; }; "columnComponents": { "alias": "columnComponents"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "searchValue": { "alias": "searchValue"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; }, { "pageChange": "pageChange"; "searchChange": "searchChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
declare class TextExpandableComponent implements OnChanges {
|
|
2849
|
+
text: string;
|
|
2850
|
+
maxLength: number;
|
|
2851
|
+
fontSize: TextFontSize;
|
|
2852
|
+
allowHtml: boolean;
|
|
2853
|
+
maxLines?: number;
|
|
2854
|
+
protected expanded: boolean;
|
|
2855
|
+
ngOnChanges(): void;
|
|
2856
|
+
get plainText(): string;
|
|
2857
|
+
get truncated(): boolean;
|
|
2858
|
+
get visibleText(): string;
|
|
2859
|
+
get lines(): number;
|
|
2860
|
+
toggleExpanded(): void;
|
|
2861
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextExpandableComponent, never>;
|
|
2862
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextExpandableComponent, "text-expandable", never, { "text": { "alias": "text"; "required": true; }; "maxLength": { "alias": "maxLength"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "allowHtml": { "alias": "allowHtml"; "required": false; }; "maxLines": { "alias": "maxLines"; "required": false; }; }, {}, never, never, true, never>;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
declare class ShowCardComponent {
|
|
2866
|
+
show: Show;
|
|
2867
|
+
linkText: string;
|
|
2868
|
+
linkUrlFn?: (show: Show) => string;
|
|
2869
|
+
linkQueryParams?: Record<string, any>;
|
|
2870
|
+
transloco: TranslocoService;
|
|
2871
|
+
dateService: DateService;
|
|
2872
|
+
get showTypeColor(): {
|
|
2873
|
+
bg: string;
|
|
2874
|
+
text: string;
|
|
2875
|
+
};
|
|
2876
|
+
formatTimeDate(date: string): Date;
|
|
2877
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowCardComponent, never>;
|
|
2878
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShowCardComponent, "show-card", never, { "show": { "alias": "show"; "required": true; }; "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; }, {}, never, never, true, never>;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
declare class ShowTypeBadgeComponent {
|
|
2882
|
+
show: Show;
|
|
2883
|
+
size: BadgeSize;
|
|
2884
|
+
transloco: TranslocoService;
|
|
2885
|
+
get showTypeColor(): {
|
|
2886
|
+
bg: string;
|
|
2887
|
+
text: string;
|
|
2888
|
+
};
|
|
2889
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowTypeBadgeComponent, never>;
|
|
2890
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShowTypeBadgeComponent, "show-type-badge", never, { "show": { "alias": "show"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
declare class ShowCardSkeletonComponent {
|
|
2894
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowCardSkeletonComponent, never>;
|
|
2895
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShowCardSkeletonComponent, "show-card-skeleton", never, {}, {}, never, never, true, never>;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
declare class AppBreadcumbComponent {
|
|
2899
|
+
homeUrl: string | undefined;
|
|
2900
|
+
steps: BreadcrumbStep[];
|
|
2901
|
+
theme: BreadcrumbTheme;
|
|
2902
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppBreadcumbComponent, never>;
|
|
2903
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcumbComponent, "app-breadcrumb", never, { "homeUrl": { "alias": "homeUrl"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, never, true, never>;
|
|
1493
2904
|
}
|
|
1494
2905
|
|
|
1495
2906
|
declare class LanguageSwitcherComponent {
|
|
@@ -1512,7 +2923,9 @@ declare class FormInputComponent implements ControlValueAccessor {
|
|
|
1512
2923
|
placeholder: string;
|
|
1513
2924
|
required: boolean;
|
|
1514
2925
|
readonly: boolean;
|
|
2926
|
+
maxlength: number | null;
|
|
1515
2927
|
minlength: number | null;
|
|
2928
|
+
max: number | null;
|
|
1516
2929
|
min: number | null;
|
|
1517
2930
|
step: number | null;
|
|
1518
2931
|
pattern: string | null;
|
|
@@ -1534,12 +2947,12 @@ declare class FormInputComponent implements ControlValueAccessor {
|
|
|
1534
2947
|
get inputClasses(): string;
|
|
1535
2948
|
get fieldGroupClasses(): string;
|
|
1536
2949
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [{ optional: true; self: true; }, null]>;
|
|
1537
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
|
|
2950
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, true, never>;
|
|
1538
2951
|
}
|
|
1539
2952
|
|
|
1540
2953
|
declare class FormSelectComponent implements ControlValueAccessor {
|
|
1541
2954
|
ngControl: NgControl;
|
|
1542
|
-
|
|
2955
|
+
protected transloco: TranslocoService;
|
|
1543
2956
|
label: string;
|
|
1544
2957
|
name: string;
|
|
1545
2958
|
id: string;
|
|
@@ -1563,7 +2976,6 @@ declare class FormSelectComponent implements ControlValueAccessor {
|
|
|
1563
2976
|
get inputId(): string;
|
|
1564
2977
|
get showError(): boolean;
|
|
1565
2978
|
get errorMessage(): string;
|
|
1566
|
-
get resolvedDefaultOptionLabel(): string;
|
|
1567
2979
|
get fieldGroupClasses(): string;
|
|
1568
2980
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, [{ optional: true; self: true; }, null]>;
|
|
1569
2981
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "form-select", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "options": { "alias": "options"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; "showDefaultOption": { "alias": "showDefaultOption"; "required": false; }; "defaultOptionLabel": { "alias": "defaultOptionLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1601,6 +3013,105 @@ declare class FormTextareaComponent implements ControlValueAccessor {
|
|
|
1601
3013
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "form-textarea", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
1602
3014
|
}
|
|
1603
3015
|
|
|
3016
|
+
declare class NumberInputComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
3017
|
+
transloco: TranslocoService;
|
|
3018
|
+
private injector;
|
|
3019
|
+
private elementRef;
|
|
3020
|
+
label: string;
|
|
3021
|
+
name: string;
|
|
3022
|
+
id: string;
|
|
3023
|
+
placeholder: string;
|
|
3024
|
+
required: boolean;
|
|
3025
|
+
readonly: boolean;
|
|
3026
|
+
min: number | null;
|
|
3027
|
+
max: number | null;
|
|
3028
|
+
step: number;
|
|
3029
|
+
fieldGroupClass: string;
|
|
3030
|
+
value: number | null;
|
|
3031
|
+
disabled: boolean;
|
|
3032
|
+
onChange: any;
|
|
3033
|
+
onTouched: any;
|
|
3034
|
+
private _ngControl;
|
|
3035
|
+
constructor(transloco: TranslocoService, injector: Injector, elementRef: ElementRef);
|
|
3036
|
+
get ngControl(): NgControl | null;
|
|
3037
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
3038
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
3039
|
+
writeValue(value: any): void;
|
|
3040
|
+
registerOnChange(fn: any): void;
|
|
3041
|
+
registerOnTouched(fn: any): void;
|
|
3042
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3043
|
+
onInput(value: any): void;
|
|
3044
|
+
increment(): void;
|
|
3045
|
+
decrement(): void;
|
|
3046
|
+
get canIncrement(): boolean;
|
|
3047
|
+
get canDecrement(): boolean;
|
|
3048
|
+
get inputId(): string;
|
|
3049
|
+
get showError(): boolean;
|
|
3050
|
+
get errorMessage(): string;
|
|
3051
|
+
get fieldGroupClasses(): string;
|
|
3052
|
+
private clamp;
|
|
3053
|
+
private round;
|
|
3054
|
+
private emitNativeChange;
|
|
3055
|
+
private minValidator;
|
|
3056
|
+
private maxValidator;
|
|
3057
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
|
|
3058
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "number-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
declare class PhoneInputComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
3062
|
+
private transloco;
|
|
3063
|
+
private injector;
|
|
3064
|
+
label: string;
|
|
3065
|
+
name: string;
|
|
3066
|
+
id: string;
|
|
3067
|
+
placeholder: string;
|
|
3068
|
+
required: boolean;
|
|
3069
|
+
readonly: boolean;
|
|
3070
|
+
maxNationalDigits: number | null;
|
|
3071
|
+
minNationalDigits: number | null;
|
|
3072
|
+
defaultCountry: string;
|
|
3073
|
+
fieldGroupClass: string;
|
|
3074
|
+
readonly countries: tickera_angular_components.PhoneCountry[];
|
|
3075
|
+
readonly phoneOptions: {
|
|
3076
|
+
search: string;
|
|
3077
|
+
name: string;
|
|
3078
|
+
isoCode: string;
|
|
3079
|
+
dialCode: string;
|
|
3080
|
+
}[];
|
|
3081
|
+
selectedIso: string;
|
|
3082
|
+
nationalNumber: string;
|
|
3083
|
+
disabled: boolean;
|
|
3084
|
+
onChange: any;
|
|
3085
|
+
onTouched: any;
|
|
3086
|
+
onValidatorChange: () => void;
|
|
3087
|
+
private _ngControl;
|
|
3088
|
+
constructor(transloco: TranslocoService, injector: Injector);
|
|
3089
|
+
get ngControl(): NgControl | null;
|
|
3090
|
+
get selectedCountry(): tickera_angular_components.PhoneCountry;
|
|
3091
|
+
get dialCode(): string;
|
|
3092
|
+
dialCodeOf(isoCode: string): string;
|
|
3093
|
+
get value(): string;
|
|
3094
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
3095
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
3096
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
3097
|
+
writeValue(value: string | null | undefined): void;
|
|
3098
|
+
registerOnChange(fn: any): void;
|
|
3099
|
+
registerOnTouched(fn: any): void;
|
|
3100
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3101
|
+
onInput(event: Event): void;
|
|
3102
|
+
onCountryChange(isoCode: string): void;
|
|
3103
|
+
get inputId(): string;
|
|
3104
|
+
get showError(): boolean;
|
|
3105
|
+
get errorMessage(): string;
|
|
3106
|
+
get effectivePlaceholder(): string;
|
|
3107
|
+
get fieldGroupClasses(): string;
|
|
3108
|
+
flag(isoCode: string): string;
|
|
3109
|
+
private sanitize;
|
|
3110
|
+
private nationalDigits;
|
|
3111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneInputComponent, never>;
|
|
3112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneInputComponent, "phone-input", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxNationalDigits": { "alias": "maxNationalDigits"; "required": false; }; "minNationalDigits": { "alias": "minNationalDigits"; "required": false; }; "defaultCountry": { "alias": "defaultCountry"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
1604
3115
|
declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
1605
3116
|
ngControl: NgControl;
|
|
1606
3117
|
private transloco;
|
|
@@ -1618,7 +3129,8 @@ declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDes
|
|
|
1618
3129
|
onChange: any;
|
|
1619
3130
|
onTouched: any;
|
|
1620
3131
|
private subscription;
|
|
1621
|
-
|
|
3132
|
+
isBrowser: boolean;
|
|
3133
|
+
constructor(ngControl: NgControl, transloco: TranslocoService, platformId: object);
|
|
1622
3134
|
ngOnInit(): void;
|
|
1623
3135
|
ngOnDestroy(): void;
|
|
1624
3136
|
writeValue(value: any): void;
|
|
@@ -1629,7 +3141,7 @@ declare class FormEditorComponent implements ControlValueAccessor, OnInit, OnDes
|
|
|
1629
3141
|
get showError(): boolean;
|
|
1630
3142
|
get errorMessage(): string;
|
|
1631
3143
|
get fieldGroupClasses(): string;
|
|
1632
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormEditorComponent, [{ optional: true; self: true; }, null]>;
|
|
3144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormEditorComponent, [{ optional: true; self: true; }, null, null]>;
|
|
1633
3145
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormEditorComponent, "form-editor", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; "fieldGroupClass": { "alias": "fieldGroupClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
1634
3146
|
}
|
|
1635
3147
|
|
|
@@ -2280,6 +3792,28 @@ declare class PriceZoneSelectComponent implements OnInit, OnDestroy, ControlValu
|
|
|
2280
3792
|
static ɵcmp: i0.ɵɵComponentDeclaration<PriceZoneSelectComponent, "price-zone-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "priceZoneChange": "priceZoneChange"; }, never, never, true, never>;
|
|
2281
3793
|
}
|
|
2282
3794
|
|
|
3795
|
+
declare class PerformanceTicketStatusBadgeComponent {
|
|
3796
|
+
ticket: PerformanceTicket;
|
|
3797
|
+
size: BadgeSize;
|
|
3798
|
+
protected get statusColors(): {
|
|
3799
|
+
text: string;
|
|
3800
|
+
bg: string;
|
|
3801
|
+
};
|
|
3802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceTicketStatusBadgeComponent, never>;
|
|
3803
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceTicketStatusBadgeComponent, "performance-ticket-status-badge", never, { "ticket": { "alias": "ticket"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
declare class PerformanceStatusBadgeComponent {
|
|
3807
|
+
performance: Performance;
|
|
3808
|
+
size: BadgeSize;
|
|
3809
|
+
protected get statusColors(): {
|
|
3810
|
+
text: string;
|
|
3811
|
+
bg: string;
|
|
3812
|
+
};
|
|
3813
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceStatusBadgeComponent, never>;
|
|
3814
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceStatusBadgeComponent, "performance-status-badge", never, { "performance": { "alias": "performance"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
2283
3817
|
declare class DaySelectorGridComponent {
|
|
2284
3818
|
private platformId;
|
|
2285
3819
|
protected performanceService: PerformanceService;
|
|
@@ -2301,11 +3835,15 @@ declare class DaySelectorGridComponent {
|
|
|
2301
3835
|
declare class PerformanceCardComponent {
|
|
2302
3836
|
protected listEventService: PerformancesListEventsService;
|
|
2303
3837
|
card: DailyPerformanceItem;
|
|
3838
|
+
linkText: string;
|
|
3839
|
+
linkUrlFn?: (card: DailyPerformanceItem) => string;
|
|
3840
|
+
linkQueryParams?: Record<string, any>;
|
|
2304
3841
|
constructor(listEventService: PerformancesListEventsService);
|
|
3842
|
+
get badgeColor(): 'success' | 'error';
|
|
2305
3843
|
onSelect(): void;
|
|
2306
3844
|
isSelected(): boolean;
|
|
2307
3845
|
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceCardComponent, never>;
|
|
2308
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardComponent, "performance-card", never, { "card": { "alias": "card"; "required": true; }; }, {}, never, never, true, never>;
|
|
3846
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardComponent, "performance-card", never, { "card": { "alias": "card"; "required": true; }; "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; }, {}, never, never, true, never>;
|
|
2309
3847
|
}
|
|
2310
3848
|
|
|
2311
3849
|
declare class PerformanceCardListComponent {
|
|
@@ -2313,6 +3851,9 @@ declare class PerformanceCardListComponent {
|
|
|
2313
3851
|
protected performanceService: PerformanceService;
|
|
2314
3852
|
protected listEventService: PerformancesListEventsService;
|
|
2315
3853
|
protected toastService: ToastService;
|
|
3854
|
+
linkText: string;
|
|
3855
|
+
linkUrlFn?: (card: DailyPerformanceItem) => string;
|
|
3856
|
+
linkQueryParams?: Record<string, any>;
|
|
2316
3857
|
loadingData: WritableSignal<boolean>;
|
|
2317
3858
|
performances: WritableSignal<DailyPerformanceItem[]>;
|
|
2318
3859
|
constructor(platformId: object, performanceService: PerformanceService, listEventService: PerformancesListEventsService, toastService: ToastService);
|
|
@@ -2320,7 +3861,7 @@ declare class PerformanceCardListComponent {
|
|
|
2320
3861
|
private loadData;
|
|
2321
3862
|
get selectedDayDate(): string | null;
|
|
2322
3863
|
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceCardListComponent, never>;
|
|
2323
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardListComponent, "performance-card-list", never, {}, {}, never, never, true, never>;
|
|
3864
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardListComponent, "performance-card-list", never, { "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; }, {}, never, never, true, never>;
|
|
2324
3865
|
}
|
|
2325
3866
|
|
|
2326
3867
|
declare class PerformanceStepperComponent {
|
|
@@ -2349,9 +3890,9 @@ declare class ShowsFilterComponent {
|
|
|
2349
3890
|
}
|
|
2350
3891
|
|
|
2351
3892
|
interface PriceZoneItem {
|
|
2352
|
-
|
|
3893
|
+
color: string;
|
|
2353
3894
|
name: string;
|
|
2354
|
-
|
|
3895
|
+
available_seats: number;
|
|
2355
3896
|
price: string;
|
|
2356
3897
|
}
|
|
2357
3898
|
|
|
@@ -2367,5 +3908,412 @@ declare class ZonePriceListComponent {
|
|
|
2367
3908
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZonePriceListComponent, "zone-price-list", never, { "zones": { "alias": "zones"; "required": true; }; }, {}, never, never, true, never>;
|
|
2368
3909
|
}
|
|
2369
3910
|
|
|
2370
|
-
|
|
2371
|
-
|
|
3911
|
+
declare class TicketMapWidgetComponent {
|
|
3912
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWidgetComponent, never>;
|
|
3913
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetComponent, "ticket-map-widget", never, {}, {}, never, ["*"], true, never>;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
declare class TicketMapWidgetHeaderComponent {
|
|
3917
|
+
title: string;
|
|
3918
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWidgetHeaderComponent, never>;
|
|
3919
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetHeaderComponent, "ticket-map-widget-header", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
declare class TicketMapZoomControlsComponent {
|
|
3923
|
+
private zoomService;
|
|
3924
|
+
readonly currentZoom: i0.Signal<number>;
|
|
3925
|
+
readonly zoomPercentage: i0.Signal<string>;
|
|
3926
|
+
constructor(zoomService: TicketMapZoomService);
|
|
3927
|
+
zoomIn(): void;
|
|
3928
|
+
zoomOut(): void;
|
|
3929
|
+
resetZoom(): void;
|
|
3930
|
+
fitToContainer(): void;
|
|
3931
|
+
handleZoomAction(action: string): void;
|
|
3932
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapZoomControlsComponent, never>;
|
|
3933
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapZoomControlsComponent, "ticket-map-zoom-controls", never, {}, {}, never, never, true, never>;
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
declare class TicketMapFloorSelectorComponent {
|
|
3937
|
+
private bookingDataService;
|
|
3938
|
+
readonly availableFloors: i0.Signal<tickera_angular_components.HallFloor[]>;
|
|
3939
|
+
readonly visibleFloorIds: i0.Signal<Set<number>>;
|
|
3940
|
+
readonly hasMultipleVisible: i0.Signal<boolean>;
|
|
3941
|
+
constructor(bookingDataService: PerformanceBookingDataService);
|
|
3942
|
+
isFloorVisible(floorId: number): boolean;
|
|
3943
|
+
canToggleOff(floorId: number): boolean;
|
|
3944
|
+
toggleFloor(floorId: number): void;
|
|
3945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapFloorSelectorComponent, never>;
|
|
3946
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapFloorSelectorComponent, "ticket-map-floor-selector", never, {}, {}, never, never, true, never>;
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
declare class PerformanceTicketMapComponent implements OnDestroy, AfterViewInit {
|
|
3950
|
+
private platformId;
|
|
3951
|
+
protected bookingDataService: PerformanceBookingDataService;
|
|
3952
|
+
protected feedbackModalService: FeedbackModalService;
|
|
3953
|
+
protected selectionService: TicketSelectionService;
|
|
3954
|
+
protected zoomService: TicketMapZoomService;
|
|
3955
|
+
selectionChange: EventEmitter<PerformanceTicket[]>;
|
|
3956
|
+
needsLoginError: EventEmitter<any>;
|
|
3957
|
+
readOnly: boolean;
|
|
3958
|
+
needsLogin: boolean;
|
|
3959
|
+
isLoggedIn: boolean;
|
|
3960
|
+
stageComponent?: StageComponent;
|
|
3961
|
+
protected tooltipData: i0.WritableSignal<TicketMapTooltipData | null>;
|
|
3962
|
+
protected renderData: i0.Signal<ElementRenderData[]>;
|
|
3963
|
+
private stageReady;
|
|
3964
|
+
private autoFitDone;
|
|
3965
|
+
private resizeObserver?;
|
|
3966
|
+
constructor(platformId: object, bookingDataService: PerformanceBookingDataService, feedbackModalService: FeedbackModalService, selectionService: TicketSelectionService, zoomService: TicketMapZoomService);
|
|
3967
|
+
protected get isBrowser(): boolean;
|
|
3968
|
+
ngAfterViewInit(): void;
|
|
3969
|
+
private setupResizeObserver;
|
|
3970
|
+
private syncStageToContainer;
|
|
3971
|
+
ngOnDestroy(): void;
|
|
3972
|
+
private getInternalPointer;
|
|
3973
|
+
protected selectHallFloor(floorId: number): void;
|
|
3974
|
+
protected handleStageClick(konvaEvent: any): void;
|
|
3975
|
+
protected handleStageMouseMove(konvaEvent: any): void;
|
|
3976
|
+
protected handleStageMouseLeave(): void;
|
|
3977
|
+
protected handleWheel(konvaEvent: any): void;
|
|
3978
|
+
protected trackByElementId(_index: number, item: ElementRenderData): number;
|
|
3979
|
+
protected trackByFloorId(_index: number, floor: HallFloorOption): HallFloorOption;
|
|
3980
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceTicketMapComponent, never>;
|
|
3981
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceTicketMapComponent, "performance-ticket-map", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "needsLogin": { "alias": "needsLogin"; "required": false; }; "isLoggedIn": { "alias": "isLoggedIn"; "required": false; }; }, { "selectionChange": "selectionChange"; "needsLoginError": "needsLoginError"; }, never, never, true, never>;
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3984
|
+
declare class TicketMapPriceZonesComponent {
|
|
3985
|
+
title: string;
|
|
3986
|
+
protected bookingDataService: PerformanceBookingDataService;
|
|
3987
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapPriceZonesComponent, never>;
|
|
3988
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapPriceZonesComponent, "ticket-map-price-zones", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
declare class TicketMapProductSelectionItemComponent {
|
|
3992
|
+
protected selectionService: TicketSelectionService;
|
|
3993
|
+
product: Product;
|
|
3994
|
+
constructor(selectionService: TicketSelectionService);
|
|
3995
|
+
get quantity(): number;
|
|
3996
|
+
get firstImage(): string | undefined;
|
|
3997
|
+
increment(): void;
|
|
3998
|
+
decrement(): void;
|
|
3999
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapProductSelectionItemComponent, never>;
|
|
4000
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapProductSelectionItemComponent, "ticket-map-product-selection-item", never, { "product": { "alias": "product"; "required": true; }; }, {}, never, never, true, never>;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
declare class TIcketMapProductSelectionComponent {
|
|
4004
|
+
private bookingDataService;
|
|
4005
|
+
readonly products: i0.Signal<tickera_angular_components.Product[]>;
|
|
4006
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TIcketMapProductSelectionComponent, never>;
|
|
4007
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TIcketMapProductSelectionComponent, "ticket-map-product-selection", never, {}, {}, never, never, true, never>;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
declare class TicketMapTotalsComponent {
|
|
4011
|
+
protected bookingDataService: PerformanceBookingDataService;
|
|
4012
|
+
protected selectionDetailsService: TicketSelectionDetailsService;
|
|
4013
|
+
protected selectionDiscountService: TicketSelectionDiscountService;
|
|
4014
|
+
protected selectionTotalsService: TicketSelectionTotalsService;
|
|
4015
|
+
protected selectionService: TicketSelectionService;
|
|
4016
|
+
private activatedRoute;
|
|
4017
|
+
title: string;
|
|
4018
|
+
buttonText: string;
|
|
4019
|
+
loadingButtonText: string;
|
|
4020
|
+
isLoading: boolean;
|
|
4021
|
+
onPurchaseClick: EventEmitter<void>;
|
|
4022
|
+
constructor(bookingDataService: PerformanceBookingDataService, selectionDetailsService: TicketSelectionDetailsService, selectionDiscountService: TicketSelectionDiscountService, selectionTotalsService: TicketSelectionTotalsService, selectionService: TicketSelectionService, activatedRoute: ActivatedRoute);
|
|
4023
|
+
get serviceFee(): number;
|
|
4024
|
+
get performanceId(): number;
|
|
4025
|
+
get selectedTicketIds(): number[];
|
|
4026
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapTotalsComponent, never>;
|
|
4027
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapTotalsComponent, "ticket-map-totals", never, { "title": { "alias": "title"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "loadingButtonText": { "alias": "loadingButtonText"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "onPurchaseClick": "onPurchaseClick"; }, never, never, true, never>;
|
|
4028
|
+
}
|
|
4029
|
+
|
|
4030
|
+
declare class TicketMapWrapperComponent {
|
|
4031
|
+
selectionChange: EventEmitter<PerformanceTicket[]>;
|
|
4032
|
+
needsLoginError: EventEmitter<any>;
|
|
4033
|
+
readOnly: boolean;
|
|
4034
|
+
needsLogin: boolean;
|
|
4035
|
+
isLoggedIn: boolean;
|
|
4036
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWrapperComponent, never>;
|
|
4037
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWrapperComponent, "ticket-map-wrapper", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "needsLogin": { "alias": "needsLogin"; "required": false; }; "isLoggedIn": { "alias": "isLoggedIn"; "required": false; }; }, { "selectionChange": "selectionChange"; "needsLoginError": "needsLoginError"; }, never, never, true, never>;
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
declare class SeatSelectionEmptySummaryComponent {
|
|
4041
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionEmptySummaryComponent, never>;
|
|
4042
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionEmptySummaryComponent, "seat-selection-empty-summary", never, {}, {}, never, never, true, never>;
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
declare class SeatSelectionSummaryComponent {
|
|
4046
|
+
protected selectionService: TicketSelectionService;
|
|
4047
|
+
title: string;
|
|
4048
|
+
clearButtonText: string;
|
|
4049
|
+
constructor(selectionService: TicketSelectionService);
|
|
4050
|
+
trackByItem(item: PerformanceTicket): string | number;
|
|
4051
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionSummaryComponent, never>;
|
|
4052
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionSummaryComponent, "seat-selection-summary", never, { "title": { "alias": "title"; "required": false; }; "clearButtonText": { "alias": "clearButtonText"; "required": false; }; }, {}, never, never, true, never>;
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
declare class SeatSelectionSummaryItemComponent {
|
|
4056
|
+
protected selectionService: TicketSelectionService;
|
|
4057
|
+
item: PerformanceTicket;
|
|
4058
|
+
constructor(selectionService: TicketSelectionService);
|
|
4059
|
+
getItemTypeIcon: (ticket: PerformanceTicket) => string;
|
|
4060
|
+
get isZone(): boolean;
|
|
4061
|
+
get zoneMax(): number;
|
|
4062
|
+
onZoneQuantityChange(value: number | null): void;
|
|
4063
|
+
removeItem(ticket: PerformanceTicket): void;
|
|
4064
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeatSelectionSummaryItemComponent, never>;
|
|
4065
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeatSelectionSummaryItemComponent, "seat-selection-summary-item", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
declare class ConfirmationOrderModalComponent {
|
|
4069
|
+
private confirmationOrderModalService;
|
|
4070
|
+
private selectionDiscountService;
|
|
4071
|
+
private selectionTotalsService;
|
|
4072
|
+
private selectionService;
|
|
4073
|
+
private bookingDataService;
|
|
4074
|
+
modalTitle: string;
|
|
4075
|
+
confirmButtonText: string;
|
|
4076
|
+
confirmButtonTextLoading: string;
|
|
4077
|
+
loading: boolean;
|
|
4078
|
+
onConfirm: EventEmitter<any>;
|
|
4079
|
+
constructor(confirmationOrderModalService: ConfirmationOrderModalService, selectionDiscountService: TicketSelectionDiscountService, selectionTotalsService: TicketSelectionTotalsService, selectionService: TicketSelectionService, bookingDataService: PerformanceBookingDataService);
|
|
4080
|
+
get isOpen(): i0.WritableSignal<boolean>;
|
|
4081
|
+
get selectedCount(): number;
|
|
4082
|
+
get serviceFee(): number;
|
|
4083
|
+
get subtotalValue(): number;
|
|
4084
|
+
get ticketSubtotal(): number;
|
|
4085
|
+
get productSubtotal(): number;
|
|
4086
|
+
get productCount(): number;
|
|
4087
|
+
get totalValue(): number;
|
|
4088
|
+
get totalDiscounted(): number | null;
|
|
4089
|
+
get coupon(): tickera_angular_components.Coupon | null;
|
|
4090
|
+
get corporateBond(): tickera_angular_components.CorporateBond | null;
|
|
4091
|
+
get giftBond(): tickera_angular_components.GiftBondPurchase | null;
|
|
4092
|
+
onClose(): void;
|
|
4093
|
+
confirmOrder(): void;
|
|
4094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationOrderModalComponent, never>;
|
|
4095
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationOrderModalComponent, "confirmation-order-modal", never, { "modalTitle": { "alias": "modalTitle"; "required": false; }; "confirmButtonText": { "alias": "confirmButtonText"; "required": false; }; "confirmButtonTextLoading": { "alias": "confirmButtonTextLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "onConfirm": "onConfirm"; }, never, never, true, never>;
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
declare class OrderInformationComponent {
|
|
4099
|
+
readonly transloco: TranslocoService;
|
|
4100
|
+
private readonly toastService;
|
|
4101
|
+
order: Order;
|
|
4102
|
+
showPayButton: boolean;
|
|
4103
|
+
createMpPreference?: (order: Order) => Observable<MercadoPagoPreference>;
|
|
4104
|
+
paymentLinkCreated: EventEmitter<MercadoPagoPreference>;
|
|
4105
|
+
isLoading: boolean;
|
|
4106
|
+
constructor(transloco: TranslocoService, toastService: ToastService);
|
|
4107
|
+
get showMpButton(): boolean;
|
|
4108
|
+
payWithMercadoPago(): void;
|
|
4109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderInformationComponent, never>;
|
|
4110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderInformationComponent, "order-information", never, { "order": { "alias": "order"; "required": true; }; "showPayButton": { "alias": "showPayButton"; "required": false; }; "createMpPreference": { "alias": "createMpPreference"; "required": false; }; }, { "paymentLinkCreated": "paymentLinkCreated"; }, never, never, true, never>;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
declare class OrderStatusBadgeComponent {
|
|
4114
|
+
protected transloco: TranslocoService;
|
|
4115
|
+
order: Order | RecentOrder;
|
|
4116
|
+
size: BadgeSize;
|
|
4117
|
+
constructor(transloco: TranslocoService);
|
|
4118
|
+
protected get statusColors(): {
|
|
4119
|
+
text: string;
|
|
4120
|
+
bg: string;
|
|
4121
|
+
};
|
|
4122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderStatusBadgeComponent, never>;
|
|
4123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderStatusBadgeComponent, "order-status-badge", never, { "order": { "alias": "order"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
declare class OrderItemTypeBadgeComponent {
|
|
4127
|
+
protected transloco: TranslocoService;
|
|
4128
|
+
item: OrderItem;
|
|
4129
|
+
size: BadgeSize;
|
|
4130
|
+
constructor(transloco: TranslocoService);
|
|
4131
|
+
protected get statusColors(): {
|
|
4132
|
+
text: string;
|
|
4133
|
+
bg: string;
|
|
4134
|
+
};
|
|
4135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemTypeBadgeComponent, never>;
|
|
4136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemTypeBadgeComponent, "order-item-type-badge", never, { "item": { "alias": "item"; "required": true; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
declare class OrderItemsComponent {
|
|
4140
|
+
private ticketQrModalService;
|
|
4141
|
+
order: Order;
|
|
4142
|
+
ticketCanOpenQr: (order: Order, ticket: tickera_angular_components.PerformanceTicket) => boolean;
|
|
4143
|
+
constructor(ticketQrModalService: TicketQrModalService);
|
|
4144
|
+
protected get orderItems(): Order['order_items'];
|
|
4145
|
+
protected get products(): Order['order_items'];
|
|
4146
|
+
protected get tickets(): Order['order_items'];
|
|
4147
|
+
protected get giftBonds(): Order['order_items'];
|
|
4148
|
+
protected get corporateBonds(): Order['order_items'];
|
|
4149
|
+
protected get vipRecharges(): Order['order_items'];
|
|
4150
|
+
protected get showActionColumn(): boolean;
|
|
4151
|
+
protected itemTotal(quantity: number, price: number): number;
|
|
4152
|
+
protected hasDiscount(): boolean;
|
|
4153
|
+
protected get totals(): {
|
|
4154
|
+
giftBonds: number;
|
|
4155
|
+
corporateBonds: number;
|
|
4156
|
+
products: number;
|
|
4157
|
+
tickets: number;
|
|
4158
|
+
vipRecharges: number;
|
|
4159
|
+
};
|
|
4160
|
+
openTicketQr(ticketUuid: string, description: string): void;
|
|
4161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemsComponent, never>;
|
|
4162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemsComponent, "order-items", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4165
|
+
declare class OrderDiscountAppliedComponent {
|
|
4166
|
+
order: Order;
|
|
4167
|
+
protected get discountInfo(): OrderDiscountInfo;
|
|
4168
|
+
protected get hasDiscount(): boolean;
|
|
4169
|
+
protected get discountPercentage(): number | null;
|
|
4170
|
+
protected get badgeColors(): {
|
|
4171
|
+
text: string;
|
|
4172
|
+
bg: string;
|
|
4173
|
+
};
|
|
4174
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderDiscountAppliedComponent, never>;
|
|
4175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderDiscountAppliedComponent, "order-discount-applied", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
interface BillingField {
|
|
4179
|
+
label: string;
|
|
4180
|
+
value: string | number | null;
|
|
4181
|
+
}
|
|
4182
|
+
declare class OrderBillingInfoComponent {
|
|
4183
|
+
order: Order;
|
|
4184
|
+
protected get fields(): BillingField[];
|
|
4185
|
+
protected get hasFields(): boolean;
|
|
4186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderBillingInfoComponent, never>;
|
|
4187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderBillingInfoComponent, "order-billing-info", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
|
|
4188
|
+
}
|
|
4189
|
+
|
|
4190
|
+
declare class OrderTransactionsComponent {
|
|
4191
|
+
private transactionDetailsModalService;
|
|
4192
|
+
order: Order;
|
|
4193
|
+
constructor(transactionDetailsModalService: OrderTransactionDetailsModalService);
|
|
4194
|
+
protected get transactions(): Transaction[];
|
|
4195
|
+
protected get hasTransactions(): boolean;
|
|
4196
|
+
protected get txColors(): Record<string, {
|
|
4197
|
+
text: string;
|
|
4198
|
+
bg: string;
|
|
4199
|
+
}>;
|
|
4200
|
+
protected openTransaction(transaction: Transaction): void;
|
|
4201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionsComponent, never>;
|
|
4202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderTransactionsComponent, "order-transactions", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
|
|
4203
|
+
}
|
|
4204
|
+
|
|
4205
|
+
declare class OrderTransactionDetailsModalComponent {
|
|
4206
|
+
private modalService;
|
|
4207
|
+
isOpen: WritableSignal<boolean> | null;
|
|
4208
|
+
transaction: Transaction | null;
|
|
4209
|
+
get modalIsOpen(): WritableSignal<boolean>;
|
|
4210
|
+
get selectedTransaction(): WritableSignal<Transaction | null>;
|
|
4211
|
+
protected get txColors(): Record<TransactionStatus, {
|
|
4212
|
+
text: string;
|
|
4213
|
+
bg: string;
|
|
4214
|
+
}>;
|
|
4215
|
+
protected get gatewayResponse(): string;
|
|
4216
|
+
onClose(): void;
|
|
4217
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderTransactionDetailsModalComponent, never>;
|
|
4218
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderTransactionDetailsModalComponent, "order-transaction-details-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "transaction": { "alias": "transaction"; "required": false; }; }, {}, never, never, true, never>;
|
|
4219
|
+
}
|
|
4220
|
+
|
|
4221
|
+
declare class TicketQrComponent implements OnInit, OnDestroy {
|
|
4222
|
+
private ticketQrService;
|
|
4223
|
+
private platformId;
|
|
4224
|
+
ticketUuid: string;
|
|
4225
|
+
qrCanvas: ElementRef<HTMLCanvasElement>;
|
|
4226
|
+
loading: i0.WritableSignal<boolean>;
|
|
4227
|
+
error: i0.WritableSignal<boolean>;
|
|
4228
|
+
refreshing: i0.WritableSignal<boolean>;
|
|
4229
|
+
countdown: i0.WritableSignal<number>;
|
|
4230
|
+
private destroy$;
|
|
4231
|
+
private refreshTimeout;
|
|
4232
|
+
private countdownInterval;
|
|
4233
|
+
private isFetching;
|
|
4234
|
+
constructor(ticketQrService: TicketQrService, platformId: Object);
|
|
4235
|
+
ngOnInit(): void;
|
|
4236
|
+
ngOnDestroy(): void;
|
|
4237
|
+
private onVisibilityChange;
|
|
4238
|
+
private onFocus;
|
|
4239
|
+
private refreshFromReenter;
|
|
4240
|
+
retry(): void;
|
|
4241
|
+
private clearTimers;
|
|
4242
|
+
private fetchAndRender;
|
|
4243
|
+
private scheduleRefresh;
|
|
4244
|
+
private startCountdown;
|
|
4245
|
+
private renderQr;
|
|
4246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrComponent, never>;
|
|
4247
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrComponent, "performance-ticket-qr", never, { "ticketUuid": { "alias": "ticketUuid"; "required": true; }; }, {}, never, never, true, never>;
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
declare class TicketQrModalComponent {
|
|
4251
|
+
private ticketQrModalService;
|
|
4252
|
+
constructor(ticketQrModalService: TicketQrModalService);
|
|
4253
|
+
get isOpen(): i0.WritableSignal<boolean>;
|
|
4254
|
+
get ticketUuid(): i0.WritableSignal<string | null>;
|
|
4255
|
+
get ticketDescription(): i0.WritableSignal<string | null>;
|
|
4256
|
+
onClose(): void;
|
|
4257
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrModalComponent, never>;
|
|
4258
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrModalComponent, "ticket-qr-modal", never, {}, {}, never, never, true, never>;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
declare class VipBalanceCardComponent {
|
|
4262
|
+
card: VipCard | null;
|
|
4263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipBalanceCardComponent, never>;
|
|
4264
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipBalanceCardComponent, "vip-balance-card", never, { "card": { "alias": "card"; "required": false; }; }, {}, never, never, true, never>;
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
declare class VipCardStatusBadgeComponent {
|
|
4268
|
+
protected readonly tranloco: TranslocoService;
|
|
4269
|
+
card: VipCard;
|
|
4270
|
+
get statusColor(): BadgeColor;
|
|
4271
|
+
get statusTranslationKey(): string;
|
|
4272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipCardStatusBadgeComponent, never>;
|
|
4273
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipCardStatusBadgeComponent, "vip-card-status-badge", never, { "card": { "alias": "card"; "required": true; }; }, {}, never, never, true, never>;
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class VipRechargeModalComponent implements OnChanges {
|
|
4277
|
+
private fb;
|
|
4278
|
+
protected transloco: TranslocoService;
|
|
4279
|
+
title: string;
|
|
4280
|
+
submitLabel: string;
|
|
4281
|
+
loading: boolean;
|
|
4282
|
+
amountStep: number;
|
|
4283
|
+
minAmount: number;
|
|
4284
|
+
maxAmount: number;
|
|
4285
|
+
isOpen: WritableSignal<boolean>;
|
|
4286
|
+
/**
|
|
4287
|
+
* Cuando es true (uso desde el ecommerce/cliente), el método de pago queda
|
|
4288
|
+
* fijo en Mercado Pago y no se muestra el selector: desde el lado del
|
|
4289
|
+
* cliente no se pueden elegir métodos de pago administrativos (efectivo,
|
|
4290
|
+
* datáfono, nómina, cambios internos, etc.), esos son exclusivos del
|
|
4291
|
+
* backoffice.
|
|
4292
|
+
*/
|
|
4293
|
+
restrictToMercadoPago: boolean;
|
|
4294
|
+
closeModal: EventEmitter<void>;
|
|
4295
|
+
confirm: EventEmitter<VipRechargeConfirmPayload>;
|
|
4296
|
+
rechargeForm: FormGroup;
|
|
4297
|
+
paymentMethodOptions: {
|
|
4298
|
+
label: string;
|
|
4299
|
+
value: string;
|
|
4300
|
+
}[];
|
|
4301
|
+
constructor(fb: FormBuilder, transloco: TranslocoService);
|
|
4302
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
4303
|
+
private applyPaymentMethodRestriction;
|
|
4304
|
+
onClose(): void;
|
|
4305
|
+
onSubmit(): void;
|
|
4306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipRechargeModalComponent, never>;
|
|
4307
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipRechargeModalComponent, "vip-recharge-modal", never, { "title": { "alias": "title"; "required": false; }; "submitLabel": { "alias": "submitLabel"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "amountStep": { "alias": "amountStep"; "required": false; }; "minAmount": { "alias": "minAmount"; "required": false; }; "maxAmount": { "alias": "maxAmount"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "restrictToMercadoPago": { "alias": "restrictToMercadoPago"; "required": false; }; }, { "closeModal": "closeModal"; "confirm": "confirm"; }, never, never, true, never>;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
declare class VipTransactionsTableComponent {
|
|
4311
|
+
transactions: VipTransaction[];
|
|
4312
|
+
loading: boolean;
|
|
4313
|
+
typeLabel(type: VipTransactionType): string;
|
|
4314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipTransactionsTableComponent, never>;
|
|
4315
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipTransactionsTableComponent, "vip-transactions-table", never, { "transactions": { "alias": "transactions"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
export { ADMIN_API_ROUTES, ADMISSION_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, AdmissionQueueService, ApiService, AppAlertComponent, AppBadgeComponent, AppBreadcumbComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, BaseModalService, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, ConfirmationOrderModalComponent, ConfirmationOrderModalService, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CreatorType, CustomerSelectComponent, CustomerService, DEFAULT_STAGE_CONFIG, DOCUMENT_TYPES_OPTIONS, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FeedbackModalComponent, FeedbackModalService, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondPurchaseStatus, GiftBondStatus, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MembershipStatus, MinTodayValidator, MustMatchValidator, NumberInputComponent, ORDER_DISCOUNT_COLORS, ORDER_ITEM_TYPES_COLORS, ORDER_STATUS_COLORS, OrderBillingInfoComponent, OrderDiscountAppliedComponent, OrderInformationComponent, OrderItemType, OrderItemTypeBadgeComponent, OrderItemsComponent, OrderStatus, OrderStatusBadgeComponent, OrderTransactionDetailsModalComponent, OrderTransactionDetailsModalService, OrderTransactionsComponent, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PERFORMANCE_STATUS_COLORS, PERFORMANCE_TICKET_STATUS_COLORS, PHONE_COUNTRIES, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PaymentMethod, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStatusBadgeComponent, PerformanceStepperComponent, PerformanceTicketMapComponent, PerformanceTicketStatus, PerformanceTicketStatusBadgeComponent, PerformancesListEventsService, PhoneInputComponent, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, PurchaseLimitService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, SHOW_TYPE_COLORS, STATE_API_ENDPOINTS, SeatAvailabilitySseService, SeatSelectionEmptySummaryComponent, SeatSelectionSummaryComponent, SeatSelectionSummaryItemComponent, SelectedDiscountCardType, ShowCardComponent, ShowCardSkeletonComponent, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowType, ShowTypeBadgeComponent, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_GRID_SIZE, TICKET_MAP_LAST_TICKETS_LIMIT, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TIcketMapProductSelectionComponent, TRANSACTION_STATUS_COLORS, TextExpandableComponent, TickeraTranslocoLoader, TicketMapFloorSelectorComponent, TicketMapPriceZonesComponent, TicketMapProductSelectionItemComponent, TicketMapTotalsComponent, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapWrapperComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketQrComponent, TicketQrModalComponent, TicketQrModalService, TicketQrService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, TransactionStatus, VENUES_API_ROUTES, VIP_CARDS_API_ROUTES, VipBalanceCardComponent, VipCardService, VipCardStatus, VipCardStatusBadgeComponent, VipRechargeModalComponent, VipTransactionType, VipTransactionsTableComponent, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, emailValidator, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getBrowserLanguage, getCustomerFullname, getItemTypeIcon, getOrderDiscount, getStoredLanguage, numberToLetter, parseJsonToFormDataAdvanced, phoneCountryFlag, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, ticketCanOpenQr, tintColor, transformImageToFile, transformUrlParams };
|
|
4319
|
+
export type { ActivateVipCardParams, Admin, AdminsResponse, AdmissionEventMessage, AdmissionJoinResponse, AdmissionStatus, AsyncSelectConfig, Auditable, BadgeColor, BadgeSize, BreadcrumbStep, BreadcrumbTheme, CitiesResponse, City, CityResponse, CommonFetchAllParams, CorporateBond, CorporateBondCode, CorporateBondResponse, CountriesResponse, Country, CountryResponse, Coupon, CouponResponse, Customer, CustomerResponse, CustomersResponse, DailyPerformanceHall, DailyPerformanceItem, DailyPerformancePriceZone, DailyPerformanceShow, DailyPerformanceVenue, DailyPerformancesResponse, DeleteConfirmationOpen, DragDropEvent, DynamicTableHeader, ElementPropertiesTab, ElementRenderData, FeedbackModalElement, FeedbackModalType, FetchAdminsParams, FetchCitiesParams, FetchCountriesParams, FetchCustomersParams, FetchDailyPerformancesParams, FetchProductCategoriesParams, FetchProductTagsParams, FetchProductTypesParams, FetchProductsParams, FetchShowCategoriesParams, FetchShowGendersParams, FetchShowsParams, FetchStatesParams, FetchVipCardsParams, FileUploadConfig, FindAllPerformancesParams, FindAllPriceZoneParams, GiftBond, GiftBondImage, GiftBondPurchase, GiftBondPurchaseResponse, GiftBondPurchasesResponse, GiftBondResponse, GiftBondsResponse, Hall, HallFloor, HallFloorOption, KonvaShapeConfig, Membership, MercadoPagoPreference, ModalSize, NumerationConfig, Order, OrderBillingInfo, OrderDiscountInfo, OrderDiscountType, OrderItem, OrderPerformanceSnapshot, OrderResponse, OrderShowSnapshot, OrdersResponse, Performance, PerformanceAvailableDay, PerformanceBookingDataResponse, PerformanceResponse, PerformanceTicket, PerformancesAvailableDaysResponse, PerformancesResponseInterface, PhoneCountry, PriceZone, PriceZoneResponse, PriceZoneUpdateResponse, PriceZonesResponseInterface, Product, ProductCategoriesResponse, ProductCategory, ProductCategoryResponse, ProductImage, ProductResponse, ProductTag, ProductTagResponse, ProductTagsResponse, ProductTaxonomy, ProductType, ProductTypeResponse, ProductTypesResponse, ProductsResponseInterface, QrTokenData, QrTokenResponse, RecentOrder, RecentRoomMap, ReservePerformanceDto, RoomMap, RoomMapBaseElement, RoomMapCanvasConfiguration, RoomMapCanvasElement, RoomMapChairPosition, RoomMapElementTemplate, RoomMapExitElement, RoomMapGridPosition, RoomMapPosition, RoomMapProductionAreaElement, RoomMapSeatDisplayState, RoomMapSeatElement, RoomMapSeatState, RoomMapSize, RoomMapStageElement, RoomMapTableElement, RoomMapUnavailableElement, RoomMapZoneElement, SeatEventMessage, SeatStatusUpdate, SelectOption, SelectedDiscountCard, Show, ShowCategoriesResponse, ShowCategory, ShowCategoryResponse, ShowGender, ShowGenderResponse, ShowGendersResponse, ShowImage, ShowResponse, ShowsResponseInterface, State, StateResponse, StatesResponse, TextFontSize, TickeraComponentsConfig, TicketMapSeatPosition, TicketMapTableChairPosition, TicketMapTooltipData, TicketMapZoneQuantityState, TicketMapZoomConfig, Transaction, UploadedFile, ValidateCorporateBondResponse, ValidateCouponResponse, ValidateGiftBondResponse, Venue, VenueImage, VipCard, VipCardResponse, VipCardsResponse, VipCategorySnapshot, VipOrderResponse, VipRechargeConfirmPayload, VipTransaction, VipTransactionsResponse };
|