@connectedxm/client 0.1.26 → 0.1.28
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.mts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -122,6 +122,11 @@ interface BaseAccount {
|
|
|
122
122
|
image: BaseImage | null;
|
|
123
123
|
chatConnected: boolean;
|
|
124
124
|
accountTiers: BaseAccountTier[];
|
|
125
|
+
subscriptions: {
|
|
126
|
+
subscriptionProduct: {
|
|
127
|
+
tiers: BaseAccountTier[];
|
|
128
|
+
};
|
|
129
|
+
}[];
|
|
125
130
|
}
|
|
126
131
|
interface Account extends BaseAccount {
|
|
127
132
|
bio: string | null;
|
|
@@ -1781,13 +1786,13 @@ interface GetSelfEventListingProps extends SingleQueryParams {
|
|
|
1781
1786
|
declare const GetSelfEventListing: ({ eventId, clientApiParams, }: GetSelfEventListingProps) => Promise<ConnectedXMResponse<EventListing>>;
|
|
1782
1787
|
declare const useGetSelfEventListing: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventListing>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
1783
1788
|
|
|
1784
|
-
declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string,
|
|
1789
|
+
declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, status?: keyof typeof RegistrationStatus) => unknown[];
|
|
1785
1790
|
interface GetSelfEventListingRegistrationsProps extends InfiniteQueryParams {
|
|
1786
1791
|
eventId: string;
|
|
1787
|
-
|
|
1792
|
+
status?: keyof typeof RegistrationStatus;
|
|
1788
1793
|
}
|
|
1789
|
-
declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search,
|
|
1790
|
-
declare const useGetSelfEventListingsRegistrations: (eventId: string,
|
|
1794
|
+
declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, status, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
|
|
1795
|
+
declare const useGetSelfEventListingsRegistrations: (eventId: string, status?: keyof typeof RegistrationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
1791
1796
|
|
|
1792
1797
|
declare const SELF_EVENT_LISTINGS_QUERY_KEY: (past: boolean) => QueryKey;
|
|
1793
1798
|
interface GetSelfEventListingsProps extends InfiniteQueryParams {
|
|
@@ -2421,10 +2426,10 @@ declare const RemoveSelfEventSession: ({ eventId, sessionId, clientApiParams, qu
|
|
|
2421
2426
|
declare const useRemoveSelfEventSession: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventSession>>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Account>, axios.AxiosError<ConnectedXMResponse<Account>, any>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2422
2427
|
|
|
2423
2428
|
interface SelfCheckinRegistrationParams extends MutationParams {
|
|
2424
|
-
accountId: string;
|
|
2425
2429
|
eventId: string;
|
|
2430
|
+
registrationId: string;
|
|
2426
2431
|
}
|
|
2427
|
-
declare const SelfCheckinRegistration: ({
|
|
2432
|
+
declare const SelfCheckinRegistration: ({ eventId, registrationId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
|
|
2428
2433
|
declare const useSelfCheckinRegistration: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelfCheckinRegistration>>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<any, axios.AxiosError<any, any>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2429
2434
|
|
|
2430
2435
|
interface CreateActivity {
|
package/dist/index.d.ts
CHANGED
|
@@ -122,6 +122,11 @@ interface BaseAccount {
|
|
|
122
122
|
image: BaseImage | null;
|
|
123
123
|
chatConnected: boolean;
|
|
124
124
|
accountTiers: BaseAccountTier[];
|
|
125
|
+
subscriptions: {
|
|
126
|
+
subscriptionProduct: {
|
|
127
|
+
tiers: BaseAccountTier[];
|
|
128
|
+
};
|
|
129
|
+
}[];
|
|
125
130
|
}
|
|
126
131
|
interface Account extends BaseAccount {
|
|
127
132
|
bio: string | null;
|
|
@@ -1781,13 +1786,13 @@ interface GetSelfEventListingProps extends SingleQueryParams {
|
|
|
1781
1786
|
declare const GetSelfEventListing: ({ eventId, clientApiParams, }: GetSelfEventListingProps) => Promise<ConnectedXMResponse<EventListing>>;
|
|
1782
1787
|
declare const useGetSelfEventListing: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventListing>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
1783
1788
|
|
|
1784
|
-
declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string,
|
|
1789
|
+
declare const SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY: (eventId: string, status?: keyof typeof RegistrationStatus) => unknown[];
|
|
1785
1790
|
interface GetSelfEventListingRegistrationsProps extends InfiniteQueryParams {
|
|
1786
1791
|
eventId: string;
|
|
1787
|
-
|
|
1792
|
+
status?: keyof typeof RegistrationStatus;
|
|
1788
1793
|
}
|
|
1789
|
-
declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search,
|
|
1790
|
-
declare const useGetSelfEventListingsRegistrations: (eventId: string,
|
|
1794
|
+
declare const GetSelfEventListingRegistrations: ({ eventId, pageParam, pageSize, orderBy, search, status, clientApiParams, }: GetSelfEventListingRegistrationsProps) => Promise<ConnectedXMResponse<Registration[]>>;
|
|
1795
|
+
declare const useGetSelfEventListingsRegistrations: (eventId: string, status?: keyof typeof RegistrationStatus, params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfEventListingRegistrations>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_query_core.InfiniteData<ConnectedXMResponse<Registration[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
1791
1796
|
|
|
1792
1797
|
declare const SELF_EVENT_LISTINGS_QUERY_KEY: (past: boolean) => QueryKey;
|
|
1793
1798
|
interface GetSelfEventListingsProps extends InfiniteQueryParams {
|
|
@@ -2421,10 +2426,10 @@ declare const RemoveSelfEventSession: ({ eventId, sessionId, clientApiParams, qu
|
|
|
2421
2426
|
declare const useRemoveSelfEventSession: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof RemoveSelfEventSession>>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<Account>, axios.AxiosError<ConnectedXMResponse<Account>, any>, Omit<RemoveSelfEventSessionParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2422
2427
|
|
|
2423
2428
|
interface SelfCheckinRegistrationParams extends MutationParams {
|
|
2424
|
-
accountId: string;
|
|
2425
2429
|
eventId: string;
|
|
2430
|
+
registrationId: string;
|
|
2426
2431
|
}
|
|
2427
|
-
declare const SelfCheckinRegistration: ({
|
|
2432
|
+
declare const SelfCheckinRegistration: ({ eventId, registrationId, clientApiParams, queryClient, }: SelfCheckinRegistrationParams) => Promise<any>;
|
|
2428
2433
|
declare const useSelfCheckinRegistration: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof SelfCheckinRegistration>>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<any, axios.AxiosError<any, any>, Omit<SelfCheckinRegistrationParams, "queryClient" | "clientApiParams">, unknown>;
|
|
2429
2434
|
|
|
2430
2435
|
interface CreateActivity {
|
package/dist/index.js
CHANGED
|
@@ -4056,10 +4056,10 @@ var useGetSelfEventListing = (eventId, options = {}) => {
|
|
|
4056
4056
|
};
|
|
4057
4057
|
|
|
4058
4058
|
// src/queries/self/useGetSelfEventListingRegistrations.ts
|
|
4059
|
-
var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId,
|
|
4059
|
+
var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
|
|
4060
4060
|
...SELF_EVENT_LISTING_QUERY_KEY(eventId),
|
|
4061
4061
|
"REGISTRATIONS",
|
|
4062
|
-
|
|
4062
|
+
status ?? "ALL"
|
|
4063
4063
|
];
|
|
4064
4064
|
var GetSelfEventListingRegistrations = async ({
|
|
4065
4065
|
eventId,
|
|
@@ -4067,7 +4067,7 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
4067
4067
|
pageSize,
|
|
4068
4068
|
orderBy,
|
|
4069
4069
|
search,
|
|
4070
|
-
|
|
4070
|
+
status,
|
|
4071
4071
|
clientApiParams
|
|
4072
4072
|
}) => {
|
|
4073
4073
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
@@ -4079,16 +4079,16 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
4079
4079
|
pageSize: pageSize || void 0,
|
|
4080
4080
|
orderBy: orderBy || void 0,
|
|
4081
4081
|
search: search || void 0,
|
|
4082
|
-
|
|
4082
|
+
status: status || void 0
|
|
4083
4083
|
}
|
|
4084
4084
|
}
|
|
4085
4085
|
);
|
|
4086
4086
|
return data;
|
|
4087
4087
|
};
|
|
4088
|
-
var useGetSelfEventListingsRegistrations = (eventId,
|
|
4088
|
+
var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
|
|
4089
4089
|
return useConnectedInfiniteQuery(
|
|
4090
|
-
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId,
|
|
4091
|
-
(params2) => GetSelfEventListingRegistrations({ eventId,
|
|
4090
|
+
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
|
|
4091
|
+
(params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
|
|
4092
4092
|
params,
|
|
4093
4093
|
{
|
|
4094
4094
|
...options,
|
|
@@ -6429,21 +6429,21 @@ var useRemoveSelfEventSession = (options = {}) => {
|
|
|
6429
6429
|
|
|
6430
6430
|
// src/mutations/self/useSelfCheckinRegistration.tsx
|
|
6431
6431
|
var SelfCheckinRegistration = async ({
|
|
6432
|
-
accountId,
|
|
6433
6432
|
eventId,
|
|
6433
|
+
registrationId,
|
|
6434
6434
|
clientApiParams,
|
|
6435
6435
|
queryClient
|
|
6436
6436
|
}) => {
|
|
6437
6437
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
6438
6438
|
const { data } = await clientApi.post(
|
|
6439
|
-
`/self/events/listings/${eventId}/registrations/${
|
|
6439
|
+
`/self/events/listings/${eventId}/registrations/${registrationId}`
|
|
6440
6440
|
);
|
|
6441
6441
|
if (queryClient && data.status === "ok") {
|
|
6442
6442
|
queryClient.invalidateQueries({
|
|
6443
|
-
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId
|
|
6443
|
+
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
|
|
6444
6444
|
});
|
|
6445
6445
|
queryClient.invalidateQueries({
|
|
6446
|
-
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId
|
|
6446
|
+
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
|
|
6447
6447
|
});
|
|
6448
6448
|
}
|
|
6449
6449
|
return data;
|
package/dist/index.mjs
CHANGED
|
@@ -3483,10 +3483,10 @@ var useGetSelfEventListing = (eventId, options = {}) => {
|
|
|
3483
3483
|
};
|
|
3484
3484
|
|
|
3485
3485
|
// src/queries/self/useGetSelfEventListingRegistrations.ts
|
|
3486
|
-
var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId,
|
|
3486
|
+
var SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY = (eventId, status) => [
|
|
3487
3487
|
...SELF_EVENT_LISTING_QUERY_KEY(eventId),
|
|
3488
3488
|
"REGISTRATIONS",
|
|
3489
|
-
|
|
3489
|
+
status ?? "ALL"
|
|
3490
3490
|
];
|
|
3491
3491
|
var GetSelfEventListingRegistrations = async ({
|
|
3492
3492
|
eventId,
|
|
@@ -3494,7 +3494,7 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
3494
3494
|
pageSize,
|
|
3495
3495
|
orderBy,
|
|
3496
3496
|
search,
|
|
3497
|
-
|
|
3497
|
+
status,
|
|
3498
3498
|
clientApiParams
|
|
3499
3499
|
}) => {
|
|
3500
3500
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
@@ -3506,16 +3506,16 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
3506
3506
|
pageSize: pageSize || void 0,
|
|
3507
3507
|
orderBy: orderBy || void 0,
|
|
3508
3508
|
search: search || void 0,
|
|
3509
|
-
|
|
3509
|
+
status: status || void 0
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
);
|
|
3513
3513
|
return data;
|
|
3514
3514
|
};
|
|
3515
|
-
var useGetSelfEventListingsRegistrations = (eventId,
|
|
3515
|
+
var useGetSelfEventListingsRegistrations = (eventId, status, params = {}, options = {}) => {
|
|
3516
3516
|
return useConnectedInfiniteQuery(
|
|
3517
|
-
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId,
|
|
3518
|
-
(params2) => GetSelfEventListingRegistrations({ eventId,
|
|
3517
|
+
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, status),
|
|
3518
|
+
(params2) => GetSelfEventListingRegistrations({ eventId, status, ...params2 }),
|
|
3519
3519
|
params,
|
|
3520
3520
|
{
|
|
3521
3521
|
...options,
|
|
@@ -5859,21 +5859,21 @@ var useRemoveSelfEventSession = (options = {}) => {
|
|
|
5859
5859
|
|
|
5860
5860
|
// src/mutations/self/useSelfCheckinRegistration.tsx
|
|
5861
5861
|
var SelfCheckinRegistration = async ({
|
|
5862
|
-
accountId,
|
|
5863
5862
|
eventId,
|
|
5863
|
+
registrationId,
|
|
5864
5864
|
clientApiParams,
|
|
5865
5865
|
queryClient
|
|
5866
5866
|
}) => {
|
|
5867
5867
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5868
5868
|
const { data } = await clientApi.post(
|
|
5869
|
-
`/self/events/listings/${eventId}/registrations/${
|
|
5869
|
+
`/self/events/listings/${eventId}/registrations/${registrationId}`
|
|
5870
5870
|
);
|
|
5871
5871
|
if (queryClient && data.status === "ok") {
|
|
5872
5872
|
queryClient.invalidateQueries({
|
|
5873
|
-
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId
|
|
5873
|
+
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
|
|
5874
5874
|
});
|
|
5875
5875
|
queryClient.invalidateQueries({
|
|
5876
|
-
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId
|
|
5876
|
+
queryKey: SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId)
|
|
5877
5877
|
});
|
|
5878
5878
|
}
|
|
5879
5879
|
return data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectedxm/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "Client API javascript SDK",
|
|
5
5
|
"author": "ConnectedXM Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"immer": "^10.0.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"react-use-websocket": "^4.0.0",
|
|
29
28
|
"@tanstack/react-query": "^5.0.0",
|
|
30
|
-
"react": "^18.0.0"
|
|
29
|
+
"react": "^18.0.0",
|
|
30
|
+
"react-use-websocket": "^4.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@swc/core": "^1.3.102",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"eslint-plugin-react": "^7.33.2",
|
|
40
40
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
41
41
|
"tsup": "^8.0.1",
|
|
42
|
-
"typescript": "^5.4.
|
|
42
|
+
"typescript": "^5.4.2",
|
|
43
43
|
"vitest": "^1.3.1"
|
|
44
44
|
}
|
|
45
45
|
}
|