@gomusdev/web-components 3.11.0 → 3.12.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 +6 -0
- package/dist-js/gomus-webcomponents.iife.js +18 -4
- package/dist-js/gomus-webcomponents.js +18 -4
- package/dist-js/gomus-webcomponents.min.iife.js +19 -19
- package/dist-js/gomus-webcomponents.min.js +2408 -2399
- package/dist-js/src/go/go.d.ts +4 -2
- package/dist-js/src/lib/stores/shop.svelte.d.ts +4 -5
- package/package.json +1 -1
package/dist-js/src/go/go.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
|
|
2
|
-
|
|
1
|
+
import { OrdersResult, ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
|
|
2
|
+
import { OrdersParams } from '@gomus/types';
|
|
3
|
+
export type { OrdersResult, ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
|
|
3
4
|
export type Command = {
|
|
4
5
|
method: 'load' | 'config' | 'init';
|
|
5
6
|
options: Record<string, unknown>;
|
|
@@ -17,6 +18,7 @@ export declare const go: {
|
|
|
17
18
|
}) => Promise<void>;
|
|
18
19
|
api: {
|
|
19
20
|
getCustomer: () => Promise<ValidateTokenResult>;
|
|
21
|
+
getOrders: (params?: OrdersParams) => Promise<OrdersResult>;
|
|
20
22
|
};
|
|
21
23
|
};
|
|
22
24
|
export type Go = typeof go;
|
|
@@ -6,12 +6,10 @@ 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, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
|
|
10
10
|
export type ShopKind = 'angular' | 'jmb';
|
|
11
|
-
export type ValidateTokenResult = ValidateTokenSuccess |
|
|
12
|
-
|
|
13
|
-
response?: Response;
|
|
14
|
-
} | undefined;
|
|
11
|
+
export type ValidateTokenResult = ValidateTokenSuccess | NotSignedIn | undefined;
|
|
12
|
+
export type OrdersResult = OrdersSuccess | NotSignedIn | undefined;
|
|
15
13
|
type ParseAs = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
|
|
16
14
|
export declare class Shop {
|
|
17
15
|
#private;
|
|
@@ -318,6 +316,7 @@ export declare class Shop {
|
|
|
318
316
|
capacityManager?: CapacityManager;
|
|
319
317
|
};
|
|
320
318
|
getCustomer(): ValidateTokenResult;
|
|
319
|
+
getOrders(params?: OrdersParams): OrdersResult;
|
|
321
320
|
ticketsCalendar(params: TicketsCalendarParams): CalendarDatesDepthAvailabilityStatus;
|
|
322
321
|
calendar(params: TicketsCalendarParams): CalendarDates;
|
|
323
322
|
ticketsAndQuotas(params: TicketsAndQuotasParams): {
|