@debugged-development/ticketapp-sdk 0.0.3
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 +196 -0
- package/dist/graphql/generated.d.ts +4325 -0
- package/dist/graphql/generated.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3141 -0
- package/dist/services/basketService.d.ts +42 -0
- package/dist/services/basketService.d.ts.map +1 -0
- package/dist/services/eventService.d.ts +23 -0
- package/dist/services/eventService.d.ts.map +1 -0
- package/dist/services/paymentService.d.ts +17 -0
- package/dist/services/paymentService.d.ts.map +1 -0
- package/dist/store/basketSlice.d.ts +55 -0
- package/dist/store/basketSlice.d.ts.map +1 -0
- package/dist/store/eventSlice.d.ts +83 -0
- package/dist/store/eventSlice.d.ts.map +1 -0
- package/dist/store/store.d.ts +12 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/types/index.d.ts +202 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ProductInput, PackageInput, DeliveryInput, CreateCustomerInput, Order } from '../types';
|
|
2
|
+
export interface BasketServiceConfig {
|
|
3
|
+
shopId: string;
|
|
4
|
+
shopSlug: string;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface CurrentOrder extends Order {
|
|
9
|
+
count: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class BasketService {
|
|
12
|
+
private config;
|
|
13
|
+
private orderIdKey;
|
|
14
|
+
private sdk;
|
|
15
|
+
private store;
|
|
16
|
+
constructor(config: BasketServiceConfig);
|
|
17
|
+
private restoreOrderFromSession;
|
|
18
|
+
getState(): import("../store/basketSlice").BasketState;
|
|
19
|
+
subscribe(listener: () => void): import("redux").Unsubscribe;
|
|
20
|
+
/**
|
|
21
|
+
* Get the current order with a count of total items
|
|
22
|
+
* @returns CurrentOrder object with count property, or null if no order exists
|
|
23
|
+
*/
|
|
24
|
+
getCurrentOrder(): CurrentOrder | null;
|
|
25
|
+
private getOrderId;
|
|
26
|
+
private setOrderId;
|
|
27
|
+
private getTrackerId;
|
|
28
|
+
private generateOrderId;
|
|
29
|
+
private debugLog;
|
|
30
|
+
addProduct(input: ProductInput): Promise<void>;
|
|
31
|
+
removeProduct(input: ProductInput): Promise<void>;
|
|
32
|
+
configurePackage(input: PackageInput): Promise<{
|
|
33
|
+
error: unknown;
|
|
34
|
+
} | null>;
|
|
35
|
+
setDelivery(input: DeliveryInput | undefined): Promise<void>;
|
|
36
|
+
fetchOrder(orderId: string): Promise<void>;
|
|
37
|
+
createCustomer(input: CreateCustomerInput): Promise<void>;
|
|
38
|
+
cancelOrder(): Promise<void>;
|
|
39
|
+
clearOrderFromSession(): void;
|
|
40
|
+
private handleError;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=basketService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basketService.d.ts","sourceRoot":"","sources":["../../lib/services/basketService.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,mBAAmB,EAInB,KAAK,EACN,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAsB;IACpC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,GAAG,CAA4B;IACvC,OAAO,CAAC,KAAK,CAAoC;gBAErC,MAAM,EAAE,mBAAmB;YAmBzB,uBAAuB;IAerC,QAAQ;IAIR,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI;IAI9B;;;OAGG;IACH,eAAe,IAAI,YAAY,GAAG,IAAI;IAkBtC,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,QAAQ;IAMV,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAgE9C,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAyDjD,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAwEzE,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAc5D,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkM1C,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA2CzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAWlC,qBAAqB,IAAI,IAAI;IAM7B,OAAO,CAAC,WAAW;CAwBpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Product } from '../store/eventSlice';
|
|
2
|
+
import { ProductType } from '../graphql/generated';
|
|
3
|
+
export interface EventServiceConfig {
|
|
4
|
+
shopId?: string;
|
|
5
|
+
organizationId: string;
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
filteredLocationIds?: string[];
|
|
8
|
+
filteredHostingIds?: string[];
|
|
9
|
+
enableDoorTickets?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class EventService {
|
|
12
|
+
private config;
|
|
13
|
+
private sdk;
|
|
14
|
+
private store;
|
|
15
|
+
constructor(config: EventServiceConfig);
|
|
16
|
+
getState(): import("../store/eventSlice").EventState;
|
|
17
|
+
subscribe(listener: () => void): import("redux").Unsubscribe;
|
|
18
|
+
private debugLog;
|
|
19
|
+
fetchEvents(): Promise<void>;
|
|
20
|
+
fetchProductsForEvent(eventId: string, productTypes?: ProductType[], promoCode?: string): Promise<Product[] | undefined>;
|
|
21
|
+
clearEvents(): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=eventService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventService.d.ts","sourceRoot":"","sources":["../../lib/services/eventService.ts"],"names":[],"mappings":"AAEA,OAAqB,EAOnB,OAAO,EACR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAU,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAK3D,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,GAAG,CAA4B;IACvC,OAAO,CAAC,KAAK,CAAoC;gBAErC,MAAM,EAAE,kBAAkB;IAgBtC,QAAQ;IAIR,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI;IAI9B,OAAO,CAAC,QAAQ;IAMV,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAgE5B,qBAAqB,CACzB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,WAAW,EAAE,EAC5B,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC;IAgDjC,WAAW,IAAI,IAAI;CAIpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PaymentMethod, PaymentDetails, GetPaymentMethodsOptions, CreatePaymentInput, CreatePaymentResponse } from '../types';
|
|
2
|
+
export interface PaymentServiceConfig {
|
|
3
|
+
headers?: Record<string, string>;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class PaymentService {
|
|
7
|
+
private config;
|
|
8
|
+
private sdk;
|
|
9
|
+
constructor(config?: PaymentServiceConfig);
|
|
10
|
+
private debugLog;
|
|
11
|
+
getPaymentMethods(options: GetPaymentMethodsOptions): Promise<PaymentDetails>;
|
|
12
|
+
createPayment(input: CreatePaymentInput): Promise<CreatePaymentResponse>;
|
|
13
|
+
calculateTotalWithFee(basePrice: number, paymentMethod: PaymentMethod): number;
|
|
14
|
+
calculateFee(basePrice: number, paymentMethod: PaymentMethod): number;
|
|
15
|
+
formatFee(paymentMethod: PaymentMethod, currencySymbol?: string): string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=paymentService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentService.d.ts","sourceRoot":"","sources":["../../lib/services/paymentService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,GAAG,CAA4B;gBAE3B,MAAM,GAAE,oBAAyB;IAU7C,OAAO,CAAC,QAAQ;IAMV,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,cAAc,CAAC;IAkD7E,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAuD9E,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,MAAM;IAc9E,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,MAAM;IAcrE,SAAS,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,GAAE,MAAY,GAAG,MAAM;CAa9E"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { Order, Currency, ProductInput, PackageInput, DeliveryInput, CreateCustomerInput } from '../types';
|
|
3
|
+
export interface BasketState {
|
|
4
|
+
order: Order | null;
|
|
5
|
+
processing: boolean;
|
|
6
|
+
error: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const basketSlice: import("@reduxjs/toolkit").Slice<BasketState, {
|
|
9
|
+
setProcessing: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<boolean>) => void;
|
|
10
|
+
setError: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<string | null>) => void;
|
|
11
|
+
setOrder: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<Order | null>) => void;
|
|
12
|
+
initializeOrder: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<{
|
|
13
|
+
id: string;
|
|
14
|
+
currency: Currency;
|
|
15
|
+
expiredAt: string;
|
|
16
|
+
}>) => void;
|
|
17
|
+
addProductToOrder: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<{
|
|
18
|
+
input: ProductInput;
|
|
19
|
+
amountReserved: number;
|
|
20
|
+
expiredAt: string;
|
|
21
|
+
}>) => void;
|
|
22
|
+
removeProductFromOrder: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<{
|
|
23
|
+
id: string;
|
|
24
|
+
amountReleased: number;
|
|
25
|
+
seatId?: string;
|
|
26
|
+
}>) => void;
|
|
27
|
+
setPackageInOrder: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<{
|
|
28
|
+
input: PackageInput;
|
|
29
|
+
amountReserved: number;
|
|
30
|
+
expiredAt: string;
|
|
31
|
+
}>) => void;
|
|
32
|
+
setDeliveryOption: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<DeliveryInput | undefined>) => void;
|
|
33
|
+
setCustomer: (state: import("immer").WritableDraft<BasketState>, action: PayloadAction<CreateCustomerInput>) => void;
|
|
34
|
+
clearBasket: () => BasketState;
|
|
35
|
+
}, "basket", "basket", import("@reduxjs/toolkit").SliceSelectors<BasketState>>;
|
|
36
|
+
export declare const setProcessing: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "basket/setProcessing">, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "basket/setError">, setOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<Order | null, "basket/setOrder">, initializeOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
|
+
id: string;
|
|
38
|
+
currency: Currency;
|
|
39
|
+
expiredAt: string;
|
|
40
|
+
}, "basket/initializeOrder">, addProductToOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
|
+
input: ProductInput;
|
|
42
|
+
amountReserved: number;
|
|
43
|
+
expiredAt: string;
|
|
44
|
+
}, "basket/addProductToOrder">, removeProductFromOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
45
|
+
id: string;
|
|
46
|
+
amountReleased: number;
|
|
47
|
+
seatId?: string;
|
|
48
|
+
}, "basket/removeProductFromOrder">, setPackageInOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
|
+
input: PackageInput;
|
|
50
|
+
amountReserved: number;
|
|
51
|
+
expiredAt: string;
|
|
52
|
+
}, "basket/setPackageInOrder">, setDeliveryOption: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DeliveryInput | undefined, "basket/setDeliveryOption">, setCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateCustomerInput, "basket/setCustomer">, clearBasket: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"basket/clearBasket">;
|
|
53
|
+
declare const _default: import("redux").Reducer<BasketState>;
|
|
54
|
+
export default _default;
|
|
55
|
+
//# sourceMappingURL=basketSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basketSlice.d.ts","sourceRoot":"","sources":["../../lib/store/basketSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,EACV,KAAK,EAGL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAQD,eAAO,MAAM,WAAW;+EAIW,aAAa,CAAC,OAAO,CAAC;0EAG3B,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;0EAG5B,aAAa,CAAC,KAAK,GAAG,IAAI,CAAC;iFAK3C,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;mFAW3C,aAAa,CAAC;QAC/C,KAAK,EAAE,YAAY,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;wFAsCQ,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;mFA6BtE,aAAa,CAAC;QACpB,KAAK,EAAE,YAAY,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;mFAoCM,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;6EA+BrB,aAAa,CAAC,mBAAmB,CAAC;;8EASjE,CAAC;AAEH,eAAO,MACL,aAAa,wFACb,QAAQ,yFACR,QAAQ,wFACR,eAAe;QAxKiB,MAAM;cAAY,QAAQ;eAAa,MAAM;8BAyK7E,iBAAiB;WA7JN,YAAY;oBACH,MAAM;eACX,MAAM;gCA4JrB,sBAAsB;QArHU,MAAM;oBAAkB,MAAM;aAAW,MAAM;qCAsH/E,iBAAiB;WAxFJ,YAAY;oBACH,MAAM;eACX,MAAM;gCAuFvB,iBAAiB,sHACjB,WAAW,kGACX,WAAW,8EACU,CAAC;;AAExB,wBAAmC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { DateTime } from 'luxon';
|
|
3
|
+
export interface Product {
|
|
4
|
+
id: string;
|
|
5
|
+
icon: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
currency: string;
|
|
9
|
+
price: number;
|
|
10
|
+
depositPrice: number | null;
|
|
11
|
+
discountPrice: number | null;
|
|
12
|
+
serviceFee: number;
|
|
13
|
+
type: string;
|
|
14
|
+
startSalesAt: string | null;
|
|
15
|
+
endSalesAt: string | null;
|
|
16
|
+
category: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
order: number;
|
|
21
|
+
} | null;
|
|
22
|
+
status: string;
|
|
23
|
+
maxAmountOfAddons: number | null;
|
|
24
|
+
minAmountOfAddons: number | null;
|
|
25
|
+
seatsCategory: string | null;
|
|
26
|
+
maxAmountPerOrder: number | null;
|
|
27
|
+
showEndSalesAtTag: boolean | null;
|
|
28
|
+
}
|
|
29
|
+
export interface Event {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
icon: string | null;
|
|
33
|
+
banner: string | null;
|
|
34
|
+
description: string | null;
|
|
35
|
+
addonDescription: string | null;
|
|
36
|
+
startAt: DateTime;
|
|
37
|
+
endAt: DateTime;
|
|
38
|
+
timezone: string;
|
|
39
|
+
startSalesAt: string | null;
|
|
40
|
+
endSalesAt: string | null;
|
|
41
|
+
slug: string;
|
|
42
|
+
facebookPixelId: string | null;
|
|
43
|
+
status: string;
|
|
44
|
+
location: {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
address: string | null;
|
|
48
|
+
};
|
|
49
|
+
infoDescription: string | null;
|
|
50
|
+
products?: Product[];
|
|
51
|
+
}
|
|
52
|
+
export interface EventState {
|
|
53
|
+
events: Event[];
|
|
54
|
+
processing: boolean;
|
|
55
|
+
error: string | null;
|
|
56
|
+
loadingProducts: {
|
|
57
|
+
[eventId: string]: boolean;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export declare const eventSlice: import("@reduxjs/toolkit").Slice<EventState, {
|
|
61
|
+
setProcessing: (state: import("immer").WritableDraft<EventState>, action: PayloadAction<boolean>) => void;
|
|
62
|
+
setError: (state: import("immer").WritableDraft<EventState>, action: PayloadAction<string | null>) => void;
|
|
63
|
+
setEvents: (state: import("immer").WritableDraft<EventState>, action: PayloadAction<Event[]>) => void;
|
|
64
|
+
setEventProducts: (state: import("immer").WritableDraft<EventState>, action: PayloadAction<{
|
|
65
|
+
eventId: string;
|
|
66
|
+
products: Product[];
|
|
67
|
+
}>) => void;
|
|
68
|
+
setLoadingProducts: (state: import("immer").WritableDraft<EventState>, action: PayloadAction<{
|
|
69
|
+
eventId: string;
|
|
70
|
+
loading: boolean;
|
|
71
|
+
}>) => void;
|
|
72
|
+
clearEvents: () => EventState;
|
|
73
|
+
}, "event", "event", import("@reduxjs/toolkit").SliceSelectors<EventState>>;
|
|
74
|
+
export declare const setProcessing: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "event/setProcessing">, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "event/setError">, setEvents: import("@reduxjs/toolkit").ActionCreatorWithPayload<Event[], "event/setEvents">, setEventProducts: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
75
|
+
eventId: string;
|
|
76
|
+
products: Product[];
|
|
77
|
+
}, "event/setEventProducts">, setLoadingProducts: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
78
|
+
eventId: string;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
}, "event/setLoadingProducts">, clearEvents: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"event/clearEvents">;
|
|
81
|
+
declare const _default: import("redux").Reducer<EventState>;
|
|
82
|
+
export default _default;
|
|
83
|
+
//# sourceMappingURL=eventSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventSlice.d.ts","sourceRoot":"","sources":["../../lib/store/eventSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC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,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACjD;AASD,eAAO,MAAM,UAAU;8EAIY,aAAa,CAAC,OAAO,CAAC;yEAG3B,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;0EAG3B,aAAa,CAAC,KAAK,EAAE,CAAC;iFAGf,aAAa,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;mFAMrD,aAAa,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;;2EAO1F,CAAC;AAEH,eAAO,MACL,aAAa,uFACb,QAAQ,wFACR,SAAS,mFACT,gBAAgB;aAnB6C,MAAM;cAAY,OAAO,EAAE;8BAoBxF,kBAAkB;aAd6C,MAAM;aAAW,OAAO;gCAevF,WAAW,6EACS,CAAC;;AAEvB,wBAAkC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
+
basket: import("./basketSlice").BasketState;
|
|
3
|
+
event: import("./eventSlice").EventState;
|
|
4
|
+
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
5
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
6
|
+
basket: import("./basketSlice").BasketState;
|
|
7
|
+
event: import("./eventSlice").EventState;
|
|
8
|
+
}, undefined, import("redux").UnknownAction>;
|
|
9
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
10
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
11
|
+
export type AppDispatch = typeof store.dispatch;
|
|
12
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../lib/store/store.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;oCAKhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { DateTime } from 'luxon';
|
|
2
|
+
export declare enum BasketOrderType {
|
|
3
|
+
PACKAGE = "PACKAGE",
|
|
4
|
+
PRODUCT = "PRODUCT",
|
|
5
|
+
ADD_ONS = "ADD_ONS",
|
|
6
|
+
DELIVERY = "DELIVERY",
|
|
7
|
+
PICKUP = "PICKUP"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ProductType {
|
|
10
|
+
Ticket = "Ticket",
|
|
11
|
+
Door = "Door",
|
|
12
|
+
Addon = "Addon",
|
|
13
|
+
Promoter = "Promoter",
|
|
14
|
+
Pickup = "Pickup",
|
|
15
|
+
Delivery = "Delivery"
|
|
16
|
+
}
|
|
17
|
+
export declare enum PaymentMethodFeeType {
|
|
18
|
+
FIXED = "FIXED",
|
|
19
|
+
PERCENTAGE = "PERCENTAGE"
|
|
20
|
+
}
|
|
21
|
+
export type Currency = 'USD' | 'CAD' | 'EUR' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ARS' | 'AUD' | 'AZN' | 'BAM' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BND' | 'BOB' | 'BRL' | 'BWP' | 'BYN' | 'BZD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EEK' | 'EGP' | 'ERN' | 'ETB' | 'GBP' | 'GEL' | 'GHS' | 'GNF' | 'GTQ' | 'HKD' | 'HNL' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KZT' | 'LBP' | 'LKR' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MOP' | 'MUR' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SDG' | 'SEK' | 'SGD' | 'SOS' | 'SYP' | 'THB' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'XAF' | 'XOF' | 'YER' | 'ZAR' | 'ZMK' | 'ZWL';
|
|
22
|
+
export type OrderItem = {
|
|
23
|
+
id: string;
|
|
24
|
+
type: BasketOrderType;
|
|
25
|
+
name: string;
|
|
26
|
+
icon?: string | null;
|
|
27
|
+
description?: string | null;
|
|
28
|
+
amount: number;
|
|
29
|
+
maxAmountOfAddons?: number;
|
|
30
|
+
minAmountOfAddons?: number;
|
|
31
|
+
price?: number | null;
|
|
32
|
+
originalPrice?: number | null;
|
|
33
|
+
depositPrice?: number | null;
|
|
34
|
+
serviceFee?: number | null;
|
|
35
|
+
seats?: Array<{
|
|
36
|
+
id: string;
|
|
37
|
+
label: string;
|
|
38
|
+
}>;
|
|
39
|
+
packageItems?: Array<{
|
|
40
|
+
packageItemId: string;
|
|
41
|
+
eventId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
startAt: DateTime;
|
|
44
|
+
endAt: DateTime;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export type Order = {
|
|
48
|
+
id: string;
|
|
49
|
+
currency: Currency;
|
|
50
|
+
customer?: any;
|
|
51
|
+
items: Array<OrderItem>;
|
|
52
|
+
expiredAt: DateTime;
|
|
53
|
+
};
|
|
54
|
+
export type ProductInput = {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
price?: number | null;
|
|
58
|
+
depositPrice?: number | null;
|
|
59
|
+
discountPrice?: number | null;
|
|
60
|
+
serviceFee?: number | null;
|
|
61
|
+
currency: Currency;
|
|
62
|
+
amount?: number;
|
|
63
|
+
seat?: {
|
|
64
|
+
id: string;
|
|
65
|
+
label: string;
|
|
66
|
+
holdToken?: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export type PackageInput = {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
currency: Currency;
|
|
73
|
+
price: number;
|
|
74
|
+
depositPrice?: number | null;
|
|
75
|
+
discountPrice?: number | null;
|
|
76
|
+
serviceFee: number;
|
|
77
|
+
amount: number;
|
|
78
|
+
items: Array<{
|
|
79
|
+
packageItemId: string;
|
|
80
|
+
eventId: string;
|
|
81
|
+
name: string;
|
|
82
|
+
startAt: DateTime;
|
|
83
|
+
endAt: DateTime;
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
86
|
+
export type DeliveryInput = {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
price?: number | null;
|
|
90
|
+
serviceFee?: number | null;
|
|
91
|
+
currency: Currency;
|
|
92
|
+
};
|
|
93
|
+
export type CreateCustomerInput = {
|
|
94
|
+
email?: string;
|
|
95
|
+
firstName?: string;
|
|
96
|
+
lastName?: string;
|
|
97
|
+
age?: number;
|
|
98
|
+
gender?: string;
|
|
99
|
+
residence?: string;
|
|
100
|
+
extraInfo?: Array<{
|
|
101
|
+
key: string;
|
|
102
|
+
value: string;
|
|
103
|
+
}>;
|
|
104
|
+
};
|
|
105
|
+
export type GraphQLError = {
|
|
106
|
+
message: string;
|
|
107
|
+
extensions?: {
|
|
108
|
+
status?: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export type Event = {
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
icon: string | null;
|
|
115
|
+
banner: string | null;
|
|
116
|
+
description: string | null;
|
|
117
|
+
addonDescription: string | null;
|
|
118
|
+
startAt: DateTime;
|
|
119
|
+
endAt: DateTime;
|
|
120
|
+
timezone: string;
|
|
121
|
+
startSalesAt: string | null;
|
|
122
|
+
endSalesAt: string | null;
|
|
123
|
+
slug: string;
|
|
124
|
+
facebookPixelId: string | null;
|
|
125
|
+
status: string;
|
|
126
|
+
location: {
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
address: string | null;
|
|
130
|
+
};
|
|
131
|
+
infoDescription: string | null;
|
|
132
|
+
};
|
|
133
|
+
export type PaymentMethodIssuer = {
|
|
134
|
+
id: number;
|
|
135
|
+
name: string;
|
|
136
|
+
image: string;
|
|
137
|
+
};
|
|
138
|
+
export type PaymentMethodFee = {
|
|
139
|
+
type: PaymentMethodFeeType;
|
|
140
|
+
value: number;
|
|
141
|
+
};
|
|
142
|
+
export type PaymentMethod = {
|
|
143
|
+
id: number;
|
|
144
|
+
name: string;
|
|
145
|
+
image: string;
|
|
146
|
+
fee?: PaymentMethodFee | null;
|
|
147
|
+
issuers?: PaymentMethodIssuer[] | null;
|
|
148
|
+
};
|
|
149
|
+
export type PaymentDetails = {
|
|
150
|
+
transactionPrice: number;
|
|
151
|
+
baseTransactionFee?: number | null;
|
|
152
|
+
additionalTransactionFee?: number | null;
|
|
153
|
+
methods?: PaymentMethod[] | null;
|
|
154
|
+
};
|
|
155
|
+
export type GetPaymentMethodsOptions = {
|
|
156
|
+
orderId: string;
|
|
157
|
+
orderItemId?: string;
|
|
158
|
+
amountOfTickets?: number;
|
|
159
|
+
paymentMethodId?: string;
|
|
160
|
+
};
|
|
161
|
+
export type PaymentCustomer = {
|
|
162
|
+
firstName?: string;
|
|
163
|
+
lastName?: string;
|
|
164
|
+
email?: string;
|
|
165
|
+
phone?: string;
|
|
166
|
+
gender?: string;
|
|
167
|
+
company?: {
|
|
168
|
+
name?: string;
|
|
169
|
+
cocNumber?: string;
|
|
170
|
+
vatNumber?: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export type PaymentProduct = {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
price: number;
|
|
177
|
+
quantity: number;
|
|
178
|
+
vatPercentage?: number;
|
|
179
|
+
type?: string;
|
|
180
|
+
};
|
|
181
|
+
export type CreatePaymentInput = {
|
|
182
|
+
orderId: string;
|
|
183
|
+
paymentMethodId: string;
|
|
184
|
+
issuerId?: string;
|
|
185
|
+
redirectUrl?: string;
|
|
186
|
+
initiatedByUserId?: string;
|
|
187
|
+
initiatedByTeamId?: string;
|
|
188
|
+
orderItemId?: string;
|
|
189
|
+
amountOfTickets?: number;
|
|
190
|
+
customer?: PaymentCustomer;
|
|
191
|
+
products?: PaymentProduct[];
|
|
192
|
+
description?: string;
|
|
193
|
+
reference?: string;
|
|
194
|
+
ipAddress?: string;
|
|
195
|
+
};
|
|
196
|
+
export type CreatePaymentResponse = {
|
|
197
|
+
paymentUrl: string;
|
|
198
|
+
};
|
|
199
|
+
export { BasketService } from '../services/basketService';
|
|
200
|
+
export { EventService } from '../services/eventService';
|
|
201
|
+
export { PaymentService } from '../services/paymentService';
|
|
202
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAGD,MAAM,MAAM,Q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CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@debugged-development/ticketapp-sdk",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "TicketApp SDK",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": "./dist/index.js",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build:js": "vite build",
|
|
14
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
15
|
+
"build": "npm run build:js && npm run build:types",
|
|
16
|
+
"prepublishOnly": "npm run lint && npm run build",
|
|
17
|
+
"lint": "eslint . --ext ts",
|
|
18
|
+
"lint:fix": "eslint . --ext ts --fix",
|
|
19
|
+
"format": "prettier --check .",
|
|
20
|
+
"format:fix": "prettier --write .",
|
|
21
|
+
"clean": "rm -rf dist",
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"codegen": "graphql-codegen --config codegen.ts"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/your-org/basket-manager.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"ticketapp",
|
|
31
|
+
"sdk"
|
|
32
|
+
],
|
|
33
|
+
"author": "Debugged",
|
|
34
|
+
"license": "ISC",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://bitbucket.org/debugged-software/ticketapp-component-library/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://bitbucket.org/debugged-software/ticketapp-component-library#readme",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@graphql-codegen/cli": "^6.0.0",
|
|
41
|
+
"@graphql-codegen/typescript": "^5.0.2",
|
|
42
|
+
"@graphql-codegen/typescript-graphql-request": "^6.3.0",
|
|
43
|
+
"@graphql-codegen/typescript-operations": "^5.0.2",
|
|
44
|
+
"@types/luxon": "^3.7.1",
|
|
45
|
+
"@types/node": "^24.7.2",
|
|
46
|
+
"glob": "^11.0.3",
|
|
47
|
+
"graphql": "^16.11.0",
|
|
48
|
+
"typescript": "~5.9.3",
|
|
49
|
+
"vite": "^7.1.7",
|
|
50
|
+
"vite-plugin-dts": "^4.5.4"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@reduxjs/toolkit": "^2.9.0",
|
|
54
|
+
"graphql-request": "^7.2.0",
|
|
55
|
+
"luxon": "^3.7.2",
|
|
56
|
+
"redux": "^5.0.1"
|
|
57
|
+
}
|
|
58
|
+
}
|