@connectedxm/admin 7.0.2 → 7.0.5
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 +22 -10
- package/dist/index.d.cts +14 -7
- package/dist/index.d.ts +14 -7
- package/dist/index.js +21 -10
- package/openapi.json +22 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2157,6 +2157,7 @@ __export(index_exports, {
|
|
|
2157
2157
|
TaxLocationType: () => TaxLocationType,
|
|
2158
2158
|
TestTaxIntegration: () => TestTaxIntegration,
|
|
2159
2159
|
ThreadMessageType: () => ThreadMessageType,
|
|
2160
|
+
ThreadType: () => ThreadType,
|
|
2160
2161
|
ToggleOrganizationPaymentIntegration: () => ToggleOrganizationPaymentIntegration,
|
|
2161
2162
|
ToggleTaxIntegration: () => ToggleTaxIntegration,
|
|
2162
2163
|
TransferEventPass: () => TransferEventPass,
|
|
@@ -4194,8 +4195,14 @@ var VideoSource = /* @__PURE__ */ ((VideoSource2) => {
|
|
|
4194
4195
|
VideoSource2["admin"] = "admin";
|
|
4195
4196
|
VideoSource2["activity"] = "activity";
|
|
4196
4197
|
VideoSource2["content"] = "content";
|
|
4198
|
+
VideoSource2["thread"] = "thread";
|
|
4197
4199
|
return VideoSource2;
|
|
4198
4200
|
})(VideoSource || {});
|
|
4201
|
+
var ThreadType = /* @__PURE__ */ ((ThreadType2) => {
|
|
4202
|
+
ThreadType2["direct"] = "direct";
|
|
4203
|
+
ThreadType2["default"] = "default";
|
|
4204
|
+
return ThreadType2;
|
|
4205
|
+
})(ThreadType || {});
|
|
4199
4206
|
var ThreadMessageType = /* @__PURE__ */ ((ThreadMessageType2) => {
|
|
4200
4207
|
ThreadMessageType2["user"] = "user";
|
|
4201
4208
|
ThreadMessageType2["bot"] = "bot";
|
|
@@ -22977,7 +22984,7 @@ var useGetVideos = (source, params = {}, options = {}) => {
|
|
|
22977
22984
|
|
|
22978
22985
|
// src/queries/storage/videos/useGetVideo.ts
|
|
22979
22986
|
var VIDEO_QUERY_KEY = (videoId) => [
|
|
22980
|
-
...VIDEOS_QUERY_KEY(
|
|
22987
|
+
...VIDEOS_QUERY_KEY(),
|
|
22981
22988
|
videoId
|
|
22982
22989
|
];
|
|
22983
22990
|
var SET_VIDEO_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -23043,7 +23050,7 @@ var useGetVideoCaptions = (videoId = "", params = {}, options = {}) => {
|
|
|
23043
23050
|
|
|
23044
23051
|
// src/queries/storage/videos/useGetVideoDownloadStatus.ts
|
|
23045
23052
|
var VIDEO_DOWNLOAD_STATUS_QUERY_KEY = (videoId) => [
|
|
23046
|
-
...VIDEOS_QUERY_KEY(
|
|
23053
|
+
...VIDEOS_QUERY_KEY(),
|
|
23047
23054
|
videoId,
|
|
23048
23055
|
"download-status"
|
|
23049
23056
|
];
|
|
@@ -24687,8 +24694,10 @@ var useGetSurveySessions = (surveyId = "", params = {}, options = {}) => {
|
|
|
24687
24694
|
};
|
|
24688
24695
|
|
|
24689
24696
|
// src/queries/threads/useGetThreads.ts
|
|
24690
|
-
var THREADS_QUERY_KEY = () => {
|
|
24691
|
-
|
|
24697
|
+
var THREADS_QUERY_KEY = (type) => {
|
|
24698
|
+
const keys = ["THREADS"];
|
|
24699
|
+
if (type) keys.push(type);
|
|
24700
|
+
return keys;
|
|
24692
24701
|
};
|
|
24693
24702
|
var SET_THREADS_QUERY_DATA = (client, keyParams, response) => {
|
|
24694
24703
|
client.setQueryData(THREADS_QUERY_KEY(...keyParams), response);
|
|
@@ -24698,6 +24707,7 @@ var GetThreads = async ({
|
|
|
24698
24707
|
pageSize,
|
|
24699
24708
|
orderBy,
|
|
24700
24709
|
search,
|
|
24710
|
+
type,
|
|
24701
24711
|
adminApiParams
|
|
24702
24712
|
}) => {
|
|
24703
24713
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
@@ -24706,15 +24716,16 @@ var GetThreads = async ({
|
|
|
24706
24716
|
page: pageParam || void 0,
|
|
24707
24717
|
pageSize: pageSize || void 0,
|
|
24708
24718
|
orderBy: orderBy || void 0,
|
|
24709
|
-
search: search || void 0
|
|
24719
|
+
search: search || void 0,
|
|
24720
|
+
type: type || void 0
|
|
24710
24721
|
}
|
|
24711
24722
|
});
|
|
24712
24723
|
return data;
|
|
24713
24724
|
};
|
|
24714
|
-
var useGetThreads = (params = {}, options = {}) => {
|
|
24725
|
+
var useGetThreads = (type, params = {}, options = {}) => {
|
|
24715
24726
|
return useConnectedInfiniteQuery(
|
|
24716
|
-
THREADS_QUERY_KEY(),
|
|
24717
|
-
(params2) => GetThreads({ ...params2 }),
|
|
24727
|
+
THREADS_QUERY_KEY(type),
|
|
24728
|
+
(params2) => GetThreads({ ...params2, type }),
|
|
24718
24729
|
params,
|
|
24719
24730
|
options
|
|
24720
24731
|
);
|
|
@@ -41282,7 +41293,7 @@ var DeleteManyVideos = async ({
|
|
|
41282
41293
|
videos
|
|
41283
41294
|
);
|
|
41284
41295
|
if (queryClient && data.status === "ok") {
|
|
41285
|
-
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY(
|
|
41296
|
+
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
41286
41297
|
}
|
|
41287
41298
|
return data;
|
|
41288
41299
|
};
|
|
@@ -41321,7 +41332,7 @@ var InitiateVideoDownload = async ({
|
|
|
41321
41332
|
if (queryClient && data.status === "ok") {
|
|
41322
41333
|
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
41323
41334
|
if (data.data?.default?.url) {
|
|
41324
|
-
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY(
|
|
41335
|
+
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
41325
41336
|
}
|
|
41326
41337
|
}
|
|
41327
41338
|
return data;
|
|
@@ -45391,6 +45402,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45391
45402
|
TaxLocationType,
|
|
45392
45403
|
TestTaxIntegration,
|
|
45393
45404
|
ThreadMessageType,
|
|
45405
|
+
ThreadType,
|
|
45394
45406
|
ToggleOrganizationPaymentIntegration,
|
|
45395
45407
|
ToggleTaxIntegration,
|
|
45396
45408
|
TransferEventPass,
|