@opengeni/api-router 3.0.1-canary.0 → 3.0.1-canary.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/app.js
CHANGED
|
@@ -87431,6 +87431,8 @@ function registerSessionRoutes(app, deps) {
|
|
|
87431
87431
|
...query.search ? { search: query.search } : {},
|
|
87432
87432
|
...query.pinsOnly ? { pinsOnly: true } : {},
|
|
87433
87433
|
...query.archivedOnly ? { archivedOnly: true } : {},
|
|
87434
|
+
...query.sortBy ? { sortBy: query.sortBy } : {},
|
|
87435
|
+
...query.archiveStatus ? { archiveStatus: query.archiveStatus } : {},
|
|
87434
87436
|
...query.parentSessionId !== void 0 ? { parentSessionId: query.parentSessionId } : {},
|
|
87435
87437
|
...query.channelId !== void 0 ? { channelId: query.channelId } : {},
|
|
87436
87438
|
...query.originSiteId ? { originSiteId: query.originSiteId } : {},
|
|
@@ -91014,6 +91016,17 @@ function sessionListQuery(query, allowCursor = true) {
|
|
|
91014
91016
|
throw new HTTPException74(400, { message: 'archivedOnly must be the literal "true"' });
|
|
91015
91017
|
}
|
|
91016
91018
|
const archivedOnly = query.archivedOnly === "true";
|
|
91019
|
+
const sortBy = z27.enum(["updatedAt", "createdAt", "name"]).optional().safeParse(query.sortBy);
|
|
91020
|
+
const archiveStatus = z27.enum(["active", "archived", "all"]).optional().safeParse(query.archiveStatus);
|
|
91021
|
+
if (!sortBy.success || !archiveStatus.success) {
|
|
91022
|
+
throw new HTTPException74(400, { message: "Invalid session sortBy or archiveStatus" });
|
|
91023
|
+
}
|
|
91024
|
+
if (archivedOnly && archiveStatus.data !== void 0 && archiveStatus.data !== "archived") {
|
|
91025
|
+
throw new HTTPException74(400, { message: "archivedOnly conflicts with archiveStatus" });
|
|
91026
|
+
}
|
|
91027
|
+
if (pinsOnly && archiveStatus.data === "archived") {
|
|
91028
|
+
throw new HTTPException74(400, { message: "pinsOnly cannot be combined with archived status" });
|
|
91029
|
+
}
|
|
91017
91030
|
const channelId = query.channelId;
|
|
91018
91031
|
if (channelId !== void 0 && channelId !== "null" && !z27.string().uuid().safeParse(channelId).success) {
|
|
91019
91032
|
throw new HTTPException74(400, {
|
|
@@ -91094,6 +91107,8 @@ function sessionListQuery(query, allowCursor = true) {
|
|
|
91094
91107
|
search: search || void 0,
|
|
91095
91108
|
pinsOnly,
|
|
91096
91109
|
archivedOnly,
|
|
91110
|
+
sortBy: sortBy.data,
|
|
91111
|
+
archiveStatus: archiveStatus.data,
|
|
91097
91112
|
channelId: channelId === void 0 ? void 0 : channelId === "null" ? null : channelId,
|
|
91098
91113
|
createdBy: createdByKind && createdBySubjectId ? { kind: createdByKind, subjectId: createdBySubjectId } : void 0,
|
|
91099
91114
|
updatedFrom,
|
|
@@ -106778,4 +106793,4 @@ export {
|
|
|
106778
106793
|
withDefaultEnabledCapabilityMcpTools,
|
|
106779
106794
|
workflowIdForSession4 as workflowIdForSession
|
|
106780
106795
|
};
|
|
106781
|
-
//# sourceMappingURL=chunk-
|
|
106796
|
+
//# sourceMappingURL=chunk-TY7H4H37.js.map
|