@kimdaegyu/babmukdang-shared 1.0.7 → 1.1.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.
Files changed (106) hide show
  1. package/dist/chunk-2GRWCRTV.js +328 -0
  2. package/dist/chunk-2SJCUQNN.js +40 -0
  3. package/dist/chunk-34EKPNPX.js +0 -0
  4. package/dist/chunk-35QGRA2X.js +0 -0
  5. package/dist/chunk-3YMV26OY.js +0 -0
  6. package/dist/chunk-4DAOP35P.js +74 -0
  7. package/dist/chunk-6NZPEF4K.js +34 -0
  8. package/dist/chunk-7MGHUZXI.js +25 -0
  9. package/dist/chunk-BVTYAILQ.js +0 -0
  10. package/dist/chunk-EJKRR2MZ.js +184 -0
  11. package/dist/chunk-F24BT6H4.js +23 -0
  12. package/dist/chunk-FCE6KXNO.js +30 -0
  13. package/dist/chunk-HRM3FQPL.js +12 -0
  14. package/dist/chunk-IJMADVK5.js +27 -0
  15. package/dist/chunk-IYCA6KHR.js +0 -0
  16. package/dist/chunk-JCN37ARR.js +52 -0
  17. package/dist/chunk-JXYRJKRV.js +0 -0
  18. package/dist/chunk-LCMNVWSP.js +0 -0
  19. package/dist/chunk-MP7TEKEI.js +72 -0
  20. package/dist/chunk-NCVWB52E.js +0 -0
  21. package/dist/chunk-NW5O4R7M.js +37 -0
  22. package/dist/chunk-O6DYRCFN.js +0 -0
  23. package/dist/chunk-PDGMGLYH.js +0 -0
  24. package/dist/chunk-PFSZSKD5.js +0 -0
  25. package/dist/chunk-TA4BB3UC.js +0 -0
  26. package/dist/chunk-UFVPFUMI.js +35 -0
  27. package/dist/chunk-UN7KYFMV.js +0 -0
  28. package/dist/chunk-UXA4FHST.js +19 -0
  29. package/dist/chunk-WNY6POLW.js +0 -0
  30. package/dist/chunk-YVACD5IG.js +127 -0
  31. package/dist/chunk-Z2UFF3MA.js +212 -0
  32. package/dist/chunk-ZNAAA53X.js +45 -0
  33. package/dist/chunk-ZSZ3ETY7.js +32 -0
  34. package/dist/domain/article/index.cjs +250 -0
  35. package/dist/domain/article/index.d.cts +1026 -0
  36. package/dist/domain/article/index.d.ts +1026 -0
  37. package/dist/domain/article/index.js +32 -0
  38. package/dist/domain/auth/index.cjs +135 -0
  39. package/dist/domain/auth/index.d.cts +73 -0
  40. package/dist/domain/auth/index.d.ts +73 -0
  41. package/dist/domain/auth/index.js +17 -0
  42. package/dist/domain/challenge/index.cjs +65 -0
  43. package/dist/domain/challenge/index.d.cts +104 -0
  44. package/dist/domain/challenge/index.d.ts +104 -0
  45. package/dist/domain/challenge/index.js +18 -0
  46. package/dist/domain/common/index.cjs +769 -0
  47. package/dist/domain/common/index.d.cts +2576 -0
  48. package/dist/domain/common/index.d.ts +2576 -0
  49. package/dist/domain/common/index.js +107 -0
  50. package/dist/domain/coupon/index.cjs +74 -0
  51. package/dist/domain/coupon/index.d.cts +38 -0
  52. package/dist/domain/coupon/index.d.ts +38 -0
  53. package/dist/domain/coupon/index.js +14 -0
  54. package/dist/domain/friend/index.cjs +152 -0
  55. package/dist/domain/friend/index.d.cts +148 -0
  56. package/dist/domain/friend/index.d.ts +148 -0
  57. package/dist/domain/friend/index.js +25 -0
  58. package/dist/domain/index.cjs +997 -0
  59. package/dist/domain/index.d.cts +17 -0
  60. package/dist/domain/index.d.ts +17 -0
  61. package/dist/domain/index.js +334 -0
  62. package/dist/domain/invitation/index.cjs +104 -0
  63. package/dist/domain/invitation/index.d.cts +67 -0
  64. package/dist/domain/invitation/index.d.ts +67 -0
  65. package/dist/domain/invitation/index.js +17 -0
  66. package/dist/domain/meal/index.cjs +59 -0
  67. package/dist/domain/meal/index.d.cts +38 -0
  68. package/dist/domain/meal/index.d.ts +38 -0
  69. package/dist/domain/meal/index.js +15 -0
  70. package/dist/domain/member/index.cjs +127 -0
  71. package/dist/domain/member/index.d.cts +225 -0
  72. package/dist/domain/member/index.d.ts +225 -0
  73. package/dist/domain/member/index.js +30 -0
  74. package/dist/domain/plan/index.cjs +269 -0
  75. package/dist/domain/plan/index.d.cts +189 -0
  76. package/dist/domain/plan/index.d.ts +189 -0
  77. package/dist/domain/plan/index.js +19 -0
  78. package/dist/domain/preference/index.cjs +69 -0
  79. package/dist/domain/preference/index.d.cts +31 -0
  80. package/dist/domain/preference/index.d.ts +31 -0
  81. package/dist/domain/preference/index.js +12 -0
  82. package/dist/domain/recruit/index.cjs +138 -0
  83. package/dist/domain/recruit/index.d.cts +130 -0
  84. package/dist/domain/recruit/index.d.ts +130 -0
  85. package/dist/domain/recruit/index.js +19 -0
  86. package/dist/domain/referral/index.cjs +78 -0
  87. package/dist/domain/referral/index.d.cts +51 -0
  88. package/dist/domain/referral/index.d.ts +51 -0
  89. package/dist/domain/referral/index.js +14 -0
  90. package/dist/domain/restaurant/index.cjs +79 -0
  91. package/dist/domain/restaurant/index.d.cts +85 -0
  92. package/dist/domain/restaurant/index.d.ts +85 -0
  93. package/dist/domain/restaurant/index.js +11 -0
  94. package/dist/domain/room/index.cjs +332 -0
  95. package/dist/domain/room/index.d.cts +1482 -0
  96. package/dist/domain/room/index.d.ts +1482 -0
  97. package/dist/domain/room/index.js +74 -0
  98. package/dist/id-B-8M90Ef.d.cts +43 -0
  99. package/dist/id-B-8M90Ef.d.ts +43 -0
  100. package/dist/index-BuInbhtG.d.cts +305 -0
  101. package/dist/index-CKRUOupn.d.ts +305 -0
  102. package/dist/index.cjs +845 -21
  103. package/dist/index.d.cts +113 -569
  104. package/dist/index.d.ts +113 -569
  105. package/dist/index.js +50 -30
  106. package/package.json +50 -39
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/meal/index.ts
21
+ var meal_exports = {};
22
+ __export(meal_exports, {
23
+ MealStatusActionSchema: () => MealStatusActionSchema,
24
+ MealStatusResponseSchema: () => MealStatusResponseSchema,
25
+ MealStatusSchema: () => MealStatusSchema,
26
+ UpdateMealStatusRequestSchema: () => UpdateMealStatusRequestSchema
27
+ });
28
+ module.exports = __toCommonJS(meal_exports);
29
+
30
+ // src/domain/meal/schema/meal.schema.ts
31
+ var import_zod2 = require("zod");
32
+
33
+ // src/domain/common/schema/date.schema.ts
34
+ var import_zod = require("zod");
35
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
36
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
37
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
38
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
39
+
40
+ // src/domain/meal/schema/meal.schema.ts
41
+ var MealStatusSchema = import_zod2.z.enum(["FED", "FASTING"]);
42
+ var MealStatusActionSchema = import_zod2.z.enum(["ATE_NOW", "SET_OFF"]);
43
+ var UpdateMealStatusRequestSchema = import_zod2.z.object({
44
+ action: MealStatusActionSchema
45
+ });
46
+ var MealStatusResponseSchema = import_zod2.z.object({
47
+ status: MealStatusSchema,
48
+ lastMealAt: ISODateTimeStringSchema.nullable(),
49
+ fastingMinutes: import_zod2.z.number().int().min(0),
50
+ fastingHours: import_zod2.z.number().min(0),
51
+ secondsToAutoOff: import_zod2.z.number().int().min(0)
52
+ });
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ MealStatusActionSchema,
56
+ MealStatusResponseSchema,
57
+ MealStatusSchema,
58
+ UpdateMealStatusRequestSchema
59
+ });
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const MealStatusSchema: z.ZodEnum<["FED", "FASTING"]>;
4
+ declare const MealStatusActionSchema: z.ZodEnum<["ATE_NOW", "SET_OFF"]>;
5
+ declare const UpdateMealStatusRequestSchema: z.ZodObject<{
6
+ action: z.ZodEnum<["ATE_NOW", "SET_OFF"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ action: "ATE_NOW" | "SET_OFF";
9
+ }, {
10
+ action: "ATE_NOW" | "SET_OFF";
11
+ }>;
12
+ declare const MealStatusResponseSchema: z.ZodObject<{
13
+ status: z.ZodEnum<["FED", "FASTING"]>;
14
+ lastMealAt: z.ZodNullable<z.ZodString>;
15
+ fastingMinutes: z.ZodNumber;
16
+ fastingHours: z.ZodNumber;
17
+ secondsToAutoOff: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ status: "FED" | "FASTING";
20
+ lastMealAt: string | null;
21
+ fastingMinutes: number;
22
+ fastingHours: number;
23
+ secondsToAutoOff: number;
24
+ }, {
25
+ status: "FED" | "FASTING";
26
+ lastMealAt: string | null;
27
+ fastingMinutes: number;
28
+ fastingHours: number;
29
+ secondsToAutoOff: number;
30
+ }>;
31
+
32
+ type UpdateMealStatusRequest = z.infer<typeof UpdateMealStatusRequestSchema>;
33
+
34
+ type MealStatus = z.infer<typeof MealStatusSchema>;
35
+ type MealStatusAction = z.infer<typeof MealStatusActionSchema>;
36
+ type MealStatusResponse = z.infer<typeof MealStatusResponseSchema>;
37
+
38
+ export { type MealStatus, type MealStatusAction, MealStatusActionSchema, type MealStatusResponse, MealStatusResponseSchema, MealStatusSchema, type UpdateMealStatusRequest, UpdateMealStatusRequestSchema };
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const MealStatusSchema: z.ZodEnum<["FED", "FASTING"]>;
4
+ declare const MealStatusActionSchema: z.ZodEnum<["ATE_NOW", "SET_OFF"]>;
5
+ declare const UpdateMealStatusRequestSchema: z.ZodObject<{
6
+ action: z.ZodEnum<["ATE_NOW", "SET_OFF"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ action: "ATE_NOW" | "SET_OFF";
9
+ }, {
10
+ action: "ATE_NOW" | "SET_OFF";
11
+ }>;
12
+ declare const MealStatusResponseSchema: z.ZodObject<{
13
+ status: z.ZodEnum<["FED", "FASTING"]>;
14
+ lastMealAt: z.ZodNullable<z.ZodString>;
15
+ fastingMinutes: z.ZodNumber;
16
+ fastingHours: z.ZodNumber;
17
+ secondsToAutoOff: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ status: "FED" | "FASTING";
20
+ lastMealAt: string | null;
21
+ fastingMinutes: number;
22
+ fastingHours: number;
23
+ secondsToAutoOff: number;
24
+ }, {
25
+ status: "FED" | "FASTING";
26
+ lastMealAt: string | null;
27
+ fastingMinutes: number;
28
+ fastingHours: number;
29
+ secondsToAutoOff: number;
30
+ }>;
31
+
32
+ type UpdateMealStatusRequest = z.infer<typeof UpdateMealStatusRequestSchema>;
33
+
34
+ type MealStatus = z.infer<typeof MealStatusSchema>;
35
+ type MealStatusAction = z.infer<typeof MealStatusActionSchema>;
36
+ type MealStatusResponse = z.infer<typeof MealStatusResponseSchema>;
37
+
38
+ export { type MealStatus, type MealStatusAction, MealStatusActionSchema, type MealStatusResponse, MealStatusResponseSchema, MealStatusSchema, type UpdateMealStatusRequest, UpdateMealStatusRequestSchema };
@@ -0,0 +1,15 @@
1
+ import "../../chunk-PDGMGLYH.js";
2
+ import {
3
+ MealStatusActionSchema,
4
+ MealStatusResponseSchema,
5
+ MealStatusSchema,
6
+ UpdateMealStatusRequestSchema
7
+ } from "../../chunk-7MGHUZXI.js";
8
+ import "../../chunk-HRM3FQPL.js";
9
+ import "../../chunk-UXA4FHST.js";
10
+ export {
11
+ MealStatusActionSchema,
12
+ MealStatusResponseSchema,
13
+ MealStatusSchema,
14
+ UpdateMealStatusRequestSchema
15
+ };
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/domain/member/index.ts
21
+ var member_exports = {};
22
+ __export(member_exports, {
23
+ AuthPrincipalSchema: () => AuthPrincipalSchema,
24
+ MemberCoreSchema: () => MemberCoreSchema,
25
+ MemberResponseSchema: () => MemberResponseSchema,
26
+ MemberRoleSchema: () => MemberRoleSchema,
27
+ MemberSummaryResponseSchema: () => MemberSummaryResponseSchema,
28
+ OnboardingPreferenceRequestSchema: () => OnboardingPreferenceRequestSchema,
29
+ OnboardingRequestSchema: () => OnboardingRequestSchema,
30
+ PreferenceMetaResponseSchema: () => PreferenceMetaResponseSchema,
31
+ ProfileDetailResponseSchema: () => ProfileDetailResponseSchema,
32
+ ProfilePreferenceItemSchema: () => ProfilePreferenceItemSchema,
33
+ UpdateProfileRequestSchema: () => UpdateProfileRequestSchema
34
+ });
35
+ module.exports = __toCommonJS(member_exports);
36
+
37
+ // src/domain/member/schema/member.schema.ts
38
+ var import_zod3 = require("zod");
39
+
40
+ // src/domain/common/schema/date.schema.ts
41
+ var import_zod = require("zod");
42
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
43
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
44
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
45
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
46
+
47
+ // src/domain/common/schema/id.schema.ts
48
+ var import_zod2 = require("zod");
49
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
50
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
51
+ var MemberIdSchema = PositiveIntIdSchema.brand();
52
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
53
+ var CommentIdSchema = PositiveIntIdSchema.brand();
54
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
55
+ var PlanIdSchema = PositiveIntIdSchema.brand();
56
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
57
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
58
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
59
+ var CouponIdSchema = PositiveIntIdSchema.brand();
60
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
61
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
62
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
63
+
64
+ // src/domain/member/schema/member.schema.ts
65
+ var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
66
+ var MemberCoreSchema = import_zod3.z.object({
67
+ memberId: MemberIdSchema,
68
+ username: import_zod3.z.string().min(1).max(50),
69
+ profileImageUrl: import_zod3.z.string().url().nullable()
70
+ });
71
+ var MemberResponseSchema = MemberCoreSchema.pick({
72
+ memberId: true,
73
+ username: true,
74
+ profileImageUrl: true
75
+ });
76
+ var MemberSummaryResponseSchema = MemberCoreSchema.extend({
77
+ friends: import_zod3.z.number().int().min(0).default(0),
78
+ completedPlans: import_zod3.z.number().int().min(0).default(0),
79
+ uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
80
+ });
81
+ var AuthPrincipalSchema = import_zod3.z.object({
82
+ memberId: MemberIdSchema,
83
+ role: MemberRoleSchema
84
+ });
85
+ var ProfilePreferenceItemSchema = import_zod3.z.object({
86
+ code: import_zod3.z.string(),
87
+ label: import_zod3.z.string()
88
+ });
89
+ var ProfileDetailResponseSchema = MemberCoreSchema.extend({
90
+ bio: import_zod3.z.string().nullable(),
91
+ planCount: import_zod3.z.number().int().min(0),
92
+ likes: import_zod3.z.array(ProfilePreferenceItemSchema),
93
+ dislikes: import_zod3.z.array(ProfilePreferenceItemSchema),
94
+ allergies: import_zod3.z.array(ProfilePreferenceItemSchema)
95
+ });
96
+ var UpdateProfileRequestSchema = import_zod3.z.object({
97
+ username: import_zod3.z.string().min(1).max(50),
98
+ profileImageUrl: import_zod3.z.string().url().nullable(),
99
+ bio: import_zod3.z.string().max(500).nullable()
100
+ });
101
+ var OnboardingPreferenceRequestSchema = import_zod3.z.object({
102
+ likedCodes: import_zod3.z.array(import_zod3.z.string()),
103
+ dislikedCodes: import_zod3.z.array(import_zod3.z.string()),
104
+ allergyCodes: import_zod3.z.array(import_zod3.z.string())
105
+ });
106
+ var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
107
+ OnboardingPreferenceRequestSchema
108
+ );
109
+ var PreferenceMetaResponseSchema = import_zod3.z.object({
110
+ onboardedAt: ISODateTimeStringSchema.nullable(),
111
+ lastUpdatedAt: ISODateTimeStringSchema.nullable(),
112
+ revision: import_zod3.z.number().int().min(0)
113
+ });
114
+ // Annotate the CommonJS export names for ESM import in node:
115
+ 0 && (module.exports = {
116
+ AuthPrincipalSchema,
117
+ MemberCoreSchema,
118
+ MemberResponseSchema,
119
+ MemberRoleSchema,
120
+ MemberSummaryResponseSchema,
121
+ OnboardingPreferenceRequestSchema,
122
+ OnboardingRequestSchema,
123
+ PreferenceMetaResponseSchema,
124
+ ProfileDetailResponseSchema,
125
+ ProfilePreferenceItemSchema,
126
+ UpdateProfileRequestSchema
127
+ });
@@ -0,0 +1,225 @@
1
+ import { z } from 'zod';
2
+ export { M as MemberId, U as UserId } from '../../id-B-8M90Ef.cjs';
3
+
4
+ declare const MemberRoleSchema: z.ZodEnum<["USER", "ADMIN"]>;
5
+ declare const MemberCoreSchema: z.ZodObject<{
6
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
7
+ username: z.ZodString;
8
+ profileImageUrl: z.ZodNullable<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ memberId: number & z.BRAND<"MemberId">;
11
+ username: string;
12
+ profileImageUrl: string | null;
13
+ }, {
14
+ memberId: number;
15
+ username: string;
16
+ profileImageUrl: string | null;
17
+ }>;
18
+ declare const MemberResponseSchema: z.ZodObject<Pick<{
19
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
20
+ username: z.ZodString;
21
+ profileImageUrl: z.ZodNullable<z.ZodString>;
22
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
23
+ memberId: number & z.BRAND<"MemberId">;
24
+ username: string;
25
+ profileImageUrl: string | null;
26
+ }, {
27
+ memberId: number;
28
+ username: string;
29
+ profileImageUrl: string | null;
30
+ }>;
31
+ declare const MemberSummaryResponseSchema: z.ZodObject<{
32
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
33
+ username: z.ZodString;
34
+ profileImageUrl: z.ZodNullable<z.ZodString>;
35
+ } & {
36
+ friends: z.ZodDefault<z.ZodNumber>;
37
+ completedPlans: z.ZodDefault<z.ZodNumber>;
38
+ uncompletedPlans: z.ZodDefault<z.ZodNumber>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ memberId: number & z.BRAND<"MemberId">;
41
+ username: string;
42
+ profileImageUrl: string | null;
43
+ friends: number;
44
+ completedPlans: number;
45
+ uncompletedPlans: number;
46
+ }, {
47
+ memberId: number;
48
+ username: string;
49
+ profileImageUrl: string | null;
50
+ friends?: number | undefined;
51
+ completedPlans?: number | undefined;
52
+ uncompletedPlans?: number | undefined;
53
+ }>;
54
+ declare const AuthPrincipalSchema: z.ZodObject<{
55
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
56
+ role: z.ZodEnum<["USER", "ADMIN"]>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ memberId: number & z.BRAND<"MemberId">;
59
+ role: "USER" | "ADMIN";
60
+ }, {
61
+ memberId: number;
62
+ role: "USER" | "ADMIN";
63
+ }>;
64
+ declare const ProfilePreferenceItemSchema: z.ZodObject<{
65
+ code: z.ZodString;
66
+ label: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ code: string;
69
+ label: string;
70
+ }, {
71
+ code: string;
72
+ label: string;
73
+ }>;
74
+ declare const ProfileDetailResponseSchema: z.ZodObject<{
75
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
76
+ username: z.ZodString;
77
+ profileImageUrl: z.ZodNullable<z.ZodString>;
78
+ } & {
79
+ bio: z.ZodNullable<z.ZodString>;
80
+ planCount: z.ZodNumber;
81
+ likes: z.ZodArray<z.ZodObject<{
82
+ code: z.ZodString;
83
+ label: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ code: string;
86
+ label: string;
87
+ }, {
88
+ code: string;
89
+ label: string;
90
+ }>, "many">;
91
+ dislikes: z.ZodArray<z.ZodObject<{
92
+ code: z.ZodString;
93
+ label: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ code: string;
96
+ label: string;
97
+ }, {
98
+ code: string;
99
+ label: string;
100
+ }>, "many">;
101
+ allergies: z.ZodArray<z.ZodObject<{
102
+ code: z.ZodString;
103
+ label: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ code: string;
106
+ label: string;
107
+ }, {
108
+ code: string;
109
+ label: string;
110
+ }>, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ memberId: number & z.BRAND<"MemberId">;
113
+ username: string;
114
+ profileImageUrl: string | null;
115
+ bio: string | null;
116
+ planCount: number;
117
+ likes: {
118
+ code: string;
119
+ label: string;
120
+ }[];
121
+ dislikes: {
122
+ code: string;
123
+ label: string;
124
+ }[];
125
+ allergies: {
126
+ code: string;
127
+ label: string;
128
+ }[];
129
+ }, {
130
+ memberId: number;
131
+ username: string;
132
+ profileImageUrl: string | null;
133
+ bio: string | null;
134
+ planCount: number;
135
+ likes: {
136
+ code: string;
137
+ label: string;
138
+ }[];
139
+ dislikes: {
140
+ code: string;
141
+ label: string;
142
+ }[];
143
+ allergies: {
144
+ code: string;
145
+ label: string;
146
+ }[];
147
+ }>;
148
+ declare const UpdateProfileRequestSchema: z.ZodObject<{
149
+ username: z.ZodString;
150
+ profileImageUrl: z.ZodNullable<z.ZodString>;
151
+ bio: z.ZodNullable<z.ZodString>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ username: string;
154
+ profileImageUrl: string | null;
155
+ bio: string | null;
156
+ }, {
157
+ username: string;
158
+ profileImageUrl: string | null;
159
+ bio: string | null;
160
+ }>;
161
+ declare const OnboardingPreferenceRequestSchema: z.ZodObject<{
162
+ likedCodes: z.ZodArray<z.ZodString, "many">;
163
+ dislikedCodes: z.ZodArray<z.ZodString, "many">;
164
+ allergyCodes: z.ZodArray<z.ZodString, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ likedCodes: string[];
167
+ dislikedCodes: string[];
168
+ allergyCodes: string[];
169
+ }, {
170
+ likedCodes: string[];
171
+ dislikedCodes: string[];
172
+ allergyCodes: string[];
173
+ }>;
174
+ declare const OnboardingRequestSchema: z.ZodObject<{
175
+ username: z.ZodString;
176
+ profileImageUrl: z.ZodNullable<z.ZodString>;
177
+ bio: z.ZodNullable<z.ZodString>;
178
+ } & {
179
+ likedCodes: z.ZodArray<z.ZodString, "many">;
180
+ dislikedCodes: z.ZodArray<z.ZodString, "many">;
181
+ allergyCodes: z.ZodArray<z.ZodString, "many">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ username: string;
184
+ profileImageUrl: string | null;
185
+ bio: string | null;
186
+ likedCodes: string[];
187
+ dislikedCodes: string[];
188
+ allergyCodes: string[];
189
+ }, {
190
+ username: string;
191
+ profileImageUrl: string | null;
192
+ bio: string | null;
193
+ likedCodes: string[];
194
+ dislikedCodes: string[];
195
+ allergyCodes: string[];
196
+ }>;
197
+ declare const PreferenceMetaResponseSchema: z.ZodObject<{
198
+ onboardedAt: z.ZodNullable<z.ZodString>;
199
+ lastUpdatedAt: z.ZodNullable<z.ZodString>;
200
+ revision: z.ZodNumber;
201
+ }, "strip", z.ZodTypeAny, {
202
+ onboardedAt: string | null;
203
+ lastUpdatedAt: string | null;
204
+ revision: number;
205
+ }, {
206
+ onboardedAt: string | null;
207
+ lastUpdatedAt: string | null;
208
+ revision: number;
209
+ }>;
210
+
211
+ type UpdateProfileRequest = z.infer<typeof UpdateProfileRequestSchema>;
212
+ type OnboardingPreferenceRequest = z.infer<typeof OnboardingPreferenceRequestSchema>;
213
+ type OnboardingRequest = z.infer<typeof OnboardingRequestSchema>;
214
+
215
+ type MemberRole = z.infer<typeof MemberRoleSchema>;
216
+ type MemberResponse = z.infer<typeof MemberResponseSchema>;
217
+ type MemberSummaryResponse = z.infer<typeof MemberSummaryResponseSchema>;
218
+ type AuthPrincipal = z.infer<typeof AuthPrincipalSchema>;
219
+ type ProfilePreferenceItem = z.infer<typeof ProfilePreferenceItemSchema>;
220
+ type ProfileDetailResponse = z.infer<typeof ProfileDetailResponseSchema>;
221
+ type PreferenceMetaResponse = z.infer<typeof PreferenceMetaResponseSchema>;
222
+ /** @deprecated Use MemberResponse. */
223
+ type User = MemberResponse;
224
+
225
+ export { type AuthPrincipal, AuthPrincipalSchema, MemberCoreSchema, type MemberResponse, MemberResponseSchema, type MemberRole, MemberRoleSchema, type MemberSummaryResponse, MemberSummaryResponseSchema, type OnboardingPreferenceRequest, OnboardingPreferenceRequestSchema, type OnboardingRequest, OnboardingRequestSchema, type PreferenceMetaResponse, PreferenceMetaResponseSchema, type ProfileDetailResponse, ProfileDetailResponseSchema, type ProfilePreferenceItem, ProfilePreferenceItemSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type User };