@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,32 @@
1
+ import "../../chunk-IYCA6KHR.js";
2
+ import {
3
+ ArticleCoreSchema,
4
+ ArticleDetailResponseSchema,
5
+ ArticlePostRequestSchema,
6
+ ArticleSummaryResponseSchema,
7
+ CommentPostRequestSchema,
8
+ CommentResponseSchema,
9
+ CreateArticleResponseSchema,
10
+ CreateCommentResponseSchema,
11
+ FoodAnalysisResultSchema,
12
+ PageArticleSummaryResponseSchema,
13
+ PresignUploadResponseSchema
14
+ } from "../../chunk-YVACD5IG.js";
15
+ import "../../chunk-NW5O4R7M.js";
16
+ import "../../chunk-MP7TEKEI.js";
17
+ import "../../chunk-UFVPFUMI.js";
18
+ import "../../chunk-HRM3FQPL.js";
19
+ import "../../chunk-UXA4FHST.js";
20
+ export {
21
+ ArticleCoreSchema,
22
+ ArticleDetailResponseSchema,
23
+ ArticlePostRequestSchema,
24
+ ArticleSummaryResponseSchema,
25
+ CommentPostRequestSchema,
26
+ CommentResponseSchema,
27
+ CreateArticleResponseSchema,
28
+ CreateCommentResponseSchema,
29
+ FoodAnalysisResultSchema,
30
+ PageArticleSummaryResponseSchema,
31
+ PresignUploadResponseSchema
32
+ };
@@ -0,0 +1,135 @@
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/auth/index.ts
21
+ var auth_exports = {};
22
+ __export(auth_exports, {
23
+ LoginRequestSchema: () => LoginRequestSchema,
24
+ SignupRequestSchema: () => SignupRequestSchema,
25
+ SignupResponseSchema: () => SignupResponseSchema,
26
+ TokenResponseSchema: () => TokenResponseSchema
27
+ });
28
+ module.exports = __toCommonJS(auth_exports);
29
+
30
+ // src/domain/auth/schema/auth.schema.ts
31
+ var import_zod4 = require("zod");
32
+
33
+ // src/domain/member/schema/member.schema.ts
34
+ var import_zod3 = require("zod");
35
+
36
+ // src/domain/common/schema/date.schema.ts
37
+ var import_zod = require("zod");
38
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
39
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
40
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
41
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
42
+
43
+ // src/domain/common/schema/id.schema.ts
44
+ var import_zod2 = require("zod");
45
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
46
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
47
+ var MemberIdSchema = PositiveIntIdSchema.brand();
48
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
49
+ var CommentIdSchema = PositiveIntIdSchema.brand();
50
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
51
+ var PlanIdSchema = PositiveIntIdSchema.brand();
52
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
53
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
54
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
55
+ var CouponIdSchema = PositiveIntIdSchema.brand();
56
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
57
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
58
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
59
+
60
+ // src/domain/member/schema/member.schema.ts
61
+ var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
62
+ var MemberCoreSchema = import_zod3.z.object({
63
+ memberId: MemberIdSchema,
64
+ username: import_zod3.z.string().min(1).max(50),
65
+ profileImageUrl: import_zod3.z.string().url().nullable()
66
+ });
67
+ var MemberResponseSchema = MemberCoreSchema.pick({
68
+ memberId: true,
69
+ username: true,
70
+ profileImageUrl: true
71
+ });
72
+ var MemberSummaryResponseSchema = MemberCoreSchema.extend({
73
+ friends: import_zod3.z.number().int().min(0).default(0),
74
+ completedPlans: import_zod3.z.number().int().min(0).default(0),
75
+ uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
76
+ });
77
+ var AuthPrincipalSchema = import_zod3.z.object({
78
+ memberId: MemberIdSchema,
79
+ role: MemberRoleSchema
80
+ });
81
+ var ProfilePreferenceItemSchema = import_zod3.z.object({
82
+ code: import_zod3.z.string(),
83
+ label: import_zod3.z.string()
84
+ });
85
+ var ProfileDetailResponseSchema = MemberCoreSchema.extend({
86
+ bio: import_zod3.z.string().nullable(),
87
+ planCount: import_zod3.z.number().int().min(0),
88
+ likes: import_zod3.z.array(ProfilePreferenceItemSchema),
89
+ dislikes: import_zod3.z.array(ProfilePreferenceItemSchema),
90
+ allergies: import_zod3.z.array(ProfilePreferenceItemSchema)
91
+ });
92
+ var UpdateProfileRequestSchema = import_zod3.z.object({
93
+ username: import_zod3.z.string().min(1).max(50),
94
+ profileImageUrl: import_zod3.z.string().url().nullable(),
95
+ bio: import_zod3.z.string().max(500).nullable()
96
+ });
97
+ var OnboardingPreferenceRequestSchema = import_zod3.z.object({
98
+ likedCodes: import_zod3.z.array(import_zod3.z.string()),
99
+ dislikedCodes: import_zod3.z.array(import_zod3.z.string()),
100
+ allergyCodes: import_zod3.z.array(import_zod3.z.string())
101
+ });
102
+ var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
103
+ OnboardingPreferenceRequestSchema
104
+ );
105
+ var PreferenceMetaResponseSchema = import_zod3.z.object({
106
+ onboardedAt: ISODateTimeStringSchema.nullable(),
107
+ lastUpdatedAt: ISODateTimeStringSchema.nullable(),
108
+ revision: import_zod3.z.number().int().min(0)
109
+ });
110
+
111
+ // src/domain/auth/schema/auth.schema.ts
112
+ var TokenResponseSchema = import_zod4.z.object({
113
+ accessToken: import_zod4.z.string().min(1),
114
+ accessTokenMaxAge: import_zod4.z.number().int().positive()
115
+ });
116
+ var LoginRequestSchema = import_zod4.z.object({
117
+ email: import_zod4.z.string().email(),
118
+ password: import_zod4.z.string().min(1)
119
+ });
120
+ var SignupRequestSchema = import_zod4.z.object({
121
+ email: import_zod4.z.string().email(),
122
+ password: import_zod4.z.string().min(8),
123
+ username: import_zod4.z.string().min(1).max(50),
124
+ profileImageUrl: import_zod4.z.string().url().nullable().optional()
125
+ });
126
+ var SignupResponseSchema = import_zod4.z.object({
127
+ member: MemberResponseSchema
128
+ });
129
+ // Annotate the CommonJS export names for ESM import in node:
130
+ 0 && (module.exports = {
131
+ LoginRequestSchema,
132
+ SignupRequestSchema,
133
+ SignupResponseSchema,
134
+ TokenResponseSchema
135
+ });
@@ -0,0 +1,73 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const TokenResponseSchema: z.ZodObject<{
4
+ accessToken: z.ZodString;
5
+ accessTokenMaxAge: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ accessToken: string;
8
+ accessTokenMaxAge: number;
9
+ }, {
10
+ accessToken: string;
11
+ accessTokenMaxAge: number;
12
+ }>;
13
+ declare const LoginRequestSchema: z.ZodObject<{
14
+ email: z.ZodString;
15
+ password: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ email: string;
18
+ password: string;
19
+ }, {
20
+ email: string;
21
+ password: string;
22
+ }>;
23
+ declare const SignupRequestSchema: z.ZodObject<{
24
+ email: z.ZodString;
25
+ password: z.ZodString;
26
+ username: z.ZodString;
27
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ username: string;
30
+ email: string;
31
+ password: string;
32
+ profileImageUrl?: string | null | undefined;
33
+ }, {
34
+ username: string;
35
+ email: string;
36
+ password: string;
37
+ profileImageUrl?: string | null | undefined;
38
+ }>;
39
+ declare const SignupResponseSchema: z.ZodObject<{
40
+ member: z.ZodObject<Pick<{
41
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
42
+ username: z.ZodString;
43
+ profileImageUrl: z.ZodNullable<z.ZodString>;
44
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
45
+ memberId: number & z.BRAND<"MemberId">;
46
+ username: string;
47
+ profileImageUrl: string | null;
48
+ }, {
49
+ memberId: number;
50
+ username: string;
51
+ profileImageUrl: string | null;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ member: {
55
+ memberId: number & z.BRAND<"MemberId">;
56
+ username: string;
57
+ profileImageUrl: string | null;
58
+ };
59
+ }, {
60
+ member: {
61
+ memberId: number;
62
+ username: string;
63
+ profileImageUrl: string | null;
64
+ };
65
+ }>;
66
+
67
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
68
+ type SignupRequest = z.infer<typeof SignupRequestSchema>;
69
+
70
+ type TokenResponse = z.infer<typeof TokenResponseSchema>;
71
+ type SignupResponse = z.infer<typeof SignupResponseSchema>;
72
+
73
+ export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
@@ -0,0 +1,73 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const TokenResponseSchema: z.ZodObject<{
4
+ accessToken: z.ZodString;
5
+ accessTokenMaxAge: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ accessToken: string;
8
+ accessTokenMaxAge: number;
9
+ }, {
10
+ accessToken: string;
11
+ accessTokenMaxAge: number;
12
+ }>;
13
+ declare const LoginRequestSchema: z.ZodObject<{
14
+ email: z.ZodString;
15
+ password: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ email: string;
18
+ password: string;
19
+ }, {
20
+ email: string;
21
+ password: string;
22
+ }>;
23
+ declare const SignupRequestSchema: z.ZodObject<{
24
+ email: z.ZodString;
25
+ password: z.ZodString;
26
+ username: z.ZodString;
27
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ username: string;
30
+ email: string;
31
+ password: string;
32
+ profileImageUrl?: string | null | undefined;
33
+ }, {
34
+ username: string;
35
+ email: string;
36
+ password: string;
37
+ profileImageUrl?: string | null | undefined;
38
+ }>;
39
+ declare const SignupResponseSchema: z.ZodObject<{
40
+ member: z.ZodObject<Pick<{
41
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
42
+ username: z.ZodString;
43
+ profileImageUrl: z.ZodNullable<z.ZodString>;
44
+ }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
45
+ memberId: number & z.BRAND<"MemberId">;
46
+ username: string;
47
+ profileImageUrl: string | null;
48
+ }, {
49
+ memberId: number;
50
+ username: string;
51
+ profileImageUrl: string | null;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ member: {
55
+ memberId: number & z.BRAND<"MemberId">;
56
+ username: string;
57
+ profileImageUrl: string | null;
58
+ };
59
+ }, {
60
+ member: {
61
+ memberId: number;
62
+ username: string;
63
+ profileImageUrl: string | null;
64
+ };
65
+ }>;
66
+
67
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
68
+ type SignupRequest = z.infer<typeof SignupRequestSchema>;
69
+
70
+ type TokenResponse = z.infer<typeof TokenResponseSchema>;
71
+ type SignupResponse = z.infer<typeof SignupResponseSchema>;
72
+
73
+ export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
@@ -0,0 +1,17 @@
1
+ import "../../chunk-WNY6POLW.js";
2
+ import {
3
+ LoginRequestSchema,
4
+ SignupRequestSchema,
5
+ SignupResponseSchema,
6
+ TokenResponseSchema
7
+ } from "../../chunk-FCE6KXNO.js";
8
+ import "../../chunk-MP7TEKEI.js";
9
+ import "../../chunk-UFVPFUMI.js";
10
+ import "../../chunk-HRM3FQPL.js";
11
+ import "../../chunk-UXA4FHST.js";
12
+ export {
13
+ LoginRequestSchema,
14
+ SignupRequestSchema,
15
+ SignupResponseSchema,
16
+ TokenResponseSchema
17
+ };
@@ -0,0 +1,65 @@
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/challenge/index.ts
21
+ var challenge_exports = {};
22
+ __export(challenge_exports, {
23
+ ChallengeStatusResponseSchema: () => ChallengeStatusResponseSchema,
24
+ ClaimChallengeRewardRequestSchema: () => ClaimChallengeRewardRequestSchema,
25
+ ClaimChallengeRewardResponseSchema: () => ClaimChallengeRewardResponseSchema,
26
+ MonthProgressSchema: () => MonthProgressSchema,
27
+ RewardTypeSchema: () => RewardTypeSchema,
28
+ WeekProgressSchema: () => WeekProgressSchema
29
+ });
30
+ module.exports = __toCommonJS(challenge_exports);
31
+
32
+ // src/domain/challenge/schema/challenge.schema.ts
33
+ var import_zod = require("zod");
34
+ var RewardTypeSchema = import_zod.z.enum(["WEEK", "MONTH"]);
35
+ var WeekProgressSchema = import_zod.z.object({
36
+ days: import_zod.z.array(import_zod.z.boolean()),
37
+ completed: import_zod.z.number().int().min(0),
38
+ goal: import_zod.z.number().int().positive()
39
+ });
40
+ var MonthProgressSchema = import_zod.z.object({
41
+ count: import_zod.z.number().int().min(0),
42
+ goal: import_zod.z.number().int().positive()
43
+ });
44
+ var ChallengeStatusResponseSchema = import_zod.z.object({
45
+ week: WeekProgressSchema,
46
+ month: MonthProgressSchema,
47
+ weekRewardAvailable: import_zod.z.boolean(),
48
+ monthRewardAvailable: import_zod.z.boolean()
49
+ });
50
+ var ClaimChallengeRewardRequestSchema = import_zod.z.object({
51
+ type: RewardTypeSchema
52
+ });
53
+ var ClaimChallengeRewardResponseSchema = import_zod.z.object({
54
+ rewardType: RewardTypeSchema,
55
+ claimed: import_zod.z.boolean()
56
+ });
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ ChallengeStatusResponseSchema,
60
+ ClaimChallengeRewardRequestSchema,
61
+ ClaimChallengeRewardResponseSchema,
62
+ MonthProgressSchema,
63
+ RewardTypeSchema,
64
+ WeekProgressSchema
65
+ });
@@ -0,0 +1,104 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const RewardTypeSchema: z.ZodEnum<["WEEK", "MONTH"]>;
4
+ declare const WeekProgressSchema: z.ZodObject<{
5
+ days: z.ZodArray<z.ZodBoolean, "many">;
6
+ completed: z.ZodNumber;
7
+ goal: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ days: boolean[];
10
+ completed: number;
11
+ goal: number;
12
+ }, {
13
+ days: boolean[];
14
+ completed: number;
15
+ goal: number;
16
+ }>;
17
+ declare const MonthProgressSchema: z.ZodObject<{
18
+ count: z.ZodNumber;
19
+ goal: z.ZodNumber;
20
+ }, "strip", z.ZodTypeAny, {
21
+ goal: number;
22
+ count: number;
23
+ }, {
24
+ goal: number;
25
+ count: number;
26
+ }>;
27
+ declare const ChallengeStatusResponseSchema: z.ZodObject<{
28
+ week: z.ZodObject<{
29
+ days: z.ZodArray<z.ZodBoolean, "many">;
30
+ completed: z.ZodNumber;
31
+ goal: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ days: boolean[];
34
+ completed: number;
35
+ goal: number;
36
+ }, {
37
+ days: boolean[];
38
+ completed: number;
39
+ goal: number;
40
+ }>;
41
+ month: z.ZodObject<{
42
+ count: z.ZodNumber;
43
+ goal: z.ZodNumber;
44
+ }, "strip", z.ZodTypeAny, {
45
+ goal: number;
46
+ count: number;
47
+ }, {
48
+ goal: number;
49
+ count: number;
50
+ }>;
51
+ weekRewardAvailable: z.ZodBoolean;
52
+ monthRewardAvailable: z.ZodBoolean;
53
+ }, "strip", z.ZodTypeAny, {
54
+ week: {
55
+ days: boolean[];
56
+ completed: number;
57
+ goal: number;
58
+ };
59
+ month: {
60
+ goal: number;
61
+ count: number;
62
+ };
63
+ weekRewardAvailable: boolean;
64
+ monthRewardAvailable: boolean;
65
+ }, {
66
+ week: {
67
+ days: boolean[];
68
+ completed: number;
69
+ goal: number;
70
+ };
71
+ month: {
72
+ goal: number;
73
+ count: number;
74
+ };
75
+ weekRewardAvailable: boolean;
76
+ monthRewardAvailable: boolean;
77
+ }>;
78
+ declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
79
+ type: z.ZodEnum<["WEEK", "MONTH"]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ type: "WEEK" | "MONTH";
82
+ }, {
83
+ type: "WEEK" | "MONTH";
84
+ }>;
85
+ declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
86
+ rewardType: z.ZodEnum<["WEEK", "MONTH"]>;
87
+ claimed: z.ZodBoolean;
88
+ }, "strip", z.ZodTypeAny, {
89
+ rewardType: "WEEK" | "MONTH";
90
+ claimed: boolean;
91
+ }, {
92
+ rewardType: "WEEK" | "MONTH";
93
+ claimed: boolean;
94
+ }>;
95
+
96
+ type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
97
+
98
+ type RewardType = z.infer<typeof RewardTypeSchema>;
99
+ type WeekProgress = z.infer<typeof WeekProgressSchema>;
100
+ type MonthProgress = z.infer<typeof MonthProgressSchema>;
101
+ type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
102
+ type ClaimChallengeRewardResponse = z.infer<typeof ClaimChallengeRewardResponseSchema>;
103
+
104
+ export { type ChallengeStatusResponse, ChallengeStatusResponseSchema, type ClaimChallengeRewardRequest, ClaimChallengeRewardRequestSchema, type ClaimChallengeRewardResponse, ClaimChallengeRewardResponseSchema, type MonthProgress, MonthProgressSchema, type RewardType, RewardTypeSchema, type WeekProgress, WeekProgressSchema };
@@ -0,0 +1,104 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const RewardTypeSchema: z.ZodEnum<["WEEK", "MONTH"]>;
4
+ declare const WeekProgressSchema: z.ZodObject<{
5
+ days: z.ZodArray<z.ZodBoolean, "many">;
6
+ completed: z.ZodNumber;
7
+ goal: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ days: boolean[];
10
+ completed: number;
11
+ goal: number;
12
+ }, {
13
+ days: boolean[];
14
+ completed: number;
15
+ goal: number;
16
+ }>;
17
+ declare const MonthProgressSchema: z.ZodObject<{
18
+ count: z.ZodNumber;
19
+ goal: z.ZodNumber;
20
+ }, "strip", z.ZodTypeAny, {
21
+ goal: number;
22
+ count: number;
23
+ }, {
24
+ goal: number;
25
+ count: number;
26
+ }>;
27
+ declare const ChallengeStatusResponseSchema: z.ZodObject<{
28
+ week: z.ZodObject<{
29
+ days: z.ZodArray<z.ZodBoolean, "many">;
30
+ completed: z.ZodNumber;
31
+ goal: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ days: boolean[];
34
+ completed: number;
35
+ goal: number;
36
+ }, {
37
+ days: boolean[];
38
+ completed: number;
39
+ goal: number;
40
+ }>;
41
+ month: z.ZodObject<{
42
+ count: z.ZodNumber;
43
+ goal: z.ZodNumber;
44
+ }, "strip", z.ZodTypeAny, {
45
+ goal: number;
46
+ count: number;
47
+ }, {
48
+ goal: number;
49
+ count: number;
50
+ }>;
51
+ weekRewardAvailable: z.ZodBoolean;
52
+ monthRewardAvailable: z.ZodBoolean;
53
+ }, "strip", z.ZodTypeAny, {
54
+ week: {
55
+ days: boolean[];
56
+ completed: number;
57
+ goal: number;
58
+ };
59
+ month: {
60
+ goal: number;
61
+ count: number;
62
+ };
63
+ weekRewardAvailable: boolean;
64
+ monthRewardAvailable: boolean;
65
+ }, {
66
+ week: {
67
+ days: boolean[];
68
+ completed: number;
69
+ goal: number;
70
+ };
71
+ month: {
72
+ goal: number;
73
+ count: number;
74
+ };
75
+ weekRewardAvailable: boolean;
76
+ monthRewardAvailable: boolean;
77
+ }>;
78
+ declare const ClaimChallengeRewardRequestSchema: z.ZodObject<{
79
+ type: z.ZodEnum<["WEEK", "MONTH"]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ type: "WEEK" | "MONTH";
82
+ }, {
83
+ type: "WEEK" | "MONTH";
84
+ }>;
85
+ declare const ClaimChallengeRewardResponseSchema: z.ZodObject<{
86
+ rewardType: z.ZodEnum<["WEEK", "MONTH"]>;
87
+ claimed: z.ZodBoolean;
88
+ }, "strip", z.ZodTypeAny, {
89
+ rewardType: "WEEK" | "MONTH";
90
+ claimed: boolean;
91
+ }, {
92
+ rewardType: "WEEK" | "MONTH";
93
+ claimed: boolean;
94
+ }>;
95
+
96
+ type ClaimChallengeRewardRequest = z.infer<typeof ClaimChallengeRewardRequestSchema>;
97
+
98
+ type RewardType = z.infer<typeof RewardTypeSchema>;
99
+ type WeekProgress = z.infer<typeof WeekProgressSchema>;
100
+ type MonthProgress = z.infer<typeof MonthProgressSchema>;
101
+ type ChallengeStatusResponse = z.infer<typeof ChallengeStatusResponseSchema>;
102
+ type ClaimChallengeRewardResponse = z.infer<typeof ClaimChallengeRewardResponseSchema>;
103
+
104
+ export { type ChallengeStatusResponse, ChallengeStatusResponseSchema, type ClaimChallengeRewardRequest, ClaimChallengeRewardRequestSchema, type ClaimChallengeRewardResponse, ClaimChallengeRewardResponseSchema, type MonthProgress, MonthProgressSchema, type RewardType, RewardTypeSchema, type WeekProgress, WeekProgressSchema };
@@ -0,0 +1,18 @@
1
+ import "../../chunk-UN7KYFMV.js";
2
+ import {
3
+ ChallengeStatusResponseSchema,
4
+ ClaimChallengeRewardRequestSchema,
5
+ ClaimChallengeRewardResponseSchema,
6
+ MonthProgressSchema,
7
+ RewardTypeSchema,
8
+ WeekProgressSchema
9
+ } from "../../chunk-6NZPEF4K.js";
10
+ import "../../chunk-UXA4FHST.js";
11
+ export {
12
+ ChallengeStatusResponseSchema,
13
+ ClaimChallengeRewardRequestSchema,
14
+ ClaimChallengeRewardResponseSchema,
15
+ MonthProgressSchema,
16
+ RewardTypeSchema,
17
+ WeekProgressSchema
18
+ };