@connectedxm/admin 2.10.9 → 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 +1 -68
- package/dist/index.d.cts +7 -39
- package/dist/index.d.ts +7 -39
- package/dist/index.js +1 -64
- 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,
|
|
@@ -35952,14 +35900,7 @@ var UpdateTier = async ({
|
|
|
35952
35900
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
35953
35901
|
const { data } = await connectedXM.put(
|
|
35954
35902
|
`/tiers/${tierId}`,
|
|
35955
|
-
|
|
35956
|
-
...tier,
|
|
35957
|
-
id: void 0,
|
|
35958
|
-
image: void 0,
|
|
35959
|
-
createdAt: void 0,
|
|
35960
|
-
updatedAt: void 0,
|
|
35961
|
-
_count: void 0
|
|
35962
|
-
}
|
|
35903
|
+
tier
|
|
35963
35904
|
);
|
|
35964
35905
|
if (queryClient && data.status === "ok") {
|
|
35965
35906
|
SET_TIER_QUERY_DATA(queryClient, [tierId || data.data?.id], data);
|
|
@@ -36287,7 +36228,6 @@ export {
|
|
|
36287
36228
|
AddSeriesEvent,
|
|
36288
36229
|
AddSurveyQuestionChoiceSubQuestion,
|
|
36289
36230
|
AddSurveySectionQuestion,
|
|
36290
|
-
AddTierAccount,
|
|
36291
36231
|
AdvertisementType,
|
|
36292
36232
|
AppendInfiniteQuery,
|
|
36293
36233
|
AuthLayout,
|
|
@@ -37451,7 +37391,6 @@ export {
|
|
|
37451
37391
|
RemoveSeriesEvent,
|
|
37452
37392
|
RemoveSurveyQuestionChoiceSubQuestion,
|
|
37453
37393
|
RemoveSurveySectionQuestion,
|
|
37454
|
-
RemoveTierAccount,
|
|
37455
37394
|
RemoveTierAccounts,
|
|
37456
37395
|
ReorderEventFaqSectionQuestions,
|
|
37457
37396
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -38220,7 +38159,6 @@ export {
|
|
|
38220
38159
|
useAddSeriesEvent,
|
|
38221
38160
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
38222
38161
|
useAddSurveySectionQuestion,
|
|
38223
|
-
useAddTierAccount,
|
|
38224
38162
|
useCancelAnnouncementSchedule,
|
|
38225
38163
|
useCancelChannelContentPublishSchedule,
|
|
38226
38164
|
useCancelEventPass,
|
|
@@ -39012,7 +38950,6 @@ export {
|
|
|
39012
38950
|
useRemoveSeriesEvent,
|
|
39013
38951
|
useRemoveSurveyQuestionChoiceSubQuestion,
|
|
39014
38952
|
useRemoveSurveySectionQuestion,
|
|
39015
|
-
useRemoveTierAccount,
|
|
39016
38953
|
useRemoveTierAccounts,
|
|
39017
38954
|
useReorderEventFaqSectionQuestions,
|
|
39018
38955
|
useReorderEventQuestionChoiceSubQuestions,
|