@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.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,
|
|
@@ -22100,6 +22096,9 @@ var AddAccountTier = async ({
|
|
|
22100
22096
|
queryClient.invalidateQueries({
|
|
22101
22097
|
queryKey: ACCOUNT_TIERS_QUERY_KEY(accountId)
|
|
22102
22098
|
});
|
|
22099
|
+
queryClient.invalidateQueries({
|
|
22100
|
+
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
22101
|
+
});
|
|
22103
22102
|
}
|
|
22104
22103
|
return data;
|
|
22105
22104
|
};
|
|
@@ -22526,6 +22525,9 @@ var RemoveAccountTier = async ({
|
|
|
22526
22525
|
queryClient.invalidateQueries({
|
|
22527
22526
|
queryKey: ACCOUNT_TIERS_QUERY_KEY(accountId)
|
|
22528
22527
|
});
|
|
22528
|
+
queryClient.invalidateQueries({
|
|
22529
|
+
queryKey: TIER_ACCOUNTS_QUERY_KEY(tierId)
|
|
22530
|
+
});
|
|
22529
22531
|
}
|
|
22530
22532
|
return data;
|
|
22531
22533
|
};
|
|
@@ -38857,32 +38859,6 @@ var useUpdateThreadMessage = (options = {}) => {
|
|
|
38857
38859
|
});
|
|
38858
38860
|
};
|
|
38859
38861
|
|
|
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
38862
|
// src/mutations/tier/useCreateTier.ts
|
|
38887
38863
|
var CreateTier = async ({
|
|
38888
38864
|
tier,
|
|
@@ -38930,32 +38906,6 @@ var useDeleteTier = (options = {}) => {
|
|
|
38930
38906
|
});
|
|
38931
38907
|
};
|
|
38932
38908
|
|
|
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
38909
|
// src/mutations/tier/useRemoveTierAccounts.ts
|
|
38960
38910
|
var RemoveTierAccounts = async ({
|
|
38961
38911
|
tierId,
|
|
@@ -39323,7 +39273,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39323
39273
|
AddSeriesEvent,
|
|
39324
39274
|
AddSurveyQuestionChoiceSubQuestion,
|
|
39325
39275
|
AddSurveySectionQuestion,
|
|
39326
|
-
AddTierAccount,
|
|
39327
39276
|
AdvertisementType,
|
|
39328
39277
|
AppendInfiniteQuery,
|
|
39329
39278
|
AuthLayout,
|
|
@@ -40487,7 +40436,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40487
40436
|
RemoveSeriesEvent,
|
|
40488
40437
|
RemoveSurveyQuestionChoiceSubQuestion,
|
|
40489
40438
|
RemoveSurveySectionQuestion,
|
|
40490
|
-
RemoveTierAccount,
|
|
40491
40439
|
RemoveTierAccounts,
|
|
40492
40440
|
ReorderEventFaqSectionQuestions,
|
|
40493
40441
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -41256,7 +41204,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41256
41204
|
useAddSeriesEvent,
|
|
41257
41205
|
useAddSurveyQuestionChoiceSubQuestion,
|
|
41258
41206
|
useAddSurveySectionQuestion,
|
|
41259
|
-
useAddTierAccount,
|
|
41260
41207
|
useCancelAnnouncementSchedule,
|
|
41261
41208
|
useCancelChannelContentPublishSchedule,
|
|
41262
41209
|
useCancelEventPass,
|
|
@@ -42048,7 +41995,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42048
41995
|
useRemoveSeriesEvent,
|
|
42049
41996
|
useRemoveSurveyQuestionChoiceSubQuestion,
|
|
42050
41997
|
useRemoveSurveySectionQuestion,
|
|
42051
|
-
useRemoveTierAccount,
|
|
42052
41998
|
useRemoveTierAccounts,
|
|
42053
41999
|
useReorderEventFaqSectionQuestions,
|
|
42054
42000
|
useReorderEventQuestionChoiceSubQuestions,
|