@gomusdev/web-components 4.1.1 → 4.3.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 +15 -0
- package/dist-js/components/cart/components/itemTitles/Tour.svelte.d.ts +1 -0
- package/dist-js/components/membershipActivation/MembershipActivation.svelte.d.ts +1 -0
- package/dist-js/components/order/components/subcomponents/breakdown/items/Tour.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +563 -195
- package/dist-js/gomus-webcomponents.js +563 -195
- package/dist-js/gomus-webcomponents.min.iife.js +47 -47
- package/dist-js/gomus-webcomponents.min.js +7687 -7451
- package/dist-js/src/components/cart/components/itemTitles/Tour.spec.d.ts +1 -0
- package/dist-js/src/components/membershipActivation/entry.d.ts +0 -0
- package/dist-js/src/components/membershipActivation/specs/MembershipActivation.spec.d.ts +1 -0
- package/dist-js/src/components/order/components/subcomponents/breakdown/items/Tour.spec.d.ts +1 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.d.ts +21 -3
- package/dist-js/src/factories/CartItemFactories.d.ts +94 -5
- package/dist-js/src/factories/TourFactories.d.ts +41 -0
- package/dist-js/src/go/cart.d.ts +19 -0
- package/dist-js/src/go/cart.spec.d.ts +1 -0
- package/dist-js/src/go/go.d.ts +5 -1
- package/dist-js/src/lib/helpers/translations.d.ts +1 -0
- package/dist-js/src/lib/models/cart/CartItem.d.ts +7 -1
- package/dist-js/src/lib/models/cart/cart.svelte.d.ts +42 -6
- package/dist-js/src/lib/models/cart/localStorage.svelte.d.ts +7 -1
- package/dist-js/src/lib/models/cart/types.d.ts +4 -1
- package/dist-js/src/lib/models/tour/UITour.spec.d.ts +1 -0
- package/dist-js/src/lib/models/tour/UITour.svelte.d.ts +99 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +23 -4
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ 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, 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, 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;
|
|
@@ -79,7 +79,7 @@ export declare class Shop {
|
|
|
79
79
|
};
|
|
80
80
|
get cart(): {
|
|
81
81
|
items: {
|
|
82
|
-
type: "Ticket" | "Event" | "Coupon";
|
|
82
|
+
type: "Ticket" | "Event" | "Coupon" | "Tour";
|
|
83
83
|
product: import('../models/cart/types').Product;
|
|
84
84
|
orderAttributes(): {
|
|
85
85
|
sub_ticket_quantities?: Record<number, number> | undefined;
|
|
@@ -103,6 +103,12 @@ export declare class Shop {
|
|
|
103
103
|
shipping_mode: string;
|
|
104
104
|
id: number;
|
|
105
105
|
uuid: string;
|
|
106
|
+
} | {
|
|
107
|
+
start_time: string | undefined;
|
|
108
|
+
shipped_with_merchandise_id: null;
|
|
109
|
+
shipping_mode: string;
|
|
110
|
+
id: number;
|
|
111
|
+
uuid: string;
|
|
106
112
|
};
|
|
107
113
|
uuid: string;
|
|
108
114
|
subUId: string;
|
|
@@ -129,7 +135,7 @@ export declare class Shop {
|
|
|
129
135
|
paymentModeId: undefined;
|
|
130
136
|
uid: string;
|
|
131
137
|
readonly nonEmptyItems: {
|
|
132
|
-
type: "Ticket" | "Event" | "Coupon";
|
|
138
|
+
type: "Ticket" | "Event" | "Coupon" | "Tour";
|
|
133
139
|
product: import('../models/cart/types').Product;
|
|
134
140
|
orderAttributes(): {
|
|
135
141
|
sub_ticket_quantities?: Record<number, number> | undefined;
|
|
@@ -153,6 +159,12 @@ export declare class Shop {
|
|
|
153
159
|
shipping_mode: string;
|
|
154
160
|
id: number;
|
|
155
161
|
uuid: string;
|
|
162
|
+
} | {
|
|
163
|
+
start_time: string | undefined;
|
|
164
|
+
shipped_with_merchandise_id: null;
|
|
165
|
+
shipping_mode: string;
|
|
166
|
+
id: number;
|
|
167
|
+
uuid: string;
|
|
156
168
|
};
|
|
157
169
|
uuid: string;
|
|
158
170
|
subUId: string;
|
|
@@ -182,7 +194,7 @@ export declare class Shop {
|
|
|
182
194
|
toString(): string;
|
|
183
195
|
orderData(): {
|
|
184
196
|
items: {
|
|
185
|
-
type: "Ticket" | "Event" | "Coupon";
|
|
197
|
+
type: "Ticket" | "Event" | "Coupon" | "Tour";
|
|
186
198
|
attributes: {
|
|
187
199
|
sub_ticket_quantities?: Record<number, number> | undefined;
|
|
188
200
|
time: string | undefined;
|
|
@@ -205,6 +217,12 @@ export declare class Shop {
|
|
|
205
217
|
shipping_mode: string;
|
|
206
218
|
id: number;
|
|
207
219
|
uuid: string;
|
|
220
|
+
} | {
|
|
221
|
+
start_time: string | undefined;
|
|
222
|
+
shipped_with_merchandise_id: null;
|
|
223
|
+
shipping_mode: string;
|
|
224
|
+
id: number;
|
|
225
|
+
uuid: string;
|
|
208
226
|
};
|
|
209
227
|
}[];
|
|
210
228
|
shipping_address_id: null;
|
|
@@ -468,6 +486,7 @@ export declare class Shop {
|
|
|
468
486
|
passwordReset(params: {
|
|
469
487
|
email: string;
|
|
470
488
|
}): Promise<PasswordResetResponse>;
|
|
489
|
+
activateMembership(params: MembershipActivationParams): Promise<MembershipActivationResponse>;
|
|
471
490
|
checkout(params: CheckoutParams): Promise<CheckoutResponse>;
|
|
472
491
|
createCart(params: PostCartParams): Promise<PostCartResponse>;
|
|
473
492
|
order(token: string): {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Giantmonkey GmbH"
|
|
5
5
|
},
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"version": "4.
|
|
7
|
+
"version": "4.3.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
|
},
|