@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.
@@ -1,5 +1,6 @@
1
- import { ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
2
- export type { ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
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, ValidateTokenError, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
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
- error: ValidateTokenError;
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): {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "3.11.0",
7
+ "version": "3.12.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",