@oxyhq/contracts 0.2.0 → 0.2.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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/userResponse.js +0 -11
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/userResponse.js +0 -11
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/recommendations.d.ts +6 -96
- package/dist/types/userResponse.d.ts +50 -435
- package/package.json +2 -1
package/dist/esm/userResponse.js
CHANGED
|
@@ -31,17 +31,6 @@
|
|
|
31
31
|
* `require()`).
|
|
32
32
|
*/
|
|
33
33
|
import { z } from 'zod';
|
|
34
|
-
/**
|
|
35
|
-
* Structured human name subdocument. Mirrors `User.name` (`NameSchema`).
|
|
36
|
-
*
|
|
37
|
-
* - `first` / `last` default to `''` in Mongo, so they are optional on the wire.
|
|
38
|
-
* - `full` is a Mongoose virtual — absent unless the query materialised
|
|
39
|
-
* virtuals or the serializer composed it.
|
|
40
|
-
* - `displayName` is the required canonical app-facing display string.
|
|
41
|
-
*
|
|
42
|
-
* `.passthrough()` is intentional: it tolerates additive name fields without a
|
|
43
|
-
* coordinated contract bump, while the three known keys stay strongly typed.
|
|
44
|
-
*/
|
|
45
34
|
export const userNameSchema = z
|
|
46
35
|
.object({
|
|
47
36
|
first: z.string().optional(),
|