@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.js CHANGED
@@ -30775,6 +30775,30 @@ var useCreateGroup = (options = {}) => {
30775
30775
  });
30776
30776
  };
30777
30777
 
30778
+ // src/mutations/group/useCreateGroupInvitations.ts
30779
+ var CreateGroupInvitations = async ({
30780
+ groupId,
30781
+ moderatorId,
30782
+ accountIds,
30783
+ adminApiParams,
30784
+ queryClient
30785
+ }) => {
30786
+ const connectedXM = await GetAdminAPI(adminApiParams);
30787
+ const { data } = await connectedXM.post(`/groups/${groupId}/invitations`, { moderatorId, accountIds });
30788
+ if (queryClient && data.status === "ok") {
30789
+ queryClient.invalidateQueries({
30790
+ queryKey: GROUP_INVITATIONS_QUERY_KEY(groupId)
30791
+ });
30792
+ }
30793
+ return data;
30794
+ };
30795
+ var useCreateGroupInvitations = (options = {}) => {
30796
+ return useConnectedMutation(CreateGroupInvitations, options, {
30797
+ domain: "groups",
30798
+ type: "create"
30799
+ });
30800
+ };
30801
+
30778
30802
  // src/mutations/group/useDeleteGroup.ts
30779
30803
  var DeleteGroup = async ({
30780
30804
  groupId,
@@ -36343,6 +36367,7 @@ export {
36343
36367
  CreateEventTrackTranslation,
36344
36368
  CreateEventTranslation,
36345
36369
  CreateGroup,
36370
+ CreateGroupInvitations,
36346
36371
  CreateGroupTranslation,
36347
36372
  CreateImage,
36348
36373
  CreateImport,
@@ -38220,6 +38245,7 @@ export {
38220
38245
  useCreateEventTrackTranslation,
38221
38246
  useCreateEventTranslation,
38222
38247
  useCreateGroup,
38248
+ useCreateGroupInvitations,
38223
38249
  useCreateGroupTranslation,
38224
38250
  useCreateImage,
38225
38251
  useCreateImport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",