@connectedxm/admin 2.11.0 → 2.11.1
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 +0 -60
- package/dist/index.d.cts +1 -39
- package/dist/index.d.ts +1 -39
- package/dist/index.js +0 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35815,32 +35815,6 @@ var useUpdateThreadMessage = (options = {}) => {
|
|
|
35815
35815
|
});
|
|
35816
35816
|
};
|
|
35817
35817
|
|
|
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
35818
|
// src/mutations/tier/useCreateTier.ts
|
|
35845
35819
|
var CreateTier = async ({
|
|
35846
35820
|
tier,
|
|
@@ -35888,32 +35862,6 @@ var useDeleteTier = (options = {}) => {
|
|
|
35888
35862
|
});
|
|
35889
35863
|
};
|
|
35890
35864
|
|
|
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
35865
|
// src/mutations/tier/useRemoveTierAccounts.ts
|
|
35918
35866
|
var RemoveTierAccounts = async ({
|
|
35919
35867
|
tierId,
|
|
@@ -36280,7 +36228,6 @@ export {
|
|
|
36280
36228
|
AddSeriesEvent,
|
|
36281
36229
|
AddSurveyQuestionChoiceSubQuestion,
|
|
36282
36230
|
AddSurveySectionQuestion,
|
|
36283
|
-
AddTierAccount,
|
|
36284
36231
|
AdvertisementType,
|
|
36285
36232
|
AppendInfiniteQuery,
|
|
36286
36233
|
AuthLayout,
|
|
@@ -37444,7 +37391,6 @@ export {
|
|
|
37444
37391
|
RemoveSeriesEvent,
|
|
37445
37392
|
RemoveSurveyQuestionChoiceSubQuestion,
|
|
37446
37393
|
RemoveSurveySectionQuestion,
|
|
37447
|
-
RemoveTierAccount,
|
|
37448
37394
|
RemoveTierAccounts,
|
|
37449
37395
|
ReorderEventFaqSectionQuestions,
|
|
37450
37396
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -38213,7 +38159,6 @@ export {
|
|
|
38213
38159
|
useAddSeriesEvent,
|
|
38214
38160
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
38215
38161
|
useAddSurveySectionQuestion,
|
|
38216
|
-
useAddTierAccount,
|
|
38217
38162
|
useCancelAnnouncementSchedule,
|
|
38218
38163
|
useCancelChannelContentPublishSchedule,
|
|
38219
38164
|
useCancelEventPass,
|
|
@@ -39005,7 +38950,6 @@ export {
|
|
|
39005
38950
|
useRemoveSeriesEvent,
|
|
39006
38951
|
useRemoveSurveyQuestionChoiceSubQuestion,
|
|
39007
38952
|
useRemoveSurveySectionQuestion,
|
|
39008
|
-
useRemoveTierAccount,
|
|
39009
38953
|
useRemoveTierAccounts,
|
|
39010
38954
|
useReorderEventFaqSectionQuestions,
|
|
39011
38955
|
useReorderEventQuestionChoiceSubQuestions,
|