@gomusdev/web-components 3.10.1 → 3.11.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.
- package/README.md +13 -0
- package/dist-js/gomus-webcomponents.iife.js +33 -10
- package/dist-js/gomus-webcomponents.js +33 -10
- package/dist-js/gomus-webcomponents.min.iife.js +20 -20
- package/dist-js/gomus-webcomponents.min.js +3815 -3800
- package/dist-js/src/go/go.d.ts +11 -0
- package/dist-js/src/lib/helpers/shopCart.d.ts +5 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +6 -2
- package/dist-js/src/main.d.ts +1 -4
- package/package.json +1 -1
package/dist-js/src/go/go.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
|
|
2
|
+
export type { ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
|
|
1
3
|
export type Command = {
|
|
2
4
|
method: 'load' | 'config' | 'init';
|
|
3
5
|
options: Record<string, unknown>;
|
|
@@ -13,4 +15,13 @@ export declare const go: {
|
|
|
13
15
|
api: string;
|
|
14
16
|
locale: string;
|
|
15
17
|
}) => Promise<void>;
|
|
18
|
+
api: {
|
|
19
|
+
getCustomer: () => Promise<ValidateTokenResult>;
|
|
20
|
+
};
|
|
16
21
|
};
|
|
22
|
+
export type Go = typeof go;
|
|
23
|
+
declare global {
|
|
24
|
+
interface Window {
|
|
25
|
+
go?: Go;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -8,6 +8,11 @@ export type CartItem = {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare function getCartItems(currency?: string): CartItem[];
|
|
11
|
+
export type CartDonation = {
|
|
12
|
+
value: number;
|
|
13
|
+
campaign_id: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function parsedDonations(): CartDonation[];
|
|
11
16
|
export declare function total(): number;
|
|
12
17
|
export declare function parsedItems(): LocalStorageCartItem[];
|
|
13
18
|
export declare function sampleCard(): {
|
|
@@ -6,8 +6,12 @@ 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, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, Merchandise, Museum, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse,
|
|
9
|
+
import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, Merchandise, Museum, 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 ValidateTokenResult = ValidateTokenSuccess | {
|
|
12
|
+
error: ValidateTokenError;
|
|
13
|
+
response?: Response;
|
|
14
|
+
} | undefined;
|
|
11
15
|
type ParseAs = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
|
|
12
16
|
export declare class Shop {
|
|
13
17
|
#private;
|
|
@@ -313,7 +317,7 @@ export declare class Shop {
|
|
|
313
317
|
auth?: Auth;
|
|
314
318
|
capacityManager?: CapacityManager;
|
|
315
319
|
};
|
|
316
|
-
|
|
320
|
+
getCustomer(): ValidateTokenResult;
|
|
317
321
|
ticketsCalendar(params: TicketsCalendarParams): CalendarDatesDepthAvailabilityStatus;
|
|
318
322
|
calendar(params: TicketsCalendarParams): CalendarDates;
|
|
319
323
|
ticketsAndQuotas(params: TicketsAndQuotasParams): {
|
package/dist-js/src/main.d.ts
CHANGED