@connectedxm/admin 1.0.0 → 1.0.2
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13036,14 +13036,14 @@ declare const useUpdateEventPage: (options?: Omit<ConnectedXMMutationOptions<Awa
|
|
|
13036
13036
|
*/
|
|
13037
13037
|
interface CreateEventPassTypePriceScheduleParams extends MutationParams {
|
|
13038
13038
|
eventId: string;
|
|
13039
|
-
|
|
13039
|
+
passTypeId: string;
|
|
13040
13040
|
schedule: PassTypePriceScheduleCreateInputs;
|
|
13041
13041
|
}
|
|
13042
13042
|
/**
|
|
13043
13043
|
* @category Methods
|
|
13044
13044
|
* @group Events
|
|
13045
13045
|
*/
|
|
13046
|
-
declare const CreateEventPassTypePriceSchedule: ({ eventId,
|
|
13046
|
+
declare const CreateEventPassTypePriceSchedule: ({ eventId, passTypeId, schedule, adminApiParams, queryClient, }: CreateEventPassTypePriceScheduleParams) => Promise<ConnectedXMResponse<EventPassType>>;
|
|
13047
13047
|
/**
|
|
13048
13048
|
* @category Mutations
|
|
13049
13049
|
* @group Events
|
package/dist/index.d.ts
CHANGED
|
@@ -13036,14 +13036,14 @@ declare const useUpdateEventPage: (options?: Omit<ConnectedXMMutationOptions<Awa
|
|
|
13036
13036
|
*/
|
|
13037
13037
|
interface CreateEventPassTypePriceScheduleParams extends MutationParams {
|
|
13038
13038
|
eventId: string;
|
|
13039
|
-
|
|
13039
|
+
passTypeId: string;
|
|
13040
13040
|
schedule: PassTypePriceScheduleCreateInputs;
|
|
13041
13041
|
}
|
|
13042
13042
|
/**
|
|
13043
13043
|
* @category Methods
|
|
13044
13044
|
* @group Events
|
|
13045
13045
|
*/
|
|
13046
|
-
declare const CreateEventPassTypePriceSchedule: ({ eventId,
|
|
13046
|
+
declare const CreateEventPassTypePriceSchedule: ({ eventId, passTypeId, schedule, adminApiParams, queryClient, }: CreateEventPassTypePriceScheduleParams) => Promise<ConnectedXMResponse<EventPassType>>;
|
|
13047
13047
|
/**
|
|
13048
13048
|
* @category Mutations
|
|
13049
13049
|
* @group Events
|
package/dist/index.js
CHANGED
|
@@ -17434,23 +17434,23 @@ var useUpdateEventPage = (options = {}) => {
|
|
|
17434
17434
|
// src/mutations/event/passTypes/priceSchedules/useCreateEventPassTypePriceSchedule.ts
|
|
17435
17435
|
var CreateEventPassTypePriceSchedule = async ({
|
|
17436
17436
|
eventId,
|
|
17437
|
-
|
|
17437
|
+
passTypeId,
|
|
17438
17438
|
schedule,
|
|
17439
17439
|
adminApiParams,
|
|
17440
17440
|
queryClient
|
|
17441
17441
|
}) => {
|
|
17442
17442
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
17443
17443
|
const { data } = await connectedXM.post(
|
|
17444
|
-
`/events/${eventId}/passTypes/${
|
|
17444
|
+
`/events/${eventId}/passTypes/${passTypeId}/priceSchedules`,
|
|
17445
17445
|
schedule
|
|
17446
17446
|
);
|
|
17447
17447
|
if (queryClient && data.status === "ok") {
|
|
17448
17448
|
queryClient.invalidateQueries({
|
|
17449
|
-
queryKey: EVENT_PASS_TYPE_PRICE_SCHEDULES_QUERY_KEY(eventId,
|
|
17449
|
+
queryKey: EVENT_PASS_TYPE_PRICE_SCHEDULES_QUERY_KEY(eventId, passTypeId)
|
|
17450
17450
|
});
|
|
17451
17451
|
SET_EVENT_PASS_TYPE_PRICE_SCHEDULE_QUERY_DATA(
|
|
17452
17452
|
queryClient,
|
|
17453
|
-
[eventId,
|
|
17453
|
+
[eventId, passTypeId, data.data?.id],
|
|
17454
17454
|
data
|
|
17455
17455
|
);
|
|
17456
17456
|
}
|
|
@@ -18047,6 +18047,9 @@ var UpdateEventPass = async ({
|
|
|
18047
18047
|
});
|
|
18048
18048
|
}
|
|
18049
18049
|
if (data.data.registrationId) {
|
|
18050
|
+
queryClient.invalidateQueries({
|
|
18051
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(eventId, data.data.registrationId)
|
|
18052
|
+
});
|
|
18050
18053
|
queryClient.invalidateQueries({
|
|
18051
18054
|
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
18052
18055
|
eventId,
|
package/dist/index.mjs
CHANGED
|
@@ -15492,23 +15492,23 @@ var useUpdateEventPage = (options = {}) => {
|
|
|
15492
15492
|
// src/mutations/event/passTypes/priceSchedules/useCreateEventPassTypePriceSchedule.ts
|
|
15493
15493
|
var CreateEventPassTypePriceSchedule = async ({
|
|
15494
15494
|
eventId,
|
|
15495
|
-
|
|
15495
|
+
passTypeId,
|
|
15496
15496
|
schedule,
|
|
15497
15497
|
adminApiParams,
|
|
15498
15498
|
queryClient
|
|
15499
15499
|
}) => {
|
|
15500
15500
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
15501
15501
|
const { data } = await connectedXM.post(
|
|
15502
|
-
`/events/${eventId}/passTypes/${
|
|
15502
|
+
`/events/${eventId}/passTypes/${passTypeId}/priceSchedules`,
|
|
15503
15503
|
schedule
|
|
15504
15504
|
);
|
|
15505
15505
|
if (queryClient && data.status === "ok") {
|
|
15506
15506
|
queryClient.invalidateQueries({
|
|
15507
|
-
queryKey: EVENT_PASS_TYPE_PRICE_SCHEDULES_QUERY_KEY(eventId,
|
|
15507
|
+
queryKey: EVENT_PASS_TYPE_PRICE_SCHEDULES_QUERY_KEY(eventId, passTypeId)
|
|
15508
15508
|
});
|
|
15509
15509
|
SET_EVENT_PASS_TYPE_PRICE_SCHEDULE_QUERY_DATA(
|
|
15510
15510
|
queryClient,
|
|
15511
|
-
[eventId,
|
|
15511
|
+
[eventId, passTypeId, data.data?.id],
|
|
15512
15512
|
data
|
|
15513
15513
|
);
|
|
15514
15514
|
}
|
|
@@ -16105,6 +16105,9 @@ var UpdateEventPass = async ({
|
|
|
16105
16105
|
});
|
|
16106
16106
|
}
|
|
16107
16107
|
if (data.data.registrationId) {
|
|
16108
|
+
queryClient.invalidateQueries({
|
|
16109
|
+
queryKey: EVENT_ATTENDEE_QUERY_KEY(eventId, data.data.registrationId)
|
|
16110
|
+
});
|
|
16108
16111
|
queryClient.invalidateQueries({
|
|
16109
16112
|
queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
|
|
16110
16113
|
eventId,
|