@connectedxm/admin 6.5.8 → 6.5.10
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 +23 -34
- package/dist/index.d.cts +35 -39
- package/dist/index.d.ts +35 -39
- package/dist/index.js +21 -30
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1059,7 +1059,6 @@ __export(index_exports, {
|
|
|
1059
1059
|
GetLevelTranslation: () => GetLevelTranslation,
|
|
1060
1060
|
GetLevelTranslations: () => GetLevelTranslations,
|
|
1061
1061
|
GetLevels: () => GetLevels,
|
|
1062
|
-
GetLinkPreview: () => GetLinkPreview,
|
|
1063
1062
|
GetLivestream: () => GetLivestream,
|
|
1064
1063
|
GetLivestreamSessions: () => GetLivestreamSessions,
|
|
1065
1064
|
GetLivestreams: () => GetLivestreams,
|
|
@@ -1243,7 +1242,6 @@ __export(index_exports, {
|
|
|
1243
1242
|
LEVEL_QUERY_KEY: () => LEVEL_QUERY_KEY,
|
|
1244
1243
|
LEVEL_TRANSLATIONS_QUERY_KEY: () => LEVEL_TRANSLATIONS_QUERY_KEY,
|
|
1245
1244
|
LEVEL_TRANSLATION_QUERY_KEY: () => LEVEL_TRANSLATION_QUERY_KEY,
|
|
1246
|
-
LINK_PREVIEW_QUERY_KEY: () => LINK_PREVIEW_QUERY_KEY,
|
|
1247
1245
|
LIVESTREAMS_QUERY_KEY: () => LIVESTREAMS_QUERY_KEY,
|
|
1248
1246
|
LIVESTREAM_QUERY_KEY: () => LIVESTREAM_QUERY_KEY,
|
|
1249
1247
|
LIVESTREAM_SESSIONS_QUERY_KEY: () => LIVESTREAM_SESSIONS_QUERY_KEY,
|
|
@@ -1757,7 +1755,6 @@ __export(index_exports, {
|
|
|
1757
1755
|
SET_LEVEL_QUERY_DATA: () => SET_LEVEL_QUERY_DATA,
|
|
1758
1756
|
SET_LEVEL_TRANSLATIONS_QUERY_DATA: () => SET_LEVEL_TRANSLATIONS_QUERY_DATA,
|
|
1759
1757
|
SET_LEVEL_TRANSLATION_QUERY_DATA: () => SET_LEVEL_TRANSLATION_QUERY_DATA,
|
|
1760
|
-
SET_LINK_PREVIEW_QUERY_DATA: () => SET_LINK_PREVIEW_QUERY_DATA,
|
|
1761
1758
|
SET_LIVESTREAMS_QUERY_DATA: () => SET_LIVESTREAMS_QUERY_DATA,
|
|
1762
1759
|
SET_LIVESTREAM_QUERY_DATA: () => SET_LIVESTREAM_QUERY_DATA,
|
|
1763
1760
|
SET_LIVESTREAM_SESSIONS_QUERY_DATA: () => SET_LIVESTREAM_SESSIONS_QUERY_DATA,
|
|
@@ -2153,6 +2150,7 @@ __export(index_exports, {
|
|
|
2153
2150
|
UpdateVideo: () => UpdateVideo,
|
|
2154
2151
|
UploadFile: () => UploadFile,
|
|
2155
2152
|
UploadVideoCaptions: () => UploadVideoCaptions,
|
|
2153
|
+
UpsertLinkPreview: () => UpsertLinkPreview,
|
|
2156
2154
|
UserRole: () => UserRole,
|
|
2157
2155
|
VIDEOS_QUERY_KEY: () => VIDEOS_QUERY_KEY,
|
|
2158
2156
|
VIDEO_CAPTIONS_QUERY_KEY: () => VIDEO_CAPTIONS_QUERY_KEY,
|
|
@@ -2846,7 +2844,6 @@ __export(index_exports, {
|
|
|
2846
2844
|
useGetLevelTranslation: () => useGetLevelTranslation,
|
|
2847
2845
|
useGetLevelTranslations: () => useGetLevelTranslations,
|
|
2848
2846
|
useGetLevels: () => useGetLevels,
|
|
2849
|
-
useGetLinkPreview: () => useGetLinkPreview,
|
|
2850
2847
|
useGetLivestream: () => useGetLivestream,
|
|
2851
2848
|
useGetLivestreamSessions: () => useGetLivestreamSessions,
|
|
2852
2849
|
useGetLivestreams: () => useGetLivestreams,
|
|
@@ -3255,6 +3252,7 @@ __export(index_exports, {
|
|
|
3255
3252
|
useUpdateVideo: () => useUpdateVideo,
|
|
3256
3253
|
useUploadFile: () => useUploadFile,
|
|
3257
3254
|
useUploadVideoCaptions: () => useUploadVideoCaptions,
|
|
3255
|
+
useUpsertLinkPreview: () => useUpsertLinkPreview,
|
|
3258
3256
|
useVerifyOrganizationWebhook: () => useVerifyOrganizationWebhook,
|
|
3259
3257
|
useVoidInvoice: () => useVoidInvoice
|
|
3260
3258
|
});
|
|
@@ -17928,32 +17926,6 @@ var useGetLevelAccounts = (levelId = "", params = {}, options = {}) => {
|
|
|
17928
17926
|
);
|
|
17929
17927
|
};
|
|
17930
17928
|
|
|
17931
|
-
// src/queries/link-preview/useGetLinkPreview.ts
|
|
17932
|
-
var LINK_PREVIEW_QUERY_KEY = (href) => ["LINK_PREVIEW", href];
|
|
17933
|
-
var SET_LINK_PREVIEW_QUERY_DATA = (client, keyParams, response) => {
|
|
17934
|
-
client.setQueryData(LINK_PREVIEW_QUERY_KEY(...keyParams), response);
|
|
17935
|
-
};
|
|
17936
|
-
var GetLinkPreview = async ({
|
|
17937
|
-
href,
|
|
17938
|
-
adminApiParams
|
|
17939
|
-
}) => {
|
|
17940
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17941
|
-
const { data } = await adminApi.get(`/link-preview`, {
|
|
17942
|
-
params: { href }
|
|
17943
|
-
});
|
|
17944
|
-
return data;
|
|
17945
|
-
};
|
|
17946
|
-
var useGetLinkPreview = (href = "", options = {}) => {
|
|
17947
|
-
return useConnectedSingleQuery(
|
|
17948
|
-
LINK_PREVIEW_QUERY_KEY(href),
|
|
17949
|
-
(params) => GetLinkPreview({ href, ...params }),
|
|
17950
|
-
{
|
|
17951
|
-
...options,
|
|
17952
|
-
enabled: !!href && (options?.enabled ?? true)
|
|
17953
|
-
}
|
|
17954
|
-
);
|
|
17955
|
-
};
|
|
17956
|
-
|
|
17957
17929
|
// src/queries/logins/useGetLogins.ts
|
|
17958
17930
|
var LOGINS_QUERY_KEY = (accountId) => {
|
|
17959
17931
|
const key = ["LOGINS"];
|
|
@@ -36280,6 +36252,25 @@ var useUpdateOrganizationWebhook = (options = {}) => {
|
|
|
36280
36252
|
return useConnectedMutation(UpdateOrganizationWebhook, options);
|
|
36281
36253
|
};
|
|
36282
36254
|
|
|
36255
|
+
// src/mutations/organization/useUpsertLinkPreview.ts
|
|
36256
|
+
var UpsertLinkPreview = async ({
|
|
36257
|
+
href,
|
|
36258
|
+
adminApiParams
|
|
36259
|
+
}) => {
|
|
36260
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
36261
|
+
const { data } = await adminApi.put(
|
|
36262
|
+
`/organization/link-preview`,
|
|
36263
|
+
void 0,
|
|
36264
|
+
{
|
|
36265
|
+
params: { href }
|
|
36266
|
+
}
|
|
36267
|
+
);
|
|
36268
|
+
return data;
|
|
36269
|
+
};
|
|
36270
|
+
var useUpsertLinkPreview = (options = {}) => {
|
|
36271
|
+
return useConnectedMutation(UpsertLinkPreview, options);
|
|
36272
|
+
};
|
|
36273
|
+
|
|
36283
36274
|
// src/mutations/organization/useVerifyOrganizationWebhook.ts
|
|
36284
36275
|
var VerifyOrganizationWebhook = async ({
|
|
36285
36276
|
webhookId,
|
|
@@ -40106,7 +40097,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40106
40097
|
GetLevelTranslation,
|
|
40107
40098
|
GetLevelTranslations,
|
|
40108
40099
|
GetLevels,
|
|
40109
|
-
GetLinkPreview,
|
|
40110
40100
|
GetLivestream,
|
|
40111
40101
|
GetLivestreamSessions,
|
|
40112
40102
|
GetLivestreams,
|
|
@@ -40290,7 +40280,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40290
40280
|
LEVEL_QUERY_KEY,
|
|
40291
40281
|
LEVEL_TRANSLATIONS_QUERY_KEY,
|
|
40292
40282
|
LEVEL_TRANSLATION_QUERY_KEY,
|
|
40293
|
-
LINK_PREVIEW_QUERY_KEY,
|
|
40294
40283
|
LIVESTREAMS_QUERY_KEY,
|
|
40295
40284
|
LIVESTREAM_QUERY_KEY,
|
|
40296
40285
|
LIVESTREAM_SESSIONS_QUERY_KEY,
|
|
@@ -40804,7 +40793,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40804
40793
|
SET_LEVEL_QUERY_DATA,
|
|
40805
40794
|
SET_LEVEL_TRANSLATIONS_QUERY_DATA,
|
|
40806
40795
|
SET_LEVEL_TRANSLATION_QUERY_DATA,
|
|
40807
|
-
SET_LINK_PREVIEW_QUERY_DATA,
|
|
40808
40796
|
SET_LIVESTREAMS_QUERY_DATA,
|
|
40809
40797
|
SET_LIVESTREAM_QUERY_DATA,
|
|
40810
40798
|
SET_LIVESTREAM_SESSIONS_QUERY_DATA,
|
|
@@ -41200,6 +41188,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41200
41188
|
UpdateVideo,
|
|
41201
41189
|
UploadFile,
|
|
41202
41190
|
UploadVideoCaptions,
|
|
41191
|
+
UpsertLinkPreview,
|
|
41203
41192
|
UserRole,
|
|
41204
41193
|
VIDEOS_QUERY_KEY,
|
|
41205
41194
|
VIDEO_CAPTIONS_QUERY_KEY,
|
|
@@ -41893,7 +41882,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41893
41882
|
useGetLevelTranslation,
|
|
41894
41883
|
useGetLevelTranslations,
|
|
41895
41884
|
useGetLevels,
|
|
41896
|
-
useGetLinkPreview,
|
|
41897
41885
|
useGetLivestream,
|
|
41898
41886
|
useGetLivestreamSessions,
|
|
41899
41887
|
useGetLivestreams,
|
|
@@ -42302,6 +42290,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42302
42290
|
useUpdateVideo,
|
|
42303
42291
|
useUploadFile,
|
|
42304
42292
|
useUploadVideoCaptions,
|
|
42293
|
+
useUpsertLinkPreview,
|
|
42305
42294
|
useVerifyOrganizationWebhook,
|
|
42306
42295
|
useVoidInvoice
|
|
42307
42296
|
});
|