@awarevue/api-types 1.0.80 → 1.0.81
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/api/query.d.ts +7 -13
- package/dist/api/query.js +1 -1
- package/dist/bookmarks.d.ts +6 -6
- package/dist/bookmarks.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/api/query.d.ts
CHANGED
|
@@ -8,19 +8,13 @@ export interface PaginatedQueryResponse<T> {
|
|
|
8
8
|
items: T[];
|
|
9
9
|
total: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const sPaginatedQueryRequestOf: <T extends z.AnyZodObject>(criteriaSchema: T) => z.ZodObject<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, T["shape"]>, T["_def"]["catchall"], T["_def"]["unknownKeys"]>, z.objectInputType<z.objectUtil.extendShape<{
|
|
20
|
-
q: z.ZodOptional<z.ZodString>;
|
|
21
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
}, T["shape"]>, T["_def"]["catchall"], T["_def"]["unknownKeys"]>>;
|
|
11
|
+
export declare const sPaginatedQueryRequestOf: <T extends z.AnyZodObject>(criteriaSchema: T) => z.ZodObject<{} & {
|
|
12
|
+
[x: string]: z.ZodOptional<any>;
|
|
13
|
+
}, any, any, {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}, {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>;
|
|
24
18
|
export declare const sPaginatedQueryResponseOf: <T extends ZodTypeAny>(itemSchema: T) => z.ZodObject<{
|
|
25
19
|
items: z.ZodArray<T, "many">;
|
|
26
20
|
total: z.ZodNumber;
|
package/dist/api/query.js
CHANGED
|
@@ -14,7 +14,7 @@ const sPaginatedQueryRequestOf = (criteriaSchema) => zod_1.z
|
|
|
14
14
|
.optional()
|
|
15
15
|
.describe('Maximum number of items to return'),
|
|
16
16
|
})
|
|
17
|
-
.merge(criteriaSchema);
|
|
17
|
+
.merge(criteriaSchema.partial());
|
|
18
18
|
exports.sPaginatedQueryRequestOf = sPaginatedQueryRequestOf;
|
|
19
19
|
const sPaginatedQueryResponseOf = (itemSchema) => zod_1.z.object({
|
|
20
20
|
items: zod_1.z.array(itemSchema).describe('Array of items matching the query'),
|
package/dist/bookmarks.d.ts
CHANGED
|
@@ -92,18 +92,18 @@ export declare const sBookmarkDto: z.ZodIntersection<z.ZodObject<{
|
|
|
92
92
|
createdBy: string;
|
|
93
93
|
}>>;
|
|
94
94
|
export declare const sBookmarkSearchCriteria: z.ZodObject<{
|
|
95
|
-
deviceId: z.ZodString
|
|
96
|
-
createdBy: z.ZodString
|
|
95
|
+
deviceId: z.ZodArray<z.ZodString, "many">;
|
|
96
|
+
createdBy: z.ZodArray<z.ZodString, "many">;
|
|
97
97
|
timeFrom: z.ZodNumber;
|
|
98
98
|
timeTo: z.ZodNumber;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
deviceId: string;
|
|
101
|
-
createdBy: string;
|
|
100
|
+
deviceId: string[];
|
|
101
|
+
createdBy: string[];
|
|
102
102
|
timeFrom: number;
|
|
103
103
|
timeTo: number;
|
|
104
104
|
}, {
|
|
105
|
-
deviceId: string;
|
|
106
|
-
createdBy: string;
|
|
105
|
+
deviceId: string[];
|
|
106
|
+
createdBy: string[];
|
|
107
107
|
timeFrom: number;
|
|
108
108
|
timeTo: number;
|
|
109
109
|
}>;
|
package/dist/bookmarks.js
CHANGED
|
@@ -24,8 +24,8 @@ exports.sBookmarkDto = exports.sBookmarkProps.and(zod_1.z.object({
|
|
|
24
24
|
lastModifiedOn: zod_1.z.string().datetime(),
|
|
25
25
|
}));
|
|
26
26
|
exports.sBookmarkSearchCriteria = zod_1.z.object({
|
|
27
|
-
deviceId: zod_1.z.string(),
|
|
28
|
-
createdBy: zod_1.z.string(),
|
|
27
|
+
deviceId: zod_1.z.array(zod_1.z.string()),
|
|
28
|
+
createdBy: zod_1.z.array(zod_1.z.string()),
|
|
29
29
|
timeFrom: zod_1.z.number().min(0),
|
|
30
30
|
timeTo: zod_1.z.number().min(0),
|
|
31
31
|
});
|
package/dist/package.json
CHANGED