@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.cjs
CHANGED
|
@@ -135,7 +135,6 @@ __export(index_exports, {
|
|
|
135
135
|
AddSeriesEvent: () => AddSeriesEvent,
|
|
136
136
|
AddSurveyQuestionChoiceSubQuestion: () => AddSurveyQuestionChoiceSubQuestion,
|
|
137
137
|
AddSurveySectionQuestion: () => AddSurveySectionQuestion,
|
|
138
|
-
AddTierAccount: () => AddTierAccount,
|
|
139
138
|
AdvertisementType: () => AdvertisementType,
|
|
140
139
|
AppendInfiniteQuery: () => AppendInfiniteQuery,
|
|
141
140
|
AuthLayout: () => AuthLayout,
|
|
@@ -1299,7 +1298,6 @@ __export(index_exports, {
|
|
|
1299
1298
|
RemoveSeriesEvent: () => RemoveSeriesEvent,
|
|
1300
1299
|
RemoveSurveyQuestionChoiceSubQuestion: () => RemoveSurveyQuestionChoiceSubQuestion,
|
|
1301
1300
|
RemoveSurveySectionQuestion: () => RemoveSurveySectionQuestion,
|
|
1302
|
-
RemoveTierAccount: () => RemoveTierAccount,
|
|
1303
1301
|
RemoveTierAccounts: () => RemoveTierAccounts,
|
|
1304
1302
|
ReorderEventFaqSectionQuestions: () => ReorderEventFaqSectionQuestions,
|
|
1305
1303
|
ReorderEventQuestionChoiceSubQuestions: () => ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -2068,7 +2066,6 @@ __export(index_exports, {
|
|
|
2068
2066
|
useAddSeriesEvent: () => useAddSeriesEvent,
|
|
2069
2067
|
useAddSurveyQuestionChoiceSubQuestion: () => useAddSurveyQuestionChoiceSubQuestion,
|
|
2070
2068
|
useAddSurveySectionQuestion: () => useAddSurveySectionQuestion,
|
|
2071
|
-
useAddTierAccount: () => useAddTierAccount,
|
|
2072
2069
|
useCancelAnnouncementSchedule: () => useCancelAnnouncementSchedule,
|
|
2073
2070
|
useCancelChannelContentPublishSchedule: () => useCancelChannelContentPublishSchedule,
|
|
2074
2071
|
useCancelEventPass: () => useCancelEventPass,
|
|
@@ -2860,7 +2857,6 @@ __export(index_exports, {
|
|
|
2860
2857
|
useRemoveSeriesEvent: () => useRemoveSeriesEvent,
|
|
2861
2858
|
useRemoveSurveyQuestionChoiceSubQuestion: () => useRemoveSurveyQuestionChoiceSubQuestion,
|
|
2862
2859
|
useRemoveSurveySectionQuestion: () => useRemoveSurveySectionQuestion,
|
|
2863
|
-
useRemoveTierAccount: () => useRemoveTierAccount,
|
|
2864
2860
|
useRemoveTierAccounts: () => useRemoveTierAccounts,
|
|
2865
2861
|
useReorderEventFaqSectionQuestions: () => useReorderEventFaqSectionQuestions,
|
|
2866
2862
|
useReorderEventQuestionChoiceSubQuestions: () => useReorderEventQuestionChoiceSubQuestions,
|
|
@@ -38857,32 +38853,6 @@ var useUpdateThreadMessage = (options = {}) => {
|
|
|
38857
38853
|
});
|
|
38858
38854
|
};
|
|
38859
38855
|
|
|
38860
|
-
// src/mutations/tier/useAddTierAccount.ts
|
|
38861
|
-
var AddTierAccount = async ({
|
|
38862
|
-
tierId,
|
|
38863
|
-
accountId,
|
|
38864
|
-
adminApiParams,
|
|
38865
|
-
queryClient
|
|
38866
|
-
}) => {
|
|
38867
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
38868
|
-
const { data } = await connectedXM.post(
|
|
38869
|
-
`/tiers/${tierId}/accounts/${accountId}`
|
|
38870
|
-
);
|
|
38871
|
-
if (queryClient && data.status === "ok") {
|
|
38872
|
-
SET_TIER_QUERY_DATA(queryClient, [tierId], data);
|
|
38873
|
-
queryClient.invalidateQueries({
|
|
38874
|
-
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
38875
|
-
});
|
|
38876
|
-
}
|
|
38877
|
-
return data;
|
|
38878
|
-
};
|
|
38879
|
-
var useAddTierAccount = (options = {}) => {
|
|
38880
|
-
return useConnectedMutation(AddTierAccount, options, {
|
|
38881
|
-
domain: "accounts",
|
|
38882
|
-
type: "update"
|
|
38883
|
-
});
|
|
38884
|
-
};
|
|
38885
|
-
|
|
38886
38856
|
// src/mutations/tier/useCreateTier.ts
|
|
38887
38857
|
var CreateTier = async ({
|
|
38888
38858
|
tier,
|
|
@@ -38930,32 +38900,6 @@ var useDeleteTier = (options = {}) => {
|
|
|
38930
38900
|
});
|
|
38931
38901
|
};
|
|
38932
38902
|
|
|
38933
|
-
// src/mutations/tier/useRemoveTierAccount.ts
|
|
38934
|
-
var RemoveTierAccount = async ({
|
|
38935
|
-
tierId,
|
|
38936
|
-
accountId,
|
|
38937
|
-
adminApiParams,
|
|
38938
|
-
queryClient
|
|
38939
|
-
}) => {
|
|
38940
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
38941
|
-
const { data } = await connectedXM.delete(
|
|
38942
|
-
`/tiers/${tierId}/accounts/${accountId}`
|
|
38943
|
-
);
|
|
38944
|
-
if (queryClient && data.status === "ok") {
|
|
38945
|
-
SET_TIER_QUERY_DATA(queryClient, [tierId], data);
|
|
38946
|
-
queryClient.invalidateQueries({
|
|
38947
|
-
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
38948
|
-
});
|
|
38949
|
-
}
|
|
38950
|
-
return data;
|
|
38951
|
-
};
|
|
38952
|
-
var useRemoveTierAccount = (options = {}) => {
|
|
38953
|
-
return useConnectedMutation(RemoveTierAccount, options, {
|
|
38954
|
-
domain: "accounts",
|
|
38955
|
-
type: "update"
|
|
38956
|
-
});
|
|
38957
|
-
};
|
|
38958
|
-
|
|
38959
38903
|
// src/mutations/tier/useRemoveTierAccounts.ts
|
|
38960
38904
|
var RemoveTierAccounts = async ({
|
|
38961
38905
|
tierId,
|
|
@@ -38994,14 +38938,7 @@ var UpdateTier = async ({
|
|
|
38994
38938
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
38995
38939
|
const { data } = await connectedXM.put(
|
|
38996
38940
|
`/tiers/${tierId}`,
|
|
38997
|
-
|
|
38998
|
-
...tier,
|
|
38999
|
-
id: void 0,
|
|
39000
|
-
image: void 0,
|
|
39001
|
-
createdAt: void 0,
|
|
39002
|
-
updatedAt: void 0,
|
|
39003
|
-
_count: void 0
|
|
39004
|
-
}
|
|
38941
|
+
tier
|
|
39005
38942
|
);
|
|
39006
38943
|
if (queryClient && data.status === "ok") {
|
|
39007
38944
|
SET_TIER_QUERY_DATA(queryClient, [tierId || data.data?.id], data);
|
|
@@ -39330,7 +39267,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39330
39267
|
AddSeriesEvent,
|
|
39331
39268
|
AddSurveyQuestionChoiceSubQuestion,
|
|
39332
39269
|
AddSurveySectionQuestion,
|
|
39333
|
-
AddTierAccount,
|
|
39334
39270
|
AdvertisementType,
|
|
39335
39271
|
AppendInfiniteQuery,
|
|
39336
39272
|
AuthLayout,
|
|
@@ -40494,7 +40430,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40494
40430
|
RemoveSeriesEvent,
|
|
40495
40431
|
RemoveSurveyQuestionChoiceSubQuestion,
|
|
40496
40432
|
RemoveSurveySectionQuestion,
|
|
40497
|
-
RemoveTierAccount,
|
|
40498
40433
|
RemoveTierAccounts,
|
|
40499
40434
|
ReorderEventFaqSectionQuestions,
|
|
40500
40435
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -41263,7 +41198,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41263
41198
|
useAddSeriesEvent,
|
|
41264
41199
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
41265
41200
|
useAddSurveySectionQuestion,
|
|
41266
|
-
useAddTierAccount,
|
|
41267
41201
|
useCancelAnnouncementSchedule,
|
|
41268
41202
|
useCancelChannelContentPublishSchedule,
|
|
41269
41203
|
useCancelEventPass,
|
|
@@ -42055,7 +41989,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42055
41989
|
useRemoveSeriesEvent,
|
|
42056
41990
|
useRemoveSurveyQuestionChoiceSubQuestion,
|
|
42057
41991
|
useRemoveSurveySectionQuestion,
|
|
42058
|
-
useRemoveTierAccount,
|
|
42059
41992
|
useRemoveTierAccounts,
|
|
42060
41993
|
useReorderEventFaqSectionQuestions,
|
|
42061
41994
|
useReorderEventQuestionChoiceSubQuestions,
|