@kimdaegyu/babmukdang-shared 1.1.10 → 2.0.2

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 (88) hide show
  1. package/dist/chunk-3BLXZW4U.js +338 -0
  2. package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
  3. package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
  4. package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
  5. package/dist/chunk-EX7S5FI5.js +91 -0
  6. package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
  7. package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
  8. package/dist/chunk-GESEM4IA.js +122 -0
  9. package/dist/chunk-IPANLE7B.js +632 -0
  10. package/dist/chunk-KREAZLLH.js +1062 -0
  11. package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
  12. package/dist/chunk-Q4BPFDVB.js +171 -0
  13. package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
  14. package/dist/chunk-TIOX7OHA.js +863 -0
  15. package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
  16. package/dist/chunk-YV734GYZ.js +165 -0
  17. package/dist/domain/article/index.cjs +107 -15
  18. package/dist/domain/article/index.d.cts +254 -0
  19. package/dist/domain/article/index.d.ts +254 -0
  20. package/dist/domain/article/index.js +5 -5
  21. package/dist/domain/auth/index.cjs +88 -9
  22. package/dist/domain/auth/index.d.cts +29 -0
  23. package/dist/domain/auth/index.d.ts +29 -0
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +2100 -395
  26. package/dist/domain/common/index.d.cts +328 -0
  27. package/dist/domain/common/index.d.ts +328 -0
  28. package/dist/domain/common/index.js +65 -31
  29. package/dist/domain/food/index.cjs +248 -0
  30. package/dist/domain/food/index.d.cts +321 -0
  31. package/dist/domain/food/index.d.ts +321 -0
  32. package/dist/domain/food/index.js +44 -0
  33. package/dist/domain/friend/index.cjs +108 -12
  34. package/dist/domain/friend/index.d.cts +72 -0
  35. package/dist/domain/friend/index.d.ts +72 -0
  36. package/dist/domain/friend/index.js +6 -4
  37. package/dist/domain/index.cjs +2736 -522
  38. package/dist/domain/index.d.cts +576 -0
  39. package/dist/domain/index.d.ts +576 -0
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1061 -0
  42. package/dist/domain/live-activity/index.d.cts +177 -0
  43. package/dist/domain/live-activity/index.d.ts +177 -0
  44. package/dist/domain/live-activity/index.js +27 -0
  45. package/dist/domain/meal/index.cjs +101 -12
  46. package/dist/domain/meal/index.d.cts +47 -0
  47. package/dist/domain/meal/index.d.ts +47 -0
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1504 -0
  50. package/dist/domain/meal-plan/index.d.cts +4424 -0
  51. package/dist/domain/meal-plan/index.d.ts +4424 -0
  52. package/dist/domain/meal-plan/index.js +256 -0
  53. package/dist/domain/member/index.cjs +114 -9
  54. package/dist/domain/member/index.d.cts +330 -0
  55. package/dist/domain/member/index.d.ts +330 -0
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +26 -8
  58. package/dist/domain/promotion/index.d.cts +81 -0
  59. package/dist/domain/promotion/index.d.ts +81 -0
  60. package/dist/domain/promotion/index.js +3 -3
  61. package/dist/domain/push/index.cjs +1004 -0
  62. package/dist/domain/push/index.d.cts +169 -0
  63. package/dist/domain/push/index.d.ts +169 -0
  64. package/dist/domain/push/index.js +35 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +34 -0
  67. package/dist/domain/restaurant/index.d.ts +34 -0
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +2533 -640
  70. package/dist/index.d.cts +14 -0
  71. package/dist/index.d.ts +14 -0
  72. package/dist/index.js +16 -191
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.js +0 -13
  83. package/dist/domain/plan/index.cjs +0 -327
  84. package/dist/domain/plan/index.js +0 -18
  85. package/dist/domain/recruit/index.cjs +0 -189
  86. package/dist/domain/recruit/index.js +0 -30
  87. package/dist/domain/room/index.cjs +0 -401
  88. package/dist/domain/room/index.js +0 -82
@@ -1,30 +1,54 @@
1
1
  import "../../chunk-NJTV6DRT.js";
2
2
  import {
3
+ CompleteOnboardingRequestSchema,
3
4
  CreateProfileRequestSchema,
5
+ DevicePermissionSnapshotSchema,
6
+ LocationConsentStatusSchema,
4
7
  MemberCoreSchema,
5
8
  MemberDetailSchema,
6
9
  MemberFoodPreferenceSchema,
10
+ MemberLocationSchema,
11
+ MemberLocationSettingsResponseSchema,
7
12
  MemberResponseSchema,
8
13
  MemberRoleSchema,
9
14
  MemberSearchQuerySchema,
10
15
  MemberSerachResponseSchema,
16
+ OnboardingDraftSchema,
17
+ OnboardingStatusSchema,
18
+ PermissionKindSchema,
19
+ PermissionPlatformSchema,
20
+ PermissionStatusSchema,
11
21
  ProfileDetailResponseSchema,
22
+ UpdateMemberLocationConsentRequestSchema,
23
+ UpdateMemberLocationRequestSchema,
12
24
  UpdatePreferenceRequestSchema,
13
25
  UpdateProfileRequestSchema,
14
26
  UploadProfileImageRequestSchema,
15
27
  UploadProfileImageResponseSchema
16
- } from "../../chunk-ZH7D7B2Y.js";
17
- import "../../chunk-H77ISYYC.js";
28
+ } from "../../chunk-YV734GYZ.js";
29
+ import "../../chunk-6R5CCY5Q.js";
18
30
  export {
31
+ CompleteOnboardingRequestSchema,
19
32
  CreateProfileRequestSchema,
33
+ DevicePermissionSnapshotSchema,
34
+ LocationConsentStatusSchema,
20
35
  MemberCoreSchema,
21
36
  MemberDetailSchema,
22
37
  MemberFoodPreferenceSchema,
38
+ MemberLocationSchema,
39
+ MemberLocationSettingsResponseSchema,
23
40
  MemberResponseSchema,
24
41
  MemberRoleSchema,
25
42
  MemberSearchQuerySchema,
26
43
  MemberSerachResponseSchema,
44
+ OnboardingDraftSchema,
45
+ OnboardingStatusSchema,
46
+ PermissionKindSchema,
47
+ PermissionPlatformSchema,
48
+ PermissionStatusSchema,
27
49
  ProfileDetailResponseSchema,
50
+ UpdateMemberLocationConsentRequestSchema,
51
+ UpdateMemberLocationRequestSchema,
28
52
  UpdatePreferenceRequestSchema,
29
53
  UpdateProfileRequestSchema,
30
54
  UploadProfileImageRequestSchema,
@@ -39,7 +39,10 @@ var import_zod3 = require("zod");
39
39
  var import_zod = require("zod");
40
40
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
41
41
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
42
- var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
42
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({
43
+ offset: true,
44
+ message: "Expected ISO datetime string"
45
+ });
43
46
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
44
47
 
45
48
  // src/domain/common/schema/id.schema.ts
@@ -49,10 +52,16 @@ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
49
52
  var MemberIdSchema = PositiveIntIdSchema.brand();
50
53
  var ArticleIdSchema = PositiveIntIdSchema.brand();
51
54
  var CommentIdSchema = PositiveIntIdSchema.brand();
52
- var RecruitIdSchema = PositiveIntIdSchema.brand();
53
- var PlanIdSchema = PositiveIntIdSchema.brand();
54
- var InvitationIdSchema = PositiveIntIdSchema.brand();
55
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
55
+ var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
56
+ var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
57
+ var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
58
+ var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
59
+ var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
60
+ var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
61
+ var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
62
+ var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
63
+ var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
64
+ var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
56
65
  var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
57
66
  var CouponIdSchema = PositiveIntIdSchema.brand();
58
67
  var SubscriptionIdSchema = PositiveIntIdSchema.brand();
@@ -85,8 +94,14 @@ var RedeemReferralRequestSchema = import_zod3.z.object({
85
94
 
86
95
  // src/domain/promotion/coupon.schema.ts
87
96
  var import_zod4 = require("zod");
88
- var CouponTypeSchema = import_zod4.z.enum(["DISCOUNT", "SERVICE"]);
89
- var CouponStatusSchema = import_zod4.z.enum(["UNUSED", "USED"]);
97
+ var CouponTypeSchema = import_zod4.z.enum([
98
+ "DISCOUNT",
99
+ "SERVICE"
100
+ ]);
101
+ var CouponStatusSchema = import_zod4.z.enum([
102
+ "UNUSED",
103
+ "USED"
104
+ ]);
90
105
  var CouponResponseSchema = import_zod4.z.object({
91
106
  couponId: CouponIdSchema,
92
107
  title: import_zod4.z.string(),
@@ -100,7 +115,10 @@ var CouponResponseSchema = import_zod4.z.object({
100
115
 
101
116
  // src/domain/promotion/challenge.schema.ts
102
117
  var import_zod5 = require("zod");
103
- var RewardTypeSchema = import_zod5.z.enum(["WEEK", "MONTH"]);
118
+ var RewardTypeSchema = import_zod5.z.enum([
119
+ "WEEK",
120
+ "MONTH"
121
+ ]);
104
122
  var WeekProgressSchema = import_zod5.z.object({
105
123
  days: import_zod5.z.array(import_zod5.z.boolean()),
106
124
  completed: import_zod5.z.number().int().min(0),
@@ -0,0 +1,81 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ReferralCreateResponseSchema: z.ZodObject<{
4
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
5
+ link: z.ZodString;
6
+ expiresAt: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReferralItemResponseSchema: z.ZodObject<{
9
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
10
+ createdAt: z.ZodString;
11
+ expiresAt: z.ZodString;
12
+ used: z.ZodBoolean;
13
+ usedByMemberId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>;
14
+ usedByUsername: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const RedeemReferralRequestSchema: z.ZodObject<{
17
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
18
+ }, z.core.$strip>;
19
+
20
+ type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
21
+ type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
22
+ type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
23
+
24
+ declare const CouponTypeSchema: z.ZodEnum<{
25
+ DISCOUNT: "DISCOUNT";
26
+ SERVICE: "SERVICE";
27
+ }>;
28
+ declare const CouponStatusSchema: z.ZodEnum<{
29
+ UNUSED: "UNUSED";
30
+ USED: "USED";
31
+ }>;
32
+ declare const CouponResponseSchema: z.ZodObject<{
33
+ couponId: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
34
+ title: z.ZodString;
35
+ shopName: z.ZodString;
36
+ type: z.ZodEnum<{
37
+ DISCOUNT: "DISCOUNT";
38
+ SERVICE: "SERVICE";
39
+ }>;
40
+ condition: z.ZodString;
41
+ expiresAt: z.ZodString;
42
+ used: z.ZodBoolean;
43
+ thumbnailUrl: z.ZodString;
44
+ }, z.core.$strip>;
45
+
46
+ type CouponType = z.infer<typeof CouponTypeSchema>;
47
+ type CouponStatus = z.infer<typeof CouponStatusSchema>;
48
+ type CouponResponse = z.infer<typeof CouponResponseSchema>;
49
+
50
+ declare const ChallengeStatusResponseSchema: z.ZodObject<{
51
+ week: z.ZodObject<{
52
+ days: z.ZodArray<z.ZodBoolean>;
53
+ completed: z.ZodNumber;
54
+ goal: z.ZodNumber;
55
+ }, z.core.$strip>;
56
+ month: z.ZodObject<{
57
+ count: z.ZodNumber;
58
+ goal: z.ZodNumber;
59
+ }, z.core.$strip>;
60
+ weekRewardAvailable: z.ZodBoolean;
61
+ monthRewardAvailable: z.ZodBoolean;
62
+ }, z.core.$strip>;
63
+ declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
64
+ type: z.ZodEnum<{
65
+ WEEK: "WEEK";
66
+ MONTH: "MONTH";
67
+ }>;
68
+ }, z.core.$strip>;
69
+ declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
70
+ rewardType: z.ZodEnum<{
71
+ WEEK: "WEEK";
72
+ MONTH: "MONTH";
73
+ }>;
74
+ claimed: z.ZodBoolean;
75
+ }, z.core.$strip>;
76
+
77
+ type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
78
+ type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
79
+ type ClaimChallengeRewardResponse = z.infer<typeof ClaimChallengeRewardResponseSchema>;
80
+
81
+ export { type ChallengeStatusResponse, ChallengeStatusResponseSchema, type ClaimChallengeRewardRequest, ClaimChallengeRewardRequestSchema, type ClaimChallengeRewardResponse, ClaimChallengeRewardResponseSchema, type CouponResponse, CouponResponseSchema, type CouponStatus, CouponStatusSchema, type CouponType, CouponTypeSchema, type RedeemReferralRequest, RedeemReferralRequestSchema, type ReferralCreateResponse, ReferralCreateResponseSchema, type ReferralItemResponse, ReferralItemResponseSchema };
@@ -0,0 +1,81 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ReferralCreateResponseSchema: z.ZodObject<{
4
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
5
+ link: z.ZodString;
6
+ expiresAt: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReferralItemResponseSchema: z.ZodObject<{
9
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
10
+ createdAt: z.ZodString;
11
+ expiresAt: z.ZodString;
12
+ used: z.ZodBoolean;
13
+ usedByMemberId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>;
14
+ usedByUsername: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const RedeemReferralRequestSchema: z.ZodObject<{
17
+ code: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
18
+ }, z.core.$strip>;
19
+
20
+ type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
21
+ type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
22
+ type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
23
+
24
+ declare const CouponTypeSchema: z.ZodEnum<{
25
+ DISCOUNT: "DISCOUNT";
26
+ SERVICE: "SERVICE";
27
+ }>;
28
+ declare const CouponStatusSchema: z.ZodEnum<{
29
+ UNUSED: "UNUSED";
30
+ USED: "USED";
31
+ }>;
32
+ declare const CouponResponseSchema: z.ZodObject<{
33
+ couponId: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
34
+ title: z.ZodString;
35
+ shopName: z.ZodString;
36
+ type: z.ZodEnum<{
37
+ DISCOUNT: "DISCOUNT";
38
+ SERVICE: "SERVICE";
39
+ }>;
40
+ condition: z.ZodString;
41
+ expiresAt: z.ZodString;
42
+ used: z.ZodBoolean;
43
+ thumbnailUrl: z.ZodString;
44
+ }, z.core.$strip>;
45
+
46
+ type CouponType = z.infer<typeof CouponTypeSchema>;
47
+ type CouponStatus = z.infer<typeof CouponStatusSchema>;
48
+ type CouponResponse = z.infer<typeof CouponResponseSchema>;
49
+
50
+ declare const ChallengeStatusResponseSchema: z.ZodObject<{
51
+ week: z.ZodObject<{
52
+ days: z.ZodArray<z.ZodBoolean>;
53
+ completed: z.ZodNumber;
54
+ goal: z.ZodNumber;
55
+ }, z.core.$strip>;
56
+ month: z.ZodObject<{
57
+ count: z.ZodNumber;
58
+ goal: z.ZodNumber;
59
+ }, z.core.$strip>;
60
+ weekRewardAvailable: z.ZodBoolean;
61
+ monthRewardAvailable: z.ZodBoolean;
62
+ }, z.core.$strip>;
63
+ declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
64
+ type: z.ZodEnum<{
65
+ WEEK: "WEEK";
66
+ MONTH: "MONTH";
67
+ }>;
68
+ }, z.core.$strip>;
69
+ declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
70
+ rewardType: z.ZodEnum<{
71
+ WEEK: "WEEK";
72
+ MONTH: "MONTH";
73
+ }>;
74
+ claimed: z.ZodBoolean;
75
+ }, z.core.$strip>;
76
+
77
+ type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
78
+ type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
79
+ type ClaimChallengeRewardResponse = z.infer<typeof ClaimChallengeRewardResponseSchema>;
80
+
81
+ export { type ChallengeStatusResponse, ChallengeStatusResponseSchema, type ClaimChallengeRewardRequest, ClaimChallengeRewardRequestSchema, type ClaimChallengeRewardResponse, ClaimChallengeRewardResponseSchema, type CouponResponse, CouponResponseSchema, type CouponStatus, CouponStatusSchema, type CouponType, CouponTypeSchema, type RedeemReferralRequest, RedeemReferralRequestSchema, type ReferralCreateResponse, ReferralCreateResponseSchema, type ReferralItemResponse, ReferralItemResponseSchema };
@@ -8,9 +8,9 @@ import {
8
8
  RedeemReferralRequestSchema,
9
9
  ReferralCreateResponseSchema,
10
10
  ReferralItemResponseSchema
11
- } from "../../chunk-AI2YMBJX.js";
12
- import "../../chunk-HRM3FQPL.js";
13
- import "../../chunk-H77ISYYC.js";
11
+ } from "../../chunk-65DWKLP6.js";
12
+ import "../../chunk-EYZU5HPG.js";
13
+ import "../../chunk-6R5CCY5Q.js";
14
14
  export {
15
15
  ChallengeStatusResponseSchema,
16
16
  ClaimChallengeRewardRequestSchema,