@nira-opencrvs/toolkit 1.9.13-rc.9744fbf → 1.9.13-rc.98f468d
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.
|
@@ -6163,6 +6163,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6163
6163
|
query?: unknown;
|
|
6164
6164
|
limit?: number | undefined;
|
|
6165
6165
|
offset?: number | undefined;
|
|
6166
|
+
excludeDrafts?: boolean | undefined;
|
|
6166
6167
|
};
|
|
6167
6168
|
output: {
|
|
6168
6169
|
total: number;
|
|
@@ -1113,6 +1113,7 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
1113
1113
|
field: string;
|
|
1114
1114
|
direction: "asc" | "desc";
|
|
1115
1115
|
}[], unknown>>;
|
|
1116
|
+
excludeDrafts: z.ZodOptional<z.ZodBoolean>;
|
|
1116
1117
|
}, "strip", z.ZodTypeAny, {
|
|
1117
1118
|
limit: number;
|
|
1118
1119
|
offset: number;
|
|
@@ -1121,11 +1122,13 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
1121
1122
|
direction: "asc" | "desc";
|
|
1122
1123
|
}[] | undefined;
|
|
1123
1124
|
query?: any;
|
|
1125
|
+
excludeDrafts?: boolean | undefined;
|
|
1124
1126
|
}, {
|
|
1125
1127
|
sort?: unknown;
|
|
1126
1128
|
query?: unknown;
|
|
1127
1129
|
limit?: number | undefined;
|
|
1128
1130
|
offset?: number | undefined;
|
|
1131
|
+
excludeDrafts?: boolean | undefined;
|
|
1129
1132
|
}>;
|
|
1130
1133
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
1131
1134
|
export type QueryType = z.infer<typeof QueryType>;
|
|
@@ -10278,6 +10278,7 @@ declare const SearchField: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
10278
10278
|
field: string;
|
|
10279
10279
|
direction: "asc" | "desc";
|
|
10280
10280
|
}[], unknown>>;
|
|
10281
|
+
excludeDrafts: z.ZodOptional<z.ZodBoolean>;
|
|
10281
10282
|
}, "query" | "limit" | "offset">, {
|
|
10282
10283
|
validation: z.ZodObject<{
|
|
10283
10284
|
validator: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
package/dist/events/index.js
CHANGED
|
@@ -2028,7 +2028,10 @@ var SearchQuery = import_zod16.z.object({
|
|
|
2028
2028
|
direction: import_zod16.z.enum(["asc", "desc"]).default("asc")
|
|
2029
2029
|
})
|
|
2030
2030
|
)
|
|
2031
|
-
).optional()
|
|
2031
|
+
).optional(),
|
|
2032
|
+
excludeDrafts: import_zod16.z.boolean().optional().describe(
|
|
2033
|
+
'When true, undeclared drafts (events in status CREATED) are excluded from the results. Used by workqueues so that drafts only appear in the dedicated "My Draft" view, while explicit searches (e.g. by tracking ID) can still find them.'
|
|
2034
|
+
)
|
|
2032
2035
|
}).openapi({
|
|
2033
2036
|
ref: "SearchQuery"
|
|
2034
2037
|
});
|
|
@@ -1497,7 +1497,10 @@ var SearchQuery = import_zod16.z.object({
|
|
|
1497
1497
|
direction: import_zod16.z.enum(["asc", "desc"]).default("asc")
|
|
1498
1498
|
})
|
|
1499
1499
|
)
|
|
1500
|
-
).optional()
|
|
1500
|
+
).optional(),
|
|
1501
|
+
excludeDrafts: import_zod16.z.boolean().optional().describe(
|
|
1502
|
+
'When true, undeclared drafts (events in status CREATED) are excluded from the results. Used by workqueues so that drafts only appear in the dedicated "My Draft" view, while explicit searches (e.g. by tracking ID) can still find them.'
|
|
1503
|
+
)
|
|
1501
1504
|
}).openapi({
|
|
1502
1505
|
ref: "SearchQuery"
|
|
1503
1506
|
});
|