tickera-angular-components 0.0.1-dev.173 → 0.0.1-dev.175

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
@@ -98,6 +98,7 @@ declare const PERFORMANCES_API_ROUTES: {
98
98
  seatEventsTicket: (id: number) => string;
99
99
  seatEventsTicketAdmin: (id: number) => string;
100
100
  seatEvents: (id: number) => string;
101
+ myQrToken: (ticketUuid: string) => string;
101
102
  };
102
103
 
103
104
  declare const PRICE_ZONES_API_ROUTES: {
@@ -1526,7 +1527,8 @@ declare enum SelectedDiscountCardType {
1526
1527
  COUPON = "COUPON",
1527
1528
  CORPORATE_BOND = "CORPORATE_BOND",
1528
1529
  GIFT_BOND = "GIFT_BOND",
1529
- VIP = "VIP"
1530
+ VIP = "VIP",
1531
+ SUBSCRIPTION = "SUBSCRIPTION"
1530
1532
  }
1531
1533
 
1532
1534
  interface SelectedDiscountCard {
@@ -2431,12 +2433,21 @@ declare class TicketSelectionDiscountService {
2431
2433
  private _giftBond;
2432
2434
  private _giftBondCode;
2433
2435
  private _vipCard;
2436
+ /**
2437
+ * Abono (subscription) como metodo de pago. Solo se usa el campo
2438
+ * `service_fee_exempt`: el valor del descuento es siempre 100% (una obra
2439
+ * del abono cubre el ticket por completo), igual que un cupon del 100%.
2440
+ */
2441
+ private _subscription;
2434
2442
  readonly coupon: Signal<Coupon | null>;
2435
2443
  readonly corporateBond: Signal<CorporateBond | null>;
2436
2444
  readonly corporateBondCode: Signal<string | null>;
2437
2445
  readonly giftBond: Signal<GiftBondPurchase | null>;
2438
2446
  readonly giftBondCode: Signal<string | null>;
2439
2447
  readonly vipCard: Signal<VipCard | null>;
2448
+ readonly subscription: Signal<{
2449
+ service_fee_exempt: boolean;
2450
+ } | null>;
2440
2451
  readonly selectedDiscount: Signal<SelectedDiscountCard | null>;
2441
2452
  readonly selectedDiscountType: Signal<SelectedDiscountCardType | undefined>;
2442
2453
  readonly selectedDiscountValue: Signal<number | undefined>;
@@ -2452,6 +2463,13 @@ declare class TicketSelectionDiscountService {
2452
2463
  * llamar con `null` en cuanto deje de ser el método de pago elegido.
2453
2464
  */
2454
2465
  setVipCard(card: VipCard | null): void;
2466
+ /**
2467
+ * Abono como metodo de pago (paralelo a `setVipCard`). Llamar con `null`
2468
+ * en cuanto deje de ser el metodo de pago elegido.
2469
+ */
2470
+ setSubscription(subscription: {
2471
+ service_fee_exempt: boolean;
2472
+ } | null): void;
2455
2473
  clearSelection(): void;
2456
2474
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDiscountService, never>;
2457
2475
  static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDiscountService>;
@@ -2703,6 +2721,7 @@ declare class TicketQrService {
2703
2721
  private apiService;
2704
2722
  constructor(apiService: ApiService);
2705
2723
  fetchQrToken(ticketUuid: string): Observable<QrTokenResponse>;
2724
+ fetchMyQrToken(ticketUuid: string): Observable<QrTokenResponse>;
2706
2725
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrService, never>;
2707
2726
  static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrService>;
2708
2727
  }
@@ -3959,8 +3978,9 @@ declare class TicketMapWidgetComponent {
3959
3978
 
3960
3979
  declare class TicketMapWidgetHeaderComponent {
3961
3980
  title: string;
3981
+ subtitle: string;
3962
3982
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketMapWidgetHeaderComponent, never>;
3963
- static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetHeaderComponent, "ticket-map-widget-header", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
3983
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketMapWidgetHeaderComponent, "ticket-map-widget-header", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, ["*"], true, never>;
3964
3984
  }
3965
3985
 
3966
3986
  declare class TicketMapZoomControlsComponent {
@@ -4045,10 +4065,12 @@ declare class TicketMapProductSelectionItemComponent {
4045
4065
  }
4046
4066
 
4047
4067
  declare class TIcketMapProductSelectionComponent {
4068
+ title: string;
4069
+ subtitle: string;
4048
4070
  private bookingDataService;
4049
4071
  readonly products: i0.Signal<tickera_angular_components.Product[]>;
4050
4072
  static ɵfac: i0.ɵɵFactoryDeclaration<TIcketMapProductSelectionComponent, never>;
4051
- static ɵcmp: i0.ɵɵComponentDeclaration<TIcketMapProductSelectionComponent, "ticket-map-product-selection", never, {}, {}, never, never, true, never>;
4073
+ static ɵcmp: i0.ɵɵComponentDeclaration<TIcketMapProductSelectionComponent, "ticket-map-product-selection", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, never, true, never>;
4052
4074
  }
4053
4075
 
4054
4076
  declare class TicketMapTotalsComponent {
@@ -4190,6 +4212,7 @@ declare class OrderItemTypeBadgeComponent {
4190
4212
  declare class OrderItemsComponent {
4191
4213
  private ticketQrModalService;
4192
4214
  order: Order;
4215
+ isCustomer: boolean;
4193
4216
  ticketCanOpenQr: (order: Order, ticket: tickera_angular_components.PerformanceTicket) => boolean;
4194
4217
  constructor(ticketQrModalService: TicketQrModalService);
4195
4218
  protected get orderItems(): Order['order_items'];
@@ -4210,7 +4233,7 @@ declare class OrderItemsComponent {
4210
4233
  };
4211
4234
  openTicketQr(ticketUuid: string, description: string): void;
4212
4235
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemsComponent, never>;
4213
- static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemsComponent, "order-items", never, { "order": { "alias": "order"; "required": true; }; }, {}, never, never, true, never>;
4236
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrderItemsComponent, "order-items", never, { "order": { "alias": "order"; "required": true; }; "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4214
4237
  }
4215
4238
 
4216
4239
  declare class OrderDiscountAppliedComponent {
@@ -4273,6 +4296,7 @@ declare class TicketQrComponent implements OnInit, OnDestroy {
4273
4296
  private ticketQrService;
4274
4297
  private platformId;
4275
4298
  ticketUuid: string;
4299
+ isCustomer: boolean;
4276
4300
  qrCanvas: ElementRef<HTMLCanvasElement>;
4277
4301
  loading: i0.WritableSignal<boolean>;
4278
4302
  error: i0.WritableSignal<boolean>;
@@ -4295,18 +4319,19 @@ declare class TicketQrComponent implements OnInit, OnDestroy {
4295
4319
  private startCountdown;
4296
4320
  private renderQr;
4297
4321
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrComponent, never>;
4298
- static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrComponent, "performance-ticket-qr", never, { "ticketUuid": { "alias": "ticketUuid"; "required": true; }; }, {}, never, never, true, never>;
4322
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrComponent, "performance-ticket-qr", never, { "ticketUuid": { "alias": "ticketUuid"; "required": true; }; "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4299
4323
  }
4300
4324
 
4301
4325
  declare class TicketQrModalComponent {
4302
4326
  private ticketQrModalService;
4327
+ isCustomer: boolean;
4303
4328
  constructor(ticketQrModalService: TicketQrModalService);
4304
4329
  get isOpen(): i0.WritableSignal<boolean>;
4305
4330
  get ticketUuid(): i0.WritableSignal<string | null>;
4306
4331
  get ticketDescription(): i0.WritableSignal<string | null>;
4307
4332
  onClose(): void;
4308
4333
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketQrModalComponent, never>;
4309
- static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrModalComponent, "ticket-qr-modal", never, {}, {}, never, never, true, never>;
4334
+ static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrModalComponent, "ticket-qr-modal", never, { "isCustomer": { "alias": "isCustomer"; "required": false; }; }, {}, never, never, true, never>;
4310
4335
  }
4311
4336
 
4312
4337
  declare class VipBalanceCardComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tickera-angular-components",
3
- "version": "0.0.1-dev.173",
3
+ "version": "0.0.1-dev.175",
4
4
  "description": "Angular 20 standalone component library for Tickera backoffice system",
5
5
  "license": "MIT",
6
6
  "repository": {