@connectedxm/admin 1.4.6 → 1.4.7
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.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +32 -5
- package/dist/index.mjs +32 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1711,12 +1711,13 @@ interface Report {
|
|
|
1711
1711
|
eventId: string | null;
|
|
1712
1712
|
event: BaseEvent | null;
|
|
1713
1713
|
user: BaseUser | null;
|
|
1714
|
-
colDefs: any;
|
|
1715
|
-
rowData: any[];
|
|
1716
1714
|
shared: boolean;
|
|
1717
1715
|
sharedUsers: BaseUser[];
|
|
1718
1716
|
createdAt: string;
|
|
1719
1717
|
updatedAt: string;
|
|
1718
|
+
colDefs: any;
|
|
1719
|
+
rowData: any[];
|
|
1720
|
+
nextCursor: number | null;
|
|
1720
1721
|
}
|
|
1721
1722
|
interface SearchField {
|
|
1722
1723
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1711,12 +1711,13 @@ interface Report {
|
|
|
1711
1711
|
eventId: string | null;
|
|
1712
1712
|
event: BaseEvent | null;
|
|
1713
1713
|
user: BaseUser | null;
|
|
1714
|
-
colDefs: any;
|
|
1715
|
-
rowData: any[];
|
|
1716
1714
|
shared: boolean;
|
|
1717
1715
|
sharedUsers: BaseUser[];
|
|
1718
1716
|
createdAt: string;
|
|
1719
1717
|
updatedAt: string;
|
|
1718
|
+
colDefs: any;
|
|
1719
|
+
rowData: any[];
|
|
1720
|
+
nextCursor: number | null;
|
|
1720
1721
|
}
|
|
1721
1722
|
interface SearchField {
|
|
1722
1723
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -13305,12 +13305,38 @@ var GetReport = async ({
|
|
|
13305
13305
|
adminApiParams
|
|
13306
13306
|
}) => {
|
|
13307
13307
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13308
|
+
let nextCursor = null;
|
|
13309
|
+
const rowData = [];
|
|
13310
|
+
const { data } = await adminApi.get(
|
|
13311
|
+
`/reports/${reportId}`,
|
|
13312
|
+
{
|
|
13313
|
+
params: {
|
|
13314
|
+
eventId
|
|
13315
|
+
}
|
|
13311
13316
|
}
|
|
13312
|
-
|
|
13313
|
-
|
|
13317
|
+
);
|
|
13318
|
+
rowData.push(...data.data.rowData);
|
|
13319
|
+
nextCursor = data.data.nextCursor;
|
|
13320
|
+
while (nextCursor) {
|
|
13321
|
+
const { data: nextData } = await adminApi.get(
|
|
13322
|
+
`/reports/${reportId}`,
|
|
13323
|
+
{
|
|
13324
|
+
params: {
|
|
13325
|
+
eventId,
|
|
13326
|
+
cursor: nextCursor
|
|
13327
|
+
}
|
|
13328
|
+
}
|
|
13329
|
+
);
|
|
13330
|
+
rowData.push(...nextData.data.rowData);
|
|
13331
|
+
nextCursor = nextData.data.nextCursor;
|
|
13332
|
+
}
|
|
13333
|
+
return {
|
|
13334
|
+
...data,
|
|
13335
|
+
data: {
|
|
13336
|
+
...data.data,
|
|
13337
|
+
rowData
|
|
13338
|
+
}
|
|
13339
|
+
};
|
|
13314
13340
|
};
|
|
13315
13341
|
var useGetReport = (reportId = "", eventId, options = {}) => {
|
|
13316
13342
|
return useConnectedSingleQuery(
|
|
@@ -13322,6 +13348,7 @@ var useGetReport = (reportId = "", eventId, options = {}) => {
|
|
|
13322
13348
|
refetchOnWindowFocus: false,
|
|
13323
13349
|
refetchOnMount: false,
|
|
13324
13350
|
refetchOnReconnect: false,
|
|
13351
|
+
retry: false,
|
|
13325
13352
|
staleTime: Infinity
|
|
13326
13353
|
},
|
|
13327
13354
|
"reports"
|
package/dist/index.mjs
CHANGED
|
@@ -11178,12 +11178,38 @@ var GetReport = async ({
|
|
|
11178
11178
|
adminApiParams
|
|
11179
11179
|
}) => {
|
|
11180
11180
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11181
|
+
let nextCursor = null;
|
|
11182
|
+
const rowData = [];
|
|
11183
|
+
const { data } = await adminApi.get(
|
|
11184
|
+
`/reports/${reportId}`,
|
|
11185
|
+
{
|
|
11186
|
+
params: {
|
|
11187
|
+
eventId
|
|
11188
|
+
}
|
|
11184
11189
|
}
|
|
11185
|
-
|
|
11186
|
-
|
|
11190
|
+
);
|
|
11191
|
+
rowData.push(...data.data.rowData);
|
|
11192
|
+
nextCursor = data.data.nextCursor;
|
|
11193
|
+
while (nextCursor) {
|
|
11194
|
+
const { data: nextData } = await adminApi.get(
|
|
11195
|
+
`/reports/${reportId}`,
|
|
11196
|
+
{
|
|
11197
|
+
params: {
|
|
11198
|
+
eventId,
|
|
11199
|
+
cursor: nextCursor
|
|
11200
|
+
}
|
|
11201
|
+
}
|
|
11202
|
+
);
|
|
11203
|
+
rowData.push(...nextData.data.rowData);
|
|
11204
|
+
nextCursor = nextData.data.nextCursor;
|
|
11205
|
+
}
|
|
11206
|
+
return {
|
|
11207
|
+
...data,
|
|
11208
|
+
data: {
|
|
11209
|
+
...data.data,
|
|
11210
|
+
rowData
|
|
11211
|
+
}
|
|
11212
|
+
};
|
|
11187
11213
|
};
|
|
11188
11214
|
var useGetReport = (reportId = "", eventId, options = {}) => {
|
|
11189
11215
|
return useConnectedSingleQuery(
|
|
@@ -11195,6 +11221,7 @@ var useGetReport = (reportId = "", eventId, options = {}) => {
|
|
|
11195
11221
|
refetchOnWindowFocus: false,
|
|
11196
11222
|
refetchOnMount: false,
|
|
11197
11223
|
refetchOnReconnect: false,
|
|
11224
|
+
retry: false,
|
|
11198
11225
|
staleTime: Infinity
|
|
11199
11226
|
},
|
|
11200
11227
|
"reports"
|