@declaro/data 2.0.0-beta.66 → 2.0.0-beta.67
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/browser/index.js +2 -2
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.cjs +4 -4
- package/dist/node/index.cjs.map +3 -3
- package/dist/node/index.js +4 -4
- package/dist/node/index.js.map +3 -3
- package/dist/ts/test/mock/models/mock-book-models.d.ts +3 -3
- package/package.json +5 -5
- package/src/test/mock/models/mock-book-models.ts +3 -3
|
@@ -10,7 +10,7 @@ export declare const MockBookSchema: ModelSchema<"Book", {
|
|
|
10
10
|
id: z.ZodNumber;
|
|
11
11
|
title: z.ZodString;
|
|
12
12
|
author: z.ZodString;
|
|
13
|
-
publishedDate: z.
|
|
13
|
+
publishedDate: z.ZodCoercedDate<unknown>;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
filters: ZodModel<"BookFilters", z.ZodObject<{
|
|
16
16
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -19,14 +19,14 @@ export declare const MockBookSchema: ModelSchema<"Book", {
|
|
|
19
19
|
id: z.ZodNumber;
|
|
20
20
|
title: z.ZodString;
|
|
21
21
|
author: z.ZodString;
|
|
22
|
-
publishedDate: z.
|
|
22
|
+
publishedDate: z.ZodCoercedDate<unknown>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
sort: ZodModel<"BookSort", z.ZodArray<z.ZodObject<import("@declaro/zod").SortObjectShape<"title" | "author">, z.core.$strip>>>;
|
|
25
25
|
input: ZodModel<"BookInput", z.ZodObject<{
|
|
26
26
|
id: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
title: z.ZodString;
|
|
28
28
|
author: z.ZodString;
|
|
29
|
-
publishedDate: z.
|
|
29
|
+
publishedDate: z.ZodCoercedDate<unknown>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
}, {
|
|
32
32
|
primaryKey: "id";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declaro/data",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.67",
|
|
4
4
|
"description": "A data-mapper framework for managing application data across integrated systems.",
|
|
5
5
|
"main": "dist/node/index.cjs",
|
|
6
6
|
"module": "dist/browser/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"crypto-browserify": "^3.12.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@declaro/auth": "^2.0.0-beta.
|
|
28
|
-
"@declaro/core": "^2.0.0-beta.
|
|
29
|
-
"@declaro/zod": "^2.0.0-beta.
|
|
27
|
+
"@declaro/auth": "^2.0.0-beta.67",
|
|
28
|
+
"@declaro/core": "^2.0.0-beta.67",
|
|
29
|
+
"@declaro/zod": "^2.0.0-beta.67",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"uuid": "^11.1.0",
|
|
32
32
|
"zod": "^3.25.67"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
},
|
|
47
47
|
"require": "./dist/node/index.cjs"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2aa98eba5c04b483edc2719171822037cfa568c3"
|
|
50
50
|
}
|
|
@@ -21,7 +21,7 @@ export const MockBookSchema = ModelSchema.create('Book')
|
|
|
21
21
|
id: z.number().int().positive(),
|
|
22
22
|
title: z.string().min(2).max(100),
|
|
23
23
|
author: z.string().min(2).max(100),
|
|
24
|
-
publishedDate: z.date(),
|
|
24
|
+
publishedDate: z.coerce.date(),
|
|
25
25
|
}),
|
|
26
26
|
),
|
|
27
27
|
lookup: (h) =>
|
|
@@ -47,7 +47,7 @@ export const MockBookSchema = ModelSchema.create('Book')
|
|
|
47
47
|
id: z.number().int().positive(),
|
|
48
48
|
title: z.string().min(2).max(100),
|
|
49
49
|
author: z.string().min(2).max(100),
|
|
50
|
-
publishedDate: z.date(),
|
|
50
|
+
publishedDate: z.coerce.date(),
|
|
51
51
|
}),
|
|
52
52
|
),
|
|
53
53
|
sort: (h) => new ZodModel(h.name, sortArray(['title', 'author'])),
|
|
@@ -60,7 +60,7 @@ export const MockBookSchema = ModelSchema.create('Book')
|
|
|
60
60
|
id: z.number().int().positive().optional(),
|
|
61
61
|
title: z.string().min(2).max(100),
|
|
62
62
|
author: z.string().min(2).max(100),
|
|
63
|
-
publishedDate: z.date(),
|
|
63
|
+
publishedDate: z.coerce.date(),
|
|
64
64
|
}),
|
|
65
65
|
),
|
|
66
66
|
})
|