@gomusdev/web-components 4.8.1 → 4.9.0

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.
@@ -225,5 +225,13 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
225
225
  } | null;
226
226
  };
227
227
  export declare function initUITimeslotTickets(tickets: Tickets, selectedTime?: string): UITicket[];
228
+ /**
229
+ * Day tickets (TC-04): each day quota keys its capacity at its OWN first-entry time, so
230
+ * capacity keys differ across quotas. The day 'time' must be derived per ticket — the
231
+ * first positive key of the ticket's own total_capacities — never from one global quota
232
+ * key. A ticket with capacity keys that are all zero is sold out and dropped; a ticket
233
+ * with no keys at all (no quota) is kept and gets `fallbackTime`.
234
+ */
235
+ export declare function initUIDayTickets(tickets: Tickets, fallbackTime?: string): UITicket[];
228
236
  export declare function filterAvailabletickets(tickets: Tickets, selectedTime?: string): Tickets;
229
237
  export {};
@@ -496,7 +496,23 @@ export declare class Shop {
496
496
  }): Promise<PasswordUpdateResponse>;
497
497
  passwordReset(params: {
498
498
  email: string;
499
+ redirect_url?: string;
499
500
  }): Promise<PasswordResetResponse>;
501
+ /**
502
+ * Sets a new password using the one-time credentials the backend appends to
503
+ * the reset-mail redirect (`access-token`, `client`, `uid` query params).
504
+ * Unlike `updatePassword` no `current_password` is needed — the reset link
505
+ * flags the session with `allow_password_change`. The 200 response carries
506
+ * fresh auth headers which AuthMiddleware ingests, signing the customer in.
507
+ */
508
+ setNewPassword(params: {
509
+ password: string;
510
+ password_confirmation: string;
511
+ }, headers: {
512
+ 'access-token': string;
513
+ client: string;
514
+ uid: string;
515
+ }): Promise<PasswordUpdateResponse>;
500
516
  activateMembership(params: MembershipActivationParams): Promise<MembershipActivationResponse>;
501
517
  checkout(params: CheckoutParams): Promise<CheckoutResponse>;
502
518
  createCart(params: PostCartParams): Promise<PostCartResponse>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.8.1",
7
+ "version": "4.9.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",