@connectedxm/admin 0.0.31 → 0.0.32

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 CHANGED
@@ -12809,12 +12809,13 @@ declare const useCreateEventQuestionSearchValues: (options?: Omit<ConnectedXMMut
12809
12809
  interface DeleteEventQuestionParams extends MutationParams {
12810
12810
  eventId: string;
12811
12811
  questionId: string;
12812
+ sectionId?: string;
12812
12813
  }
12813
12814
  /**
12814
12815
  * @category Methods
12815
12816
  * @group Event-Questions
12816
12817
  */
12817
- declare const DeleteEventQuestion: ({ eventId, questionId, adminApiParams, queryClient, }: DeleteEventQuestionParams) => Promise<ConnectedXMResponse<null>>;
12818
+ declare const DeleteEventQuestion: ({ eventId, questionId, sectionId, adminApiParams, queryClient, }: DeleteEventQuestionParams) => Promise<ConnectedXMResponse<null>>;
12818
12819
  /**
12819
12820
  * @category Mutations
12820
12821
  * @group Event-Questions
package/dist/index.d.ts CHANGED
@@ -12809,12 +12809,13 @@ declare const useCreateEventQuestionSearchValues: (options?: Omit<ConnectedXMMut
12809
12809
  interface DeleteEventQuestionParams extends MutationParams {
12810
12810
  eventId: string;
12811
12811
  questionId: string;
12812
+ sectionId?: string;
12812
12813
  }
12813
12814
  /**
12814
12815
  * @category Methods
12815
12816
  * @group Event-Questions
12816
12817
  */
12817
- declare const DeleteEventQuestion: ({ eventId, questionId, adminApiParams, queryClient, }: DeleteEventQuestionParams) => Promise<ConnectedXMResponse<null>>;
12818
+ declare const DeleteEventQuestion: ({ eventId, questionId, sectionId, adminApiParams, queryClient, }: DeleteEventQuestionParams) => Promise<ConnectedXMResponse<null>>;
12818
12819
  /**
12819
12820
  * @category Mutations
12820
12821
  * @group Event-Questions
package/dist/index.js CHANGED
@@ -17164,6 +17164,7 @@ var useCreateEventQuestionSearchValues = (options = {}) => {
17164
17164
  var DeleteEventQuestion = async ({
17165
17165
  eventId,
17166
17166
  questionId,
17167
+ sectionId,
17167
17168
  adminApiParams,
17168
17169
  queryClient
17169
17170
  }) => {
@@ -17178,6 +17179,11 @@ var DeleteEventQuestion = async ({
17178
17179
  queryClient.removeQueries({
17179
17180
  queryKey: EVENT_QUESTION_QUERY_KEY(eventId, questionId)
17180
17181
  });
17182
+ if (sectionId) {
17183
+ queryClient.invalidateQueries({
17184
+ queryKey: EVENT_SECTION_QUESTIONS_QUERY_KEY(eventId, sectionId)
17185
+ });
17186
+ }
17181
17187
  }
17182
17188
  return data;
17183
17189
  };
package/dist/index.mjs CHANGED
@@ -15281,6 +15281,7 @@ var useCreateEventQuestionSearchValues = (options = {}) => {
15281
15281
  var DeleteEventQuestion = async ({
15282
15282
  eventId,
15283
15283
  questionId,
15284
+ sectionId,
15284
15285
  adminApiParams,
15285
15286
  queryClient
15286
15287
  }) => {
@@ -15295,6 +15296,11 @@ var DeleteEventQuestion = async ({
15295
15296
  queryClient.removeQueries({
15296
15297
  queryKey: EVENT_QUESTION_QUERY_KEY(eventId, questionId)
15297
15298
  });
15299
+ if (sectionId) {
15300
+ queryClient.invalidateQueries({
15301
+ queryKey: EVENT_SECTION_QUESTIONS_QUERY_KEY(eventId, sectionId)
15302
+ });
15303
+ }
15298
15304
  }
15299
15305
  return data;
15300
15306
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {