@awarevue/api-types 1.0.81 → 1.0.82
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/bookmarks.d.ts +17 -0
- package/dist/bookmarks.js +3 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bookmarks.d.ts
CHANGED
|
@@ -31,6 +31,22 @@ export declare const sCreateBookmarkRq: z.ZodObject<{
|
|
|
31
31
|
timestamp: number;
|
|
32
32
|
deviceId: string;
|
|
33
33
|
}>;
|
|
34
|
+
export declare const sUpdateBookmarkBody: z.ZodObject<{
|
|
35
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
label: z.ZodOptional<z.ZodString>;
|
|
37
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
label?: string | undefined;
|
|
41
|
+
metadata?: Record<string, unknown> | undefined;
|
|
42
|
+
timestamp?: number | undefined;
|
|
43
|
+
deviceId?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
label?: string | undefined;
|
|
46
|
+
metadata?: Record<string, unknown> | undefined;
|
|
47
|
+
timestamp?: number | undefined;
|
|
48
|
+
deviceId?: string | undefined;
|
|
49
|
+
}>;
|
|
34
50
|
export declare const sUpdateBookmarkRq: z.ZodIntersection<z.ZodObject<{
|
|
35
51
|
id: z.ZodString;
|
|
36
52
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -110,6 +126,7 @@ export declare const sBookmarkSearchCriteria: z.ZodObject<{
|
|
|
110
126
|
export type BookmarkProps = z.infer<typeof sBookmarkProps>;
|
|
111
127
|
export type CreateBookmarkRq = z.infer<typeof sCreateBookmarkRq>;
|
|
112
128
|
export type UpdateBookmarkRq = z.infer<typeof sUpdateBookmarkRq>;
|
|
129
|
+
export type UpdateBookmarkBody = z.infer<typeof sUpdateBookmarkBody>;
|
|
113
130
|
export type DeleteBookmarkRq = z.infer<typeof sDeleteBookmarkRq>;
|
|
114
131
|
export type BookmarkDto = z.infer<typeof sBookmarkDto>;
|
|
115
132
|
export type BookmarkSearchCriteria = z.infer<typeof sBookmarkSearchCriteria>;
|
package/dist/bookmarks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sBookmarkSearchCriteria = exports.sBookmarkDto = exports.sDeleteBookmarkRq = exports.sUpdateBookmarkRq = exports.sCreateBookmarkRq = exports.sBookmarkProps = void 0;
|
|
3
|
+
exports.sBookmarkSearchCriteria = exports.sBookmarkDto = exports.sDeleteBookmarkRq = exports.sUpdateBookmarkRq = exports.sUpdateBookmarkBody = exports.sCreateBookmarkRq = exports.sBookmarkProps = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sBookmarkProps = zod_1.z.object({
|
|
6
6
|
timestamp: zod_1.z.number().min(0),
|
|
@@ -9,11 +9,12 @@ exports.sBookmarkProps = zod_1.z.object({
|
|
|
9
9
|
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
10
10
|
});
|
|
11
11
|
exports.sCreateBookmarkRq = exports.sBookmarkProps;
|
|
12
|
+
exports.sUpdateBookmarkBody = exports.sBookmarkProps.partial();
|
|
12
13
|
exports.sUpdateBookmarkRq = zod_1.z
|
|
13
14
|
.object({
|
|
14
15
|
id: zod_1.z.string().nonempty(),
|
|
15
16
|
})
|
|
16
|
-
.and(exports.
|
|
17
|
+
.and(exports.sUpdateBookmarkBody);
|
|
17
18
|
exports.sDeleteBookmarkRq = zod_1.z.object({
|
|
18
19
|
id: zod_1.z.string().nonempty(),
|
|
19
20
|
});
|
package/dist/package.json
CHANGED