@connectedxm/client 1.0.20 → 1.0.23
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -7
- package/dist/index.mjs +3 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1680,6 +1680,7 @@ declare enum OrganizationActionType {
|
|
|
1680
1680
|
delete = "delete"
|
|
1681
1681
|
}
|
|
1682
1682
|
interface OrganizationConfig {
|
|
1683
|
+
ENVIRONMENT: "prod" | "staging";
|
|
1683
1684
|
ORGANIZATION_ID: string;
|
|
1684
1685
|
SLUG: string;
|
|
1685
1686
|
WEBSITE_URL: string;
|
|
@@ -2579,7 +2580,7 @@ interface ResponseWithQuestion extends RegistrationQuestionResponse {
|
|
|
2579
2580
|
interface PurchaseWithResponseQuestions extends Purchase {
|
|
2580
2581
|
responses: ResponseWithQuestion[];
|
|
2581
2582
|
}
|
|
2582
|
-
declare const SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: (eventId: string, registrationId: string, purchaseId: string
|
|
2583
|
+
declare const SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: (eventId: string, registrationId: string, purchaseId: string) => QueryKey;
|
|
2583
2584
|
declare const SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfEventRegistrationPurchase>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
|
2584
2585
|
interface GetSelfEventRegistrationPurchaseProps extends SingleQueryParams {
|
|
2585
2586
|
eventId: string;
|
|
@@ -3681,12 +3682,11 @@ declare const useUpdateSelfEventRegistrationPurchaseResponses: (options?: Omit<M
|
|
|
3681
3682
|
|
|
3682
3683
|
interface TransferPurchaseParams extends MutationParams {
|
|
3683
3684
|
passId: string;
|
|
3684
|
-
purchaseId: string;
|
|
3685
3685
|
eventId: string;
|
|
3686
3686
|
registrationId: string;
|
|
3687
3687
|
receiverId: string;
|
|
3688
3688
|
}
|
|
3689
|
-
declare const TransferPurchase: ({ passId,
|
|
3689
|
+
declare const TransferPurchase: ({ passId, eventId, registrationId, receiverId, clientApiParams, queryClient, }: TransferPurchaseParams) => Promise<ConnectedXMResponse<null>>;
|
|
3690
3690
|
declare const useTransferPurchase: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof TransferPurchase>>, Omit<TransferPurchaseParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<TransferPurchaseParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3691
3691
|
|
|
3692
3692
|
interface CancelSubscriptionParams extends MutationParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -1680,6 +1680,7 @@ declare enum OrganizationActionType {
|
|
|
1680
1680
|
delete = "delete"
|
|
1681
1681
|
}
|
|
1682
1682
|
interface OrganizationConfig {
|
|
1683
|
+
ENVIRONMENT: "prod" | "staging";
|
|
1683
1684
|
ORGANIZATION_ID: string;
|
|
1684
1685
|
SLUG: string;
|
|
1685
1686
|
WEBSITE_URL: string;
|
|
@@ -2579,7 +2580,7 @@ interface ResponseWithQuestion extends RegistrationQuestionResponse {
|
|
|
2579
2580
|
interface PurchaseWithResponseQuestions extends Purchase {
|
|
2580
2581
|
responses: ResponseWithQuestion[];
|
|
2581
2582
|
}
|
|
2582
|
-
declare const SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: (eventId: string, registrationId: string, purchaseId: string
|
|
2583
|
+
declare const SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: (eventId: string, registrationId: string, purchaseId: string) => QueryKey;
|
|
2583
2584
|
declare const SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfEventRegistrationPurchase>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
|
2584
2585
|
interface GetSelfEventRegistrationPurchaseProps extends SingleQueryParams {
|
|
2585
2586
|
eventId: string;
|
|
@@ -3681,12 +3682,11 @@ declare const useUpdateSelfEventRegistrationPurchaseResponses: (options?: Omit<M
|
|
|
3681
3682
|
|
|
3682
3683
|
interface TransferPurchaseParams extends MutationParams {
|
|
3683
3684
|
passId: string;
|
|
3684
|
-
purchaseId: string;
|
|
3685
3685
|
eventId: string;
|
|
3686
3686
|
registrationId: string;
|
|
3687
3687
|
receiverId: string;
|
|
3688
3688
|
}
|
|
3689
|
-
declare const TransferPurchase: ({ passId,
|
|
3689
|
+
declare const TransferPurchase: ({ passId, eventId, registrationId, receiverId, clientApiParams, queryClient, }: TransferPurchaseParams) => Promise<ConnectedXMResponse<null>>;
|
|
3690
3690
|
declare const useTransferPurchase: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof TransferPurchase>>, Omit<TransferPurchaseParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<null>, axios.AxiosError<ConnectedXMResponse<null>, any>, Omit<TransferPurchaseParams, "queryClient" | "clientApiParams">, unknown>;
|
|
3691
3691
|
|
|
3692
3692
|
interface CancelSubscriptionParams extends MutationParams {
|
package/dist/index.js
CHANGED
|
@@ -5582,16 +5582,14 @@ var useGetSelfEventRegistrationPayment = (eventId, registrationId, paymentId, op
|
|
|
5582
5582
|
};
|
|
5583
5583
|
|
|
5584
5584
|
// src/queries/self/registration/useGetSelfEventRegistrationPurchase.ts
|
|
5585
|
-
var SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY = (eventId, registrationId, purchaseId
|
|
5585
|
+
var SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY = (eventId, registrationId, purchaseId) => [
|
|
5586
5586
|
...SELF_QUERY_KEY(),
|
|
5587
5587
|
"EVENT",
|
|
5588
5588
|
eventId,
|
|
5589
5589
|
"REGISTRATION",
|
|
5590
5590
|
registrationId,
|
|
5591
5591
|
"PURCHASE",
|
|
5592
|
-
purchaseId
|
|
5593
|
-
"PASSID",
|
|
5594
|
-
passId
|
|
5592
|
+
purchaseId
|
|
5595
5593
|
];
|
|
5596
5594
|
var SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
5597
5595
|
client.setQueryData(
|
|
@@ -6982,7 +6980,7 @@ var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {})
|
|
|
6982
6980
|
|
|
6983
6981
|
// src/queries/self/useGetSelfGroupActivities.ts
|
|
6984
6982
|
var SELF_GROUP_ACTIVITIES_QUERY_KEY = () => [
|
|
6985
|
-
...
|
|
6983
|
+
...ACTIVITIES_QUERY_KEY(),
|
|
6986
6984
|
"GROUP_ACTIVITIES"
|
|
6987
6985
|
];
|
|
6988
6986
|
var GetSelfGroupActivities = async ({
|
|
@@ -10069,7 +10067,6 @@ var useUpdateSelfEventRegistrationPurchaseResponses = (options = {}) => {
|
|
|
10069
10067
|
// src/mutations/self/events/registration/registered/useTransferPurchase.ts
|
|
10070
10068
|
var TransferPurchase = async ({
|
|
10071
10069
|
passId,
|
|
10072
|
-
purchaseId,
|
|
10073
10070
|
eventId,
|
|
10074
10071
|
registrationId,
|
|
10075
10072
|
receiverId,
|
|
@@ -10088,7 +10085,6 @@ var TransferPurchase = async ({
|
|
|
10088
10085
|
queryKey: SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
|
|
10089
10086
|
eventId,
|
|
10090
10087
|
registrationId,
|
|
10091
|
-
purchaseId,
|
|
10092
10088
|
passId
|
|
10093
10089
|
)
|
|
10094
10090
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -4618,16 +4618,14 @@ var useGetSelfEventRegistrationPayment = (eventId, registrationId, paymentId, op
|
|
|
4618
4618
|
};
|
|
4619
4619
|
|
|
4620
4620
|
// src/queries/self/registration/useGetSelfEventRegistrationPurchase.ts
|
|
4621
|
-
var SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY = (eventId, registrationId, purchaseId
|
|
4621
|
+
var SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY = (eventId, registrationId, purchaseId) => [
|
|
4622
4622
|
...SELF_QUERY_KEY(),
|
|
4623
4623
|
"EVENT",
|
|
4624
4624
|
eventId,
|
|
4625
4625
|
"REGISTRATION",
|
|
4626
4626
|
registrationId,
|
|
4627
4627
|
"PURCHASE",
|
|
4628
|
-
purchaseId
|
|
4629
|
-
"PASSID",
|
|
4630
|
-
passId
|
|
4628
|
+
purchaseId
|
|
4631
4629
|
];
|
|
4632
4630
|
var SET_SELF_EVENT_REGISTRATION_PURCHASE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4633
4631
|
client.setQueryData(
|
|
@@ -6018,7 +6016,7 @@ var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {})
|
|
|
6018
6016
|
|
|
6019
6017
|
// src/queries/self/useGetSelfGroupActivities.ts
|
|
6020
6018
|
var SELF_GROUP_ACTIVITIES_QUERY_KEY = () => [
|
|
6021
|
-
...
|
|
6019
|
+
...ACTIVITIES_QUERY_KEY(),
|
|
6022
6020
|
"GROUP_ACTIVITIES"
|
|
6023
6021
|
];
|
|
6024
6022
|
var GetSelfGroupActivities = async ({
|
|
@@ -9108,7 +9106,6 @@ var useUpdateSelfEventRegistrationPurchaseResponses = (options = {}) => {
|
|
|
9108
9106
|
// src/mutations/self/events/registration/registered/useTransferPurchase.ts
|
|
9109
9107
|
var TransferPurchase = async ({
|
|
9110
9108
|
passId,
|
|
9111
|
-
purchaseId,
|
|
9112
9109
|
eventId,
|
|
9113
9110
|
registrationId,
|
|
9114
9111
|
receiverId,
|
|
@@ -9127,7 +9124,6 @@ var TransferPurchase = async ({
|
|
|
9127
9124
|
queryKey: SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
|
|
9128
9125
|
eventId,
|
|
9129
9126
|
registrationId,
|
|
9130
|
-
purchaseId,
|
|
9131
9127
|
passId
|
|
9132
9128
|
)
|
|
9133
9129
|
});
|