@gomusdev/web-components 4.2.0 → 4.4.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.
@@ -6,10 +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, 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, 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';
10
10
  export type ShopKind = 'angular' | 'jmb';
11
11
  export type ValidateTokenResult = ValidateTokenSuccess | NotSignedIn | undefined;
12
12
  export type OrdersResult = OrdersSuccess | NotSignedIn | undefined;
13
+ export type CustomerAddressesResult = CustomerAddressesSuccess | NotSignedIn | undefined;
13
14
  type ParseAs = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
14
15
  export declare class Shop {
15
16
  #private;
@@ -79,7 +80,7 @@ export declare class Shop {
79
80
  };
80
81
  get cart(): {
81
82
  items: {
82
- type: "Ticket" | "Event" | "Coupon";
83
+ type: "Ticket" | "Event" | "Coupon" | "Tour";
83
84
  product: import('../models/cart/types').Product;
84
85
  orderAttributes(): {
85
86
  sub_ticket_quantities?: Record<number, number> | undefined;
@@ -103,6 +104,12 @@ export declare class Shop {
103
104
  shipping_mode: string;
104
105
  id: number;
105
106
  uuid: string;
107
+ } | {
108
+ start_time: string | undefined;
109
+ shipped_with_merchandise_id: null;
110
+ shipping_mode: string;
111
+ id: number;
112
+ uuid: string;
106
113
  };
107
114
  uuid: string;
108
115
  subUId: string;
@@ -129,7 +136,7 @@ export declare class Shop {
129
136
  paymentModeId: undefined;
130
137
  uid: string;
131
138
  readonly nonEmptyItems: {
132
- type: "Ticket" | "Event" | "Coupon";
139
+ type: "Ticket" | "Event" | "Coupon" | "Tour";
133
140
  product: import('../models/cart/types').Product;
134
141
  orderAttributes(): {
135
142
  sub_ticket_quantities?: Record<number, number> | undefined;
@@ -153,6 +160,12 @@ export declare class Shop {
153
160
  shipping_mode: string;
154
161
  id: number;
155
162
  uuid: string;
163
+ } | {
164
+ start_time: string | undefined;
165
+ shipped_with_merchandise_id: null;
166
+ shipping_mode: string;
167
+ id: number;
168
+ uuid: string;
156
169
  };
157
170
  uuid: string;
158
171
  subUId: string;
@@ -182,7 +195,7 @@ export declare class Shop {
182
195
  toString(): string;
183
196
  orderData(): {
184
197
  items: {
185
- type: "Ticket" | "Event" | "Coupon";
198
+ type: "Ticket" | "Event" | "Coupon" | "Tour";
186
199
  attributes: {
187
200
  sub_ticket_quantities?: Record<number, number> | undefined;
188
201
  time: string | undefined;
@@ -205,6 +218,12 @@ export declare class Shop {
205
218
  shipping_mode: string;
206
219
  id: number;
207
220
  uuid: string;
221
+ } | {
222
+ start_time: string | undefined;
223
+ shipped_with_merchandise_id: null;
224
+ shipping_mode: string;
225
+ id: number;
226
+ uuid: string;
208
227
  };
209
228
  }[];
210
229
  shipping_address_id: null;
@@ -339,6 +358,7 @@ export declare class Shop {
339
358
  };
340
359
  getCustomer(): ValidateTokenResult;
341
360
  getOrders(params?: OrdersParams): OrdersResult;
361
+ getCustomerAddresses(): CustomerAddressesResult;
342
362
  ticketsCalendar(params: TicketsCalendarParams): CalendarDatesDepthAvailabilityStatus;
343
363
  calendar(params: TicketsCalendarParams): CalendarDates;
344
364
  ticketsAndQuotas(params: TicketsAndQuotasParams): {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.2.0",
7
+ "version": "4.4.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",
@@ -45,7 +45,7 @@
45
45
  "storybook:docker:build-and-run": "docker build -t storybook-caddy-auth ./.storybook/deploy && docker run --env-file .env -p 8080:8080 storybook-caddy-auth",
46
46
  "=== D O C U M E N T A T I O N ===": "",
47
47
  "storybook:docs": "pnpm build:interactive-editor && storybook dev -c .storybook-docs",
48
- "storybook:docs:build": "pnpm build:interactive-editor && storybook build -o ./.storybook-docs/deploy/build -c ./.storybook-docs && node .storybook-docs/copy-bugs.mjs",
48
+ "storybook:docs:build": "pnpm build:interactive-editor && storybook build -o ./.storybook-docs/deploy/build -c ./.storybook-docs && node .storybook-docs/copy-bugs.mjs && node .storybook-docs/copy-demos.mjs",
49
49
  "storybook:docs:build-and-deploy": "pnpm storybook:docs:build && cd ./.storybook-docs/deploy && fly deploy",
50
50
  "storybook:docs:docker:build-and-run": "docker build -t storybook-caddy-auth ./.storybook-docs/deploy && docker run --env-file .env -p 8080:8080 storybook-caddy-auth"
51
51
  },