tickera-angular-components 0.0.1-dev.203 → 0.0.1-dev.205
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/index.d.ts
CHANGED
|
@@ -96,7 +96,9 @@ declare const PERFORMANCES_API_ROUTES: {
|
|
|
96
96
|
reserve: (id: number) => string;
|
|
97
97
|
ticketQrToken: (uuid: string) => string;
|
|
98
98
|
getAvailableDays: string;
|
|
99
|
+
getAvailableDaysAdmin: string;
|
|
99
100
|
publicAvailablePerformances: string;
|
|
101
|
+
dailyPerformancesAdmin: string;
|
|
100
102
|
pedagogicList: string;
|
|
101
103
|
pedagogicAvailability: (id: number) => string;
|
|
102
104
|
createPedagogicOrder: (id: number) => string;
|
|
@@ -538,7 +540,8 @@ declare enum PaymentMethod {
|
|
|
538
540
|
DATAFONO = "datafono",
|
|
539
541
|
INTERNAL_EXCHANGE = "internal_exchange",
|
|
540
542
|
CLIENT_EXCHANGE = "client_exchange",
|
|
541
|
-
MERCADO_PAGO = "mercado_pago"
|
|
543
|
+
MERCADO_PAGO = "mercado_pago",
|
|
544
|
+
COURTESY = "courtesy"
|
|
542
545
|
}
|
|
543
546
|
|
|
544
547
|
declare enum RoomMapElementType {
|
|
@@ -1433,6 +1436,12 @@ interface Order extends Auditable {
|
|
|
1433
1436
|
status: OrderStatus;
|
|
1434
1437
|
show_snapshot: OrderShowSnapshot | null;
|
|
1435
1438
|
performance_snapshot: OrderPerformanceSnapshot | null;
|
|
1439
|
+
/** true cuando la orden es una cortesía/donación pedagógica. */
|
|
1440
|
+
is_courtesy: boolean;
|
|
1441
|
+
/** Beneficiario (texto libre) de la cortesía pedagógica, si aplica. */
|
|
1442
|
+
courtesy_beneficiary: string | null;
|
|
1443
|
+
/** Tipo de visibilidad de la función al momento de la compra (pedagogic, private, public). */
|
|
1444
|
+
performance_visibility_snapshot: string | null;
|
|
1436
1445
|
payment_method: PaymentMethod | null;
|
|
1437
1446
|
terms_accepted: boolean;
|
|
1438
1447
|
data_processing_accepted: boolean;
|
|
@@ -1707,6 +1716,8 @@ interface DailyPerformanceItem {
|
|
|
1707
1716
|
venue: DailyPerformanceVenue;
|
|
1708
1717
|
price_zones: DailyPerformancePriceZone[];
|
|
1709
1718
|
zone_price_cheapest: number | null;
|
|
1719
|
+
visibility_type: PerformanceVisibilityType;
|
|
1720
|
+
private_audience_label: string | null;
|
|
1710
1721
|
}
|
|
1711
1722
|
|
|
1712
1723
|
interface DailyPerformancesResponse {
|
|
@@ -2250,7 +2261,7 @@ declare class PerformanceService {
|
|
|
2250
2261
|
performances$: Observable<Performance[]>;
|
|
2251
2262
|
constructor(apiService: ApiService);
|
|
2252
2263
|
fetchPerformances({ showId, roomMapId, hallId, search, page, limit, }: FindAllPerformancesParams): Observable<PerformancesResponseInterface>;
|
|
2253
|
-
fetchDailyPerformances({ show_id, search, limit, date
|
|
2264
|
+
fetchDailyPerformances({ show_id, search, limit, date }: FetchDailyPerformancesParams, isAdmin?: boolean): Observable<DailyPerformancesResponse>;
|
|
2254
2265
|
loadPerformances({ showId, search }?: {
|
|
2255
2266
|
showId?: number;
|
|
2256
2267
|
search?: string;
|
|
@@ -2260,7 +2271,7 @@ declare class PerformanceService {
|
|
|
2260
2271
|
fetchOneBookingData(id: number, isAdmin?: boolean): Observable<PerformanceBookingDataResponse>;
|
|
2261
2272
|
fetchAvailableDays(params?: {
|
|
2262
2273
|
show_id?: number;
|
|
2263
|
-
}): Observable<PerformancesAvailableDaysResponse>;
|
|
2274
|
+
}, isAdmin?: boolean): Observable<PerformancesAvailableDaysResponse>;
|
|
2264
2275
|
createOne(data: Performance): Observable<any>;
|
|
2265
2276
|
createMany(data: Partial<Performance>[]): Observable<any>;
|
|
2266
2277
|
updateOne(id: number, data: any): Observable<PerformanceResponse>;
|
|
@@ -4244,6 +4255,13 @@ declare class DaySelectorGridComponent {
|
|
|
4244
4255
|
protected listEventService: PerformancesListEventsService;
|
|
4245
4256
|
protected toastService: ToastService;
|
|
4246
4257
|
displayMode: 'grid' | 'carousel';
|
|
4258
|
+
/**
|
|
4259
|
+
* true cuando este selector se usa desde el canal backoffice: en ese
|
|
4260
|
+
* caso también deben aparecer las funciones PRIVATE (nunca PEDAGOGIC,
|
|
4261
|
+
* que siempre usa su propio flujo). false (por defecto) es el canal
|
|
4262
|
+
* ecommerce, que solo ve funciones PUBLIC.
|
|
4263
|
+
*/
|
|
4264
|
+
isAdmin: boolean;
|
|
4247
4265
|
loadingData: WritableSignal<boolean>;
|
|
4248
4266
|
days: WritableSignal<PerformanceAvailableDay[]>;
|
|
4249
4267
|
carouselTrack?: ElementRef<HTMLElement>;
|
|
@@ -4253,7 +4271,7 @@ declare class DaySelectorGridComponent {
|
|
|
4253
4271
|
onToggle(day: PerformanceAvailableDay): void;
|
|
4254
4272
|
scrollCarousel(direction: 1 | -1): void;
|
|
4255
4273
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaySelectorGridComponent, never>;
|
|
4256
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaySelectorGridComponent, "day-selector-grid", never, { "displayMode": { "alias": "displayMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
4274
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaySelectorGridComponent, "day-selector-grid", never, { "displayMode": { "alias": "displayMode"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; }, {}, never, never, true, never>;
|
|
4257
4275
|
}
|
|
4258
4276
|
|
|
4259
4277
|
declare class PerformanceCardComponent {
|
|
@@ -4262,6 +4280,7 @@ declare class PerformanceCardComponent {
|
|
|
4262
4280
|
linkText: string;
|
|
4263
4281
|
linkUrlFn?: (card: DailyPerformanceItem) => string;
|
|
4264
4282
|
linkQueryParams?: Record<string, any>;
|
|
4283
|
+
readonly PerformanceVisibilityType: typeof PerformanceVisibilityType;
|
|
4265
4284
|
constructor(listEventService: PerformancesListEventsService);
|
|
4266
4285
|
get badgeColor(): 'success' | 'error';
|
|
4267
4286
|
onSelect(): void;
|
|
@@ -4278,6 +4297,13 @@ declare class PerformanceCardListComponent {
|
|
|
4278
4297
|
linkText: string;
|
|
4279
4298
|
linkUrlFn?: (card: DailyPerformanceItem) => string;
|
|
4280
4299
|
linkQueryParams?: Record<string, any>;
|
|
4300
|
+
/**
|
|
4301
|
+
* true cuando esta lista se usa desde el canal backoffice: en ese caso
|
|
4302
|
+
* también deben aparecer las funciones PRIVATE (nunca PEDAGOGIC, que
|
|
4303
|
+
* siempre usa su propio flujo). false (por defecto) es el canal
|
|
4304
|
+
* ecommerce, que solo ve funciones PUBLIC.
|
|
4305
|
+
*/
|
|
4306
|
+
isAdmin: boolean;
|
|
4281
4307
|
loadingData: WritableSignal<boolean>;
|
|
4282
4308
|
performances: WritableSignal<DailyPerformanceItem[]>;
|
|
4283
4309
|
constructor(platformId: object, performanceService: PerformanceService, listEventService: PerformancesListEventsService, toastService: ToastService);
|
|
@@ -4285,7 +4311,7 @@ declare class PerformanceCardListComponent {
|
|
|
4285
4311
|
private loadData;
|
|
4286
4312
|
get selectedDayDate(): string | null;
|
|
4287
4313
|
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceCardListComponent, never>;
|
|
4288
|
-
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>;
|
|
4314
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PerformanceCardListComponent, "performance-card-list", never, { "linkText": { "alias": "linkText"; "required": false; }; "linkUrlFn": { "alias": "linkUrlFn"; "required": false; }; "linkQueryParams": { "alias": "linkQueryParams"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; }, {}, never, never, true, never>;
|
|
4289
4315
|
}
|
|
4290
4316
|
|
|
4291
4317
|
declare class PerformanceStepperComponent {
|