@connectedxm/admin 2.11.0 → 2.11.2
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 +6 -60
- package/dist/index.d.cts +1 -39
- package/dist/index.d.ts +1 -39
- package/dist/index.js +6 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19058,6 +19058,9 @@ var AddAccountTier = async ({
|
|
|
19058
19058
|
queryClient.invalidateQueries({
|
|
19059
19059
|
queryKey: ACCOUNT_TIERS_QUERY_KEY(accountId)
|
|
19060
19060
|
});
|
|
19061
|
+
queryClient.invalidateQueries({
|
|
19062
|
+
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
19063
|
+
});
|
|
19061
19064
|
}
|
|
19062
19065
|
return data;
|
|
19063
19066
|
};
|
|
@@ -19484,6 +19487,9 @@ var RemoveAccountTier = async ({
|
|
|
19484
19487
|
queryClient.invalidateQueries({
|
|
19485
19488
|
queryKey: ACCOUNT_TIERS_QUERY_KEY(accountId)
|
|
19486
19489
|
});
|
|
19490
|
+
queryClient.invalidateQueries({
|
|
19491
|
+
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
19492
|
+
});
|
|
19487
19493
|
}
|
|
19488
19494
|
return data;
|
|
19489
19495
|
};
|
|
@@ -35815,32 +35821,6 @@ var useUpdateThreadMessage = (options = {}) => {
|
|
|
35815
35821
|
});
|
|
35816
35822
|
};
|
|
35817
35823
|
|
|
35818
|
-
// src/mutations/tier/useAddTierAccount.ts
|
|
35819
|
-
var AddTierAccount = async ({
|
|
35820
|
-
tierId,
|
|
35821
|
-
accountId,
|
|
35822
|
-
adminApiParams,
|
|
35823
|
-
queryClient
|
|
35824
|
-
}) => {
|
|
35825
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
35826
|
-
const { data } = await connectedXM.post(
|
|
35827
|
-
`/tiers/${tierId}/accounts/${accountId}`
|
|
35828
|
-
);
|
|
35829
|
-
if (queryClient && data.status === "ok") {
|
|
35830
|
-
SET_TIER_QUERY_DATA(queryClient, [tierId], data);
|
|
35831
|
-
queryClient.invalidateQueries({
|
|
35832
|
-
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
35833
|
-
});
|
|
35834
|
-
}
|
|
35835
|
-
return data;
|
|
35836
|
-
};
|
|
35837
|
-
var useAddTierAccount = (options = {}) => {
|
|
35838
|
-
return useConnectedMutation(AddTierAccount, options, {
|
|
35839
|
-
domain: "accounts",
|
|
35840
|
-
type: "update"
|
|
35841
|
-
});
|
|
35842
|
-
};
|
|
35843
|
-
|
|
35844
35824
|
// src/mutations/tier/useCreateTier.ts
|
|
35845
35825
|
var CreateTier = async ({
|
|
35846
35826
|
tier,
|
|
@@ -35888,32 +35868,6 @@ var useDeleteTier = (options = {}) => {
|
|
|
35888
35868
|
});
|
|
35889
35869
|
};
|
|
35890
35870
|
|
|
35891
|
-
// src/mutations/tier/useRemoveTierAccount.ts
|
|
35892
|
-
var RemoveTierAccount = async ({
|
|
35893
|
-
tierId,
|
|
35894
|
-
accountId,
|
|
35895
|
-
adminApiParams,
|
|
35896
|
-
queryClient
|
|
35897
|
-
}) => {
|
|
35898
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
35899
|
-
const { data } = await connectedXM.delete(
|
|
35900
|
-
`/tiers/${tierId}/accounts/${accountId}`
|
|
35901
|
-
);
|
|
35902
|
-
if (queryClient && data.status === "ok") {
|
|
35903
|
-
SET_TIER_QUERY_DATA(queryClient, [tierId], data);
|
|
35904
|
-
queryClient.invalidateQueries({
|
|
35905
|
-
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
35906
|
-
});
|
|
35907
|
-
}
|
|
35908
|
-
return data;
|
|
35909
|
-
};
|
|
35910
|
-
var useRemoveTierAccount = (options = {}) => {
|
|
35911
|
-
return useConnectedMutation(RemoveTierAccount, options, {
|
|
35912
|
-
domain: "accounts",
|
|
35913
|
-
type: "update"
|
|
35914
|
-
});
|
|
35915
|
-
};
|
|
35916
|
-
|
|
35917
35871
|
// src/mutations/tier/useRemoveTierAccounts.ts
|
|
35918
35872
|
var RemoveTierAccounts = async ({
|
|
35919
35873
|
tierId,
|
|
@@ -36280,7 +36234,6 @@ export {
|
|
|
36280
36234
|
AddSeriesEvent,
|
|
36281
36235
|
AddSurveyQuestionChoiceSubQuestion,
|
|
36282
36236
|
AddSurveySectionQuestion,
|
|
36283
|
-
AddTierAccount,
|
|
36284
36237
|
AdvertisementType,
|
|
36285
36238
|
AppendInfiniteQuery,
|
|
36286
36239
|
AuthLayout,
|
|
@@ -37444,7 +37397,6 @@ export {
|
|
|
37444
37397
|
RemoveSeriesEvent,
|
|
37445
37398
|
RemoveSurveyQuestionChoiceSubQuestion,
|
|
37446
37399
|
RemoveSurveySectionQuestion,
|
|
37447
|
-
RemoveTierAccount,
|
|
37448
37400
|
RemoveTierAccounts,
|
|
37449
37401
|
ReorderEventFaqSectionQuestions,
|
|
37450
37402
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -38213,7 +38165,6 @@ export {
|
|
|
38213
38165
|
useAddSeriesEvent,
|
|
38214
38166
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
38215
38167
|
useAddSurveySectionQuestion,
|
|
38216
|
-
useAddTierAccount,
|
|
38217
38168
|
useCancelAnnouncementSchedule,
|
|
38218
38169
|
useCancelChannelContentPublishSchedule,
|
|
38219
38170
|
useCancelEventPass,
|
|
@@ -39005,7 +38956,6 @@ export {
|
|
|
39005
38956
|
useRemoveSeriesEvent,
|
|
39006
38957
|
useRemoveSurveyQuestionChoiceSubQuestion,
|
|
39007
38958
|
useRemoveSurveySectionQuestion,
|
|
39008
|
-
useRemoveTierAccount,
|
|
39009
38959
|
useRemoveTierAccounts,
|
|
39010
38960
|
useReorderEventFaqSectionQuestions,
|
|
39011
38961
|
useReorderEventQuestionChoiceSubQuestions,
|