dating-schema 0.49.0 → 0.50.0
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/common.d.ts +26 -3
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +13 -2
- package/dist/common.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/profile.d.ts +36 -36
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +21 -89
- package/dist/profile.js.map +1 -1
- package/dist/responses/common.d.ts +1 -1
- package/dist/responses/common.d.ts.map +1 -1
- package/dist/responses/common.js.map +1 -1
- package/package.json +4 -1
|
@@ -26,7 +26,7 @@ export interface TextPrompt {
|
|
|
26
26
|
prompt: string;
|
|
27
27
|
answer: string;
|
|
28
28
|
}
|
|
29
|
-
/** Reference to an
|
|
29
|
+
/** Reference to an Area entity (state, district, etc.). */
|
|
30
30
|
export interface AreaRef {
|
|
31
31
|
_id: string;
|
|
32
32
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/responses/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,0DAA0D;AAC1D,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iCAAiC;AACjC,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8BAA8B;AAC9B,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ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B;AAED,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/responses/common.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Common API response types shared across all dating endpoints.\n */\n\n/** Standard API response envelope from reform-backend. */\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data: T;\n message?: string;\n}\n\n/** Photo on a dating profile. */\nexport interface DatingPhoto {\n url: string;\n order: number;\n assetId?: string;\n mimeType?: string;\n sizeBytes?: number;\n}\n\n/** Voice recording prompt. */\nexport interface VoicePrompt {\n url: string;\n assetId: string;\n durationSeconds: number;\n}\n\n/** Text prompt with user's answer. */\nexport interface TextPrompt {\n prompt: string;\n answer: string;\n}\n\n/** Reference to an
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/responses/common.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Common API response types shared across all dating endpoints.\n */\n\n/** Standard API response envelope from reform-backend. */\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data: T;\n message?: string;\n}\n\n/** Photo on a dating profile. */\nexport interface DatingPhoto {\n url: string;\n order: number;\n assetId?: string;\n mimeType?: string;\n sizeBytes?: number;\n}\n\n/** Voice recording prompt. */\nexport interface VoicePrompt {\n url: string;\n assetId: string;\n durationSeconds: number;\n}\n\n/** Text prompt with user's answer. */\nexport interface TextPrompt {\n prompt: string;\n answer: string;\n}\n\n/** Reference to an Area entity (state, district, etc.). */\nexport interface AreaRef {\n _id: string;\n name: string;\n type?: string;\n}\n\n/** Minimal profile info for lists, matches, and interactions. */\nexport interface ProfileSummary {\n userId: string;\n displayName: string;\n photos: Pick<DatingPhoto, 'url' | 'order'>[];\n lastActiveAt?: string;\n}\n\n/** Standard pagination request params. */\nexport interface PaginationParams {\n page?: number;\n limit?: number;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dating-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Shared Zod schemas for the Dating feature — single source of truth for API contracts, validation, and TypeScript types (frontend + backend).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"zod": "^3.25.0 || ^4.0.0"
|
|
41
41
|
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"udp-schema": "^2.29.0"
|
|
44
|
+
},
|
|
42
45
|
"devDependencies": {
|
|
43
46
|
"@biomejs/biome": "^2.4.2",
|
|
44
47
|
"@types/node": "^24.10.1",
|