@connectedxm/admin 2.9.2 → 2.9.3

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.cjs CHANGED
@@ -289,6 +289,7 @@ __export(index_exports, {
289
289
  CreateEventTrackTranslation: () => CreateEventTrackTranslation,
290
290
  CreateEventTranslation: () => CreateEventTranslation,
291
291
  CreateGroup: () => CreateGroup,
292
+ CreateGroupInvitations: () => CreateGroupInvitations,
292
293
  CreateGroupTranslation: () => CreateGroupTranslation,
293
294
  CreateImage: () => CreateImage,
294
295
  CreateImport: () => CreateImport,
@@ -2166,6 +2167,7 @@ __export(index_exports, {
2166
2167
  useCreateEventTrackTranslation: () => useCreateEventTrackTranslation,
2167
2168
  useCreateEventTranslation: () => useCreateEventTranslation,
2168
2169
  useCreateGroup: () => useCreateGroup,
2170
+ useCreateGroupInvitations: () => useCreateGroupInvitations,
2169
2171
  useCreateGroupTranslation: () => useCreateGroupTranslation,
2170
2172
  useCreateImage: () => useCreateImage,
2171
2173
  useCreateImport: () => useCreateImport,
@@ -33810,6 +33812,30 @@ var useCreateGroup = (options = {}) => {
33810
33812
  });
33811
33813
  };
33812
33814
 
33815
+ // src/mutations/group/useCreateGroupInvitations.ts
33816
+ var CreateGroupInvitations = async ({
33817
+ groupId,
33818
+ moderatorId,
33819
+ accountIds,
33820
+ adminApiParams,
33821
+ queryClient
33822
+ }) => {
33823
+ const connectedXM = await GetAdminAPI(adminApiParams);
33824
+ const { data } = await connectedXM.post(`/groups/${groupId}/invitations`, { moderatorId, accountIds });
33825
+ if (queryClient && data.status === "ok") {
33826
+ queryClient.invalidateQueries({
33827
+ queryKey: GROUP_INVITATIONS_QUERY_KEY(groupId)
33828
+ });
33829
+ }
33830
+ return data;
33831
+ };
33832
+ var useCreateGroupInvitations = (options = {}) => {
33833
+ return useConnectedMutation(CreateGroupInvitations, options, {
33834
+ domain: "groups",
33835
+ type: "create"
33836
+ });
33837
+ };
33838
+
33813
33839
  // src/mutations/group/useDeleteGroup.ts
33814
33840
  var DeleteGroup = async ({
33815
33841
  groupId,
@@ -39379,6 +39405,7 @@ var useUploadVideoCaptions = (options = {}) => {
39379
39405
  CreateEventTrackTranslation,
39380
39406
  CreateEventTranslation,
39381
39407
  CreateGroup,
39408
+ CreateGroupInvitations,
39382
39409
  CreateGroupTranslation,
39383
39410
  CreateImage,
39384
39411
  CreateImport,
@@ -41256,6 +41283,7 @@ var useUploadVideoCaptions = (options = {}) => {
41256
41283
  useCreateEventTrackTranslation,
41257
41284
  useCreateEventTranslation,
41258
41285
  useCreateGroup,
41286
+ useCreateGroupInvitations,
41259
41287
  useCreateGroupTranslation,
41260
41288
  useCreateImage,
41261
41289
  useCreateImport,