@meaple-com/react-query 1.0.4 → 1.0.6
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/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { MeapleSDK } from '@meaple-com/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
6
|
-
import { CategoryProps, CouponProps, CheckCouponProps, EventProps, FindEventProductsProps, FindEventsParams, FindEventsProps, FindEventTicketsProps,
|
|
6
|
+
import { CategoryProps, CouponProps, CheckCouponProps, EventProps, FindEventProductsProps, FindEventsParams, FindEventsProps, FindEventTicketsProps, UserTicketProps, CreatedOrderProps, CreateOrderProps, GetOrderProps, UserOrderProps, PlatformFeeProps, UpdateUserTicketProps, TransferTicketProps as TransferTicketProps$1, CreateTicketFileProps as CreateTicketFileProps$1, GetUserEventsProps } from '@meaple-com/types';
|
|
7
7
|
import { AxiosError } from 'axios';
|
|
8
8
|
|
|
9
9
|
interface MeapleSDKContextValue {
|
|
@@ -31,7 +31,7 @@ declare const useEvents: (params?: FindEventsParams, options?: Omit<UseQueryOpti
|
|
|
31
31
|
|
|
32
32
|
declare const useEventTickets: (eventId: string, privateToken?: string | null, predecessorIds?: string[], options?: Omit<UseQueryOptions<FindEventTicketsProps, Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<FindEventTicketsProps, Error>;
|
|
33
33
|
|
|
34
|
-
declare const useUserEventTickets: (eventId: string, userId?: string, options?: Omit<UseQueryOptions<
|
|
34
|
+
declare const useUserEventTickets: (eventId: string, userId?: string, options?: Omit<UseQueryOptions<UserTicketProps[], Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<UserTicketProps[], Error>;
|
|
35
35
|
|
|
36
36
|
declare const useCreateOrder: (options?: Omit<UseMutationOptions<CreatedOrderProps, AxiosError<any, any>, CreateOrderProps, unknown>, "mutationFn">) => _tanstack_react_query.UseMutationResult<CreatedOrderProps, AxiosError<any, any>, CreateOrderProps, unknown>;
|
|
37
37
|
|
|
@@ -65,7 +65,7 @@ type SectionType = 'coming_soon' | 'past' | 'awards';
|
|
|
65
65
|
type FindUserEventsProps = {
|
|
66
66
|
type: SectionType;
|
|
67
67
|
};
|
|
68
|
-
declare const useUserEvents: (data?: FindUserEventsProps, options?: Omit<UseQueryOptions<
|
|
68
|
+
declare const useUserEvents: (data?: FindUserEventsProps, options?: Omit<UseQueryOptions<GetUserEventsProps[], Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<GetUserEventsProps[], Error>;
|
|
69
69
|
|
|
70
70
|
declare const useRefundUserOrder: (options?: Omit<UseMutationOptions<void, unknown, string, unknown>, "mutationFn">) => _tanstack_react_query.UseMutationResult<void, unknown, string, unknown>;
|
|
71
71
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { MeapleSDK } from '@meaple-com/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
6
|
-
import { CategoryProps, CouponProps, CheckCouponProps, EventProps, FindEventProductsProps, FindEventsParams, FindEventsProps, FindEventTicketsProps,
|
|
6
|
+
import { CategoryProps, CouponProps, CheckCouponProps, EventProps, FindEventProductsProps, FindEventsParams, FindEventsProps, FindEventTicketsProps, UserTicketProps, CreatedOrderProps, CreateOrderProps, GetOrderProps, UserOrderProps, PlatformFeeProps, UpdateUserTicketProps, TransferTicketProps as TransferTicketProps$1, CreateTicketFileProps as CreateTicketFileProps$1, GetUserEventsProps } from '@meaple-com/types';
|
|
7
7
|
import { AxiosError } from 'axios';
|
|
8
8
|
|
|
9
9
|
interface MeapleSDKContextValue {
|
|
@@ -31,7 +31,7 @@ declare const useEvents: (params?: FindEventsParams, options?: Omit<UseQueryOpti
|
|
|
31
31
|
|
|
32
32
|
declare const useEventTickets: (eventId: string, privateToken?: string | null, predecessorIds?: string[], options?: Omit<UseQueryOptions<FindEventTicketsProps, Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<FindEventTicketsProps, Error>;
|
|
33
33
|
|
|
34
|
-
declare const useUserEventTickets: (eventId: string, userId?: string, options?: Omit<UseQueryOptions<
|
|
34
|
+
declare const useUserEventTickets: (eventId: string, userId?: string, options?: Omit<UseQueryOptions<UserTicketProps[], Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<UserTicketProps[], Error>;
|
|
35
35
|
|
|
36
36
|
declare const useCreateOrder: (options?: Omit<UseMutationOptions<CreatedOrderProps, AxiosError<any, any>, CreateOrderProps, unknown>, "mutationFn">) => _tanstack_react_query.UseMutationResult<CreatedOrderProps, AxiosError<any, any>, CreateOrderProps, unknown>;
|
|
37
37
|
|
|
@@ -65,7 +65,7 @@ type SectionType = 'coming_soon' | 'past' | 'awards';
|
|
|
65
65
|
type FindUserEventsProps = {
|
|
66
66
|
type: SectionType;
|
|
67
67
|
};
|
|
68
|
-
declare const useUserEvents: (data?: FindUserEventsProps, options?: Omit<UseQueryOptions<
|
|
68
|
+
declare const useUserEvents: (data?: FindUserEventsProps, options?: Omit<UseQueryOptions<GetUserEventsProps[], Error>, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<GetUserEventsProps[], Error>;
|
|
69
69
|
|
|
70
70
|
declare const useRefundUserOrder: (options?: Omit<UseMutationOptions<void, unknown, string, unknown>, "mutationFn">) => _tanstack_react_query.UseMutationResult<void, unknown, string, unknown>;
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meaple-com/react-query",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "React Query hooks for Meaple SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"clean": "rimraf dist"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@meaple-com/core": "^1.0.
|
|
32
|
-
"@meaple-com/types": "^
|
|
31
|
+
"@meaple-com/core": "^1.0.6",
|
|
32
|
+
"@meaple-com/types": "^2.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.36.0",
|