@gomusdev/web-components 4.9.2 → 4.10.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.
@@ -0,0 +1 @@
1
+ export declare function warnOnInvalidLocale(locale: string): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export declare function currency(value: number, currency: string): string;
1
+ export declare function formatCurrency(priceCents: number): string;
2
2
  /**
3
3
  * Parses a comma-separated string of IDs into an array of positive numbers.
4
4
  *
@@ -0,0 +1 @@
1
+ export {};
@@ -175,7 +175,6 @@ export declare function createCart(products?: Product[], contingent?: number): {
175
175
  removeCoupon(code: string): void;
176
176
  clearCoupons(): void;
177
177
  };
178
- export declare function formatCurrency(priceCents: number): string;
179
178
  export declare function createMainCart(): {
180
179
  items: {
181
180
  quantity: number;
@@ -1,7 +1,7 @@
1
1
  export declare class Auth {
2
2
  #private;
3
3
  constructor();
4
- customerLevel(): 10 | 20 | undefined;
4
+ customerLevel(): 20 | 10 | undefined;
5
5
  isAuthenticated(): boolean;
6
6
  isLoggedIn(): boolean;
7
7
  isGuest(): boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -6,8 +6,11 @@ import { Auth } from '../../../lib/stores/auth.svelte.ts';
6
6
  import { User } from '../../../lib/stores/user.svelte.ts';
7
7
  import { OpenApiClient } from '@gomus/api';
8
8
  import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
9
- import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, CustomerAddressesSuccess, CustomerMembershipsSuccess, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, MembershipActivationParams, MembershipActivationResponse, Merchandise, Museum, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
9
+ import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, CustomerAddressesSuccess, CustomerMembershipsSuccess, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, MembershipActivationParams, MembershipActivationResponse, Merchandise, Museum, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenError, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
10
10
  export type ShopKind = 'angular' | 'jmb';
11
+ export type NotSignedIn = {
12
+ error: ValidateTokenError;
13
+ };
11
14
  export type ValidateTokenResult = ValidateTokenSuccess | NotSignedIn | undefined;
12
15
  export type OrdersResult = OrdersSuccess | NotSignedIn | undefined;
13
16
  export type CustomerAddressesResult = CustomerAddressesSuccess | NotSignedIn | undefined;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.9.2",
7
+ "version": "4.10.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",