@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.cjs +29 -0
- package/dist/index.d.cts +38 -11
- package/dist/index.d.ts +38 -11
- package/dist/index.js +27 -0
- package/package.json +1 -1
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,
|
|
@@ -15893,6 +15895,7 @@ var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
|
|
|
15893
15895
|
PaymentIntegrationType2["stripe"] = "stripe";
|
|
15894
15896
|
PaymentIntegrationType2["paypal"] = "paypal";
|
|
15895
15897
|
PaymentIntegrationType2["braintree"] = "braintree";
|
|
15898
|
+
PaymentIntegrationType2["authorizenet"] = "authorizenet";
|
|
15896
15899
|
PaymentIntegrationType2["manual"] = "manual";
|
|
15897
15900
|
return PaymentIntegrationType2;
|
|
15898
15901
|
})(PaymentIntegrationType || {});
|
|
@@ -33809,6 +33812,30 @@ var useCreateGroup = (options = {}) => {
|
|
|
33809
33812
|
});
|
|
33810
33813
|
};
|
|
33811
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
|
+
|
|
33812
33839
|
// src/mutations/group/useDeleteGroup.ts
|
|
33813
33840
|
var DeleteGroup = async ({
|
|
33814
33841
|
groupId,
|
|
@@ -39378,6 +39405,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39378
39405
|
CreateEventTrackTranslation,
|
|
39379
39406
|
CreateEventTranslation,
|
|
39380
39407
|
CreateGroup,
|
|
39408
|
+
CreateGroupInvitations,
|
|
39381
39409
|
CreateGroupTranslation,
|
|
39382
39410
|
CreateImage,
|
|
39383
39411
|
CreateImport,
|
|
@@ -41255,6 +41283,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41255
41283
|
useCreateEventTrackTranslation,
|
|
41256
41284
|
useCreateEventTranslation,
|
|
41257
41285
|
useCreateGroup,
|
|
41286
|
+
useCreateGroupInvitations,
|
|
41258
41287
|
useCreateGroupTranslation,
|
|
41259
41288
|
useCreateImage,
|
|
41260
41289
|
useCreateImport,
|