@kimdaegyu/babmukdang-shared 1.0.6 → 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.
- package/dist/chunk-2GRWCRTV.js +328 -0
- package/dist/chunk-2SJCUQNN.js +40 -0
- package/dist/chunk-34EKPNPX.js +0 -0
- package/dist/chunk-35QGRA2X.js +0 -0
- package/dist/chunk-3YMV26OY.js +0 -0
- package/dist/chunk-4DAOP35P.js +74 -0
- package/dist/chunk-6NZPEF4K.js +34 -0
- package/dist/chunk-7MGHUZXI.js +25 -0
- package/dist/chunk-BVTYAILQ.js +0 -0
- package/dist/chunk-EJKRR2MZ.js +184 -0
- package/dist/chunk-F24BT6H4.js +23 -0
- package/dist/chunk-FCE6KXNO.js +30 -0
- package/dist/chunk-HRM3FQPL.js +12 -0
- package/dist/chunk-IJMADVK5.js +27 -0
- package/dist/chunk-IYCA6KHR.js +0 -0
- package/dist/chunk-JCN37ARR.js +52 -0
- package/dist/chunk-JXYRJKRV.js +0 -0
- package/dist/chunk-LCMNVWSP.js +0 -0
- package/dist/chunk-MP7TEKEI.js +72 -0
- package/dist/chunk-NCVWB52E.js +0 -0
- package/dist/chunk-NW5O4R7M.js +37 -0
- package/dist/chunk-O6DYRCFN.js +0 -0
- package/dist/chunk-PDGMGLYH.js +0 -0
- package/dist/chunk-PFSZSKD5.js +0 -0
- package/dist/chunk-TA4BB3UC.js +0 -0
- package/dist/chunk-UFVPFUMI.js +35 -0
- package/dist/chunk-UN7KYFMV.js +0 -0
- package/dist/chunk-UXA4FHST.js +19 -0
- package/dist/chunk-WNY6POLW.js +0 -0
- package/dist/chunk-YVACD5IG.js +127 -0
- package/dist/chunk-Z2UFF3MA.js +212 -0
- package/dist/chunk-ZNAAA53X.js +45 -0
- package/dist/chunk-ZSZ3ETY7.js +32 -0
- package/dist/domain/article/index.cjs +250 -0
- package/dist/domain/article/index.d.cts +1026 -0
- package/dist/domain/article/index.d.ts +1026 -0
- package/dist/domain/article/index.js +32 -0
- package/dist/domain/auth/index.cjs +135 -0
- package/dist/domain/auth/index.d.cts +73 -0
- package/dist/domain/auth/index.d.ts +73 -0
- package/dist/domain/auth/index.js +17 -0
- package/dist/domain/challenge/index.cjs +65 -0
- package/dist/domain/challenge/index.d.cts +104 -0
- package/dist/domain/challenge/index.d.ts +104 -0
- package/dist/domain/challenge/index.js +18 -0
- package/dist/domain/common/index.cjs +769 -0
- package/dist/domain/common/index.d.cts +2576 -0
- package/dist/domain/common/index.d.ts +2576 -0
- package/dist/domain/common/index.js +107 -0
- package/dist/domain/coupon/index.cjs +74 -0
- package/dist/domain/coupon/index.d.cts +38 -0
- package/dist/domain/coupon/index.d.ts +38 -0
- package/dist/domain/coupon/index.js +14 -0
- package/dist/domain/friend/index.cjs +152 -0
- package/dist/domain/friend/index.d.cts +148 -0
- package/dist/domain/friend/index.d.ts +148 -0
- package/dist/domain/friend/index.js +25 -0
- package/dist/domain/index.cjs +997 -0
- package/dist/domain/index.d.cts +17 -0
- package/dist/domain/index.d.ts +17 -0
- package/dist/domain/index.js +334 -0
- package/dist/domain/invitation/index.cjs +104 -0
- package/dist/domain/invitation/index.d.cts +67 -0
- package/dist/domain/invitation/index.d.ts +67 -0
- package/dist/domain/invitation/index.js +17 -0
- package/dist/domain/meal/index.cjs +59 -0
- package/dist/domain/meal/index.d.cts +38 -0
- package/dist/domain/meal/index.d.ts +38 -0
- package/dist/domain/meal/index.js +15 -0
- package/dist/domain/member/index.cjs +127 -0
- package/dist/domain/member/index.d.cts +225 -0
- package/dist/domain/member/index.d.ts +225 -0
- package/dist/domain/member/index.js +30 -0
- package/dist/domain/plan/index.cjs +269 -0
- package/dist/domain/plan/index.d.cts +189 -0
- package/dist/domain/plan/index.d.ts +189 -0
- package/dist/domain/plan/index.js +19 -0
- package/dist/domain/preference/index.cjs +69 -0
- package/dist/domain/preference/index.d.cts +31 -0
- package/dist/domain/preference/index.d.ts +31 -0
- package/dist/domain/preference/index.js +12 -0
- package/dist/domain/recruit/index.cjs +138 -0
- package/dist/domain/recruit/index.d.cts +130 -0
- package/dist/domain/recruit/index.d.ts +130 -0
- package/dist/domain/recruit/index.js +19 -0
- package/dist/domain/referral/index.cjs +78 -0
- package/dist/domain/referral/index.d.cts +51 -0
- package/dist/domain/referral/index.d.ts +51 -0
- package/dist/domain/referral/index.js +14 -0
- package/dist/domain/restaurant/index.cjs +79 -0
- package/dist/domain/restaurant/index.d.cts +85 -0
- package/dist/domain/restaurant/index.d.ts +85 -0
- package/dist/domain/restaurant/index.js +11 -0
- package/dist/domain/room/index.cjs +332 -0
- package/dist/domain/room/index.d.cts +1482 -0
- package/dist/domain/room/index.d.ts +1482 -0
- package/dist/domain/room/index.js +74 -0
- package/dist/id-B-8M90Ef.d.cts +43 -0
- package/dist/id-B-8M90Ef.d.ts +43 -0
- package/dist/index-BuInbhtG.d.cts +305 -0
- package/dist/index-CKRUOupn.d.ts +305 -0
- package/dist/index.cjs +845 -21
- package/dist/index.d.cts +113 -569
- package/dist/index.d.ts +113 -569
- package/dist/index.js +50 -30
- package/package.json +50 -39
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LocationCandidateSchema
|
|
3
|
+
} from "./chunk-EJKRR2MZ.js";
|
|
4
|
+
import {
|
|
5
|
+
RestaurantSchema
|
|
6
|
+
} from "./chunk-NW5O4R7M.js";
|
|
7
|
+
import {
|
|
8
|
+
MemberResponseSchema
|
|
9
|
+
} from "./chunk-MP7TEKEI.js";
|
|
10
|
+
import {
|
|
11
|
+
PlanIdSchema
|
|
12
|
+
} from "./chunk-UFVPFUMI.js";
|
|
13
|
+
import {
|
|
14
|
+
ISODateStringSchema,
|
|
15
|
+
ISODateTimeStringSchema,
|
|
16
|
+
TimeHHmmStringSchema
|
|
17
|
+
} from "./chunk-HRM3FQPL.js";
|
|
18
|
+
|
|
19
|
+
// src/domain/plan/schema/plan.schema.ts
|
|
20
|
+
import { z } from "zod";
|
|
21
|
+
var PlanStatusSchema = z.enum(["PLANNING", "COMPLETED"]);
|
|
22
|
+
var PlanTypeSchema = z.enum(["RECRUIT", "INVITATION"]);
|
|
23
|
+
var CreatePlanRequestSchema = z.object({
|
|
24
|
+
meetingDate: ISODateStringSchema,
|
|
25
|
+
meetingTime: TimeHHmmStringSchema
|
|
26
|
+
});
|
|
27
|
+
var PlanResponseSchema = z.object({
|
|
28
|
+
planId: PlanIdSchema,
|
|
29
|
+
meetingAt: ISODateTimeStringSchema,
|
|
30
|
+
location: LocationCandidateSchema.nullable(),
|
|
31
|
+
restaurant: RestaurantSchema.nullable(),
|
|
32
|
+
author: MemberResponseSchema.nullable(),
|
|
33
|
+
participants: z.array(MemberResponseSchema),
|
|
34
|
+
status: PlanStatusSchema,
|
|
35
|
+
type: PlanTypeSchema,
|
|
36
|
+
createdAt: ISODateTimeStringSchema,
|
|
37
|
+
updatedAt: ISODateTimeStringSchema
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
PlanStatusSchema,
|
|
42
|
+
PlanTypeSchema,
|
|
43
|
+
CreatePlanRequestSchema,
|
|
44
|
+
PlanResponseSchema
|
|
45
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MemberIdSchema,
|
|
3
|
+
ReferralCodeSchema
|
|
4
|
+
} from "./chunk-UFVPFUMI.js";
|
|
5
|
+
import {
|
|
6
|
+
ISODateTimeStringSchema
|
|
7
|
+
} from "./chunk-HRM3FQPL.js";
|
|
8
|
+
|
|
9
|
+
// src/domain/referral/schema/referral.schema.ts
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
var ReferralCreateResponseSchema = z.object({
|
|
12
|
+
code: ReferralCodeSchema,
|
|
13
|
+
link: z.string().url(),
|
|
14
|
+
expiresAt: ISODateTimeStringSchema
|
|
15
|
+
});
|
|
16
|
+
var ReferralItemResponseSchema = z.object({
|
|
17
|
+
code: ReferralCodeSchema,
|
|
18
|
+
createdAt: ISODateTimeStringSchema,
|
|
19
|
+
expiresAt: ISODateTimeStringSchema,
|
|
20
|
+
used: z.boolean(),
|
|
21
|
+
usedByMemberId: MemberIdSchema.nullable(),
|
|
22
|
+
usedByUsername: z.string().nullable()
|
|
23
|
+
});
|
|
24
|
+
var RedeemReferralRequestSchema = z.object({
|
|
25
|
+
code: ReferralCodeSchema
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
ReferralCreateResponseSchema,
|
|
30
|
+
ReferralItemResponseSchema,
|
|
31
|
+
RedeemReferralRequestSchema
|
|
32
|
+
};
|
|
@@ -0,0 +1,250 @@
|
|
|
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/article/index.ts
|
|
21
|
+
var article_exports = {};
|
|
22
|
+
__export(article_exports, {
|
|
23
|
+
ArticleCoreSchema: () => ArticleCoreSchema,
|
|
24
|
+
ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
|
|
25
|
+
ArticlePostRequestSchema: () => ArticlePostRequestSchema,
|
|
26
|
+
ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
|
|
27
|
+
CommentPostRequestSchema: () => CommentPostRequestSchema,
|
|
28
|
+
CommentResponseSchema: () => CommentResponseSchema,
|
|
29
|
+
CreateArticleResponseSchema: () => CreateArticleResponseSchema,
|
|
30
|
+
CreateCommentResponseSchema: () => CreateCommentResponseSchema,
|
|
31
|
+
FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
|
|
32
|
+
PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
|
|
33
|
+
PresignUploadResponseSchema: () => PresignUploadResponseSchema
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(article_exports);
|
|
36
|
+
|
|
37
|
+
// src/domain/article/schema/article.schema.ts
|
|
38
|
+
var import_zod6 = 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/common/schema/pagination.schema.ts
|
|
65
|
+
var import_zod3 = require("zod");
|
|
66
|
+
var PageRequestSchema = import_zod3.z.object({
|
|
67
|
+
page: import_zod3.z.number().int().min(0).default(0),
|
|
68
|
+
size: import_zod3.z.number().int().min(1).max(100).default(20)
|
|
69
|
+
});
|
|
70
|
+
var SortObjectSchema = import_zod3.z.object({
|
|
71
|
+
empty: import_zod3.z.boolean(),
|
|
72
|
+
sorted: import_zod3.z.boolean(),
|
|
73
|
+
unsorted: import_zod3.z.boolean()
|
|
74
|
+
});
|
|
75
|
+
var PageableObjectSchema = import_zod3.z.object({
|
|
76
|
+
offset: import_zod3.z.number().int().min(0),
|
|
77
|
+
sort: SortObjectSchema,
|
|
78
|
+
paged: import_zod3.z.boolean(),
|
|
79
|
+
pageNumber: import_zod3.z.number().int().min(0),
|
|
80
|
+
pageSize: import_zod3.z.number().int().min(1),
|
|
81
|
+
unpaged: import_zod3.z.boolean()
|
|
82
|
+
});
|
|
83
|
+
var PageResponseSchema = (item) => import_zod3.z.object({
|
|
84
|
+
totalElements: import_zod3.z.number().int().min(0),
|
|
85
|
+
totalPages: import_zod3.z.number().int().min(0),
|
|
86
|
+
first: import_zod3.z.boolean(),
|
|
87
|
+
size: import_zod3.z.number().int().min(0),
|
|
88
|
+
content: import_zod3.z.array(item),
|
|
89
|
+
number: import_zod3.z.number().int().min(0),
|
|
90
|
+
sort: SortObjectSchema,
|
|
91
|
+
numberOfElements: import_zod3.z.number().int().min(0),
|
|
92
|
+
pageable: PageableObjectSchema,
|
|
93
|
+
last: import_zod3.z.boolean(),
|
|
94
|
+
empty: import_zod3.z.boolean()
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// src/domain/member/schema/member.schema.ts
|
|
98
|
+
var import_zod4 = require("zod");
|
|
99
|
+
var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
|
|
100
|
+
var MemberCoreSchema = import_zod4.z.object({
|
|
101
|
+
memberId: MemberIdSchema,
|
|
102
|
+
username: import_zod4.z.string().min(1).max(50),
|
|
103
|
+
profileImageUrl: import_zod4.z.string().url().nullable()
|
|
104
|
+
});
|
|
105
|
+
var MemberResponseSchema = MemberCoreSchema.pick({
|
|
106
|
+
memberId: true,
|
|
107
|
+
username: true,
|
|
108
|
+
profileImageUrl: true
|
|
109
|
+
});
|
|
110
|
+
var MemberSummaryResponseSchema = MemberCoreSchema.extend({
|
|
111
|
+
friends: import_zod4.z.number().int().min(0).default(0),
|
|
112
|
+
completedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
113
|
+
uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
|
|
114
|
+
});
|
|
115
|
+
var AuthPrincipalSchema = import_zod4.z.object({
|
|
116
|
+
memberId: MemberIdSchema,
|
|
117
|
+
role: MemberRoleSchema
|
|
118
|
+
});
|
|
119
|
+
var ProfilePreferenceItemSchema = import_zod4.z.object({
|
|
120
|
+
code: import_zod4.z.string(),
|
|
121
|
+
label: import_zod4.z.string()
|
|
122
|
+
});
|
|
123
|
+
var ProfileDetailResponseSchema = MemberCoreSchema.extend({
|
|
124
|
+
bio: import_zod4.z.string().nullable(),
|
|
125
|
+
planCount: import_zod4.z.number().int().min(0),
|
|
126
|
+
likes: import_zod4.z.array(ProfilePreferenceItemSchema),
|
|
127
|
+
dislikes: import_zod4.z.array(ProfilePreferenceItemSchema),
|
|
128
|
+
allergies: import_zod4.z.array(ProfilePreferenceItemSchema)
|
|
129
|
+
});
|
|
130
|
+
var UpdateProfileRequestSchema = import_zod4.z.object({
|
|
131
|
+
username: import_zod4.z.string().min(1).max(50),
|
|
132
|
+
profileImageUrl: import_zod4.z.string().url().nullable(),
|
|
133
|
+
bio: import_zod4.z.string().max(500).nullable()
|
|
134
|
+
});
|
|
135
|
+
var OnboardingPreferenceRequestSchema = import_zod4.z.object({
|
|
136
|
+
likedCodes: import_zod4.z.array(import_zod4.z.string()),
|
|
137
|
+
dislikedCodes: import_zod4.z.array(import_zod4.z.string()),
|
|
138
|
+
allergyCodes: import_zod4.z.array(import_zod4.z.string())
|
|
139
|
+
});
|
|
140
|
+
var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
141
|
+
OnboardingPreferenceRequestSchema
|
|
142
|
+
);
|
|
143
|
+
var PreferenceMetaResponseSchema = import_zod4.z.object({
|
|
144
|
+
onboardedAt: ISODateTimeStringSchema.nullable(),
|
|
145
|
+
lastUpdatedAt: ISODateTimeStringSchema.nullable(),
|
|
146
|
+
revision: import_zod4.z.number().int().min(0)
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// src/domain/restaurant/schema/restaurant.schema.ts
|
|
150
|
+
var import_zod5 = require("zod");
|
|
151
|
+
var RestaurantSchema = import_zod5.z.object({
|
|
152
|
+
restaurantId: RestaurantIdSchema,
|
|
153
|
+
placeName: import_zod5.z.string(),
|
|
154
|
+
categoryName: import_zod5.z.string(),
|
|
155
|
+
categoryGroupName: import_zod5.z.string(),
|
|
156
|
+
distance: import_zod5.z.string().optional(),
|
|
157
|
+
roadAddressName: import_zod5.z.string(),
|
|
158
|
+
addressName: import_zod5.z.string(),
|
|
159
|
+
phone: import_zod5.z.string().nullable(),
|
|
160
|
+
placeUrl: import_zod5.z.string().url().nullable(),
|
|
161
|
+
lat: import_zod5.z.number(),
|
|
162
|
+
lng: import_zod5.z.number()
|
|
163
|
+
});
|
|
164
|
+
var KakaoPlaceRawSchema = import_zod5.z.object({
|
|
165
|
+
id: RestaurantIdSchema,
|
|
166
|
+
place_name: import_zod5.z.string(),
|
|
167
|
+
category_name: import_zod5.z.string(),
|
|
168
|
+
category_group_name: import_zod5.z.string(),
|
|
169
|
+
distance: import_zod5.z.string(),
|
|
170
|
+
road_address_name: import_zod5.z.string(),
|
|
171
|
+
address_name: import_zod5.z.string(),
|
|
172
|
+
phone: import_zod5.z.string(),
|
|
173
|
+
place_url: import_zod5.z.string().url().optional(),
|
|
174
|
+
lat: import_zod5.z.number(),
|
|
175
|
+
lng: import_zod5.z.number()
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
// src/domain/article/schema/article.schema.ts
|
|
179
|
+
var FoodAnalysisResultSchema = import_zod6.z.object({
|
|
180
|
+
code: import_zod6.z.string(),
|
|
181
|
+
label: import_zod6.z.string(),
|
|
182
|
+
confidence: import_zod6.z.number().min(0).max(1),
|
|
183
|
+
tsUtc: ISODateTimeStringSchema.optional()
|
|
184
|
+
});
|
|
185
|
+
var ArticlePostRequestSchema = import_zod6.z.object({
|
|
186
|
+
imageUrl: import_zod6.z.string().url(),
|
|
187
|
+
mealDate: ISODateStringSchema,
|
|
188
|
+
restaurant: RestaurantSchema,
|
|
189
|
+
taggedMemberIds: import_zod6.z.array(MemberIdSchema).default([]),
|
|
190
|
+
foodAnalysis: FoodAnalysisResultSchema.optional()
|
|
191
|
+
});
|
|
192
|
+
var CreateArticleResponseSchema = import_zod6.z.object({
|
|
193
|
+
articleId: ArticleIdSchema
|
|
194
|
+
});
|
|
195
|
+
var CommentPostRequestSchema = import_zod6.z.object({
|
|
196
|
+
content: import_zod6.z.string().min(1).max(500),
|
|
197
|
+
parentCommentId: CommentIdSchema.nullish()
|
|
198
|
+
});
|
|
199
|
+
var CreateCommentResponseSchema = import_zod6.z.object({
|
|
200
|
+
commentId: CommentIdSchema
|
|
201
|
+
});
|
|
202
|
+
var CommentResponseSchema = import_zod6.z.object({
|
|
203
|
+
commentId: CommentIdSchema,
|
|
204
|
+
author: MemberResponseSchema,
|
|
205
|
+
parentCommentId: CommentIdSchema.nullable(),
|
|
206
|
+
content: import_zod6.z.string(),
|
|
207
|
+
createdAt: ISODateTimeStringSchema,
|
|
208
|
+
updatedAt: ISODateTimeStringSchema
|
|
209
|
+
});
|
|
210
|
+
var ArticleCoreSchema = import_zod6.z.object({
|
|
211
|
+
articleId: ArticleIdSchema,
|
|
212
|
+
author: MemberResponseSchema,
|
|
213
|
+
imageUrl: import_zod6.z.string().url(),
|
|
214
|
+
mealDate: ISODateStringSchema,
|
|
215
|
+
restaurant: RestaurantSchema,
|
|
216
|
+
createdAt: ISODateTimeStringSchema,
|
|
217
|
+
updatedAt: ISODateTimeStringSchema,
|
|
218
|
+
expiresAt: ISODateTimeStringSchema,
|
|
219
|
+
taggedMembers: import_zod6.z.array(MemberResponseSchema)
|
|
220
|
+
});
|
|
221
|
+
var ArticleSummaryResponseSchema = ArticleCoreSchema.extend({
|
|
222
|
+
likeCount: import_zod6.z.number().int().min(0),
|
|
223
|
+
commentCount: import_zod6.z.number().int().min(0),
|
|
224
|
+
likedByMe: import_zod6.z.boolean()
|
|
225
|
+
});
|
|
226
|
+
var ArticleDetailResponseSchema = ArticleSummaryResponseSchema.extend({
|
|
227
|
+
comments: import_zod6.z.array(CommentResponseSchema).optional()
|
|
228
|
+
});
|
|
229
|
+
var PageArticleSummaryResponseSchema = PageResponseSchema(
|
|
230
|
+
ArticleSummaryResponseSchema
|
|
231
|
+
);
|
|
232
|
+
var PresignUploadResponseSchema = import_zod6.z.object({
|
|
233
|
+
key: import_zod6.z.string(),
|
|
234
|
+
putUrl: import_zod6.z.string().url(),
|
|
235
|
+
cdnUrl: import_zod6.z.string().url()
|
|
236
|
+
});
|
|
237
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
238
|
+
0 && (module.exports = {
|
|
239
|
+
ArticleCoreSchema,
|
|
240
|
+
ArticleDetailResponseSchema,
|
|
241
|
+
ArticlePostRequestSchema,
|
|
242
|
+
ArticleSummaryResponseSchema,
|
|
243
|
+
CommentPostRequestSchema,
|
|
244
|
+
CommentResponseSchema,
|
|
245
|
+
CreateArticleResponseSchema,
|
|
246
|
+
CreateCommentResponseSchema,
|
|
247
|
+
FoodAnalysisResultSchema,
|
|
248
|
+
PageArticleSummaryResponseSchema,
|
|
249
|
+
PresignUploadResponseSchema
|
|
250
|
+
});
|