@connectedxm/admin 2.9.1 → 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
@@ -12853,6 +12853,7 @@ var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
12853
12853
  PaymentIntegrationType2["stripe"] = "stripe";
12854
12854
  PaymentIntegrationType2["paypal"] = "paypal";
12855
12855
  PaymentIntegrationType2["braintree"] = "braintree";
12856
+ PaymentIntegrationType2["authorizenet"] = "authorizenet";
12856
12857
  PaymentIntegrationType2["manual"] = "manual";
12857
12858
  return PaymentIntegrationType2;
12858
12859
  })(PaymentIntegrationType || {});
@@ -30774,6 +30775,30 @@ var useCreateGroup = (options = {}) => {
30774
30775
  });
30775
30776
  };
30776
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
+
30777
30802
  // src/mutations/group/useDeleteGroup.ts
30778
30803
  var DeleteGroup = async ({
30779
30804
  groupId,
@@ -36342,6 +36367,7 @@ export {
36342
36367
  CreateEventTrackTranslation,
36343
36368
  CreateEventTranslation,
36344
36369
  CreateGroup,
36370
+ CreateGroupInvitations,
36345
36371
  CreateGroupTranslation,
36346
36372
  CreateImage,
36347
36373
  CreateImport,
@@ -38219,6 +38245,7 @@ export {
38219
38245
  useCreateEventTrackTranslation,
38220
38246
  useCreateEventTranslation,
38221
38247
  useCreateGroup,
38248
+ useCreateGroupInvitations,
38222
38249
  useCreateGroupTranslation,
38223
38250
  useCreateImage,
38224
38251
  useCreateImport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",