dating-schema 0.53.0 → 0.54.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.
|
@@ -71,4 +71,21 @@ export interface ComplimentInteractionResult {
|
|
|
71
71
|
page: number;
|
|
72
72
|
limit: number;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Result of marking every received compliment for the current user as read.
|
|
76
|
+
* Reports how many docs were flipped from `isRead: false` to `true` so the
|
|
77
|
+
* caller can decide whether to optimistically zero out the unread badge.
|
|
78
|
+
*/
|
|
79
|
+
export interface MarkAllComplimentsReadResult {
|
|
80
|
+
markedCount: number;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Unread compliment count for the current user. Drives the badge on the
|
|
84
|
+
* "Received" sub-tab of the find-partner interactions page; a separate
|
|
85
|
+
* lightweight endpoint instead of folding into every list response so the
|
|
86
|
+
* count is correct no matter which tab the user landed on.
|
|
87
|
+
*/
|
|
88
|
+
export interface UnreadComplimentsCount {
|
|
89
|
+
count: number;
|
|
90
|
+
}
|
|
74
91
|
//# sourceMappingURL=interactions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../../src/responses/interactions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,+CAA+C;AAC/C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,0CAA0C;AAC1C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,2BAA2B;AAC3B,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACj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K,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
1
|
+
{"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../../src/responses/interactions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,+CAA+C;AAC/C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,0CAA0C;AAC1C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,2BAA2B;AAC3B,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iCAAiC;AACjC,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CAChC;AAED,kFAAkF;AAClF,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CAChC;AAED,qCAAqC;AACrC,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,6CAA6C;AAC7C,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactions.js","sourceRoot":"","sources":["../../src/responses/interactions.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Swipe, compliment, and interaction list response types.\n */\n\nimport type { ProfileSummary } from './common.js';\n\n/** Result of recording a swipe (like/pass). */\nexport interface SwipeResult {\n matched: boolean;\n matchId?: string;\n}\n\n/** Result of rewinding the last swipe. */\nexport interface RewindResult {\n undone: boolean;\n matchRemoved: boolean;\n}\n\n/** A compliment entity. */\nexport interface Compliment {\n _id: string;\n fromUserId: string;\n toUserId: string;\n text: string;\n isRead: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\n/** Result of sending a compliment (may trigger a match). */\nexport interface SendComplimentResult {\n compliment: Compliment;\n matched: boolean;\n matchId?: string;\n}\n\n/** Paginated compliment list. */\nexport interface ComplimentListResult {\n compliments: Compliment[];\n total: number;\n page: number;\n limit: number;\n}\n\n/** A profile in the \"users I liked\" list. */\nexport interface LikedProfile {\n swipedAt: string;\n profile: ProfileSummary | null;\n}\n\n/** A profile in the \"users who liked me\" list (may be blurred for basic plan). */\nexport interface LikedMeProfile extends LikedProfile {\n isBlurred?: boolean;\n}\n\n/** A compliment with the sender/receiver's profile summary. */\nexport interface ComplimentWithProfile {\n compliment: Compliment;\n profile: ProfileSummary | null;\n}\n\n/** Paginated \"liked\" list result. */\nexport interface LikedResult {\n profiles: LikedProfile[];\n total: number;\n page: number;\n limit: number;\n}\n\n/** Paginated \"liked me\" list result (with upgrade prompt for free users). */\nexport interface LikedMeResult {\n profiles: LikedMeProfile[];\n total: number;\n page: number;\n limit: number;\n upgradeRequired?: boolean;\n}\n\n/** Paginated compliment interaction list. */\nexport interface ComplimentInteractionResult {\n compliments: ComplimentWithProfile[];\n total: number;\n page: number;\n limit: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interactions.js","sourceRoot":"","sources":["../../src/responses/interactions.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Swipe, compliment, and interaction list response types.\n */\n\nimport type { ProfileSummary } from './common.js';\n\n/** Result of recording a swipe (like/pass). */\nexport interface SwipeResult {\n matched: boolean;\n matchId?: string;\n}\n\n/** Result of rewinding the last swipe. */\nexport interface RewindResult {\n undone: boolean;\n matchRemoved: boolean;\n}\n\n/** A compliment entity. */\nexport interface Compliment {\n _id: string;\n fromUserId: string;\n toUserId: string;\n text: string;\n isRead: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\n/** Result of sending a compliment (may trigger a match). */\nexport interface SendComplimentResult {\n compliment: Compliment;\n matched: boolean;\n matchId?: string;\n}\n\n/** Paginated compliment list. */\nexport interface ComplimentListResult {\n compliments: Compliment[];\n total: number;\n page: number;\n limit: number;\n}\n\n/** A profile in the \"users I liked\" list. */\nexport interface LikedProfile {\n swipedAt: string;\n profile: ProfileSummary | null;\n}\n\n/** A profile in the \"users who liked me\" list (may be blurred for basic plan). */\nexport interface LikedMeProfile extends LikedProfile {\n isBlurred?: boolean;\n}\n\n/** A compliment with the sender/receiver's profile summary. */\nexport interface ComplimentWithProfile {\n compliment: Compliment;\n profile: ProfileSummary | null;\n}\n\n/** Paginated \"liked\" list result. */\nexport interface LikedResult {\n profiles: LikedProfile[];\n total: number;\n page: number;\n limit: number;\n}\n\n/** Paginated \"liked me\" list result (with upgrade prompt for free users). */\nexport interface LikedMeResult {\n profiles: LikedMeProfile[];\n total: number;\n page: number;\n limit: number;\n upgradeRequired?: boolean;\n}\n\n/** Paginated compliment interaction list. */\nexport interface ComplimentInteractionResult {\n compliments: ComplimentWithProfile[];\n total: number;\n page: number;\n limit: number;\n}\n\n/**\n * Result of marking every received compliment for the current user as read.\n * Reports how many docs were flipped from `isRead: false` to `true` so the\n * caller can decide whether to optimistically zero out the unread badge.\n */\nexport interface MarkAllComplimentsReadResult {\n markedCount: number;\n}\n\n/**\n * Unread compliment count for the current user. Drives the badge on the\n * \"Received\" sub-tab of the find-partner interactions page; a separate\n * lightweight endpoint instead of folding into every list response so the\n * count is correct no matter which tab the user landed on.\n */\nexport interface UnreadComplimentsCount {\n count: number;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dating-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.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",
|